; --------------------------------------------------------------------------------
; @Title: ADUC7030/32/33/34/36/39 On-Chip Peripheral
; @Props: Released
; @Author: BOB, MAL
; @Changelog:
;   2007-03-19 MAL
;   2009-03-05 MAL
;   2009-04-06 MAL
; @Manufacturer: AD - Analog Devices Inc.
; @Doc: ADuC7030_PRF_0.pdf; ADUC7032.pdf; ADuC 7039_PRB.pdf (Rev.PrB, 2008-08-22)
; ADuC7034.pdf (Rev. 0, 2008-4); ADuC7036.pdf (Rev. 0, 2008-11)
; @Core: ARM7TDMI
; @Copyright: (C) 1989-2020 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: peraduc703x.per 6917 2016-05-09 14:30:30Z askoncej $
config 16. 8.
width 0x0B
tree "System Control"
base d:0xffff0200
sif (cpu()=="ADUC7039")
width 8.
group.byte 0x20++0x00
line.byte 0x00 "SYSMAP,REMAP Control Register"
bitfld.byte 0x00 0. "     REMAP ,Remap FlashEE/SRAM to 0x00000000" "Flash/EE,SRAM"
group.byte 0x30++0x00
line.byte 0x00 "RSTSTA,Reset Status Register"
bitfld.byte 0x00 3. "     EXTR  ,External Pin Reset" "No reset,Reset"
bitfld.byte 0x00 2. "   SOFTR  ,Software Reset" "No reset,Reset"
bitfld.byte 0x00 1. "   WDTO  ,Watchdog Timeout" "No reset,Reset"
textline "                 "
bitfld.byte 0x00 0. " POR   ,Power-on-reset" "No reset,Reset"
wgroup.byte 0x34++0x00
line.byte 0x00 "RSTCLR,Reset Clear Register"
bitfld.byte 0x00 3. "     EXTRC ,External Reset Clear" "No effect,Clear"
bitfld.byte 0x00 2. "  SOFTRC ,Software Reset Clear" "No effect,Clear"
bitfld.byte 0x00 1. "  WDTOC ,Watchdog Timeout" "No effect,Clear"
textline "                 "
bitfld.byte 0x00 0. " PORC  ,Power-on-reset " "No effect,Clear"
group.long 0x44++0x03
line.long 0x00 "SYSCHK,Kernel Checksum Register"
width 0xB    
else
width 9.
group.byte 0x20++0x00
line.byte 0x00 "SYSMAP0,REMAP Control Register"
bitfld.byte 0x00 0. "     REMAP   ,Remap the SRAM to 0x00000000" "Not remapped,Remapped"
group.byte 0x30++0x00
line.byte 0x00 "RSTSTA,Reset Status Register"
bitfld.byte 0x00 3. "     EXTR    ,External Reset" "No reset,Reset"
bitfld.byte 0x00 2. "      SOFTR  ,Software Reset" "No reset,Reset"
bitfld.byte 0x00 1. "   WDTO   ,Watchdog Timeout" "No reset,Reset"
textline "                  "
bitfld.byte 0x00 0. " POR     ,Power-on-reset" "No reset,Reset"
wgroup.byte 0x34++0x00
line.byte 0x00 "RSTCLR,Reset Clear Register"
bitfld.byte 0x00 3. "     EXTRC   ,External Reset Clear" "No effect,Cleared"
bitfld.byte 0x00 2. "     SOFTRC ,Software Reset Clear" "No effect,Cleared"
bitfld.byte 0x00 1. "  WDTOC  ,Watchdog Timeout" "No effect,Cleared"
textline "                  "
bitfld.byte 0x00 0. " PORC    ,Power-on-reset " "No effect,Cleared"
group.long 0x38++0x03
line.long 0x00 "SYSSER0,System Serial Number 0 Register"
bitfld.long 0x00 27.--31. " WN      ,Wafer Number" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,?..."
bitfld.long 0x00 22.--26. "      WLFP   ,Wafer Lot Fabrication Plant" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
hexmask.long.byte 0x00 16.--21. 1. "         WLFID  ,Wafer Lot fabrication ID"
textline "                  "
hexmask.long.word 0x00 0.--15. 1. " WLFID   ,Wafer Lot fabrication ID LSB"
group.long 0x3c++0x03
line.long 0x00 "SYSSER1,System Serial Number 1 Register"
hexmask.long.byte 0x00 28.--31. 1. " SMRID   ,Silicon Mask Revision ID" 
hexmask.long.byte 0x00 20.--27. 1. "            KRID   ,Kernel Revision ID"
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7032"))
hexmask.long.byte 0x00 16.--19. 1. "         KMREVID ,Kernel Minor Revision Number"
endif
textline "                  "
hexmask.long.word 0x00 0.--15. 1. " PARTID  ,Part ID"
sif ((cpu()=="ADUC7034")||(cpu()=="ADUC7036"))
group.long 0x360++0x3
line.long 0x00 "SYSALI,System Assembly Lot ID Register"
endif        
group.long 0x40++0x03
line.long 0x00 "SYSCHK,Kernel Checksum Register"
endif
tree.end
tree "FLASH/EE Control Interface"
base d:0xffff0e00
sif (cpu()=="ADUC7030"||cpu()=="ADUC7034")
width 9.
group.byte 0x08++0x00
line.byte 0x00 "FEE0CON,Flash/EE Control Register"
hgroup.byte 0x00++0x00
hide.byte 0x00 "FEE0STA,Flash/EE Status Register"
in
group.byte 0x04++0x00
line.byte 0x00 "FEE0MOD,Flash/EE Mode Register"
bitfld.byte 0x00 5.--6. "     FSL     ,Flash/EE Security Lock" "00,01,10,11"
bitfld.byte 0x00 4. "             FCIE    ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "       FEWE    ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 1. " FCAE    ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.word 0x10++0x01
line.word 0x00 "FEE0ADR,Flash/EE Address Register"
bitfld.word 0x00 0.--3. "     FID     ,ADuC703x Family ID" "ADuC7030,Reserved,ADuC7032,ADuC7033,ADuC7034,ADuC7035,ADuC7036,ADuC7037,ADuC7038,ADuC7039,?..."    
group.word 0x0c++0x01
line.word 0x00 "FEE0DAT,Flash/EE Data Register"
group.long 0x20++0x03
line.long 0x00 "FEE0HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP      ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59    ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58    ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57 ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55 ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53 ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51 ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49 ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47 ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45 ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43 ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41 ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39 ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37 ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35 ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33 ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31 ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29 ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27 ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25 ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23 ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21 ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19 ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17 ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15 ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13 ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11 ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9   ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7   ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5   ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3   ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1   ,Write Protect Pages 0-1" "Protected,Not protected"
group.long 0x1c++0x03
line.long 0x00 "FEE0PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP      ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59    ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58    ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57 ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55 ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53 ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51 ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49 ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47 ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45 ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43 ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41 ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39 ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37 ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35 ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33 ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31 ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29 ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27 ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25 ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23 ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21 ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19 ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17 ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15 ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13 ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11 ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9   ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7   ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5   ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3   ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1   ,Write Protect Pages 0-1" "Protected,Not protected"
rgroup.long 0x18++0x02
line.tbyte 0x00 "FEE0SIGN,Flash/EE 24-bit Code Signature Register"
elif (cpu()=="ADUC7033"||cpu()=="ADUC7036")
width 9.
tree "Block 0"
group.byte 0x08++0x00
line.byte 0x00 "FEE0CON,Flash/EE Control Register"
hgroup.byte 0x00++0x00
hide.byte 0x00 "FEE0STA,Flash/EE Status Register"
in
group.word 0x10++0x01
line.word 0x00 "FEE0ADR,Flash/EE Address Register"
bitfld.word 0x00 0.--3. "     FID     ,ADuC703x Family ID" "ADuC7030,Reserved,ADuC7032,ADuC7033,ADuC7034,ADuC7035,ADuC7036,ADuC7037,ADuC7038,ADuC7039,?..."    
group.word 0x0c++0x01
line.word 0x00 "FEE0DAT,Flash/EE Data Register"
group.byte 0x04++0x00
line.byte 0x00 "FEE0MOD,Flash/EE Mode Register"
bitfld.byte 0x00 5.--6. "     FSL     ,Flash/EE Security Lock" "00,01,10,11"
bitfld.byte 0x00 4. "             FCIE    ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "       FEWE    ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 1. " FCAE    ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.long 0x20++0x03
line.long 0x00 "FEE0HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP      ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59    ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58    ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57 ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55 ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53 ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51 ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49 ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47 ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45 ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43 ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41 ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39 ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37 ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35 ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33 ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31 ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29 ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27 ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25 ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23 ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21 ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19 ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17 ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15 ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13 ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11 ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9   ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7   ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5   ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3   ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1   ,Write Protect Pages 0-1" "Protected,Not protected"
group.long 0x1c++0x03
line.long 0x00 "FEE0PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP      ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59    ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58    ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57 ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55 ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53 ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51 ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49 ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47 ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45 ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43 ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41 ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39 ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37 ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35 ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33 ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31 ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29 ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27 ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25 ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23 ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21 ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19 ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17 ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15 ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13 ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11 ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9   ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7   ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5   ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3   ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1   ,Write Protect Pages 0-1" "Protected,Not protected"
rgroup.long 0x18++0x02
line.tbyte 0x00 "FEE0SIGN,Flash/EE 24-bit Code Signature Register"
tree.end
tree "Block 1"
group.byte 0x88++0x00
line.byte 0x00 "FEE1CON,Flash/EE Control Register"
hgroup.byte 0x80++0x00
hide.byte 0x00 "FEE1STA,Flash/EE Status Register"
in
group.word 0x90++0x01
line.word 0x00 "FEE1ADR,Flash/EE Address Register"
group.word 0x8c++0x01
line.word 0x00 "FEE1DAT,Flash/EE Data Register"
group.byte 0x84++0x00
line.byte 0x00 "FEE1MOD,Flash/EE Mode Register"
bitfld.byte 0x00 5.--6. "     FSL       ,Flash/EE Security Lock" "00,01,10,11"
bitfld.byte 0x00 4. "             FCIE      ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "       FEWE      ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 1. " FCAE      ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.long 0xa0++0x03
line.long 0x00 "FEE1HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_127 ,Write Protect Page 120-127" "Protected,Not protected"
bitfld.long 0x00 29. "  WP116_119 ,Write Protect Page 116-119" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
bitfld.long 0x00 27. "  WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
bitfld.long 0x00 23. "  WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
bitfld.long 0x00 21. "  WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
bitfld.long 0x00 17. "  WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
bitfld.long 0x00 15. "  WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
bitfld.long 0x00 11. "  WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
bitfld.long 0x00 9. "  WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
bitfld.long 0x00 5. "  WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
bitfld.long 0x00 3. "  WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
group.long 0x9c++0x03
line.long 0x00 "FEE1PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_127 ,Write Protect Page 120-127" "Protected,Not protected"
bitfld.long 0x00 29. "  WP116_119 ,Write Protect Page 116-119" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
bitfld.long 0x00 27. "  WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
bitfld.long 0x00 23. "  WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
bitfld.long 0x00 21. "  WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
bitfld.long 0x00 17. "  WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
bitfld.long 0x00 15. "  WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
bitfld.long 0x00 11. "  WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
bitfld.long 0x00 9. "  WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
bitfld.long 0x00 5. "  WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
bitfld.long 0x00 3. "  WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
rgroup.long 0x98++0x02
line.tbyte 0x00 "FEE1SIGN,Flash/EE 24-bit Code Signature Register"
tree.end
elif (cpu()=="ADUC7032")
width 9.
group.byte 0x08++0x00 "Block 0"
line.byte 0x00 "FEE0CON,Flash/EE Control Register"
hgroup.byte 0x00++0x00
hide.byte 0x00 "FEE0STA,Flash/EE Status Register"
in
group.word 0x10++0x01
line.word 0x00 "FEE0ADR,Flash/EE Address Register"
bitfld.word 0x00 4.--7. "     SR        ,Silicon Revision" "Type6,Type6X,Reserved,Reserved,Reserved,Type7OP,Type8,Type7OP1,Type7M,Type7,Type8W,Type9,Reserved,Type8V,?..."
bitfld.word 0x00 0.--3. "       FID       ,ADuC7030 Family ID" "ADuC7030,ADuC7031,ADuC7032,ADuC7033,?..."
group.word 0x0c++0x01
line.word 0x00 "FEE0DAT,Flash/EE Data Register"
group.word 0x04++0x01
line.word 0x00 "FEE0MOD,Flash/EE Mode Register"
bitfld.word 0x00 5.--6. "     FSL       ,Flash/EE Security Lock" "00,01,10,11"
bitfld.word 0x00 4. "             FCIE      ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
bitfld.word 0x00 3. "       FEWE      ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
textline "                  "
bitfld.word 0x00 1. " FCAE      ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.long 0x20++0x03
line.long 0x00 "FEE0HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59      ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58      ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57   ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55   ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53   ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51   ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49   ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47   ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45   ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43   ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41   ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39   ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37   ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35   ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33   ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31   ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29   ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27   ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25   ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23   ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21   ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19   ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17   ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15   ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13   ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11   ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9     ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7     ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5     ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3     ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1     ,Write Protect Pages 0-1" "Protected,Not protected"
group.long 0x1c++0x03
line.long 0x00 "FEE0PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP59      ,Write Protect Page 59" "Protected,Not protected"
bitfld.long 0x00 29. "  WP58      ,Write Protect Page 58" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP56_57   ,Write Protect Pages 56-57" "Protected,Not protected"
bitfld.long 0x00 27. "  WP54_55   ,Write Protect Pages 54-55" "Protected,Not protected"
bitfld.long 0x00 26. "  WP52_53   ,Write Protect Pages 52-53" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP50_51   ,Write Protect Pages 50-51" "Protected,Not protected"
bitfld.long 0x00 24. "  WP48_49   ,Write Protect Pages 48-49" "Protected,Not protected"
bitfld.long 0x00 23. "  WP46_47   ,Write Protect Pages 46-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP44_45   ,Write Protect Pages 44-45" "Protected,Not protected"
bitfld.long 0x00 21. "  WP42_43   ,Write Protect Pages 42-43" "Protected,Not protected"
bitfld.long 0x00 20. "  WP40_41   ,Write Protect Pages 40-41" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP38_39   ,Write Protect Pages 38-39" "Protected,Not protected"
bitfld.long 0x00 18. "  WP36_37   ,Write Protect Pages 36-37" "Protected,Not protected"
bitfld.long 0x00 17. "  WP34_35   ,Write Protect Pages 34-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP32_33   ,Write Protect Pages 32-33" "Protected,Not protected"
bitfld.long 0x00 15. "  WP30_31   ,Write Protect Pages 30-31" "Protected,Not protected"
bitfld.long 0x00 14. "  WP28_29   ,Write Protect Pages 28-29" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP26_27   ,Write Protect Pages 26-27" "Protected,Not protected"
bitfld.long 0x00 12. "  WP24_25   ,Write Protect Pages 24-25" "Protected,Not protected"
bitfld.long 0x00 11. "  WP22_23   ,Write Protect Pages 22-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP20_21   ,Write Protect Pages 20-21" "Protected,Not protected"
bitfld.long 0x00 9. "  WP18_19   ,Write Protect Pages 18-19" "Protected,Not protected"
bitfld.long 0x00 8. "  WP16_17   ,Write Protect Pages 16-17" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP14_15   ,Write Protect Pages 14-15" "Protected,Not protected"
bitfld.long 0x00 6. "  WP12_13   ,Write Protect Pages 12-13" "Protected,Not protected"
bitfld.long 0x00 5. "  WP10_11   ,Write Protect Pages 10-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP8_9     ,Write Protect Pages 8-9" "Protected,Not protected"
bitfld.long 0x00 3. "  WP6_7     ,Write Protect Pages 6-7" "Protected,Not protected"
bitfld.long 0x00 2. "  WP4_5     ,Write Protect Pages 4-5" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP2_3     ,Write Protect Pages 2-3" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_1     ,Write Protect Pages 0-1" "Protected,Not protected"
rgroup.long 0x18++0x02
line.tbyte 0x00 "FEE0SIG,Flash/EE 24-bit Code Signature Register"
base 0xFFFF0E80
group.byte 0x08++0x00 "Block 1"
line.byte 0x00 "FEE1CON,Flash/EE Control Register"
hgroup.byte 0x00++0x00
hide.byte 0x00 "FEE1STA,Flash/EE Status Register"
in
group.word 0x10++0x01
line.word 0x00 "FEE1ADR,Flash/EE Address Register"
group.word 0x0c++0x01
line.word 0x00 "FEE1DAT,Flash/EE Data Register"
group.word 0x04++0x01
line.word 0x00 "FEE1MOD,Flash/EE Mode Register"
bitfld.word 0x00 5.--6. "     FSL       ,Flash/EE Security Lock" "00,01,10,11"
bitfld.word 0x00 4. "             FCIE      ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
bitfld.word 0x00 3. "       FEWE      ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
textline "                  "
bitfld.word 0x00 1. " FCAE      ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.long 0x20++0x03
line.long 0x00 "FEE1HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_127 ,Write Protect Page 120-127" "Protected,Not protected"
bitfld.long 0x00 29. "  WP116_119 ,Write Protect Page 116-119" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
bitfld.long 0x00 27. "  WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
bitfld.long 0x00 23. "  WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
bitfld.long 0x00 21. "  WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
bitfld.long 0x00 17. "  WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
bitfld.long 0x00 15. "  WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
bitfld.long 0x00 11. "  WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
bitfld.long 0x00 9. "  WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
bitfld.long 0x00 5. "  WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
bitfld.long 0x00 3. "  WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
group.long 0x1c++0x03
line.long 0x00 "FEE1PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_127 ,Write Protect Page 120-127" "Protected,Not protected"
bitfld.long 0x00 29. "  WP116_119 ,Write Protect Page 116-119" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 28. " WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
bitfld.long 0x00 27. "  WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
bitfld.long 0x00 23. "  WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 22. " WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
bitfld.long 0x00 21. "  WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
bitfld.long 0x00 17. "  WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 16. " WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
bitfld.long 0x00 15. "  WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
bitfld.long 0x00 11. "  WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 10. " WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
bitfld.long 0x00 9. "  WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
bitfld.long 0x00 5. "  WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 4. " WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
bitfld.long 0x00 3. "  WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
rgroup.long 0x18++0x02
line.tbyte 0x00 "FEE1SIG,Flash/EE 24-bit Code Signature Register"
elif (cpu()=="ADUC7039")
width 9.
group.byte 0x08++0x00
line.byte 0x00 "FEECON,Flash/EE Control Register"
hgroup.word 0x00++0x01
hide.word 0x00 "FEESTA,Flash/EE Status Register"
in
group.word 0x04++0x01
line.word 0x00 "FEEMOD,Flash/EE Mode Register"
bitfld.word 0x00 5.--6. "     FSL       ,Flash/EE Security Lock" "00,01,10,11"
bitfld.word 0x00 4. "             FCIE      ,Flash/EE Controller Command Complete Interrupt Enable" "Disabled,Enabled"
textline "                  "
bitfld.word 0x00 3. " FEWE      ,Flash/EE Erase/Write Enable" "Disabled,Enabled"
bitfld.word 0x00 1. "       FCAE      ,Flash/EE Controller Abort Enable" "Disabled,Enabled"
group.word 0x10++0x01
line.word 0x00 "FEEADR,Flash/EE Address Register"
bitfld.word 0x00 0.--3. "     FID       ,ADuC703x Family ID" "ADuC7030,Reserved,ADuC7032,ADuC7033,ADuC7034,ADuC7035,ADuC7036,ADuC7037,ADuC7038,ADuC7039,?..."    
group.word 0x0c++0x01
line.word 0x00 "FEE0DAT,Flash/EE Data Register"
rgroup.tbyte 0x18++0x02
line.tbyte 0x00 "FEE0SIGN,Flash/EE 24-bit Code Signature Register"    
group.long 0x20++0x03
line.long 0x00 "FEE0HID,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_123 ,Write Protect Pages 120-123" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 29. " WP116_119 ,Write Protect Pages 116-119" "Protected,Not protected"
bitfld.long 0x00 28. "  WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 27. " WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 23. " WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
bitfld.long 0x00 22. "  WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 21. " WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 17. " WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
bitfld.long 0x00 16. "  WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 15. " WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 11. " WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
bitfld.long 0x00 10. "  WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 9. " WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 5. " WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
bitfld.long 0x00 4. "  WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 3. " WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
group.long 0x1c++0x03
line.long 0x00 "FEE0PRO,Flash/EE Protection Register"
bitfld.long 0x00 31. " RP        ,Read Protection" "Protected,Not protected"
bitfld.long 0x00 30. "  WP120_123 ,Write Protect Pages 120-123" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 29. " WP116_119 ,Write Protect Pages 116-119" "Protected,Not protected"
bitfld.long 0x00 28. "  WP112_115 ,Write Protect Pages 112-115" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 27. " WP108_111 ,Write Protect Pages 108-111" "Protected,Not protected"
bitfld.long 0x00 26. "  WP104_107 ,Write Protect Pages 104-107" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 25. " WP100_103 ,Write Protect Pages 100-103" "Protected,Not protected"
bitfld.long 0x00 24. "  WP96_99   ,Write Protect Pages 96-99" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 23. " WP92_95   ,Write Protect Pages 92-95" "Protected,Not protected"
bitfld.long 0x00 22. "  WP88_91   ,Write Protect Pages 88-91" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 21. " WP84_87   ,Write Protect Pages 84-87" "Protected,Not protected"
bitfld.long 0x00 20. "  WP80_83   ,Write Protect Pages 80-83" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 19. " WP76_79   ,Write Protect Pages 76-79" "Protected,Not protected"
bitfld.long 0x00 18. "  WP72_75   ,Write Protect Pages 72-75" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 17. " WP68_71   ,Write Protect Pages 68-71" "Protected,Not protected"
bitfld.long 0x00 16. "  WP64_67   ,Write Protect Pages 64-67" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 15. " WP60_63   ,Write Protect Pages 60-63" "Protected,Not protected"
bitfld.long 0x00 14. "  WP56_59   ,Write Protect Pages 56-59" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 13. " WP52_55   ,Write Protect Pages 52-55" "Protected,Not protected"
bitfld.long 0x00 12. "  WP48_51   ,Write Protect Pages 48-51" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 11. " WP44_47   ,Write Protect Pages 44-47" "Protected,Not protected"
bitfld.long 0x00 10. "  WP40_43   ,Write Protect Pages 40-43" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 9. " WP36_39   ,Write Protect Pages 36-39" "Protected,Not protected"
bitfld.long 0x00 8. "  WP32_35   ,Write Protect Pages 32-35" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 7. " WP28_31   ,Write Protect Pages 28-31" "Protected,Not protected"
bitfld.long 0x00 6. "  WP24_27   ,Write Protect Pages 24-27" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 5. " WP20_23   ,Write Protect Pages 20-23" "Protected,Not protected"
bitfld.long 0x00 4. "  WP16_19   ,Write Protect Pages 16-19" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 3. " WP12_15   ,Write Protect Pages 12-15" "Protected,Not protected"
bitfld.long 0x00 2. "  WP8_11    ,Write Protect Pages 8-11" "Protected,Not protected"
textline "                  "
bitfld.long 0x00 1. " WP4_7     ,Write Protect Pages 4-7" "Protected,Not protected"
bitfld.long 0x00 0. "  WP0_3     ,Write Protect Pages 0-3" "Protected,Not protected"
width 0xB
endif
tree.end
tree "ADC (Analog-to-Digital Converter)"
base d:0xffff0500
sif (cpu()=="ADUC7030"||cpu()=="ADUC7033"||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 9.
rgroup.word 0x00++0x01
line.word 0x00 "ADCSTA,ADC Status Register"
bitfld.word 0x00 15. "     ADCCALST ,ADC Calibration Status" "Not completed,Completed"
bitfld.word 0x00 14. "    ADCTEMPERR ,ADC Temperature Conversion Error" "No error,Error"
bitfld.word 0x00 13. "           ADCVCERR ,ADC Voltage Conversion Error" "No error,Error"
textline "                  "
bitfld.word 0x00 12. " ADCCCERR ,ADC Current Conversion Error" "No error,Error"
bitfld.word 0x00 4. "         CCADCCT    ,Current Channel ADC Comparator Threshold" "Not exceeded,Exceeded"
bitfld.word 0x00 3. "       CCADCOR  ,Current Channel ADC Over-Range" "Not over-ranged,Over-ranged"
textline "                  "
bitfld.word 0x00 2. " TCRR     ,Temperature Conversion Result Ready" "Not ready,Ready"
bitfld.word 0x00 1. "        VCRR       ,Voltage Conversion Result Ready" "Not ready,Ready"
bitfld.word 0x00 0. "          CCRR     ,Current Conversion Result Ready" "Not ready,Ready"
group.byte 0x04++0x00
line.byte 0x00 "ADCMSKI,ADC Interrupt Mask Register"
bitfld.byte 0x00 4. "     CCADCCTE ,Current Channel ADC Comparator Threshold Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "         CCADCORE   ,Current Channel ADC Over-Range Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "           TCRRE    ,Temperature Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 1. " VCRRE    ,Voltage Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "         CCRRE      ,Current Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
group.byte 0x08++0x00
line.byte 0x00 "ADCMDE,ADC Mode Register"
bitfld.byte 0x00 6. "     20KR     ,20KOhm Resistor Select" "Not selected,Selected"
bitfld.byte 0x00 5. "     LPMRS      ,Low Power Mode Reference Select" "Low power,Precision"
bitfld.byte 0x00 3.--4. "          ADCPMC   ,ADC Power Mode Configuration" "Normal,Low power,Low power-plus,?..."
textline "                  "
bitfld.byte 0x00 0.--2. " ADCOMC   ,ADC Operation Mode Configuration" "Power-down,Continuous,Single,Idle,Self-offset,Self gain,Zero-scale,Full-scale"
group.word 0x0c++0x01
line.word 0x00 "ADC0CON,Current Channel ADC Control Register"
bitfld.word 0x00 15. "     CCADCE   ,Current Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "         IINCSE     ,IIN Current Source Enable" "Off,IIN+,IIN-,Both"
bitfld.word 0x00 9. "               CCADC    ,Current Channel ADC Output Coding" "2's complement,Unipolar"
textline "                  "
bitfld.word 0x00 6.--7. " CCADCIS  ,Current Channel ADC Input Select" "IIN+/IN-,IIN-/IIN-,Test voltage,?..."
bitfld.word 0x00 4.--5. "     CCADCRS    ,Current Channel ADC Reference Select" "Internal,External,External div by 2,Div by 2"
bitfld.word 0x00 0.--3. "  CCADCGS  ,Current Channel ADC Gain Select" "1,2,4,8,16,32,64,128,256,512,?..."
group.word 0x10++0x01
line.word 0x00 "ADC1CON,Voltage/Temperature Channel ADC Control Register"
bitfld.word 0x00 15. "     VTCADCE  ,Voltage/Temperature Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "         VTEMPE     ,VTEMP Current Source Enable" "Off,VTEMP+,GND_SW,Both"
bitfld.word 0x00 9. "             VTCADCOC ,Voltage/Temperature Channel ADC Output Coding" "2's complement,Unipolar"
textline "                  "
bitfld.word 0x00 6.--7. " VTCADCIS ,Voltage/Temperature Channel ADC Input Select" "VBAT/24 / AGND,VTEMP / GND_SW,Internal sensor,Internal short"
bitfld.word 0x00 4.--5. "  VTCADCRS   ,Voltage Temperature Channel ADC Reference Select" "Internal,External,External div by 2,Div by 2"
group.word 0x18++0x01
line.word 0x00 "ADCFLT,ADC Filter Register"
bitfld.word 0x00 15. "     CE       ,Chop Enable" "Disabled,Enabled"
bitfld.word 0x00 14. "         RA         ,Running Average" "Disabled,Enabled"
hexmask.word.byte 0x00 8.--13. 1. "           AF       ,Averaging Factor"
textline "                  "
bitfld.word 0x00 7. " S3M      ,Sinc3 Modify" "Standard,Increased"
hexmask.word.byte 0x00 0.--6. 1. "        S3DF       ,Sinc3 Decimation Factor"
group.byte 0x1c++0x00
line.byte 0x00 "ADCCFG,ADC Configuration Register"
bitfld.byte 0x00 7. "     AGSE     ,Analog Ground Switch Enable" "Disabled,Enabled"
bitfld.byte 0x00 5.--6. "         CCAE       ,Current Channel (32-bit) Accumulator Enable" "Disabled,Active,Active,?..."
bitfld.byte 0x00 3.--4. "           CCADCCE  ,Current Channel ADC Comparator Enable" "Disabled,Active,Count Mode,Count Mode"
textline "                  "
bitfld.byte 0x00 2. " CCADCORE ,Current Channel ADC Over Range Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "         CCADCRCE   ,Current Channel ADC Result Counter Enable" "Disabled,Enabled"
hgroup.word 0x20++0x01
hide.word 0x00 "ADC0DAT,Current Channel ADC Data Register"
in
hgroup.word 0x24++0x01
hide.word 0x00 "ADC1DAT,Voltage Channel ADC Data Register"
in
hgroup.word 0x28++0x01
hide.word 0x00 "ADC2DAT,Temperature Channel ADC Data Register"
in
group.word 0x30++0x01
line.word 0x00 "ADC0OF,Current Channel ADC Offset Calibration Register"
group.word 0x34++0x01
line.word 0x00 "ADC1OF,Voltage Channel Offset Calibration Register"
group.word 0x38++0x01
line.word 0x00 "ADC2OF,Temperature Channel Offset Calibration Register"
group.word 0x3c++0x01
line.word 0x00 "ADC0GN,Current Channel ADC Gain Calibration Register"
group.word 0x40++0x01
line.word 0x00 "ADC1GN,Voltage Channel Gain Calibration Register"
group.word 0x44++0x01
line.word 0x00 "ADC2GN,Temperature Channel Gain Calibration Register"
group.word 0x48++0x01
line.word 0x00 "ADC0RCL,Current Channel ADC Result Counter Limit Register"
rgroup.word 0x4c++0x01
line.word 0x00 "ADC0RCV,Current Channel ADC Result Count Register"
group.word 0x50++0x01
line.word 0x00 "ADC0TH,Current Channel ADC Threshold Register"
group.byte 0x54++0x00
line.byte 0x00 "ADC0TCL,Current Channel ADC Threshold Count Limit Register"
rgroup.byte 0x58++0x00
line.byte 0x00 "ADC0THV,Current Channel ADC Threshold Count Register"
rgroup.long 0x5c++0x03
line.long 0x00 "ADC0ACC,Current Channel ADC Accumulator Register"
group.long 0x7c++0x03
line.long 0x00 "ADCREF,Low Power Voltage Reference Scaling Factor Register"

elif (cpu()=="ADUC7032")
width 9.
rgroup.word 0x00++0x01
line.word 0x00 "ADCSTA,ADC Status Register"
bitfld.word 0x00 15. "     ADCCALST  ,ADC Calibration Status" "Not completed,Completed"
bitfld.word 0x00 14. "    ADCTEMPERR ,ADC Temperature Conversion Error" "No error,Error"
bitfld.word 0x00 13. "      ADCVCERR   ,ADC Voltage Conversion Error" "No error,Error"
textline "                  "
bitfld.word 0x00 12. " ADCCCERR  ,ADC Current Conversion Error" "No error,Error"
bitfld.word 0x00 9. "         ADCFIFOEF  ,ADCFIFO Error Flag" "No error,Error"
bitfld.word 0x00 8. "      ADCFIFOEMF ,ADC FIFO Empty Flag" "No error, Error"
textline "                  "
bitfld.word 0x00 7. " ADCFIFOFF ,ADC FIFO Full Flag" "No error,Error"
bitfld.word 0x00 6. "         ACTE       , Accumulator Comparator Threshold Exceeded" "Not exceeded,Exceeded"
bitfld.word 0x00 4. "  CCADCCT    ,Current Channel ADC Comparator Threshold" "Not exceeded,Exceeded"
textline "                  "
bitfld.word 0x00 3. " CCADCOR   ,Current Channel ADC Over-Range" "Not over-ranged,Over-ranged"
bitfld.word 0x00 2. "  TCRR       ,Temperature Conversion Result Ready" "Not ready,Ready"
bitfld.word 0x00 1. "     VCRR       ,Voltage Conversion Result Ready" "Not ready,Ready"
textline "                  "
bitfld.word 0x00 0. " CCRR      ,Current Conversion Result Ready" "Not ready,Ready"
group.byte 0x04++0x00
line.byte 0x00 "ADCMSKI,ADC Interrupt Mask Register"
bitfld.byte 0x00 7. " ADCFIFOFF ,ADC FIFO Full Flag Enable" "Disabled,Enabled"
bitfld.byte 0x00 6. "         ACTE       , Accumulator Comparator Threshold Exceeded Enable" "Disabled,Enabled"
bitfld.byte 0x00 4. "      CCADCCT    ,Current Channel ADC Comparator Threshold Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 3. " CCADCOR   ,Current Channel ADC Over-Range Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "         TCRR       ,Temperature Conversion Result Ready Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. "      VCRR       ,Voltage Conversion Result Ready Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 0. " CCRR      ,Current Conversion Result Ready Enable" "Disabled,Enabled"
group.byte 0x08++0x00
line.byte 0x00 "ADCMDE,ADC Mode Register"
bitfld.byte 0x00 6. "     20KR      ,20KOhm Resistor Select" "Not selected,Selected"
bitfld.byte 0x00 5. "     LPMRS      ,Low Power Mode Reference Select" "Low power,Precision"
bitfld.byte 0x00 3.--4. "     ADCPMC     ,ADC Power Mode Configuration" "Normal,Low power,Low power-plus,Not defined"
textline "                  "
bitfld.byte 0x00 0.--2. " ADCOMC    ,ADC Operation Mode Configuration" "Power-down,Continuous,Single,Idle,Self-offset,Self gain,Zero-scale,Full-scale"
group.word 0x0c++0x01
line.word 0x00 "ADC0CON,Current Channel ADC Control Register"
bitfld.word 0x00 15. "     CCADCE  ,Current Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "           IINCSE  ,IIN Current Source Enable" "Off,IIN+,IIN-,Both"
textline "                  "
bitfld.word 0x00 9. " CCADC   ,Current Channel ADC Output Coding" "2's complement,Unipolar"
bitfld.word 0x00 6.--7. "     CCADCIS ,Current Channel ADC Input Select" "IIN+/IN-,IIN-/IIN-,Test voltage,Not defined"
textline "                  "
bitfld.word 0x00 4.--5. " CCADCRS ,Current Channel ADC Reference Select" "Internal,External,External div by 2,Div by 2"
bitfld.word 0x00 0.--3. "  CCADCGS ,Current Channel ADC Gain Select" "1,2,4,8,16,32,64,128,256,512,?..."
group.word 0x10++0x01
line.word 0x00 "ADC1CON,Voltage Channel ADC Control Register"
bitfld.word 0x00 15. "     VCADCE  ,Voltage Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 9. "           VCADCOC ,Voltage Channel ADC Output Coding" "2's complement,Unipolar"
textline "                  "
bitfld.word 0x00 6.--7. " VCADCIS ,Voltage Channel ADC Input Select" "VBAT/24 / AGND,Reserved,Reserved,Internal short"
bitfld.word 0x00 4.--5. "     VCADCRS ,Voltage Channel ADC Reference Select" "Internal,External,External div by 2,Div by 2"
group.word 0x14++0x01
line.word 0x00 "ADC2CON,Temperature Channel ADC Control Register"
bitfld.word 0x00 15. "     TCADCE  ,Temperature Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "           VTEMPE  ,VTEMP Current Source Enable" "Off,VTEMP+,GND_SW,Both"
textline "                  "
bitfld.word 0x00 9. " TCADCOC ,Temperature Channel ADC Output Coding" "2's complement,Unipolar"
bitfld.word 0x00 6.--7. "     TCADCIS ,Temperature Channel ADC Input Select" "Internal,External,Shorted input,ADC Ref/136"
textline "                  "
bitfld.word 0x00 4.--5. " TCADCRS ,Temperature Channel ADC Reference Select" "Internal,External,External div by 2,Div by 2"
group.word 0x18++0x01
line.word 0x00 "ADCFLT,ADC Filter Register"
bitfld.word 0x00 15. "     CE       ,Chop Enable" "Disabled,Enabled"
bitfld.word 0x00 14. "   RA       ,Running Average" "Disabled,Enabled"
hexmask.word.byte 0x00 8.--13. 1. "  AF       ,Averaging Factor"
textline "                  "
bitfld.word 0x00 7. " S3M      ,Sinc3 Modify" "Standard,Increased"
hexmask.word.byte 0x00 0.--6. 1. "  S3DF     ,Sinc3 Decimation Factor"
group.byte 0x1c++0x00
line.byte 0x00 "ADCCFG,ADC Configuration Register"
bitfld.byte 0x00 7. "     AGSE     ,Analog Ground Switch Enable" "Disabled,Enabled"
bitfld.byte 0x00 5.--6. "   CCAE     ,Current Channel (32-bit) Accumulator Enable" "Disabled,Active,Active,Enabled"
bitfld.byte 0x00 3.--4. "  CCADCCE  ,Current Channel ADC Comparator Enable" "Disabled,Active,Count mode (reset),Count mode (decrement)"
textline "                  "
bitfld.byte 0x00 2. " CCADCORE ,Current Channel ADC Over Range Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. "   ADCFIFOE , ADC FIFO Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "  CCADCRCE ,Current Channel ADC Result Counter Enable" "Disabled,Enabled"
rgroup.word 0x20++0x01
line.word 0x00 "ADC0DAT,Current Channel ADC Data Register"
rgroup.word 0x24++0x01
line.word 0x00 "ADC1DAT,Voltage Channel ADC Data Register"
rgroup.word 0x28++0x01
line.word 0x00 "ADC2DAT,Temperature Channel ADC Data Register"
hgroup.long 0x02C++0x03
hide.long 0x00 "ADCFIFO,ADC FIFO Register"
in
group.word 0x30++0x01
line.word 0x00 "ADC0OF,Current Channel ADC Offset Calibration Register"
group.word 0x34++0x01
line.word 0x00 "ADC1OF,Voltage Channel Offset Calibration Register"
group.word 0x38++0x01
line.word 0x00 "ADC2OF,Temperature Channel Offset Calibration Register"
group.word 0x3c++0x01
line.word 0x00 "ADC0GN,Current Channel ADC Gain Calibration Register"
group.word 0x40++0x01
line.word 0x00 "ADC1GN,Voltage Channel Gain Calibration Register"
group.word 0x44++0x01
line.word 0x00 "ADC2GN,Temperature Channel Gain Calibration Register"
group.word 0x48++0x01
line.word 0x00 "ADC0RCL,Current Channel ADC Result Counter Limit Register"
rgroup.word 0x4c++0x01
line.word 0x00 "ADC0RCV,Current Channel ADC Result Count Register"
group.word 0x50++0x01
line.word 0x00 "ADC0TH,Current Channel ADC Threshold Register"
group.byte 0x54++0x00
line.byte 0x00 "ADC0TCL,Current Channel ADC Threshold Count Limit Register"
rgroup.byte 0x58++0x00
line.byte 0x00 "ADC0THV,Current Channel ADC Threshold Count Register"
rgroup.long 0x5c++0x03
line.long 0x00 "ADC0ACC,Current Channel ADC Accumulator Register"
group.long 0x60++0x03
line.long 0x00 "ADC0ATH,Current Channel ADC Accumulator Threshold Register"
rgroup.long 0x7c++0x03
line.long 0x00 "ADCREF,Low Power Voltage Reference Scaling Factor Register"

elif (cpu()=="ADUC7039")
width 9.
rgroup.word 0x00++0x01
line.word 0x00 "ADCSTA,ADC Status Register"
bitfld.word 0x00 15. "     ADCCALST  ,ADC Calibration Status" "Not completed,Completed"
bitfld.word 0x00 13. "             ADCVCERR  ,ADC Voltage Conversion Error" "No error,Error"
textline "                  "
bitfld.word 0x00 12. " ADCCCERR  ,ADC Current Conversion Error" "No error,Error"
bitfld.word 0x00 5. "                  ADCCONT   ,ADC Continuous Interrupt" "No interrupt,Interrupt"
textline "                  "
bitfld.word 0x00 4. " CCADCCT   ,Current Channel ADC Comparator Threshold" "Not exceeded,Exceeded"
bitfld.word 0x00 2. "              TCRR      ,Temperature Conversion Result Ready" "Not ready,Ready"
textline "                  "
bitfld.word 0x00 1. " VCRR      ,Voltage Conversion Result Ready" "Not ready,Ready"
bitfld.word 0x00 0. "                 CCRR      ,Current Conversion Result Ready" "Not ready,Ready"
group.byte 0x04++0x00
line.byte 0x00 "ADCMSKI,ADC Interrupt Mask Register"
bitfld.byte 0x00 5. "     ADCCONT   ,ADC Continuous Interrupt" "Disabled,Enabled"
bitfld.byte 0x00 4. "                  CCADCCT   ,Current Channel ADC Comparator Threshold Interrupt Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 2. " TCRR      ,Temperature Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. "                  VCRR      ,Voltage Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 0. " CCRR      ,Current Conversion Result Ready Interrupt Enable" "Disabled,Enabled"
group.byte 0x08++0x00
line.byte 0x00 "ADCMDE,ADC Mode Register"
bitfld.byte 0x00 5. "     CINT      ,ADC enable continuous Interrupt" "Disabled,Enabled"
bitfld.byte 0x00 3. "                  ADCPWR    ,ADC Power Mode Configuration" "Normal,Low power"
textline "                  "
bitfld.byte 0x00 0.--2. " ADCOMC    ,ADC Operation Mode Configuration" "Power-down,Continuous,Single,Idle,Reserved,Reserved,Zero-scale,Full-scale"
if ((d.w(d:0xffff0500+0xc)&0x10)==0x10)
group.word 0x0c++0x01
line.word 0x00 "ADC0CON,Current Channel ADC Control Register"
bitfld.word 0x00 15. "     CCADCE    ,Current Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "                  IINCSE    ,IIN Current Source Enable" "Off,IIN+,IIN-,Both"
textline "                  "
bitfld.word 0x00 9. " CCADC     ,Current Channel ADC Output Coding" "2's complement,Unipolar"
bitfld.word 0x00 6.--7. "            CCADCIS   ,Current Channel ADC Input Select" "IIN+/IN-,IIN-/IIN-,VREF/136 V,?..."
textline "                  "
bitfld.word 0x00 4. " CCADCRS   ,Current Channel ADC Reference Select" "Internal 1.2V,REG_AVDD/AGND div by 2"
bitfld.word 0x00 0.--3. "    CCADCGS   ,Current Channel ADC Gain Select" "1,2,4,8,16,32,64,128,256,512,?..."
else
group.word 0x0c++0x01
line.word 0x00 "ADC0CON,Current Channel ADC Control Register"
bitfld.word 0x00 15. "     CCADCE    ,Current Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "                  IINCSE    ,IIN Current Source Enable" "Off,IIN+,IIN-,Both"
textline "                  "
bitfld.word 0x00 9. " CCADC     ,Current Channel ADC Output Coding" "2's complement,Unipolar"
bitfld.word 0x00 6.--7. "            CCADCIS   ,Current Channel ADC Input Select" "IIN+/IN-,IIN-/IIN-,REG_AVDD,?..."
textline "                  "
bitfld.word 0x00 4. " CCADCRS   ,Current Channel ADC Reference Select" "Internal 1.2V,REG_AVDD/AGND div by 2"
bitfld.word 0x00 0.--3. "    CCADCGS   ,Current Channel ADC Gain Select" "1,2,4,8,16,32,64,128,256,512,?..."
endif        
group.word 0x10++0x01
line.word 0x00 "ADC1CON,Voltage/Temperature Channel ADC Control Register"
bitfld.word 0x00 15. "     VTCADCE   ,Voltage/Temperature Channel ADC Enable" "Disabled,Enabled"
bitfld.word 0x00 13.--14. "                  VTEMPE    ,VTEMP Current Source Enable" "Off,VTEMP+,GND_SW,Both"
textline "                  "
bitfld.word 0x00 9. " VTCADCOC  ,Voltage/Temperature Channel ADC Output Coding" "2's complement,Unipolar"
bitfld.word 0x00 6.--7. "            VTCADCIS  ,Voltage/Temperature Channel ADC Input Select" "VBAT/24 / AGND,VTEMP / GND_SW,Internal sensor,Internal short"
textline "                  "
bitfld.word 0x00 4. " VTCADCRS  ,Voltage Temperature Channel ADC Reference Select" "Internal 1.2V,REG_AVDD/GND_SW div by 2"
group.word 0x18++0x01
line.word 0x00 "ADCFLT,ADC Filter Register"
bitfld.word 0x00 15. "     CE        ,Chop Enable" "Disabled,Enabled"
bitfld.word 0x00 14. "                  RA        ,Running Average" "Disabled,Enabled"
textline "                  "
bitfld.word 0x00 8.--13. " AF        ,Averaging Factor" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
bitfld.word 0x00 7. "                        S3M       ,Sinc3 Modify" "Standard,Increased"
textline "                  "
hexmask.word.byte 0x00 0.--6. 1. " S3DF      ,Sinc3 Decimation Factor"
group.byte 0x1c++0x00
line.byte 0x00 "ADCCFG,ADC Configuration Register"
bitfld.byte 0x00 7. "     AGSE      ,Analog Ground Switch Enable" "Disabled,Enabled"
bitfld.byte 0x00 4. "                  CCADCACCE ,Current Channel ADC Accumulator Enable" "Disabled,Enabled"
textline "                  "
bitfld.byte 0x00 3. " CCADCCMPE ,Current Channel ADC Comparator Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "                  CCADCRCE  ,Current Channel ADC Result Counter Enable" "Disabled,Enabled"
hgroup.word 0x20++0x01
hide.word 0x00 "ADC0DAT,Current Channel ADC Data Register"
in
hgroup.word 0x24++0x01
hide.word 0x00 "ADC1DAT,Voltage Channel ADC Data Register"
in
group.word 0x30++0x01
line.word 0x00 "ADC0OF,Current Channel ADC Offset Calibration Register"
group.word 0x34++0x01
line.word 0x00 "ADC1OF,Voltage Channel Offset Calibration Register"
group.word 0x38++0x01
line.word 0x00 "ADC2OF,Temperature Channel Offset Calibration Register"
group.word 0x3c++0x01
line.word 0x00 "ADC0GN,Current Channel ADC Gain Calibration Register"
group.word 0x40++0x01
line.word 0x00 "ADC1GN,Voltage Channel Gain Calibration Register"
group.word 0x44++0x01
line.word 0x00 "ADC2GN,Temperature Channel Gain Calibration Register"
group.word 0x48++0x01
line.word 0x00 "ADC0RCL,Current Channel ADC Result Counter Limit Register"
rgroup.word 0x4c++0x01
line.word 0x00 "ADC0RCV,Current Channel ADC Result Count Register"
group.word 0x50++0x01
line.word 0x00 "ADC0TH,Current Channel ADC Threshold Register"
rgroup.long 0x5c++0x03
line.long 0x00 "ADC0ACC,Current Channel ADC Accumulator Register"
width 0xB    
endif
tree.end
tree "System Clocks"
base d:0xffff0400
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033"))
width 10.
group.long 0x00++0x03
line.long 0x00 "PLLSTA,PLL Status Register"
bitfld.long 0x00 2. " XTALC ,XTAL Clock" "Low,High"
bitfld.long 0x00 1. "       PLLLOCK ,PLL Lock Status Bit" "Not locked,Locked"
eventfld.long 0x00 0. "  PLLINT ,PLL Interrupt" "No interrupt,Interrupt"
wgroup.long 0x10++0x03
line.long 0x00 "PLLKEY0,PLLCON Pre-write Key 0 Register"
group.byte 0x14++0x00
line.byte 0x00 "PLLCON,PLLCON Register"
bitfld.byte 0x00 0.--1. "     PLLCS ,PLL Clock Source" "3% 131kHz,1% 131kHz,External,?..."
wgroup.long 0x18++0x03
line.long 0x00 "PLLKEY1,PLLCON Post-write Key 1 Register"
wgroup.long 0x04++0x03
line.long 0x00 "POWKEY0,POWCON Pre-write Key 0 Register"
wgroup.long 0x0c++0x03
line.long 0x00 "POWKEY1,POWCON Post-write Key 1 Register"
group.byte 0x08++0x00
line.byte 0x00 "POWCON,Power Control and Core Speed Control Register"
bitfld.byte 0x00 7. "     PRE131KHZE ,1% Precision 131kHz Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 6. "        XTALPD ,XTAL External Crystal Enable" "Disabled,Enabled"
bitfld.byte 0x00 5. "  PLLPD      ,PLL Enable" "Disabled,Enabled"
textline "                   "
bitfld.byte 0x00 4. " PPD        ,Peripherals Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "        CPD    ,Core Enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. "  CDCCD      ,CD Core Clock Divider" "20.48 MHz,10.24 MHz,5.12 MHz,2.56 MHz,1.28 MHz,640 kHz,320 kHz,160 kHz"
group.byte 0x2c++0x00
line.byte 0x00 "OSC0TRM,3% Low Power Oscillator Trim Bits Register"
bitfld.byte 0x00 0.--3. "     UTB        ,User Trim Bits" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x40++0x00
line.byte 0x00 "OSC0CON,3% Low Power Oscillator Calibration Control Register"
bitfld.byte 0x00 4. "     CS         ,Calibration Source" "Internal,External"
bitfld.byte 0x00 3. "        CR     ,Calibration Reset" "No reset,Reset"
bitfld.byte 0x00 2. "  OSCVAL1CLR ,OSCVAL1 Clear" "Not cleared,Cleared"
textline "                   "
bitfld.byte 0x00 1. " OSCVAL0CLR ,OSCVAL0 Clear" "Not cleared,Cleared"
bitfld.byte 0x00 0. "     CALEN  ,Calibration Enable" "Disabled,Enabled"
rgroup.byte 0x44++0x00
line.byte 0x00 "OSC0STA,3% Low Power Oscillator Calibration Status Register"
bitfld.byte 0x00 2.--3. "     CSC        ,Current State of Calibration" "Idle,Counter enabled,Counting,Finished"
bitfld.byte 0x00 1. " CALEN  ,Calibration Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "  CALPROG    ,Set if Calibration is in Progress" "Completed,Not completed"
rgroup.word 0x48++0x01
line.word 0x00 "OSC0VAL0,3% Low Power Oscillator Calibration Counter 0 Register"
rgroup.word 0x4c++0x01
line.word 0x00 "OSC0VAL1,3% Low Power Oscillator Calibration Counter 1 Register"
elif (cpu()=="ADUC7032"||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 10.
group.byte 0x00++0x00
line.byte 0x00 "PLLSTA,PLL Status Register"
bitfld.byte 0x00 2. "     XTALC ,XTAL Clock" "Low,High"
bitfld.byte 0x00 1. "   PLLLOCK ,PLL Lock Status Bit" "Not locked,Locked"
eventfld.byte 0x00 0. "  PLLINT ,PLL Interrupt" "No interrupt,Interrupt"
wgroup.long 0x10++0x03
line.long 0x00 "PLLKEY0,PLLCON Pre-write Key 0 Register"
group.byte 0x14++0x00
line.byte 0x00 "PLLCON,PLLCON Register"
bitfld.byte 0x00 0.--1. "     PLLCS ,PLL Clock Source" "Low power,Precision,External,?..."
wgroup.long 0x18++0x03
line.long 0x00 "PLLKEY1,PLLCON Post-write Key 1 Register"
wgroup.long 0x04++0x03
line.long 0x00 "POWKEY0,POWCON Pre-write Key 0 Register"
wgroup.long 0x0c++0x03
line.long 0x00 "POWKEY1,POWCON Post-write Key 1 Register"
group.byte 0x08++0x00
line.byte 0x00 "POWCON,Power Control and Core Speed Control Register"
bitfld.byte 0x00 7. "     PRE131KHZE ,Precision 131kHz Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 6. "        XTALPD ,XTAL Power Enable" "Disabled,Enabled"
bitfld.byte 0x00 5. "  PLLPD      ,PLL Enable" "Disabled,Enabled"
textline "                   "
bitfld.byte 0x00 4. " PPD        ,Peripherals Enable" "Disabled,Enabled"
bitfld.byte 0x00 3. "        CPD    ,Core Enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. "  CDCCD      ,CD Core Clock Divider" "20.48 MHz,10.24 MHz,5.12 MHz,2.56 MHz,1.28 MHz,640 kHz,320 kHz,160 kHz"
group.byte 0x2c++0x00
line.byte 0x00 "OSC0TRM,Low Power Oscillator Trim Bits Register"
bitfld.byte 0x00 0.--3. "     UTB        ,User Trim Bits" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x40++0x00
line.byte 0x00 "OSC0CON,Low Power Oscillator Calibration Control Register"
bitfld.byte 0x00 4. "     CS         ,Calibration Source" "Internal,External"
bitfld.byte 0x00 3. "        CR     ,Calibration Reset" "No reset,Reset"
bitfld.byte 0x00 2. "  OSCVAL1CLR ,OSCVAL1 Clear" "Not cleared,Cleared"
textline "                   "
bitfld.byte 0x00 1. " OSCVAL0CLR ,OSCVAL0 Clear" "Not cleared,Cleared"
bitfld.byte 0x00 0. "     CALEN  ,Calibration Enable" "Disabled,Enabled"
rgroup.byte 0x44++0x00
line.byte 0x00 "OSC0STA,Low Power Oscillator Calibration Status Register"
sif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
bitfld.byte 0x00 1. "     CALCOMPL   ,Calibration complete" "Not completed,Completed"
bitfld.byte 0x00 0. "   CALBSY ,Calibration busy" "Completed,Busy"    
else
bitfld.byte 0x00 2.--3. "     CSC        ,Current State of Calibration" "Idle,Counter enabled,Counting,Finished"
bitfld.byte 0x00 1. " CALEN  ,Calibration Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. "  CALPROG    ,Set if Calibration is in Progress" "Completed,Not completed"
endif
rgroup.word 0x48++0x01
line.word 0x00 "OSC0VAL0,Low Power Oscillator Calibration Counter 0 Register"
hexmask.word 0x00 0.--9. 1. "     OSVAL0     , Low Power Oscillator Calibration Counter 0 Value"
sif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
hgroup.word 0x4c++0x01
hide.word 0x00 "OSC0VAL1,Low Power Oscillator Calibration Counter 1 Register"
in        
else        
rgroup.word 0x4c++0x01
line.word 0x00 "OSC0VAL1,Low Power Oscillator Calibration Counter 1 Register"
hexmask.word 0x00 0.--10. 1. "     OSVAL1     , Low Power Oscillator Calibration Counter 1 Value"
endif

elif (cpu()=="ADUC7039")
width 10.
group.byte 0x00++0x00
line.byte 0x00 "PLLSTA,PLL Status Register"
bitfld.byte 0x00 1. "     PLLLOCK    ,PLL Lock Status Bit" "Not locked,Locked"
eventfld.byte 0x00 0. "  PLLINT     ,PLL Interrupt" "No interrupt,Interrupt"
wgroup.long 0x10++0x03
line.long 0x00 "PLLKEY0,PLLCON Prewrite Key 0 Register"
wgroup.long 0x18++0x03
line.long 0x00 "PLLKEY1,PLLCON Postwrite Key 1 Register"    
group.byte 0x14++0x00
line.byte 0x00 "PLLCON,PLLCON Register"
bitfld.byte 0x00 0. "     PLLCS      ,PLL Clock Source" "Low power,Precision"
wgroup.long 0x04++0x03
line.long 0x00 "POWKEY0,POWCON Pre-write Key 0 Register"
wgroup.long 0x0c++0x03
line.long 0x00 "POWKEY1,POWCON Post-write Key 1 Register"
group.word 0x08++0x01
line.word 0x00 "POWCON,Power Control and Core Speed Control Register"
bitfld.word 0x00 8. "     PRECOSC    ,Precision Oscillator Enable" "Power-Down,Power-Up"
bitfld.word 0x00 5. "  PLLPD      ,PLL Power Down" "Power-Down,Power-Up"
textline "                   "
bitfld.word 0x00 4. " PPD        ,Peripherals (SRAM, Flash/EE, GPIO and SPI) Power Down" "Power-Down,Power-Up"
bitfld.word 0x00 3. "  CPD        ,Core Power Down" "Power-Down,Power-Up"
group.byte 0x40++0x00
line.byte 0x00 "OSCCON,Low Power Oscillator Calibration Control Register"
bitfld.byte 0x00 3. "     CR         ,Calibration Reset" "No reset,Reset"
bitfld.byte 0x00 2. "    OSCVAL1CLR ,OSCVAL1 Clear" "No effect,Clear"
textline "                   "
bitfld.byte 0x00 1. " OSCVAL0CLR ,OSCVAL0 Clear" "No effect,Clear"
bitfld.byte 0x00 0. "   CALEN      ,Calibration Enable" "Disabled,Enabled"
hgroup.byte 0x44++0x00
hide.byte 0x00 "OSCSTA,Low Power Oscillator Calibration Status Register"
in
rgroup.word 0x48++0x01
line.word 0x00 "OSC0VAL0,Low Power Oscillator Calibration Counter 0 Register"
hgroup.word 0x4c++0x01
hide.word 0x00 "OSC0VAL1,Low Power Oscillator Calibration Counter 1 Register"
in
group.byte 0x80++0x0
line.byte 0x00 "LOCCON,LIN oscillator calibration control register"
bitfld.byte 0x00 1.--2. "     STEPSIZE   ,Oscillator Calibration step size" "1,2,3,4"
bitfld.byte 0x00 0. "           CALLINEN   ,Oscillator Calibration via LIN enabled" "Disabled,Enabled"
group.byte 0x84++0x0        
line.byte 0x00 "LOCUSR0,Low power oscillator user trim register"
group.word 0x88++0x1    
line.word 0x00  "LOCUSR1,Precision oscillator user trim register"
group.tbyte 0x8C++0x2    
line.tbyte 0x00 "LOCMAX,LIN oscillator calibration, maximum baudrate tolerance (LINBR + x)"
group.tbyte    0x90++0x2
line.tbyte 0x00 "LOCMIN,LIN oscillator calibration, minimum baudrate tolerance (LINBR - x)"
hgroup.byte 0x94++0x0    
hide.byte 0x00 "LOCSTA,LIN oscillator calibration status register"
in
rgroup.byte 0x98++0x0     
line.byte 0x00 "LOCVAL0,Low power oscillator current trim value register"
rgroup.word 0x9C++0x1
line.word 0x00 "LOCVAL1,Precision oscillator current trim value register"
wgroup.word 0xA0++0x1
line.word 0x00 "LOCKEY,LIN oscillator calibration lock register"
width 0xB    
endif
tree.end
tree "Interrupt System"
base d:0xffff0000
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033"))
width 0x08
rgroup.long 0x0000--0x0007
line.long 0x00 "IRQSTA,IRQ Status Register"
bitfld.long 0x00 18. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 16. "  STA_HV  ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 14. " STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 12. "  STA_SPI ,SPI Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 11. " STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 9. "  STA_PLL ,PLL Lock Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 8. " STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 6. "  STA_T4  ,Timer 4 - STI Timer Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 5. " STA_T3    ,Timer 3 - Watchdog Timer" "Not requested,Requested"
bitfld.long 0x00 4. "  STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 3. "  STA_T1  ,Timer 1 - Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 2. " STA_T0    ,Timer 0 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 1. "  STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 0. "  STA_ALL ,All Interrupts OR'ed Status" "Not requested,Requested"
;rgroup.long 0x04++0x03
line.long 0x04 "IRQSIG,IRQ Signals Register"
bitfld.long 0x04 18. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 16. "  SIG_HV  ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 14. " SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 12. "  SIG_SPI ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 11. " SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 6. "  SIG_T4  ,Timer 4 - STI Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 5. " SIG_T3    ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1  ,Timer 1 - Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 2. " SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 0. "  SIG_ALL ,All Interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0008++0x03
line.long 0x00 "IRQEN,IRQ Enable Register"
bitfld.long 0x00 18. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "       EN_HV   ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 14. " EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 12. "       EN_SPI  ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 11. " EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "       EN_T4   ,Timer 4 - STI Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 5. " EN_T3     ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1   ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 2. " EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 0. "       EN_ALL    ,All Interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x000C--0x000F
line.long 0x00 "IRQCLR,IRQ Clear Register"
bitfld.long 0x00 18. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 16. "      CLR_HV  ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 14. " CLR_XIRQ1 ,GPIO IRQ 1 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 12. "      CLR_SPI ,SPI Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 11. " CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 9. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 8. " CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 6. "      CLR_T4  ,Timer 4 - STI Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 5. " CLR_T3    ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 4. "      CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 3. "      CLR_T1  ,Timer 1 - Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 2. " CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 0. "      CLR_ALL   ,All Interrupts OR'ed Clear" "No effect,Cleared"
rgroup.long 0x0100--0x0107
line.long 0x00 "FIQSTA,FIQ Status Register"
bitfld.long 0x00 18. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 16. "  STA_HV  ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 14. " STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 12. "  STA_SPI ,SPI Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 11. " STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 9. "  STA_PLL ,PLL Lock Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 8. " STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 6. "  STA_T4  ,Timer 4 - STI Timer Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 5. " STA_T3    ,Timer 3 - Watchdog Timer" "Not requested,Requested"
bitfld.long 0x00 4. "  STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 3. "  STA_T1  ,Timer 1 - Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 2. " STA_T0    ,Timer 0 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 1. "  STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 0. "  STA_ALL ,All Interrupts OR'ed Status" "Not requested,Requested"
;rgroup.long 0x104++0x03
line.long 0x04 "FIQSIG,FIQ Signals Register"
bitfld.long 0x04 18. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 16. "  SIG_HV  ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 14. " SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 12. "  SIG_SPI ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 11. " SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 6. "  SIG_T4  ,Timer 4 - STI Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 5. " SIG_T3    ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1  ,Timer 1 - Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 2. " SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 0. "  SIG_ALL ,All Interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0108--0x010B
line.long 0x00 "FIQEN,FIQ Enable Register"
bitfld.long 0x00 18. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "       EN_HV   ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 14. " EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 12. "       EN_SPI  ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 11. " EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "       EN_T4   ,Timer 4 - STI Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 5. " EN_T3     ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1   ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 2. " EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 0. "       EN_ALL    ,All Interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x010C--0x010F
line.long 0x00 "FIQCLR,FIQ Clear Register"
bitfld.long 0x00 18. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 16. "      CLR_HV  ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 14. " CLR_XIRQ1 ,GPIO IRQ 1Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 12. "      CLR_SPI ,SPI Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 11. " CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 9. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 8. " CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 6. "      CLR_T4  ,Timer 4 - STI Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 5. " CLR_T3    ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 4. "      CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 3. "      CLR_T1  ,Timer 1 - Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 2. " CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 0. "      CLR_ALL   ,All Interrupts OR'ed Clear" "No effect,Cleared"
wgroup.long 0x0010--0x0013
line.long 0x00 "SWICFG,Software Interrupt Config"
bitfld.long 0x00 2. " PI_FIQ    ,Programmed Interrupt-FIQ" "Cleared,Set"
bitfld.long 0x00 1. "        PI_IRQ    ,Programmed Interrupt-IRQ" "Cleared,Set"
width 0x0B
elif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 0x08
rgroup.long 0x0000++0x7
line.long 0x00 "IRQSTA,IRQ Status Register"
bitfld.long 0x00 19. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 18. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_SPI_S ,SPI Slave Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 16. " STA_HV    ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 14. "  STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 12. " STA_SPI_M ,SPI Master Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 11. "  STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 9. " STA_PLL   ,PLL Lock Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 8. "  STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 6. " STA_T4    ,Timer 4 - STI Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 5. "  STA_T3    ,Timer 3 - Watchdog Timer" "Not requested,Requested"
bitfld.long 0x00 4. "  STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 3. " STA_T1    ,Timer 1 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 2. "  STA_T0    ,Timer 0 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 1. "  STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
;rgroup.long 0x04++0x03
line.long 0x04 "IRQSIG,IRQ Signals Register"
bitfld.long 0x04 19. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 18. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_SPI_S ,SPI Slave Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 16. " SIG_HV    ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 14. "  SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 12. " SIG_SPI_M ,SPI Master Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 11. "  SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 9. " SIG_PLL   ,PLL Lock Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 8. "  SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 6. " SIG_T4    ,Timer 4 - STI Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 5. "  SIG_T3    ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 3. " SIG_T1    ,Timer 1 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 2. "  SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
group.long 0x0008++0x03
line.long 0x00 "IRQEN,IRQ Enable Register"
bitfld.long 0x00 19. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 18. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_SPI_S  ,SPI Slave Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 16. " EN_HV     ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 14. "       EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 12. " EN_SPI_M  ,SPI Master Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 11. "       EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 9. " EN_PLL    ,PLL Lock Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 8. "       EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 6. " EN_T4     ,Timer 4 - STI Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 5. "       EN_T3     ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 3. " EN_T1     ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 2. "       EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
wgroup.long 0x000C++0x3
line.long 0x00 "IRQCLR,IRQ Clear Register"
bitfld.long 0x00 19. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 18. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_SPI_S ,SPI Slave Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 16. " CLR_HV    ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 14. "      CLR_XIRQ1 ,GPIO IRQ 1 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 12. " CLR_SPI_M ,SPI Master Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 11. "      CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 9. " CLR_PLL   ,PLL Lock Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 8. "      CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 6. " CLR_T4    ,Timer 4 - STI Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 5. "      CLR_T3    ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 4. "      CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 3. " CLR_T1    ,Timer 1 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 2. "      CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Cleared"
rgroup.long 0x0100++0x7
line.long 0x00 "FIQSTA,FIQ Status Register"
bitfld.long 0x00 19. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 18. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_SPI_S ,SPI Slave Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 16. " STA_HV    ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 14. "  STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 12. " STA_SPI_M ,SPI Master Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 11. "  STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 9. " STA_PLL   ,PLL Lock Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 8. "  STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 6. " STA_T4    ,Timer 4 - STI Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 5. "  STA_T3    ,Timer 3 - Watchdog Timer" "Not requested,Requested"
bitfld.long 0x00 4. "  STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 3. " STA_T1    ,Timer 1 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 2. "  STA_T0    ,Timer 0 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 1. "  STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 0. " STA_ALL   ,All Interrupts OR'ed Status" "Not requested,Requested"
;rgroup.long 0x104++0x03
line.long 0x04 "FIQSIG,FIQ Signals Register"
bitfld.long 0x04 19. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 18. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_SPI_S ,SPI Slave Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 16. " SIG_HV    ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 14. "  SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 12. " SIG_SPI_M ,SPI Master Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 11. "  SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 9. " SIG_PLL   ,PLL Lock Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 8. "  SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 6. " SIG_T4    ,Timer 4 - STI Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 5. "  SIG_T3    ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 3. " SIG_T1    ,Timer 1 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 2. "  SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 0. " SIG_ALL   ,All Interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0108++0x3
line.long 0x00 "FIQEN,FIQ Enable Register"
bitfld.long 0x00 19. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 18. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_SPI_S  ,SPI Slave Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 16. " EN_HV     ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 14. "       EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 12. " EN_SPI_M  ,SPI Master Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 11. "       EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 9. " EN_PLL    ,PLL Lock Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 8. "       EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 6. " EN_T4     ,Timer 4 - STI Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 5. "       EN_T3     ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 3. " EN_T1     ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 2. "       EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 0. "       EN_ALL    ,All Interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x010C++0x3
line.long 0x00 "FIQCLR,FIQ Clear Register"
bitfld.long 0x00 19. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 18. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_SPI_S ,SPI Slave Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 16. " CLR_HV    ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 14. "      CLR_XIRQ1 ,GPIO IRQ 1Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 12. " CLR_SPI_M ,SPI Master Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 11. "      CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 9. " CLR_PLL   ,PLL Lock Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 8. "      CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 6. " CLR_T4    ,Timer 4 - STI Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 5. "      CLR_T3    ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 4. "      CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 3. " CLR_T1    ,Timer 1 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 2. "      CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 0. "      CLR_ALL   ,All Interrupts OR'ed Clear" "No effect,Cleared"
wgroup.long 0x0010++0x3
line.long 0x00 "SWICFG,Software Interrupt Config"
bitfld.long 0x00 2. " PI_FIQ    ,Programmed Interrupt-FIQ" "Cleared,Set"
bitfld.long 0x00 1. "        PI_IRQ    ,Programmed Interrupt-IRQ" "Cleared,Set"
width 0x0B
elif (cpu()=="ADUC7032")
width 0x08
rgroup.long 0x0000--0x0007
line.long 0x00 "IRQSTA,IRQ Status Register"
bitfld.long 0x00 18. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 16. "  STA_HV  ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 14. " STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 12. "  STA_SPI ,SPI Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 11. " STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 9. "  STA_PLL ,PLL Lock Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 8. " STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 5. "  STA_T3  ,Timer 3 - Watchdog Timer" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 4. " STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 3. "  STA_T1    ,Timer 1 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 2. "  STA_T0  ,Timer 0 - Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 1. " STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 0. "  STA_ALL   ,All Interrupts OR'ed Status" "Not requested,Requested"
;rgroup.long 0x04++0x03
line.long 0x04 "IRQSIG,IRQ Signals Register"
bitfld.long 0x04 18. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 16. "  SIG_HV  ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 14. " SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 12. "  SIG_SPI ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 11. " SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 5. "  SIG_T3  ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 4. " SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1    ,Timer 1 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 2. "  SIG_T0  ,Timer 0 - Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 1. " SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 0. "  SIG_ALL   ,All Interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0008++0x03
line.long 0x00 "IRQEN,IRQ Enable Register"
bitfld.long 0x00 18. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "       EN_HV   ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 14. " EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 12. "       EN_SPI  ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 11. " EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 5. "       EN_T3   ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 4. " EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1     ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 2. "       EN_T0   ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 0. " EN_ALL    ,All Interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x000C--0x000F
line.long 0x00 "IRQCLR,IRQ Clear Register"
bitfld.long 0x00 18. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 16. "      CLR_HV  ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 14. " CLR_XIRQ1 ,GPIO IRQ 1 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 12. "      CLR_SPI ,SPI Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 11. " CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 9. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 8. " CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 5. "      CLR_T3  ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 4. " CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 3. "      CLR_T1    ,Timer 1 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 2. "      CLR_T0  ,Timer 0 - Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 0. " CLR_ALL   ,All Interrupts OR'ed Clear" "No effect,Cleared"
rgroup.long 0x0100--0x0107
line.long 0x00 "FIQSTA,FIQ Status Register"
bitfld.long 0x00 18. " STA_XIRQ5 ,GPIO IRQ 5 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 17. "  STA_XIRQ4 ,GPIO IRQ 4 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 16. "  STA_HV  ,IRQ3 High Voltage Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 14. " STA_XIRQ1 ,GPIO IRQ 1 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 13. "  STA_XIRQ0 ,GPIO IRQ 0 Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 12. "  STA_SPI ,SPI Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 11. " STA_UART  ,UART Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 10. "  STA_ADC   ,ADC Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 9. "  STA_PLL ,PLL Lock Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 8. " STA_FLASH ,Flash/EE Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 7. "  STA_LIN   ,LIN Hardware Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 5. "  STA_T3  ,Timer 3 - Watchdog Timer" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 4. " STA_T2    ,Timer 2 - Wake Up Timer Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 3. "  STA_T1    ,Timer 1 - Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 2. "  STA_T0  ,Timer 0 - Interrupt Status" "Not requested,Requested"
textline "                 "
bitfld.long 0x00 1. " STA_SWI   ,SWI Interrupt Status" "Not requested,Requested"
bitfld.long 0x00 0. "  STA_ALL   ,All Interrupts OR'ed Status" "Not requested,Requested"
;rgroup.long 0x104++0x03
line.long 0x04 "FIQSIG,FIQ Signals Register"
bitfld.long 0x04 18. " SIG_XIRQ5 ,GPIO IRQ 5 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 17. "  SIG_XIRQ4 ,GPIO IRQ 4 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 16. "  SIG_HV  ,IRQ3 High Voltage Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 14. " SIG_XIRQ1 ,GPIO IRQ 1 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 13. "  SIG_XIRQ0 ,GPIO IRQ 0 Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 12. "  SIG_SPI ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 11. " SIG_UART  ,UART Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_LIN   ,LIN Hardware Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 5. "  SIG_T3  ,Timer 3 - Watchdog Timer Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 4. " SIG_T2    ,Timer 2 - Wake Up Timer Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1    ,Timer 1 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 2. "  SIG_T0  ,Timer 0 - Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 1. " SIG_SWI   ,SWI Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 0. "  SIG_ALL   ,All Interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0108--0x010B
line.long 0x00 "FIQEN,FIQ Enable Register"
bitfld.long 0x00 18. " EN_XIRQ5  ,GPIO IRQ 5 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 17. "       EN_XIRQ4  ,GPIO IRQ 4 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "       EN_HV   ,IRQ3 High Voltage Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 14. " EN_XIRQ1  ,GPIO IRQ 1 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 13. "       EN_XIRQ0  ,GPIO IRQ 0 Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 12. "       EN_SPI  ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 11. " EN_UART   ,UART Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 10. "       EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_LIN    ,LIN Hardware Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 5. "       EN_T3   ,Timer 3 - Watchdog Timer Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 4. " EN_T2     ,Timer 2 - Wake Up Timer Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1     ,Timer 1 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 2. "       EN_T0   ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 0. " EN_ALL    ,All Interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x010C--0x010F
line.long 0x00 "FIQCLR,FIQ Clear Register"
bitfld.long 0x00 18. " CLR_XIRQ5 ,GPIO IRQ 5 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 17. "      CLR_XIRQ4 ,GPIO IRQ 4 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 16. "      CLR_HV  ,IRQ3 High Voltage Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 14. " CLR_XIRQ1 ,GPIO IRQ 1Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 13. "      CLR_XIRQ0 ,GPIO IRQ 0 Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 12. "      CLR_SPI ,SPI Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 11. " CLR_UART  ,UART Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 10. "      CLR_ADC   ,ADC Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 9. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 8. " CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 7. "      CLR_LIN   ,LIN Hardware Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 5. "      CLR_T3  ,Timer 3 - Watchdog Timer Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 4. " CLR_T2    ,Timer 2 - Wake Up Timer Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 3. "      CLR_T1    ,Timer 1 - Interrupt Clear" "No effect,Cleared"
bitfld.long 0x00 2. "      CLR_T0  ,Timer 0 - Interrupt Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 0. " CLR_ALL   ,All Interrupts OR'ed Clear" "No effect,Cleared"
wgroup.long 0x0010--0x0013
line.long 0x00 "SWICFG,Software Interrupt Config"
bitfld.long 0x00 2. " PI_FIQ    ,Programmed Interrupt-FIQ" "Cleared,Set"
bitfld.long 0x00 1. "        PI_IRQ    ,Programmed Interrupt-IRQ" "Cleared,Set"
width 0x0B
elif (cpu()=="ADUC7039")
width 0x08
rgroup.long 0x0000--0x0007
line.long 0x00 "IRQSTA,Enabled IRQ Status Register"
bitfld.long 0x00 11. " STA_LPOSC , Low Power Oscillator Calibration Complete Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 10. "   STA_HV  ,High Voltage Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 9. "   STA_SPI   ,SPI Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 8. " STA_ADC   ,ADC Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 7. "   STA_PLL ,PLL Lock Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 6. "   STA_FLASH ,Flash/EE Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 5. " STA_LIN   ,LIN Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 4. "   STA_T2  ,Timer 2 (Watchdog Timer) Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 3. "   STA_T1    ,Timer 1 (Wake Up Timer) Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 2. " STA_T0    ,Timer 0 - Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 1. "   STA_SWI ,SWI Interrupt Status" "No interrupt,Interrupt"
line.long 0x04 "IRQSIG,IRQ Signals Register"
bitfld.long 0x04 11. " SIG_LPOSC , Low Power Oscillator Calibration Complete Signal" "Not generated,Generated"    
bitfld.long 0x04 10. "  SIG_HV  ,High Voltage Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_SPI   ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 6. "  SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 5. " SIG_LIN   ,LIN Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2  ,Timer 2 (Watchdog Timer) Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1    ,Timer 1 (Wake Up Timer) Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 2. " SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI ,SWI Interrupt Signal" "Not generated,Generated"
group.long 0x0008++0x03
line.long 0x00 "IRQEN,IRQ Enable Register"
bitfld.long 0x00 11. " EN_LPOSC  , Low Power Oscillator Calibration Complete Interrupt Enable" "Disabled,Enabled"    
bitfld.long 0x00 10. "       EN_HV   ,High Voltage Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_SPI    ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "       EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 5. " EN_LIN    ,LIN Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2   ,Timer 2 (Watchdog Timer) Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1     ,Timer 1 (Wake Up Timer) Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 2. " EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
wgroup.long 0x000C--0x000F
line.long 0x00 "IRQCLR,IRQ Clear Register"
bitfld.long 0x00 11. " CLR_LPOSC , Low Power Oscillator Calibration Complete Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 10. "      CLR_HV  ,High Voltage Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 9. "      CLR_SPI   ,SPI Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 8. " CLR_ADC   ,ADC Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 7. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 6. "      CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 5. " CLR_LIN   ,LIN Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 4. "      CLR_T2  ,Timer 2 (Watchdog Timer) Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 3. "      CLR_T1    ,Timer 1 (Wake Up Timer) Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 2. " CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Clear"
rgroup.long 0x0100--0x0107
line.long 0x00 "FIQSTA,FIQ Status Register"
bitfld.long 0x00 11. " STA_LPOSC , Low Power Oscillator Calibration Complete Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 10. "   STA_HV  ,High Voltage Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 9. "   STA_SPI   ,SPI Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 8. " STA_ADC   ,ADC Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 7. "   STA_PLL ,PLL Lock Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 6. "   STA_FLASH ,Flash/EE Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 5. " STA_LIN   ,LIN Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 4. "   STA_T2  ,Timer 2 (Watchdog Timer) Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 3. "   STA_T1    ,Timer 1 (Wake Up Timer) Interrupt Status" "No interrupt,Interrupt"
textline "                 "
bitfld.long 0x00 2. " STA_T0    ,Timer 0 - Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 1. "   STA_SWI ,SWI Interrupt Status" "No interrupt,Interrupt"
bitfld.long 0x00 0. "   STA_ALL   , All interrupts OR'ed Status" "No interrupt,Interrupt"
line.long 0x04 "FIQSIG,FIQ Signals Register"
bitfld.long 0x04 11. " SIG_LPOSC , Low Power Oscillator Calibration Complete Signal" "Not generated,Generated"
bitfld.long 0x04 10. "  SIG_HV  ,High Voltage Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 9. "  SIG_SPI   ,SPI Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 8. " SIG_ADC   ,ADC Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 7. "  SIG_PLL ,PLL Lock Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 6. "  SIG_FLASH ,Flash/EE Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 5. " SIG_LIN   ,LIN Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 4. "  SIG_T2  ,Timer 2 (Watchdog Timer) Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 3. "  SIG_T1    ,Timer 1 (Wake Up Timer) Interrupt Signal" "Not generated,Generated"
textline "                 "
bitfld.long 0x04 2. " SIG_T0    ,Timer 0 - Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 1. "  SIG_SWI ,SWI Interrupt Signal" "Not generated,Generated"
bitfld.long 0x04 0. "  SIG_ALL   , All interrupts OR'ed Signal" "Not generated,Generated"
group.long 0x0108--0x010B
line.long 0x00 "FIQEN,FIQ Enable Register"
bitfld.long 0x00 11. " EN_LPOSC  , Low Power Oscillator Calibration Complete Interrupt Enable" "Disabled,Enabled"    
bitfld.long 0x00 10. "       EN_HV   ,High Voltage Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 9. "       EN_SPI    ,SPI Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 8. " EN_ADC    ,ADC Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "       EN_PLL  ,PLL Lock Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "       EN_FLASH  ,Flash/EE Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 5. " EN_LIN    ,LIN Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 4. "       EN_T2   ,Timer 2 (Watchdog Timer) Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 3. "       EN_T1     ,Timer 1 (Wake Up Timer) Interrupt Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 2. " EN_T0     ,Timer 0 - Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 0. "       EN_ALL  , All interrupts OR'ed Enable" "Disabled,Enabled"
wgroup.long 0x010C--0x010F
line.long 0x00 "FIQCLR,FIQ Clear Register"
bitfld.long 0x00 11. " CLR_LPOSC , Low Power Oscillator Calibration Complete Interrupt Enable" "No effect,Clear"        
bitfld.long 0x00 10. "      CLR_HV  ,High Voltage Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 9. "      CLR_SPI   ,SPI Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 8. " CLR_ADC   ,ADC Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 7. "      CLR_PLL ,PLL Lock Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 6. "      CLR_FLASH ,Flash/EE Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 5. " CLR_LIN   ,LIN Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 4. "      CLR_T2  ,Timer 2 (Watchdog Timer) Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 3. "      CLR_T1    ,Timer 1 (Wake Up Timer) Interrupt Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 2. " CLR_T0    ,Timer 0 - Interrupt Clear" "No effect,Clear"
bitfld.long 0x00 0. "      CLR_ALL , All interrupts OR'ed" "No effect,Clear"
wgroup.long 0x0010--0x0013
line.long 0x00 "SWICFG,Software Interrupt Config"
bitfld.long 0x00 2. " PI_FIQ    ,Programmed Interrupt-FIQ" "Cleared,Set"
bitfld.long 0x00 1. "        PI_IRQ  ,Programmed Interrupt-IRQ" "Cleared,Set"
width 0x0B
endif
tree.end
tree.open "Timers"
base d:0xffff0300
sif (cpu()=="ADUC7039")
width 8.
tree "Timer 0 - General Purpose"
group.word 0x00++0x01
line.word 0x00 "T0LD,Timer 0 Load Register"
rgroup.word 0x04++0x01
line.word 0x00 "T0VAL0,Timer 0 Value 0 Register"
group.word 0x08++0x01
line.word 0x00 "T0CON,Timer 0 Control Register"
bitfld.word 0x00 5. "     T0M       ,Timer 0 Mode" "Free-running,Periodic"
bitfld.word 0x00 4. "        CUP ,Count Up" "Count down,Count up"
bitfld.word 0x00 3. "  T0E ,Timer 0 Enable" "Disabled,Enabled"
textline "                 "
bitfld.word 0x00 0.--1. " PRESCALAR ,Prescalar" "Source clock/1,Source clock/1,Source clock/16384,Source clock/16384"
wgroup.byte 0xC++0x00
line.byte 0x00 "T0CLRI,Timer0 Clear Register"    
tree.end
tree "Timer 1 (Wake-Up)"
wgroup.long 0x20++0x03
line.long 0x00 "T1LD,Timer 1 Load Register"
rgroup.long 0x24++0x03
line.long 0x00 "T1VAL,Timer 1 Value Register"
group.word 0x28++0x01
line.word 0x00 "T1CON,Timer 1 Control Register"
bitfld.word 0x00 5. "     T1M ,Timer 1 Mode" "Free-running,Periodic"
bitfld.word 0x00 4. "          CUP       ,Count Up" "Count down,Count up"
bitfld.word 0x00 3. "          T1E ,Timer 1 Enable" "Disabled,Enabled"
textline "                 "
bitfld.word 0x00 2. " CS  ,Clock Source Select" "Core clock,32.768kHz oscillator"
bitfld.word 0x00 0.--1. "  PRESCALAR ,Prescalar" "Source clock/1,Source clock/16,Source clock/256,Source clock/32768"
wgroup.byte 0x2c++0x00
line.byte 0x00 "T1CLRI,Timer 1 Clear Register"
tree.end
tree "Timer 2 (Watchdog)"
wgroup.word 0x40++0x01
line.word 0x00 "T2LD,Timer 2 Load Register"
rgroup.word 0x44++0x01
line.word 0x00 "T2VAL,Timer 2 Value Register"
group.word 0x48++0x01
line.word 0x00 "T2CON,Timer 2 Control Register"
bitfld.word 0x00 8. "     CUP    ,Count Up/Down Enable" "Count down,Count up"
bitfld.word 0x00 7. "  T2E   ,Timer 2 Enable" "Disabled,Enabled"
bitfld.word 0x00 6. "          T2OM   ,Timer 2 Operating Mode" "Free-running,Periodic"
textline "                 "
bitfld.word 0x00 5. " WTME   ,Watchdog Timer Mode Enable" "Disabled,Enabled"
bitfld.word 0x00 2.--3. "    T2CPS ,Timer 2 Clock Prescalar" "Source clock/1,Source clock/16,Source clock/256,?..."
bitfld.word 0x00 1. "  WTIRQE ,Watchdog Timer IRQ Enable" "Disabled,Enabled"
textline "                 "
bitfld.word 0x00 0. " PD_OFF ,Stop Timer 2 during Power Down" "On,Off"
wgroup.byte 0x4c++0x00
line.byte 0x00 "T2CLRI,Timer 2 Clear Register"
tree.end
width 0xB
else
width 8.
tree "Timer 0 - Life Time Timer"
rgroup.word 0x04++0x01
line.word 0x00 "T0VAL0,Timer 0 Value 0 Register"
if (((data.long(d:0xffff0300+0x0c))&0x10)==0x10)
rgroup.long 0x08++0x03
line.long 0x00 "T0VAL1,Timer 0 Value 0 Register"
group.long 0x0c++0x03
line.long 0x00 "T0CON,Timer 0 Control Register"
bitfld.long 0x00 17. " ES   ,Event Select Enable" "Disabled,Enabled"
bitfld.long 0x00 12.--16. "    ESR       ,Event Select Range" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 9.--10. "            CS  ,Clock Select" "Core,Low power,External,Precision"
textline "                 "
bitfld.long 0x00 7. " T0E  ,Timer 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "    T0M       ,Timer 0 Mode" "Free-running,Periodic"
textline "                 "
bitfld.long 0x00 4. " T0MO ,Timer 0 Mode of Operation" "16-bit,48-bit"
bitfld.long 0x00 0.--3. "      PRESCALAR ,Prescalar" "Div by 1,Reserved,Reserved,Reserved,Div by 16,Reserved,Reserved,Reserved,Div by 256,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Div by 32768"
else
rgroup.word 0x14++0x01
line.word 0x00 "T0CAP,Timer 0 Capture Register"
group.long 0x0c++0x03
line.long 0x00 "T0CON,Timer 0 Control Register"
bitfld.long 0x00 17. " ES   ,Event Select Enable" "Disabled,Enabled"
sif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
bitfld.long 0x00 12.--16. "    ESR       ,Event Select Range" "Timer 0,Timer 1,Timer 2,Timer 3,Timer 4,LIN,Flash/EE Int,PLL Lock,ADC,UART,SPI,XIRQ0,XIRQ1,Reserved,IRQ3,SPI slave,XIRQ4,XIRQ5,?..."
elif (cpu()=="ADUC7030"||cpu()=="ADUC7033")
bitfld.long 0x00 12.--16. "    ESR       ,Event Select Range" "Timer 0,Timer 1,Timer 2,Timer 3,Timer 4,LIN,Flash/EE Int,PLL Lock,ADC,UART,SPI,XIRQ0,XIRQ1,Reserved,IRQ3,XIRQ4,XIRQ5,?..."
else
bitfld.long 0x00 12.--16. "    ESR       ,Event Select Range" "Timer 0,Timer 1,Timer 2,Timer 3,Reserved,LIN,Flash/EE Int,PLL Lock,ADC,UART,SPI,XIRQ0,XIRQ1,Reserved,IRQ3,XIRQ4,XIRQ5,?..."
endif        
bitfld.long 0x00 9.--10. "  CS  ,Clock Select" "Core,Low power,External,Precision"
textline "                 "
bitfld.long 0x00 8. " CU   ,Count up" "Count down,Count up"
bitfld.long 0x00 7. "  T0E       ,Timer 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "      T0M ,Timer 0 Mode" "Free-running,Periodic"
textline "                 "
bitfld.long 0x00 4. " T0MO ,Timer0 Mode of Operation" "16-bit,48-bit"
bitfld.long 0x00 0.--3. "      PRESCALAR ,Prescalar" "Div by 1,Reserved,Reserved,Reserved,Div by 16,Reserved,Reserved,Reserved,Div by 256,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Div by 32768"
wgroup.word 0x00++0x01
line.word 0x00 "T0LD,Timer 0 Load Register"
wgroup.byte 0x10++0x00
line.byte 0x00 "T0CLRI,Timer0 Clear Register"
endif
tree.end
tree "Timer 1"
wgroup.long 0x20++0x03
line.long 0x00 "T1LD,Timer 1 Load Register"
wgroup.byte 0x2c++0x00
line.byte 0x00 "T1CLRI,Timer 1 Clear Register"
rgroup.long 0x24++0x03
line.long 0x00 "T1VAL,Timer 1 Value Register"
sif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
rgroup.long 0x30++0x03
line.long 0x00 "T1CAP,Timer 1 Capture Register"
else
wgroup.long 0x30++0x03
line.long 0x00 "T1CAP,Timer 1 Capture Register"
endif
group.long 0x28++0x03
line.long 0x00 "T1CON,Timer 1 Control Register"
hexmask.long.byte 0x00 24.--31. 1. " 8BPS ,8 Bit Post-Scalar"
bitfld.long 0x00 23. "            EPS    ,Enable Post-Scalar" "Disabled,Enabled"
bitfld.long 0x00 19. "    PSCF      ,Post-Scalar Compare Flag" "Not equal,Equal"
textline "                 "
bitfld.long 0x00 18. " T1IS ,Timer 1 Interrupt Source" "Timer1,Post-scalar"
bitfld.long 0x00 17. "   ESE    ,Event Select Enable" "Disabled,Enabled"
bitfld.long 0x00 12.--16. "    ESR       ,Event Select Range" "Timer 0,Timer 1,Timer 2,Timer 3,Reserved,LIN,Flash/EE Int,PLL Lock,ADC,UART,SPI,XIRQ0,XIRQ1,Reserved,IRQ3,XIRQ4,XIRQ5,?..."
textline "                 "
bitfld.long 0x00 9.--11. " CS   ,Clock Select" "Core,Low power,GPIO8,GPIO5,?..."
bitfld.long 0x00 8. "     CU     ,Count Up" "Down,Up"
bitfld.long 0x00 7. "        T1E       ,Timer1 Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 6. " T1M  ,Timer 1 Mode" "Free-running,Periodic"
bitfld.long 0x00 4.--5. "  FORMAT ,Format" "Binary,Reserved,23 to 0 h,255 to 0 h"
bitfld.long 0x00 0.--3. "  PRESCALAR ,Prescalar" "Div by 1,Reserved,Reserved,Reserved,Div by 16,Reserved,Reserved,Reserved,Div by 256,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Div by 32768"
tree.end
tree "Timer 2 - Wake-up Timer"
wgroup.long 0x40++0x03
line.long 0x00 "T2LD,Timer 2 Load Register"
wgroup.byte 0x4c++0x00
line.byte 0x00 "T2CLRI,Timer 2 Clear Register"
rgroup.long 0x44++0x03
line.long 0x00 "T2VAL,Timer 2 Value Register"
group.long 0x48++0x03
line.long 0x00 "T2CON,Timer 2 Control Register"
bitfld.long 0x00 9.--10. " CS  ,Clock Source Select" "Core,Low power,External,Precision"
bitfld.long 0x00 8. "     CU     ,Count up" "Down,Up"
bitfld.long 0x00 7. "        T2E       ,Timer 2 Enable" "Disabled,Enabled"
textline "                 "
bitfld.long 0x00 6. " T2M ,Timer 2 Mode" "Free-running,Periodic"
bitfld.long 0x00 4.--5. "  FORMAT ,Format" "Binary,Reserved,23 to 0 h,255 to 0 h"
bitfld.long 0x00 0.--3. "  PRESCALAR ,Prescalar" "Div by 1,Reserved,Reserved,Reserved,Div by 16,Reserved,Reserved,Reserved,Div by 256,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Div by 32768"
tree.end
tree "Timer 3 - Watchdog Timer"
wgroup.word 0x60++0x01
line.word 0x00 "T3LD,Timer 3 Load Register"
rgroup.word 0x64++0x01
line.word 0x00 "T3VAL,Timer 3 Value Register"
group.word 0x68++0x01
line.word 0x00 "T3CON,Timer 3 Control Register"
bitfld.word 0x00 8. "     CU     ,Count Up/Down Enable" "Down,Up"
bitfld.word 0x00 7. "      T3E   ,Timer 3 Enable" "Disabled,Enabled"
bitfld.word 0x00 6. "    T3OM   ,Timer 3 Operating Mode" "Free-running,Periodic"
textline "                 "
bitfld.word 0x00 5. " WTME   ,Watchdog Timer Mode Enable" "Disabled,Enabled"
bitfld.word 0x00 2.--3. "  T3CPS ,Timer3 Clock (32.768kHz) Pre-Scalar" "Div by 1,Div by 16,Div by 256,?..."
bitfld.word 0x00 1. "  WTIRQE ,Watchdog Timer IRQ Enable" "Disabled,Enabled"
textline "                 "
bitfld.word 0x00 0. " PD_OFF ,Power Down" "On,Off"
wgroup.byte 0x6c++0x00
line.byte 0x00 "T3CLRI,Timer 3 Clear Register"
tree.end
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033")||(cpu()=="ADUC7034")||(cpu()=="ADUC7036"))
tree "Timer 4 - STI Timer"
wgroup.word 0x80++0x01
line.word 0x00 "T4LD,Timer 4 Load Register"
wgroup.byte 0x8c++0x00
line.byte 0x00 "T4CLRI,Timer 4 Clear Register"
rgroup.word 0x84++0x01
line.word 0x00 "T4VAL,Timer 4 Value Register"
wgroup.word 0x90++0x01
line.word 0x00 "T4CAP,Timer 4 Capture Register"
group.long 0x88++0x03
line.long 0x00 "T4CON,Timer 4 Control Register"
bitfld.long 0x00 17. " ES        ,Event Select Enable" "Disabled,Enabled"
bitfld.long 0x00 12.--16. "      ESR ,Event Select Range" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 9. "        CS  ,Clock Select" "Core,Low power"
textline "                 "
bitfld.long 0x00 8. " CU        ,Count up" "Down,Up"
bitfld.long 0x00 7. "          T4E ,Timer 4 Enable" "Disabled,Enabled"
bitfld.long 0x00 6. "  T4M ,Timer 4 Mode" "Free-running,Periodic"
textline "                 "
bitfld.long 0x00 0.--3. " PRESCALAR ,Prescalar" "Div by 1,Reserved,Reserved,Reserved,Div by 16,Reserved,Reserved,Reserved,Div by 256,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Div by 32768"
tree.end
endif

endif
tree.end
tree "GPIO (Genaral Purpose I/O)"
base d:0xffff0d00
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033")||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 8.
tree "Port 0"
group.long 0x00++0x03
line.long 0x00 "GP0CON,GPIO Port0 Control Register"
bitfld.long 0x00 24. " IP0_6E  ,Internal P0.6 Enable" "Disabled,Enabled"
bitfld.long 0x00 20. "   IP0_5E  ,Internal P0.5 Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "   GPIO4FS ,GPIO4 Function Select" "GPIO,ECLK"
textline "                 "
bitfld.long 0x00 12. " GPIO3FS ,GPIO3 Function Select" "GPIO,MOSI"
bitfld.long 0x00 8. "       GPIO2FS ,GPIO2 Function Select" "GPIO,MISO"
bitfld.long 0x00 4. "       GPIO1FS ,GPIO1 Function Select" "GPIO,SCLK"
textline "                 "
bitfld.long 0x00 0. " GPIO0FS ,GPIO0 Function Select" "GPIO,/SS"
group.long 0x20++0x03
line.long 0x00 "GP0DAT,GPIO Port0 Data Register"
bitfld.long 0x00 28. " P0_4D   ,Port 0.4 Direction Select" "Input,Output"
bitfld.long 0x00 27. "     P0_3D   ,Port 0.3 Direction Select" "Input,Output"
bitfld.long 0x00 26. "     P0_2D   ,Port 0.2 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 25. " P0_1D   ,Port 0.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "     P0_0D   ,Port 0.0 Direction Select" "Input,Output"
bitfld.long 0x00 20. "     P0_4DO  ,Port 0.4 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 19. " P0_3DO  ,Port 0.3 Data Output" "Low,High"
bitfld.long 0x00 18. "       P0_2DO  ,Port 0.2 Data Output" "Low,High"
bitfld.long 0x00 17. "       P0_1DO  ,Port 0.1 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 16. " P0_0DO  ,Port 0.0 Data Output" "Low,High"
bitfld.long 0x00 4. "       P0_4DI  ,Port 0.4 Data Input" "Low,High"
bitfld.long 0x00 3. "       P0_3DI  ,Port 0.3 Data Input" "Low,High"
textline "                 "
bitfld.long 0x00 2. " P0_2DI  ,Port 0.2 Data Input" "Low,High"
bitfld.long 0x00 1. "       P0_1DI  ,Port 0.1 Data Input" "Low,High"
bitfld.long 0x00 0. "       P0_0DI  ,Port 0.0 Data Input" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "GP0SET,GPIO Port0 Set Register"
bitfld.long 0x00 20. " P0_4S   ,Port 0.4 Set" "No effect,Set"
bitfld.long 0x00 19. "  P0_3S   ,Port 0.3 Set" "No effect,Set"
bitfld.long 0x00 18. "  P0_2S   ,Port 0.2 Set" "No effect,Set"
textline "                 "
bitfld.long 0x00 17. " P0_1S   ,Port 0.1 Set" "No effect,Set"
bitfld.long 0x00 16. "  P0_0S   ,Port 0.0 Set" "No effect,Set"
wgroup.long 0x28++0x03
line.long 0x00 "GP0CLR,GPIO Port0 Clear Register"
bitfld.long 0x00 20. " P0_4C   ,Port 0.4 Clear" "No effect,Cleared"
bitfld.long 0x00 19. "  P0_3C   ,Port 0.3 Clear" "No effect,Cleared"
bitfld.long 0x00 18. "  P0_2C   ,Port 0.2 Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 17. " P0_1C   ,Port 0.1 Clear" "No effect,Cleared"
bitfld.long 0x00 16. "  P0_0C   ,Port 0.0 Clear" "No effect,Cleared"        
tree.end
tree "Port 1"
group.long 0x04++0x03
line.long 0x00 "GP1CON,GPIO Port1 Control Register"
bitfld.long 0x00 4. " GPIO6FS ,GPIO6 Function Select" "GPIO,TxD"
bitfld.long 0x00 0. "       GPIO5FS ,GPIO5 Function Select" "GPIO,RxD"
group.long 0x30++0x03
line.long 0x00 "GP1DAT,GPIO Port1 Data Register"
bitfld.long 0x00 25. " P1_1D   ,Port 1.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "     P1_0D   ,Port 1.0 Direction Select" "Input,Output"
bitfld.long 0x00 17. "     P1_1DO ,Port 1.1 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 16. " P1_0DO  ,Port 1.0 Data Output" "Low,High"
bitfld.long 0x00 1. "       P1_1DI  ,Port 1.1 Data Input" "Low,High"
bitfld.long 0x00 0. "       P1_0DI ,Port 1.0 Data Input" "Low,High"
wgroup.long 0x34++0x03
line.long 0x00 "GP1SET,GPIO Port1 Set Register"
bitfld.long 0x00 17. " P1_1S   ,Port 1.1 Set" "No effect,Set"
bitfld.long 0x00 16. "  P1_0S   ,Port 1.0 Set" "No effect,Set"
wgroup.long 0x38++0x03
line.long 0x00 "GP1CLR,GPIO Port1 Clear Register"
bitfld.long 0x00 17. " P1_1C   ,Port 1.1 Clear" "No effect,Cleared"
bitfld.long 0x00 16. "  P1_0C   ,Port 1.0 Clear" "No effect,Cleared"        
tree.end
tree "Port 2"
group.long 0x08++0x03
line.long 0x00 "GP2CON,GPIO Port2 Control Register"
bitfld.long 0x00 24. " GPIO13FS ,GPIO13 Function Select" "Not routed to STI,Routed to STI"
bitfld.long 0x00 20. "  GPIO12FS ,GPIO12 Function Select" "GPIO,LIN/BSD"
bitfld.long 0x00 16. "  GPIO11FS ,GPIO11 Function Select" "Read-back,LIN/BSD"
textline "                 "
bitfld.long 0x00 4. " GPIO8FS  ,GPIO8 Function Select" "GPIO,LIN/BSD"
bitfld.long 0x00 0. "            GPIO7FS  ,GPIO7 Function Select" "GPIO,LIN/BSD"
group.long 0x40++0x03
line.long 0x00 "GP2DAT,GPIO Port2 Data Register"
bitfld.long 0x00 30. " P2_6D    ,Port 2.6 Direction Select" "Input,Output"
bitfld.long 0x00 29. "     P2_5D  ,Port 2.5 Direction Select" "Input,Output"
bitfld.long 0x00 28. "     P2_4D  ,Port 2.4 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 25. " P2_1D    ,Port 2.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "     P2_0D  ,Port 2.0 Direction Select" "Input,Output"
bitfld.long 0x00 22. "     P2_6DO ,Port 2.6 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 21. " P2_5DO   ,Port 2.5 Data Output" "Low,High"
bitfld.long 0x00 17. "       P2_1DO ,Port 2.1 Data Output" "Low,High"
bitfld.long 0x00 16. "       P2_0DO ,Port 2.0 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 6. " P2_6DI   ,Port 2.6 Data Input" "Low,High"
bitfld.long 0x00 5. "       P2_5DI ,Port 2.5 Data Input" "Low,High"
bitfld.long 0x00 4. "       P2_4DI ,Port 2.4 Data Input" "Low,High"
textline "                 "
bitfld.long 0x00 1. " P2_1DI   ,Port 2.1 Data Input" "Low,High"
bitfld.long 0x00 0. "       P2_0DI ,Port 2.0 Data Input" "Low,High"
wgroup.long 0x44++0x03        
line.long 0x00 "GP2SET,GPIO Port2 Set Register"
bitfld.long 0x00 22. " P2_6S    ,Port 2.6 Set" "No effect,Set"
bitfld.long 0x00 21. "  P2_5S  ,Port 2.5 Set" "No effect,Set"
bitfld.long 0x00 17. "  P2_1S  ,Port 2.1 Set" "No effect,Set"
textline "                 "
bitfld.long 0x00 16. " P2_0S    ,Port 2.0 Set" "No effect,Set"
wgroup.long 0x48++0x03
line.long 0x00 "GP2CLR,GPIO Port2 Clear Register"
bitfld.long 0x00 22. " P2_6C    ,Port 2.6 Clear" "No effect,Cleared"
bitfld.long 0x00 21. "  P2_5C  ,Port 2.5 Clear" "No effect,Cleared"
bitfld.long 0x00 17. "  P2_1C  ,Port 2.1 Clear" "No effect,Cleared"
textline "                 "
bitfld.long 0x00 16. " P2_0C    ,Port 2.0 Clear" "No effect,Cleared"
tree.end
elif (cpu()=="ADUC7032")
width 8.
tree "Port 0"
group.long 0x00++0x03
line.long 0x00 "GP0CON,GPIO Port0 Control Register"
bitfld.long 0x00 24. " IP0_6E         ,Internal P0.6 Enable" "Disabled,Enabled"
bitfld.long 0x00 20. "  IP0_5E         ,Internal P0.5 Enable" "Disabled,Enabled"
bitfld.long 0x00 16. "  GPIO4FS        ,GPIO4 Function Select" "GPIO,ECLK"
textline "                 "
bitfld.long 0x00 12. " GPIO3FS        ,GPIO3 Function Select" "GPIO,MOSI"
bitfld.long 0x00 8. "      GPIO2FS        ,GPIO2 Function Select" "GPIO,MISO"
bitfld.long 0x00 4. "      GPIO1FS        ,GPIO1 Function Select" "GPIO,SCLK"
textline "                 "
bitfld.long 0x00 0. " GPIO0FS        ,GPIO0 Function Select" "GPIO,/SS"
group.long 0x20++0x03
line.long 0x00 "GP0DAT,GPIO Port0 Data Register"
bitfld.long 0x00 28. " P0_4D          ,Port 0.4 Direction Select" "Input,Output"
bitfld.long 0x00 27. "    P0_3D          ,Port 0.3 Direction Select" "Input,Output"
bitfld.long 0x00 26. "    P0_2D          ,Port 0.2 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 25. " P0_1D          ,Port 0.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "    P0_0D          ,Port 0.0 Direction Select" "Input,Output"
setclrfld.long 0x00 20. 0x04 20. 0x08 20. "    P0_4DO_SET/CLR ,Port 0.4 Data Output" "Low,High"
textline "                 "
setclrfld.long 0x00 19. 0x04 19. 0x08 19. " P0_3DO_SET/CLR ,Port 0.3 Data Output" "Low,High"
setclrfld.long 0x00 18. 0x04 18. 0x08 18. "      P0_2DO_SET/CLR ,Port 0.2 Data Output" "Low,High"
setclrfld.long 0x00 17. 0x04 17. 0x08 17. "      P0_1DO_SET/CLR ,Port 0.1 Data Output" "Low,High"
textline "                 "
setclrfld.long 0x00 16. 0x04 16. 0x08 16. " P0_0DO_SET/CLR ,Port 0.0 Data Output" "Low,High"
bitfld.long 0x00 4. "      P0_4DI         ,Port 0.4 Data Input" "Low,High"
bitfld.long 0x00 3. "      P0_3DI         ,Port 0.3 Data Input" "Low,High"
textline "                 "
bitfld.long 0x00 2. " P0_2DI         ,Port 0.2 Data Input" "Low,High"
bitfld.long 0x00 1. "      P0_1DI         ,Port 0.1 Data Input" "Low,High"
bitfld.long 0x00 0. "      P0_0DI         ,Port 0.0 Data Input" "Low,High"
tree.end
tree "Port 1"
group.long 0x04++0x03
line.long 0x00 "GP1CON,GPIO Port1 Control Register"
bitfld.long 0x00 4. " GPIO6FS        ,GPIO6 Function Select" "GPIO,TxD"
bitfld.long 0x00 0. "    GPIO5FS ,GPIO5 Function Select" "GPIO,RxD"
group.long 0x30++0x03
line.long 0x00 "GP1DAT,GPIO Port1 Data Register"
bitfld.long 0x00 25. " P1_1D          ,Port 1.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "  P1_0D   ,Port 1.0 Direction Select" "Input,Output"
setclrfld.long 0x00 17. 0x04 17. 0x08 17. "  P1_1DO_SET/CLR ,Port 1.1 Data Output" "Low,High"
textline "                 "
setclrfld.long 0x00 16. 0x04 16. 0x08 16. " P1_0DO_SET/CLR ,Port 1.0 Data Output" "Low,High"
bitfld.long 0x00 1. "    P1_1DI  ,Port 1.1 Data Input" "Low,High"
bitfld.long 0x00 0. "    P1_0DI         ,Port 1.0 Data Input" "Low,High"
tree.end
tree "Port 2"
group.long 0x08++0x03
line.long 0x00 "GP2CON,GPIO Port2 Control Register"
bitfld.long 0x00 20. " GPIO12FS       ,GPIO12 Function Select" "GPIO,LIN"
bitfld.long 0x00 16. "    GPIO11FS       ,GPIO11 Function Select" "Read-back,LIN"
bitfld.long 0x00 4. "  GPIO8FS        ,GPIO8 Function Select" "GPIO,LIN"
textline "                 "
bitfld.long 0x00 0. " GPIO7FS        ,GPIO7 Function Select" "GPIO,LIN"
group.long 0x40++0x03
line.long 0x00 "GP2DAT,GPIO Port2 Data Register"
bitfld.long 0x00 30. " P2_6D          ,Port 2.6 Direction Select" "Input,Output"
bitfld.long 0x00 29. "  P2_5D          ,Port 2.5 Direction Select" "Input,Output"
bitfld.long 0x00 28. "     P2_4D          ,Port 2.4 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 25. " P2_1D          ,Port 2.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "  P2_0D          ,Port 2.0 Direction Select" "Input,Output"
setclrfld.long 0x00 22. 0x04 22. 0x08 22. "     P2_6DO_SET/CLR ,Port 2.6 Data Output" "Low,High"
textline "                 "
setclrfld.long 0x00 21. 0x04 21. 0x08 21. " P2_5DO_SET/CLR ,Port 2.5 Data Output" "Low,High"
setclrfld.long 0x00 17. 0x04 17. 0x08 17. "    P2_1DO_SET/CLR ,Port 2.1 Data Output" "Low,High"
setclrfld.long 0x00 16. 0x04 16. 0x08 16. "       P2_0DO_SET/CLR ,Port 2.0 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 6. " P2_6DI         ,Port 2.6 Data Input" "Low,High"
bitfld.long 0x00 5. "    P2_5DI         ,Port 2.5 Data Input" "Low,High"
bitfld.long 0x00 4. "       P2_4DI         ,Port 2.4 Data Input" "Low,High"
textline "                 "
bitfld.long 0x00 1. " P2_1DI         ,Port 2.1 Data Input" "Low,High"
bitfld.long 0x00 0. "    P2_0DI         ,Port 2.0 Data Input" "Low,High"
tree.end
elif ((cpu()=="ADUC7039"))
width 8.
group.long 0x00++0x03
line.long 0x00 "GP0CON,GPIO Port0 Control Register"
bitfld.long 0x00 20. " GPIO5FS ,GPIO5 Function Select" "GPIO,LIN OUT"
bitfld.long 0x00 16. "    GPIO4FS ,GPIO4 Function Select" "GPIO,LIN IN"
textline "                 "
bitfld.long 0x00 12. " GPIO3FS ,GPIO3 Function Select" "GPIO,MOSI"
bitfld.long 0x00 8. "       GPIO2FS ,GPIO2 Function Select" "GPIO,MISO"
bitfld.long 0x00 4. "       GPIO1FS ,GPIO1 Function Select" "GPIO,SCLK"
textline "                 "
bitfld.long 0x00 0. " GPIO0FS ,GPIO0 Function Select" "GPIO,/SS"
group.long 0x20++0x03
line.long 0x00 "GP0DAT,GPIO Port0 Data Register"
bitfld.long 0x00 29. " P0_5D   ,Port 0.5 Direction Select" "Input,Output"
bitfld.long 0x00 28. "     P0_4D   ,Port 0.4 Direction Select" "Input,Output"
bitfld.long 0x00 27. "     P0_3D   ,Port 0.3 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 26. " P0_2D   ,Port 0.2 Direction Select" "Input,Output"
bitfld.long 0x00 25. "     P0_1D   ,Port 0.1 Direction Select" "Input,Output"
bitfld.long 0x00 24. "     P0_0D   ,Port 0.0 Direction Select" "Input,Output"
textline "                 "
bitfld.long 0x00 21. " P0_5DO  ,Port 0.5 Data Output" "Low,High"
bitfld.long 0x00 20. "       P0_4DO  ,Port 0.4 Data Output" "Low,High"
bitfld.long 0x00 19. "       P0_3DO  ,Port 0.3 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 18. " P0_2DO  ,Port 0.2 Data Output" "Low,High"
bitfld.long 0x00 17. "       P0_1DO  ,Port 0.1 Data Output" "Low,High"
bitfld.long 0x00 16. "       P0_0DO  ,Port 0.0 Data Output" "Low,High"
textline "                 "
bitfld.long 0x00 5. " P0_5DI  ,Port 0.5 Data Input" "Low,High"
bitfld.long 0x00 4. "       P0_4DI  ,Port 0.4 Data Input" "Low,High"
bitfld.long 0x00 3. "       P0_3DI  ,Port 0.3 Data Input" "Low,High"
textline "                 "
bitfld.long 0x00 2. " P0_2DI  ,Port 0.2 Data Input" "Low,High"
bitfld.long 0x00 1. "       P0_1DI  ,Port 0.1 Data Input" "Low,High"
bitfld.long 0x00 0. "       P0_0DI  ,Port 0.0 Data Input" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "GP0SET,GPIO Port0 Set Register"
bitfld.long 0x00 21. " P0_5S   ,Port 0.5 Set" "No effect,Set"
bitfld.long 0x00 20. "  P0_4S   ,Port 0.4 Set" "No effect,Set"
bitfld.long 0x00 19. "  P0_3S   ,Port 0.3 Set" "No effect,Set"
textline "                 "
bitfld.long 0x00 18. " P0_2S   ,Port 0.2 Set" "No effect,Set"
bitfld.long 0x00 17. "  P0_1S   ,Port 0.1 Set" "No effect,Set"
bitfld.long 0x00 16. "  P0_0S   ,Port 0.0 Set" "No effect,Set"
wgroup.long 0x28++0x03
line.long 0x00 "GP0CLR,GPIO Port0 Clear Register"
bitfld.long 0x00 21. " P0_5C   ,Port 0.5 Clear" "No effect,Clear"
bitfld.long 0x00 20. "  P0_4C   ,Port 0.4 Clear" "No effect,Clear"
bitfld.long 0x00 19. "  P0_3C   ,Port 0.3 Clear" "No effect,Clear"
textline "                 "
bitfld.long 0x00 18. " P0_2C   ,Port 0.2 Clear" "No effect,Clear"
bitfld.long 0x00 17. "  P0_1C   ,Port 0.1 Clear" "No effect,Clear"
bitfld.long 0x00 16. "  P0_0C   ,Port 0.0 Clear" "No effect,Clear"        
width 0xB        
endif
tree.end
tree "HVI (High Voltage Interface)"
base d:0xffff0800
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033"))
width 7.
wgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Write) Register"
rgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Read) Register"
bitfld.byte 0x00 1.--2. " HVCC ,HV Command Completion Status" "Successfully,Failed,Failed,Failed"
bitfld.byte 0x00 0. " BUSY ,Busy Bit" "Not busy,Busy"
group.byte 0x0c++0x00
line.byte 0x00 "HVDAT,High Voltage Data Register"
elif (cpu()=="ADUC7032"||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 7.
wgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Write) Register"
rgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Read) Register"
bitfld.byte 0x00 2. " TCHV ,Transmit Command to High Voltage Die Status" "Failed,Successfully"
bitfld.byte 0x00 1. "           RCHV  ,Read Command from High Voltage Die Status" "Failed,Successfully"
bitfld.byte 0x00 0. "  BUSY ,Busy Bit" "Not busy,Busy"
group.word 0x0c++0x01
line.word 0x00 "HVDAT,High Voltage Data Register"
bitfld.word 0x00 8.--11. " COM  ,Command" "Read HVCFG0 to HVDAT,Read HVCFG1 to HVDAT,Read HVSTA to HVDAT,Read HVMON to HVDAT,Reserved,Reserved,Reserved,Reserved,Write HVDAT to HVCFG0,Write HVDAT to HVCFG1,?..."
hexmask.word.byte 0x00 0.--7. 1. "  HVDRW ,High Voltage Data to Read/Write"

