Files
Gen4_R-Car_Trace32/2_Trunk/peratsamr21.per
2025-10-14 09:52:32 +09:00

12122 lines
795 KiB
Plaintext

; --------------------------------------------------------------------------------
; @Title: ATSAMR21xxx On-Chip Peripherals
; @Props: Released
; @Author: ZUO
; @Changelog: 2014-12-02 ZUO
; @Manufacturer: ATMEL - Atmel Corporation
; @Doc:
; Atmel-42223-SAM-R21_Datasheet.pdf (2014-07)
; DDI0486B_coresight_mtb_m0p_r0p1_trm.pdf rev: r0p1 ID011213
; IHI0029D_coresight_architecture_spec_v2_0.pdf ID092613
; @Core: Cortex-M0P
; @Copyright: (C) 1989-2016 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: peratsamr21.per 15961 2023-04-12 15:09:02Z bschroefel $
config 16. 8.
tree.close "Core Registers (Cortex-M0+)"
AUTOINDENT.PUSH
AUTOINDENT.OFF
tree "System Control"
sif COMPonent.AVAILABLE("COREDEBUG")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))
width 0x8
if (CORENAME()=="CORTEXM1")
group.long 0x10++0x0b
line.long 0x00 "STCSR,SysTick Control and Status Register"
bitfld.long 0x00 16. " COUNTFLAG ,Returns 1 if timer counted to 0" "0,1"
bitfld.long 0x00 2. " CLKSOURCE ,Always reads as one" "No effect,Processor clock"
textline " "
bitfld.long 0x00 1. " TICKINT ,Counting down to 0 " "No SysTick,SysTick"
bitfld.long 0x00 0. " ENABLE ,Counter enable" "Disabled,Enabled"
line.long 0x04 "STRVR,SysTick Reload Value Register"
hexmask.long.tbyte 0x04 0.--23. 1. " RELOAD ,Value to load into the STCVR when the counter reaches 0"
line.long 0x08 "STCVR,SysTick Current Value Register"
hexmask.long.tbyte 0x08 0.--23. 1. " CURRENT ,Reads return the current value of the SysTick counter"
else
group.long 0x10++0x0b
line.long 0x00 "STCSR,SysTick Control and Status Register"
bitfld.long 0x00 16. " COUNTFLAG ,Returns 1 if timer counted to 0" "0,1"
bitfld.long 0x00 2. " CLKSOURCE ,Always reads as one" "External clock,Processor clock"
textline " "
bitfld.long 0x00 1. " TICKINT ,Counting down to 0 " "No SysTick,SysTick"
bitfld.long 0x00 0. " ENABLE ,Counter enable" "Disabled,Enabled"
line.long 0x04 "STRVR,SysTick Reload Value Register"
hexmask.long.tbyte 0x04 0.--23. 1. " RELOAD ,Value to load into the STCVR when the counter reaches 0"
line.long 0x08 "STCVR,SysTick Current Value Register"
hexmask.long.tbyte 0x08 0.--23. 1. " CURRENT ,Reads return the current value of the SysTick counter"
endif
if (CORENAME()=="CORTEXM1")
rgroup.long 0x1c++0x03
line.long 0x00 "STCR,SysTick Calibration Value Register"
bitfld.long 0x00 31. " NOREF ,Reads as one" "0,1"
bitfld.long 0x00 30. " SKEW ,Reads as zero" "0,1"
textline " "
hexmask.long.tbyte 0x00 0.--23. 1. " TENMS ,Indicates calibration value is not known"
else
rgroup.long 0x1c++0x03
line.long 0x00 "STCR,SysTick Calibration Value Register"
bitfld.long 0x00 31. " NOREF ,Indicates whether the IMPL_DEF reference clock is provided" "Implemented,Not implemented"
bitfld.long 0x00 30. " SKEW ,Indicates whether the 10ms calibration value is exact" "Exact,Inexact"
textline " "
hexmask.long.tbyte 0x00 0.--23. 1. " TENMS ,Holds a reload value to be used for 10ms (100Hz) timing subject to system clock skew errors"
endif
rgroup.long 0xd00++0x03
line.long 0x00 "CPUID,CPU ID Base Register"
hexmask.long.byte 0x00 24.--31. 1. " IMPLEMENTER ,Implementer code"
hexmask.long.byte 0x00 20.--23. 1. " VARIANT ,Implementation defined variant number"
textline " "
hexmask.long.byte 0x00 4.--15. 1. " PARTNO ,Number of processor within family"
hexmask.long.byte 0x00 0.--3. 1. " REVISION ,Implementation defined revision number"
group.long 0xd04++0x03
line.long 0x00 "ICSR,Interrupt Control State Register"
bitfld.long 0x00 31. " NMIPENDSET ,Setting this bit will activate an NMI" "No effect,Set pending"
bitfld.long 0x00 28. " PENDSVSET ,Set a pending PendSV interrupt" "No effect,Set pending"
textline " "
bitfld.long 0x00 27. " PENDSVCLR ,Clear a pending PendSV interrupt" "No effect,Clear pending"
bitfld.long 0x00 26. " PENDSTSET ,Set a pending SysTick" "No effect,Set pending"
textline " "
bitfld.long 0x00 25. " PENDSVCLR ,Clear a pending SysTick" "No effect,Clear pending"
bitfld.long 0x00 23. " ISRPREEMPT ,Pending exception service" "No service,Service"
textline " "
bitfld.long 0x00 22. " ISRPENDING ,External interrupt pending flag" "No interrupt,Interrupt"
hexmask.long.byte 0x00 12.--17. 1. " VECTPENDING ,Active exception number field"
textline " "
hexmask.long.byte 0x00 0.--5. 1. " VECTACTIVET ,Active exception number field"
if (CORENAME()=="CORTEXM0+")
group.long 0xd08++0x03
line.long 0x00 "VTOR,Vector Table Offset Register"
hexmask.long 0x00 7.--31. 0x80 " TBLOFF ,Vector table address"
else
textline " "
endif
group.long 0xd0c++0x03
line.long 0x00 "AIRCR,Application Interrupt and Reset Control Register"
hexmask.long.word 0x00 16.--31. 1. " VECTKEY ,Vector Key"
bitfld.long 0x00 15. " ENDIANNESS ,Data endianness bit" "Little-endian,Big-endian"
textline " "
bitfld.long 0x00 2. " SYSRESETREQ ,System reset setup request" "No effect,Reset"
bitfld.long 0x00 1. " VECTCLRACTIVE ,Clears all active state information" "No clear,Clear"
group.long 0xd10++0x03
line.long 0x00 "SCR,System Control Register"
bitfld.long 0x00 4. " SEVONPEND ,Determines whether an interrupt transition from inactive state to pending state is a wakeup event" "Not wakeup,Wakeup"
bitfld.long 0x00 2. " SLEEPDEEP ,Provides a qualifying hint indicating that waking from sleep might take longer" "Not deep sleep,Deep sleep"
textline " "
bitfld.long 0x00 1. " SLEEPONEXIT ,Determines whether, on an exit from an ISR that returns to the base level of execution priority, the processor enters a sleep state" "Disabled,Enabled"
rgroup.long 0xd14++0x03
line.long 0x00 "CCR,Configuration and Control Register"
bitfld.long 0x00 9. " STKALIGN ,Indicates whether on exception entry all exceptions are entered with 8-byte stack alignment and the context to restore it is saved" "Reserved,Aligned"
bitfld.long 0x00 3. " UNALIGN_TRP ,Indicates that all unaligned accesses results in a Hard Fault" "Reserved,Trapped"
group.long 0xd1c++0x0b
line.long 0x00 "SHPR2,System Handler Priority Register 2"
bitfld.long 0x00 30.--31. " PRI_11 ,Priority of system handler 11-SVCall" "00,01,10,11"
line.long 0x04 "SHPR3,System Handler Priority Register 3"
bitfld.long 0x04 30.--31. " PRI_15 ,Priority of system handler 15-SysTick" "00,01,10,11"
bitfld.long 0x04 22.--23. " PRI_14 ,Priority of system handler 14- PendSV" "00,01,10,11"
line.long 0x08 "SHCSR,System Handler Control and State Register"
bitfld.long 0x08 15. " SVCALLPENDED ,Reads as 1 if SVCall is pending" "Not pending,Pending"
if (CORENAME()=="CORTEXM0+")
hgroup.long 0x08++0x03
hide.long 0x00 "ACTLR,Auxiliary Control Register"
else
textline " "
endif
else
newline
textline "COREDEBUG component base address not specified"
newline
endif
tree.end
tree "Memory Protection Unit (MPU)"
sif COMPonent.AVAILABLE("COREDEBUG")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))
width 15.
rgroup.long 0xD90++0x03
line.long 0x00 "MPU_TYPE,MPU Type Register"
bitfld.long 0x00 8.--15. 1. " DREGION ,Number of regions supported by the MPU" "0,1,2,3,4,5,6,7,8,?..."
group.long 0xD94++0x03
line.long 0x00 "MPU_CTRL,MPU Control Register"
bitfld.long 0x00 2. " PRIVDEFENA ,Enables the default memory map as a background region for privileged access" "Disabled,Enabled"
bitfld.long 0x00 1. " HFNMIENA ,Handlers executing with priority less than 0 access memory with the MPU enabled or with the MPU disabled" "MPU disabled,MPU enabled"
bitfld.long 0x00 0. " ENABLE ,Enables the MPU" "Disabled,Enabled"
group.long 0xD98++0x03
line.long 0x00 "MPU_RNR,MPU Region Number Register"
hexmask.long.byte 0x00 0.--7. 1. " REGION ,Indicates the memory region accessed by MPU_RBAR and MPU_RASR"
tree.close "MPU regions"
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x0
group.long 0xD9C++0x03 "Region 0"
saveout 0xD98 %l 0x0
line.long 0x00 "MPU_RBAR0,MPU Region Base Address Register 0"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x0
line.long 0x00 "MPU_RASR0,MPU Region Attribute and Size Register 0"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 0 (not implemented)"
saveout 0xD98 %l 0x0
hide.long 0x00 "MPU_RBAR0,MPU Region Base Address Register 0"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x0
hide.long 0x00 "MPU_RASR0,MPU Region Attribute and Size Register 0"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x1
group.long 0xD9C++0x03 "Region 1"
saveout 0xD98 %l 0x1
line.long 0x00 "MPU_RBAR1,MPU Region Base Address Register 1"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x1
line.long 0x00 "MPU_RASR1,MPU Region Attribute and Size Register 1"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 1 (not implemented)"
saveout 0xD98 %l 0x1
hide.long 0x00 "MPU_RBAR1,MPU Region Base Address Register 1"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x1
hide.long 0x00 "MPU_RASR1,MPU Region Attribute and Size Register 1"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x2
group.long 0xD9C++0x03 "Region 2"
saveout 0xD98 %l 0x2
line.long 0x00 "MPU_RBAR2,MPU Region Base Address Register 2"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x2
line.long 0x00 "MPU_RASR2,MPU Region Attribute and Size Register 2"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 2 (not implemented)"
saveout 0xD98 %l 0x2
hide.long 0x00 "MPU_RBAR2,MPU Region Base Address Register 2"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x2
hide.long 0x00 "MPU_RASR2,MPU Region Attribute and Size Register 2"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x3
group.long 0xD9C++0x03 "Region 3"
saveout 0xD98 %l 0x3
line.long 0x00 "MPU_RBAR3,MPU Region Base Address Register 3"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x3
line.long 0x00 "MPU_RASR3,MPU Region Attribute and Size Register 3"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 3 (not implemented)"
saveout 0xD98 %l 0x3
hide.long 0x00 "MPU_RBAR3,MPU Region Base Address Register 3"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x3
hide.long 0x00 "MPU_RASR3,MPU Region Attribute and Size Register 3"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x4
group.long 0xD9C++0x03 "Region 4"
saveout 0xD98 %l 0x4
line.long 0x00 "MPU_RBAR4,MPU Region Base Address Register 4"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x4
line.long 0x00 "MPU_RASR4,MPU Region Attribute and Size Register 4"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 4 (not implemented)"
saveout 0xD98 %l 0x4
hide.long 0x00 "MPU_RBAR4,MPU Region Base Address Register 4"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x4
hide.long 0x00 "MPU_RASR4,MPU Region Attribute and Size Register 4"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x5
group.long 0xD9C++0x03 "Region 5"
saveout 0xD98 %l 0x5
line.long 0x00 "MPU_RBAR5,MPU Region Base Address Register 5"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x5
line.long 0x00 "MPU_RASR5,MPU Region Attribute and Size Register 5"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 5 (not implemented)"
saveout 0xD98 %l 0x5
hide.long 0x00 "MPU_RBAR5,MPU Region Base Address Register 5"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x5
hide.long 0x00 "MPU_RASR5,MPU Region Attribute and Size Register 5"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x6
group.long 0xD9C++0x03 "Region 6"
saveout 0xD98 %l 0x6
line.long 0x00 "MPU_RBAR6,MPU Region Base Address Register 6"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x6
line.long 0x00 "MPU_RASR6,MPU Region Attribute and Size Register 6"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 6 (not implemented)"
saveout 0xD98 %l 0x6
hide.long 0x00 "MPU_RBAR6,MPU Region Base Address Register 6"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x6
hide.long 0x00 "MPU_RASR6,MPU Region Attribute and Size Register 6"
textline " "
textline " "
endif
if ((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xD90)&0xff00)>>8)>0x7
group.long 0xD9C++0x03 "Region 7"
saveout 0xD98 %l 0x7
line.long 0x00 "MPU_RBAR7,MPU Region Base Address Register 7"
hexmask.long 0x00 8.--31. 0x20 " ADDR ,Base address of the region"
group.long 0xDA0++0x03
saveout 0xD98 %l 0x7
line.long 0x00 "MPU_RASR7,MPU Region Attribute and Size Register 7"
bitfld.long 0x00 28. " XN ,eXecute Never" "Execute,Not execute"
bitfld.long 0x00 24.--26. " AP ,Data Access Permission" "No access,S:RW U:--,S:RW U:R-,S:RW U:RR,reserved,S:R- U:--,S:R- U:R-,S:R- U:R-"
bitfld.long 0x00 19.--21. " TEX ,Type Extension Field" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 18. " S ,Shareable Bit" "Not shareable,Shareable"
bitfld.long 0x00 17. " C ,Cacheable Bit" "Not cacheable,Cacheable"
bitfld.long 0x00 16. " B ,Bufferable Bit" "Not bufferable,Bufferable"
textline " "
bitfld.long 0x00 15. " SRD[7..0] ,Subregion 7 Disable" "0,1"
bitfld.long 0x00 14. ",Subregion 6 Disable" "0,1"
bitfld.long 0x00 13. ",Subregion 5 Disable" "0,1"
bitfld.long 0x00 12. ",Subregion 4 Disable" "0,1"
bitfld.long 0x00 11. ",Subregion 3 Disable" "0,1"
bitfld.long 0x00 10. ",Subregion 2 Disable" "0,1"
bitfld.long 0x00 9. ",Subregion 1 Disabled" "0,1"
bitfld.long 0x00 8. ",Subregion 0 Disable" "0,1"
bitfld.long 0x00 1.--5. " SIZE ,Indicates the region size" "-,-,-,-,-,-,-,256 B,512 B,1 kB,2 kB,4 kB,8 kB,16 kB,32 kB,64 kB,128 kB,256 kB,512 kB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,128 MB,256 MB,512 MB,1 GB,2 GB,4 GB"
bitfld.long 0x00 0. " ENABLE ,Enables this region" "Disabled,Enabled"
else
hgroup.long 0xD9C++0x03 "Region 7 (not implemented)"
saveout 0xD98 %l 0x7
hide.long 0x00 "MPU_RBAR7,MPU Region Base Address Register 7"
hgroup.long 0xDA0++0x03
saveout 0xD98 %l 0x7
hide.long 0x00 "MPU_RASR7,MPU Region Attribute and Size Register 7"
textline " "
textline " "
endif
tree.end
width 0x0b
else
newline
textline "COREDEBUG component base address not specified"
newline
endif
tree.end
tree "Nested Vectored Interrupt Controller (NVIC)"
sif COMPonent.AVAILABLE("COREDEBUG")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))
width 12.
tree "Interrupt Enable Registers"
group.long 0x100++0x03
line.long 0x00 "SET/CLREN,Interrupt Set/Clear Enable Register"
setclrfld.long 0x00 31. 0x00 31. 0x80 31. " SET/CLRENA31 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x00 30. 0x80 30. " SET/CLRENA30 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 29. 0x00 29. 0x80 29. " SET/CLRENA29 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 28. 0x00 28. 0x80 28. " SET/CLRENA28 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 27. 0x00 27. 0x80 27. " SET/CLRENA27 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 26. 0x00 26. 0x80 26. " SET/CLRENA26 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 25. 0x00 25. 0x80 25. " SET/CLRENA25 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 24. 0x00 24. 0x80 24. " SET/CLRENA24 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 23. 0x00 23. 0x80 23. " SET/CLRENA23 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 22. 0x00 22. 0x80 22. " SET/CLRENA22 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 21. 0x00 21. 0x80 21. " SET/CLRENA21 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 20. 0x00 20. 0x80 20. " SET/CLRENA20 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 19. 0x00 19. 0x80 19. " SET/CLRENA19 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. 0x80 18. " SET/CLRENA18 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. 0x80 17. " SET/CLRENA17 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. 0x80 16. " SET/CLRENA16 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x00 15. 0x80 15. " SET/CLRENA15 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. 0x80 14. " SET/CLRENA14 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. 0x80 13. " SET/CLRENA13 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. 0x80 12. " SET/CLRENA12 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. 0x80 11. " SET/CLRENA11 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 10. 0x00 10. 0x80 10. " SET/CLRENA10 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. 0x80 9. " SET/CLRENA9 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. 0x80 8. " SET/CLRENA8 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 7. 0x00 7. 0x80 7. " SET/CLRENA7 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. 0x80 6. " SET/CLRENA6 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x00 5. 0x80 5. " SET/CLRENA5 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x00 4. 0x80 4. " SET/CLRENA4 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. 0x80 3. " SET/CLRENA3 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. 0x80 2. " SET/CLRENA2 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 1. 0x00 1. 0x80 1. " SET/CLRENA1 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. 0x80 0. " SET/CLRENA0 ,Interrupt Set/Clear Enable Bit" "Disabled,Enabled"
tree.end
tree "Interrupt Pending Registers"
group.long 0x200++0x03
line.long 0x00 "SET/CLRPEN,Interrupt Set/Clear Pending Register"
setclrfld.long 0x00 31. 0x00 31. 0x80 31. " SET/CLRPEN31 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 30. 0x00 30. 0x80 30. " SET/CLRPEN30 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 29. 0x00 29. 0x80 29. " SET/CLRPEN29 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 28. 0x00 28. 0x80 28. " SET/CLRPEN28 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 27. 0x00 27. 0x80 27. " SET/CLRPEN27 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 26. 0x00 26. 0x80 26. " SET/CLRPEN26 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 25. 0x00 25. 0x80 25. " SET/CLRPEN25 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 24. 0x00 24. 0x80 24. " SET/CLRPEN24 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 23. 0x00 23. 0x80 23. " SET/CLRPEN23 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 22. 0x00 22. 0x80 22. " SET/CLRPEN22 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 21. 0x00 21. 0x80 21. " SET/CLRPEN21 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 20. 0x00 20. 0x80 20. " SET/CLRPEN20 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 19. 0x00 19. 0x80 19. " SET/CLRPEN19 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 18. 0x00 18. 0x80 18. " SET/CLRPEN18 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 17. 0x00 17. 0x80 17. " SET/CLRPEN17 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 16. 0x00 16. 0x80 16. " SET/CLRPEN16 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 15. 0x00 15. 0x80 15. " SET/CLRPEN15 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 14. 0x00 14. 0x80 14. " SET/CLRPEN14 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 13. 0x00 13. 0x80 13. " SET/CLRPEN13 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 12. 0x00 12. 0x80 12. " SET/CLRPEN12 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 11. 0x00 11. 0x80 11. " SET/CLRPEN11 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 10. 0x00 10. 0x80 10. " SET/CLRPEN10 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 9. 0x00 9. 0x80 9. " SET/CLRPEN9 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 8. 0x00 8. 0x80 8. " SET/CLRPEN8 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 7. 0x00 7. 0x80 7. " SET/CLRPEN7 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 6. 0x00 6. 0x80 6. " SET/CLRPEN6 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 5. 0x00 5. 0x80 5. " SET/CLRPEN5 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 4. 0x00 4. 0x80 4. " SET/CLRPEN4 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 3. 0x00 3. 0x80 3. " SET/CLRPEN3 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 2. 0x00 2. 0x80 2. " SET/CLRPEN2 ,Interrupt Set/Clear Pending" "Not pending,Pending"
textline " "
setclrfld.long 0x00 1. 0x00 1. 0x80 1. " SET/CLRPEN1 ,Interrupt Set/Clear Pending" "Not pending,Pending"
setclrfld.long 0x00 0. 0x00 0. 0x80 0. " SET/CLRPEN0 ,Interrupt Set/Clear Pending" "Not pending,Pending"
tree.end
width 6.
tree "Interrupt Priority Registers"
group.long 0x400++0x1F
line.long 0x00 "INT0,Interrupt Priority Register"
bitfld.long 0x00 30.--31. " IP_3 ,Priority of interrupt 3" "0,1,2,3"
bitfld.long 0x00 22.--23. " IP_2 ,Priority of interrupt 2" "0,1,2,3"
bitfld.long 0x00 14.--15. " IP_1 ,Priority of interrupt 1" "0,1,2,3"
bitfld.long 0x00 6.--7. " IP_0 ,Priority of interrupt 0" "0,1,2,3"
line.long 0x04 "INT1,Interrupt Priority Register"
bitfld.long 0x04 30.--31. " IP_7 ,Priority of interrupt 7" "0,1,2,3"
bitfld.long 0x04 22.--23. " IP_6 ,Priority of interrupt 6" "0,1,2,3"
bitfld.long 0x04 14.--15. " IP_5 ,Priority of interrupt 5" "0,1,2,3"
bitfld.long 0x04 6.--7. " IP_4 ,Priority of interrupt 4" "0,1,2,3"
line.long 0x08 "INT2,Interrupt Priority Register"
bitfld.long 0x08 30.--31. " IP_11 ,Priority of interrupt 11" "0,1,2,3"
bitfld.long 0x08 22.--23. " IP_10 ,Priority of interrupt 10" "0,1,2,3"
bitfld.long 0x08 14.--15. " IP_9 ,Priority of interrupt 9" "0,1,2,3"
bitfld.long 0x08 6.--7. " IP_8 ,Priority of interrupt 8" "0,1,2,3"
line.long 0x0C "INT3,Interrupt Priority Register"
bitfld.long 0x0C 30.--31. " IP_15 ,Priority of interrupt 15" "0,1,2,3"
bitfld.long 0x0C 22.--23. " IP_14 ,Priority of interrupt 14" "0,1,2,3"
bitfld.long 0x0C 14.--15. " IP_13 ,Priority of interrupt 13" "0,1,2,3"
bitfld.long 0x0C 6.--7. " IP_12 ,Priority of interrupt 12" "0,1,2,3"
line.long 0x10 "INT4,Interrupt Priority Register"
bitfld.long 0x10 30.--31. " IP_19 ,Priority of interrupt 19" "0,1,2,3"
bitfld.long 0x10 22.--23. " IP_18 ,Priority of interrupt 18" "0,1,2,3"
bitfld.long 0x10 14.--15. " IP_17 ,Priority of interrupt 17" "0,1,2,3"
bitfld.long 0x10 6.--7. " IP_16 ,Priority of interrupt 16" "0,1,2,3"
line.long 0x14 "INT5,Interrupt Priority Register"
bitfld.long 0x14 30.--31. " IP_23 ,Priority of interrupt 23" "0,1,2,3"
bitfld.long 0x14 22.--23. " IP_22 ,Priority of interrupt 22" "0,1,2,3"
bitfld.long 0x14 14.--15. " IP_21 ,Priority of interrupt 21" "0,1,2,3"
bitfld.long 0x14 6.--7. " IP_20 ,Priority of interrupt 20" "0,1,2,3"
line.long 0x18 "INT6,Interrupt Priority Register"
bitfld.long 0x18 30.--31. " IP_27 ,Priority of interrupt 27" "0,1,2,3"
bitfld.long 0x18 22.--23. " IP_26 ,Priority of interrupt 26" "0,1,2,3"
bitfld.long 0x18 14.--15. " IP_25 ,Priority of interrupt 25" "0,1,2,3"
bitfld.long 0x18 6.--7. " IP_24 ,Priority of interrupt 24" "0,1,2,3"
line.long 0x1C "INT7,Interrupt Priority Register"
bitfld.long 0x1C 30.--31. " IP_31 ,Priority of interrupt 31" "0,1,2,3"
bitfld.long 0x1C 22.--23. " IP_30 ,Priority of interrupt 30" "0,1,2,3"
bitfld.long 0x1C 14.--15. " IP_29 ,Priority of interrupt 29" "0,1,2,3"
bitfld.long 0x1C 6.--7. " IP_28 ,Priority of interrupt 28" "0,1,2,3"
tree.end
width 0x0B
else
newline
textline "COREDEBUG component base address not specified"
newline
endif
tree.end
tree "Debug"
tree "Core Debug"
sif COMPonent.AVAILABLE("COREDEBUG")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))
width 0xA
group.long 0xD30++0x03
line.long 0x00 "DFSR,Data Fault Status Register"
eventfld.long 0x00 4. " EXTERNAL ,External debug request flag" "No occurred,Occurred"
eventfld.long 0x00 3. " VCATCH ,Vector catch flag" "No occurred,Occurred"
textline " "
eventfld.long 0x00 2. " DWTRAP ,Data Watchpoint flag" "No match,Match"
textline " "
eventfld.long 0x00 1. " BKPT ,BKPT flag" "No match,Match"
eventfld.long 0x00 0. " HALTED ,Halt request flag" "No request,Request"
if (CORENAME()=="CORTEXM1")
if (((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xDF0))&0x01)==0x00)
group.long 0xDF0++0x03
line.long 0x00 "DHCSR,Debug Halting Control and Status Register"
bitfld.long 0x00 31. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 30. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 29. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 28. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 27. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 26. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 25. " S_RESET_ST/DBGKEY ,Core Reset/Debug Key" "No reset,Reset"
bitfld.long 0x00 24. " S_RETIRE_ST/DBGKEY ,Instruction completed since last read/Debug Key" "Not completed,Completed"
textline " "
bitfld.long 0x00 23. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 22. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 21. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 20. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 19. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 18. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 17. " S_HALT/DBGKEY ,Core Halted Status/Debug Key" "Not halted,Halted"
bitfld.long 0x00 16. " S_REGRDY/DBGKEY ,Register R/W on the Debug Core Register Selector/Debug Key" "Not available,Available"
textline " "
textline " "
textfld " "
bitfld.long 0x00 0. " C_DEBUGEN ,Debug Enable" "Disabled,Enabled"
else
group.long 0xDF0++0x03
line.long 0x00 "DHCSR,Debug Halting Control and Status Register"
bitfld.long 0x00 31. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 30. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 29. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 28. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 27. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 26. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 25. " S_RESET_ST/DBGKEY ,Core Reset/Debug Key" "No reset,Reset"
bitfld.long 0x00 24. " S_RETIRE_ST/DBGKEY ,Instruction completed since last read/Debug Key" "Not read,Read"
textline " "
bitfld.long 0x00 23. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 22. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 21. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 20. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 19. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 18. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 17. " S_HALT/DBGKEY ,Core Halted Status/Debug Key" "Not halted,Halted"
bitfld.long 0x00 16. " S_REGRDY/DBGKEY ,Register R/W on the Debug Core Register Selector/Debug Key" "Not available,Available"
textline " "
bitfld.long 0x00 3. " C_MASKINTS ,Interrupts Mask" "Not masked,Masked"
bitfld.long 0x00 2. " C_STEP ,Steps the core in halted debug" "Not halted,Halted"
textline " "
bitfld.long 0x00 1. " C_HALT ,Core Halted" "Not halted,Halted"
bitfld.long 0x00 0. " C_DEBUGEN ,Debug Enable" "Disabled,Enabled"
endif
else
if (((per.l(CONvert.ADDRESSTODUALPORT(COMPonent.BASE("COREDEBUG",-1))+0xDF0))&0x01)==0x00)
group.long 0xDF0++0x03
line.long 0x00 "DHCSR,Debug Halting Control and Status Register"
bitfld.long 0x00 31. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 30. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 29. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 28. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 27. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 26. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 25. " S_RESET_ST/DBGKEY ,Core Reset/Debug Key" "No reset,Reset"
bitfld.long 0x00 24. " S_RETIRE_ST/DBGKEY ,Instruction completed since last read/Debug Key" "Not completed,Completed"
textline " "
bitfld.long 0x00 23. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 22. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 21. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 20. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 19. " S_LOCKUP/DBGKEY ,Core Lockup Status/Debug Key" "Not locked up,Locked up"
bitfld.long 0x00 18. " S_SLEEP/DBGKEY ,Core Sleep Status/Debug Key" "Not sleeping,Sleeping"
textline " "
bitfld.long 0x00 17. " S_HALT/DBGKEY ,Core Halted Status/Debug Key" "Not halted,Halted"
bitfld.long 0x00 16. " S_REGRDY/DBGKEY ,Register R/W on the Debug Core Register Selector/Debug Key" "Not available,Available"
textline " "
textline " "
textfld " "
bitfld.long 0x00 0. " C_DEBUGEN ,Debug Enable" "Disabled,Enabled"
else
group.long 0xDF0++0x03
line.long 0x00 "DHCSR,Debug Halting Control and Status Register"
bitfld.long 0x00 31. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 30. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 29. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 28. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 27. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 26. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 25. " S_RESET_ST/DBGKEY ,Core Reset/Debug Key" "No reset,Reset"
bitfld.long 0x00 24. " S_RETIRE_ST/DBGKEY ,Instruction completed since last read/Debug Key" "Not read,Read"
textline " "
bitfld.long 0x00 23. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 22. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 21. " DBGKEY ,Debug Key" "0,1"
bitfld.long 0x00 20. " DBGKEY ,Debug Key" "0,1"
textline " "
bitfld.long 0x00 19. " S_LOCKUP/DBGKEY ,Core Lockup Status/Debug Key" "Not locked up,Locked up"
bitfld.long 0x00 18. " S_SLEEP/DBGKEY ,Core Sleep Status/Debug Key" "Not sleeping,Sleeping"
textline " "
bitfld.long 0x00 17. " S_HALT/DBGKEY ,Core Halted Status/Debug Key" "Not halted,Halted"
bitfld.long 0x00 16. " S_REGRDY/DBGKEY ,Register R/W on the Debug Core Register Selector/Debug Key" "Not available,Available"
textline " "
bitfld.long 0x00 3. " C_MASKINTS ,Interrupts Mask" "Not masked,Masked"
bitfld.long 0x00 2. " C_STEP ,Steps the core in halted debug" "Not halted,Halted"
textline " "
bitfld.long 0x00 1. " C_HALT ,Core Halted" "Not halted,Halted"
bitfld.long 0x00 0. " C_DEBUGEN ,Debug Enable" "Disabled,Enabled"
endif
endif
wgroup.long 0xDF4++0x03
line.long 0x00 "DCRSR,Debug Core Selector Register"
bitfld.long 0x00 16. " REGWnR ,Register Read/Write" "Read,Write"
bitfld.long 0x00 0.--4. " REGSEL ,Register Selection" "R0,R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,R11,R12,Current SP,LR,DebugReturnAddress,xPSR Flags,MSP,PSP,Reserved,CONTROL[1]/PRIMASK[0],?..."
group.long 0xDF8++0x07
line.long 0x00 "DCRDR,Debug Core Register Data Register"
hexmask.long 0x00 0.--31. 1. " DATA ,Data for reading and writing registers to and from the processor"
line.long 0x04 "DEMCR,Debug Exception and Monitor Control Register"
bitfld.long 0x04 24. " DWTENA ,Global enable or disable for the DW unit" "Disabled,Enabled"
bitfld.long 0x04 10. " VC_HARDERR ,Debug trap on a Hard Fault" "No error,Error"
textline " "
bitfld.long 0x04 0. " VC_CORERESET ,Reset Vector Catch" "No reset,Reset"
width 0x0B
else
newline
textline "COREDEBUG component base address not specified"
newline
endif
tree.end
tree "Breakpoint Unit (BPU)"
sif COMPonent.AVAILABLE("BPU")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("BPU",-1))
width 8.
group.long 0x00++0x03
line.long 0x00 "BP_CTRL,Breakpoint Control Register"
bitfld.long 0x00 4.--7. " NUM_CODE1 ,Number of comparators" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 1. " KEY ,Key field" "No write,Write"
bitfld.long 0x00 0. " ENABLE ,Breakpoint unit enable bit" "Disabled,Enabled"
group.long 0x8++0x03
line.long 0x00 "B_COMP0,Breakpoint Comparator Registers 0"
bitfld.long 0x00 30.--31. " BP_MATCH ,Happens when the COMP address is matched" "No matching,Lower halfword,Upper halfword,Both halfwords"
hexmask.long 0x00 2.--28. 2. " COMP ,Comparison address"
bitfld.long 0x00 0. " ENABLE ,Compare enable for Breakpoint Comparator Register 0" "Disabled,Enabled"
group.long 0xC++0x03
line.long 0x00 "B_COMP1,Breakpoint Comparator Registers 1"
bitfld.long 0x00 30.--31. " BP_MATCH ,Happens when the COMP address is matched" "No matching,Lower halfword,Upper halfword,Both halfwords"
hexmask.long 0x00 2.--28. 2. " COMP ,Comparison address"
bitfld.long 0x00 0. " ENABLE ,Compare enable for Breakpoint Comparator Register 1" "Disabled,Enabled"
group.long 0x10++0x03
line.long 0x00 "B_COMP2,Breakpoint Comparator Registers 2"
bitfld.long 0x00 30.--31. " BP_MATCH ,Happens when the COMP address is matched" "No matching,Lower halfword,Upper halfword,Both halfwords"
hexmask.long 0x00 2.--28. 2. " COMP ,Comparison address"
bitfld.long 0x00 0. " ENABLE ,Compare enable for Breakpoint Comparator Register 2" "Disabled,Enabled"
group.long 0x14++0x03
line.long 0x00 "B_COMP3,Breakpoint Comparator Registers 3"
bitfld.long 0x00 30.--31. " BP_MATCH ,Happens when the COMP address is matched" "No matching,Lower halfword,Upper halfword,Both halfwords"
hexmask.long 0x00 2.--28. 2. " COMP ,Comparison address"
bitfld.long 0x00 0. " ENABLE ,Compare enable for Breakpoint Comparator Register 3" "Disabled,Enabled"
else
newline
textline "BPU component base address not specified"
newline
endif
tree.end
tree "Data Watchpoint and Trace Unit (DWT)"
sif COMPonent.AVAILABLE("DWT")
base CONvert.ADDRESSTODUALPORT(COMPonent.BASE("DWT",-1))
width 14.
rgroup.long 0x00++0x03
line.long 0x00 "DW_CTRL,DW Control Register "
bitfld.long 0x00 28.--31. " NUM_CODE1 ,Number of comparators" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
rgroup.long 0x1c++0x03
line.long 0x00 "DW_PCSR,DW Program Counter Sample Register"
hexmask.long 0x00 0.--31. 1. " EIASAMPLE ,Execution instruction address sample or 0xFFFFFFFF"
group.long 0x20++0x0b
line.long 0x00 "DW_COMP0,DW Comparator Register 0"
hexmask.long 0x00 0.--31. 1. " COMP1 ,Compare against PC or the data address"
line.long 0x04 "DW_MASK0,DW Mask Register 0"
hexmask.long.byte 0x04 0.--4. 1. " MASK ,Mask on data address when matching against COMP"
line.long 0x08 "DW_FUNCTION0,DW Function Register 0"
bitfld.long 0x08 24. " MATCHED ,Comparator match" "No match,Match"
bitfld.long 0x08 0.--3. " FUNCTION , Settings for DW Function Registers" "Disabled,Reserved,Reserved,Reserved,On PC match,Read address,Write address,R/W address,?..."
group.long 0x30++0x0b
line.long 0x00 "DW_COMP1,DW Comparator Register 1"
hexmask.long 0x00 0.--31. 1. " COMP ,Compare against PC or the data address"
line.long 0x04 "DW_MASK1,DW Mask Register 1 "
hexmask.long.byte 0x04 0.--4. 1. " MASK ,Mask on data address when matching against COMP"
line.long 0x08 "DW_FUNCTION1,DW Function Register 1"
bitfld.long 0x08 24. " MATCHED ,Comparator match" "No match,Match"
bitfld.long 0x08 0.--3. " FUNCTION , Settings for DW Function Registers" "Disabled,Reserved,Reserved,Reserved,On PC match,Read address,Write address,R/W address,?..."
else
newline
textline "DWT component base address not specified"
newline
endif
tree.end
tree.end
AUTOINDENT.POP
tree.end
tree "MTB (Micro Trace Buffer)"
base ad:0x41006000
width 10.
tree.open "Trace control registers"
group.long 0x000++0x0B
line.long 0x00 "POSITION,Trace write pointer and the wrap bit"
hexmask.long 0x00 3.--31. 0x08 " POINTER ,Trace packet location pointer (location of the first word of a packet)"
bitfld.long 0x00 2. " WRAP ,Wrap bit" "Not Wrapped,Wrapped"
line.long 0x04 "MASTER,MASTER Register"
bitfld.long 0x04 31. " EN ,Main trace enable" "Disabled,Enabled"
bitfld.long 0x04 9. " HALTREQ ,Halt request" "Not halted,Halted"
bitfld.long 0x04 8. " RAMPRIV ,SRAM Privilege" "User or Privileged,Privileged only"
bitfld.long 0x04 7. " SFRWPRIV ,Special Function Register Write Privilege" "User or Privileged,Privileged only"
textline " "
bitfld.long 0x04 6. " TSTOPEN ,Trace stop input enable" "Disabled,Enabled"
bitfld.long 0x04 5. " TSTARTEN ,Trace start input enable" "Disabled,Enabled"
bitfld.long 0x04 0.--4. " MASK ,Maximum size of the trace buffer in SRAM" "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,28,28,28"
line.long 0x08 "FLOW,FLOW Register"
hexmask.long 0x08 3.--31. 0x08 " WATERMARK ,WATERMARK value"
bitfld.long 0x08 1. " AUTOHALT ,Automatic halt request when POINTER reaches WATERMARK" "Enabled,Disabled"
bitfld.long 0x08 0. " AUTOSTOP ,Automatic stop request when POINTER reaches WATERMARK" "Enabled,Disabled"
rgroup.long 0x00C++0x03
line.long 0x00 "BASE,BASE Register: SRAM localization in processor memory map"
tree.end
width 12.
tree.open "Coresight registers"
rgroup.long 0xFF0++0x0F
line.long 0x000 "CIDR0,Component Identification Register 0"
hexmask.long.byte 0x000 0.--7. 1. " PRMBL_0 ,Preamble 0"
line.long 0x004 "CIDR1,Component Identification Register 1"
bitfld.long 0x004 4.--7. " CLASS ,Indicate the Classification of the 4KB Memory Block" "Generic verification,ROM,,,,,,,,CoreSight component,,Peripheral Test Block.,,,Generic IP component,Not standardized"
hexmask.long.byte 0x004 0.--3. 1. " PRMBL_1 ,Preamble 1"
line.long 0x008 "CIDR2,Component Identification Register 2"
hexmask.long.byte 0x008 0.--7. 1. " PRMBL_2 ,Preamble 2"
line.long 0x00C "CIDR3,Component Identification Register 3"
hexmask.long.byte 0x00C 0.--7. 1. " PRMBL_3 ,Preamble 3"
textline " "
rgroup.long 0xFE0++0x0F
line.long 0x00 "PIDR0,Peripheral Identification Register 0"
hexmask.long.byte 0x00 0.--7. 1. " PART_0 ,Part Number[7:0]"
line.long 0x04 "PIDR1,Peripheral Identification Register 1"
bitfld.long 0x04 4.--7. " DES_0 ,JEP106 identification Code [3:0]" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x04 0.--3. " PART_1 ,Part Number [11:8]" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
line.long 0x08 "PIDR2,Peripheral Identification Register 2"
bitfld.long 0x08 4.--7. " REV ,Revision Number of Peripheral" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x08 3. " JEP106USED ,Indicating a JEP106 Value Used" "Not used,Used"
bitfld.long 0x08 0.--2. " DES_1 ,JEP106 identification code [6:4]" "0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7"
line.long 0x0C "PIDR3,Peripheral Identification Register 3"
bitfld.long 0x0C 4.--7. " REVAND ,Manufacturer Revision Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 0.--3. " CM ,Customer Modified" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
rgroup.long 0xFD0++0x0F
line.long 0x00 "PIDR4,Peripheral Identification Register 4"
bitfld.long 0x00 4.--7. " SIZE ,Total contiguous size of the memory window used by this component" "4 KB,8 KB,16 KB,32 KB,64 KB,128 KB,256 KB,512 KB,1 MB,2 MB,4 MB,8 MB,16 MB,32 MB,64 MB,"
bitfld.long 0x00 0.--3. " DES_2 ,JEP106 Continuation Code" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
if (((d.l(ad:0x41006000+0xFCC))&0xF)==0x00)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,,,,Validation component,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x01)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Trace port,Buffer,Basic trace router,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x02)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Trace funnel/Router,Filter,FIFO/Large Buffer,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x03)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Core,DSP,Data Engine/Coprocessor,Bus,,Software,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x04)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Trigger Matrix,Debug Authentication Module,Power requestor,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x05)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Processor core,DSP,Data Engine/Coprocessor,BUS,Memory,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
elif (((d.l(ad:0x41006000+0xFCC))&0xF)==0x06)
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
bitfld.long 0x00 4.--7. " SUB ,Sub-classification within the major category" "Other,Processor,DSP,Data Engine/Coprocessor,Bus,MMU,?..."
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
else
rgroup.long 0xFCC++0x03
line.long 0x00 "DEVTYPE,Device Type Identifier Register"
textfld " "
bitfld.long 0x00 0.--3. " MAJOR ,Major classification grouping for this debug or trace component" "Miscellaneous,Trace Sink,Trace Link,Trace Source,Debug Control,Debug Logic,Performance Monitor,?..."
endif
textline " "
rgroup.long 0xFC8++0x03
line.long 0x00 "DEVID,Device Configuration"
if (((d.l(ad:0x41006000+0xFBC))&0x100000)==0x100000)
rgroup.long 0xFBC++0x03
line.long 0x00 "DEVARCH,Device Architecture"
hexmask.long.word 0x00 21.--31. 1. " ARCHITECT ,Architect of the component"
bitfld.long 0x00 20. " PRESENT ,Presence of this register" "Not present,Present"
bitfld.long 0x00 16.--19. " REVISION ,Architecture revision" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.word 0x00 0.--15. 1. " ARCHID ,Architecture ID"
else
hgroup.long 0xFBC++0x03
hide.long 0x00 "DEVARCH,Device Architecture"
endif
rgroup.long 0xFB8++0x03
line.long 0x00 "AUTHSTATUS,Authentication Status"
bitfld.long 0x00 6.--7. " SNID ,Secure non-invasive debug" "Not implemented,,Disabled,Enabled"
bitfld.long 0x00 4.--5. " SID ,Secure invasive debug" "Not implemented,,Disabled,Enabled"
bitfld.long 0x00 2.--3. " NSNID ,Non-secure non-invasive debug" "Not implemented,,Disabled,Enabled"
bitfld.long 0x00 0.--1. " NSID , Non-secure invasive debug" "Not implemented,,Disabled,Enabled"
if (((d.l(ad:0x41006000+0xFB4))&0x01)==0x01)
rgroup.long 0xFB4++0x03
line.long 0x00 "LSR,Lock Status Register"
bitfld.long 0x00 2. " ILR ,Implemented Lock Register" "32-bit,"
bitfld.long 0x00 1. " LS ,Lock Status" "Locked,Granted"
bitfld.long 0x00 0. " LCM ,Lock Control Mechanism Exists" "Not implemented,Implemented"
wgroup.long 0xFB0++0x03
line.long 0x00 "LAR,Lock Access"
else
hgroup.long 0xFB4++0x03
hide.long 0x00 "LSR,Lock Status Register"
hgroup.long 0xFB0++0x03
hide.long 0x00 "LAR,Lock Access"
endif
tree.end
width 0xb
tree.end
tree "PAC (Peripheral Access Controller)"
tree "PAC0"
base ad:0x40000000
width 12.
group.long 0x04++0x03
line.long 0x00 "WP_SET/CLR,Write Protect Set/Clear"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " EIC ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " RTC ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " WDT ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " GCLK ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " SYSCTRL ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " PM ,Write protect disable/enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "PAC1"
base ad:0x41000000
width 12.
group.long 0x04++0x03
line.long 0x00 "WP_SET/CLR,Write Protect Set/Clear"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " MTB ,Write protect disable/enable" "Disabled,Enabled"
sif (cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L")
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " USB ,Write protect disable/enable" "Disabled,Enabled"
endif
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " DMAC ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " PORT ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " NVMCTRL ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " DSU ,Write protect disable/enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "PAC2"
base ad:0x42000000
width 12.
group.long 0x04++0x03
line.long 0x00 "WP_SET/CLR,Write Protect Set/Clear"
sif CPUIS("ATSAMR*")
setclrfld.long 0x00 21. 0x00 21. -0x04 21. " RFCTRL ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " PTC ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " AC ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " ADC ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " TC5 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " TC4 ,Write protect disable/enable" "Disabled,Enabled"
endif
sif CPUIS("ATSAMD*")
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"||cpu()=="ATSAMD21G16L"
setclrfld.long 0x00 21. 0x00 21. -0x04 21. " AC1 ,Write protect disable/enable" "Disabled,Enabled"
else
setclrfld.long 0x00 20. 0x00 20. -0x04 20. " I2S ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " PTC ,Write protect disable/enable" "Disabled,Enabled"
endif
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " DAC ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " AC ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " ADC ,Write protect disable/enable" "Disabled,Enabled"
sif cpuis("ATSAMD21E*")||cpu()=="ATSAMD21G15"||cpu()=="ATSAMD21G16"||cpu()=="ATSAMD21G17"||cpu()=="ATSAMD21G18"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " TC5 ,Write protect disable/enable" "Disabled,Enabled"
else
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " TC7 ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " TC6 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " TC5 ,Write protect disable/enable" "Disabled,Enabled"
endif
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " TC4 ,Write protect disable/enable" "Disabled,Enabled"
endif
textline " "
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " TC3 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " TCC2 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " TCC1 ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " TCC0 ,Write protect disable/enable" "Disabled,Enabled"
sif !cpuis("ATSAMD21E*")&&cpu()!="ATSAMD21G16L"&&!cpuis("ATSAMDA1E*")
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " SERCOM5 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " SERCOM4 ,Write protect disable/enable" "Disabled,Enabled"
elif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"||cpu()=="ATSAMD21G16L"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " SERCOM4 ,Write protect disable/enable" "Disabled,Enabled"
endif
textline " "
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " SERCOM3 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " SERCOM2 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " SERCOM1 ,Write protect disable/enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " SERCOM0 ,Write protect disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " EVSYS ,Write protect disable/enable" "Disabled,Enabled"
width 0x0B
tree.end
tree.end
tree "DSU (Device Service Unit)"
base ad:0x41002000
width 9.
wgroup.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*"))
bitfld.byte 0x00 7. " SMSA ,Start memory stream access" "No effect,Start"
bitfld.byte 0x00 6. " ARR ,Auxiliary row read" "No effect,Start"
newline
endif
bitfld.byte 0x00 4. " CE ,Chip erase" "No effect,Start"
bitfld.byte 0x00 3. " MBIST ,Memory built-in self-test" "No effect,Start"
sif (!cpuis("ATSAML22*")&&!cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*"))
newline
bitfld.byte 0x00 2. " CRC ,32-bit cyclic redundancy check" "No effect,Start"
elif (cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*"))
bitfld.byte 0x00 1. " CRC ,32-bit cyclic redundancy check" "No effect,Start"
endif
newline
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
group.byte 0x01++0x00
line.byte 0x00 "STATUSA,Status A"
eventfld.byte 0x00 4. " PERR ,Protection error" "No error,Error"
eventfld.byte 0x00 3. " FAIL ,Failure" "Not detected,Detected"
eventfld.byte 0x00 2. " BERR ,Bus error" "No error,Error"
newline
eventfld.byte 0x00 1. " CRSTEXT ,CPU reset phase extension" "Not detected,Detected"
eventfld.byte 0x00 0. " DONE ,Done" "Not completed,Completed"
newline
hgroup.byte 0x02++0x00
hide.byte 0x00 "STATUSB,Status B"
in
newline
sif cpuis("ATSAML21*")||cpuis("ATSAML22*")
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
elif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD21*")||cpuis("ATSAMD20*"))
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
elif cpuis("ATSAMC2?N*")
if (((per.b(ad:0x41002000))&0x02)==0x00)
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
else
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "Exit on error,Pause on error,?..."
endif
elif cpuis("ATSAMC2*")||cpuis("ATSAMDA1*")||cpuis("ATSAMD51*")||cpuis("ATSAME5*")
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode (CRC32 / MBIST operation)" "ARRAY/exit-on-error,EEPROM/pause-on-error,?..."
else
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
endif
group.long 0x08++0x07
line.long 0x00 "LENGTH,Length"
hexmask.long 0x00 2.--31. 1. " LENGTH ,Length"
line.long 0x04 "DATA,Data"
newline
hgroup.long 0x10++0x03
hide.long 0x00 "DCC0,Debug Communication Channel 0"
in
newline
hgroup.long 0x14++0x03
hide.long 0x00 "DCC1,Debug Communication Channel 1"
in
newline
rgroup.long 0x18++0x03
line.long 0x00 "DID,Device Identification"
hexmask.long.byte 0x00 28.--31. 1. " PROCESSOR ,Processor"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC2*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*")||cpuis("ATSAMD51*")||cpuis("ATSAME5*"))
newline
hexmask.long.byte 0x00 23.--27. 1. " FAMILY ,Product family"
hexmask.long.byte 0x00 16.--21. 1. " SERIES ,Product series"
else
newline
hexmask.long.byte 0x00 24.--27. 1. " FAMILY ,Product family"
hexmask.long.byte 0x00 16.--23. 1. " SERIES ,Product series"
endif
newline
hexmask.long.byte 0x00 12.--15. 1. " DIE ,Die identification"
hexmask.long.byte 0x00 8.--11. 1. " REVISION ,Revision"
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"||cpu()=="ATSAMD21G16L"
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21E16L,SAMD21E15L,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21G16L,?..."
elif cpuis("ATSAMD21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD21J18A,SAMD21J17A,SAMD21J16A,SAMD21J15A,,SAMD21G18A,SAMD21G17A,SAMD21G16A,SAMD21G15A,,SAMD21E18A,SAMD21E17A,SAMD21E16A,SAMD21E15A,,SAMD21G18A (WLCSP),SAMD21G17A (WLCSP),,,,,,,,,,,,,,,,SAMD21J16B,SAMD21J15B,,SAMD21G16B,SAMD21G15B,,SAMD21E16B,SAMD21E15B,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21E16B (WLCSP),SAMD21E15B (WLCSP),,,,,,,,,,,,SAMD21E16C (WLCSP),SAMD21E15C (WLCSP),?..."
elif cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD51*")||cpuis("ATSAME5*")
newline
hexmask.long.byte 0x00 0.--7. 1. " DEVSEL ,Device selection"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD09D14AM,,,,,,,SAMD09C13A,?..."
elif cpuis("ATSAMR21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD21J18A,SAMD21J17A,SAMD21J16A,SAMD21J15A,,SAMD21G18A,SAMD21G17A,SAMD21G16A,SAMD21G15A,,SAMD21E18A,SAMD21E17A,SAMD20E16A,SAMD20E15A,?..."
elif cpuis("ATSAMD10*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD10D14AM,SAMD10D13AM,,SAMD10D14ASS,SAMD10D13ASS,,SAMD10D14A,SAMD10D13A,?..."
elif cpuis("ATSAMD11*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD11D14AM,,,SAMD11D14ASS,,,SAMD11D14A,?..."
elif cpuis("ATSAML21*")
newline
bitfld.long 0x00 0.--7. " DSEL ,Device selection" "SAML21J18B,SAML21J17B,SAML21J16B,,,SAML21G18B,SAML21G17B,SAML21G16B,,SAML21E18B,SAML21E17B,SAML21E16B,SAML21E15B,?..."
elif cpuis("ATSAML22*")
newline
bitfld.long 0x00 0.--7. " DSEL ,Device selection" "L22N18,L22N17,L22N16,,,L22J18,L22J17,L22J16,,L22G18,L22G17,L22G16,?..."
elif cpuis("ATSAMD20*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD20J18A,SAMD20J17A,SAMD20J16A,SAMD20J15A,SAMD20J14A,SAMD20G18A,SAMD20G17A,SAMD20G16A,SAMD20G15A,SAMD20G14A,SAMD20E18A,SAMD20E17A,SAMD20E16A,SAMD20E15A,SAMD20E14A,?..."
elif cpuis("ATSAMC21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMC21J18A,SAMC21J17A,SAMC21J16A,SAMC21J15A,,SAMC21G18A,SAMC21G17A,SAMC21G16A,SAMC21G15A,,SAMC21E18A,SAMC21E17A,SAMC21E16A,SAMC21E15A,?..."
elif cpuis("ATSAMC20*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMC20J18A,SAMC20J17A,SAMC20J16A,SAMC20J15A,,SAMC20G18A,SAMC20G17A,SAMC20G16A,SAMC20G15A,,SAMC20E18A,SAMC20E17A,SAMC20E16A,SAMC20E15A,?..."
elif cpuis("ATSAMDA1*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMDA1J16A,SAMDA1J15A,SAMDA1J14A,SAMDA1G16A,SAMDA1G15A,SAMDA1G14A,SAMDA1E16A,SAMDA1E15A,SAMDA1E14A,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMDA1J16B,SAMDA1J15B,SAMDA1J14B,SAMDA1G16B,SAMDA1G15B,SAMDA1G14B,SAMDA1E16B,SAMDA1E15B,SAMDA1E14B,?..."
endif
sif cpuis("ATSAMD51*")
group.long 0x1C++0x03
line.long 0x00 "CFG,Configuration"
bitfld.long 0x00 4. " ETBRAMEN ,Reserves 32kB of the RAM for Trace ETB RAM buffer" "Not reserved,Reserved"
bitfld.long 0x00 2.--3. " DCCDMALEVEL ,DMA trigger level" "DCC empty,DCC full,?..."
bitfld.long 0x00 0.--1. " LQOS ,Latency quality of service" "Background,Sensitive bandwidth,Sensitive latency,Critical latency"
width 11.
tree "MBIST Registers"
group.long 0x40++0x0F
line.long 0x00 "MBCTRL,MBIST Control"
bitfld.long 0x00 1. " ENABLE ,MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,MBIST software reset" "No reset,Reset"
line.long 0x04 "MBCONFIG,MBIST Configuration"
bitfld.long 0x04 7. " DBG ,Debug mode enable" "Disabled,Enabled"
bitfld.long 0x04 6. " DEFRDMARGIN ,Default read margin force" "Not forced,Forced"
bitfld.long 0x04 0.--4. " ALGO ,MBIST algorithm" "Memory clear,Memory verify,Memory clear and verify,Address decoder,March LR,March SR,March SS,,CRC increasing address,CRC decreasing address,?..."
line.long 0x08 "MBWORD,MBIST Background Word"
line.long 0x0C "MBGSTAT,MBIST Global Status"
bitfld.long 0x0C 3. " CONFIGURED ,MBIST configuration sent" "Not sent,Sent"
bitfld.long 0x0C 2. " ERRINFO ,MBIST error info present" "Not present,Present"
bitfld.long 0x0C 1. " FAILED ,MBIST failed" "Not failed,Failed"
bitfld.long 0x0C 0. " ALLDONE ,MBIST completed" "Not completed,Completed"
rgroup.long 0x50++0x0F
line.long 0x00 "MBDFAIL,MBIST Fail Data"
line.long 0x04 "MBDEXP,MBIST Expected Data"
line.long 0x08 "MBAFAIL,MBIST Fail Address"
hexmask.long.word 0x08 0.--13. 0x01 " ADDR ,Error address"
line.long 0x0C "MBCONTEXT,MBIST Fail Context"
bitfld.long 0x0C 10. " PORT ,DPRAM port index" "0,1"
bitfld.long 0x0C 5.--9. " STEP ,Algorithm step" ",,DOWN_ROW1,UP_R1W0R0W1,UP_R1W0,UP_R0W1R1W0,UP_R0,UP_R0R0W0R0W1,UP_R1R1W1R1W0,DOWN_R0R0W0R0W1,DOWN_R1R1W1R1W0,,UP_R0R0,,DOWN_R1W0R0W1,DOWN_R1R1,?..."
bitfld.long 0x0C 0.--4. " SUBSTEP ,Algorithm sub-step" ",R0_1,,R1_1,,R0_2,,R1_2,,R0_3,,R1_3,?..."
group.long 0x60++0x03
line.long 0x00 "MBENABLE0,MBIST Memory Enable 0"
bitfld.long 0x00 28. " ENABLE28 ,Memory 28 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 27. " ENABLE27 ,Memory 27 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 26. " ENABLE26 ,Memory 26 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 25. " ENABLE25 ,Memory 25 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 24. " ENABLE24 ,Memory 24 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 23. " ENABLE23 ,Memory 23 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 22. " ENABLE22 ,Memory 22 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 21. " ENABLE21 ,Memory 21 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 20. " ENABLE20 ,Memory 20 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 19. " ENABLE19 ,Memory 19 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 18. " ENABLE18 ,Memory 18 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 17. " ENABLE17 ,Memory 17 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 16. " ENABLE16 ,Memory 16 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 15. " ENABLE15 ,Memory 15 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ENABLE14 ,Memory 14 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 13. " ENABLE13 ,Memory 13 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 12. " ENABLE12 ,Memory 12 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 11. " ENABLE11 ,Memory 11 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 10. " ENABLE10 ,Memory 10 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 9. " ENABLE9 ,Memory 9 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " ENABLE8 ,Memory 8 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 7. " ENABLE7 ,Memory 7 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 6. " ENABLE6 ,Memory 6 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 5. " ENABLE5 ,Memory 5 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " ENABLE4 ,Memory 4 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 3. " ENABLE3 ,Memory 3 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 2. " ENABLE2 ,Memory 2 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE1 ,Memory 1 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " ENABLE0 ,Memory 0 MBIST enable" "Disabled,Enabled"
rgroup.long 0x68++0x03
line.long 0x00 "MBBUSY0,MBIST Memory Busy 0"
bitfld.long 0x00 28. " BUSY28 ,Memory 28 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 27. " BUSY27 ,Memory 27 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 26. " BUSY26 ,Memory 26 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 25. " BUSY25 ,Memory 25 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 24. " BUSY24 ,Memory 24 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 23. " BUSY23 ,Memory 23 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 22. " BUSY22 ,Memory 22 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 21. " BUSY21 ,Memory 21 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 20. " BUSY20 ,Memory 20 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 19. " BUSY19 ,Memory 19 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 18. " BUSY18 ,Memory 18 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 17. " BUSY17 ,Memory 17 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 16. " BUSY16 ,Memory 16 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 15. " BUSY15 ,Memory 15 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 14. " BUSY14 ,Memory 14 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 13. " BUSY13 ,Memory 13 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 12. " BUSY12 ,Memory 12 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 11. " BUSY11 ,Memory 11 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 10. " BUSY10 ,Memory 10 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 9. " BUSY9 ,Memory 9 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 8. " BUSY8 ,Memory 8 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 7. " BUSY7 ,Memory 7 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 6. " BUSY6 ,Memory 6 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 5. " BUSY5 ,Memory 5 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " BUSY4 ,Memory 4 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 3. " BUSY3 ,Memory 3 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 2. " BUSY2 ,Memory 2 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 1. " BUSY1 ,Memory 1 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 0. " BUSY0 ,Memory 0 MBIST busy" "Not busy,Busy"
group.long 0x70++0x03
line.long 0x00 "MBSTATUS0,MBIST Memory Status 0"
bitfld.long 0x00 28. " STATUS28 ,Memory 28 MBIST status" "0,1"
bitfld.long 0x00 27. " STATUS27 ,Memory 27 MBIST status" "0,1"
bitfld.long 0x00 26. " STATUS26 ,Memory 26 MBIST status" "0,1"
bitfld.long 0x00 25. " STATUS25 ,Memory 25 MBIST status" "0,1"
newline
bitfld.long 0x00 24. " STATUS24 ,Memory 24 MBIST status" "0,1"
bitfld.long 0x00 23. " STATUS23 ,Memory 23 MBIST status" "0,1"
bitfld.long 0x00 22. " STATUS22 ,Memory 22 MBIST status" "0,1"
bitfld.long 0x00 21. " STATUS21 ,Memory 21 MBIST status" "0,1"
newline
bitfld.long 0x00 20. " STATUS20 ,Memory 20 MBIST status" "0,1"
bitfld.long 0x00 19. " STATUS19 ,Memory 19 MBIST status" "0,1"
bitfld.long 0x00 18. " STATUS18 ,Memory 18 MBIST status" "0,1"
bitfld.long 0x00 17. " STATUS17 ,Memory 17 MBIST status" "0,1"
newline
bitfld.long 0x00 16. " STATUS16 ,Memory 16 MBIST status" "0,1"
bitfld.long 0x00 15. " STATUS15 ,Memory 15 MBIST status" "0,1"
bitfld.long 0x00 14. " STATUS14 ,Memory 14 MBIST status" "0,1"
bitfld.long 0x00 13. " STATUS13 ,Memory 13 MBIST status" "0,1"
newline
bitfld.long 0x00 12. " STATUS12 ,Memory 12 MBIST status" "0,1"
bitfld.long 0x00 11. " STATUS11 ,Memory 11 MBIST status" "0,1"
bitfld.long 0x00 10. " STATUS10 ,Memory 10 MBIST status" "0,1"
bitfld.long 0x00 9. " STATUS9 ,Memory 9 MBIST status" "0,1"
newline
bitfld.long 0x00 8. " STATUS8 ,Memory 8 MBIST status" "0,1"
bitfld.long 0x00 7. " STATUS7 ,Memory 7 MBIST status" "0,1"
bitfld.long 0x00 6. " STATUS6 ,Memory 6 MBIST status" "0,1"
bitfld.long 0x00 5. " STATUS5 ,Memory 5 MBIST status" "0,1"
newline
bitfld.long 0x00 4. " STATUS4 ,Memory 4 MBIST status" "0,1"
bitfld.long 0x00 3. " STATUS3 ,Memory 3 MBIST status" "0,1"
bitfld.long 0x00 2. " STATUS2 ,Memory 2 MBIST status" "0,1"
bitfld.long 0x00 1. " STATUS1 ,Memory 1 MBIST status" "0,1"
newline
bitfld.long 0x00 0. " STATUS0 ,Memory 0 MBIST status" "0,1"
tree.end
newline
width 9.
endif
group.long 0xF0++0x07
line.long 0x00 "DCFG0,Device Configuration"
line.long 0x04 "DCFG1,Device Configuration"
rgroup.long 0x1000++0x0B
line.long 0x00 "ENTRY0,CoreSight ROM Table Entry 0"
hexmask.long.tbyte 0x00 12.--31. 0x10 " ADDOFF ,Address offset"
bitfld.long 0x00 1. " FMT ,Format" ",32-bit ROM table"
bitfld.long 0x00 0. " EPRES ,Entry present" "Present,Not present"
line.long 0x04 "ENTRY1,CoreSight ROM Table Entry 1"
hexmask.long.tbyte 0x04 12.--31. 0x10 " ADDOFF ,Address offset"
bitfld.long 0x04 1. " FMT ,Format" ",32-bit ROM table"
bitfld.long 0x04 0. " EPRES ,Entry present" "Present,Not present"
line.long 0x08 "END,CoreSight ROM Table End"
newline
rgroup.long 0x1FCC++0x07
line.long 0x00 "MEMTYPE,CoreSight ROM Table Memory Type"
bitfld.long 0x00 0. " SMEMP ,System memory present" "Not present,Present"
line.long 0x04 "PID4,Peripheral Identification 4"
hexmask.long.byte 0x04 4.--7. 1. " FKBC ,4KB count"
hexmask.long.byte 0x04 0.--3. 1. " JEPCC ,JEP-106 continuation code"
rgroup.long 0x1FE0++0x03
line.long 0x00 "PID0,Peripheral Identification 0"
hexmask.long.byte 0x00 0.--7. 1. " PARTNBL ,Part number low"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
if ((((per.l(ad:0x41002000+0x1FE4))&0xF0)==0xF0)&&(((per.l(ad:0x41002000+0x1FE8))&0x07)==0x01))
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" ",,,,,,,,,,,,,,,Atmel JEP-106"
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" ",Atmel JEP-106,?..."
else
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" "?..."
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" "?..."
endif
else
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" ",,,,,,,,,,,,,,,Atmel JEP-106"
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" ",Atmel JEP-106,?..."
endif
rgroup.long 0x1FEC++0x13
line.long 0x00 "PID3,Peripheral Identification 3"
hexmask.long.byte 0x00 4.--7. 1. " REVAND ,Revision number"
hexmask.long.byte 0x00 0.--3. 1. " CUSMOD ,ARM CUSMOD"
line.long 0x04 "CID0,Component Identification 0"
hexmask.long.byte 0x04 0.--7. 1. " PREAMBLE0 ,Preamble byte 0"
line.long 0x08 "CID1,Component Identification 1"
hexmask.long.byte 0x08 4.--7. 1. " CCLASS ,Component class"
hexmask.long.byte 0x08 0.--3. 1. " PREAMBLE ,Preamble"
line.long 0x0C "CID2,Component Identification 2"
hexmask.long.byte 0x0C 0.--7. 1. " PREAMBLE2 ,Preamble byte 2"
line.long 0x10 "CID3,Component Identification 3"
hexmask.long.byte 0x10 0.--7. 1. " PREAMBLE3 ,Preamble byte 3"
width 0x0B
tree.end
tree "GCLK (Generic Clock Controller)"
base ad:0x40000C00
width 9.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.byte 0x01++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy status" "Idle,Busy"
group.word 0x02++0x01
line.word 0x00 "CLKCTRL,Generic Clock Control"
bitfld.word 0x00 15. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.word 0x00 14. " CLKEN ,Clock enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
textline " "
sif cpuis("ATSAMD20J*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,,,TC2,ADC,?..."
elif cpu()=="ATSAMD21G16L"
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC1_DIG,AC_ANA,AC1_ANA,DAC,?..."
elif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,AC1_DIG,AC_ANA,AC1_ANA,DAC,?..."
elif cpuis("ATSAMD21E*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,,,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD21G*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD21*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD20G*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD20E*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMR21*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,AC_ANA,PTC,?..."
elif cpuis("ATSAMD10*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,TCC0,TC1/TC2,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD11*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,TCC0,TC1/TC2,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMHA1G1?A")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMDA1*")
sif (cpuis("ATSAMDA1E*"))
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M_REF,DPLL,DPLL_32K,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,,,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
else
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M_REF,DPLL,DPLL_32K,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
endif
endif
group.long 0x04++0x03
line.long 0x00 "GENCTRL,Generic Clock Generator Control"
bitfld.long 0x00 21. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 20. " DIVSEL ,Divide selection" "GENDIV.DIV,2^(GENDIV.DIV+1)"
bitfld.long 0x00 19. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 18. " OOV ,Output off value" "0,1"
bitfld.long 0x00 17. " IDC ,Improve duty cycle" "Not 50/50 for odd division factors,50/50"
bitfld.long 0x00 16. " GENEN ,Generic clock generator enable" "Disabled,Enabled"
textline " "
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,,OSC8M,DFLL48M,FDPLL96M,?..."
elif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,XOSC32K,OSC8M,DFLL48M,FDPLL96M,?..."
else
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,XOSC32K,OSC8M,DFLL48M,?..."
endif
textline " "
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
textline " "
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
if ((per.l(ad:0x40000C00+0x08)&0xF)==0x00)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x01)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV[15:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x02)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--12. 1. " DIV[4:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif (((per.l(ad:0x40000C00+0x08)&0xF)>0x02)&&((per.l(ad:0x40000C00+0x08)&0xF)<0x09))
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
endif
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
if ((per.l(ad:0x40000C00+0x08)&0xF)==0x00)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x01)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV[15:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x02)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--12. 1. " DIV[4:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif (((per.l(ad:0x40000C00+0x08)&0xF)>0x02)&&((per.l(ad:0x40000C00+0x08)&0xF)<0x06))
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
endif
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV ,Division factor"
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
width 0x0B
tree.end
tree "PM (Power Manager)"
base ad:0x40000400
width 15.
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
hgroup.byte 0x00++0x00
hide.byte 0x00 "CTRL,Control"
else
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 4. " BKUPCLK ,Backup clock select" "GCLKMAIN clock selected,OSC8M backup clock selected"
bitfld.byte 0x00 2. " CFDEN ,Clock failure detector enable" "Disabled,Enabled"
endif
group.byte 0x01++0x00
line.byte 0x00 "SLEEP,Sleep Mode"
bitfld.byte 0x00 0.--1. " IDLE ,Idle mode configuration" "CPU clock domain is stopped,CPU and AHB clock domains are stopped,CPU and AHB and APB clock domains are stopped,?..."
textline " "
sif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14"))
group.byte 0x02++0x00
line.byte 0x00 "EXTCTRL,External Reset Register"
bitfld.byte 0x00 0. " SETDIS ,External reset disable" "No,Yes"
endif
group.byte 0x08++0x03
line.byte 0x00 "CPUSEL,CPU Clock Select"
bitfld.byte 0x00 0.--2. " CPUDIV ,CPU prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x01 "APBASEL,APBA Clock Select"
bitfld.byte 0x01 0.--2. " APBADIV ,APBA prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x02 "APBBSEL,APBB Clock Select"
bitfld.byte 0x02 0.--2. " APBBDIV ,APBB prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x03 "APBCSEL,APBC Clock Select"
bitfld.byte 0x03 0.--2. " APBCDIV ,APBC prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
group.long 0x14++0x0F
line.long 0x00 "AHBMASK,AHB Mask"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
sif (cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L")
bitfld.long 0x00 6. " USB ,USB clock enable" "Stopped,Enabled"
textline " "
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 5. " DMAC ,DMAC clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x00 4. " NVMCTRL ,NVMCTRL clock enable" "Stopped,Enabled"
bitfld.long 0x00 3. " DSU ,DSU clock enable" "Stopped,Enabled"
bitfld.long 0x00 2. " HPB2 ,HPB2 clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x00 1. " HPB1 ,HPB1 clock enable" "Stopped,Enabled"
bitfld.long 0x00 0. " HPB0 ,HPB0 clock enable" "Stopped,Enabled"
line.long 0x04 "APBAMASK,APBA Mask"
bitfld.long 0x04 6. " EIC ,EIC clock enable" "Stopped,Enabled"
bitfld.long 0x04 5. " RTC ,RTC clock enable" "Stopped,Enabled"
bitfld.long 0x04 4. " WDT ,WDT clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x04 3. " GCLK ,GLCK clock enable" "Stopped,Enabled"
bitfld.long 0x04 2. " SYSCTRL ,SYSCTRL clock enable" "Stopped,Enabled"
bitfld.long 0x04 1. " PM ,PM clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x04 0. " PAC0 ,PAC0 clock enable" "Stopped,Enabled"
textline " "
line.long 0x08 "APBBMASK,APBB Mask"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
sif ((cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L"))
bitfld.long 0x08 5. " USB ,USB APB clock enable" "Stopped,Enabled"
textline " "
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x08 4. " DMAC ,DMAC APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x08 3. " PORT ,PORT APB clock enable" "Stopped,Enabled"
bitfld.long 0x08 2. " NVMCTRL ,NVMCTRL APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x08 1. " DSU ,DSU APB clock enable" "Stopped,Enabled"
bitfld.long 0x08 0. " PAC1 ,PAC1 APB clock enable" "Stopped,Enabled"
line.long 0x0C "APBCMASK,APBC Mask"
sif (!cpuis("ATSAMD10")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
sif ((cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L"))
bitfld.long 0x0C 21. " AC1 ,AC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x0C 20. " I2S ,I2S APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMR21*")
bitfld.long 0x0C 21. " RFCTRL ,RFCTRL APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
textline " "
else
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x0C 17. " AC ,AC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 16. " ADC ,ADC APB clock enable" "Stopped,Enabled"
textline " "
sif (cpuis("ATSAMD20J*")||(cpuis("ATSAMD21J*"))||(cpuis("ATSAMHA1G1?A"))||(cpu()=="ATSAMD21G16L")||cpuis("ATSAMDA1*"))
bitfld.long 0x0C 15. " TC7 ,TC7 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 14. " TC6 ,TC6 APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x0C 13. " TC5 ,APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 12. " TC4 ,TC4 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 11. " TC3 ,TC3 APB clock enable" "Stopped,Enabled"
textline " "
sif cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x0C 10. " TCC2 ,TCC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TCC1 ,TCC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMD20*")
bitfld.long 0x0C 10. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TC0 ,TC0 APB clock enable" "Stopped,Enabled"
textline " "
else
bitfld.long 0x0C 10. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TCC1 ,TCC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
endif
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
bitfld.long 0x0C 6. " SERCOM4 ,SERCOM4 APB clock enable" "Stopped,Enabled"
textline " "
elif (cpuis("ATSAMD20J*")||cpuis("ATSAMD20G*")||cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*")||cpuis("ATSAMD20E*"))
sif (!cpuis("ATSAMD21E*")&&!cpuis("ATSAMDA1E*"))
bitfld.long 0x0C 7. " SERCOM5 ,SERCOM5 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " SERCOM4 ,SERCOM4 APB clock enable" "Stopped,Enabled"
textline " "
endif
endif
bitfld.long 0x0C 5. " SERCOM3 ,SERCOM3 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 4. " SERCOM2 ,SERCOM2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x0C 8. " ADC ,ADC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 7. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
else
bitfld.long 0x0C 10. " DAC ,DAC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " AC ,AC ABP clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " ADC ,ADC APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 7. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 5. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 4. " SERCOM2 ,SERCOM2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
endif
textline " "
sif (cpuis("ATSAMHA1G1?A"))
group.byte 0x34++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x01 0. 0x00 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x02 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x02 0. " CKRDY ,Clock ready" "Low,High"
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
group.byte 0x35++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " CKRDY ,Clock ready" "Not ready,Ready"
elif (cpuis("ATSAMR21*"))
group.byte 0x34++0x02
line.byte 0x00 "INTENCLR,Interrupt Enable Clear"
eventfld.byte 0x00 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTENSET,Interrupt Enable Set"
bitfld.byte 0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x02 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x02 0. " CKRDY ,Clock ready" "Low,High"
else
group.byte 0x35++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Clear/Set"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " CFD ,Clock failure detector interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 1. " CFD ,Clock failure detector" "Low,High"
eventfld.byte 0x01 0. " CKRDY ,Clock ready" "Low,High"
endif
rgroup.byte 0x38++0x00
line.byte 0x00 "RCAUSE,Reset Cause"
bitfld.byte 0x00 6. " SYST ,System reset request" "No reset,Reset"
bitfld.byte 0x00 5. " WDT ,Watchdog reset" "No reset,Reset"
bitfld.byte 0x00 4. " EXT ,External reset" "No reset,Reset"
textline " "
bitfld.byte 0x00 2. " BOD33 ,Brown out 33 detector reset" "No reset,Reset"
bitfld.byte 0x00 1. " BOD12 ,Brown out 12 detector reset" "No reset,Reset"
bitfld.byte 0x00 0. " POR ,Power-On reset" "No reset,Reset"
width 0x0B
tree.end
tree "SYSCTRL (System Controller)"
base ad:0x40000800
width 15.
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*")||cpuis("ATSAMD20*"))
group.long 0x04++0x07
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
sif (!cpuis("ATSAMD20*"))
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " DPLLLTO ,DPLL lock timeout interrupt disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " DPLLLCKF ,DPLL lock fall interrupt disable/enable" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " DPLLLCKR ,DPLL lock rise interrupt disable/enable" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " B33SRDY ,BOD33 synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " BOD33DET ,BOD33 detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " BOD33RDY ,BOD33 ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " DFLLRCS ,DFLL reference clock stopped interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " DFLLLCKC ,DFLL lock coarse interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " DFLLLCKF ,DFLL lock fine interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " DFLLOOB ,DFLL out of bounds interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " DFLLRDY ,DFLL ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " OSC8MRDY ,OSC8M ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " OSC32KRDY ,OSC32K ready interrupt enable" "Disabled,Enabled"
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " XOSCRDY ,XOSC ready interrupt enable" "Disabled,Enabled"
else
textline " "
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " XOSC32KRDY ,XOSC32K ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " XOSCRDY ,XOSC ready interrupt enable" "Disabled,Enabled"
endif
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
sif (!cpuis("ATSAMD20*"))
eventfld.long 0x04 17. " DPLLLTO ,DPLL lock timeout" "Low,High"
eventfld.long 0x04 16. " DPLLLCKF ,DPLL lock fall" "Low,High"
eventfld.long 0x04 15. " DPLLLCKR ,DPLL lock rise" "Low,High"
textline " "
endif
eventfld.long 0x04 11. " B33SRDY ,BOD33 synchronization ready" "Low,High"
eventfld.long 0x04 10. " BOD33DET ,BOD33 detection" "Low,High"
eventfld.long 0x04 9. " BOD33RDY ,BOD33 ready" "Low,High"
textline " "
eventfld.long 0x04 8. " DFLLRCS ,DFLL reference clock stopped" "Low,High"
eventfld.long 0x04 7. " DFLLLCKC ,DFLL lock coarse" "Low,High"
eventfld.long 0x04 6. " DFLLLCKF ,DFLL lock fine" "Low,High"
textline " "
eventfld.long 0x04 5. " DFLLOOB ,DFLL out of bounds" "Low,High"
eventfld.long 0x04 4. " DFLLRDY ,DFLL ready" "Low,High"
eventfld.long 0x04 3. " OSC8MRDY ,OSC8M ready" "Low,High"
textline " "
eventfld.long 0x04 2. " OSC32KRDY ,OSC32K ready" "Low,High"
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
textline " "
eventfld.long 0x04 0. " XOSCRDY ,XOSC ready" "Low,High"
else
textline " "
eventfld.long 0x04 1. " XOSC32KRDY ,XOSC32K ready" "Low,High"
eventfld.long 0x04 0. " XOSCRDY ,XOSC ready" "Low,High"
endif
else
group.long 0x00++0x07
line.long 0x00 "INTENCLR,Interrupt Enable Clear"
eventfld.long 0x00 14. " B12SRDY ,BOD12 synchronization ready interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 13. " BOD12DET ,BOD12 detection interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 12. " BOD12RDY ,BOD12 ready interrupt enable" "Disabled,Enabled"
textline " "
eventfld.long 0x00 11. " B33SRDY ,BOD33 synchronization ready interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 10. " BOD33DET ,BOD33 detection interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 9. " BOD33RDY ,BOD33 ready interrupt enable" "Disabled,Enabled"
textline " "
eventfld.long 0x00 8. " DFLLRCS ,DFLL reference clock stopped interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 7. " DFLLLCKC ,DFLL lock coarse interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 6. " DFLLLCKF ,DFLL lock fine interrupt enable" "Disabled,Enabled"
textline " "
eventfld.long 0x00 5. " DFLLOOB ,DFLL out of bounds interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 4. " DFLLRDY ,DFLL ready interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 3. " OSC8MRDY ,OSC8M ready interrupt enable" "Disabled,Enabled"
textline " "
eventfld.long 0x00 2. " OSC32KRDY ,OSC32K ready interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 1. " XOSC32KRDY ,XOSC32K ready interrupt enable" "Disabled,Enabled"
eventfld.long 0x00 0. " XOSCRDY ,XOSC ready interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTENSET,Interrupt Enable Set"
bitfld.long 0x04 14. " B12SRDY ,BOD12 synchronization ready interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 13. " BOD12DET ,BOD12 detection interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 12. " BOD12RDY ,BOD12 ready interrupt enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 11. " B33SRDY ,BOD33 synchronization ready interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 10. " BOD33DET ,BOD33 detection interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 9. " BOD33RDY ,BOD33 ready interrupt enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 8. " DFLLRCS ,DFLL reference clock stopped interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 7. " DFLLLCKC ,DFLL lock coarse interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 6. " DFLLLCKF ,DFLL lock fine interrupt enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5. " DFLLOOB ,DFLL out of bounds interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 4. " DFLLRDY ,DFLL ready interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 3. " OSC8MRDY ,OSC8M ready interrupt enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 2. " OSC32KRDY ,OSC32K ready interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 1. " XOSC32KRDY ,XOSC32K ready interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 0. " XOSCRDY ,XOSC ready interrupt enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x00 14. " B12SRDY ,BOD12 synchronization ready" "No interrupt,Interrupt"
eventfld.long 0x00 13. " BOD12DET ,BOD12 detection" "No interrupt,Interrupt"
eventfld.long 0x00 12. " BOD12RDY ,BOD12 ready" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 11. " B33SRDY ,BOD33 synchronization ready" "Low,High"
eventfld.long 0x00 10. " BOD33DET ,BOD33 detection" "Low,High"
eventfld.long 0x00 9. " BOD33RDY ,BOD33 ready" "Low,High"
textline " "
eventfld.long 0x00 8. " DFLLRCS ,DFLL reference clock stopped" "Low,High"
eventfld.long 0x00 7. " DFLLLCKC ,DFLL lock coarse" "Low,High"
eventfld.long 0x00 6. " DFLLLCKF ,DFLL lock fine" "Low,High"
textline " "
eventfld.long 0x00 5. " DFLLOOB ,DFLL out of bounds" "Low,High"
eventfld.long 0x00 4. " DFLLRDY ,DFLL ready" "Low,High"
eventfld.long 0x00 3. " OSC8MRDY ,OSC8M ready" "Low,High"
textline " "
eventfld.long 0x00 2. " OSC32KRDY ,OSC32K ready" "Low,High"
eventfld.long 0x00 1. " XOSC32KRDY ,XOSC32K ready" "Low,High"
eventfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Low,High"
endif
rgroup.long 0x0C++0x03
line.long 0x00 "PCLKSR,Power And Clocks Status"
sif (!cpuis("ATSAMD20*"))
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 17. " DPLLLTO ,DPLL lock timeout" "Not detected,Detected"
bitfld.long 0x00 16. " DPLLLCKF ,DPLL lock fall" "Not detected,Detected"
bitfld.long 0x00 15. " DPLLLCKR ,DPLL lock rise" "Not detected,Detected"
textline " "
else
bitfld.long 0x00 14. " B12SRDY ,BOD12 synchronization ready" "Ongoing,Complete"
bitfld.long 0x00 13. " BOD12DET ,BOD12 detection" "Not detected,Detected"
bitfld.long 0x00 12. " BOD12RDY ,BOD12 ready" "Not ready,Ready"
textline " "
endif
endif
bitfld.long 0x00 11. " B33SRDY ,BOD33 synchronization ready" "Complete,Ongoing"
bitfld.long 0x00 10. " BOD33DET ,BOD33 detection" "Not detected,Detected"
bitfld.long 0x00 9. " BOD33RDY ,BOD33 ready" "Not ready,Ready"
textline " "
bitfld.long 0x00 8. " DFLLRCS ,DFLL reference clock stopped" "Running,Stopped"
bitfld.long 0x00 7. " DFLLLCKC ,DFLL lock coarse" "Not detected,Detected"
bitfld.long 0x00 6. " DFLLLCKF ,DFLL lock fine" "Not detected,Detected"
textline " "
bitfld.long 0x00 5. " DFLLOOB ,DFLL out of bounds" "No detected,Detected"
bitfld.long 0x00 4. " DFLLRDY ,DFLL ready" "Not ready,Ready"
bitfld.long 0x00 3. " OSC8MRDY ,OSC8M ready" "Not ready,Ready"
textline " "
bitfld.long 0x00 2. " OSC32KRDY ,OSC32K ready" "Not ready,Ready"
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
textline " "
bitfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Not ready,Ready"
else
textline " "
bitfld.long 0x00 1. " XOSC32KRDY ,XOSC32K ready" "Not ready,Ready"
bitfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Not ready,Ready"
endif
group.word 0x10++0x01
line.word 0x00 "XOSC,External Multipurpose Crystal Oscillator Control"
bitfld.word 0x00 12.--15. " STARTUP ,Start-up time" "31 us,61 us,122 us,244 us,488 us,977 us,1953 us,3906 us,7813 us,15625 us,31250 us,62500 us,125000 us,250000 us,500000 us,1000000 us"
bitfld.word 0x00 11. " AMPGC ,Automatic amplitude gain control" "Disabled,Enabled"
bitfld.word 0x00 8.--10. " GAIN ,Oscillator gain" "2MHz,4MHz,8MHz,16MHz,30MHz,?..."
textline " "
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "External clock connected,Crystal connected"
textline " "
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
sif (cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L")
group.word 0x14++0x01
line.word 0x00 "XOSC32K,32kHz External Crystal Oscillator Control"
bitfld.word 0x00 12. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.word 0x00 8.--10. " STARTUP ,Oscillator start-up time" "122 us,1068 us,62592 us,125092 us,500092 us,1000092 us,2000092 us,4000092 us"
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
textline " "
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.word 0x00 5. " AAMPEN ,Automatic amplitude control enable" "Disabled,Enabled"
sif (!cpuis("ATSAMD21*")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMDA1*"))
textline " "
bitfld.word 0x00 4. " EN1K ,1kHz output enable" "Disabled,Enabled"
endif
textline " "
bitfld.word 0x00 3. " EN32K ,32kHz output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "External clock connected,Crystal connected"
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
endif
group.long 0x18++0x03
line.long 0x00 "OSC32K,32kHz Internal Oscillator Control"
hexmask.long.byte 0x00 16.--22. 1. " CALIB ,Oscillator calibration"
bitfld.long 0x00 12. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " STARTUP ,Oscillator start-up time" "92 us,122 us,183 us,305 us,549 us,1038 us,2014 us,3967 us"
textline " "
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
sif (!cpuis("ATSAMD21*")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMDA1*"))
textline " "
bitfld.long 0x00 3. " EN1K ,1kHz output enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x00 2. " EN32K ,32kHz output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
group.byte 0x1C++0x00
line.byte 0x00 "OSCULP32K,332kHz Ultra Low Power Internal Oscillator Control"
bitfld.byte 0x00 7. " WRTLOCK ,Write lock" "Not locked,Locked"
hexmask.byte 0x00 0.--4. 1. " CALIB ,Oscillator calibration"
group.long 0x20++0x03
line.long 0x00 "OSC8M,8MHz Internal Oscillator Control"
bitfld.long 0x00 30.--31. " FRANGE ,Oscillator frequency range" "4 to 6MHz,6 to 8MHz,8 to 11MHz,11 to 15MHz"
hexmask.long.word 0x00 16.--27. 1. " CALIB ,Oscillator calibration"
bitfld.long 0x00 8.--9. " PRESC ,Oscillator prescaler" "1,2,4,8"
textline " "
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
hgroup.word 0x24++0x01
hide.word 0x00 "DFLLCTRL,DFLL48M Control"
else
group.word 0x24++0x01
line.word 0x00 "DFLLCTRL,DFLL48M Control"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.word 0x00 11. " WAITLOCK ,Wait lock" "Before DFLL,When DFLL"
bitfld.word 0x00 10. " BPLCKC ,Bypass coarse lock" "Disabled,Enabled"
endif
textline " "
bitfld.word 0x00 9. " QLDIS ,Quick lock disable" "No,Yes"
bitfld.word 0x00 8. " CCDIS ,Chill cycle disable" "No,Yes"
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
textline " "
sif (!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
textline " "
endif
sif (cpuis("ATSAMD11")||cpuis("ATSAMDA1*"))
bitfld.word 0x00 5. " USBCRM ,USB clock recovery mode" "Disabled,Enabled"
endif
textline " "
bitfld.word 0x00 4. " LLAW ,Lose lock after wake" "Not lost,Lost"
bitfld.word 0x00 3. " STABLE ,Stable DFLL frequency" "Variable,Fixed"
textline " "
bitfld.word 0x00 2. " MODE ,Operating mode selection" "Open-loop,Closed-loop"
bitfld.word 0x00 1. " ENABLE ,DFLL enable" "Disabled,Enabled"
endif
sif (cpuis("ATSAMDA1*"))
if ((per.w(ad:0x40000800+0x24)&0x04)==0x04)
rgroup.long 0x28++0x03
line.long 0x00 "DFLLVAL,DFLL48M Value"
hexmask.long.word 0x00 16.--31. 1. " DIFF ,Multiplication ratio difference"
hexmask.long.byte 0x00 10.--15. 1. " COARSE ,Coarse value"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine value"
else
group.long 0x28++0x03
line.long 0x00 "DFLLVAL,DFLL48M Value"
hexmask.long.byte 0x00 10.--15. 1. " COARSE ,Coarse value"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine value"
endif
else
group.long 0x28++0x03
line.long 0x00 "DFLLVAL,DFLL48M Value"
hexmask.long.word 0x00 16.--31. 1. " DIFF ,Multiplication ratio difference"
hexmask.long.byte 0x00 10.--15. 1. " COARSE ,Coarse value"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine value"
endif
group.long 0x2C++0x03
line.long 0x00 "DFLLMUL,DFLL48M Multiplier"
hexmask.long.byte 0x00 26.--31. 1. " CSTEP ,Coarse maximum step"
hexmask.long.word 0x00 16.--25. 1. " FSTEP ,Fine maximum step"
hexmask.long.word 0x00 0.--15. 1. " MUL ,DFLL multiply factor"
wgroup.byte 0x30++0x00
line.byte 0x00 "DFLLSYNC,DFLL48M Synchronization"
bitfld.byte 0x00 7. " READREQ ,Read request" "No effect,Request"
group.long 0x34++0x03
line.long 0x00 "BOD33,3.3V Brown-Out Detector (BOD33) Control"
hexmask.long.byte 0x00 16.--21. 1. " LEVEL ,BOD33 threshold level"
bitfld.long 0x00 12.--15. " PSEL ,Prescaler select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1K,DIV2K,DIV4K,DIV8K,DIV16K,DIV32K,DIV64K"
bitfld.long 0x00 9. " CEN ,Clock enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " MODE ,Operation mode" "Continuous,Sampling"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x00 3.--4. " ACTION ,BOD33 action" "NONE,RESET,INTERRUPT,?..."
bitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
textline " "
bitfld.long 0x00 3.--4. " ACTION ,BOD33 action" "NONE,RESET,INTERRUPT,?..."
bitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
sif (!cpuis("ATSAMD21*")&&!cpuis("ATSAMR21*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD10*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMDA1*"))
group.long 0x38++0x03
line.long 0x00 "BOD12,1.2V Brown-Out Detector (BOD12) Control"
hexmask.long.byte 0x00 16.--20. 1. " LEVEL ,BOD12 threshold level"
bitfld.long 0x00 12.--15. " PSEL ,Prescaler select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1K,DIV2K,DIV4K,DIV8K,DIV16K,DIV32K,DIV64K"
bitfld.long 0x00 9. " CEN ,Clock enable" "Low,High"
textline " "
bitfld.long 0x00 8. " MODE ,Operation mode" "Continuous,Sampling"
bitfld.long 0x00 3.--4. " ACTION ,BOD12 action" "NONE,RESET,INTERRUPT,?..."
bitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
sif (!cpuis("ATSAMD21*")&&!cpuis("ATSAMR21*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD10*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMDA1*"))
group.word 0x3C++0x01
line.word 0x00 "VREG,Voltage Regulator System (VREG) Control"
bitfld.word 0x00 12.--14. " CALIB ,Voltage regulator calibration" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 8.--10. " LEVEL ,Voltage regulator level" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Low-power,Not low-power"
elif (cpuis("ATSAMR21*")||cpuis("ATSAMD21*")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
group.word 0x3C++0x01
line.word 0x00 "VREG,Voltage Regulator System (VREG) Control"
bitfld.word 0x00 13. " FORCELDO ,Force LDO voltage regulator (Power/Drive)" "Low/Low,Low/High"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Low-power,Normal"
endif
group.long 0x40++0x03
line.long 0x00 "VREF,Voltage References System (VREF) Control"
hexmask.long.word 0x00 16.--26. 1. " CALIB ,Bandgap voltage generator calibration"
bitfld.long 0x00 2. " BGOUTEN ,Bandgap output enable" "Not available,Routed"
bitfld.long 0x00 1. " TSEN ,Temperature sensor enable" "Disabled,Enabled"
sif (!cpuis("ATSAMD20*"))
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
group.byte 0x44++0x00
line.byte 0x00 "DPLLCTRLA,DPLL Control A"
bitfld.byte 0x00 7. " ONDEMAND ,On demand clock activation" "Always on,On demand"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.byte 0x00 1. " ENABLE ,DPLL enable" "Disabled,Enabled"
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
group.long 0x48++0x07
line.long 0x00 "DPLLRATIO,DPLL Ratio Control"
bitfld.long 0x00 16.--19. " LDRFRAC ,Loop divider ratio fractional part" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.word 0x00 0.--11. 1. " LDR ,Loop divider ratio"
line.long 0x04 "DPLLCTRLB,DPLL Control B"
hexmask.long.word 0x04 16.--26. 1. " DIV ,Clock divider"
bitfld.long 0x04 12. " LBYPASS ,Lock bypass" "Not bypassed,Bypassed"
bitfld.long 0x04 8.--10. " LTIME ,Lock time" "No time-out,,,,8ms,9ms,10ms,11ms"
textline " "
sif cpuis("ATSAMR21*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x04 4.--5. " REFCLK ,Reference clock selection" "XOSC32,XOSC,GCLK_DPLL,?..."
bitfld.long 0x04 3. " WUF ,Wake up fast" "Until complete,Until startup"
textline " "
else
bitfld.long 0x04 4.--5. " REFCLK ,Reference clock selection" "REF0,REF1,GCLK,?..."
bitfld.long 0x04 3. " WUF ,Wake up fast" "Until complete,Until startup"
textline " "
endif
bitfld.long 0x04 2. " LPEN ,Low-Power enable" "Conv. selected,Conv. not selected"
bitfld.long 0x04 0.--1. " FILTER ,Proportional integral filter selection" "Default,Low bandwidth,High bandwidth,High damping"
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
rgroup.byte 0x50++0x00
line.byte 0x00 "DPLLSTATUS,DPLL Status"
bitfld.byte 0x00 3. " DIV ,Divider enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " ENABLE ,DPLL enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " CLKRDY ,Output clock ready" "Off,On"
bitfld.byte 0x00 0. " LOCK ,DPLL lock status" "Cleared,Asserted"
else
rgroup.long 0x50++0x03
line.long 0x00 "DPLLSTATUS,DPLL Status"
bitfld.long 0x00 3. " DIV ,Divider enable" "Disabled,Enabled"
bitfld.long 0x00 2. " ENABLE ,DPLL enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " CLKRDY ,Output clock ready" "Off,On"
bitfld.long 0x00 0. " LOCK ,DPLL lock status" "Cleared,Asserted"
endif
endif
width 0x0B
tree.end
tree "WDT (Watchdog Timer)"
base ad:0x40001000
width 15.
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
if (((per.b(ad:0x40001000))&0x82)==0x80)
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
rbitfld.byte 0x00 7. " ALWAYSON ,Always-on" "WDT can be disabled through the ENABLE bit,WDT can only be disabled by a power-on reset"
textline " "
bitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
textline " "
rbitfld.byte 0x00 1. " ENABLE ,Watchdog enable" "Disabled,Enabled"
rgroup.byte 0x01++0x01
line.byte 0x00 "CONFIG,Configuration"
bitfld.byte 0x00 4.--7. " WINDOW ,Window mode time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
textline " "
bitfld.byte 0x00 0.--3. " PER ,Time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
line.byte 0x01 "EWCTRL,Early Warning Interrupt Control"
bitfld.byte 0x01 0.--3. " EWOFFSET ,Early warning interrupt time offset" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
else
if (((per.b(ad:0x40001000))&0x02)==0x02)
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "WDT can be disabled through the ENABLE bit,WDT can only be disabled by a power-on reset"
textline " "
rbitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " ENABLE ,Watchdog enable" "Disabled,Enabled"
rgroup.byte 0x01++0x01
line.byte 0x00 "CONFIG,Configuration"
bitfld.byte 0x00 4.--7. " WINDOW ,Window mode time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
textline " "
bitfld.byte 0x00 0.--3. " PER ,Time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
line.byte 0x01 "EWCTRL,Early Warning Interrupt Control"
bitfld.byte 0x01 0.--3. " EWOFFSET ,Early warning interrupt time offset" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
else
group.byte 0x00++0x02
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "WDT can be disabled through the ENABLE bit,WDT can only be disabled by a power-on reset"
textline " "
bitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " ENABLE ,Watchdog enable" "Disabled,Enabled"
line.byte 0x01 "CONFIG,Configuration"
bitfld.byte 0x01 4.--7. " WINDOW ,Window mode time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
textline " "
bitfld.byte 0x01 0.--3. " PER ,Time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
line.byte 0x02 "EWCTRL,Early Warning Interrupt Control"
bitfld.byte 0x02 0.--3. " EWOFFSET ,Early warning interrupt time offset" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
endif
endif
else
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "Disabled through the ENABLE bit,Disabled by a POR"
textline " "
bitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
group.byte 0x01++0x01
line.byte 0x00 "CONFIG,Configuration"
bitfld.byte 0x00 4.--7. " WINDOW ,Window mode time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
bitfld.byte 0x00 0.--3. " PER ,Time-out period" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
line.byte 0x01 "EWCTRL,Early Warning Interrupt Control"
bitfld.byte 0x01 0.--3. " EWOFFSET ,Early warning interrupt time offset" "8 clock cycles,16 clock cycles,32 clock cycles,64 clock cycles,128 clock cycles,256 clock cycles,512 clock cycles,1024 clock cycles,2048 clock cycles,4096 clock cycles,8192 clock cycles,16384 clock cycles,?..."
endif
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " EW ,Early warning interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " EW ,Early warning" "Not set,Set"
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
wgroup.byte 0x08++0x00
line.byte 0x00 "CLEAR,Clear"
width 0x0B
tree.end
tree "RTC (Real-Time Counter)"
base ad:0x40001400
width 15.
if ((per.w(ad:0x40001400+0x00)&0xC)==0x00)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
bitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " CMP0 ,Compare 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
group.long 0x18++0x03
line.long 0x00 "COMP0,Compare 0 Value"
else
group.long 0x18++0x0F
line.long 0x00 "COMP0,Compare 0 Value"
line.long 0x04 "COMP1,Compare 1 Value"
line.long 0x08 "COMP2,Compare 2 Value"
line.long 0x0C "COMP3,Compare 3 Value"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x4)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 9. " CMPEO1 ,Compare 1 event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " CMP1 ,Compare 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 1. " CMP1 ,Compare 1" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " CMP0 ,Compare 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
group.word 0x14++0x01
line.word 0x00 "PER,Counter Period"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
group.word 0x18++0x03
line.word 0x00 "COMP0,Compare 0 Value"
line.word 0x02 "COMP1,Compare 1 Value"
else
group.word 0x18++0x0D
line.word 0x00 "COMP0,Compare 0 Value"
line.word 0x02 "COMP1,Compare 1 Value"
line.word 0x04 "COMP2,Compare 2 Value"
line.word 0x06 "COMP3,Compare 3 Value"
line.word 0x08 "COMP4,Compare 4 Value"
line.word 0x0C "COMP5,Compare 5 Value"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x8)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
bitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
bitfld.word 0x00 6. " CLKREP ,Clock representation" "24 hour,12 hour (AM/PM)"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
textline " "
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " ALARMEO0 ,Alarm 0 event output enable" "Disabled,Enabled"
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x00 0. " ALARM0 ,Alarm 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " ALARM0 ,Alarm 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
if ((per.l(ad:0x40001400+0x10)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x10)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x10)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
else
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ASAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
if ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
else
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
endif
group.long 0x1C++0x03
line.long 0x00 "MASK0,Alarm 0 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
else
if ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x20)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x20)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x20)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x28)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x28)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x28)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x30)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x30)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x30)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,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,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
else
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "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,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "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,-,-,-,-"
endif
group.long 0x1C++0x03
line.long 0x00 "MASK0,Alarm 0 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x24++0x03
line.long 0x00 "MASK1,Alarm 1 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x2C++0x03
line.long 0x00 "MASK2,Alarm 2 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x34++0x03
line.long 0x00 "MASK3,Alarm 3 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x0C)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
endif
width 0x0B
tree.end
tree "DMAC (Direct Memory Access Controller)"
tree "DMAC Registers"
base ad:0x41004800
width 17.
sif cpuis("ATSAMD21*")
if (((per.w(ad:0x41004800+0x00))&0x06)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVLEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVLEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVLEN1 ,Priority level 1 enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVLEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVLEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVLEN1 ,Priority level 1 enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
rbitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
rbitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
elif cpuis("ATSAMDA1*")
if (((per.w(ad:0x41004800+0x00))&0x06)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVLEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVLEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVLEN1 ,Priority level 1 enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVLEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVLEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVLEN1 ,Priority level 1 enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
rbitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVLEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVLEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVLEN1 ,Priority level 1 enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAML21*")
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
else
bitfld.word 0x00 8. " LVLEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
textline " "
endif
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
sif cpuis("ATSAML21*")
if (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,Channel 12,Channel 13,Channel 14,Channel 15,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
else
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,Channel 12,Channel 13,Channel 14,Channel 15,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
endif
else
if ((((per.b(ad:0x41004800+0x0C))&0x01)==0x00)&&(((per.b(ad:0x41004800+0x00))&0x04)==0x00))
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,?..."
else
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,Channel 12,Channel 13,Channel 14,Channel 15,?..."
endif
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
elif ((((per.b(ad:0x41004800+0x0C))&0x01)==0x01)&&(((per.b(ad:0x41004800+0x00))&0x04)==0x00))
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,?..."
else
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,Channel 12,Channel 13,Channel 14,Channel 15,?..."
endif
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
else
rgroup.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,?..."
else
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Channel 0,Channel 1,Channel 2,Channel 3,Channel 4,Channel 5,Channel 6,Channel 7,Channel 8,Channel 9,Channel 10,Channel 11,Channel 12,Channel 13,Channel 14,Channel 15,?..."
endif
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
endif
endif
group.long 0x04++0x03
line.long 0x00 "CRCDATAIN,CRC Data Input"
sif cpuis("ATSAMD21*")
if (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800+0x00))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800+0x00))&0x04)==0x04)
rgroup.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
endif
elif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMR21*")||cpuis("ATSAMDA1*")
if (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
in
endif
endif
sif cpuis("ATSAML21*")||cpuis("ATSAMDA1*")
if (((per.w(ad:0x41004800+0x02))&0x3F00)==0x100)
group.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
rbitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
eventfld.byte 0x00 0. " CRCBUSY ,CRC module busy" "CRCDATAIN is not written,CRCDATAIN is written"
elif (((per.w(ad:0x41004800+0x02))&0x3F00)>=0x2000)
rgroup.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
bitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
bitfld.byte 0x00 0. " CRCBUSY ,CRC module busy" "Channel disabled,Channel enabled"
else
rgroup.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
bitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
endif
elif cpuis("ATSAMD21*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
if (((per.w(ad:0x41004800+0x02))&0x3F00)==0x100)
group.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
rbitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
eventfld.byte 0x00 0. " CRCBUSY ,CRC module busy" "Idle,Busy"
else
rgroup.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
bitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
bitfld.byte 0x00 0. " CRCBUSY ,CRC module busy" "Idle,Busy"
endif
else
group.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
rbitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
bitfld.byte 0x00 0. " CRCBUSY ,CRC module busy" "Idle,Busy"
endif
group.byte 0x0D++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continued"
sif cpuis("ATSAMR21*")||cpuis("ATSAMD21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*")
group.byte 0x0E++0x00
line.byte 0x00 "QOSCTRL,QOS Control"
bitfld.byte 0x00 4.--5. " DQOS ,DATA quality of service" "Disabled,Low,Medium,High"
bitfld.byte 0x00 2.--3. " FQOS ,Fetch quality of service" "Disabled,Low,Medium,High"
bitfld.byte 0x00 0.--1. " WRQOS ,WB quality of service" "Disabled,Low,Medium,High"
endif
group.long 0x10++0x03
line.long 0x00 "SWTRIGCTRL,Software Trigger Control"
sif cpuis("ATSAML21*")
bitfld.long 0x00 15. " SWTRIG_15 ,Channel 15 software trigger" "Not pending,Pending"
bitfld.long 0x00 14. " SWTRIG_14 ,Channel 14 software trigger" "Not pending,Pending"
bitfld.long 0x00 13. " SWTRIG_13 ,Channel 13 software trigger" "Not pending,Pending"
bitfld.long 0x00 12. " SWTRIG_12 ,Channel 12 software trigger" "Not pending,Pending"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x00 11. " SWTRIG_11 ,Channel 11 software trigger" "Not pending,Pending"
bitfld.long 0x00 10. " SWTRIG_10 ,Channel 10 software trigger" "Not pending,Pending"
bitfld.long 0x00 9. " SWTRIG_9 ,Channel 9 software trigger" "Not pending,Pending"
bitfld.long 0x00 8. " SWTRIG_8 ,Channel 8 software trigger" "Not pending,Pending"
textline " "
bitfld.long 0x00 7. " SWTRIG_7 ,Channel 7 software trigger" "Not pending,Pending"
bitfld.long 0x00 6. " SWTRIG_6 ,Channel 6 software trigger" "Not pending,Pending"
textline " "
endif
bitfld.long 0x00 5. " SWTRIG_5 ,Channel 5 software trigger" "Not pending,Pending"
bitfld.long 0x00 4. " SWTRIG_4 ,Channel 4 software trigger" "Not pending,Pending"
bitfld.long 0x00 3. " SWTRIG_3 ,Channel 3 software trigger" "Not pending,Pending"
bitfld.long 0x00 2. " SWTRIG_2 ,Channel 2 software trigger" "Not pending,Pending"
textline " "
bitfld.long 0x00 1. " SWTRIG_1 ,Channel 1 software trigger" "Not pending,Pending"
bitfld.long 0x00 0. " SWTRIG_0 ,Channel 0 software trigger" "Not pending,Pending"
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
group.long 0x14++0x03
line.long 0x00 "PRICTRL0,Priority Control 0"
bitfld.long 0x00 31. " RRLVLEN3 ,Level 3 Round-Robin scheduling enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " LVLPRI3 ,Level 3 channel priority number" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 23. " RRLVLEN2 ,Level 2 Round-Robin scheduling enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " LVLPRI2 ,Level 2 channel priority number" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 15. " RRLVLEN1 ,Level 1 Round-Robin scheduling enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " LVLPRI1 ,Level 1 channel priority number" "0,1,2,3,4,5,6,7"
textline " "
bitfld.long 0x00 7. " RRLVLEN0 ,Level 0 Round-Robin scheduling enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " LVLPRI0 ,Level 0 channel priority number" "0,1,2,3,4,5,6,7"
else
group.long 0x14++0x03
line.long 0x00 "PRICTRL0,Priority Control 0"
bitfld.long 0x00 31. " RRLVLEN3 ,Level 3 Round-Robin scheduling enable" "Disabled,Enabled"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 24.--27. " LVLPRI3 ,Level 3 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 24.--26. " LVLPRI3 ,Level 3 channel priority number" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 24.--27. " LVLPRI3 ,Level 3 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
textline " "
bitfld.long 0x00 23. " RRLVLEN2 ,Level 2 Round-Robin scheduling enable" "Disabled,Enabled"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 16.--19. " LVLPRI2 ,Level 2 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 16.--18. " LVLPRI2 ,Level 2 channel priority number" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 16.--19. " LVLPRI2 ,Level 2 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
textline " "
bitfld.long 0x00 15. " RRLVLEN1 ,Level 1 Round-Robin scheduling enable" "Disabled,Enabled"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 8.--11. " LVLPRI1 ,Level 1 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 8.--10. " LVLPRI1 ,Level 1 channel priority number" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 8.--11. " LVLPRI1 ,Level 1 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
textline " "
bitfld.long 0x00 7. " RRLVLEN0 ,Level 0 Round-Robin scheduling enable" "Disabled,Enabled"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 0.--3. " LVLPRI0 ,Level 0 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 0.--2. " LVLPRI0 ,Level 0 channel priority number" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 0.--3. " LVLPRI0 ,Level 0 channel priority number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
endif
if (((per.w(ad:0x41004800+0x20))&0x400)==0x400)||(((per.w(ad:0x41004800+0x20))&0x200)==0x200)||(((per.w(ad:0x41004800+0x20))&0x100)==0x100)
group.word 0x20++0x01
line.word 0x00 "INTPEND,Interrupt Pending"
rbitfld.word 0x00 15. " PEND ,Pending" "Not pending,Pending"
rbitfld.word 0x00 14. " BUSY ,Busy" "Idle,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
textline " "
eventfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
eventfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
eventfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.word 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,6,7"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
else
group.word 0x20++0x01
line.word 0x00 "INTPEND,Interrupt Pending"
rbitfld.word 0x00 15. " PEND ,Pending" "Not pending,Pending"
rbitfld.word 0x00 14. " BUSY ,Busy" "Idle,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
textline " "
eventfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
eventfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
eventfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
endif
rgroup.long 0x24++0x0B
line.long 0x00 "INTSTATUS,Interrupt Status"
sif cpuis("ATSAML21*")
bitfld.long 0x00 15. " CHINT_15 ,Channel 15 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 14. " CHINT_14 ,Channel 14 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 13. " CHINT_13 ,Channel 13 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 12. " CHINT_12 ,Channel 12 pending interrupt" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x00 11. " CHINT_11 ,Channel 11 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 10. " CHINT_10 ,Channel 10 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 9. " CHINT_9 ,Channel 9 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 8. " CHINT_8 ,Channel 8 pending interrupt" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CHINT_7 ,Channel 7 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 6. " CHINT_6 ,Channel 6 pending interrupt" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x00 5. " CHINT_5 ,Channel 5 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 4. " CHINT_4 ,Channel 4 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 3. " CHINT_3 ,Channel 3 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 2. " CHINT_2 ,Channel 2 pending interrupt" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " CHINT_1 ,Channel 1 pending interrupt" "Disabled,Enabled"
bitfld.long 0x00 0. " CHINT_0 ,Channel 0 pending interrupt" "Disabled,Enabled"
line.long 0x04 "BUSYCH,Busy Channels"
sif cpuis("ATSAML21*")
bitfld.long 0x04 15. " BUSYCH_15 ,Busy channel 15" "Idle,Busy"
bitfld.long 0x04 14. " BUSYCH_14 ,Busy channel 14" "Idle,Busy"
bitfld.long 0x04 13. " BUSYCH_13 ,Busy channel 13" "Idle,Busy"
bitfld.long 0x04 12. " BUSYCH_12 ,Busy channel 12" "Idle,Busy"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x04 11. " BUSYCH_11 ,Busy channel 11" "Idle,Busy"
bitfld.long 0x04 10. " BUSYCH_10 ,Busy channel 10" "Idle,Busy"
bitfld.long 0x04 9. " BUSYCH_9 ,Busy channel 9" "Idle,Busy"
bitfld.long 0x04 8. " BUSYCH_8 ,Busy channel 8" "Idle,Busy"
textline " "
bitfld.long 0x04 7. " BUSYCH_7 ,Busy channel 7" "Idle,Busy"
bitfld.long 0x04 6. " BUSYCH_6 ,Busy channel 6" "Idle,Busy"
textline " "
endif
bitfld.long 0x04 5. " BUSYCH_5 ,Busy channel 5" "Idle,Busy"
bitfld.long 0x04 4. " BUSYCH_4 ,Busy channel 4" "Idle,Busy"
bitfld.long 0x04 3. " BUSYCH_3 ,Busy channel 3" "Idle,Busy"
bitfld.long 0x04 2. " BUSYCH_2 ,Busy channel 2" "Idle,Busy"
textline " "
bitfld.long 0x04 1. " BUSYCH_1 ,Busy channel 1" "Idle,Busy"
bitfld.long 0x04 0. " BUSYCH_0 ,Busy channel 0" "Idle,Busy"
line.long 0x08 "PENDCH,Pending Channels"
sif cpuis("ATSAML21*")
bitfld.long 0x08 15. " PENDCH_15 ,Pending channel 15" "Not pending,Pending"
bitfld.long 0x08 14. " PENDCH_14 ,Pending channel 14" "Not pending,Pending"
bitfld.long 0x08 13. " PENDCH_13 ,Pending channel 13" "Not pending,Pending"
bitfld.long 0x08 12. " PENDCH_12 ,Pending channel 12" "Not pending,Pending"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x08 11. " PENDCH_11 ,Pending channel 11" "Not pending,Pending"
bitfld.long 0x08 10. " PENDCH_10 ,Pending channel 10" "Not pending,Pending"
bitfld.long 0x08 9. " PENDCH_9 ,Pending channel 9" "Not pending,Pending"
textline " "
bitfld.long 0x08 8. " PENDCH_8 ,Pending channel 8" "Not pending,Pending"
bitfld.long 0x08 7. " PENDCH_7 ,Pending channel 7" "Not pending,Pending"
bitfld.long 0x08 6. " PENDCH_6 ,Pending channel 6" "Not pending,Pending"
textline " "
endif
bitfld.long 0x08 5. " PENDCH_5 ,Pending channel 5" "Not pending,Pending"
bitfld.long 0x08 4. " PENDCH_4 ,Pending channel 4" "Not pending,Pending"
bitfld.long 0x08 3. " PENDCH_3 ,Pending channel 3" "Not pending,Pending"
bitfld.long 0x08 2. " PENDCH_2 ,Pending channel 2" "Not pending,Pending"
textline " "
bitfld.long 0x08 1. " PENDCH_1 ,Pending channel 1" "Not pending,Pending"
bitfld.long 0x08 0. " PENDCH_0 ,Pending channel 0" "Not pending,Pending"
if (((per.l(ad:0x41004800+0x30))&0x8000)==0x00)
rgroup.long 0x30++0x03
line.long 0x00 "ACTIVE,Active Channel and Levels"
bitfld.long 0x00 15. " ABUSY ,Active channel busy" "Idle,Busy"
textline " "
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "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"
endif
textline " "
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not requested,Requested"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not requested,Requested"
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not requested,Requested"
textline " "
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not requested,Requested"
else
rgroup.long 0x30++0x03
line.long 0x00 "ACTIVE,Active Channel and Levels"
hexmask.long.word 0x00 16.--31. 1. " BTCNT ,Active channel block transfer count"
bitfld.long 0x00 15. " ABUSY ,Active channel busy" "Idle,Busy"
textline " "
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,?..."
else
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "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"
endif
textline " "
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not requested,Requested"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not requested,Requested"
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not requested,Requested"
textline " "
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not requested,Requested"
endif
if (((per.w(ad:0x41004800))&0x02)==0x00)
group.long 0x34++0x07
line.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
line.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
else
rgroup.long 0x34++0x07
line.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
line.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
endif
group.byte 0x3F++0x00
line.byte 0x00 "CHID,Channel ID"
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.byte 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,6,7"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.byte 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.byte 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
bitfld.byte 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
sif (cpuis("ATSAMDA1*"))
if (((per.l(ad:0x41004800))&0x06)==0x06)
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
else
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
rbitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
endif
else
if (((per.l(ad:0x41004800+0x40))&0x02)==0x00)
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAML21*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Running"
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
else
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
endif
else
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAML21*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Running"
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
rbitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
else
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
rbitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
endif
endif
endif
if (((per.l(ad:0x41004800+0x40))&0x02)==0x00)
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
textline " "
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,DAC0 EMPTY,?..."
elif cpu()=="ATSAMD21G16L"
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC0 EMPTY,?..."
elif cpuis("ATSAMD21E*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,,,,,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
elif cpuis("ATASAMD21*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
elif cpuis("ATSAMR21*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,?..."
elif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 8.--12. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,DAC EMPTY,?..."
elif cpuis("ATSAML21*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC0 OVF,TC0 MC0,TC0 MC1,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,ADC RESRDY,DAC0 EMPTY,DAC1 EMPTY,,,,AES WR,AES RD,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 8.--12. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,,,,,,,,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,?..."
elif cpuis("ATSAMDA1*")
sif cpuis("ATSAMDA1E*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,,,,,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
else
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
endif
else
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,I2S TX 1,?..."
endif
textline " "
bitfld.long 0x00 5.--6. " LVL ,Channel arbitration level" "LVL0,LVL1,LVL2,LVL3"
bitfld.long 0x00 4. " EVOE ,Channel event output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " EVIE ,Channel event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
else
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
rbitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
textline " "
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC0 EMPTY,?..."
elif cpuis("ATSAMD21E*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,,,,,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
elif cpuis("ATASAMD21*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
elif cpuis("ATSAMR21*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,?..."
elif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
rbitfld.long 0x00 8.--12. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,DAC EMPTY,?..."
elif cpuis("ATSAML21*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC0 OVF,TC0 MC0,TC0 MC1,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,ADC RESRDY,DAC0 EMPTY,DAC1 EMPTY,,,,AES WR,AES RD,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 8.--12. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,,,,,,,,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,?..."
elif cpuis("ATSAMDA1*")
sif cpuis("ATSAMDA1E*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,,,,,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
else
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,T2S TX 1,?..."
endif
else
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,TCC0 OVF,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 OVF,TCC1 MC0,TCC1 MC1,TCC2 OVF,TCC2 MC0,TCC2 MC1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,DAC EMPTY,I2S RX 0,I2S RX 1,I2S TX 0,I2S TX 1,?..."
endif
textline " "
bitfld.long 0x00 5.--6. " LVL ,Channel arbitration level" "LVL0,LVL1,LVL2,LVL3"
rbitfld.long 0x00 4. " EVOE ,Channel event output enable" "Disabled,Enabled"
rbitfld.long 0x00 3. " EVIE ,Channel event input enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
endif
group.byte 0x4D++0x01
line.byte 0x00 "CHINTEN_SET/CLR,Channel Interrupt Enable Set/Clear"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " SUSP ,Channel suspend interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TCMPL ,Transfer complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TERR ,Transfer error interrupt enable" "Disabled,Enabled"
line.byte 0x01 "CHINTFLAG,Channel Interrupt Flag Status And Clear"
eventfld.byte 0x01 2. " SUSP ,Channel suspend interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TCMPL ,Transfer complete interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TERR ,Transfer error interrupt flag" "No interrupt,Interrupt"
rgroup.byte 0x4F++0x00
line.byte 0x00 "CHSTATUS,Channel Status"
bitfld.byte 0x00 2. " FERR ,Fetch error" "No error,Error"
bitfld.byte 0x00 1. " BUSY ,Channel busy" "Idle,Busy"
bitfld.byte 0x00 0. " PEND ,Channel pending" "Not pending,Pending"
width 0x0B
tree.end
tree "DMAC SRAM Registers"
; base ad:0x20000000
tree "Descriptor Memory Section"
base ad:(((d.l(ad:0x41004800+0x34))&0xFFFFFFFF)+(((d.b(ad:0x41004800+0x3F))&0x0F)*0x10))
width 10.
group.word 0x00++0x03
line.word 0x00 "BTCTRL,Block Transfer Control"
bitfld.word 0x00 13.--15. " STEPSIZE ,Address increment step size" "1,2,4,8,16,32,64,128"
bitfld.word 0x00 12. " STEPSEL ,Step selection" "DST,SRC"
bitfld.word 0x00 11. " DSTINC ,Destination address increment enable" "Disabled,Enabled"
newline
bitfld.word 0x00 10. " SRCINC ,Source address increment enable" "Disabled,Enabled"
bitfld.word 0x00 8.--9. " BEATSIZE ,Beat size" "8-bit,16-bit,32-bit,?..."
bitfld.word 0x00 3.--4. " BLOCKACT ,Block action" "No action,Int,Suspend,Both"
newline
bitfld.word 0x00 1.--2. " EVOSEL ,Event output selection" "Disabled,Block,,Beat"
bitfld.word 0x00 0. " VALID ,Descriptor valid" "Not valid,Valid"
line.word 0x02 "BTCNT,Block Transfer Count"
group.long 0x04++0x0B
line.long 0x00 "SRCADDR,Transfer Source Address"
line.long 0x04 "DSTADDR,Transfer Destination Address"
line.long 0x08 "DESCADDR,Next Descriptor Address"
width 0x0B
tree.end
tree "Write-back Memory Section"
base ad:(((d.l(ad:0x41004800+0x38))&0xFFFFFFFF)+(((d.b(ad:0x41004800+0x3F))&0x0F))*0x10)
width 10.
group.word 0x00++0x03
line.word 0x00 "BTCTRL,Block Transfer Control"
bitfld.word 0x00 13.--15. " STEPSIZE ,Address increment step size" "1,2,4,8,16,32,64,128"
bitfld.word 0x00 12. " STEPSEL ,Step selection" "DST,SRC"
bitfld.word 0x00 11. " DSTINC ,Destination address increment enable" "Disabled,Enabled"
newline
bitfld.word 0x00 10. " SRCINC ,Source address increment enable" "Disabled,Enabled"
bitfld.word 0x00 8.--9. " BEATSIZE ,Beat size" "8-bit,16-bit,32-bit,?..."
bitfld.word 0x00 3.--4. " BLOCKACT ,Block action" "No action,Int,Suspend,Both"
newline
bitfld.word 0x00 1.--2. " EVOSEL ,Event output selection" "Disabled,Block,,Beat"
bitfld.word 0x00 0. " VALID ,Descriptor valid" "Not valid,Valid"
line.word 0x02 "BTCNT,Block Transfer Count"
group.long 0x04++0x0B
line.long 0x00 "SRCADDR,Transfer Source Address"
line.long 0x04 "DSTADDR,Transfer Destination Address"
line.long 0x08 "DESCADDR,Next Descriptor Address"
width 0x0B
tree.end
tree.end
tree.end
tree "EIC (External Interrupt Controller)"
base ad:0x40001800
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.byte 0x01++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Not busy,Busy"
group.byte 0x02++0x01
line.byte 0x00 "NMICTRL,Non-Maskable Interrupt Control"
bitfld.byte 0x00 3. " NMIFILTEN ,Non-maskable interrupt filter enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " NMISENSE ,Non-maskable interrupt sense" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
line.byte 0x01 "NMIFLAG,Non-Maskable Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " NMI ,Non-maskable interrupt" "No interrupt,Interrupt"
group.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
bitfld.long 0x00 17. " EXTINTEO17 ,External interrupt 17 event output enable" "Disabled,Enabled"
bitfld.long 0x00 16. " EXTINTEO16 ,External interrupt 16 event output enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x00 15. " EXTINTEO15 ,External interrupt 15 event output enable" "Disabled,Enabled"
bitfld.long 0x00 14. " EXTINTEO14 ,External interrupt 14 event output enable" "Disabled,Enabled"
bitfld.long 0x00 13. " EXTINTEO13 ,External interrupt 13 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12. " EXTINTEO12 ,External interrupt 12 event output enable" "Disabled,Enabled"
bitfld.long 0x00 11. " EXTINTEO11 ,External interrupt 11 event output enable" "Disabled,Enabled"
bitfld.long 0x00 10. " EXTINTEO10 ,External interrupt 10 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " EXTINTEO9 ,External interrupt 9 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " EXTINTEO8 ,External interrupt 8 event output enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x00 7. " EXTINTEO7 ,External interrupt 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " EXTINTEO6 ,External interrupt 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " EXTINTEO5 ,External interrupt 5 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " EXTINTEO4 ,External interrupt 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " EXTINTEO3 ,External interrupt 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " EXTINTEO2 ,External interrupt 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " EXTINTEO1 ,External interrupt 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " EXTINTEO0 ,External interrupt 0 event output enable" "Disabled,Enabled"
group.long 0x0C++0x0F
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " EXTINT17 ,External interrupt 17 enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " EXTINT16 ,External interrupt 16 enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " EXTINT15 ,External interrupt 15 enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " EXTINT14 ,External interrupt 14 enable" "Disabled,Enabled"
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " EXTINT13 ,External interrupt 13 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " EXTINT12 ,External interrupt 12 enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " EXTINT11 ,External interrupt 11 enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " EXTINT10 ,External interrupt 10 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " EXTINT9 ,External interrupt 9 enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " EXTINT8 ,External interrupt 8 enable" "Disabled,Enabled"
endif
textline " "
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " EXTINT7 ,External interrupt 7 enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " EXTINT6 ,External interrupt 6 enable" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " EXTINT5 ,External interrupt 5 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " EXTINT4 ,External interrupt 4 enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " EXTINT3 ,External interrupt 3 enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " EXTINT2 ,External interrupt 2 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " EXTINT1 ,External interrupt 1 enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " EXTINT0 ,External interrupt 0 enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
eventfld.long 0x04 17. " EXTINT17 ,External interrupt 17" "No interrupt,Interrupt"
eventfld.long 0x04 16. " EXTINT16 ,External interrupt 16" "No interrupt,Interrupt"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
eventfld.long 0x04 15. " EXTINT15 ,External interrupt 15" "No interrupt,Interrupt"
eventfld.long 0x04 14. " EXTINT14 ,External interrupt 14" "No interrupt,Interrupt"
eventfld.long 0x04 13. " EXTINT13 ,External interrupt 13" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 12. " EXTINT12 ,External interrupt 12" "No interrupt,Interrupt"
eventfld.long 0x04 11. " EXTINT11 ,External interrupt 11" "No interrupt,Interrupt"
eventfld.long 0x04 10. " EXTINT10 ,External interrupt 10" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 9. " EXTINT9 ,External interrupt 9" "No interrupt,Interrupt"
eventfld.long 0x04 8. " EXTINT8 ,External interrupt 8" "No interrupt,Interrupt"
endif
textline " "
eventfld.long 0x04 7. " EXTINT7 ,External interrupt 7" "No interrupt,Interrupt"
eventfld.long 0x04 6. " EXTINT6 ,External interrupt 6" "No interrupt,Interrupt"
eventfld.long 0x04 5. " EXTINT5 ,External interrupt 5" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 4. " EXTINT4 ,External interrupt 4" "No interrupt,Interrupt"
eventfld.long 0x04 3. " EXTINT3 ,External interrupt 3" "No interrupt,Interrupt"
eventfld.long 0x04 2. " EXTINT2 ,External interrupt 2" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 1. " EXTINT1 ,External interrupt 1" "No interrupt,Interrupt"
eventfld.long 0x04 0. " EXTINT0 ,External interrupt 0" "No interrupt,Interrupt"
line.long 0x08 "WAKEUPEN,Wake-Up Enable"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
bitfld.long 0x08 17. " WAKEUPEN17 ,External interrupt 17 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 16. " WAKEUPEN16 ,External interrupt 16 Wake-up enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x08 15. " WAKEUPEN15 ,External interrupt 15 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 14. " WAKEUPEN14 ,External interrupt 14 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 13. " WAKEUPEN13 ,External interrupt 13 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 12. " WAKEUPEN12 ,External interrupt 12 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 11. " WAKEUPEN11 ,External interrupt 11 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 10. " WAKEUPEN10 ,External interrupt 10 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 9. " WAKEUPEN9 ,External interrupt 9 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 8. " WAKEUPEN8 ,External interrupt 8 wake-up enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x08 7. " WAKEUPEN7 ,External interrupt 7 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 6. " WAKEUPEN6 ,External interrupt 6 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 5. " WAKEUPEN5 ,External interrupt 5 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 4. " WAKEUPEN4 ,External interrupt 4 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 3. " WAKEUPEN3 ,External interrupt 3 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 2. " WAKEUPEN2 ,External interrupt 2 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 1. " WAKEUPEN1 ,External interrupt 1 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 0. " WAKEUPEN0 ,External interrupt 0 wake-up enable" "Disabled,Enabled"
line.long 0x0C "CONFIG0,Configuration 0"
bitfld.long 0x0C 31. " FILTEN7 ,Filter 7 enable" "Disabled,Enabled"
bitfld.long 0x0C 28.--30. " SENSE7 ,Input sense 7 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 24.--26. " SENSE6 ,Input sense 6 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x0C 20.--22. " SENSE5 ,Input sense 5 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x0C 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x0C 16.--18. " SENSE4 ,Input sense 4 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 12.--14. " SENSE3 ,Input sense 3 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x0C 8.--10. " SENSE2 ,Input sense 2 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x0C 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x0C 4.--6. " SENSE1 ,Input sense 1 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 0.--2. " SENSE0 ,Input sense 0 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
group.long 0x1C++0x03
line.long 0x00 "CONFIG1,Configuration 1"
bitfld.long 0x00 31. " FILTEN15 ,Filter 15 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE15 ,Input sense 15 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24.--26. " SENSE14 ,Input sense 14 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE13 ,Input sense 13 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE12 ,Input sense 12 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " SENSE11 ,Input sense 11 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE10 ,Input sense 10 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE9 ,Input sense 9 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " SENSE8 ,Input sense 8 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
endif
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
group.long 0x20++0x03
line.long 0x00 "CONFIG2,Configuration 2"
bitfld.long 0x00 31. " FILTEN31 ,Filter 31 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE31 ,Input sense 31 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 27. " FILTEN30 ,Filter 30 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24.--26. " SENSE30 ,Input sense 30 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 23. " FILTEN29 ,Filter 29 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE29 ,Input sense 29 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 19. " FILTEN28 ,Filter 28 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE28 ,Input sense 28 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 15. " FILTEN27 ,Filter 27 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " SENSE27 ,Input sense 27 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 11. " FILTEN26 ,Filter 26 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE26 ,Input sense 26 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 7. " FILTEN25 ,Filter 25 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE25 ,Input sense 25 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 3. " FILTEN24 ,Filter 24 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " SENSE24 ,Input sense 24 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
endif
width 0x0B
tree.end
tree "NVMCTRL (Non-Volatile Memory Controller)"
base ad:0x41004000
width 15.
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
hexmask.word.byte 0x00 8.--15. 1. " CMDEX ,Command execution"
hexmask.word.byte 0x00 0.--6. 1. " CMD ,Command"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif (cpuis("ATSAMD20*"))
bitfld.long 0x00 18.--19. " CACHEDIS ,Cache disable - RWW EEPROM/NVM cache" "Yes/No,Yes/Yes,No/No,?..."
else
bitfld.long 0x00 18. " CACHEDIS ,Cache disable" "No,Yes"
endif
newline
bitfld.long 0x00 16.--17. " READMODE ,NVMCTRL read mode" "NO_MISS_PENALTY,LOW_POWER,DETERMINISTIC,?..."
bitfld.long 0x00 8.--9. " SLEEPPRM ,Power reduction mode during sleep" "WAKEONACCESS,WAKEUPINSTANT,,DISABLED"
newline
sif (cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMD20*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 7. " MANW ,Manual write" "Disabled,Enabled"
bitfld.long 0x00 1.--4. " RWS ,NVM read wait states" "0 wait states,1 wait state,2 wait states,3 wait states,4 wait states,5 wait states,6 wait states,7 wait states,8 wait states,9 wait states,10 wait states,11 wait states,12 wait states,13 wait states,14 wait states,15 wait states"
else
rbitfld.long 0x00 7. " MANW ,Manual write" "Disabled,Enabled"
rbitfld.long 0x00 1.--4. " RWS ,NVM read wait states" "0 wait states,1 wait state,2 wait states,3 wait states,4 wait states,5 wait states,6 wait states,7 wait states,8 wait states,9 wait states,10 wait states,11 wait states,12 wait states,13 wait states,14 wait states,15 wait states"
endif
rgroup.long 0x08++0x03
line.long 0x00 "PARAM,NVM Parameter"
sif (cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*"))
hexmask.long.word 0x00 20.--31. 1. " RWWEEP ,Read while write EEPROM emulation area pages"
bitfld.long 0x00 16.--18. " PSZ ,Page size" "8 bytes,16 bytes,32 bytes,64 bytes,128 bytes,256 bytes,512 bytes,1024 bytes"
else
bitfld.long 0x00 16.--18. " PSZ ,Page size" "8 bytes,16 bytes,32 bytes,64 bytes,128 bytes,256 bytes,512 bytes,1024 bytes"
textfld " "
endif
hexmask.long.word 0x00 0.--15. 1. " NVMP ,NVM pages"
group.byte 0x10++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 1. 0x00 1. -0x04 1. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x04 0. " READY ,NVM ready interrupt enable" "Disabled,Enabled"
group.byte 0x14++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x00 1. " ERROR ,Error" "No error,Error"
rbitfld.byte 0x00 0. " READY ,NVM ready" "Not ready,Ready"
group.word 0x18++0x01
line.word 0x00 "STATUS,Status"
rbitfld.word 0x00 8. " SB ,Security bit status" "Inactive,Active"
eventfld.word 0x00 4. " NVME ,NVM error" "No error,Error"
eventfld.word 0x00 3. " LOCKE ,Lock error status" "Not locked,Locked"
newline
eventfld.word 0x00 2. " PROGE ,Programming error status" "No error,Error"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
newline
eventfld.word 0x00 1. " LOAD ,NVM page buffer active loading" "Not loaded,Loaded"
rbitfld.word 0x00 0. " PRM ,Power reduction mode" "Off,On"
else
newline
bitfld.word 0x00 1. " LOAD ,NVM page buffer active loading" "Not loaded,Loaded"
rbitfld.word 0x00 0. " PRM ,Power reduction mode" "Off,On"
endif
sif (cpuis("ATSAML21*")||cpuis("ATSAML22*"))
hgroup.long 0x1C++0x03
hide.long 0x00 "ADDR,Address"
elif (cpuis("ATSAMC20*")||cpuis("ATSAMC21*"))
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--20. 0x01 " ADDR ,NVM address"
elif (cpuis("ATSAMD21*")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--21. 0x01 " ADDR ,NVM address"
else
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--20. 0x01 " ADDR ,NVM address"
endif
rgroup.word 0x20++0x01
line.word 0x00 "LOCK,Lock Section"
bitfld.word 0x00 15. " LOCK[15] ,Region lock 15 bit" "Locked,Not locked"
bitfld.word 0x00 14. " [14] ,Region lock 14 bit" "Locked,Not locked"
bitfld.word 0x00 13. " [13] ,Region lock 13 bit" "Locked,Not locked"
newline
bitfld.word 0x00 12. " [12] ,Region lock 12 bit" "Locked,Not locked"
bitfld.word 0x00 11. " [11] ,Region lock 11 bit" "Locked,Not locked"
bitfld.word 0x00 10. " [10] ,Region lock 10 bit" "Locked,Not locked"
newline
bitfld.word 0x00 9. " [9] ,Region lock 9 bit" "Locked,Not locked"
bitfld.word 0x00 8. " [8] ,Region lock 8 bit" "Locked,Not locked"
bitfld.word 0x00 7. " [7] ,Region lock 7 bit" "Locked,Not locked"
newline
bitfld.word 0x00 6. " [6] ,Region lock 6 bit" "Locked,Not locked"
bitfld.word 0x00 5. " [5] ,Region lock 5 bit" "Locked,Not locked"
bitfld.word 0x00 4. " [4] ,Region lock 4 bit" "Locked,Not locked"
newline
bitfld.word 0x00 3. " [3] ,Region lock 3 bit" "Locked,Not locked"
bitfld.word 0x00 2. " [2] ,Region lock 2 bit" "Locked,Not locked"
bitfld.word 0x00 1. " [1] ,Region lock 1 bit" "Locked,Not locked"
newline
bitfld.word 0x00 0. " [0] ,Region lock 0 bit" "Locked,Not locked"
sif (cpuis("ATSAMC20*")||cpuis("ATSAMC21*"))
rgroup.long 0x28++0x07
line.long 0x00 "PBLDATA0,Page Buffer Load Data 0 Register"
line.long 0x04 "PBLDATA1,Page Buffer Load Data 1 Register"
endif
width 0x0B
tree.end
tree "PORT"
tree "Port A"
base ad:0x41004400
width 13.
sif Cpuis("ATSAMR21G*")
group.long 0x00++0x3
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR31_set/clr ,Port Data Direction 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " DIR30_set/clr ,Port Data Direction 30" "Input,Output"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " DIR28_set/clr ,Port Data Direction 28" "Input,Output"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " DIR27_set/clr ,Port Data Direction 27" "Input,Output"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " DIR25_set/clr ,Port Data Direction 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " DIR24_set/clr ,Port Data Direction 24" "Input,Output"
textline " "
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " DIR23_set/clr ,Port Data Direction 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " DIR22_set/clr ,Port Data Direction 22" "Input,Output"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " DIR25_set/clr ,Port Data Direction 20" "Input,Output"
textline " "
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " DIR19_set/clr ,Port Data Direction 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " DIR18_set/clr ,Port Data Direction 18" "Input,Output"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " DIR17_set/clr ,Port Data Direction 17" "Input,Output"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " DIR16_set/clr ,Port Data Direction 16" "Input,Output"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " DIR15_set/clr ,Port Data Direction 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " DIR14_set/clr ,Port Data Direction 14" "Input,Output"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " DIR13_set/clr ,Port Data Direction 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " DIR12_set/clr ,Port Data Direction 12" "Input,Output"
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " DIR09_set/clr ,Port Data Direction 09" "Input,Output"
textline " "
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " DIR08_set/clr ,Port Data Direction 08" "Input,Output"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " DIR07_set/clr ,Port Data Direction 07" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " DIR06_set/clr ,Port Data Direction 06" "Input,Output"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " DIR05_set/clr ,Port Data Direction 05" "Input,Output"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " DIR04_set/clr ,Port Data Direction 04" "Input,Output"
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " DIR01_set/clr ,Port Data Direction 01" "Input,Output"
textline " "
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " DIR00_set/clr ,Port Data Direction 00" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL31 ,Port Data Direction Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " DIRTGL30 ,Port Data Direction Toggle 30" "Not toggled,Toggled"
bitfld.long 0x00 28. " DIRTGL28 ,Port Data Direction Toggle 28" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 27. " DIRTGL27 ,Port Data Direction Toggle 27" "Not toggled,Toggled"
bitfld.long 0x00 25. " DIRTGL25 ,Port Data Direction Toggle 25" "Not toggled,Toggled"
bitfld.long 0x00 24. " DIRTGL24 ,Port Data Direction Toggle 24" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 23. " DIRTGL23 ,Port Data Direction Toggle 23" "Not toggled,Toggled"
bitfld.long 0x00 22. " DIRTGL22 ,Port Data Direction Toggle 22" "Not toggled,Toggled"
bitfld.long 0x00 20. " DIRTGL20 ,Port Data Direction Toggle 20" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 19. " DIRTGL19 ,Port Data Direction Toggle 19" "Not toggled,Toggled"
bitfld.long 0x00 18. " DIRTGL18 ,Port Data Direction Toggle 18" "Not toggled,Toggled"
bitfld.long 0x00 17. " DIRTGL17 ,Port Data Direction Toggle 17" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 16. " DIRTGL16 ,Port Data Direction Toggle 16" "Not toggled,Toggled"
bitfld.long 0x00 15. " DIRTGL15 ,Port Data Direction Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 14. " DIRTGL14 ,Port Data Direction Toggle 14" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 13. " DIRTGL13 ,Port Data Direction Toggle 13" "Not toggled,Toggled"
bitfld.long 0x00 12. " DIRTGL12 ,Port Data Direction Toggle 12" "Not toggled,Toggled"
bitfld.long 0x00 9. " DIRTGL09 ,Port Data Direction Toggle 09" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 8. " DIRTGL08 ,Port Data Direction Toggle 08" "Not toggled,Toggled"
bitfld.long 0x00 7. " DIRTGL07 ,Port Data Direction Toggle 07" "Not toggled,Toggled"
bitfld.long 0x00 6. " DIRTGL06 ,Port Data Direction Toggle 06" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 5. " DIRTGL05 ,Port Data Direction Toggle 05" "Not toggled,Toggled"
bitfld.long 0x00 4. " DIRTGL04 ,Port Data Direction Toggle 04" "Not toggled,Toggled"
bitfld.long 0x00 1. " DIRTGL01 ,Port Data Direction Toggle 01" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 0. " DIRTGL00 ,Port Data Direction Toggle 00" "Not toggled,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT31_set/clr , Port Data Output Value (Drive/Pull direction) 31" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " OUT30_set/clr ,Port Data Output Value (Drive/Pull direction) 30" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " OUT28_set/clr ,Port Data Output Value (Drive/Pull direction) 28" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " OUT27_set/clr ,Port Data Output Value (Drive/Pull direction) 27" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " OUT25_set/clr ,Port Data Output Value (Drive/Pull direction) 25" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " OUT24_set/clr ,Port Data Output Value (Drive/Pull direction) 24" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " OUT23_set/clr ,Port Data Output Value (Drive/Pull direction) 23" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " OUT22_set/clr ,Port Data Output Value (Drive/Pull direction) 22" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " OUT20_set/clr ,Port Data Output Value (Drive/Pull direction) 20" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " OUT19_set/clr ,Port Data Output Value (Drive/Pull direction) 19" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " OUT18_set/clr ,Port Data Output Value (Drive/Pull direction) 18" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " OUT17_set/clr ,Port Data Output Value (Drive/Pull direction) 17" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " OUT16_set/clr ,Port Data Output Value (Drive/Pull direction) 16" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " OUT15_set/clr ,Port Data Output Value (Drive/Pull direction) 15" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " OUT14_set/clr ,Port Data Output Value (Drive/Pull direction) 14" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " OUT13_set/clr ,Port Data Output Value (Drive/Pull direction) 13" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " OUT12_set/clr ,Port Data Output Value (Drive/Pull direction) 12" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " OUT09_set/clr ,Port Data Output Value (Drive/Pull direction) 09" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " OUT08_set/clr ,Port Data Output Value (Drive/Pull direction) 08" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " OUT07_set/clr ,Port Data Output Value (Drive/Pull direction) 07" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " OUT06_set/clr ,Port Data Output Value (Drive/Pull direction) 06" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " OUT05_set/clr ,Port Data Output Value (Drive/Pull direction) 05" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " OUT04_set/clr ,Port Data Output Value (Drive/Pull direction) 04" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " OUT01_set/clr ,Port Data Output Value (Drive/Pull direction) 01" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " OUT00_set/clr ,Port Data Output Value (Drive/Pull direction) 00" "Low/Pull-down,High/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL ,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL31 , Port Data OUTTGLput Value Toggle 31" "Low,High"
bitfld.long 0x00 30. " OUTTGL30 ,Port Data OUTTGLput Value Toggle 30" "Low,High"
bitfld.long 0x00 28. " OUTTGL28 ,Port Data OUTTGLput Value Toggle 28" "Low,High"
textline " "
bitfld.long 0x00 27. " OUTTGL27 ,Port Data OUTTGLput Value Toggle 27" "Low,High"
bitfld.long 0x00 25. " OUTTGL25 ,Port Data OUTTGLput Value Toggle 25" "Low,High"
bitfld.long 0x00 24. " OUTTGL24 ,Port Data OUTTGLput Value Toggle 24" "Low,High"
textline " "
bitfld.long 0x00 23. " OUTTGL23 ,Port Data OUTTGLput Value Toggle 23" "Low,High"
bitfld.long 0x00 22. " OUTTGL22 ,Port Data OUTTGLput Value Toggle 22" "Low,High"
bitfld.long 0x00 20. " OUTTGL20 ,Port Data OUTTGLput Value Toggle 20" "Low,High"
textline " "
bitfld.long 0x00 19. " OUTTGL19 ,Port Data OUTTGLput Value Toggle 19" "Low,High"
bitfld.long 0x00 18. " OUTTGL18 ,Port Data OUTTGLput Value Toggle 18" "Low,High"
bitfld.long 0x00 17. " OUTTGL17 ,Port Data OUTTGLput Value Toggle 17" "Low,High"
textline " "
bitfld.long 0x00 16. " OUTTGL16 ,Port Data OUTTGLput Value Toggle 16" "Low,High"
bitfld.long 0x00 15. " OUTTGL15 ,Port Data OUTTGLput Value Toggle 15" "Low,High"
bitfld.long 0x00 14. " OUTTGL14 ,Port Data OUTTGLput Value Toggle 14" "Low,High"
textline " "
bitfld.long 0x00 13. " OUTTGL13 ,Port Data OUTTGLput Value Toggle 13" "Low,High"
bitfld.long 0x00 12. " OUTTGL12 ,Port Data OUTTGLput Value Toggle 12" "Low,High"
bitfld.long 0x00 9. " OUTTGL09 ,Port Data OUTTGLput Value Toggle 09" "Low,High"
textline " "
bitfld.long 0x00 8. " OUTTGL08 ,Port Data OUTTGLput Value Toggle 08" "Low,High"
bitfld.long 0x00 7. " OUTTGL07 ,Port Data OUTTGLput Value Toggle 07" "Low,High"
bitfld.long 0x00 6. " OUTTGL06 ,Port Data OUTTGLput Value Toggle 06" "Low,High"
textline " "
bitfld.long 0x00 5. " OUTTGL05 ,Port Data OUTTGLput Value Toggle 05" "Low,High"
bitfld.long 0x00 4. " OUTTGL04 ,Port Data OUTTGLput Value Toggle 04" "Low,High"
bitfld.long 0x00 1. " OUTTGL01 ,Port Data OUTTGLput Value Toggle 01" "Low,High"
textline " "
bitfld.long 0x00 0. " OUTTGL00 ,Port Data OUTTGLput Value Toggle 00" "Low,High"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN31 , Port Data Input Value 31" "Low,High"
bitfld.long 0x00 30. " IN30 ,Port Data Input Value 30" "Low,High"
bitfld.long 0x00 28. " IN28 ,Port Data Input Value 28" "Low,High"
textline " "
bitfld.long 0x00 27. " IN27 ,Port Data Input Value 27" "Low,High"
bitfld.long 0x00 25. " IN25 ,Port Data Input Value 25" "Low,High"
bitfld.long 0x00 24. " IN24 ,Port Data Input Value 24" "Low,High"
textline " "
bitfld.long 0x00 23. " IN23 ,Port Data Input Value 23" "Low,High"
bitfld.long 0x00 22. " IN22 ,Port Data Input Value 22" "Low,High"
bitfld.long 0x00 20. " IN20 ,Port Data Input Value 20" "Low,High"
textline " "
bitfld.long 0x00 19. " IN19 ,Port Data Input Value 19" "Low,High"
bitfld.long 0x00 18. " IN18 ,Port Data Input Value 18" "Low,High"
bitfld.long 0x00 17. " IN17 ,Port Data Input Value 17" "Low,High"
textline " "
bitfld.long 0x00 16. " IN16 ,Port Data Input Value 16" "Low,High"
bitfld.long 0x00 15. " IN15 ,Port Data Input Value 15" "Low,High"
bitfld.long 0x00 14. " IN14 ,Port Data Input Value 14" "Low,High"
textline " "
bitfld.long 0x00 13. " IN13 ,Port Data Input Value 13" "Low,High"
bitfld.long 0x00 12. " IN12 ,Port Data Input Value 12" "Low,High"
bitfld.long 0x00 11. " IN11 ,Port Data Input Value 11" "Low,High"
textline " "
bitfld.long 0x00 10. " IN10 ,Port Data Input Value 10" "Low,High"
bitfld.long 0x00 9. " IN09 ,Port Data Input Value 09" "Low,High"
bitfld.long 0x00 8. " IN08 ,Port Data Input Value 08" "Low,High"
textline " "
bitfld.long 0x00 7. " IN07 ,Port Data Input Value 07" "Low,High"
bitfld.long 0x00 6. " IN06 ,Port Data Input Value 06" "Low,High"
bitfld.long 0x00 5. " IN05 ,Port Data Input Value 05" "Low,High"
textline " "
bitfld.long 0x00 4. " IN04 ,Port Data Input Value 04" "Low,High"
bitfld.long 0x00 1. " IN01 ,Port Data Input Value 01" "Low,High"
bitfld.long 0x00 0. " IN00 ,Port Data Input Value 00" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " SAMPLING31 ,Input Sampling Mode 31" "Disable,Enable"
bitfld.long 0x00 30. " SAMPLING30 ,Input Sampling Mode 30" "Disable,Enable"
bitfld.long 0x00 28. " SAMPLING28 ,Input Sampling Mode 28" "Disable,Enable"
textline " "
bitfld.long 0x00 27. " SAMPLING27 ,Input Sampling Mode 27" "Disable,Enable"
bitfld.long 0x00 25. " SAMPLING25 ,Input Sampling Mode 25" "Disable,Enable"
bitfld.long 0x00 24. " SAMPLING24 ,Input Sampling Mode 24" "Disable,Enable"
textline " "
bitfld.long 0x00 23. " SAMPLING23 ,Input Sampling Mode 23" "Disable,Enable"
bitfld.long 0x00 22. " SAMPLING22 ,Input Sampling Mode 22" "Disable,Enable"
bitfld.long 0x00 20. " SAMPLING20 ,Input Sampling Mode 20" "Disable,Enable"
textline " "
bitfld.long 0x00 19. " SAMPLING19 ,Input Sampling Mode 19" "Disable,Enable"
bitfld.long 0x00 18. " SAMPLING18 ,Input Sampling Mode 18" "Disable,Enable"
bitfld.long 0x00 17. " SAMPLING17 ,Input Sampling Mode 17" "Disable,Enable"
textline " "
bitfld.long 0x00 16. " SAMPLING16 ,Input Sampling Mode 16" "Disable,Enable"
bitfld.long 0x00 15. " SAMPLING15 ,Input Sampling Mode 15" "Disable,Enable"
bitfld.long 0x00 14. " SAMPLING14 ,Input Sampling Mode 14" "Disable,Enable"
textline " "
bitfld.long 0x00 13. " SAMPLING13 ,Input Sampling Mode 13" "Disable,Enable"
bitfld.long 0x00 12. " SAMPLING12 ,Input Sampling Mode 12" "Disable,Enable"
bitfld.long 0x00 11. " SAMPLING11 ,Input Sampling Mode 11" "Disable,Enable"
textline " "
bitfld.long 0x00 10. " SAMPLING10 ,Input Sampling Mode 10" "Disable,Enable"
bitfld.long 0x00 9. " SAMPLING09 ,Input Sampling Mode 09" "Disable,Enable"
bitfld.long 0x00 8. " SAMPLING08 ,Input Sampling Mode 08" "Disable,Enable"
textline " "
bitfld.long 0x00 7. " SAMPLING07 ,Input Sampling Mode 07" "Disable,Enable"
bitfld.long 0x00 6. " SAMPLING06 ,Input Sampling Mode 06" "Disable,Enable"
bitfld.long 0x00 5. " SAMPLING05 ,Input Sampling Mode 05" "Disable,Enable"
textline " "
bitfld.long 0x00 4. " SAMPLING04 ,Input Sampling Mode 04" "Disable,Enable"
bitfld.long 0x00 1. " SAMPLING01 ,Input Sampling Mode 01" "Disable,Enable"
bitfld.long 0x00 0. " SAMPLING00 ,Input Sampling Mode 00" "Disable,Enable"
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 15. " PINMASK[15] ,Pin Mask for Multiple Pin Configuration bit 15." "No change,Change"
bitfld.long 0x00 14. " [14] ,Pin Mask for Multiple Pin Configuration bit 14." "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin Mask for Multiple Pin Configuration bit 13." "No change,Change"
textline " "
bitfld.long 0x00 12. " [12] ,Pin Mask for Multiple Pin Configuration bit 12." "No change,Change"
bitfld.long 0x00 11. " [11] ,Pin Mask for Multiple Pin Configuration bit 11." "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin Mask for Multiple Pin Configuration bit 10." "No change,Change"
textline " "
bitfld.long 0x00 9. " [9] ,Pin Mask for Multiple Pin Configuration bit 9." "No change,Change"
bitfld.long 0x00 8. " [8] ,Pin Mask for Multiple Pin Configuration bit 8." "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin Mask for Multiple Pin Configuration bit 7." "No change,Change"
textline " "
bitfld.long 0x00 6. " [6] ,Pin Mask for Multiple Pin Configuration bit 6." "No change,Change"
bitfld.long 0x00 5. " [5] ,Pin Mask for Multiple Pin Configuration bit 5." "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin Mask for Multiple Pin Configuration bit 4." "No change,Change"
textline " "
bitfld.long 0x00 3. " [3] ,Pin Mask for Multiple Pin Configuration bit 3." "No change,Change"
bitfld.long 0x00 2. " [2] ,Pin Mask for Multiple Pin Configuration bit 2." "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin Mask for Multiple Pin Configuration bit 1." "No change,Change"
textline " "
bitfld.long 0x00 0. " [0] ,Pin Mask for Multiple Pin Configuration bit 0." "No change,Change"
textline ""
width 8.
group.byte 0x30++0x00
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PA01 ,Port A Pin 01 Multiplexing" "EXTINT[1],,,SERCOM1/PAD[1],TCC2/WO0[1],?..."
bitfld.byte 0x00 0.--3. " PA00 ,Port A Pin 00 Multiplexing" ",,,SERCOM1/PAD[0],TCC2/WO0[0],?..."
group.byte 0x32++0x07
line.byte 0x00 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x00 4.--7. " PA05 ,Port A Pin 05 Multiplexing" "EXTINT[5],AIN[5]/AIN[1]/Y[3],,SERCOM0/Pad[1],TCC0/WO[1],?..."
bitfld.byte 0x00 0.--3. " PA04 ,Port A Pin 04 Multiplexing" "EXTINT[4],ADC/VREFB/AIN[4]/AIN[0]/Y[2],,SERCOM0/Pad[0],TCC0/WO[0],?..."
line.byte 0x01 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x01 4.--7. " PA07 ,Port A Pin 07 Multiplexing" "EXTINT[7],AIN[7]/AIN[3]/Y[5],,SERCOM0/PAD[3],TCC1/WO[1],?..."
bitfld.byte 0x01 0.--3. " PA06 ,Port A Pin 06 Multiplexing" "EXTINT[6],AIN[6]/AIN[2]/Y[4],,SERCOM0/PAD[2],TCC1/WO[0],?..."
line.byte 0x02 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x02 4.--7. " PA09 ,Port A Pin 09 Multiplexing" "EXTINT[9],AIN[17]/X[1],SERCOM0/PAD[1],SERCOM2/PAD[1],TCC0/WO[1],FECTRL[1],?..."
bitfld.byte 0x02 0.--3. " PA08 ,Port A Pin 08 Multiplexing" "NMI,AIN[16]/X[0],SERCOM0/PAD[0],SERCOM2/PAD[0],TCC0/WO[0],FECTRL[0],?..."
line.byte 0x03 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x03 4.--7. " PA11 ,Port A Pin 11 Internal Multiplexing" "EXTINT[10],?..."
bitfld.byte 0x03 0.--3. " PA10 ,Port A Pin 10 Internal Multiplexing" "EXTINT[11],?..."
line.byte 0x04 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x04 4.--7. " PA13 ,Port A Pin 13 Multiplexing" "EXTINT[13],,SERCOM2/PAD[1],,TCC2/WO[1],FECTRL[3],,AC/CMP[1],?..."
bitfld.byte 0x04 0.--3. " PA12 ,Port A Pin 12 Multiplexing" "EXTINT[12],,SERCOM2/PAD[0],,TCC2/WO[0],FECTRL[2],,AC/CMP[0],?..."
line.byte 0x05 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x05 4.--7. " PA15 ,Port A Pin 15 Multiplexing" "EXTINT[15],,SERCOM2/PAD[3],,TC3/WO[1],FECTRL[5],,GCLK_IO[1],?..."
bitfld.byte 0x05 0.--3. " PA14 ,Port A Pin 14 Multiplexing" "EXTINT[14],,SERCOM2/PAD[2],,TC3/WO[0],FECTRL[4],,GCLK_IO[0],?..."
line.byte 0x06 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x06 4.--7. " PA17 ,Port A Pin 17 Multiplexing" "EXTINT[1],X[5],SERCOM1/PAD[1],SERCOM3/PAD[1],TCC2/WO[1],TCC0/WO[1],,GCLK_IO[3],?..."
bitfld.byte 0x06 0.--3. " PA16 ,Port A Pin 16 Multiplexing" ",X[4],SERCOM1/PAD[0],SERCOM3/PAD[0],TCC2/WO[0],TCC0/WO[0],,GCLK_IO[2],?..."
line.byte 0x07 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x07 4.--7. " PA19 ,Port A Pin 19 Multiplexing" "EXTINT[3],X[7],SERCOM1/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC0/WO[3],,AC/CMP[1],?..."
bitfld.byte 0x07 0.--3. " PA18 ,Port A Pin 18 Multiplexing" "EXTINT[2],X[6],SERCOM1/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC0/WO[2],,AC/CMP[0],?..."
group.byte 0x3A++0x04
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PA23 ,Port A Pin 23 Multiplexing" "EXTINT[7],X[11],SERCOM3/PAD[1],SERCOM5/PAD[1],TC4/WO[1],TCC0/WO[5],,GCLK_IO[7],?..."
bitfld.byte 0x00 0.--3. " PA22 ,Port A Pin 22 Multiplexing" "EXTINT[6],X[10],SERCOM3/PAD[0],SERCOM5/PAD[0],TC4/WO[0],TCC0/WO[4],,GCLK_IO[6],?..."
line.byte 0x01 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x01 4.--7. " PA25 ,Port A Pin 25 Multiplexing" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC5/WO[1],TCC1/WO[3],USB_DP,?..."
bitfld.byte 0x01 0.--3. " PA24 ,Port A Pin 24 Multiplexing" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC5/WO[0],TCC1/WO[2],USB_DM,?..."
line.byte 0x02 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x02 4.--7. " PA27 ,Port A Pin 27 Multiplexing" "EXTINT[15],,,,,SERCOM3/PAD[0],,GCLK_IO[0],?..."
line.byte 0x03 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x03 0.--3. " PA28 ,Port A Pin 28 Multiplexing" "EXTINT[8],,,,,SERCOM3/PAD[1],,GCLK_IO[0],?..."
line.byte 0x04 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x04 4.--7. " PA31 ,Port A Pin 31 Multiplexing" "EXTINT[11],,,SERCOM5/PAD[3],TCC1/WO[0],?..."
bitfld.byte 0x04 0.--3. " PA30 ,Port A Pin 30 Multiplexing" "EXTINT[10],,,SERCOM1/PAD[2],TCC1/WO[1],,SWCLK,GCLK_IO[0]?..."
textline ""
width 10.
group.byte 0x40++0x00
line.byte 0x00 "PINCFG0,Pin Configuration 0"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 0" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 0" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 0" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 0" "Disabled,Enabled"
group.byte 0x41++0x00
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 1" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 1" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 1" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 1" "Disabled,Enabled"
group.byte 0x44++0x00
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 4" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 4" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 4" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 4" "Disabled,Enabled"
group.byte 0x45++0x00
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 5" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 5" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 5" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 5" "Disabled,Enabled"
group.byte 0x46++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 6" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 6" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 6" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 6" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 7" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 7" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 7" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 7" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 8" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 8" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 8" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 8" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 9" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 9" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 9" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 9" "Disabled,Enabled"
group.byte 0x4A++0x00
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 10" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 10" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 10" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 10" "Disabled,Enabled"
group.byte 0x4B++0x00
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 11" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 11" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 11" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 11" "Disabled,Enabled"
group.byte 0x4C++0x00
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 12" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 12" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 12" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 12" "Disabled,Enabled"
group.byte 0x4D++0x00
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 13" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 13" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 13" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 13" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 14" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 14" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 14" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 14" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 15" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 15" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 16" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 16" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 17" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 17" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 17" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 17" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 18" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 18" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 19" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 19" "Disabled,Enabled"
group.byte 0x56++0x00
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 22" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 22" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 22" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 22" "Disabled,Enabled"
group.byte 0x57++0x00
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 23" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 23" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 23" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 23" "Disabled,Enabled"
group.byte 0x58++0x00
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 24" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 24" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 24" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 24" "Disabled,Enabled"
group.byte 0x59++0x00
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 25" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 25" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 25" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 25" "Disabled,Enabled"
group.byte 0x5B++0x00
line.byte 0x00 "PINCFG27,Pin Configuration 27"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 27" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 27" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 27" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 27" "Disabled,Enabled"
group.byte 0x5C++0x00
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 28" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 28" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 28" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 28" "Disabled,Enabled"
group.byte 0x5E++0x00
line.byte 0x00 "PINCFG30,Pin Configuration 30"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 30" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 30" "Disabled,Enabled"
group.byte 0x5F++0x00
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 31" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 31" "Disabled,Enabled"
else
width 13.
group.long 0x00++0x3
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR31_set/clr ,Port Data Direction 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " DIR30_set/clr ,Port Data Direction 30" "Input,Output"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " DIR28_set/clr ,Port Data Direction 28" "Input,Output"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " DIR27_set/clr ,Port Data Direction 27" "Input,Output"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " DIR25_set/clr ,Port Data Direction 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " DIR24_set/clr ,Port Data Direction 24" "Input,Output"
textline " "
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " DIR19_set/clr ,Port Data Direction 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " DIR18_set/clr ,Port Data Direction 18" "Input,Output"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " DIR17_set/clr ,Port Data Direction 17" "Input,Output"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " DIR16_set/clr ,Port Data Direction 16" "Input,Output"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " DIR15_set/clr ,Port Data Direction 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " DIR14_set/clr ,Port Data Direction 14" "Input,Output"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " DIR09_set/clr ,Port Data Direction 09" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " DIR08_set/clr ,Port Data Direction 08" "Input,Output"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " DIR07_set/clr ,Port Data Direction 07" "Input,Output"
textline " "
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " DIR06_set/clr ,Port Data Direction 06" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL31 ,Port Data Direction Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " DIRTGL30 ,Port Data Direction Toggle 30" "Not toggled,Toggled"
bitfld.long 0x00 28. " DIRTGL28 ,Port Data Direction Toggle 28" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 27. " DIRTGL27 ,Port Data Direction Toggle 27" "Not toggled,Toggled"
bitfld.long 0x00 25. " DIRTGL25 ,Port Data Direction Toggle 25" "Not toggled,Toggled"
bitfld.long 0x00 24. " DIRTGL24 ,Port Data Direction Toggle 24" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 19. " DIRTGL19 ,Port Data Direction Toggle 19" "Not toggled,Toggled"
bitfld.long 0x00 18. " DIRTGL18 ,Port Data Direction Toggle 18" "Not toggled,Toggled"
bitfld.long 0x00 17. " DIRTGL17 ,Port Data Direction Toggle 17" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 16. " DIRTGL16 ,Port Data Direction Toggle 16" "Not toggled,Toggled"
bitfld.long 0x00 15. " DIRTGL15 ,Port Data Direction Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 14. " DIRTGL14 ,Port Data Direction Toggle 14" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 9. " DIRTGL09 ,Port Data Direction Toggle 09" "Not toggled,Toggled"
bitfld.long 0x00 8. " DIRTGL08 ,Port Data Direction Toggle 08" "Not toggled,Toggled"
bitfld.long 0x00 7. " DIRTGL07 ,Port Data Direction Toggle 07" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 6. " DIRTGL06 ,Port Data Direction Toggle 06" "Not toggled,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT31_set/clr , Port Data Output Value (Drive/Pull direction) 31" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " OUT30_set/clr ,Port Data Output Value (Drive/Pull direction) 30" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " OUT28_set/clr ,Port Data Output Value (Drive/Pull direction) 28" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " OUT27_set/clr ,Port Data Output Value (Drive/Pull direction) 27" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " OUT25_set/clr ,Port Data Output Value (Drive/Pull direction) 25" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " OUT24_set/clr ,Port Data Output Value (Drive/Pull direction) 24" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " OUT19_set/clr ,Port Data Output Value (Drive/Pull direction) 19" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " OUT18_set/clr ,Port Data Output Value (Drive/Pull direction) 18" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " OUT17_set/clr ,Port Data Output Value (Drive/Pull direction) 17" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " OUT16_set/clr ,Port Data Output Value (Drive/Pull direction) 16" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " OUT15_set/clr ,Port Data Output Value (Drive/Pull direction) 15" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " OUT14_set/clr ,Port Data Output Value (Drive/Pull direction) 14" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " OUT09_set/clr ,Port Data Output Value (Drive/Pull direction) 09" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " OUT08_set/clr ,Port Data Output Value (Drive/Pull direction) 08" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " OUT07_set/clr ,Port Data Output Value (Drive/Pull direction) 07" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " OUT06_set/clr ,Port Data Output Value (Drive/Pull direction) 06" "Low/Pull-down,High/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL ,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL31 , Port Data OUTTGLput Value Toggle 31" "Low,High"
bitfld.long 0x00 30. " OUTTGL30 ,Port Data OUTTGLput Value Toggle 30" "Low,High"
bitfld.long 0x00 28. " OUTTGL28 ,Port Data OUTTGLput Value Toggle 28" "Low,High"
textline " "
bitfld.long 0x00 27. " OUTTGL27 ,Port Data OUTTGLput Value Toggle 27" "Low,High"
bitfld.long 0x00 25. " OUTTGL25 ,Port Data OUTTGLput Value Toggle 25" "Low,High"
bitfld.long 0x00 24. " OUTTGL24 ,Port Data OUTTGLput Value Toggle 24" "Low,High"
textline " "
bitfld.long 0x00 19. " OUTTGL19 ,Port Data OUTTGLput Value Toggle 19" "Low,High"
bitfld.long 0x00 18. " OUTTGL18 ,Port Data OUTTGLput Value Toggle 18" "Low,High"
bitfld.long 0x00 17. " OUTTGL17 ,Port Data OUTTGLput Value Toggle 17" "Low,High"
textline " "
bitfld.long 0x00 16. " OUTTGL16 ,Port Data OUTTGLput Value Toggle 16" "Low,High"
bitfld.long 0x00 15. " OUTTGL15 ,Port Data OUTTGLput Value Toggle 15" "Low,High"
bitfld.long 0x00 14. " OUTTGL14 ,Port Data OUTTGLput Value Toggle 14" "Low,High"
textline " "
bitfld.long 0x00 9. " OUTTGL09 ,Port Data OUTTGLput Value Toggle 09" "Low,High"
bitfld.long 0x00 8. " OUTTGL08 ,Port Data OUTTGLput Value Toggle 08" "Low,High"
bitfld.long 0x00 7. " OUTTGL07 ,Port Data OUTTGLput Value Toggle 07" "Low,High"
textline " "
bitfld.long 0x00 6. " OUTTGL06 ,Port Data OUTTGLput Value Toggle 06" "Low,High"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN31 , Port Data Input Value 31" "Low,High"
bitfld.long 0x00 30. " IN30 ,Port Data Input Value 30" "Low,High"
bitfld.long 0x00 28. " IN28 ,Port Data Input Value 28" "Low,High"
textline " "
bitfld.long 0x00 27. " IN27 ,Port Data Input Value 27" "Low,High"
bitfld.long 0x00 25. " IN25 ,Port Data Input Value 25" "Low,High"
bitfld.long 0x00 24. " IN24 ,Port Data Input Value 24" "Low,High"
textline " "
bitfld.long 0x00 19. " IN19 ,Port Data Input Value 19" "Low,High"
bitfld.long 0x00 18. " IN18 ,Port Data Input Value 18" "Low,High"
bitfld.long 0x00 17. " IN17 ,Port Data Input Value 17" "Low,High"
textline " "
bitfld.long 0x00 16. " IN16 ,Port Data Input Value 16" "Low,High"
bitfld.long 0x00 15. " IN15 ,Port Data Input Value 15" "Low,High"
bitfld.long 0x00 14. " IN14 ,Port Data Input Value 14" "Low,High"
textline " "
bitfld.long 0x00 9. " IN09 ,Port Data Input Value 09" "Low,High"
bitfld.long 0x00 8. " IN08 ,Port Data Input Value 08" "Low,High"
bitfld.long 0x00 7. " IN07 ,Port Data Input Value 07" "Low,High"
textline " "
bitfld.long 0x00 6. " IN06 ,Port Data Input Value 06" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " SAMPLING31 , Input Sampling Mode 31" "Disable,Enable"
bitfld.long 0x00 30. " SAMPLING30 ,Input Sampling Mode 30" "Disable,Enable"
bitfld.long 0x00 28. " SAMPLING28 ,Input Sampling Mode 28" "Disable,Enable"
textline " "
bitfld.long 0x00 27. " SAMPLING27 ,Input Sampling Mode 27" "Disable,Enable"
bitfld.long 0x00 25. " SAMPLING25 ,Input Sampling Mode 25" "Disable,Enable"
bitfld.long 0x00 24. " SAMPLING24 ,Input Sampling Mode 24" "Disable,Enable"
textline " "
bitfld.long 0x00 19. " SAMPLING19 ,Input Sampling Mode 19" "Disable,Enable"
bitfld.long 0x00 18. " SAMPLING18 ,Input Sampling Mode 18" "Disable,Enable"
bitfld.long 0x00 17. " SAMPLING17 ,Input Sampling Mode 17" "Disable,Enable"
textline " "
bitfld.long 0x00 16. " SAMPLING16 ,Input Sampling Mode 16" "Disable,Enable"
bitfld.long 0x00 15. " SAMPLING15 ,Input Sampling Mode 15" "Disable,Enable"
bitfld.long 0x00 14. " SAMPLING14 ,Input Sampling Mode 14" "Disable,Enable"
textline " "
bitfld.long 0x00 9. " SAMPLING09 ,Input Sampling Mode 09" "Disable,Enable"
bitfld.long 0x00 8. " SAMPLING08 ,Input Sampling Mode 08" "Disable,Enable"
bitfld.long 0x00 7. " SAMPLING07 ,Input Sampling Mode 07" "Disable,Enable"
textline " "
bitfld.long 0x00 6. " SAMPLING06 ,Input Sampling Mode 06" "Disable,Enable"
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 15. " PINMASK[15] ,Pin Mask for Multiple Pin Configuration bit 15." "No change,Change"
bitfld.long 0x00 14. " [14] ,Pin Mask for Multiple Pin Configuration bit 14." "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin Mask for Multiple Pin Configuration bit 13." "No change,Change"
textline " "
bitfld.long 0x00 12. " [12] ,Pin Mask for Multiple Pin Configuration bit 12." "No change,Change"
bitfld.long 0x00 11. " [11] ,Pin Mask for Multiple Pin Configuration bit 11." "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin Mask for Multiple Pin Configuration bit 10." "No change,Change"
textline " "
bitfld.long 0x00 9. " [9] ,Pin Mask for Multiple Pin Configuration bit 9." "No change,Change"
bitfld.long 0x00 8. " [8] ,Pin Mask for Multiple Pin Configuration bit 8." "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin Mask for Multiple Pin Configuration bit 7." "No change,Change"
textline " "
bitfld.long 0x00 6. " [6] ,Pin Mask for Multiple Pin Configuration bit 6." "No change,Change"
bitfld.long 0x00 5. " [5] ,Pin Mask for Multiple Pin Configuration bit 5." "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin Mask for Multiple Pin Configuration bit 4." "No change,Change"
textline " "
bitfld.long 0x00 3. " [3] ,Pin Mask for Multiple Pin Configuration bit 3." "No change,Change"
bitfld.long 0x00 2. " [2] ,Pin Mask for Multiple Pin Configuration bit 2." "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin Mask for Multiple Pin Configuration bit 1." "No change,Change"
textline " "
bitfld.long 0x00 0. " [0] ,Pin Mask for Multiple Pin Configuration bit 0." "No change,Change"
width 8
group.byte 0x33++0x01
line.byte 0x00 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x00 4.--7. " PA07 ,Port A Pin 07 Multiplexing" "EXTINT[7],AIN[7]/AIN[3]/Y[5],,SERCOM0/PAD[3],TCC1/WO[1],?..."
bitfld.byte 0x00 0.--3. " PA06 ,Port A Pin 06 Multiplexing" "EXTINT[6],AIN[6]/AIN[2]/Y[4],,SERCOM0/PAD[2],TCC1/WO[0],?..."
line.byte 0x01 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x01 4.--7. " PA09 ,Port A Pin 09 Multiplexing" "EXTINT[9],AIN[17]/X[1],SERCOM0/PAD[1],SERCOM2/PAD[1],TCC0/WO[1],FECTRL[1],?..."
bitfld.byte 0x01 0.--3. " PA08 ,Port A Pin 08 Multiplexing" "NMI,AIN[16]/X[0],SERCOM0/PAD[0],SERCOM2/PAD[0],TCC0/WO[0],FECTRL[0],?..."
group.byte 0x37++0x02
line.byte 0x00 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x00 4.--7. " PA15 ,Port A Pin 15 Multiplexing" "EXTINT[15],,SERCOM2/PAD[3],,TC3/WO[1],FECTRL[5],,GCLK_IO[1],?..."
bitfld.byte 0x00 0.--3. " PA14 ,Port A Pin 14 Multiplexing" "EXTINT[14],,SERCOM2/PAD[2],,TC3/WO[0],FECTRL[4],,GCLK_IO[0],?..."
line.byte 0x01 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x01 4.--7. " PA17 ,Port A Pin 17 Multiplexing" "EXTINT[1],X[5],SERCOM1/PAD[1],SERCOM3/PAD[1],TCC2/WO[1],TCC0/WO[1],,GCLK_IO[3],?..."
bitfld.byte 0x01 0.--3. " PA16 ,Port A Pin 16 Multiplexing" ",X[4],SERCOM1/PAD[0],SERCOM3/PAD[0],TCC2/WO[0],TCC0/WO[0],,GCLK_IO[2],?..."
line.byte 0x02 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x02 4.--7. " PA19 ,Port A Pin 19 Multiplexing" "EXTINT[3],X[7],SERCOM1/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC0/WO[3],,AC/CMP[1],?..."
bitfld.byte 0x02 0.--3. " PA18 ,Port A Pin 18 Multiplexing" "EXTINT[2],X[6],SERCOM1/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC0/WO[2],,AC/CMP[0],?..."
group.byte 0x3B++0x03
line.byte 0x00 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x00 4.--7. " PA25 ,Port A Pin 25 Multiplexing" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC5/WO[1],TCC1/WO[3],USB_DP,?..."
bitfld.byte 0x00 0.--3. " PA24 ,Port A Pin 24 Multiplexing" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC5/WO[0],TCC1/WO[2],USB_DM,?..."
line.byte 0x01 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x01 4.--7. " PA27 ,Port A Pin 27 Multiplexing" "EXTINT[15],,,,,SERCOM3/PAD[0],,GCLK_IO[0],?..."
line.byte 0x02 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x02 0.--3. " PA28 ,Port A Pin 28 Multiplexing" "EXTINT[8],,,,,SERCOM3/PAD[1],,GCLK_IO[0],?..."
line.byte 0x03 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x03 4.--7. " PA31 ,Port A Pin 31 Multiplexing" "EXTINT[11],,,SERCOM1/PAD[3],TCC1/WO[0],,SWCLK,GCLK_IO[0],?..."
bitfld.byte 0x03 0.--3. " PA30 ,Port A Pin 30 Multiplexing" "EXTINT[10],,,SERCOM1/PAD[2],TCC1/WO[1],?..."
textline ""
width 10.
group.byte 0x46++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 6" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 6" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 6" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 6" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 7" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 7" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 7" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 7" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 8" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 8" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 8" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 8" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 9" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 9" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 9" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 9" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 14" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 14" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 14" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 14" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 15" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 15" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 16" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 16" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 17" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 17" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 17" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 17" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 18" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 18" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 19" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 19" "Disabled,Enabled"
group.byte 0x58++0x00
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 24" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 24" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 24" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 24" "Disabled,Enabled"
group.byte 0x59++0x00
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 25" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 25" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 25" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 25" "Disabled,Enabled"
group.byte 0x5B++0x00
line.byte 0x00 "PINCFG27,Pin Configuration 27"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 27" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 27" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 27" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 27" "Disabled,Enabled"
group.byte 0x5C++0x00
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 28" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 28" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 28" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 28" "Disabled,Enabled"
group.byte 0x5E++0x00
line.byte 0x00 "PINCFG30,Pin Configuration 30"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 30" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 30" "Disabled,Enabled"
group.byte 0x5F++0x00
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 31" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 31" "Disabled,Enabled"
endif
width 0xb
tree.end
tree "Port B"
base ad:0x41004400
width 13.
group.long 0x00++0x3
line.long 0x00 "DIR_SET/CLR,Data Direction"
sif Cpuis("ATSAMR21G*")
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR31_set/clr ,Port Data Direction 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " DIR30_set/clr ,Port Data Direction 30" "Input,Output"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " DIR23_set/clr ,Port Data Direction 23" "Input,Output"
textline " "
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " DIR22_set/clr ,Port Data Direction 22" "Input,Output"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " DIR15_set/clr ,Port Data Direction 15" "Input,Output"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " DIR03_set/clr ,Port Data Direction 03" "Input,Output"
textline " "
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " DIR02_set/clr ,Port Data Direction 02" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " DIR00_set/clr ,Port Data Direction 00" "Input,Output"
else
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR31_set/clr ,Port Data Direction 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " DIR30_set/clr ,Port Data Direction 30" "Input,Output"
textline " "
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " DIR15_set/clr ,Port Data Direction 15" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " DIR00_set/clr ,Port Data Direction 00" "Input,Output"
endif
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
sif Cpuis("ATSAMR21G*")
bitfld.long 0x00 31. " DIRTGL31 ,Port Data Direction Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " DIRTGL30 ,Port Data Direction Toggle 30" "Not toggled,Toggled"
bitfld.long 0x00 23. " DIRTGL23 ,Port Data Direction Toggle 23" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 22. " DIRTGL22 ,Port Data Direction Toggle 22" "Not toggled,Toggled"
bitfld.long 0x00 15. " DIRTGL15 ,Port Data Direction Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 3. " DIRTGL03 ,Port Data Direction Toggle 03" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 2. " DIRTGL02 ,Port Data Direction Toggle 02" "Not toggled,Toggled"
bitfld.long 0x00 0. " DIRTGL00 ,Port Data Direction Toggle 00" "Not toggled,Toggled"
else
bitfld.long 0x00 31. " DIRTGL31 ,Port Data Direction Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " DIRTGL30 ,Port Data Direction Toggle 30" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 15. " DIRTGL15 ,Port Data Direction Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 0. " DIRTGL00 ,Port Data Direction Toggle 00" "Not toggled,Toggled"
endif
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
sif Cpuis("ATSAMR21G*")
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT31_set/clr ,Port Data Output Value (Drive/Pull direction) 31" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " OUT30_set/clr ,Port Data Output Value (Drive/Pull direction) 30" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " OUT23_set/clr ,Port Data Output Value (Drive/Pull direction) 23" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " OUT22_set/clr ,Port Data Output Value (Drive/Pull direction) 22" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " OUT15_set/clr ,Port Data Output Value (Drive/Pull direction) 15" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " OUT03_set/clr ,Port Data Output Value (Drive/Pull direction) 03" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " OUT02_set/clr ,Port Data Output Value (Drive/Pull direction) 02" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " OUT00_set/clr ,Port Data Output Value (Drive/Pull direction) 00" "Low/Pull-down,High/Pull-up"
else
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT22_set/clr ,Port Data Output Value (Drive/Pull direction) 22" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " OUT22_set/clr ,Port Data Output Value (Drive/Pull direction) 22" "Low/Pull-down,High/Pull-up"
textline " "
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " OUT22_set/clr ,Port Data Output Value (Drive/Pull direction) 22" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " OUT00_set/clr ,Port Data Output Value (Drive/Pull direction) 00" "Low/Pull-down,High/Pull-up"
endif
group.long 0x1C++0x03
line.long 0x00 "OUTTGL ,Data Output Value Toggle"
sif Cpuis("ATSAMR21G*")
bitfld.long 0x00 31. " OUTTGL31 ,Port Data OUTTGLput Value Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " OUTTGL30 ,Port Data OUTTGLput Value Toggle 30" "Not toggled,Toggled"
bitfld.long 0x00 23. " OUTTGL23 ,Port Data OUTTGLput Value Toggle 23" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 22. " OUTTGL22 ,Port Data OUTTGLput Value Toggle 22" "Not toggled,Toggled"
bitfld.long 0x00 15. " OUTTGL15 ,Port Data OUTTGLput Value Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 3. " OUTTGL03 ,Port Data OUTTGLput Value Toggle 03" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 2. " OUTTGL02 ,Port Data OUTTGLput Value Toggle 02" "Not toggled,Toggled"
bitfld.long 0x00 0. " OUTTGL00 ,Port Data OUTTGLput Value Toggle 00" "Not toggled,Toggled"
else
bitfld.long 0x00 31. " OUTTGL31 ,Port Data OUTTGLput Value Toggle 31" "Not toggled,Toggled"
bitfld.long 0x00 30. " OUTTGL30 ,Port Data OUTTGLput Value Toggle 30" "Not toggled,Toggled"
textline " "
bitfld.long 0x00 15. " OUTTGL15 ,Port Data OUTTGLput Value Toggle 15" "Not toggled,Toggled"
bitfld.long 0x00 0. " OUTTGL00 ,Port Data OUTTGLput Value Toggle 00" "Not toggled,Toggled"
endif
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
sif Cpuis("ATSAMR21G*")
bitfld.long 0x00 31. " IN31 ,Port Data Input Value 31" "Low,High"
bitfld.long 0x00 30. " IN30 ,Port Data Input Value 30" "Low,High"
bitfld.long 0x00 23. " IN23 ,Port Data Input Value 23" "Low,High"
textline " "
bitfld.long 0x00 22. " IN22 ,Port Data Input Value 22" "Low,High"
bitfld.long 0x00 15. " IN15 ,Port Data Input Value 15" "Low,High"
bitfld.long 0x00 3. " IN03 ,Port Data Input Value 03" "Low,High"
textline " "
bitfld.long 0x00 2. " IN02 ,Port Data Input Value 02" "Low,High"
bitfld.long 0x00 0. " IN00 ,Port Data Input Value 00" "Low,High"
else
bitfld.long 0x00 31. " IN31 ,Port Data Input Value 31" "Low,High"
bitfld.long 0x00 30. " IN30 ,Port Data Input Value 30" "Low,High"
textline " "
bitfld.long 0x00 15. " IN15 ,Port Data Input Value 15" "Low,High"
bitfld.long 0x00 0. " IN00 ,Port Data Input Value 00" "Low,High"
endif
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
sif Cpuis("ATSAMR21G*")
bitfld.long 0x00 31. " SAMPLING31 ,Input Sampling Mode 31" "Disable,Enable"
bitfld.long 0x00 30. " SAMPLING30 ,Input Sampling Mode 30" "Disable,Enable"
bitfld.long 0x00 23. " SAMPLING23 ,Input Sampling Mode 23" "Disable,Enable"
textline " "
bitfld.long 0x00 22. " SAMPLING22 ,Input Sampling Mode 22" "Disable,Enable"
bitfld.long 0x00 15. " SAMPLING15 ,Input Sampling Mode 15" "Disable,Enable"
bitfld.long 0x00 3. " SAMPLING03 ,Input Sampling Mode 03" "Disable,Enable"
textline " "
bitfld.long 0x00 2. " SAMPLING02 ,Input Sampling Mode 02" "Disable,Enable"
bitfld.long 0x00 0. " SAMPLING00 ,Input Sampling Mode 00" "Disable,Enable"
else
bitfld.long 0x00 31. " SAMPLING31 ,Input Sampling Mode 31" "Disable,Enable"
bitfld.long 0x00 30. " SAMPLING30 ,Input Sampling Mode 30" "Disable,Enable"
textline " "
bitfld.long 0x00 15. " SAMPLING15 ,Input Sampling Mode 15" "Disable,Enable"
bitfld.long 0x00 0. " SAMPLING00 ,Input Sampling Mode 00" "Disable,Enable"
endif
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 15. " PINMASK[15] ,Pin Mask for Multiple Pin Configuration bit 15." "No change,Change"
bitfld.long 0x00 14. " [14] ,Pin Mask for Multiple Pin Configuration bit 14." "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin Mask for Multiple Pin Configuration bit 13." "No change,Change"
textline " "
bitfld.long 0x00 12. " [12] ,Pin Mask for Multiple Pin Configuration bit 12." "No change,Change"
bitfld.long 0x00 11. " [11] ,Pin Mask for Multiple Pin Configuration bit 11." "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin Mask for Multiple Pin Configuration bit 10." "No change,Change"
textline " "
bitfld.long 0x00 9. " [9] ,Pin Mask for Multiple Pin Configuration bit 9." "No change,Change"
bitfld.long 0x00 8. " [8] ,Pin Mask for Multiple Pin Configuration bit 8." "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin Mask for Multiple Pin Configuration bit 7." "No change,Change"
textline " "
bitfld.long 0x00 6. " [6] ,Pin Mask for Multiple Pin Configuration bit 6." "No change,Change"
bitfld.long 0x00 5. " [5] ,Pin Mask for Multiple Pin Configuration bit 5." "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin Mask for Multiple Pin Configuration bit 4." "No change,Change"
textline " "
bitfld.long 0x00 3. " [3] ,Pin Mask for Multiple Pin Configuration bit 3." "No change,Change"
bitfld.long 0x00 2. " [2] ,Pin Mask for Multiple Pin Configuration bit 2." "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin Mask for Multiple Pin Configuration bit 1." "No change,Change"
textline " "
bitfld.long 0x00 0. " [0] ,Pin Mask for Multiple Pin Configuration bit 0." "No change,Change"
textline ""
width 8.
group.byte 0x30++0x00
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 0.--3. " PB00 ,Port B Pin 00 Multiplexing" "EXTINT[0],?..."
sif Cpuis("ATSAMR21G*")
group.byte 0x31++0x00
line.byte 0x00 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x00 4.--7. " PB03 ,Port B Pin 03 Multiplexing" "EXTINT[3],AIN[11]/Y[9],,SERCOM5/PAD[1],?..."
bitfld.byte 0x00 0.--3. " PB02 ,Port B Pin 02 Multiplexing" "EXTINT[2],AIN[10]/Y[8],,SERCOM5/PAD[0],?..."
endif
group.byte 0x38++0x00
line.byte 0x00 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x00 4.--7. " PB17 ,Port B Pin 17 Multiplexing" "EXTINT[1],?..."
bitfld.byte 0x00 0.--3. " PB16 ,Port B Pin 16 Multiplexing" "EXTINT[0],?..."
sif Cpuis("ATSAMR21G*")
group.byte 0x3B++0x00
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PB23 ,Port B Pin 23 Multiplexing" "EXTINT[7],,,SERCOM5/PAD[3],,,,GCLK_IO[1],?..."
bitfld.byte 0x00 0.--3. " PB22 ,Port B Pin 22 Multiplexing" "EXTINT[6],,,SERCOM5/PAD[2],,,,GCLK_IO[0],?..."
endif
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " PB31 ,Port B Pin 31 Multiplexing" ",,,,,SERCOM4/PAD[2],?..."
bitfld.byte 0x00 0.--3. " PB30 ,Port B Pin 30 Multiplexing" ",,,,,SERCOM4/PAD[1],?..."
textline ""
width 10.
; pins available only for ATSAMR21G*
group.byte 0x40++0x00
line.byte 0x00 "PINCFG0,Pin Configuration 0"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 0" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 0" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 0" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 0" "Disabled,Enabled"
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
sif Cpuis("ATSAMR21G*")
group.byte 0x42++0x00
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 2" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 2" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 2" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 2" "Disabled,Enabled"
endif
; pins available for ATSAMR21*
; pins available only for ATSAMR21G*
sif Cpuis("ATSAMR21G*")
group.byte 0x43++0x00
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 3" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 3" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 3" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 3" "Disabled,Enabled"
endif
; pins available for ATSAMR21*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 15" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 15" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 15" "Disabled,Enabled"
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
sif Cpuis("ATSAMR21G*")
group.byte 0x56++0x00
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 22" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 22" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 22" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 22" "Disabled,Enabled"
endif
; pins available for ATSAMR21*
; pins available only for ATSAMR21G*
sif Cpuis("ATSAMR21G*")
group.byte 0x57++0x00
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 23" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 23" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 23" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 23" "Disabled,Enabled"
endif
; pins available for ATSAMR21*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
; pins available only for ATSAMR21G*
group.byte 0x5E++0x00
line.byte 0x00 "PINCFG30,Pin Configuration 30"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 30" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 30" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 30" "Disabled,Enabled"
; pins available only for ATSAMR21G*
group.byte 0x5F++0x00
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 31" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 31" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 31" "Disabled,Enabled"
width 0xb
tree.end
tree "Port C"
base ad:0x41004400
width 13.
group.long 0x00++0x3
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " DIR19_set/clr ,Port Data Direction 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " DIR18_set/clr ,Port Data Direction 18" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " DIR16_set/clr ,Port Data Direction 16" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 19. " DIRTGL19 ,Port Data Direction Toggle 19" "Not toggled,Toggled"
bitfld.long 0x00 18. " DIRTGL18 ,Port Data Direction Toggle 18" "Not toggled,Toggled"
bitfld.long 0x00 16. " DIRTGL16 ,Port Data Direction Toggle 16" "Not toggled,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " OUT19_set/clr ,Port Data Output Value (Drive/Pull direction) 19" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " OUT18_set/clr ,Port Data Output Value (Drive/Pull direction) 18" "Low/Pull-down,High/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " OUT16_set/clr ,Port Data Output Value (Drive/Pull direction) 16" "Low/Pull-down,High/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL ,Data Output Value Toggle"
bitfld.long 0x00 19. " OUTTGL19 ,Port Data OUTTGLput Value Toggle 19" "Not toggled,Toggled"
bitfld.long 0x00 18. " OUTTGL18 ,Port Data OUTTGLput Value Toggle 18" "Not toggled,Toggled"
bitfld.long 0x00 16. " OUTTGL16 ,Port Data OUTTGLput Value Toggle 16" "Not toggled,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 19. " IN19 ,Port Data Input Value 19" "Low,High"
bitfld.long 0x00 18. " IN18 ,Port Data Input Value 18" "Low,High"
bitfld.long 0x00 16. " IN16 ,Port Data Input Value 16" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 19. " SAMPLING19 ,Input Sampling Mode 19" "Disabled,Enabled"
bitfld.long 0x00 18. " SAMPLING18 ,Input Sampling Mode 18" "Disable,Enable"
bitfld.long 0x00 16. " SAMPLING16 ,Input Sampling Mode 16" "Disable,Enable"
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disable,Enable"
textline " "
bitfld.long 0x00 15. " PINMASK[15] ,Pin Mask for Multiple Pin Configuration bit 15." "No change,Change"
bitfld.long 0x00 14. " [14] ,Pin Mask for Multiple Pin Configuration bit 14." "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin Mask for Multiple Pin Configuration bit 13." "No change,Change"
textline " "
bitfld.long 0x00 12. " [12] ,Pin Mask for Multiple Pin Configuration bit 12." "No change,Change"
bitfld.long 0x00 11. " [11] ,Pin Mask for Multiple Pin Configuration bit 11." "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin Mask for Multiple Pin Configuration bit 10." "No change,Change"
textline " "
bitfld.long 0x00 9. " [9] ,Pin Mask for Multiple Pin Configuration bit 9." "No change,Change"
bitfld.long 0x00 8. " [8] ,Pin Mask for Multiple Pin Configuration bit 8." "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin Mask for Multiple Pin Configuration bit 7." "No change,Change"
textline " "
bitfld.long 0x00 6. " [6] ,Pin Mask for Multiple Pin Configuration bit 6." "No change,Change"
bitfld.long 0x00 5. " [5] ,Pin Mask for Multiple Pin Configuration bit 5." "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin Mask for Multiple Pin Configuration bit 4." "No change,Change"
textline " "
bitfld.long 0x00 3. " [3] ,Pin Mask for Multiple Pin Configuration bit 3." "No change,Change"
bitfld.long 0x00 2. " [2] ,Pin Mask for Multiple Pin Configuration bit 2." "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin Mask for Multiple Pin Configuration bit 1." "No change,Change"
textline " "
bitfld.long 0x00 0. " [0] ,Pin Mask for Multiple Pin Configuration bit 0." "No change,Change"
textline ""
width 8.
group.byte 0x38++0x1
line.byte 0x00 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x00 0.--3. " PC16 ,Port C Pin 16 Internal Multiplexing" ",,,,,GCLK/IO[1],?..."
line.byte 0x01 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x01 4.--7. " PC19 ,Port C Pin 19 Internal Multiplexing" ",,,,,SERCOM4/PAD[0],?..."
bitfld.byte 0x01 0.--3. " PC18 ,Port C Pin 18 Internal Multiplexing" ",,,,,SERCOM4/PAD[3],?..."
textline ""
width 10.
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 16" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 16" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 16" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 18" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 18" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 18" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 7. " DRVSTR ,Output Driver Strength Selection for PIN 19" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable for PIN 19" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable for PIN 19" "Disabled,Enabled"
width 0xb
tree.end
tree.end
tree "SERCOM (Serial Communication Interface)"
tree "SERCOM0"
base ad:0x42000800
width 15.
if ((per.l(ad:0x42000800+0x00)&0x1C)==0x00)||((per.l(ad:0x42000800+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42000800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42000800+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x08)||((per.l(ad:0x42000800+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42000800+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
tree "SERCOM1"
base ad:0x42000C00
width 15.
if ((per.l(ad:0x42000C00+0x00)&0x1C)==0x00)||((per.l(ad:0x42000C00+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42000C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42000C00+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x08)||((per.l(ad:0x42000C00+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42000C00+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
tree "SERCOM2"
base ad:0x42001000
width 15.
if ((per.l(ad:0x42001000+0x00)&0x1C)==0x00)||((per.l(ad:0x42001000+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42001000+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42001000+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x08)||((per.l(ad:0x42001000+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001000+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001000+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42001000+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
tree "SERCOM3"
base ad:0x42001400
width 15.
if ((per.l(ad:0x42001400+0x00)&0x1C)==0x00)||((per.l(ad:0x42001400+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42001400+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42001400+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x08)||((per.l(ad:0x42001400+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42001400+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42001400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42001400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
tree "SERCOM4 (Internally connected to AT86RF233)"
base ad:0x42001800
width 15.
if ((per.l(ad:0x42001800+0x00)&0x1C)==0x00)||((per.l(ad:0x42001800+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42001800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42001800+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x08)||((per.l(ad:0x42001800+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42001800+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42001800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42001800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
sif CPUIS("ATSAMR21G*")
tree "SERCOM5"
base ad:0x42001C00
width 15.
if ((per.l(ad:0x42001C00+0x00)&0x1C)==0x00)||((per.l(ad:0x42001C00+0x00)&0x1C)==0x04)
if (((per.l(ad:0x42001C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,?..."
textline " "
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising XCK edge/Falling XCK edge,Falling XCK edge/Rising XCK edge"
textline " "
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,,,,,,,,,"
textline " "
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],"
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,,,"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Low,High"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
bitfld.long 0x00 9. " SFDE ,Start of Frame Detection Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
if (((per.l(ad:0x42001C00+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 1. " BAUD ,Baud Value"
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK_set/clr ,Receive Break Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC_set/clr ,Clear to Send Input Change Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS_set/clr ,Receive Start Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC_set/clr ,Receive Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC_set/clr ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE_set/clr ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Not detected,Detected"
eventfld.byte 0x00 5. " RXBRK ,Receive Break flag" "Not detected,Detected"
eventfld.byte 0x00 4. " CTSIC ,Clear to Send Input Change flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 3. " RXS ,Receive Start flag" "Not detected,Detected"
eventfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
textline " "
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity Error" "Disabled,Enabled"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x08)||((per.l(ad:0x42001C00+0x00)&0x1C)==0x0C)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " DORD ,Data Order" "MSB first,LSB first"
bitfld.long 0x00 28.--29. " CPOL/CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Rising(sample)/Falling(change),Rising(change)/Falling(sample),Falling(sample)/Rising(change),Falling(change)/Rising(sample)"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Asserted when it occurs in the data stream,Asserted immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
else
group.long 0x00++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "No set,Set"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,,,,,,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "Not detected,Detected"
eventfld.byte 0x00 3. " SSL ,Slave Select Low Interrupt flag" "Not detected,Detected"
rbitfld.byte 0x00 2. " RXC ,Receive Complete flag" "Not detected,Detected"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit Complete flag" "Not detected,Detected"
rbitfld.byte 0x00 0. " DRE ,Data Register Empty flag" "Not detected,Detected"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
in
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " ADDRMASK[7:0] ,Address Mask"
hexmask.long.byte 0x00 0.--7. 1. " ADDR ,Address"
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
textline " "
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
bitfld.long 0x04 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,"
bitfld.long 0x04 10. " AACKEN ,Automatic Acknowledge Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " GCMD ,PMBus Group Command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY_set/clr ,Data Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH_set/clr ,Address Match Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC_set/clr ,Stop Received Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error flag" "Cleared,Set"
eventfld.byte 0x00 2. " DRDY ,Data Ready flag" "Cleared,Set"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address Match flag" "Cleared,Set"
eventfld.byte 0x00 0. " PREC ,Stop Received flag" "Cleared,Set"
if ((per.b(ad:0x42001C00+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if ((per.l(ad:0x42001C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,General Call Address Enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK[9:0] ,Address Mask"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
textline " "
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,?..."
textline " "
bitfld.long 0x00 30. " LOWTOUT ,SCL Low Time-Out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive Time-Out" "DIS,55US,105US,205US"
textline " "
bitfld.long 0x00 27. " SCLSM ,SCL Clock Stretch Mode" "Stretch,After ACK"
bitfld.long 0x00 24.--25. " SPEED ,Transfer Speed" "Standard,Fast-mode,High-speed,"
textline " "
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL Low Extend Time-Out" "Disabled,Enabled"
bitfld.long 0x00 22. " MEXTTOEN ,Master SCL Low Extend Time-Out" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA Hold Time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" ",Repeated Start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart Mode Enable" "Disabled,Enabled"
textline " "
group.long 0x0C++0x03
line.long 0x00 "BAUD,Baud Rate"
hexmask.long.byte 0x00 24.--31. 1. " HSBAUDLOW ,High Speed Master Baud Rate Low"
hexmask.long.byte 0x00 16.--23. 1. " HSBAUD ,High Speed Master Baud Rate"
hexmask.long.byte 0x00 8.--15. 1. " BAUDLOW ,Master Baud Rate Low"
textline " "
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR_sec/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB_sec/clr ,Slave on Bus Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB_sec/clr ,Master on Bus Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error" "Not detected,Detected"
eventfld.byte 0x00 1. " SB ,Slave on Bus" "Not detected,Detected"
eventfld.byte 0x00 0. " MB ,Master on Bus" "Not detected,Detected"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction Length Error" "No error,Error"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not Occurred,Occurred"
eventfld.word 0x00 8. " MEXTTOUT ,Master SCL Low Extend Time-Out" "Not Occurred,Occurred"
textline " "
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "No,Yes"
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus State" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
bitfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if ((per.l(ad:0x42001C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.word 0x00 0.--10. 1. " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 1. " LEN ,Transaction Length"
bitfld.long 0x00 15. " TENBITEN ,Ten Bit Addressing Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " HS ,High Speed" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " LENEN ,Transfer Length Enable" "Disabled,Enabled"
hexmask.long.byte 0x00 0.--6. 1. " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,?..."
endif
width 0xB
tree.end
endif
tree.end
tree "TC (Timer/Counter)"
tree "TCC0"
base ad:0x42002000
width 15.
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 27. " CPTEN3 ,Capture Channel 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Disabled,Enabled"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,"
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "No,Yes"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET/CLR,Control B Set/Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,,,"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLE,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_set/clr ,One-Shot" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_set/clr ,Lock update" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_set/clr ,Counter Direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 22. " CCB3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 21. " CCB2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 19. " CCB0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 18. " PERB ,Period Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave Buffer Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 11. " CC3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 10. " CC2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable Fault A Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A Blanking Time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x00 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x04 "FCTRLB,Recoverable Fault B Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,Fault B Blanking Time"
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x04 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x08 24.--31. 1. " DTHS ,Dead-time High Side Outputs Value"
hexmask.long.byte 0x08 16.--23. 1. " DTLS ,Dead-time Low Side Outputs Value"
bitfld.long 0x08 11. " DTIEN3 ,Dead-time Insertion Generator 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 10. " DTIEN2 ,Dead-time Insertion Generator 2 Enable" "Disabled,Enabled"
bitfld.long 0x08 9. " DTIEN1 ,Dead-time Insertion Generator 1 Enable" "Disabled,Enabled"
bitfld.long 0x08 8. " DTIEN0 ,Dead-time Insertion Generator 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 0.--1. " OTMX ,Output Matrix (OMTX[7]/OMTX[6]/.../OMTX[0])" "CC3/2/1/0/3/2/1/0,CC1/0/1/0/1/0/1/0,CC0/0/0/0/0/0/0/0,CC1/1/1/1/1/1/1/0"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable Fault Input 1 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable Fault Input 0 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 23. " INVEN7 ,Output Waveform 7 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 22. " INVEN6 ,Output Waveform 6 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 21. " INVEN5 ,Output Waveform 5 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 20. " INVEN4 ,Output Waveform 4 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Tri-stated,NRV7 level"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Tri-stated,NRV6 level"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Tri-stated,NRV5 level"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Tri-stated,NRV4 level"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Tri-stated,NRV3 level"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Tri-stated,NRV2 level"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Tri-stated,NRV1 level"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Tri-stated,NRV0 level"
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault Detection on Debug Break Detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug Running Mode" "Halted,Continues"
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 27. " MCEO3 ,Match or Capture Channel 3 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " MCEO2 ,Match or Capture Channel 2 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 19. " MCEI3 ,Match or Capture Channel 3 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 18. " MCEI2 ,Match or Capture Channel 2 Event Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or Capture Channel 1 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or Capture Channel 0 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " TCEI0 ,Timer/counter Event 0 Input Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted Event 1 Input Enable" "Not inverted,Inverted"
bitfld.long 0x00 12. " TCINV0 ,Inverted Event 0 Input Enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 10. " CNTEO ,Timer/counter Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " OVFEO ,Overflow/Underflow Output Event Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "START,END,BETWEEN,BOUNDARY"
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter Input Event1 Action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter Input Event0 Action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
group.long 0x28++0x0F
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " MC3_set/clr ,Match or Capture Channel 3 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " MC2_set/clr ,Match or Capture Channel 2 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1_set/clr ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0_set/clr ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1_set/clr ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0_set/clr ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB_set/clr ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA_set/clr ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS_set/clr ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT_set/clr ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG_set/clr ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF_set/clr ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
bitfld.long 0x04 19. " MC3 ,Match or Capture Channel 3" "Not occurred,Occurred"
bitfld.long 0x04 18. " MC2 ,Match or Capture Channel 2" "Not occurred,Occurred"
bitfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "Not occurred,Occurred"
bitfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "Not occurred,Occurred"
bitfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "Not occurred,Occurred"
bitfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "Not occurred,Occurred"
bitfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 3. " ERR ,Error" "Not occurred,Occurred"
bitfld.long 0x04 2. " CNT ,Counter" "Not occurred,Occurred"
bitfld.long 0x04 1. " TRG ,Retrigger" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 0. " OVF ,Overflow" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 27. " CMP3 ,Compare Channel 3 Value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare Channel 2 Value" "0,1"
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
textline " "
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
eventfld.long 0x08 19. " CCBV3 ,Compare Channel 3 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 18. " CCBV2 ,Compare Channel 2 Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare Channel 1 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare Channel 0 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable Fault 1 State" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable Fault 0 State" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB State" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA State" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable Fault1 Input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable Fault0 Input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB Input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA Input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x34++0x03
hide.long 0x00 "COUNT,Count"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count Value"
endif
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 15. " PGV7 ,Pattern Generator 7 Output Value" "0,1"
bitfld.word 0x00 14. " PGV6 ,Pattern Generator 6 Output Value" "0,1"
bitfld.word 0x00 13. " PGV5 ,Pattern Generator 5 Output Value" "0,1"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern Generator 4 Output Value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern Generator 3 Output Value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern Generator 2 Output Value" "0,1"
textline " "
bitfld.word 0x00 9. " PGV1 ,Pattern Generator 1 Output Value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern Generator 0 Output Value" "0,1"
bitfld.word 0x00 7. " PGE7 ,Pattern Generator 7 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 6. " PGE6 ,Pattern Generator 6 Output Enable" "Not override,Override"
bitfld.word 0x00 5. " PGE5 ,Pattern Generator 5 Output Enable" "Not override,Override"
bitfld.word 0x00 4. " PGE4 ,Pattern Generator 4 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern Generator 3 Output Enable" "Not override,Override"
bitfld.word 0x00 2. " PGE2 ,Pattern Generator 2 Output Enable" "Not override,Override"
bitfld.word 0x00 1. " PGE1 ,Pattern Generator 1 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern Generator 0 Output Enable" "Not override,Override"
group.long 0x3C++0x07
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 27. " SWAP3 ,Swap DTI Output Pair 3" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAP2 ,Swap DTI Output Pair 2" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAP1 ,Swap DTI Output Pair 1" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAP0 ,Swap DTI Output Pair 0" "Disabled,Enabled"
bitfld.long 0x00 19. " POL3 ,Channel 3 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
textline " "
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 11. " CICCEN3 ,Circular Channel 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCEN2 ,Circular Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x40++0x03
hide.long 0x00 "PER,Period"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 4.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 5.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 6.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare and Capture"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare and Capture"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer"
bitfld.word 0x00 15. " PGVB7 ,Pattern Generator 7 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 14. " PGVB6 ,Pattern Generator 6 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 13. " PGVB5 ,Pattern Generator 5 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern Generator 4 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern Generator 3 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern Generator 2 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern Generator 1 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern Generator 0 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 7. " PGEB7 ,Pattern Generator 7 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGEB6 ,Pattern Generator 6 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 5. " PGEB5 ,Pattern Generator 5 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 4. " PGEB4 ,Pattern Generator 4 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGEB3 ,Pattern Generator 3 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 2. " PGEB2 ,Pattern Generator 2 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 1. " PGEB1 ,Pattern Generator 1 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGEB0 ,Pattern Generator 0 Output Enable Buffer" "Disabled,Enabled"
group.long 0x68++0x17
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 27. " SWAPB3 ,Swap DTI Output Pair 3 Buffer" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAPB2 ,Swap DTI Output Pair 2 Buffer" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAPB1 ,Swap DTI Output Pair 1 Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAPB0 ,Swap DTI Output Pair 0 Buffer" "Disabled,Enabled"
bitfld.long 0x00 19. " POLB3 ,Channel 3 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 18. " POLB2 ,Channel 2 Polarity Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " POLB1 ,Channel 1 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 11. " CICCENB3 ,Circular Channel 3 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCENB2 ,Circular Channel 2 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCENB1 ,Circular Channel 1 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular Channel 0 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular Period Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp Mode Buffer" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform Generation Buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x6C++0x03
hide.long 0x00 "PERB,Period Buffer"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x70++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x74++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x78++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002000+0x00))&0x60)==0x00)
hgroup.long 0x7C++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002000+0x00))&0x60)==0x60)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
width 0xb
tree.end
tree "TCC1"
base ad:0x42002400
width 15.
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 27. " CPTEN3 ,Capture Channel 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Disabled,Enabled"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,"
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "No,Yes"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET/CLR,Control B Set/Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,,,"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLE,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_set/clr ,One-Shot" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_set/clr ,Lock update" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_set/clr ,Counter Direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 22. " CCB3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 21. " CCB2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 19. " CCB0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 18. " PERB ,Period Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave Buffer Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 11. " CC3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 10. " CC2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable Fault A Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A Blanking Time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x00 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x04 "FCTRLB,Recoverable Fault B Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,Fault B Blanking Time"
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x04 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x08 24.--31. 1. " DTHS ,Dead-time High Side Outputs Value"
hexmask.long.byte 0x08 16.--23. 1. " DTLS ,Dead-time Low Side Outputs Value"
bitfld.long 0x08 11. " DTIEN3 ,Dead-time Insertion Generator 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 10. " DTIEN2 ,Dead-time Insertion Generator 2 Enable" "Disabled,Enabled"
bitfld.long 0x08 9. " DTIEN1 ,Dead-time Insertion Generator 1 Enable" "Disabled,Enabled"
bitfld.long 0x08 8. " DTIEN0 ,Dead-time Insertion Generator 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 0.--1. " OTMX ,Output Matrix (OMTX[7]/OMTX[6]/.../OMTX[0])" "CC3/2/1/0/3/2/1/0,CC1/0/1/0/1/0/1/0,CC0/0/0/0/0/0/0/0,CC1/1/1/1/1/1/1/0"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable Fault Input 1 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable Fault Input 0 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 23. " INVEN7 ,Output Waveform 7 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 22. " INVEN6 ,Output Waveform 6 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 21. " INVEN5 ,Output Waveform 5 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 20. " INVEN4 ,Output Waveform 4 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Tri-stated,NRV7 level"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Tri-stated,NRV6 level"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Tri-stated,NRV5 level"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Tri-stated,NRV4 level"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Tri-stated,NRV3 level"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Tri-stated,NRV2 level"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Tri-stated,NRV1 level"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Tri-stated,NRV0 level"
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault Detection on Debug Break Detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug Running Mode" "Halted,Continues"
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 27. " MCEO3 ,Match or Capture Channel 3 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " MCEO2 ,Match or Capture Channel 2 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 19. " MCEI3 ,Match or Capture Channel 3 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 18. " MCEI2 ,Match or Capture Channel 2 Event Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or Capture Channel 1 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or Capture Channel 0 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " TCEI0 ,Timer/counter Event 0 Input Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted Event 1 Input Enable" "Not inverted,Inverted"
bitfld.long 0x00 12. " TCINV0 ,Inverted Event 0 Input Enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 10. " CNTEO ,Timer/counter Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " OVFEO ,Overflow/Underflow Output Event Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "START,END,BETWEEN,BOUNDARY"
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter Input Event1 Action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter Input Event0 Action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
group.long 0x28++0x0F
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " MC3_set/clr ,Match or Capture Channel 3 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " MC2_set/clr ,Match or Capture Channel 2 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1_set/clr ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0_set/clr ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1_set/clr ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0_set/clr ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB_set/clr ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA_set/clr ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS_set/clr ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT_set/clr ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG_set/clr ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF_set/clr ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
bitfld.long 0x04 19. " MC3 ,Match or Capture Channel 3" "Not occurred,Occurred"
bitfld.long 0x04 18. " MC2 ,Match or Capture Channel 2" "Not occurred,Occurred"
bitfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "Not occurred,Occurred"
bitfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "Not occurred,Occurred"
bitfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "Not occurred,Occurred"
bitfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "Not occurred,Occurred"
bitfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 3. " ERR ,Error" "Not occurred,Occurred"
bitfld.long 0x04 2. " CNT ,Counter" "Not occurred,Occurred"
bitfld.long 0x04 1. " TRG ,Retrigger" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 0. " OVF ,Overflow" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 27. " CMP3 ,Compare Channel 3 Value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare Channel 2 Value" "0,1"
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
textline " "
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
eventfld.long 0x08 19. " CCBV3 ,Compare Channel 3 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 18. " CCBV2 ,Compare Channel 2 Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare Channel 1 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare Channel 0 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable Fault 1 State" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable Fault 0 State" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB State" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA State" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable Fault1 Input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable Fault0 Input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB Input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA Input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x34++0x03
hide.long 0x00 "COUNT,Count"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count Value"
endif
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 15. " PGV7 ,Pattern Generator 7 Output Value" "0,1"
bitfld.word 0x00 14. " PGV6 ,Pattern Generator 6 Output Value" "0,1"
bitfld.word 0x00 13. " PGV5 ,Pattern Generator 5 Output Value" "0,1"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern Generator 4 Output Value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern Generator 3 Output Value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern Generator 2 Output Value" "0,1"
textline " "
bitfld.word 0x00 9. " PGV1 ,Pattern Generator 1 Output Value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern Generator 0 Output Value" "0,1"
bitfld.word 0x00 7. " PGE7 ,Pattern Generator 7 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 6. " PGE6 ,Pattern Generator 6 Output Enable" "Not override,Override"
bitfld.word 0x00 5. " PGE5 ,Pattern Generator 5 Output Enable" "Not override,Override"
bitfld.word 0x00 4. " PGE4 ,Pattern Generator 4 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern Generator 3 Output Enable" "Not override,Override"
bitfld.word 0x00 2. " PGE2 ,Pattern Generator 2 Output Enable" "Not override,Override"
bitfld.word 0x00 1. " PGE1 ,Pattern Generator 1 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern Generator 0 Output Enable" "Not override,Override"
group.long 0x3C++0x07
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 27. " SWAP3 ,Swap DTI Output Pair 3" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAP2 ,Swap DTI Output Pair 2" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAP1 ,Swap DTI Output Pair 1" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAP0 ,Swap DTI Output Pair 0" "Disabled,Enabled"
bitfld.long 0x00 19. " POL3 ,Channel 3 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
textline " "
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 11. " CICCEN3 ,Circular Channel 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCEN2 ,Circular Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x40++0x03
hide.long 0x00 "PER,Period"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 4.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 5.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 6.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare and Capture"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare and Capture"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer"
bitfld.word 0x00 15. " PGVB7 ,Pattern Generator 7 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 14. " PGVB6 ,Pattern Generator 6 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 13. " PGVB5 ,Pattern Generator 5 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern Generator 4 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern Generator 3 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern Generator 2 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern Generator 1 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern Generator 0 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 7. " PGEB7 ,Pattern Generator 7 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGEB6 ,Pattern Generator 6 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 5. " PGEB5 ,Pattern Generator 5 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 4. " PGEB4 ,Pattern Generator 4 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGEB3 ,Pattern Generator 3 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 2. " PGEB2 ,Pattern Generator 2 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 1. " PGEB1 ,Pattern Generator 1 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGEB0 ,Pattern Generator 0 Output Enable Buffer" "Disabled,Enabled"
group.long 0x68++0x17
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 27. " SWAPB3 ,Swap DTI Output Pair 3 Buffer" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAPB2 ,Swap DTI Output Pair 2 Buffer" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAPB1 ,Swap DTI Output Pair 1 Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAPB0 ,Swap DTI Output Pair 0 Buffer" "Disabled,Enabled"
bitfld.long 0x00 19. " POLB3 ,Channel 3 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 18. " POLB2 ,Channel 2 Polarity Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " POLB1 ,Channel 1 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 11. " CICCENB3 ,Circular Channel 3 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCENB2 ,Circular Channel 2 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCENB1 ,Circular Channel 1 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular Channel 0 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular Period Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp Mode Buffer" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform Generation Buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x6C++0x03
hide.long 0x00 "PERB,Period Buffer"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x70++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x74++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x78++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002400+0x00))&0x60)==0x00)
hgroup.long 0x7C++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002400+0x00))&0x60)==0x60)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
width 0xb
tree.end
tree "TCC2"
base ad:0x42002800
width 15.
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 27. " CPTEN3 ,Capture Channel 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Disabled,Enabled"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,"
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "No,Yes"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET/CLR,Control B Set/Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,,,"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLE,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_set/clr ,One-Shot" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_set/clr ,Lock update" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_set/clr ,Counter Direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 22. " CCB3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 21. " CCB2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 19. " CCB0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 18. " PERB ,Period Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave Buffer Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern Buffer Busy" "Not busy,Busy"
bitfld.long 0x00 11. " CC3 ,Compare Channel Buffer 3 Busy" "Not busy,Busy"
bitfld.long 0x00 10. " CC2 ,Compare Channel Buffer 2 Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare Channel Buffer 0 Busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable Fault A Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A Blanking Time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x00 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x04 "FCTRLB,Recoverable Fault B Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,Fault B Blanking Time"
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "DISABLE,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIVO0,"
textline " "
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "DISABLE,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "NONE,RISE,FALL,BOTH"
bitfld.long 0x04 4. " QUAL ,Fault qualification" "0,1"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "DISABLE,ENABLE,INVERT,ALTFAULT"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x08 24.--31. 1. " DTHS ,Dead-time High Side Outputs Value"
hexmask.long.byte 0x08 16.--23. 1. " DTLS ,Dead-time Low Side Outputs Value"
bitfld.long 0x08 11. " DTIEN3 ,Dead-time Insertion Generator 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 10. " DTIEN2 ,Dead-time Insertion Generator 2 Enable" "Disabled,Enabled"
bitfld.long 0x08 9. " DTIEN1 ,Dead-time Insertion Generator 1 Enable" "Disabled,Enabled"
bitfld.long 0x08 8. " DTIEN0 ,Dead-time Insertion Generator 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 0.--1. " OTMX ,Output Matrix (OMTX[7]/OMTX[6]/.../OMTX[0])" "CC3/2/1/0/3/2/1/0,CC1/0/1/0/1/0/1/0,CC0/0/0/0/0/0/0/0,CC1/1/1/1/1/1/1/0"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable Fault Input 1 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable Fault Input 0 Filter Value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 23. " INVEN7 ,Output Waveform 7 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 22. " INVEN6 ,Output Waveform 6 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 21. " INVEN5 ,Output Waveform 5 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 20. " INVEN4 ,Output Waveform 4 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Tri-stated,NRV7 level"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Tri-stated,NRV6 level"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Tri-stated,NRV5 level"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Tri-stated,NRV4 level"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Tri-stated,NRV3 level"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Tri-stated,NRV2 level"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Tri-stated,NRV1 level"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Tri-stated,NRV0 level"
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault Detection on Debug Break Detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug Running Mode" "Halted,Continues"
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 27. " MCEO3 ,Match or Capture Channel 3 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 26. " MCEO2 ,Match or Capture Channel 2 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 19. " MCEI3 ,Match or Capture Channel 3 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 18. " MCEI2 ,Match or Capture Channel 2 Event Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or Capture Channel 1 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or Capture Channel 0 Event Input Enable" "Disabled,Enabled"
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " TCEI0 ,Timer/counter Event 0 Input Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted Event 1 Input Enable" "Not inverted,Inverted"
bitfld.long 0x00 12. " TCINV0 ,Inverted Event 0 Input Enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 10. " CNTEO ,Timer/counter Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger Output Event Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " OVFEO ,Overflow/Underflow Output Event Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "START,END,BETWEEN,BOUNDARY"
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter Input Event1 Action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter Input Event0 Action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
group.long 0x28++0x0F
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " MC3_set/clr ,Match or Capture Channel 3 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " MC2_set/clr ,Match or Capture Channel 2 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1_set/clr ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0_set/clr ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1_set/clr ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0_set/clr ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB_set/clr ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA_set/clr ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS_set/clr ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR_set/clr ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT_set/clr ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG_set/clr ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF_set/clr ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
bitfld.long 0x04 19. " MC3 ,Match or Capture Channel 3" "Not occurred,Occurred"
bitfld.long 0x04 18. " MC2 ,Match or Capture Channel 2" "Not occurred,Occurred"
bitfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "Not occurred,Occurred"
bitfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "Not occurred,Occurred"
bitfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "Not occurred,Occurred"
bitfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "Not occurred,Occurred"
bitfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 3. " ERR ,Error" "Not occurred,Occurred"
bitfld.long 0x04 2. " CNT ,Counter" "Not occurred,Occurred"
bitfld.long 0x04 1. " TRG ,Retrigger" "Not occurred,Occurred"
textline " "
bitfld.long 0x04 0. " OVF ,Overflow" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 27. " CMP3 ,Compare Channel 3 Value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare Channel 2 Value" "0,1"
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
textline " "
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
eventfld.long 0x08 19. " CCBV3 ,Compare Channel 3 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 18. " CCBV2 ,Compare Channel 2 Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare Channel 1 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare Channel 0 Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable Fault 1 State" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable Fault 0 State" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB State" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA State" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable Fault1 Input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable Fault0 Input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB Input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA Input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x34++0x03
hide.long 0x00 "COUNT,Count"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count Value"
endif
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 15. " PGV7 ,Pattern Generator 7 Output Value" "0,1"
bitfld.word 0x00 14. " PGV6 ,Pattern Generator 6 Output Value" "0,1"
bitfld.word 0x00 13. " PGV5 ,Pattern Generator 5 Output Value" "0,1"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern Generator 4 Output Value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern Generator 3 Output Value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern Generator 2 Output Value" "0,1"
textline " "
bitfld.word 0x00 9. " PGV1 ,Pattern Generator 1 Output Value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern Generator 0 Output Value" "0,1"
bitfld.word 0x00 7. " PGE7 ,Pattern Generator 7 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 6. " PGE6 ,Pattern Generator 6 Output Enable" "Not override,Override"
bitfld.word 0x00 5. " PGE5 ,Pattern Generator 5 Output Enable" "Not override,Override"
bitfld.word 0x00 4. " PGE4 ,Pattern Generator 4 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern Generator 3 Output Enable" "Not override,Override"
bitfld.word 0x00 2. " PGE2 ,Pattern Generator 2 Output Enable" "Not override,Override"
bitfld.word 0x00 1. " PGE1 ,Pattern Generator 1 Output Enable" "Not override,Override"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern Generator 0 Output Enable" "Not override,Override"
group.long 0x3C++0x07
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 27. " SWAP3 ,Swap DTI Output Pair 3" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAP2 ,Swap DTI Output Pair 2" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAP1 ,Swap DTI Output Pair 1" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAP0 ,Swap DTI Output Pair 0" "Disabled,Enabled"
bitfld.long 0x00 19. " POL3 ,Channel 3 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
textline " "
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity in single-slope/dual slope PWM" "DIR/~DIR,DIR"
bitfld.long 0x00 11. " CICCEN3 ,Circular Channel 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCEN2 ,Circular Channel 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x40++0x03
hide.long 0x00 "PER,Period"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 4.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 5.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 6.--23. 1. " PER ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare and Capture"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare and Capture"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare and Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Compare and Capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Cycle Number" "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"
endif
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer"
bitfld.word 0x00 15. " PGVB7 ,Pattern Generator 7 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 14. " PGVB6 ,Pattern Generator 6 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 13. " PGVB5 ,Pattern Generator 5 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern Generator 4 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern Generator 3 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern Generator 2 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern Generator 1 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern Generator 0 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 7. " PGEB7 ,Pattern Generator 7 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGEB6 ,Pattern Generator 6 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 5. " PGEB5 ,Pattern Generator 5 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 4. " PGEB4 ,Pattern Generator 4 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGEB3 ,Pattern Generator 3 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 2. " PGEB2 ,Pattern Generator 2 Output Enable Buffer" "Disabled,Enabled"
bitfld.word 0x00 1. " PGEB1 ,Pattern Generator 1 Output Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGEB0 ,Pattern Generator 0 Output Enable Buffer" "Disabled,Enabled"
group.long 0x68++0x17
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 27. " SWAPB3 ,Swap DTI Output Pair 3 Buffer" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAPB2 ,Swap DTI Output Pair 2 Buffer" "Disabled,Enabled"
bitfld.long 0x00 25. " SWAPB1 ,Swap DTI Output Pair 1 Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " SWAPB0 ,Swap DTI Output Pair 0 Buffer" "Disabled,Enabled"
bitfld.long 0x00 19. " POLB3 ,Channel 3 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 18. " POLB2 ,Channel 2 Polarity Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " POLB1 ,Channel 1 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 Polarity Buffer" "Disabled,Enabled"
bitfld.long 0x00 11. " CICCENB3 ,Circular Channel 3 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " CICCENB2 ,Circular Channel 2 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 9. " CICCENB1 ,Circular Channel 1 Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular Channel 0 Enable Buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular Period Enable Buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp Mode Buffer" "RAMP1,RAMP2A,RAMP2,"
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform Generation Buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x6C++0x03
hide.long 0x00 "PERB,Period Buffer"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period Value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x70++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x70++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB0 ,Compare and Capture buffer 0 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x74++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x74++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB1 ,Compare and Capture buffer 1 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x78++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x78++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB2 ,Compare and Capture buffer 2 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
if (((d.l(ad:0x42002800+0x00))&0x60)==0x00)
hgroup.long 0x7C++0x03
hide.long 0x00 "CC,Compare and Capture Buffer"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering Buffer Cycle Number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
elif (((d.l(ad:0x42002800+0x00))&0x60)==0x60)
group.long 0x7C++0x03
line.long 0x00 "CC,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB3 ,Compare and Capture buffer 3 value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering Buffer Cycle Number" "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"
endif
width 0xb
tree.end
tree "TC3"
base ad:0x42002C00
width 15.
if (((per.w(ad:0x42002C00))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42002C00))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42002C00+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42002C00+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42002C00+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC4"
base ad:0x42003000
width 15.
if (((per.w(ad:0x42003000))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003000))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003000+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003000+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003000+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC5"
base ad:0x42003400
width 15.
if (((per.w(ad:0x42003400))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003400))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003400+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003400+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003400+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree.end
tree "USB (Universal Serial Bus)"
base ad:0x41005000
width 18.
tree "Communication Device Host Registers"
if (((per.l(ad:0x41005000))&0x02)==0x00)
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " MODE ,Operating mode" "Device,Host"
bitfld.byte 0x00 2. " RUNSDTBY ,Run in standby mode" "Stopped,Running"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " MODE ,Operating mode" "Device,Host"
rbitfld.byte 0x00 2. " RUNSDTBY ,Run in standby mode" "Stopped,Running"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
rgroup.byte 0x02++0x00
line.byte 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.byte 0x00 1. " ENABLE ,Synchronization enable status bit" "Completed,Started"
bitfld.byte 0x00 0. " SWRST ,Synchronization software reset status bit" "Completed,Started"
sif cpuis("ATSAML21*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*")
group.byte 0x03++0x00
line.byte 0x00 "QOSCTRL,QOS Control"
bitfld.byte 0x00 2.--3. " DQOS ,Data quality of service" "DISABLE,LOW,MEDIUM,HIGH"
bitfld.byte 0x00 0.--1. " CQOS ,Configuration quality of service" "DISABLE,LOW,MEDIUM,HIGH"
endif
rgroup.byte 0x0D++0x00
line.byte 0x00 "FSMSTATUS,Finite State Machine Status"
hexmask.byte 0x00 0.--6. 1. " FSMSTATE ,Fine state machine status"
group.long 0x24++0x03
line.long 0x00 "DESCADD,Descriptor Address"
group.word 0x28++0x01
line.word 0x00 "PADCAL,Pad Calibration"
bitfld.word 0x00 12.--14. " TRIM ,Trim bits for DP/DM" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 6.--10. " TRANSN ,Trimmable output driver impedance N" "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.word 0x00 0.--4. " TRANSP ,Trimmable output driver impedance P" "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"
tree.end
if (((per.b(ad:0x41005000+0x00))&0x80)==0x00)
group.word 0x08++0x01 "Device Registers - Common"
line.word 0x00 "CTRLB,Control B"
bitfld.word 0x00 10.--11. " LPMHDSK ,Link power management handshake" "No handshake,ACK,NYET,?..."
bitfld.word 0x00 9. " GNAK ,Global NAK" "Normal mode,NAK"
rbitfld.word 0x00 4. " NREPLY ,No reply excepted SETUP token" "Disabled,Enabled"
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.word 0x00 2.--3. " SPDCONF ,Speed configuration" "Full,Low,?..."
else
bitfld.word 0x00 2.--3. " SPDCONF ,Speed configuration" "Low,Full,?..."
endif
textline " "
bitfld.word 0x00 1. " UPRSM ,Upstream resume" "Not generated,Generated"
bitfld.word 0x00 0. " DETACH ,Detach" "Attached,Disabled"
group.byte 0x0A++0x00
line.byte 0x00 "DADD,Device Address"
bitfld.byte 0x00 7. " ADDEN ,Device address enable" "Disabled,Enabled"
hexmask.byte 0x00 0.--6. 0x01 " DADD ,Device address"
rgroup.byte 0x0C++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 6.--7. " LINESTATE ,USB line state status" "SE0/RESET,FS-J or LS-K,FS-K or LS-J,?..."
bitfld.byte 0x00 2.--3. " SPEED ,Speed status" "Low,Full,?..."
rgroup.word 0x10++0x01
line.word 0x00 "FNUM,Device Frame Number"
bitfld.word 0x00 15. " FNCERR ,Frame number CRC error" "No error,Error"
hexmask.word 0x00 3.--13. 1. " FNUM ,Frame number"
bitfld.word 0x00 0.--2. " MFNUM ,Micro frame number" "0,1,2,3,4,5,6,7"
group.word 0x18++0x01
line.word 0x00 "INTEN_SET/CLR,Device Interrupt Enable Set/Clear"
setclrfld.word 0x00 9. 0x00 9. -0x04 9. " LPMSUSP ,Link power management suspend interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 8. 0x00 8. -0x04 8. " LPMNYET ,Link power management not yet interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 7. 0x00 7. -0x04 7. " RAMACER ,RAM access interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 6. 0x00 6. -0x04 6. " UPRSM ,Upstream resume interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.word 0x00 5. 0x00 5. -0x04 5. " EORSM ,End of resume interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 4. 0x00 4. -0x04 4. " WAKEUP ,Wake up interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 3. 0x00 3. -0x04 3. " EORST ,End of reset interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 2. 0x00 2. -0x04 2. " SOF ,Start-of-frame interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.word 0x00 0. 0x00 0. -0x04 0. " SUSPEND ,Suspend interrupt enable" "Disabled,Enabled"
group.word 0x1C++0x01
line.word 0x00 "INTFLAG,Device Interrupt Flag"
eventfld.word 0x00 9. " LPMSUSP ,Link power management suspend interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 8. " LPMNYET ,Link power management not yet interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 7. " RAMACER ,RAM access interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 6. " UPRSM ,Upstream resume interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.word 0x00 5. " EORSM ,End of resume interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 4. " WAKEUP ,Wake up interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 3. " EORST ,End of reset interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 2. " SOF ,Start-of-frame interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.word 0x00 0. " SUSPEND ,Suspend interrupt flag" "No interrupt,Interrupt"
rgroup.word 0x20++0x01
line.word 0x00 "EPINTSMRY,Endpoint Interrupt Summary"
bitfld.word 0x00 15. " EPINT[15] ,Endpoint 15 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 14. " [14] ,Endpoint 14 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 13. " [13] ,Endpoint 13 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 12. " [12] ,Endpoint 12 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 11. " [11] ,Endpoint 11 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 10. " [10] ,Endpoint 10 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 9. " [9] ,Endpoint 9 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 8. " [8] ,Endpoint 8 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 7. " [7] ,Endpoint 7 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 6. " [6] ,Endpoint 6 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 5. " [5] ,Endpoint 5 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 4. " [4] ,Endpoint 4 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 3. " [3] ,Endpoint 3 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 2. " [2] ,Endpoint 2 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 1. " [1] ,Endpoint 1 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 0. " [0] ,Endpoint 0 interrupt" "No interrupt,Interrupt"
group.byte 0x100++0x00 "Endpoint 0"
line.byte 0x00 "EPCFG0,Device Endpoint Configuration Register 0"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x100+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 0"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x100+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x120++0x00 "Endpoint 1"
line.byte 0x00 "EPCFG1,Device Endpoint Configuration Register 1"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x120+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 1"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x120+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x140++0x00 "Endpoint 2"
line.byte 0x00 "EPCFG2,Device Endpoint Configuration Register 2"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x140+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 2"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x140+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x160++0x00 "Endpoint 3"
line.byte 0x00 "EPCFG3,Device Endpoint Configuration Register 3"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x160+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 3"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x160+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x180++0x00 "Endpoint 4"
line.byte 0x00 "EPCFG4,Device Endpoint Configuration Register 4"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x180+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 4"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x180+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x1A0++0x00 "Endpoint 5"
line.byte 0x00 "EPCFG5,Device Endpoint Configuration Register 5"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x1A0+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 5"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1A0+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x1C0++0x00 "Endpoint 6"
line.byte 0x00 "EPCFG6,Device Endpoint Configuration Register 6"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x1C0+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 6"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1C0+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
group.byte 0x1E0++0x00 "Endpoint 7"
line.byte 0x00 "EPCFG7,Device Endpoint Configuration Register 7"
bitfld.byte 0x00 4.--6. " ETYPE1 ,Endpoint type for IN direction" "Disabled,Control IN,Isochronous IN,Bulk IN,Interrupt IN,Dual-Bank OUT,?..."
bitfld.byte 0x00 0.--2. " ETYPE0 ,Endpoint type for OUT direction" "Disabled,Control SETUP / control OUT,Isochronous OUT,Bulk OUT,Interrupt OUT,Dual bank IN,?..."
group.byte (0x1E0+0x06)++0x01
line.byte 0x00 "EPSTATUS_SET/CLR,EndPoint Status Register 7"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 ready" "Not ready,Ready"
setclrfld.byte 0x00 5. -0x01 5. -0x02 5. " STALLRQ1 ,STALL request bank 1" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " STALLRQ0 ,STALL request bank 0" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank" "Bank 0,Bank 1"
setclrfld.byte 0x00 1. -0x01 1. -0x02 1. " DTGLIN ,Data toggle IN" "Data 0,Data 1"
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGLOUT ,Data toggle OUT" "Data 0,Data 1"
line.byte 0x01 "EPINTFLAG,Device EndPoint Interrupt Flag"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x01 5. " STALL ,Transmit stall interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x01 6. " STALL1 ,Transmit stall 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 5. " STALL0 ,Transmit stall 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " RXSTP ,Received setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1E0+0x09)++0x00
line.byte 0x00 "EPINTEN_SET/CLR,Device Interrupt EndPoint Set/Clear"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL ,Transmit stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " STALL1 ,Transmit stall 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " STALL0 ,Transmit stall 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " RXSTP ,Received setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " TRFAIL1 ,Transfer fail 1 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " TRFAIL0 ,Transfer fail 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
base ad:per.l(ad:0x41005000+0x24)+0x0
group.long 0x00++0x03 "Descriptor 0 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x0))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0x0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x0))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x20
group.long 0x00++0x03 "Descriptor 1 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x20))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x20))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0x20))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x20))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x40
group.long 0x00++0x03 "Descriptor 2 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x40))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x40))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0x40))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x40))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x60
group.long 0x00++0x03 "Descriptor 3 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x60))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x60))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0x60))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x60))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x80
group.long 0x00++0x03 "Descriptor 4 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x80))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x80))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0x80))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0x80))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xA0
group.long 0x00++0x03 "Descriptor 5 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xA0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xA0))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0xA0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xA0))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xC0
group.long 0x00++0x03 "Descriptor 6 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xC0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xC0))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0xC0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xC0))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xE0
group.long 0x00++0x03 "Descriptor 7 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xE0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xE0))&0x70)==0x20)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.long 0x10++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
textline " "
if (((per.b(ad:0x41005000+0x100+0xE0))&0x07)==0x02)||(((per.b(ad:0x41005000+0x100+0xE0))&0x70)==0x20)
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x14++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x1A++0x00
line.byte 0x00 "STATUS_BK_1,Device Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
else
;
base ad:0x41005000
group.word 0x08++0x01 "Host Registers - Common"
line.word 0x00 "CTRLB,Control B"
bitfld.word 0x00 11. " L1RESUME ,Send USB L1 resume" "No,Yes"
bitfld.word 0x00 10. " VBUSOK ,VBUS is OK" "Not powered,Powered"
bitfld.word 0x00 9. " BUSRESET ,Send USB reset" "No reset,Reset"
bitfld.word 0x00 8. " SOFE ,Start-of-frame generation enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 2.--3. " SPDCONF ,Speed configuration for host" "Low and full,?..."
bitfld.word 0x00 1. " RESUME ,Send USB resume" "No,Yes"
group.byte 0x0A++0x00
line.byte 0x00 "HSOFC,Host Start-of-Frame Control Register"
bitfld.byte 0x00 7. " FLENCE ,Frame length control enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--3. " FLENC ,Frame length control" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
rgroup.byte 0x0C++0x00
line.byte 0x00 "STATUS,Status Register"
bitfld.byte 0x00 6.--7. " LINESTATE ,USB line state status" "SE0/RESET,FS-J or LS-K,FS-K or LS-J,?..."
bitfld.byte 0x00 2.--3. " SPEED ,Speed status" "Full,Low,?..."
else
group.byte 0x0C++0x00
line.byte 0x00 "STATUS,Status Register"
bitfld.byte 0x00 6.--7. " LINESTATE ,USB line state status" "SE0/RESET,FS-J or LS-K,FS-K or LS-J,?..."
bitfld.byte 0x00 2.--3. " SPEED ,Speed status" "Full,Low,?..."
endif
group.word 0x10++0x01
line.word 0x00 "FNUM,Host Frame Number Register"
hexmask.word 0x00 3.--13. 1. " FNUM ,Frame number"
rgroup.byte 0x12++0x00
line.byte 0x00 "FLENHIGH,Host Frame Length Register"
group.word 0x18++0x01
line.word 0x00 "INTEN_SET/CLR,Host Interrupt Enable Register Set"
setclrfld.word 0x00 9. 0x00 9. -0x04 9. " DDISC ,Device disconnection interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 8. 0x00 8. -0x04 8. " DCONN ,Device connection interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 7. 0x00 7. -0x04 7. " RAMACER ,RAM access interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 6. 0x00 6. -0x04 6. " UPRSM ,Upstream resume from the device interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.word 0x00 5. 0x00 5. -0x04 5. " DNRSM ,Down resume interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 4. 0x00 4. -0x04 4. " WAKEUP ,Wake up interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 3. 0x00 3. -0x04 3. " RST ,Bus reset interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 2. 0x00 2. -0x04 2. " HSOF ,Host start-of-frame interrupt enable" "Disabled,Enabled"
group.word 0x1C++0x01
line.word 0x00 "INTFLAG,Host Interrupt Flag Register"
eventfld.word 0x00 9. " DDISC ,Device disconnection interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 8. " DCONN ,Device connection interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 7. " RAMACER ,RAM access interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 6. " UPRSM ,Upstream resume from the device interrupt flag" "No interrupt,Interrupt"
textline " "
eventfld.word 0x00 5. " DNRSM ,Down resume interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 4. " WAKEUP ,Wake up interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 3. " RST ,Bus reset interrupt flag" "No interrupt,Interrupt"
eventfld.word 0x00 2. " HSOF ,Host start-of-frame interrupt flag" "No interrupt,Interrupt"
rgroup.word 0x20++0x01
line.word 0x00 "PINTSMRY,Pipe Interrupt Summary Register"
bitfld.word 0x00 15. " PINT[15] ,Pipe 15 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 14. " [14] ,Pipe 14 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 13. " [13] ,Pipe 13 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 12. " [12] ,Pipe 12 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 11. " [11] ,Pipe 11 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 10. " [10] ,Pipe 10 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 9. " [9] ,Pipe 9 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 8. " [8] ,Pipe 8 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 7. " [7] ,Pipe 7 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 6. " [6] ,Pipe 6 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 5. " [5] ,Pipe 5 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 4. " [4] ,Pipe 4 interrupt" "No interrupt,Interrupt"
textline " "
bitfld.word 0x00 3. " [3] ,Pipe 3 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 2. " [2] ,Pipe 2 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 1. " [1] ,Pipe 1 interrupt" "No interrupt,Interrupt"
bitfld.word 0x00 0. " [0] ,Pipe 0 interrupt" "No interrupt,Interrupt"
if (((per.b(ad:0x41005000+0x100))&0x38)==0x28)
group.byte 0x100++0x00 "Host Registers - Pipe 0"
line.byte 0x00 "PCFG0,Host Pipe 0 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x100))&0x38)==0x08)
group.byte 0x100++0x00 "Host Registers - Pipe 0"
line.byte 0x00 "PCFG0,Host Pipe 0 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x100++0x00 "Host Registers - Pipe 0"
line.byte 0x00 "PCFG0,Host Pipe 0 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x100+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x100+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 0"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x100+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x100+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x120))&0x38)==0x28)
group.byte 0x120++0x00 "Host Registers - Pipe 1"
line.byte 0x00 "PCFG1,Host Pipe 1 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x120))&0x38)==0x08)
group.byte 0x120++0x00 "Host Registers - Pipe 1"
line.byte 0x00 "PCFG1,Host Pipe 1 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x120++0x00 "Host Registers - Pipe 1"
line.byte 0x00 "PCFG1,Host Pipe 1 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x120+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x120+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 1"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x120+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x120+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x140))&0x38)==0x28)
group.byte 0x140++0x00 "Host Registers - Pipe 2"
line.byte 0x00 "PCFG2,Host Pipe 2 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x140))&0x38)==0x08)
group.byte 0x140++0x00 "Host Registers - Pipe 2"
line.byte 0x00 "PCFG2,Host Pipe 2 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x140++0x00 "Host Registers - Pipe 2"
line.byte 0x00 "PCFG2,Host Pipe 2 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x140+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x140+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 2"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x140+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x140+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x160))&0x38)==0x28)
group.byte 0x160++0x00 "Host Registers - Pipe 3"
line.byte 0x00 "PCFG3,Host Pipe 3 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x160))&0x38)==0x08)
group.byte 0x160++0x00 "Host Registers - Pipe 3"
line.byte 0x00 "PCFG3,Host Pipe 3 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x160++0x00 "Host Registers - Pipe 3"
line.byte 0x00 "PCFG3,Host Pipe 3 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x160+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x160+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 3"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x160+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x160+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x180))&0x38)==0x28)
group.byte 0x180++0x00 "Host Registers - Pipe 4"
line.byte 0x00 "PCFG4,Host Pipe 4 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x180))&0x38)==0x08)
group.byte 0x180++0x00 "Host Registers - Pipe 4"
line.byte 0x00 "PCFG4,Host Pipe 4 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x180++0x00 "Host Registers - Pipe 4"
line.byte 0x00 "PCFG4,Host Pipe 4 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x180+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x180+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 4"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x180+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x180+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x1A0))&0x38)==0x28)
group.byte 0x1A0++0x00 "Host Registers - Pipe 5"
line.byte 0x00 "PCFG5,Host Pipe 5 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x1A0))&0x38)==0x08)
group.byte 0x1A0++0x00 "Host Registers - Pipe 5"
line.byte 0x00 "PCFG5,Host Pipe 5 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x1A0++0x00 "Host Registers - Pipe 5"
line.byte 0x00 "PCFG5,Host Pipe 5 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x1A0+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x1A0+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 5"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x1A0+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1A0+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x1C0))&0x38)==0x28)
group.byte 0x1C0++0x00 "Host Registers - Pipe 6"
line.byte 0x00 "PCFG6,Host Pipe 6 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x1C0))&0x38)==0x08)
group.byte 0x1C0++0x00 "Host Registers - Pipe 6"
line.byte 0x00 "PCFG6,Host Pipe 6 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x1C0++0x00 "Host Registers - Pipe 6"
line.byte 0x00 "PCFG6,Host Pipe 6 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x1C0+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x1C0+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 6"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x1C0+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1C0+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
if (((per.b(ad:0x41005000+0x1E0))&0x38)==0x28)
group.byte 0x1E0++0x00 "Host Registers - Pipe 7"
line.byte 0x00 "PCFG7,Host Pipe 7 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
elif (((per.b(ad:0x41005000+0x1E0))&0x38)==0x08)
group.byte 0x1E0++0x00 "Host Registers - Pipe 7"
line.byte 0x00 "PCFG7,Host Pipe 7 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" "SETUP,IN,OUT,?..."
else
group.byte 0x1E0++0x00 "Host Registers - Pipe 7"
line.byte 0x00 "PCFG7,Host Pipe 7 Configuration Register"
bitfld.byte 0x00 3.--5. " PTYPE ,Type of the pipe" "Disabled,CONTROL,ISO,BULK,INTERRUPT,EXTENDED,?..."
bitfld.byte 0x00 2. " BK ,Pipe bank" "Single,Double"
bitfld.byte 0x00 0.--1. " PTOKEN ,Pipe token" ",IN,OUT,?..."
endif
group.byte (0x1E0+0x03)++0x00
line.byte 0x00 "BINTERVAL,Interval For The Bulk-Out/Ping Transaction Register"
group.byte (0x1E0+0x06)++0x00
line.byte 0x00 "PSTATUS_SET/CLR,Pipe Status Set/Clear Register 7"
setclrfld.byte 0x00 7. -0x01 7. -0x02 7. " BK1RDY ,Bank 1 is ready" "Not ready,Ready"
setclrfld.byte 0x00 6. -0x01 6. -0x02 6. " BK0RDY ,Bank 0 is ready" "Not ready,Ready"
setclrfld.byte 0x00 4. -0x01 4. -0x02 4. " PFREEZE ,Pipe freeze set/clear" "Normal,Frozen"
setclrfld.byte 0x00 2. -0x01 2. -0x02 2. " CURBK ,Current bank set/clear" "Bank 0,Bank 1"
textline " "
setclrfld.byte 0x00 0. -0x01 0. -0x02 0. " DTGL ,Data toggle set/clear" "Data 0,Data 1"
group.byte (0x1E0+0x07)++0x00
line.byte 0x00 "PINTFLAG,Host Pipe Interrupt Flag Register"
eventfld.byte 0x00 5. " STALL ,STALL received interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " TXSTP ,Transmitted setup interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " PERR ,Pipe error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " TRFAIL ,Transfer fail interrupt flag" "No interrupt,Interrupt"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
eventfld.byte 0x00 0. " TRCPT ,Transfer complete interrupt flag" "No interrupt,Interrupt"
else
eventfld.byte 0x00 1. " TRCPT1 ,Transfer complete 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " TRCPT0 ,Transfer complete 0 interrupt flag" "No interrupt,Interrupt"
endif
group.byte (0x1E0+0x09)++0x00
line.byte 0x00 "PINTEN_SET/CLR,Host Interrupt Pipe Set Register"
setclrfld.byte 0x00 5. -0x00 5. -0x01 5. " STALL ,Stall interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. -0x00 4. -0x01 4. " TXSTP ,Transmitted setup interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. -0x00 3. -0x01 3. " PERR ,Pipe error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. -0x00 2. -0x01 2. " TRFAIL ,Transfer fail interrupt enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT ,Transfer complete interrupt enable" "Disabled,Enabled"
else
setclrfld.byte 0x00 1. -0x00 1. -0x01 1. " TRCPT1 ,Transfer complete 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. -0x00 0. -0x01 0. " TRCPT0 ,Transfer complete 0 interrupt enable" "Disabled,Enabled"
endif
base ad:per.l(ad:0x41005000+0x24)+0x0
group.long 0x00++0x03 "Pipe descriptor 0 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0x0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0x0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x20
group.long 0x00++0x03 "Pipe descriptor 1 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0x20))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0x20
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x20))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x40
group.long 0x00++0x03 "Pipe descriptor 2 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0x40))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0x40
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x40))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x60
group.long 0x00++0x03 "Pipe descriptor 3 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0x60))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0x60
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x60))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0x80
group.long 0x00++0x03 "Pipe descriptor 4 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0x80))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0x80
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0x80))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xA0
group.long 0x00++0x03 "Pipe descriptor 5 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0xA0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0xA0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xA0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xC0
group.long 0x00++0x03 "Pipe descriptor 6 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0xC0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0xC0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xC0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:per.l(ad:0x41005000+0x24)+0xE0
group.long 0x00++0x03 "Pipe descriptor 7 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41005000+0x100+0xE0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_0,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.word 0x08++0x01
line.word 0x00 "EXTREG_0,Extended Register"
hexmask.word 0x00 4.--14. 1. " VARIABLE ,Variable field send with extended token"
bitfld.word 0x00 0.--3. " SUBPID ,SUBPID field send with extended token" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_0,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0C++0x03
line.word 0x00 "CTRL_PIPE_0,Host Control Pipe"
sif cpuis("ATSAML21*")
rbitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
bitfld.word 0x00 12.--15. " PERMAX ,Pipe error max number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
bitfld.word 0x00 8.--11. " PEPNUM ,Pipe endpoint number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.word.byte 0x00 0.--6. 0x01 " PDADDR ,Pipe device address"
line.word 0x02 "STATUS_PIPE_0,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x02 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x02 3. " TOUTER ,TIME OUT error" "No error,Error"
else
rbitfld.word 0x02 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x02 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x02 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x02 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x02 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x02 0. " DTGLER ,Data toggle error" "No error,Error"
base ad:0x41005000+0x24+0x10+0xE0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41005000+0x100+0xE0))&0x38)==0x10)
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,128byte,256byte,512byte,1023byte"
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
else
group.long 0x04++0x03
line.long 0x00 "PCKSIZE_1,Packet Size"
bitfld.long 0x00 31. " AUTO_ZLP ,Automatic zero length packet" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SIZE ,Endpoint size" "8byte,16byte,32byte,64byte,?..."
hexmask.long.word 0x00 14.--27. 1. " MULTI_PACKET_SIZE ,Multiple packet size"
hexmask.long.word 0x00 0.--13. 1. " BYTE_COUNT ,Byte count"
endif
group.byte 0x0A++0x00
line.byte 0x00 "STATUS_BK_1,Host Status Bank"
bitfld.byte 0x00 1. " ERROFLOW ,Error flow status" "No error,Error"
bitfld.byte 0x00 0. " CRCERR ,CRC error" "No error,Error"
group.word 0x0E++0x01
line.word 0x00 "STATUS_PIPE_1,Host Status Pipe"
sif (cpuis("ATSAMDA1*")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
bitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 4. " CRC16ER ,CRC16 error" "No error,Error"
bitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
else
rbitfld.word 0x00 5.--7. " ERCNT ,Pipe error counter" "0,1,2,3,4,5,6,7"
rbitfld.word 0x00 4. " CRC16ER ,CRC16 ERROR" "No error,Error"
rbitfld.word 0x00 3. " TOUTER ,Time out error" "No error,Error"
endif
bitfld.word 0x00 2. " PIDER ,PID error" "No error,Error"
textline " "
bitfld.word 0x00 1. " DAPIDER ,Data PID error" "No error,Error"
bitfld.word 0x00 0. " DTGLER ,Data toggle error" "No error,Error"
endif
width 0x0B
tree.end
tree "ADC (Analog-to-Digital Converter)"
base ad:0x42004000
width 15.
group.byte 0x00++0x03
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 2. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.byte 0x01 "REFCTRL,Reference Control"
bitfld.byte 0x01 7. " REFCOMP ,Reference buffer offset compensation enable" "Disabled,Enabled"
bitfld.byte 0x01 0.--3. " REFSEL ,Reference selection" "INT1V,INTVCC0,INTVCC1,VREFA,VREFB,?..."
line.byte 0x02 "AVGCTRL,Average Control"
bitfld.byte 0x02 4.--6. " ADJRES ,Adjusting result/division coefficient" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
bitfld.byte 0x02 0.--3. " SAMPLENUM ,Number of samples to be collected" "1 sample,2 samples,4 samples,8 samples,16 samples,32 samples,64 samples,128 samples,256 samples,512 samples,1024 samples,?..."
line.byte 0x03 "SAMPCTRL,Sampling Time Control"
hexmask.byte 0x03 0.--5. 1. " SAMPLEN ,Sampling time length"
group.word 0x04++0x01
line.word 0x00 "CTRLB,Control B"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler configuration" "DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512"
bitfld.word 0x00 4.--5. " RESSEL ,Conversion result resolution" "12BIT,16BIT,10BIT,8BIT"
bitfld.word 0x00 3. " CORREN ,Digital correction logic enabled" "Disabled,Enabled"
textline " "
bitfld.word 0x00 2. " FREERUN ,Free running mode" "Single conversion mode,Free running mode"
bitfld.word 0x00 1. " LEFTADJ ,Left-Adjusted result" "Right-adjusted,Left-adjusted"
bitfld.word 0x00 0. " DIFFMODE ,Differential mode" "Singled-ended mode,Differential mode"
group.byte 0x08++0x00
line.byte 0x00 "WINCTRL,Window Monitor Control"
bitfld.byte 0x00 0.--2. " WINMODE ,Window monitor control" "No window mode(default),Mode 1: RESULT>WINLT,Mode 2: RESULT<WINUT,Mode 3: WINLT<RESULT<WINUT,Mode 4:!(WINLT<RESULT<WINUT),?..."
textline ""
group.byte 0x0C++0x00
line.byte 0x00 "SWTRIG,Software Trigger"
bitfld.byte 0x00 1. " START ,ADC start conversion" "Not started,Started"
bitfld.byte 0x00 0. " FLUSH ,ADC conversion flush" "No flush action,Flushed"
sif cpuis("ATSAMR21G*")
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,ADC AIN4,ADC AIN5,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,ADC AIN3,ADC AIN4,,,ADC AIN7,ADC AIN8,ADC AIN9,ADC AIN10,ADC AIN11,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,ADC AIN4,ADC AIN5,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,ADC AIN3,ADC AIN4,,,ADC AIN7,ADC AIN8,ADC AIN9,ADC AIN10,ADC AIN11,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
endif
elif cpuis("ATSAMHA1G14A")||cpuis("ATSAMHA1G15A")||cpuis("ATSAMHA1G16A")
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,?..."
endif
else
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,,,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,,,,,ADC AIN7,ADC AIN8,ADC AIN9,,,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,,,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,,,,,ADC AIN7,ADC AIN8,ADC AIN9,,,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
endif
endif
group.byte 0x14++0x00
line.byte 0x00 "EVCTRL,Event Control"
bitfld.byte 0x00 5. " WINMONEO ,Window monitor event out" "Disabled,Enabled"
bitfld.byte 0x00 4. " RESRDYEO ,Result ready event out" "Disabled,Enabled"
bitfld.byte 0x00 1. " SYNCEI ,Synchronization event in" "Not triggered,Triggered"
textline " "
bitfld.byte 0x00 0. " STARTEI ,Start conversion event in" "Not triggered,Triggered"
group.byte 0x17++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY_SET/CLR ,Synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " WINMON_SET/CLR ,Window monitor interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " OVERRUN_SET/CLR ,Overrun interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " RESRDY_SET/CLR ,Result ready interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x00 3. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " WINMON ,Window monitor" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " OVERRUN ,Overrun" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 0. " RESRDY ,Result ready" "Low,High"
rgroup.byte 0x19++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
if ((per.w(ad:0x42004000+0x04)&0x32)==0x00)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--11. 1. " RESULT[11:0] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x02)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 4.--15. 1. " RESULT[15:4] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x20)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--9. 1. " RESULT[9:0] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x22)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 6.--15. 1. " RESULT[15:6] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x30)
rgroup.byte 0x1A++0x00
line.byte 0x00 "RESULT,Result"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x32)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word.byte 0x00 8.--15. 1. " RESULT[15:8] ,Result conversion value"
else
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--15. 1. " RESULT[15:0] ,Result conversion value"
endif
group.word 0x1C++0x01
line.word 0x00 "WINLT,Window Monitor Lower Threshold"
group.word 0x20++0x01
line.word 0x00 "WINUT,Window Monitor Upper Threshold"
group.word 0x24++0x05
line.word 0x00 "GAINCORR,Gain Correction"
hexmask.word 0x00 0.--11. 1. " GAINCORR ,Gain correction value"
line.word 0x02 "OFFSETCORR,Offset Correction"
hexmask.word 0x02 0.--11. 1. " OFFSETCORR ,Offset correction value"
rgroup.word 0x28++0x01
line.word 0x00 "CALIB,Calibration"
hexmask.word.byte 0x00 8.--10. 1. " BIAS_CAL ,Bias calibration value"
hexmask.word.byte 0x00 0.--7. 1. " LINEARITY_CAL ,Linearity calibration value"
if ((per.b(ad:0x42004000+0x00)&0x02)==0x00)
group.byte 0x2A++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continue"
else
rgroup.byte 0x2A++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continue"
endif
width 0x0B
tree.end
tree "AC (Analog Comparators)"
base ad:0x42004400
width 14.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " LPMUX ,Low-Power Mux" "Low,High"
bitfld.byte 0x00 2. " RUNSTDBY ,Run in Standby" "Disabled,Continue"
textline " "
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software Reset" "No effect,Reset"
wgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B"
bitfld.byte 0x00 1. " START1 ,Comparator 1 Start Comparison" "No effect,Start"
bitfld.byte 0x00 0. " START0 ,Comparator 0 Start Comparison" "No effect,Start"
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 Event Input" "Disabled,Enabled"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 Event Input" "Disabled,Enabled"
bitfld.word 0x00 4. " WINEO0 ,Window 0 Event Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 Event Output Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 Event Output Enable" "Disabled,Enabled"
group.byte 0x05++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " WIN0_SET/CLR ,Window 0 Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " COMP1_SET/CLR ,Comparator 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " COMP0_SET/CLR ,Comparator 0 Interrupt Enable" "Disabled,Enabled"
group.byte 0x06++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 4. " WIN0 ,Window 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " COMP1 ,Comparator 1" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " COMP0 ,Comparator 0" "No interrupt,Interrupt"
if ((d.b(ad:0x42004400+0x09)&0x03)==0x02)
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 Current State" "0,1"
elif ((d.b(ad:0x42004400+0x09)&0x03)==0x01)
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 Current State" "0,1"
elif ((d.b(ad:0x42004400+0x09)&0x03)==0x03)
group.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 Current State" "0,1"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 Current State" "0,1"
else
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
endif
rgroup.byte 0x09++0x00
line.byte 0x00 "STATUSB,Status B"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization Busy" "Idle,Busy"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 Current Ready" "Not ready,Ready"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 Current Ready" "Not ready,Ready"
if ((d.b(ad:0x42004400+0x09)&0x03)==0x02)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 Current State" "0,1"
elif ((d.b(ad:0x42004400+0x09)&0x03)==0x01)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 Current State" "0,1"
elif ((d.b(ad:0x42004400+0x09)&0x03)==0x03)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 Current State" "0,1"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 Current State" "0,1"
else
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 Current State" "Above,Inside,Below,"
endif
group.byte 0x0C++0x00
line.byte 0x00 "WINCTRL,Window Control"
bitfld.byte 0x00 1.--2. " WINTSEL0 ,Window 0 Interrupt Selection" "Above,Inside,Below,Outside"
bitfld.byte 0x00 0. " WEN0 ,Window 0 Mode Enable" "Disabled,Enabled"
textline ""
if (((d.l(ad:0x42004400+0x10)&0x01)==0x00)&&((d.l(ad:0x42004400+0x10)&0x02)==0x00))
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 19. " HYST ,Hysteresis Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
bitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
elif (((d.l(ad:0x42004400+0x10)&0x01)==0x01)&&((d.l(ad:0x42004400+0x10)&0x02)==0x00))
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 19. " HYST ,Hysteresis Enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
rbitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
elif (((d.l(ad:0x42004400+0x10)&0x01)==0x00)&&((d.l(ad:0x42004400+0x10)&0x02)==0x02))
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
bitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
rbitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
if (((d.l(ad:0x42004400+0x14)&0x01)==0x00)&&((d.l(ad:0x42004400+0x14)&0x02)==0x00))
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 19. " HYST ,Hysteresis Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
bitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
elif (((d.l(ad:0x42004400+0x14)&0x01)==0x01)&&((d.l(ad:0x42004400+0x14)&0x02)==0x00))
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 19. " HYST ,Hysteresis Enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
rbitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
elif (((d.l(ad:0x42004400+0x14)&0x01)==0x00)&&((d.l(ad:0x42004400+0x14)&0x02)==0x02))
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
bitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,"
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed Selection" "LOW,HIGH,,"
rbitfld.long 0x00 1. " SINGLE ,Single-Shot Mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
group.byte 0x20++0x01
line.byte 0x00 "SCALER0,Scaler 0"
hexmask.byte 0x00 0.--5. 1. " VALUE ,Scaler Value"
line.byte 0x01 "SCALER1,Scaler 1"
hexmask.byte 0x01 0.--5. 1. " VALUE ,Scaler Value"
width 0xb
tree.end
tree "AT86RF233 (Single-chip radio transceiver)"
base ad:0x42005400
width 7.
tree.open "ATSAMR21 Registers"
group.word 0x00++0x01 "Front-End Control"
line.word 0x00 "FECTRL,AT86RF233 Front-End Control Signal Interface"
bitfld.word 0x00 10.--11. " F5CFG ,Front-end Control Signal 5 Configuration)" "DIG1,DIG2,DIG3,DIG4"
bitfld.word 0x00 8.--9. " F4CFG ,Front-end Control Signal 4 Configuration)" "DIG1,DIG2,DIG3,DIG4"
bitfld.word 0x00 6.--7. " F3CFG ,Front-end Control Signal 3 Configuration)" "DIG1,DIG2,DIG3,DIG4"
textline " "
bitfld.word 0x00 4.--5. " F2CFG ,Front-end Control Signal 2 Configuration)" "DIG1,DIG2,DIG3,DIG4"
bitfld.word 0x00 2.--3. " F1CFG ,Front-end Control Signal 1 Configuration)" "DIG1,DIG2,DIG3,DIG4"
bitfld.word 0x00 0.--1. " F0CFG ,Front-end Control Signal 0 Configuration)" "DIG1,DIG2,DIG3,DIG4"
tree.end
width 15.
base ad:0x42001800
tree.open "Internal AT86RF233 Registers (Communication by SERCOM4)"
; SERCOM4 (SPI mode) is linked internally to AT86RF233
; base base address of SERCOM4 is ad:0x42001800
; offset of SERCOM4.DATA is 0x28 (SPI mode)
; offset of SERCOM4.ADDR is 0x24 (SPI mode)
; SERCOM4.ADDR << 0y10[ADDRESS] <== Read access
; SERCOM4.ADDR << 0y11[ADDRESS] <== Write access
; SAVEOUT <address> %<format> <dataread> <datawrite>
rgroup.byte 0x28++0x00
out 0x24 %b 0y10000001
line.byte 0x00 "TRX_STATUS,Radio transceiver status, and CCA operation"
bitfld.byte 0x00 7. " CCA_DONE ,CCA request completion" "Not finished,Finished"
bitfld.byte 0x00 6. " CCA_STATUS ,CCA operation status" "Busy,Idle"
bitfld.byte 0x00 0.--4. " TRX_STATUS ,Radio transceiver status" "P_ON,BUSY_RX,BUSY_TX,,,,RX_ON,,TRX_OFF (CLK Mode),PLL_ON (TX_ON),,,,,,SLEEP,PREP_DEEP_SLEEP,BUSY_RX_AACK,BUSY_TX_ARET,,,,RX_AACK_ON,,,TX_ARET_ON,,,,,,STATE_TRANSITION_IN_PROGRESS"
group.byte 0x28++0x00
saveout 0x24 %b 0y10000010 0y11000010
line.byte 0x00 "TRX_STATE,Radio transceiver state control,"
rbitfld.byte 0x00 5.--7. " TRAC_STATUS ,Extended Operating Mode transaction result status" "SUCCESS,SUCCESS_DATA_PENDING,SUCCESS_WAIT_FOR_ACK,CHANNEL_ACCESS_FAILURE,,NO_ACK,,INVALID"
bitfld.byte 0x00 0.--4. " TRX_CMD ,Radio transceiver state transition command" "NOP,,TX_START,FORCE_TRX_OFF,FORCE_PLL_ON,,RX_ON,,TRX_OFF (CLK Mode),PLL_ON (TX_ON),,,,,,,PREP_DEEP_SLEEP,,,,,,RX_AACK_ON,,,TX_ARET_ON,?..."
group.byte 0x28++0x00
saveout 0x24 %b 0y10000011 0y11000011
line.byte 0x00 "TRX_CTRL_0,CLKM clock rate control"
bitfld.byte 0x00 7. " TOM_EN ,Time-Of-Flight Measurement mode enable" "Disabled,Enabled"
bitfld.byte 0x00 5. " PMU_EN ,Phase Difference Measurement Unit mode enable" "Disabled,Enabled"
bitfld.byte 0x00 4. " PMU_IF_INVERSE ,PMU Intermediate Frequency path" "Normal,Inverse"
textline " "
bitfld.byte 0x00 3. " CLKM_SHA_SEL ,CLKM clock rate change appearance" "Immediately,After SLEEP cycle"
bitfld.byte 0x00 0.--2. " CLKM_CTRL ,CLKM clock rate." "No clock,1MHz,2MHz,4MHz,8MHz,16MHz,250kHz,62.5kHz"
group.byte 0x28++0x00
saveout 0x24 %b 0y10000100 0y11000100
line.byte 0x00 "TRX_CTRL_1,Radio transceiver settings"
bitfld.byte 0x00 7. " PA_EXT_EN ,External RF front-end control Enable" "Disabled,Enabled"
bitfld.byte 0x00 6. " IRQ_2_EXT_EN ,Time stamping over DIG2 Enable" "Disabled,Enabled"
bitfld.byte 0x00 5. " TX_AUTO_CRC_ON ,Automatic FCS generation Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 4. " RX_BL_CTRL ,Frame Buffer Empty Indicator Enable" "Disabled,Enabled"
bitfld.byte 0x00 2.--3. " SPI_CMD_MODE ," "Default,Monitor TRX_STATUS,Monitor PHY_RSSI,Monitor IRQ_STATUS"
bitfld.byte 0x00 1. " IRQ_MASK_MODE ,Interrupt polling Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 0. " IRQ_POLARITY ,IRQ signal polarity" "High active,Low active"
group.byte 0x28++0x00
saveout 0x24 %b 0y10000101 0y11000101
line.byte 0x00 "PHY_TX_PWR,Output power of the transmitter"
bitfld.byte 0x00 0.--3. " TX_PWR ,Output power of the transmitter" "+4,+3.7,+3.4,+3,+2.5,+2,+1,0,-1,-2,-3,-4,-6,-8,-12,-17"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10000110
line.byte 0x00 "PHY_RSSI,Received Signal Strength Indicator"
bitfld.byte 0x00 7. " RX_CRC_VALID ,FCS check status for a received frame" "Not valid,Valid"
bitfld.byte 0x00 5.--6. " RND_VALUES ,Random Values" "3,2,1,0"
bitfld.byte 0x00 0.--4. " RSSI ,Received signal strength" "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"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10000111
line.byte 0x00 "PHY_ED_LEVEL,ED measurement result"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10001000
line.byte 0x00 "PHY_CC_CCA,CCA mode control"
bitfld.byte 0x00 7. " CCA_REQUEST ,CCA measurement manual request" "Not requested,Requested"
bitfld.byte 0x00 5.--6. " CCA_MODE ,CCA mode selection" "Mode 3a,Mode 1,Mode 2,Mode 3b"
bitfld.byte 0x00 0.--4. " CHANNEL ,RX/TX channel" ",,,,,,,,,,,2405MHz,2410MHz,2415MHz,2420MHz,2425MHz,2430MHz,2435MHz,2440MHz,2445MHz,2450MHz,2455MHz,2460MHz,2465MHz,2470MHz,2475MHz,2480MHz,?..."
rgroup.byte 0x28++0x00
out 0x24 %b 0y10001001
line.byte 0x00 "CCA_THRES,ED Threshold level for CCA"
bitfld.byte 0x00 0.--3. " CCA_ED_THRES ,threshold level for CCA" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x28++0x00
saveout 0x24 %b 0y10001010 0y11001010
line.byte 0x00 "RX_CTRL,Antenna Diversity control and receiver synchronization behavior."
bitfld.byte 0x00 6.--7. " PEL_SHIFT_VALUE ,Synchronization shift behavior" "Normal,Early,Late,"
bitfld.byte 0x00 0.--3. " PDT_THRES , Receiver correlation unit sensitivity control" ",,,3.(for ANT_DIV_EN = 1),,,,7.(for ANT_DIV_EN = 0),?..."
group.byte 0x28++0x00
saveout 0x24 %b 0y10001011 0y11001011
line.byte 0x00 "SFD_VALUE,Start-of-frame delimiter (SFD) value"
group.byte 0x28++0x00
saveout 0x24 %b 0y10001100 0y11001100
line.byte 0x00 "TRX_CTRL_2,Multi-purpose control register"
bitfld.byte 0x00 7. " RX_SAFE_MODE ,Dynamic Frame Buffer protection enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " OQPSK_DATA_RATE ,OQPSK PSDU data rate" "250kb/s,?..."
group.byte 0x28++0x00
saveout 0x24 %b 0y10001101 0y11001101
line.byte 0x00 "ANT_DIV,Antenna Diversity"
rbitfld.byte 0x00 7. " ANT_SEL ,Antenna select" "Antenna 0,Antenna 1"
bitfld.byte 0x00 3. " ANT_DIV_EN ,Antenna Diversity algorithm enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " ANT_EXT_SW_EN ,Antenna Diversity RF switch control enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 0.--1. " ANT_CTRL ,Antenna Diversity switch static control" "0.(for ANT_DIV_EN = 0),ANT_0/DIG1=L/DIG2=H,ANT_1/DIG1=H/DIG2=L,3.(for ANT_DIV_EN = 0)"
textline ""
group.byte 0x28++0x00
saveout 0x24 %b 0y10001110 0y11001110
line.byte 0x00 "IRQ_MASK,Mask register for interrupts"
bitfld.byte 0x00 7. " IRQ_MASK[7] ,IRQ_7 (BAT_LOW) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 6. " [6] ,IRQ_6 (TRX_UR) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 5. " [5] ,IRQ_5 (AMI) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 4. " [4] ,IRQ_4 (CCA_ED_DONE) Interrupt Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 3. " [3] ,IRQ_3 (TRX_END) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " [2] ,IRQ_2 (RX_START) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " [1] ,IRQ_1 (PLL_UNLOCK) Interrupt Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " [0] ,IRQ_0 (PLL_LOCK) Interrupt Enable" "Disabled,Enabled"
textline ""
hgroup.byte 0x28++0x00
saveout 0x24 %b 0y10001111 0y11001111
hide.byte 0x00 "IRQ_STATUS,Status of the pending interrupt requests"
in
group.byte 0x28++0x00
saveout 0x24 %b 0y10010000 0y11010000
line.byte 0x00 "VREG_CTRL,Voltage Regulators control"
bitfld.byte 0x00 7. " AVREG_EXT ,Internal voltage regulator enable" "Enabled,Disabled"
rbitfld.byte 0x00 6. " AVDD_OK ,Internal 1.8V regulated voltage supply AVDD stability" "Disabled or Not Stable,Enabled and Stable"
bitfld.byte 0x00 3. " DVREG_EXT ,Internal voltage regulator enable" "Enabled,Disabled"
textline " "
rbitfld.byte 0x00 2. " DVDD_OK ,Internal 1.8V regulated voltage supply DVDD stability" "Disabled or Not Stable,Enabled and Stable"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010001 0y11010001
line.byte 0x00 "BATMON,Battery monitor"
rbitfld.byte 0x00 5. " BATMON_OK ,External supply voltage level" "Below the threshold,Above the threshold"
bitfld.byte 0x00 6. " BATMON_HR ,Range and resolution of the battery monitor" "Low range,High range"
bitfld.byte 0x00 0.--3. " BATMON_VTH ,Voltage threshold values for the battery monitor (BATMON_HR = 1/BATMON_HR = 0)" "2.550/1.70,2.625/1.75,2.700/1.80,2.775/1.85,2.850/1.90,2.925/1.95,3.000/2.00,3.075/2.05,3.150/2.10,3.225/2.15,3.300/2.20,3.375/2.25,3.450/2.30,3.525/2.35,3.600/2.40,3.675/2.45"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010010 0y11010010
line.byte 0x00 "XOSC_CTRL,Crystal oscillator control"
bitfld.byte 0x00 4.--7. " XTAL_MODE ,Operating mode of the crystal oscillator" ",,,,,Internal crystal oscillator disabled,use external reference frequency,,,,,,,,,Internal crystal oscillator enabled and XOSCRF voltage regulator enabled"
textline " "
bitfld.byte 0x00 0.--3. " XTAL_TRIM ,Internal capacitance arrays control" "0pF,0.3pF,0.6pF,0.9pF,1.2pF,1.5pF,1.8pF,2.1pF,2.4pF,2.7pF,3.0pF,3.3pF,3.6pF,3.9pF,4.2pF,4.5pF"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010011 0y11010011
line.byte 0x00 "CC_CTRL_0,Frequency selection control"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010100 0y11010100
line.byte 0x00 "CC_CTRL_1,Frequency bands selection control"
bitfld.byte 0x00 0.--3. " CC_BAND ,CC_BAND selection" "IEEE 802.15.4,,,,,,,,The frequency band 0x8,frequency band 0x9,?..."
group.byte 0x28++0x00
saveout 0x24 %b 0y10010101 0y11010101
line.byte 0x00 "RX_SYN,Blocking of receiver path and the sensitivity threshold of the receiver control"
bitfld.byte 0x00 7. " RX_PDT_DIS ,RX path enable" "Enabled,Disabled"
bitfld.byte 0x00 0.--3. " RX_PDT_LEVEL ,Receiver Desensitization Threshold Level" "Maximum RX sensitivity,RX input level > -94,RX input level > -91,RX input level > -88,RX input level > -85,RX input level > -82,RX input level > -79,RX input level > -76,RX input level > -73,RX input level > -70,RX input level > -67,RX input level > -64,RX input level > -61,RX input level > -58,RX input level > -55,RX input level > -52"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010110 0y11010110
line.byte 0x00 "TRX_RPC,Reduce Power Consumption modes control"
bitfld.byte 0x00 6.--7. " RX_RPC_CTRL ,Internal performance settings within Smart Receiving mode" "Minimum power saving,,,Maximum power saving"
bitfld.byte 0x00 5. " RX_RPC_EN ,Smart Receiving mode enable" "Disabled,Enabled"
bitfld.byte 0x00 4. " PDT_RPC_EN ,Reduced sensitivity RPC mode enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 3. " PLL_RPC_EN ,Extended PLL behaviour enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " XAH_TX__RPC_EN ,Automatic TX power handling enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " IPAN_RPC_EN ,RPC PAN handling enable" "Disabled,Enabled"
group.byte 0x28++0x00
saveout 0x24 %b 0y10010111 0y11010111
line.byte 0x00 "XAH_CTRL_1,Multi-purpose controls register for Extended Operating Mode"
bitfld.byte 0x00 7. " ARET_TX_TS_EN ,TX_ARET time stamping via DIG2 enable" "Disabled,Enabled"
bitfld.byte 0x00 5. " AACK_FLTR_RES_FT ,Filtering reserved frame types enable" "Disabled,Enabled"
bitfld.byte 0x00 4. " AACK_UPLD_RES_FT ,Upload of reserved frame types enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 2. " AACK_ACK_TIME ,Acknowledgement frame response time within RX_AACK mode" "12 symbol periods,2 symbol periods"
bitfld.byte 0x00 1. " AACK_PROM_MODE ,Promiscuous mode enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " AACK_SPC_EN ,Synchronization point correction enable" "Disabled,Enabled"
group.byte 0x28++0x00
saveout 0x24 %b 0y10011000 0y11011000
line.byte 0x00 "FTN_CTRL,Automatic Filter Tuning control"
bitfld.byte 0x00 7. " FTN_START ,Manual start of a filter calibration cycle" "Finished,Started"
hexmask.byte 0x00 0.--5. 1. " FTNV ,Filter tuning value"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10011001
line.byte 0x00 "XAH_CTRL_2,Extended Operating Mode current counter values"
bitfld.byte 0x00 4.--7. " ARET_FRAME_RETRIES ,frame retry counter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.byte 0x00 0.--3. " ARET_CSMA_RETRIES ,CSMA-CA retry counter value" "0,1,2,3,4,5,?..."
group.byte 0x28++0x00
saveout 0x24 %b 0y10011010 0y11011010
line.byte 0x00 "PLL_CF,PLL center frequency calibration."
bitfld.byte 0x00 7. " PLL_CF_START ,Manual start of center frequency calibration cycle" "Finished,Started"
bitfld.byte 0x00 0.--3. " PLL_CF ,PLL_CF" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x28++0x00
saveout 0x24 %b 0y10011011 0y11011011
line.byte 0x00 "PLL_DCU,cell calibration loop control"
bitfld.byte 0x00 7. " PLL_DCU_START ,Manual start of delay cell calibration cycle" "Finished,Started"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10011100
line.byte 0x00 "PART_NUM,Part number of the device"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10011101
line.byte 0x00 "MAN_ID_0,Version number of the device"
rgroup.byte 0x28++0x00
out 0x24 %b 0y10011110
line.byte 0x00 "MAN_ID_0,Part one of the JEDEC manufacturer ID."
rgroup.byte 0x28++0x00
out 0x24 %b 0y10011111
line.byte 0x00 "MAN_ID_1,Part two of the JEDEC manufacturer ID."
group.byte 0x28++0x00
saveout 0x24 %b 0y10100000 0y11100000
line.byte 0x00 "SHORT_ADDR_0,Lower 8-bit of the MAC short address for Frame Filter address recognition"
group.byte 0x28++0x00
saveout 0x24 %b 0y1010001 0y11100001
line.byte 0x00 "SHORT_ADDR_1,Higher 8-bit of the MAC short address"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100010 0y11100010
line.byte 0x00 "PAN_ID_0,Lower 8-bit of the MAC PAN ID"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100011 0y11100011
line.byte 0x00 "PAN_ID_1,Higher 8-bit of the MAC PAN ID"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100100 0y11100100
line.byte 0x00 "IEEE_ADDR_0,MAC IEEE address bits[7:0]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100101 0y11100101
line.byte 0x00 "IEEE_ADDR_1,MAC IEEE address bits[15:8]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100110 0y11100110
line.byte 0x00 "IEEE_ADDR_2,MAC IEEE address bits[23:16]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10100111 0y11100111
line.byte 0x00 "IEEE_ADDR_3,MAC IEEE address bits[31:24]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101000 0y11101000
line.byte 0x00 "IEEE_ADDR_4,MAC IEEE address bits[39:32]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101001 0y11101001
line.byte 0x00 "IEEE_ADDR_5,MAC IEEE address bits[47:40]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101010 0y11101010
line.byte 0x00 "IEEE_ADDR_6,MAC IEEE address bits[55:48]"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101011 0y11101011
line.byte 0x00 "IEEE_ADDR_7,MAC IEEE address bits[63:56]"
textline " "
group.byte 0x28++0x00
saveout 0x24 %b 0y10101100 0y11101100
line.byte 0x00 "XAH_CTRL_0,Control register for Extended Operating Mode"
bitfld.byte 0x00 4.--7. " MAX_FRAME_RETRIES ,Number of retransmission attempts before the transaction gets cancelled" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.byte 0x00 1.--3. " MAX_CSMA_RETRIES ,Number of retries to repeat the CSMA-CA procedure before the transaction gets cancelled" "No retries,One,Two,Three,Four,Five,,No CSMA-CA"
bitfld.byte 0x00 0. " SLOTTED_OPERATION ,Slotted Operation usage" "Unslotted Mode,Slotted Operation Mode"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101101 0y11101101
line.byte 0x00 "CSMA_SEED_0,Lower 8-bit of CSMA_SEED"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101110 0y11101110
line.byte 0x00 "CSMA_SEED_1,RX_AACK control, and higher part of CSMA_SEED"
bitfld.byte 0x00 6.--7. " AACK_FVN_MODE ,ACK behaviour dependent on FCF frame version number" "Accept 0,Accept 0 or 1,Accept 0 or 1 or 2,Accept all"
bitfld.byte 0x00 5. " AACK_SET_PD ,Pending data bit" "Set to zero,Set to one"
bitfld.byte 0x00 4. " AACK_DIS_ACK ,Acknowledgement frames transmission" "Transmitted,Not transmitted"
textline " "
bitfld.byte 0x00 3. " AACK_I_AM_COORD ,PAN coordinator addressing enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " CSMA_SEED_1 , Higher 3-bit of the CSMA_SEED" "0,1,2,3,4,5,6,7"
group.byte 0x28++0x00
saveout 0x24 %b 0y10101111 0y11101111
line.byte 0x00 "CSMA_BE"
bitfld.byte 0x00 4.--7. " MAX_BE ,Maximum backoff exponent used in the CSMA-CA algorithm" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.byte 0x00 0.--3. " MIN_BE ,Minimum backoff exponent used in the CSMA-CA algorithm" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x28++0x00
saveout 0x24 %b 0y10110110 0y11110110
line.byte 0x00 "TST_CTRL_DIGI,continuous transmission test mode"
bitfld.byte 0x00 0.--3. " TST_CTRL_DIG ,Continuous Transmission mode enable" "No mode is active,,,,,,,,,,,,,,,Continuous Transmission Enabled"
group.byte 0x28++0x00
saveout 0x24 %b 0y10111100 0y11111100
line.byte 0x00 "TST_AGC"
bitfld.byte 0x00 5. " AGC_HOLD_SEL ,AGC operation mode selection" "Normal mode,Manual control"
bitfld.byte 0x00 4. " AGC_RST ,AGC gain control reset" "No reset,Reset"
bitfld.byte 0x00 3. " AGC_OFF ,Automatic AGC gain regulation on/off" "ON,OFF"
textline " "
bitfld.byte 0x00 2. " AGC_HOLD ,AGC running mode control" "Free running,Frozen"
bitfld.byte 0x00 0.--1. " GC ,Receiver gain" "Maximum,Medium,Minimum,"
group.byte 0x28++0x00
saveout 0x24 %b 0y10111101 0y11111101
line.byte 0x00 "TST_SDM"
bitfld.byte 0x00 7. " MOD_SEL ,Modulation data source mode" "Normal operation,Manual control"
bitfld.byte 0x00 6. " MOD ,Manual modulation signal setting" "Continuous 0 chips,Continuous 1 chips"
bitfld.byte 0x00 5. " TX_RX ,TX and RX PLL frequency setting within manual control mode" "RX PLL frequency,TX PLL frequency"
textline " "
bitfld.byte 0x00 4. " TX_RX_SEL ,PLL frequency control mode" "Normal operation,Manual control"
textline ""
width 27.
rgroup.byte 0x28++0x00
out 0x24 %b 0y10111011
line.byte 0x00 "PHY_TX_TIME/PHY_PMU_VALUE,TX_TIME measurement value / Phase Difference measurement value"
tree.end
width 0xb
tree.end
textline ""