elif (cpu()=="ADUC7039")
width 7.
wgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Write) Register"
if ((d.b(d:0xffff0800+0x4)&0x1)==0x0)
rgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Read) Register"
bitfld.byte 0x00 0. " BUSY ,Busy Bit" "Not busy,Busy"
bitfld.byte 0x00 2. "             TXSTAT ,Transmit Command to High Voltage Die Status" "Failed,Successfully"
bitfld.byte 0x00 1. " RXSTAT ,Read Command from High Voltage Die Status" "Failed,Successfully"
else    
rgroup.byte 0x04++0x00
line.byte 0x00 "HVCON,High Voltage Interface Control (Read) Register"
bitfld.byte 0x00 0. " BUSY ,Busy Bit" "Not busy,Busy"
endif        
group.word 0x0c++0x01
line.word 0x00 "HVDAT,High Voltage Data Register"
bitfld.word 0x00 8.--11. " CMD  ,Command" "Read HVCFG to HVDAT,Reserved,Read HVSTA to HVDAT,Reserved,Reserved,Reserved,Reserved,Reserved,Write HVDAT to HVCFG,?..."
hexmask.word.byte 0x00 0.--7. 1. " DATA   ,High Voltage Data to Read/Write"
endif
tree.end
tree "UART (Universal Asynchronous Receiver/Transmitter)"
base d:0xffff0700
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033"))
width 0x09
if (((data.byte(d:0xffff0700+0x0C))&0x80)==0x00)
wgroup.byte 0x00--0x00
line.byte 0x00 "COMTX,UART Transmit Register"
rgroup.byte 0x00--0x00
line.byte 0x00 "COMRX,UART Receive Register"
group.byte 0x04--0x04
line.byte 0x00 "COMIEN0,UART Interrupt Enable Register"
bitfld.byte 0x00 3. " EDSSI    ,Modem Status Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "         ELSI     ,RX Status Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. "      ETBEI ,Enable Transmit Buffer Empty Interrupt" "Disabled,Enabled"
textline "              "
bitfld.byte 0x00 0. " ERBFI    ,Enable Receive Buffer Full Interrupt" "Disabled,Enabled"
else
group.byte 0x00--0x00
line.byte 0x00 "COMDIV0,UART Divisor Latch (low byte) Register"
group.byte 0x04--0x04
line.byte 0x00 "COMDIV1,UART Divisor Latch (high byte) Register"
endif
if (((data.byte(d:0xffff0700+0x0C))&0x3)==0x0)
group.byte 0x0C++0x00
line.byte 0x00 "COMCON0,UART Control Register 0"
bitfld.byte 0x00 7. " DLAB     ,Divisor Latch Access" "COMRX/COMTX,COMDIV0/COMDIV1"
bitfld.byte 0x00 6. "  BRK      ,Set Break" "Normal,Force TXD=0"
bitfld.byte 0x00 5. "   SP    ,Stick Parity" "Low,High"    
textline "              "
bitfld.byte 0x00 4. " EPS      ,Even Parity Select" "Odd,Even"
bitfld.byte 0x00 3. "             PEN      ,Parity Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "      STOP  ,Stop bit" "1 bit,1.5 bits"
textline "              "
bitfld.byte 0x00 0.--1. " WLS      ,Word Length Select" "5 bits,6 bits,7 bits,8 bits"
else
group.byte 0x0C++0x00
line.byte 0x00 "COMCON0,UART Control Register 0"
bitfld.byte 0x00 7. " DLAB     ,Divisor Latch Access" "COMRX/COMTX,COMDIV0/COMDIV1"
bitfld.byte 0x00 6. "  BRK      ,Set Break" "Normal,Force TXD=0"
bitfld.byte 0x00 5. "   SP    ,Stick Parity" "Low,High"    
textline "              "
bitfld.byte 0x00 4. " EPS      ,Even Parity Select" "Odd,Even"
bitfld.byte 0x00 3. "             PEN      ,Parity Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "      STOP  ,Stop bit" "1 bit,2 bits"
textline "              "
bitfld.byte 0x00 0.--1. " WLS      ,Word Length Select" "5 bits,6 bits,7 bits,8 bits"
endif
group.byte 0x10--0x10
line.byte 0x00 "COMCON1,UART Control Register 1"
sif (cpuis("ADUC706*"))
bitfld.byte 0x00 4. " LOOPBACK ,Loop Back Mode" "Disabled,Enabled"
bitfld.byte 0x00 1. "         RTS      ,Request to send" "Force high,Force low"
bitfld.byte 0x00 0. "    DTR   ,Data terminal ready" "Force high,Force low"
else
bitfld.byte 0x00 6.--7. " UARTIM   ,UART Input Mux" "RxD by LIN,Reserved,RxD by GP5,?..."
bitfld.byte 0x00 4. "       LOOPBACK ,Loop Back Mode" "Disabled,Enabled"
endif
rgroup.byte 0x14++0x00
line.byte 0x00 "COMSTA0,UART Status Register"
bitfld.byte 0x00 6. " TEMT     ,COMTX Empty Status" "Not empty,Empty"
bitfld.byte 0x00 5. "        THRE     ,COMTX and COMRX Empty" "Not empty,Empty"
bitfld.byte 0x00 4. "     BI    ,Break Indicator" "No error,Error"
textline "              "
bitfld.byte 0x00 3. " FE       ,Framing Error" "No error,Error"
bitfld.byte 0x00 2. "         PE       ,Parity Error" "No error,Error"
bitfld.byte 0x00 1. "      OE    ,Overrun Error" "No error,Error"
textline "              "
bitfld.byte 0x00 0. " DR       ,Data Ready" "Not ready,Ready"
rgroup.byte 0x08--0x08
line.byte 0x00 "COMIID0,UART Interrupt Identification Register"
bitfld.byte 0x00 0.--2. " STA/NINT ,UART Interrupt Source" "Modem status,No interrupt,Transmit buffer empty,Reserved,Receive buffer full,Reserved,Receive line status,?..."
group.word 0x2c++0x01
line.word 0x00 "COMDIV2,UART Fractional Divider Register"
bitfld.word 0x00 15. " FBEN     ,Fractional Baudrate Generator Enable" "Disabled,Enabled"
bitfld.word 0x00 11.--12. "  FBM[1-0] ,M" "00,01,10,11"
hexmask.word 0x00 0.--10. 1. "  FBN[10-0] ,N"
sif (cpuis("ADUC706*"))
hgroup.byte 0x18++0x00
hide.byte 0x00 "COMSTA1,UART Status Register 1"
in
else
rgroup.byte 0x18++0x00
line.byte 0x00 "COMSTA1,UART Status Register 1"
rgroup.byte 0x1C++0x00
line.byte 0x00 "COMSCR,UART Scratch Register"
rgroup.byte 0x20++0x00
line.byte 0x00 "COMIEN1,UART Interrupt Enable Register 1"
rgroup.byte 0x28++0x00
line.byte 0x00 "COMADR,UART Network Address Register"
rgroup.byte 0x0024--0x0024
line.byte 0x00 "COMIID1,UART Interrupt Identification Register"
endif
width 0x0B

elif (cpu()=="ADUC7032"||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 0x09
if (((data.byte(d:0xffff0700+0x0C))&0x80)==0x00)
wgroup.byte 0x00--0x00
line.byte 0x00 "COMTX,UART Transmit Register"
rgroup.byte 0x00--0x00
line.byte 0x00 "COMRX,UART Receive Register"
group.byte 0x04--0x04
line.byte 0x00 "COMIEN0,UART Interrupt Enable Register"
bitfld.byte 0x00 2. " ELSI     ,RX Status Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. "     ETBEI    ,Enable Transmit Buffer Empty Interrupt" "Disabled,Enabled"
bitfld.byte 0x00 0. "   ERBFI     ,Enable Receive Buffer Full Interrupt" "Disabled,Enabled"
else
group.byte 0x00--0x00
line.byte 0x00 "COMDIV0,UART Divisor Latch (low byte) Register"
group.byte 0x04--0x04
line.byte 0x00 "COMDIV1,UART Divisor Latch (high byte) Register"
endif
if (((data.byte(d:0xffff0700+0x0C))&0x03)==0x00)
group.byte 0x0C++0x00
line.byte 0x00 "COMCON0,UART Control Register 0"
bitfld.byte 0x00 7. " DLAB     ,Divisor Latch Access" "COMRX/COMTX/COMIEN0,COMDIV0/COMDIV1"
textline "              "
bitfld.byte 0x00 6. " BRK      ,Set Break" "Normal,Force TXD=0"
bitfld.byte 0x00 5. "  SP       ,Stick Parity" "Low,High"    
bitfld.byte 0x00 4. "       EPS       ,Even Parity Select" "Odd,Even"
textline "              "
bitfld.byte 0x00 3. " PEN      ,Parity Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "     STOP     ,Stop bit" "1 bit,1.5 bits"
bitfld.byte 0x00 0.--1. "   WLS       ,Word Length Select" "5 bits,6 bits,7 bits,8 bits"
else
group.byte 0x0C++0x00
line.byte 0x00 "COMCON0,UART Control Register 0"
bitfld.byte 0x00 7. " DLAB     ,Divisor Latch Access" "COMRX/COMTX/COMIEN0,COMDIV0/COMDIV1"
textline "              "
bitfld.byte 0x00 6. " BRK      ,Set Break" "Normal,Force TXD=0"
bitfld.byte 0x00 5. "  SP       ,Stick Parity" "Low,High"    
bitfld.byte 0x00 4. "       EPS       ,Even Parity Select" "Odd,Even"
textline "              "
bitfld.byte 0x00 3. " PEN      ,Parity Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. "     STOP     ,Stop bit" "1 bit,2 bits"
bitfld.byte 0x00 0.--1. "     WLS       ,Word Length Select" "5 bits,6 bits,7 bits,8 bits"
endif
group.byte 0x10--0x10
line.byte 0x00 "COMCON1,UART Control Register 1"
bitfld.byte 0x00 6.--7. " UARTIM   ,UART Input Mux" "RxD by LIN,Reserved,RxD by GP5,?..."
bitfld.byte 0x00 4. "   LOOPBACK ,Loop Back Mode" "Disabled,Enabled"
rgroup.byte 0x14++0x00
line.byte 0x00 "COMSTA0,UART Status Register"
bitfld.byte 0x00 6. " TEMT     ,COMTX Empty Status" "Not empty,Empty"
bitfld.byte 0x00 5. "    THRE     ,COMTX and COMRX Empty" "Not empty,Empty"
bitfld.byte 0x00 4. "  BI        ,Break Indicator" "No error,Error"
textline "              "
bitfld.byte 0x00 3. " FE       ,Framing Error" "No error,Error"
bitfld.byte 0x00 2. "     PE       ,Parity Error" "No error,Error"
bitfld.byte 0x00 1. "   OE        ,Overrun Error" "No error,Error"
textline "              "
bitfld.byte 0x00 0. " DR       ,Data Ready" "Not ready,Ready"
rgroup.byte 0x08--0x08
line.byte 0x00 "COMIID0,UART Interrupt Identification Register"
sif (cpu()=="ADUC7034")    
bitfld.byte 0x00 0.--2. " STA/NINT ,UART Interrupt Source" "Modem status interrupt,No interrupt,Transmit buffer empty,Reserved,Receive buffer full,Reserved,Receive line status,?..."
else
bitfld.byte 0x00 0.--2. " STA/NINT ,UART Interrupt Source" "Reserved,No interrupt,Transmit buffer empty,Reserved,Receive buffer full,Reserved,Receive line status,?..."
endif
group.word 0x2c++0x01
line.word 0x00 "COMDIV2,UART Fractional Divider Register"
bitfld.word 0x00 15. " FBEN     ,Fractional Baudrate Generator Enable" "Disabled,Enabled"
bitfld.word 0x00 11.--12. "     FBM[1-0] ,M" "00,01,10,11"
hexmask.word 0x00 0.--10. 1. "         FBN[10-0] ,N"
width 0x0B

endif
tree.end
tree "SPI (Serial Peripheral Interface)"
base d:0xffff0a00
sif ((cpu()=="ADUC7039"))
width 0x08
rgroup.byte 0x04++0x00
line.byte 0x00 "SPIRX,Receive Register"
wgroup.byte 0x08++0x00
line.byte 0x00 "SPITX,Transmit Register"
group.byte 0x0C++0x00
line.byte 0x00 "SPIDIV,Divider Register"
hgroup.word 0x00++0x01
hide.word 0x00 "SPISTA,Status Register"
in
group.word 0x10++0x01
line.word 0x00 "SPICON,Control Register"
bitfld.word 0x00 14.--15. " IRQMOD    ,SPI IRQ Mode" "Tx 1 byte/Rx > 1 byte,Tx 2 byte/Rx > 1 byte,Tx 3 byte/Rx > 3 byte,Tx 4 byte/Rx Full"
textline "             "
bitfld.word 0x00 13. " TXFLUSHEN ,Tx FIFO Flush Enable" "Disabled,Enabled"
bitfld.word 0x00 12. "  RXFLUSHEN ,Rx FIFO Flush Enable" "Disabled,Enabled"
bitfld.word 0x00 11. "    CTE      ,Continuous Transfer Enable" "Disabled,Enabled"
textline "             "
bitfld.word 0x00 10. " LBE       ,Loop Back Enable" "Disabled,Enabled"
bitfld.word 0x00 9. "  SMOE      ,Slave MISO Output Enable" "Disabled,Enabled"
bitfld.word 0x00 8. "    SPIRXOOE ,SPIRX Overflow Overwrite Enable" "Disabled,Enabled"
textline "             "
bitfld.word 0x00 7. " TXZEROS   ,Transmit Zeros when Tx FIFO Enable" "Disabled,Enabled"
bitfld.word 0x00 6. "  TIM       ,Transfer and Interrupt Mode" "RX/Full,TX/Empty"
bitfld.word 0x00 5. "    LSBFTE   ,LSB First Transfer Enable" "MSB,LSB"
textline "             "
bitfld.word 0x00 4. " WOME      ,SPI Wired Or Mode Enable" "Disabled,Enabled"
bitfld.word 0x00 3. "  SCPOM     ,Serial Clock Polarity Mode" "Idles low,Idles high"
bitfld.word 0x00 2. "  SCPHM    ,Serial Clock Phase Mode" "End,Beginning"
textline "             "
bitfld.word 0x00 1. " MME       ,Master Mode Enable" "Slave,Master"
bitfld.word 0x00 0. "    SPIE      ,SPI Enable" "Disabled,Enabled"
width 0x0B
else
width 0x08
rgroup.byte 0x00++0x00
line.byte 0x00 "SPISTA,Status Register"
bitfld.byte 0x00 5. " SPIRXDROVR ,SPIRX Data Register Overflow Status" "No overflow,Overflow"
bitfld.byte 0x00 4. "   SPIRXDRIRQ ,SPIRX Data Register IRQ" "Not occurred,Occurred"
bitfld.byte 0x00 3. "  SPIRXDRFULL ,SPIRX Data Register Full Status" "Not full,Full"
textline "             "
bitfld.byte 0x00 2. " SPITXDRUFW ,SPITX Data Register Underflow Status" "No underflow,Underflow"
bitfld.byte 0x00 1. "  SPITXDRIRQ ,SPITX Data Register IRQ" "Not occurred,Occurred"
bitfld.byte 0x00 0. "  SPITXDREMP  ,SPITX Data Register Empty Status" "Empty,Not empty"
hgroup.byte 0x04++0x00
hide.byte 0x00 "SPIRX,Receive Register"
in
wgroup.byte 0x08++0x00
line.byte 0x00 "SPITX,Transmit Register"
group.byte 0x0C++0x00
line.byte 0x00 "SPIDIV,Divider Register"
group.word 0x10++0x01
line.word 0x00 "SPICON,Control Register"
bitfld.word 0x00 12. " CTE   ,Continuous Transfer Enable" "Disabled,Enabled"
bitfld.word 0x00 11. "      LBE      ,Loop Back Enable" "Disabled,Enabled"
bitfld.word 0x00 10. "  SOE     ,Slave Output Enable" "Disabled,Enabled"
textline "             "
bitfld.word 0x00 9. " SSIE  ,Slave Select Input Enable" "Disabled,Enabled"
bitfld.word 0x00 8. "      SPIRXOOE ,SPIRX Overflow Overwrite Enable" "Disabled,Enabled"
bitfld.word 0x00 7. "  SPITXUM ,SPITX Underflow Mode" "Transmit 0,Previous data"
textline "             "
bitfld.word 0x00 6. " TIM   ,Transfer and Interrupt Mode (master mode)" "SPIRX Read,SPITX Write"
bitfld.word 0x00 5. "   LSBFTE   ,LSB First Transfer Enable" "MSB,LSB"
bitfld.word 0x00 3. "       SCPOM   ,Serial Clock Polarity Mode" "Idles low,Idles high"
textline "             "
bitfld.word 0x00 2. " SCPHM ,Serial Clock Phase Mode" "At end,At beginning"
bitfld.word 0x00 1. "  MME      ,Master Mode Enable" "Slave,Master"
bitfld.word 0x00 0. "    SPIE    ,SPI Enable" "Disabled,Enabled"
width 0x0B
endif
tree.end
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033")||cpu()=="ADUC7034"||cpu()=="ADUC7036")
tree "STI (Serial Test Interface)"
base d:0xffff0880
width 9.
wgroup.long 0x00++0x03
line.long 0x00 "STIKEY0,STI Pre Write Key Register"
wgroup.long 0x08++0x03
line.long 0x00 "STIKEY1,STI Post Write Key Register"
group.word 0x0c++0x01
line.word 0x00 "STIDAT0,STI Data 0 Register"
group.word 0x10++0x01
line.word 0x00 "STIDAT1,STI Data 1 Register"
group.word 0x14++0x01
line.word 0x00 "STIDAT2,STI Data 2 Register"
group.word 0x04++0x01
line.word 0x00 "STICON,STI Control Register"
bitfld.word 0x00 2.--4. " NBT ,Number of Bytes to Transmit" "1 byte,2 bytes,3 bytes,4 bytes,5 bytes,6 bytes,?..."
bitfld.word 0x00 1. " RSTI ,Reset Serial Test Interface" "Normal,Reset"
bitfld.word 0x00 0. " STIE ,Serial Test Interface Enable" "Disabled,Enabled"
width 0xb        
tree.end
endif
tree "LIN (Local Interconnect Network)"
base d:0xffff0780
sif ((cpu()=="ADUC7030")||(cpu()=="ADUC7033")||cpu()=="ADUC7034"||cpu()=="ADUC7036")
width 9.
sif (cpu()=="ADUC7034")    
hgroup.byte 0x00++0x03
hide.byte 0x00 "LHSSTA,LIN Hardware Synchronization Status Register"
in
else
hgroup.long 0x00++0x03
hide.long 0x00 "LHSSTA,LIN Hardware Synchronization Status Register"
in
endif        
sif (cpu()=="ADUC7034"||cpu()=="ADUC7036")
if (((data.word(d:0xffff0780+0x4))&0x40)==0x40)
group.word 0x04++0x03
line.word 0x00 "LHSCON0,LIN Hardware Synchronization Control Register 0"
bitfld.word 0x00 12. " REDID   ,Rising Edge Detected Interrupt Disable" "No,Yes"
bitfld.word 0x00 11. "       BTCID    ,Break Timer Compare Interrupt Disable" "No,Yes"
bitfld.word 0x00 10. "       BTEID  ,Break Timer Error Interrupt Disable" "No,Yes"
textline "              "
bitfld.word 0x00 9. " LINT    ,LIN Transceiver Stand-Alone Test Mode" "Normal,Test"
bitfld.word 0x00 8. "    GUBRW    ,Break Condition Interrupt Enable" "Disabled,Enabled"
bitfld.word 0x00 7. "  STSET  ,Sync Timer Stop Edge Type" "Falling,Rising"
textline "              "
bitfld.word 0x00 6. " MO      ,Mode of Operation" "LIN,BSD"
bitfld.word 0x00 5. "       ECI      ,Enable Compare Interrupt" "Disabled,Enabled"
bitfld.word 0x00 4. "  ESTOPI ,Enable Stop Interrupt" "Disabled,Enabled"
textline "              "
bitfld.word 0x00 3. " ESTARTI ,Enable Start Interrupt" "Disabled,Enabled"
bitfld.word 0x00 2. "  LINSE    ,LIN Sync Enable" "Disabled,Enabled"
bitfld.word 0x00 1. "  ECC    ,Edge Counter Clear" "Normal,Cleared"
textline "              "
bitfld.word 0x00 0. " LHSR    ,LHS Reset" "Normal,Reset"
else
group.word 0x04++0x03
line.word 0x00 "LHSCON0,LIN Hardware Synchronization Control Register 0"
bitfld.word 0x00 12. " REDID   ,Rising Edge Detected Interrupt Disable" "Yes,No"
bitfld.word 0x00 11. "       BTCID    ,Break Timer Compare Interrupt Disable" "No,Yes"
bitfld.word 0x00 10. "       BTEID  ,Break Timer Error Interrupt Disable" "No,Yes"
textline "              "
bitfld.word 0x00 9. " LINT    ,LIN Transceiver Stand-Alone Test Mode" "Normal,Test"
bitfld.word 0x00 8. "    GUBRW    ,UART RxD Disable" "No,Yes"
bitfld.word 0x00 7. "       STSET  ,Sync Timer Stop Edge Type" "Falling,Rising"
textline "              "
bitfld.word 0x00 6. " MO      ,Mode of Operation" "LIN,BSD"
bitfld.word 0x00 5. "       ECI      ,Enable Compare Interrupt" "Disabled,Enabled"
bitfld.word 0x00 4. "  ESTOPI ,Enable Stop Interrupt" "Disabled,Enabled"
textline "              "
bitfld.word 0x00 3. " ESTARTI ,Enable Start Interrupt" "Disabled,Enabled"
bitfld.word 0x00 2. "  LINSE    ,LIN Sync Enable" "Disabled,Enabled"
bitfld.word 0x00 1. "  ECC    ,Edge Counter Clear" "Normal,Cleared"
textline "              "
bitfld.word 0x00 0. " LHSR    ,LHS Reset" "Normal,Reset"
endif
else
if (((data.long(d:0xffff0780+0x4))&0x40)==0x40)
group.long 0x04++0x03
line.long 0x00 "LHSCON0,LIN Hardware Synchronization Control Register 0"
bitfld.long 0x00 12. " REDID   ,Rising Edge Detected Interrupt Disable" "No,Yes"
bitfld.long 0x00 11. "       BTCID    ,Break Timer Compare Interrupt Disable" "No,Yes"
bitfld.long 0x00 10. "       BTEID  ,Break Timer Error Interrupt Disable" "No,Yes"
textline "                  "
bitfld.long 0x00 9. " LINT    ,LIN Transceiver Stand-Alone Test Mode" "Normal,Test"
bitfld.long 0x00 8. "    GUBRW    ,Break Condition Interrupt Enable" "Disabled,Enabled"
bitfld.long 0x00 7. "  STSET  ,Sync Timer Stop Edge Type" "Falling,Rising"
textline "                  "
bitfld.long 0x00 6. " MO      ,Mode of Operation" "LIN,BSD"
bitfld.long 0x00 5. "       ECI      ,Enable Compare Interrupt" "Disabled,Enabled"
bitfld.long 0x00 4. "  ESTOPI ,Enable Stop Interrupt" "Disabled,Enabled"
textline "                  "
bitfld.long 0x00 3. " ESTARTI ,Enable Start Interrupt" "Disabled,Enabled"
bitfld.long 0x00 2. "  LINSE    ,LIN Sync Enable" "Disabled,Enabled"
bitfld.long 0x00 1. "  ECC    ,Edge Counter Clear" "Normal,Cleared"
textline "                  "
bitfld.long 0x00 0. " LHSR    ,LHS Reset" "Normal,Reset"
else
group.long 0x04++0x03
line.long 0x00 "LHSCON0,LIN Hardware Synchronization Control Register 0"
bitfld.long 0x00 12. " REDID   ,Rising Edge Detected Interrupt Disable" "Yes,No"
bitfld.long 0x00 11. "       BTCID    ,Break Timer Compare Interrupt Disable" "No,Yes"
bitfld.long 0x00 10. "       BTEID  ,Break Timer Error Interrupt Disable" "No,Yes"
textline "                  "
bitfld.long 0x00 9. " LINT    ,LIN Transceiver Stand-Alone Test Mode" "Normal,Test"
bitfld.long 0x00 8. "    GUBRW    ,UART RxD Disable" "No,Yes"
bitfld.long 0x00 7. "       STSET  ,Sync Timer Stop Edge Type" "Falling,Rising"
textline "                  "
bitfld.long 0x00 6. " MO      ,Mode of Operation" "LIN,BSD"
bitfld.long 0x00 5. "       ECI      ,Enable Compare Interrupt" "Disabled,Enabled"
bitfld.long 0x00 4. "  ESTOPI ,Enable Stop Interrupt" "Disabled,Enabled"
textline "                  "
bitfld.long 0x00 3. " ESTARTI ,Enable Start Interrupt" "Disabled,Enabled"
bitfld.long 0x00 2. "  LINSE    ,LIN Sync Enable" "Disabled,Enabled"
bitfld.long 0x00 1. "  ECC    ,Edge Counter Clear" "Normal,Cleared"
textline "                  "
bitfld.long 0x00 0. " LHSR    ,LHS Reset" "Normal,Reset"
endif
endif
sif (cpu()=="ADUC7034")
group.byte 0x0c++0x03
line.byte 0x00 "LHSCON1,LIN Hardware Synchronization Control Register 1"
bitfld.byte 0x00 4.--7. " LINSTOP ,LIN STOP Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.byte 0x00 0.--3. "        LINSTART ,LIN START Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
group.long 0x0c++0x03
line.long 0x00 "LHSCON1,LIN Hardware Synchronization Control Register 1"
bitfld.long 0x00 4.--7. " LINSTOP ,LIN STOP Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 0.--3. "        LINSTART ,LIN START Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
rgroup.word 0x08++0x01
line.word 0x00 "LHSVAL0,LIN Hardware Synchronization Timer 0 Register"
group.word 0x10++0x01
line.word 0x00 "LHSVAL1,LIN Hardware Break Timer1 Register"
rgroup.word 0x14++0x03
line.word 0x00 "LHSCAP,LIN Hardware Synchronization Capture Register"
group.word 0x18++0x03
line.word 0x00 "LHSCMP,LIN Hardware Synchronization Compare Register"
elif (cpu()=="ADUC7032")
width 9.
hgroup.byte 0x00++0x00
hide.byte 0x00 "LHSSTA,LIN Hardware Synchronization Status Register"
in
group.word 0x04++0x01
line.word 0x00 "LHSCON0,LIN Hardware Synchronization Control Register 0"
bitfld.word 0x00 11. " BTCID   ,Break Timer Compare Interrupt Disable" "Enabled,Disabled"
bitfld.word 0x00 10. "       BTEID    ,Break Timer Error Interrupt Disable" "Enabled,Disabled"
bitfld.word 0x00 9. "      LINT   ,LIN Transceiver Stand-Alone Test Mode" "Normal,Test"
textline "              "
bitfld.word 0x00 8. " GUBRW   ,Gate UART Disable" "Enabled,Disabled"
bitfld.word 0x00 7. "       STSET    ,Sync Timer Stop Edge Type" "Falling,Rising"
bitfld.word 0x00 4. "       ESTOPI ,Enable Stop Interrupt" "Disabled,Enabled"
textline "              "
bitfld.word 0x00 3. " ESTARTI ,Enable Start Interrupt" "Disabled,Enabled"
bitfld.word 0x00 2. "       LINSE    ,LIN Sync Enable" "Disabled,Enabled"
bitfld.word 0x00 1. "      ECC    ,Edge Counter Clear" "Normal,Cleared"
textline "              "
bitfld.word 0x00 0. " LHSR    ,LHS Reset" "Normal,Reset"
group.byte 0x0c++0x00
line.byte 0x00 "LHSCON1,LIN Hardware Synchronization Control Register 1"
bitfld.byte 0x00 4.--7. " LINSTOP ,LIN STOP Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.byte 0x00 0.--3. "             LINSTART ,LIN START Edge Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.word 0x08++0x01
line.word 0x00 "LHSVAL0,LIN Hardware Synchronization Timer 0 Register"
group.word 0x10++0x01
line.word 0x00 "LHSVAL1,LIN Hardware Break Timer1 Register"
elif (cpu()=="ADUC7039")
base d:0xffff0700
width 8.
group.word 0x00++0x1
line.word 0x00 "LINCON,LIN Control Register"
bitfld.word 0x00 12. "   BYPASS   ,LIN bypass" "Normal,Bypass"
bitfld.word 0x00 11. "    ENABLE    ,LIN Enable" "Disabled,Enabled"
bitfld.word 0x00 10. "   UART       ,UART Enable" "Disabled,Enabled"
textline "               "
bitfld.word 0x00 9. " TSYNC    ,Timing of sync symbol" "Disabled,Enabled"
bitfld.word 0x00 8. "  CHCKSUM   ,Send checksum" "No effect,Send"
bitfld.word 0x00 7. "  CHSUMCALC  ,Checksum Calculation" "Enhanced,Classic"
textline "               "
bitfld.word 0x00 6. " COLTXINT ,Collision Detect and Transmit Complete Interrupt" "Enabled,Disabled"
bitfld.word 0x00 5. "  NEGMAXINT ,Negative Edge Max Error Interrupt" "Enabled,Disabled"
bitfld.word 0x00 4. "   COLLDETINT ,Collision Detect Interrupt" "Enabled,Disabled"
textline "               "
bitfld.word 0x00 3. " BREAKINT ,Break Received Interrupt" "Enabled,Disabled"
bitfld.word 0x00 2. "  TXCPLTINT ,Transmit Complete Interrupt" "Enabled,Disabled"
bitfld.word 0x00 1. "   TXRDYINT   ,Transmit Ready Interrupt" "Enabled,Disabled"
textline "               "
bitfld.word 0x00 0. " RXTXMODE ,Receive/Transmit mode" "No effect,Send After Decoding the PID"
group.byte 0x04++0x0    
line.byte 0x00 "LINCS,LIN Checksum Register"
group.tbyte 0x08++0x2
line.tbyte 0x00 "LINBR,LIN Baud Rate Register"
group.tbyte 0x0C++0x2    
line.tbyte 0x00 "LINBK,LIN Break Timer Register"
hgroup.word 0x10++0x1
hide.word 0x00 "LINSTA,LIN Status Register"
in
group.byte 0x14++0x0    
line.byte 0x00 "LINDAT,LIN Data Register"
group.tbyte 0x18++0x2
line.tbyte 0x00 "LINLOW,LIN Counter To Force The Bus Low "
group.word    0x1C++0x1
line.word 0x00 "LINWU,LIN Wake Up Break Length"
width 0xB
endif
tree.end
textline ""
