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

18269 lines
1.1 MiB

; --------------------------------------------------------------------------------
; @Title: ATSAML21xxx On-Chip Peripherals
; @Props: Released
; @Author: WWI
; @Manufacturer: ATMEL - Atmel Corporation
; @Doc: Atmel-42385-SAM-L21_Datasheet.pdf (Preliminary-07/2015)
; @Core: Cortex-M0P
; @Copyright: (C) 1989-2016 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: peratsaml21.per 12528 2020-11-12 13:57:39Z bschroefel $
; Known problems:
; SERCOM: In I2C master mode same offset value for INTFLAG and DATA registers
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 "PAC (Peripheral Access Controller)"
base ad:0x44000000
width 15.
group.long 0x00++0x03
line.long 0x00 "WRCTRL,Write Control"
hexmask.long.byte 0x00 16.--23. 1. " KEY ,Peripheral Access Control Key"
hexmask.long.word 0x00 0.--15. 1. " PERID ,Peripheral Identifier"
group.byte 0x04++0x00
line.byte 0x00 "EVCTRL,Event Control"
bitfld.byte 0x00 0. " ERREO ,Peripheral Access Error Event Output" "Disabled,Enabled"
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " ERR ,Peripheral Access Error Interrupt Enable" "Disabled,Enabled"
group.long 0x10++0x17
line.long 0x00 "INTFLAGAHB,AHB Slave Bus Interrupt Flag Status and Clear"
eventfld.long 0x00 25. " HSRAMLP ,Interrupt Flag for SLAVE HSRAMLP" "No interrupt,Interrupt"
eventfld.long 0x00 24. " L2HBRIDGES ,Interrupt Flag for SLAVE L2HBRIDGES" "No interrupt,Interrupt"
eventfld.long 0x00 23. " LPRAMDMAC ,Interrupt Flag for SLAVE LPRAMDMAC" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 21. " LPRAMHS ,Interrupt Flag for SLAVE LPRAMHS" "No interrupt,Interrupt"
eventfld.long 0x00 19. " HPB4 ,Interrupt Flag for SLAVE HPB4" "No interrupt,Interrupt"
eventfld.long 0x00 18. " HPB3 ,Interrupt Flag for SLAVE HPB3" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 17. " HPB2 ,Interrupt Flag for SLAVE HPB2" "No interrupt,Interrupt"
eventfld.long 0x00 16. " HPB0 ,Interrupt Flag for SLAVE HPB0" "No interrupt,Interrupt"
eventfld.long 0x00 4. " H2LBRIDGES ,Interrupt Flag for SLAVE H2LBRIDGES" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 3. " HPB1 ,Interrupt Flag for SLAVE HPB1" "No interrupt,Interrupt"
eventfld.long 0x00 2. " HSRAMDSU ,Interrupt Flag for SLAVE HSRAMDSU" "No interrupt,Interrupt"
eventfld.long 0x00 1. " HSRAMCM0P ,Interrupt Flag for SLAVE HSRAMCM0P" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 0. " FLASH ,Interrupt Flag for SLAVE FLASH" "No interrupt,Interrupt"
line.long 0x04 "INTFLAGA,Peripheral Interrupt Flag Status and Clear A"
eventfld.long 0x04 12. " DSUSTANDBY ,Interrupt Flag for DSUSTANDBY" "No interrupt,Interrupt"
eventfld.long 0x04 10. " PORT ,Interrupt Flag for PORT" "No interrupt,Interrupt"
eventfld.long 0x04 9. " EIC ,Interrupt Flag for EIC" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 8. " RTC ,Interrupt Flag for RTC" "No interrupt,Interrupt"
eventfld.long 0x04 7. " WDT ,Interrupt Flag for WDT" "No interrupt,Interrupt"
eventfld.long 0x04 6. " GCLK ,Interrupt Flag for GCLK" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 5. " SUPC ,Interrupt Flag for SUPC" "No interrupt,Interrupt"
eventfld.long 0x04 4. " OSC32KCTRL ,Interrupt Flag for OSC32KCTRL" "No interrupt,Interrupt"
eventfld.long 0x04 3. " OSCCTRL ,Interrupt Flag for OSCCTRL" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 2. " RSTC ,Interrupt Flag for RSTC" "No interrupt,Interrupt"
eventfld.long 0x04 1. " MCLK ,Interrupt Flag for MCLK" "No interrupt,Interrupt"
eventfld.long 0x04 0. " PM ,Interrupt Flag for PM" "No interrupt,Interrupt"
line.long 0x08 "INTFLAGB,Peripheral Interrupt Flag Status and Clear B"
eventfld.long 0x08 4. " HMATRIXHS ,Interrupt Flag for HMATRIXHS" "No interrupt,Interrupt"
eventfld.long 0x08 3. " MTB ,Interrupt Flag for MTB" "No interrupt,Interrupt"
eventfld.long 0x08 2. " NVMCTRL ,Interrupt Flag for NVMCTRL" "No interrupt,Interrupt"
textline " "
eventfld.long 0x08 1. " DSU ,Interrupt Flag for DSU" "No interrupt,Interrupt"
eventfld.long 0x08 0. " USB ,Interrupt Flag for USB" "No interrupt,Interrupt"
line.long 0x0C "INTFLAGC,Peripheral Interrupt Flag Status and Clear C"
eventfld.long 0x0C 14. " TRNG ,Interrupt Flag for TRNG" "No interrupt,Interrupt"
eventfld.long 0x0C 13. " AES ,Interrupt Flag for AES" "No interrupt,Interrupt"
eventfld.long 0x0C 12. " DAC ,Interrupt Flag for DAC" "No interrupt,Interrupt"
textline " "
sif cpuis("ATSAML21J*")
eventfld.long 0x0C 11. " TC3 ,Interrupt Flag for TC3" "No interrupt,Interrupt"
eventfld.long 0x0C 10. " TC2 ,Interrupt Flag for TC2" "No interrupt,Interrupt"
textline " "
endif
eventfld.long 0x0C 9. " TC1 ,Interrupt Flag for TC1" "No interrupt,Interrupt"
textline " "
eventfld.long 0x0C 8. " TC0 ,Interrupt Flag for TC0" "No interrupt,Interrupt"
eventfld.long 0x0C 7. " TCC2 ,Interrupt Flag for TCC2" "No interrupt,Interrupt"
eventfld.long 0x0C 6. " TCC1 ,Interrupt Flag for TCC1" "No interrupt,Interrupt"
textline " "
eventfld.long 0x0C 5. " TCC0 ,Interrupt Flag for TCC0" "No interrupt,Interrupt"
textline " "
sif !cpuis("ATSAML21E*")
eventfld.long 0x0C 4. " SERCOM4 ,Interrupt Flag for SERCOM4" "No interrupt,Interrupt"
textline " "
endif
eventfld.long 0x0C 3. " SERCOM3 ,Interrupt Flag for SERCOM3" "No interrupt,Interrupt"
textline " "
eventfld.long 0x0C 2. " SERCOM2 ,Interrupt Flag for SERCOM2" "No interrupt,Interrupt"
eventfld.long 0x0C 1. " SERCOM1 ,Interrupt Flag for SERCOM1" "No interrupt,Interrupt"
eventfld.long 0x0C 0. " SERCOM0 ,Interrupt Flag for SERCOM0" "No interrupt,Interrupt"
line.long 0x10 "INTFLAGD,Peripheral Interrupt Flag Status and Clear D"
eventfld.long 0x10 7. " CCL ,Interrupt Flag for CCL" "No interrupt,Interrupt"
eventfld.long 0x10 6. " OPAMP ,Interrupt Flag for OPAMP" "No interrupt,Interrupt"
eventfld.long 0x10 5. " PTC ,Interrupt Flag for PTC" "No interrupt,Interrupt"
textline " "
eventfld.long 0x10 4. " AC ,Interrupt Flag for AC" "No interrupt,Interrupt"
eventfld.long 0x10 3. " ADC ,Interrupt Flag for ADC" "No interrupt,Interrupt"
eventfld.long 0x10 2. " TC4 ,Interrupt Flag for TC4" "No interrupt,Interrupt"
textline " "
sif !cpuis("ATSAML21E*")
eventfld.long 0x10 1. " SERCOM5 ,Interrupt Flag for SERCOM5" "No interrupt,Interrupt"
textline " "
endif
eventfld.long 0x10 0. " EVSYS ,Interrupt Flag for EVSYS" "No interrupt,Interrupt"
line.long 0x14 "INTFLAGE,Peripheral Interrupt Flag Status and Clear E"
eventfld.long 0x14 2. " HMATRIXLP ,Interrupt Flag for HMATRIXLP" "No interrupt,Interrupt"
eventfld.long 0x14 1. " DMAC ,Interrupt Flag for DMAC" "No interrupt,Interrupt"
eventfld.long 0x14 0. " PAC ,Interrupt Flag for PAC" "No interrupt,Interrupt"
rgroup.long 0x34++0x13
line.long 0x00 "STATUSA,Peripheral Write Protection Status A"
bitfld.long 0x00 12. " DSUSTANDBY ,Peripheral DSUSTANDBY Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 10. " PORT ,Peripheral PORT Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 9. " EIC ,Peripheral EIC Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x00 8. " RTC ,Peripheral RTC Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 7. " WDT ,Peripheral WDT Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 6. " GCLK ,Peripheral GCLK Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x00 5. " SUPC ,Peripheral SUPC Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 4. " OSC32KCTRL ,Peripheral OSC32KCTRL Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 3. " OSCCTRL ,Peripheral OSCCTRL Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x00 2. " RSTC ,Peripheral RSTC Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 1. " MCLK ,Peripheral MCLK Write Protection Status" "Not protected,Protected"
bitfld.long 0x00 0. " PM ,Peripheral PM Write Protection Status" "Not protected,Protected"
line.long 0x04 "STATUSB,Peripheral Write Protection Status B"
bitfld.long 0x04 4. " HMATRIXHS ,Peripheral HMATRIXHS Write Protection Status" "Not protected,Protected"
bitfld.long 0x04 3. " MTB ,Peripheral MTB Write Protection Status" "Not protected,Protected"
bitfld.long 0x04 2. " NVMCTRL ,Peripheral NVMCTRL Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x04 1. " DSU ,Peripheral DSU Write Protection Status" "Not protected,Protected"
bitfld.long 0x04 0. " USB ,Peripheral USB Write Protection Status" "Not protected,Protected"
line.long 0x08 "STATUSC,Peripheral Write Protection Status C"
bitfld.long 0x08 14. " TRNG ,Peripheral TRNG Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 13. " AES ,Peripheral AES Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 12. " DAC ,Peripheral DAC Write Protection Status" "Not protected,Protected"
textline " "
sif cpuis("ATSAML21J*")
bitfld.long 0x08 11. " TC3 ,Peripheral TC3 Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 10. " TC2 ,Peripheral TC2 Write Protection Status" "Not protected,Protected"
textline " "
endif
bitfld.long 0x08 9. " TC1 ,Peripheral TC1 Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x08 8. " TC0 ,Peripheral TC0 Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 7. " TCC2 ,Peripheral TCC2 Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 6. " TCC1 ,Peripheral TCC1 Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x08 5. " TCC0 ,Peripheral TCC0 Write Protection Status" "Not protected,Protected"
textline " "
sif !cpuis("ATSAML21E*")
bitfld.long 0x08 4. " SERCOM4 ,Peripheral SERCOM4 Write Protection Status" "Not protected,Protected"
textline " "
endif
bitfld.long 0x08 3. " SERCOM3 ,Peripheral SERCOM3 Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x08 2. " SERCOM2 ,Peripheral SERCOM2 Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 1. " SERCOM1 ,Peripheral SERCOM1 Write Protection Status" "Not protected,Protected"
bitfld.long 0x08 0. " SERCOM0 ,Peripheral SERCOM0 Write Protection Status" "Not protected,Protected"
line.long 0x0C "STATUSD,Peripheral Write Protection Status D"
bitfld.long 0x0C 7. " CCL ,Peripheral CCL Write Protection Status" "Not protected,Protected"
bitfld.long 0x0C 6. " OPAMP ,Peripheral OPAMP Write Protection Status" "Not protected,Protected"
bitfld.long 0x0C 5. " PTC ,Peripheral PTC Write Protection Status" "Not protected,Protected"
textline " "
bitfld.long 0x0C 4. " AC ,Peripheral AC Write Protection Status" "Not protected,Protected"
bitfld.long 0x0C 3. " ADC ,Peripheral ADC Write Protection Status" "Not protected,Protected"
bitfld.long 0x0C 2. " TC4 ,Peripheral TC4 Write Protection Status" "Not protected,Protected"
textline " "
sif !cpuis("ATSAML21E*")
bitfld.long 0x0C 1. " SERCOM5 ,Peripheral SERCOM5 Write Protection Status" "Not protected,Protected"
textline " "
endif
bitfld.long 0x0C 0. " EVSYS ,Peripheral EVSYS Write Protection Status" "Not protected,Protected"
line.long 0x10 "STATUSE,Peripheral Write Protection Status E"
bitfld.long 0x10 2. " HMATRIXLP ,Peripheral HMATRIXLP Write Protection Status" "Not protected,Protected"
bitfld.long 0x10 1. " DMAC ,Peripheral DMAC Write Protection Status" "Not protected,Protected"
bitfld.long 0x10 0. " PAC ,Peripheral PAC Write Protection Status" "Not protected,Protected"
width 0x0B
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:0x40001800
width 11.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 0. " SWRST ,Software Reset" "Reset,No reset"
rgroup.long 0x04++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 10. " GENCTRL8 ,Generator Control 8 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 9. " GENCTRL7 ,Generator Control 7 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 8. " GENCTRL6 ,Generator Control 6 Synchronization Busy" "Completed,Started"
textline " "
bitfld.long 0x00 7. " GENCTRL5 ,Generator Control 5 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 6. " GENCTRL4 ,Generator Control 4 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 5. " GENCTRL3 ,Generator Control 3 Synchronization Busy" "Completed,Started"
textline " "
bitfld.long 0x00 4. " GENCTRL2 ,Generator Control 2 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 3. " GENCTRL1 ,Generator Control 1 Synchronization Busy" "Completed,Started"
bitfld.long 0x00 2. " GENCTRL0 ,Generator Control 0 Synchronization Busy" "Completed,Started"
textline " "
bitfld.long 0x00 0. " SWRST ,SWRST Synchronization Busy" "Completed,Started"
group.long 0x20++0x03
line.long 0x00 "GENCTRL0,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x24++0x03
line.long 0x00 "GENCTRL1,Generator Control"
hexmask.long.word 0x00 16.--31. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x28++0x03
line.long 0x00 "GENCTRL2,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x2C++0x03
line.long 0x00 "GENCTRL3,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x30++0x03
line.long 0x00 "GENCTRL4,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x34++0x03
line.long 0x00 "GENCTRL5,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x38++0x03
line.long 0x00 "GENCTRL6,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x3C++0x03
line.long 0x00 "GENCTRL7,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
group.long 0x40++0x03
line.long 0x00 "GENCTRL8,Generator Control"
hexmask.long.byte 0x00 16.--23. 1. " DIV ,Division Factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide Selection" "DIV,2^(DIV+1)"
textline " "
bitfld.long 0x00 11. " OE ,Output Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " OOV ,Output Off Value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve Duty Cycle" "Not balanced,Balanced"
textline " "
bitfld.long 0x00 8. " GENEN ,Generator Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--4. " SRC ,Generator Clock Source Selection" "XOSC,GCLK_IN,GCLK_GEN1,OSCULP32K,OSC32K,XOSC32K,OSC16M,DFLL48M,DPLL96M,?..."
tree "PCHCTRL 0..34"
if (((d.l(ad:0x40001800+0x80))&0x80)==0x80)
rgroup.long 0x80++0x03
line.long 0x00 "PCHCTRL0,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x80++0x03
line.long 0x00 "PCHCTRL0,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x84))&0x80)==0x80)
rgroup.long 0x84++0x03
line.long 0x00 "PCHCTRL1,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x84++0x03
line.long 0x00 "PCHCTRL1,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x88))&0x80)==0x80)
rgroup.long 0x88++0x03
line.long 0x00 "PCHCTRL2,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x88++0x03
line.long 0x00 "PCHCTRL2,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x8C))&0x80)==0x80)
rgroup.long 0x8C++0x03
line.long 0x00 "PCHCTRL3,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x8C++0x03
line.long 0x00 "PCHCTRL3,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x90))&0x80)==0x80)
rgroup.long 0x90++0x03
line.long 0x00 "PCHCTRL4,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x90++0x03
line.long 0x00 "PCHCTRL4,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x94))&0x80)==0x80)
rgroup.long 0x94++0x03
line.long 0x00 "PCHCTRL5,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x94++0x03
line.long 0x00 "PCHCTRL5,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x98))&0x80)==0x80)
rgroup.long 0x98++0x03
line.long 0x00 "PCHCTRL6,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x98++0x03
line.long 0x00 "PCHCTRL6,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x9C))&0x80)==0x80)
rgroup.long 0x9C++0x03
line.long 0x00 "PCHCTRL7,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x9C++0x03
line.long 0x00 "PCHCTRL7,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xA0))&0x80)==0x80)
rgroup.long 0xA0++0x03
line.long 0x00 "PCHCTRL8,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xA0++0x03
line.long 0x00 "PCHCTRL8,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xA4))&0x80)==0x80)
rgroup.long 0xA4++0x03
line.long 0x00 "PCHCTRL9,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xA4++0x03
line.long 0x00 "PCHCTRL9,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xA8))&0x80)==0x80)
rgroup.long 0xA8++0x03
line.long 0x00 "PCHCTRL10,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xA8++0x03
line.long 0x00 "PCHCTRL10,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xAC))&0x80)==0x80)
rgroup.long 0xAC++0x03
line.long 0x00 "PCHCTRL11,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xAC++0x03
line.long 0x00 "PCHCTRL11,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xB0))&0x80)==0x80)
rgroup.long 0xB0++0x03
line.long 0x00 "PCHCTRL12,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xB0++0x03
line.long 0x00 "PCHCTRL12,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xB4))&0x80)==0x80)
rgroup.long 0xB4++0x03
line.long 0x00 "PCHCTRL13,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xB4++0x03
line.long 0x00 "PCHCTRL13,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xB8))&0x80)==0x80)
rgroup.long 0xB8++0x03
line.long 0x00 "PCHCTRL14,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xB8++0x03
line.long 0x00 "PCHCTRL14,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xBC))&0x80)==0x80)
rgroup.long 0xBC++0x03
line.long 0x00 "PCHCTRL15,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xBC++0x03
line.long 0x00 "PCHCTRL15,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xC0))&0x80)==0x80)
rgroup.long 0xC0++0x03
line.long 0x00 "PCHCTRL16,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xC0++0x03
line.long 0x00 "PCHCTRL16,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xC4))&0x80)==0x80)
rgroup.long 0xC4++0x03
line.long 0x00 "PCHCTRL17,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xC4++0x03
line.long 0x00 "PCHCTRL17,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xC8))&0x80)==0x80)
rgroup.long 0xC8++0x03
line.long 0x00 "PCHCTRL18,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xC8++0x03
line.long 0x00 "PCHCTRL18,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xCC))&0x80)==0x80)
rgroup.long 0xCC++0x03
line.long 0x00 "PCHCTRL19,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xCC++0x03
line.long 0x00 "PCHCTRL19,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xD0))&0x80)==0x80)
rgroup.long 0xD0++0x03
line.long 0x00 "PCHCTRL20,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xD0++0x03
line.long 0x00 "PCHCTRL20,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xD4))&0x80)==0x80)
rgroup.long 0xD4++0x03
line.long 0x00 "PCHCTRL21,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xD4++0x03
line.long 0x00 "PCHCTRL21,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xD8))&0x80)==0x80)
rgroup.long 0xD8++0x03
line.long 0x00 "PCHCTRL22,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xD8++0x03
line.long 0x00 "PCHCTRL22,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xDC))&0x80)==0x80)
rgroup.long 0xDC++0x03
line.long 0x00 "PCHCTRL23,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xDC++0x03
line.long 0x00 "PCHCTRL23,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xE0))&0x80)==0x80)
rgroup.long 0xE0++0x03
line.long 0x00 "PCHCTRL24,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xE0++0x03
line.long 0x00 "PCHCTRL24,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xE4))&0x80)==0x80)
rgroup.long 0xE4++0x03
line.long 0x00 "PCHCTRL25,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xE4++0x03
line.long 0x00 "PCHCTRL25,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xE8))&0x80)==0x80)
rgroup.long 0xE8++0x03
line.long 0x00 "PCHCTRL26,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xE8++0x03
line.long 0x00 "PCHCTRL26,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xEC))&0x80)==0x80)
rgroup.long 0xEC++0x03
line.long 0x00 "PCHCTRL27,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xEC++0x03
line.long 0x00 "PCHCTRL27,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xF0))&0x80)==0x80)
rgroup.long 0xF0++0x03
line.long 0x00 "PCHCTRL28,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xF0++0x03
line.long 0x00 "PCHCTRL28,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xF4))&0x80)==0x80)
rgroup.long 0xF4++0x03
line.long 0x00 "PCHCTRL29,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xF4++0x03
line.long 0x00 "PCHCTRL29,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xF8))&0x80)==0x80)
rgroup.long 0xF8++0x03
line.long 0x00 "PCHCTRL30,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xF8++0x03
line.long 0x00 "PCHCTRL30,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0xFC))&0x80)==0x80)
rgroup.long 0xFC++0x03
line.long 0x00 "PCHCTRL31,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0xFC++0x03
line.long 0x00 "PCHCTRL31,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x100))&0x80)==0x80)
rgroup.long 0x100++0x03
line.long 0x00 "PCHCTRL32,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x100++0x03
line.long 0x00 "PCHCTRL32,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x104))&0x80)==0x80)
rgroup.long 0x104++0x03
line.long 0x00 "PCHCTRL33,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x104++0x03
line.long 0x00 "PCHCTRL33,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
if (((d.l(ad:0x40001800+0x108))&0x80)==0x80)
rgroup.long 0x108++0x03
line.long 0x00 "PCHCTRL34,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
else
group.long 0x108++0x03
line.long 0x00 "PCHCTRL34,Peripheral Channel Control"
bitfld.long 0x00 7. " WRTLOCK ,Write Lock" "Not locked,Locked"
bitfld.long 0x00 6. " CHEN ,Channel Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--3. " GEN ,Generator Selection" "Generator 0,Generator 1,Generator 2,Generator 3,Generator 4,Generator 5,Generator 6,Generator 7,Generator 8,?..."
endif
tree.end
width 0x0B
tree.end
tree "MCLK (Main Clock)"
base ad:0x40000400
width 15.
hgroup.byte 0x00++0x00
hide.byte 0x00 "CTRLA,Control A"
group.byte 0x02++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CKRDY ,Clock Ready Interrupt Enable" "Disabled,Enabled"
group.byte 0x03++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 0. " CKRDY ,Clock Ready" "No interrupt,Interrupt"
group.byte 0x05++0x01
line.byte 0x00 "CPUDIV,CPU Clock Division"
line.byte 0x01 "BUPDIV,Backup Clock Division"
sif cpuis("ATSAML21*")
group.long 0x10++0x03
line.long 0x00 "AHBMASK,AHB Mask"
rbitfld.long 0x00 14. " PAC ,PAC AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 12. " USB ,USB AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 11. " DMAC ,DMAC AHB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " NVMCTRL ,NVMCTRL AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " DSU ,DSU AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " APBE ,APBE AHB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " APBD ,APBD AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " APBC ,APBC AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " APBB ,APBB AHB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " APBA ,APBA AHB Clock Enable" "Disabled,Enabled"
group.long 0x14++0x03
line.long 0x00 "APBAMASK,APBA Mask"
rbitfld.long 0x00 10. " PORT ,PORT APBA Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " EIC ,EIC APBA Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " RTC ,RTC APBA Clock Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " WDT ,WDT APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " GCLK ,GCLK APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " SUPC ,SUPC APBA Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " OSC32KCTRL ,OSC32KCTRL APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 3. " OSCCTRL ,OSCCTRL APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " RSTC ,RSTC APBA Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " MCLK ,MCLK APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " PM ,PM APBA Clock Enable" "Disabled,Enabled"
group.long 0x18++0x03
line.long 0x00 "APBBMASK,APBB Mask"
bitfld.long 0x00 2. " NVMCTRL ,NVMCTRL APBB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " DSU ,DSU APBB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " USB ,USB APBB Clock Enable" "Disabled,Enabled"
group.long 0x1C++0x03
line.long 0x00 "APBCMASK,APBC Mask"
rbitfld.long 0x00 14. " TRNG ,TRNG APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " AES ,AES APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 12. " DAC ,DAC APBC Clock Enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAML21J*")
rbitfld.long 0x00 11. " TC3 ,TC3 APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 10. " TC2 ,TC2 APBC Clock Enable" "Disabled,Enabled"
textline " "
endif
rbitfld.long 0x00 9. " TC1 ,TC1 APBC Clock Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 8. " TC0 ,TC0 APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 7. " TCC2 ,TCC2 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " TCC1 ,TCC1 APBC Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5. " TCC0 ,TCC0 APBC Clock Enable" "Disabled,Enabled"
textline " "
sif !cpuis("ATSAML21E*")
bitfld.long 0x00 4. " SERCOM4 ,SERCOM4 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 3. " SERCOM3 ,SERCOM3 APBC Clock Enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x00 2. " SERCOM2 ,SERCOM2 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " SERCOM1 ,SERCOM1 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SERCOM0 ,SERCOM0 APBC Clock Enable" "Disabled,Enabled"
group.long 0x20++0x03
line.long 0x00 "APBDMASK,APBD Mask"
rbitfld.long 0x00 7. " CCL ,CCL APBD Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " OPAMP ,OPAMP APBD Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " PTC ,PTC APBD Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " AC ,AC APBD Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 3. " ADC ,ADC APBD Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " TC4 ,TC4 APBD Clock Enable" "Disabled,Enabled"
textline " "
sif !cpuis("ATSAML21E*")
bitfld.long 0x00 1. " SERCOM5 ,SERCOM5 APBD Clock Enable" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x00 0. " EVSYS ,EVSYS APBD Clock Enable" "Disabled,Enabled"
group.long 0x24++0x03
line.long 0x00 "APBEMASK,APBE Mask"
bitfld.long 0x00 0. " PAC ,PAC APBE Clock Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "AHBMASK,AHB Mask"
bitfld.long 0x00 8. " NVMCTRL ,NVMCTRL AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " PAC ,PAC AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " DSU ,DSU AHB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " USB ,USB AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 3. " DMAC ,DMAC AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " APBC ,APBC AHB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " APBB ,APBB AHB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " APBA ,APBA AHB Clock Enable" "Disabled,Enabled"
group.long 0x14++0x03
line.long 0x00 "APBAMASK,APBA Mask"
bitfld.long 0x00 11. " FREQM ,FREQM APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " EIC ,EIC APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " RTC ,RTC APBA Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " WDT ,WDT APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " GCLK ,GCLK APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SUPC ,SUPC APBA Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5. " OSC32KCTRL ,OSC32KCTRL APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " OSCCTRL ,OSCCTRL APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 3. " RSTC ,RSTC APBA Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2. " MCLK ,MCLK APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " PM ,PM APBA Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " PAC ,PAC APBA Clock Enable" "Disabled,Enabled"
group.long 0x18++0x03
line.long 0x00 "APBBMASK,APBB Mask"
bitfld.long 0x00 3. " PORT ,PORT APBB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NVMCTRL ,NVMCTRL APBB Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " DSU ,DSU APBB Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " USB ,USB APBB Clock Enable" "Disabled,Enabled"
group.long 0x1C++0x03
line.long 0x00 "APBCMASK,APBC Mask"
rbitfld.long 0x00 18. " CCL ,CCL APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 17. " TRNG ,TRNG APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " AES ,AES APBC Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " SLCD ,SLCD APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " PTC ,PTC APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " AC ,AC APBC Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12. " ADC ,ADC APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 11. " TC3 ,TC3 APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 10. " TC2 ,TC2 APBC Clock Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " TC1 ,TC1 APBC Clock Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " TC0 ,TC0 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TCC0 ,TCC0 APBC Clock Enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAML22N*")
bitfld.long 0x00 6. " SERCOM5 ,SERCOM5 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " SERCOM4 ,SERCOM4 APBC Clock Enable" "Disabled,Enabled"
textline " "
endif
sif !cpuis("ATSAML22G*")
bitfld.long 0x00 4. " SERCOM3 ,SERCOM3 APBC Clock Enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x00 3. " SERCOM2 ,SERCOM2 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " SERCOM1 ,SERCOM1 APBC Clock Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " SERCOM0 ,SERCOM0 APBC Clock Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " EVSYS ,EVSYS APBC Clock Enable" "Disabled,Enabled"
endif
width 0x0B
tree.end
tree "RSTC (Reset Controller)"
base ad:0x40000800
width 10.
rgroup.byte 0x00++0x00
line.byte 0x00 "RCAUSE,Reset Cause"
bitfld.byte 0x00 7. " BACKUP ,Backup reset" "Not occurred,Occurred"
bitfld.byte 0x00 6. " SYST ,System reset request" "Not occurred,Occurred"
bitfld.byte 0x00 5. " WDT ,Watchdog reset" "Not occurred,Occurred"
textline " "
bitfld.byte 0x00 4. " EXT ,External reset" "Not occurred,Occurred"
sif cpuis("ATSAMD51*")||cpuis("ATSAME5*")
bitfld.byte 0x00 3. " NVM ,NVM reset" "Not occurred,Occurred"
endif
bitfld.byte 0x00 2. " BOD33 ,Brown out 33 detector reset" "Not occurred,Occurred"
bitfld.byte 0x00 1. " BOD12 ,Brown out 12 detector reset" "Not occurred,Occurred"
textline " "
bitfld.byte 0x00 0. " POR ,Power on reset" "Not occurred,Occurred"
textline " "
rgroup.byte 0x02++0x00
line.byte 0x00 "BKUPEXIT,Backup Exit Source"
sif cpuis("ATSAMD51*")||cpuis("ATSAME5*")
bitfld.byte 0x00 7. " HIB ,Specifies whether backup or hibernate reset has occurred" "Backup,Hibernate"
textfld " "
endif
bitfld.byte 0x00 2. " BBPS ,Battery backup power switch" "Not switched,Switched"
bitfld.byte 0x00 1. " RTC ,Real timer counter interrupt" "No interrupt,Interrupt"
sif cpuis("ATSAML21*")
bitfld.byte 0x00 0. " EXTWAKE ,External wake-up" "No wake-up,Wake-up"
endif
sif cpuis("ATSAML21*")
group.byte 0x04++0x00
line.byte 0x00 "WKDBCONF,Wakeup Debounce Configuration"
bitfld.byte 0x00 0.--4. " WKDBCNT ,Wakeup debounce counter value" "OFF,2CK32,3CK32,32CK32,512CK32,4096CK32,32768CK32,?..."
group.word 0x08++0x01
line.word 0x00 "WKPOL,Wakeup Polarity"
bitfld.word 0x00 0.--7. " WKPOL ,Wakeup polarity" "Low,high,?..."
group.word 0x0C++0x01
line.word 0x00 "WKEN,Wakeup Enable"
bitfld.word 0x00 0.--7. " WKEN ,Wakeup enable" "Disabled,Enabled,?..."
rgroup.word 0x10++0x01
line.word 0x00 "WKCAUSE,Wakeup Cause"
bitfld.word 0x00 0.--7. " WKCAUSE ,Wakeup cause" "Not active,Active,?..."
endif
width 0x0B
tree.end
tree "PM (Power Manager)"
base ad:0x40000000
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 2. " IORET ,I/O Retention" "Not held,Held"
group.byte 0x01++0x01
line.byte 0x00 "SLEEPCFG,Sleep Configuration"
bitfld.byte 0x00 0.--2. " SLEEPMODE ,Sleep mode" ",,IDLE,,STANDBY,BACKUP,OFF,?..."
line.byte 0x01 "PLCFG,Performance Level Configuration"
bitfld.byte 0x01 7. " PLDIS ,Performance level disable" "No,Yes"
group.byte 0x05++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " PLRDY ,Performance level interrupt enable" "Disabled,Enabled"
group.byte 0x06++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 0. " PLRDY ,Performance level ready" "No effect,Clear"
sif cpuis("ATSAML21*")
group.word 0x08++0x01
line.word 0x00 "STDBYCFG,Standby Configuration"
bitfld.word 0x00 12.--13. " BBIASLP ,Back bias for HMCRAMCLP" "Retention back biasing mode,Standby back biasing mode,Standby OFF mode,Always OFF mode"
rbitfld.word 0x00 10.--11. " BBIASHS ,Back bias for HMCRAMCHS" "Retention back biasing mode,Standby back biasing mode,Standby OFF mode,Always OFF mode"
bitfld.word 0x00 8.--9. " LINKPD ,Linked power domain" "Default,PD01,PD12,PD012"
newline
rbitfld.word 0x00 6.--7. " VREGSMOD ,VREG switching mode" "Auto,Performance,LP,?..."
bitfld.word 0x00 5. " DPGPD1 ,Dynamic power gating for power domain 1" "Disabled,Enabled"
bitfld.word 0x00 4. " DPGPD0 ,Dynamic power gating for power domain 0" "Disabled,Enabled"
newline
bitfld.word 0x00 0.--1. " PDCFG ,Power domain configuration" "Default,PD0,PD01,PD012"
elif cpuis("ATSAML22*")
rgroup.word 0x08++0x01
line.word 0x00 "STDBYCFG,Standby Configuration"
bitfld.word 0x00 10.--11. " BBIASHS ,Back bias for HMCRAMCHS" ",Back Biasing in Standby mode,Standby OFF mode,Always OFF mode"
bitfld.word 0x00 6.--7. " VREGSMOD ,VREG switching mode" "Auto,Performance,LP,?..."
endif
width 0x0B
tree.end
tree "OSCCTRL (Oscillators Controller)"
base ad:0x40000C00
width 16.
group.long 0x04++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " DPLLLDRTO ,DPLL Loop Divider Ratio Update Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " DPLLLTO ,DPLL Lock Timeout Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " DPLLLCKF ,DPLL Lock Fall Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " DPLLLCKR ,DPLL Lock Rise Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " DFLLRCS ,DFLL Reference Clock Stopped Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFLLLCKC ,DFLL Lock Coarse Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " DFLLLCKF ,DFLL Lock Fine Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " DFLLOOB ,DFLL Out Of Bounds Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " DFLLRDY ,DFLL Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " OSC16MRDY ,OSC16M Ready Interrupt Enable" "Disabled,Enabled"
sif cpuis("ATSAML22*")
textline " "
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " CLKFAIL ,Clock Failure Interrupt Enable" "Disabled,Enabled"
endif
setclrfld.long 0x00 0. 0x00 0. -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 19. " DPLLLDRTO ,DPLL Loop Divider Ratio Update Complete" "No interrupt,Interrupt"
eventfld.long 0x00 18. " DPLLLTO ,DPLL Lock Timeout" "No interrupt,Interrupt"
eventfld.long 0x00 17. " DPLLLCKF ,DPLL Lock Fall" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 16. " DPLLLCKR ,DPLL Lock Rise" "No interrupt,Interrupt"
eventfld.long 0x00 12. " DFLLRCS ,DFLL Reference Clock Stopped" "No interrupt,Interrupt"
eventfld.long 0x00 11. " DFLLLCKC ,DFLL Lock Coarse" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 10. " DFLLLCKF ,DFLL Lock Fine" "No interrupt,Interrupt"
eventfld.long 0x00 9. " DFLLOOB ,DFLL Out Of Bounds" "No interrupt,Interrupt"
eventfld.long 0x00 8. " DFLLRDY ,DFLL Ready" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 4. " OSC16MRDY ,OSC16M Ready" "No interrupt,Interrupt"
sif cpuis("ATSAML22*")
textline " "
eventfld.long 0x00 1. " CLKFAIL ,XOSC Failure Detection" "No interrupt,Interrupt"
endif
eventfld.long 0x00 0. " XOSCRDY ,XOSC Ready" "No interrupt,Interrupt"
rgroup.long 0x0C++0x03
line.long 0x00 "STATUS,Status"
bitfld.long 0x00 11. " DPLLLDRTO ,DPLL Loop Divider Ratio Update Complete" "Not detected,Detected"
bitfld.long 0x00 10. " DPLLLTO ,DPLL Lock Timeout" "Not detected,Detected"
bitfld.long 0x00 9. " DPLLLCKF ,DPLL Lock Fall" "Not detected,Detected"
textline " "
bitfld.long 0x00 8. " DPLLLCKR ,DPLL Lock Rise" "Not detected,Detected"
bitfld.long 0x00 4. " OSC48MRDY ,OSC48M Ready" "Not ready,Ready"
bitfld.long 0x00 2. " CLKSW ,XOSC Clock Switch" "Not switched,Switched"
textline " "
bitfld.long 0x00 1. " CLKFAIL ,XOSC Clock Failure" "Not detected,Detected"
bitfld.long 0x00 0. " XOSCRDY ,XOSC Ready" "Not Ready,Ready"
sif cpuis("ATSAML22*")
group.byte 0x12++0x02
line.byte 0x00 "CFDPRESC,Clock Failure Detector Prescaler"
bitfld.byte 0x00 0.--2. " CFDPRESC ,Clock Failure Detector Prescaler" "/1,/2,/4,/8,/16,/32,/64,/128"
line.byte 0x01 "EVCTRL,Event Control"
bitfld.byte 0x01 0. " CFDEO ,Clock Failure Detector Event Out" "Disabled,Enabled"
line.byte 0x02 "OSC16MCTRL,16MHz Internal Oscillator (OSC16M) Control"
bitfld.byte 0x02 7. " ONDEMAND ,On Demand Control" "Always on,On request"
bitfld.byte 0x02 6. " RUNSTDBY ,Run in Standby" "Stopped,Not stopped"
bitfld.byte 0x02 2.--3. " FSEL ,Oscillator Frequency Selection" "4MHz,8MHz,12MHz,16MHz"
textline " "
bitfld.byte 0x02 1. " ENABLE ,Oscillator Enable" "Disabled,Enabled"
elif cpuis("ATSAML21")
group.long 0x14++0x03
line.long 0x00 "OSC16MCTRL,16MHz Internal Oscillator (OSC16M) Control"
bitfld.long 0x00 7. " ONDEMAND ,On Demand Control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.long 0x00 2.--3. " FSEL ,Oscillator Frequency Selection" "4MHz,8MHz,12MHz,16MHz"
textline " "
bitfld.long 0x00 1. " ENABLE ,Oscillator Enable" "Disabled,Enabled"
endif
sif cpuis("ATSAML21*")
group.word 0x10++0x01
line.word 0x00 "XOSCCTRL,External Multipurpose Crystal Oscillator (XOSC) Control"
bitfld.word 0x00 12.--15. " STARTUP ,Start-Up Time[OSCULP32K clock cycles]" "1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768"
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 request"
bitfld.word 0x00 6. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.word 0x00 2. " XTALEN ,Crystal Oscillator Enable" "XIN,XIN and XOUT"
textline " "
bitfld.word 0x00 1. " ENABLE ,Oscillator Enable" "Disabled,Enabled"
elif cpuis("ATSAML22*")
group.word 0x10++0x01
line.word 0x00 "XOSCCTRL,External Multipurpose Crystal Oscillator (XOSC) Control"
bitfld.word 0x00 12.--15. " STARTUP ,Start-Up Time[OSCULP32K clock cycles]" "1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768"
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 request"
sif cpuis("ATSAMC2*")
bitfld.word 0x00 6. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.word 0x00 4. " SWBACK ,Clock Switch Back" "Disabled,Enabled"
else
bitfld.word 0x00 6. " RUNSTDBY ,Run in Standby" "Not running,Running"
bitfld.word 0x00 4. " SWBACK ,Clock Switch Back" "Disabled,Enabled"
endif
textline " "
bitfld.word 0x00 3. " CFDEN ,Clock Failure Detector Enable" "Disabled,Enabled"
sif cpuis("ATSAMC2*")
bitfld.word 0x00 2. " XTALEN ,Crystal Oscillator Enable" "XIN,XIN/XOUT"
bitfld.word 0x00 1. " ENABLE ,Oscillator Enable" "Disabled,Enabled"
else
bitfld.word 0x00 2. " XTALEN ,Crystal Oscillator Enable" "XIN,XIN and XOUT"
bitfld.word 0x00 1. " ENABLE ,Oscillator Enable" "Disabled,Enabled"
endif
endif
group.word 0x18++0x01
line.word 0x00 "DFLLCTRL,DFLL48M Control"
sif cpuis("ATSAML21*")
bitfld.word 0x00 11. " WAITLOCK ,Wait Lock" "Locked before DFLL,Locked when DFLL"
bitfld.word 0x00 10. " BPLCKC ,Bypass Coarse Lock" "Disabled,Enabled"
textline " "
endif
bitfld.word 0x00 9. " QLDIS ,Quick Lock Disable" "No,Yes"
textline " "
bitfld.word 0x00 8. " CCDIS ,Chill Cycle Disable" "No,Yes"
bitfld.word 0x00 7. " ONDEMAND ,On Demand Control" "Always on,On request"
bitfld.word 0x00 6. " RUNSTDBY ,Run in Standby" "Stopped,Running"
textline " "
bitfld.word 0x00 5. " USBCRM ,USB Clock Recovery Mode" "Disabled,Enabled"
bitfld.word 0x00 4. " LLAW ,Lose Lock After Wake" "Not lost,Lost"
bitfld.word 0x00 3. " STABLE ,Stable DFLL Frequency" "Changes in output frequency,Fixed after fine lock"
textline " "
bitfld.word 0x00 2. " MODE ,Operating Mode Selection" "Open-loop,Closed-loop"
bitfld.word 0x00 1. " ENABLE ,DFLL Enable" "Disabled,Enabled"
if ((((d.w(ad:0x40000C00+0x18))&0x04)==0x04)&&(((d.b(ad:0x40000C00+0x24))&0x80)==0x80))
group.long 0x1C++0x03
line.long 0x00 "DFLLVAL,DFLL48M Value"
hexmask.long.word 0x00 16.--31. 1. " DIFF ,Multiplication Ratio Difference"
rbitfld.long 0x00 10.--15. " COARSE ,Coarse Value" "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"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine Value"
elif ((((d.w(ad:0x40000C00+0x18))&0x04)==0x04)&&(((d.b(ad:0x40000C00+0x24))&0x80)==0x00))
hgroup.long 0x1C++0x03
hide.long 0x00 "DFLLVAL,DFLL48M Value"
elif (((d.w(ad:0x40000C00+0x18))&0x04)==0x00)
group.long 0x1C++0x03
line.long 0x00 "DFLLVAL,DFLL48M Value"
bitfld.long 0x00 10.--15. " COARSE ,Coarse Value" "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"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine Value"
endif
group.long 0x20++0x03
line.long 0x00 "DFLLMUL,DFLL48M Multiplier"
rbitfld.long 0x00 26.--31. " CSTEP ,Coarse Maximum Step" "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"
hexmask.long.word 0x00 16.--25. 1. " FSTEP ,Fine Maximum Step"
hexmask.long.word 0x00 0.--15. 1. " MUL ,DFLL Multiply Factor"
wgroup.byte 0x24++0x00
line.byte 0x00 "DFLLSYNC,DFLL48M Synchronization"
bitfld.byte 0x00 7. " READREQ ,Read Request" "No request,Request"
group.byte 0x28++0x00
line.byte 0x00 "DPLLCTRLA,DPLL Control A"
bitfld.byte 0x00 7. " ONDEMAND ,On Demand Clock Activation" "Always on,On request"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in Standby" "Stopped,Running"
bitfld.byte 0x00 1. " ENABLE ,DPLL Enable" "Disabled,Enabled"
group.long 0x2C++0x03
line.long 0x00 "DPLLRATIO,DPLL Ratio Control"
bitfld.long 0x00 16.--19. " LDRFRAC ,Loop Divider Ratio Fractional Part" "1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768"
hexmask.long.word 0x00 0.--11. 1. " LDR ,Loop Divider Ratio"
if (((d.b(ad:0x40000C00+0x28))&0x02)==0x02)
rgroup.long 0x30++0x03
line.long 0x00 "DPLLCTRLB,DPLL Control B"
hexmask.long.word 0x00 16.--26. 1. " DIV ,Clock Divider"
bitfld.long 0x00 12. " LBYPASS ,Lock Bypass" "Lock signal drives internal logic,Lock signal always asserted"
bitfld.long 0x00 8.--10. " LTIME ,Lock Time" "Automatic lock,,,,8MS,9MS,10MS,11MS"
textline " "
bitfld.long 0x00 4.--5. " REFCLK ,Reference Clock Selection" "XOSC32K,XOSC,GCLK,"
bitfld.long 0x00 3. " WUF ,Wake Up Fast" "Startup and lock time,Startup time"
bitfld.long 0x00 2. " LPEN ,Low-Power Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--1. " FILTER ,Proportional Integral Filter Selection" "DEFAULT,LBFILT,HBFILT,HDFILT"
else
group.long 0x30++0x03
line.long 0x00 "DPLLCTRLB,DPLL Control B"
hexmask.long.word 0x00 16.--26. 1. " DIV ,Clock Divider"
bitfld.long 0x00 12. " LBYPASS ,Lock Bypass" "Lock signal drives internal logic,Lock signal always asserted"
bitfld.long 0x00 8.--10. " LTIME ,Lock Time" "Automatic lock,,,,8MS,9MS,10MS,11MS"
textline " "
bitfld.long 0x00 4.--5. " REFCLK ,Reference Clock Selection" "XOSC32K,XOSC,GCLK,"
bitfld.long 0x00 3. " WUF ,Wake Up Fast" "Startup and lock time,Startup time"
bitfld.long 0x00 2. " LPEN ,Low-Power Enable" "LP mode disabled,LP mode enabled"
textline " "
bitfld.long 0x00 0.--1. " FILTER ,Proportional Integral Filter Selection" "DEFAULT,LBFILT,HBFILT,HDFILT"
endif
group.byte 0x34++0x00
line.byte 0x00 "DPLLPRESCDPLL,Prescaler"
bitfld.byte 0x00 0.--1. " PRESC ,Output Clock Prescaler" "DIV1,DIV2,DIV4,"
rgroup.byte 0x38++0x00
line.byte 0x00 "DPLLSYNCBUSY,DPLL Synchronization Busy"
bitfld.byte 0x00 3. " DPLLPRESC ,DPLL Prescaler Synchronization Status" "Synchronized,Not synchronized"
bitfld.byte 0x00 2. " DPLLRATIO ,DPLL Loop Divider Ratio Synchronization Status" "Synchronized,Not synchronized"
bitfld.byte 0x00 1. " ENABLE ,DPLL Enable Synchronization Status" "Synchronized,Not synchronized"
rgroup.byte 0x3C++0x00
line.byte 0x00 "DPLLSTATUS,DPLL Status"
bitfld.byte 0x00 1. " CLKRDY ,Output Clock Ready" "Disabled,Enabled"
bitfld.byte 0x00 0. " LOCK ,DPLL Lock status bit" "Cleared,Asserted"
width 0x0B
tree.end
tree "OSC32KCTRL (32KHz Oscillators Controller)"
base ad:0x40001000
width 15.
group.long 0x04++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CLKFAIL ,XOSC32K clock failure detector interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " OSC32KRDY ,OSC32K ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " XOSC32KRDY ,XOSC32K ready interrupt enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status And Clear"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
eventfld.long 0x00 2. " CLKFAIL ,XOSC32K clock failure detection flag" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x00 1. " OSC32KRDY ,OSC32K ready interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x00 0. " XOSC32KRDY ,XOSC32K ready interrupt flag" "No interrupt,Interrupt"
rgroup.long 0x0C++0x03
line.long 0x00 "STATUS,Status"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
bitfld.long 0x00 3. " CLKSW ,XOSC32K clock switch" "Not switched,Switched"
bitfld.long 0x00 2. " CLKFAIL ,XOSC32K clock failure detection" "Passing,Not passing"
newline
endif
bitfld.long 0x00 1. " OSC32KRDY ,OSC32K ready" "Not ready,Ready"
bitfld.long 0x00 0. " XOSC32KRDY ,XOSC32K ready" "Not ready,Ready"
sif !cpuis("ATSAMC21N*")&&!cpuis("ATSAMC20N*")
group.long 0x10++0x03
line.long 0x00 "RTCCTRL,RTC Clock Selection Control"
bitfld.long 0x00 0.--2. " RTCSEL ,RTC Clock Source Selection" "ULP1K,ULP32K,OSC1K,OSC32K,XOSC1K,XOSC32K,?..."
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.w(ad:0x40001000+0x14))&0x1000)==0x00)
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" "1,32,2048,4096,16384,32768,65536,131072"
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
newline
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.word 0x00 4. " EN1K ,1KHz output enable" "Disabled,Enabled"
bitfld.word 0x00 3. " EN32K ,32KHz output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "Disabled,Enabled"
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
else
rgroup.word 0x14++0x03
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" "1,32,2048,4096,16384,32768,65536,131072"
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
newline
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.word 0x00 4. " EN1K ,1KHz output enable" "Disabled,Enabled"
bitfld.word 0x00 3. " EN32K ,32KHz output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "Disabled,Enabled"
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
endif
group.byte 0x16++0x01
line.byte 0x00 "CFDCTRL,Clock Failure Detector Control"
bitfld.byte 0x00 2. " CFDPRESC ,Clock failure detector prescaler" "OSCULP32K,OSCULP32K/2"
bitfld.byte 0x00 1. " SWBACK ,Clock switch back" "Disabled,Enabled"
bitfld.byte 0x00 0. " CFDEN ,Clock failure detector enable" "Disabled,Enabled"
line.byte 0x01 "EVCTRL,Event Control"
bitfld.byte 0x01 1. " CFDEO ,Clock failure detector event out enable" "Disabled,Enabled"
if (((per.l(ad:0x40001000+0x18))&0x1000)==0x00)
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" "3,4,6,10,18,34,66,130"
newline
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x00 3. " EN1K ,1KHz output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 2. " EN32K ,32Khz output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
else
rgroup.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" "3,4,6,10,18,34,66,130"
newline
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x00 3. " EN1K ,1KHz output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 2. " EN32K ,32Khz output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
endif
if (((per.l(ad:0x40001000+0x1C))&0x8000)==0x00)
group.long 0x1C++0x03
line.long 0x00 "OSCULP32K,32KHz Ultra Low Power Internal Oscillator Control"
bitfld.long 0x00 15. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.long 0x00 8.--12. " CALIB ,Oscillator calibration" "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"
else
rgroup.long 0x1C++0x03
line.long 0x00 "OSCULP32K,32KHz Ultra Low Power Internal Oscillator Control"
bitfld.long 0x00 15. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.long 0x00 8.--12. " CALIB ,Oscillator calibration" "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
else
group.long 0x14++0x07
line.long 0x00 "XOSC32K,32KHz External Crystal Oscillator Control"
bitfld.long 0x00 12. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " STARTUP ,Oscillator start-up time" "2048,4096,16384,32768,65536,131072,262144,?..."
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "On request,Always run"
bitfld.long 0x00 4. " EN1K ,1KHz output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " EN32K ,32KHz output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 2. " XTALEN ,Crystal oscillator enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
line.long 0x04 "OSC32K,32KHz Internal Oscillator Control"
hexmask.long.byte 0x04 16.--22. 1. " CALIB ,Oscillator calibration"
bitfld.long 0x04 12. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.long 0x04 8.--10. " STARTUP ,Oscillator start-up time" "3,4,6,10,18,34,66,130"
newline
bitfld.long 0x04 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x04 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x04 3. " EN1K ,1KHz output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 2. " EN32K ,32Khz output enable" "Disabled,Enabled"
bitfld.long 0x04 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
group.word 0x1C++0x01
line.word 0x00 "OSCULP32K,32KHz Ultra Low Power Internal Oscillator Control"
bitfld.word 0x00 15. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.word 0x00 8.--12. " CALIB ,Oscillator calibration" "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
width 0x0B
tree.end
tree "SUPC (Supply Controller)"
base ad:0x40001400
width 15.
group.long 0x04++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " VCORERDY ,VDDCORE Voltage Ready Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " APWSRDY ,Automatic Power Switch Ready Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " VREGRDY ,Voltage Regulator Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " B12SRDY ,BOD12 Synchronization Ready Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " BOD12DET ,BOD12 Detection Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " BOD12RDY ,BOD12 BOD12 Ready Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " B33SRDY ,BOD33 Synchronization Ready Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " BOD33DET ,BOD33 Detection Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " BOD33RDY ,BOD33 Ready Interrupt Enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x00 10. " VCORERDY ,VDDCORE Voltage Ready" "No interrupt,Interrupt"
eventfld.long 0x00 9. " APWSRDY ,Automatic Power Switch Ready" "No interrupt,Interrupt"
eventfld.long 0x00 8. " VREGRDY ,Voltage Regulator Ready" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 5. " B12SRDY ,BOD12 Synchronization Ready" "No interrupt,Interrupt"
eventfld.long 0x00 4. " BOD12DET ,BOD12 Detection" "No interrupt,Interrupt"
eventfld.long 0x00 3. " BOD12RD ,BOD12 BOD12 Ready" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 2. " B33SRDY ,BOD33 Synchronization Ready" "No interrupt,Interrupt"
eventfld.long 0x00 1. " BOD33DET ,BOD33 Detection" "No interrupt,Interrupt"
eventfld.long 0x00 0. " BOD33RDY ,BOD33 Ready" "No interrupt,Interrupt"
rgroup.long 0x0C++0x03
line.long 0x00 "STATUS,Status"
bitfld.long 0x00 11. " BBPS ,Battery Backup Power Switch" "VDD,VBAT"
bitfld.long 0x00 10. " VCORERDY ,VDDCORE Voltage Ready" "Not ready,Ready"
bitfld.long 0x00 9. " APWSRDY ,Automatic Power Switch Ready" "Not ready,Ready"
textline " "
bitfld.long 0x00 8. " VREGRDY ,Voltage Regulator Ready" "Not ready,Ready"
bitfld.long 0x00 5. " B12SRDY ,BOD12 Synchronization Ready" "Not ready,Ready"
bitfld.long 0x00 4. " BOD12DET ,BOD12 Detection" "Not detected,Detected"
textline " "
bitfld.long 0x00 3. " BOD12RDY ,BOD12 BOD12 Ready" "Not ready,Ready"
bitfld.long 0x00 2. " B33SRDY ,BOD33 Synchronization Ready" "Not ready,Ready"
bitfld.long 0x00 1. " BOD33DET ,BOD33 Detection" "Not detected,Detected"
textline " "
bitfld.long 0x00 0. " BOD33RDY ,BOD33 Ready" "Not ready,Ready"
if (((d.l(ad:0x40001400+0x10))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "BOD33,3.3V Brown-Out Detector (BOD33) Control"
bitfld.long 0x00 24.--29. " BKUPLEVEL ,BOD33 Threshold Level on VBAT or in Backup Sleep Mode" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
bitfld.long 0x00 16.--21. " LEVEL ,BOD33 Threshold Level on VDD" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
bitfld.long 0x00 12.--15. " PSEL ,Prescaler Select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,DIV2048,DIV4096,DIV8192,DIV16384,DIV32768,DIV65536"
textline " "
bitfld.long 0x00 10. " VMON ,Voltage Monitored in Active and Standby Mode" "VDD monitored,VBAT monitored"
bitfld.long 0x00 8. " ACTCFG ,BOD33 Configuration in Active Sleep Mode" "Continuous mode,Sampling mode"
bitfld.long 0x00 7. " RUNBKUP ,BOD33 Configuration in Backup Sleep Mode" "Disabled,Sampling mode"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 5. " STDBYCFG ,BOD33 Configuration in Standby Sleep Mode" "Continuous mode,Sampling mode"
bitfld.long 0x00 3.--4. " ACTION ,BOD33 Action" "NONE,RESET,INT,BKUP"
textline " "
bitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "BOD33,3.3V Brown-Out Detector (BOD33) Control"
rbitfld.long 0x00 24.--29. " BKUPLEVEL ,BOD33 Threshold Level on VBAT or in Backup Sleep Mode" "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"
rbitfld.long 0x00 16.--21. " LEVEL ,BOD33 Threshold Level on VDD" "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"
rbitfld.long 0x00 12.--15. " PSEL ,Prescaler Select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,DIV2048,DIV4096,DIV8192,DIV16384,DIV32768,DIV65536"
textline " "
rbitfld.long 0x00 10. " VMON ,Voltage Monitored in Active and Standby Mode" "VDD monitored,VBAT monitored"
rbitfld.long 0x00 8. " ACTCFG ,BOD33 Configuration in Active Sleep Mode" "Continuous mode,Sampling mode"
rbitfld.long 0x00 7. " RUNBKUP ,BOD33 Configuration in Backup Sleep Mode" "Disabled,Sampling mode"
textline " "
rbitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
rbitfld.long 0x00 5. " STDBYCFG ,BOD33 Configuration in Standby Sleep Mode" "Continuous mode,Sampling mode"
rbitfld.long 0x00 3.--4. " ACTION ,BOD33 Action" "NONE,RESET,INT,BKUP"
textline " "
rbitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
if (((d.l(ad:0x40001400+0x14))&0x02)==0x00)
group.long 0x14++0x03
line.long 0x00 "BOD12,1.2V Brown-Out Detector (BOD12) Control"
bitfld.long 0x00 16.--21. " LEVEL ,BOD12 Threshold Level" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
bitfld.long 0x00 12.--15. " PSEL ,Prescaler Select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,DIV2048,DIV4096,DIV8192,DIV16384,DIV32768,DIV65536"
bitfld.long 0x00 8. " ACTCFG ,BOD12 Configuration in Active Sleep Mode" "Continuous mode,Sampling mode"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 5. " STDBYCFG ,BOD12 Configuration in Standby Sleep Mode" "Continuous mode,Sampling mode"
bitfld.long 0x00 3.--4. " ACTION ,BOD12 Action" "NONE,RESET,INT,?..."
textline " "
bitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "BOD12,1.2V Brown-Out Detector (BOD12) Control"
rbitfld.long 0x00 16.--21. " LEVEL ,BOD12 Threshold Level" "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"
rbitfld.long 0x00 12.--15. " PSEL ,Prescaler Select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,DIV2048,DIV4096,DIV8192,DIV16384,DIV32768,DIV65536"
rbitfld.long 0x00 8. " ACTCFG ,BOD12 Configuration in Active Sleep Mode" "Continuous mode,Sampling mode"
textline " "
rbitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
rbitfld.long 0x00 5. " STDBYCFG ,BOD12 Configuration in Standby Sleep Mode" "Continuous mode,Sampling mode"
rbitfld.long 0x00 3.--4. " ACTION ,BOD12 Action" "NONE,RESET,INT,?..."
textline " "
rbitfld.long 0x00 2. " HYST ,Hysteresis" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
group.long 0x18++0x07
line.long 0x00 "VREG,Voltage Regulator System (VREG) Control"
hexmask.long.byte 0x00 24.--31. 1. " VSPER ,Voltage Scaling Period"
bitfld.long 0x00 16.--19. " VSVSTEP ,Voltage Scaling Voltage Step" "2*min_step,4*min_step,6*min_step,8*min_step,10*min_step,12*min_step,14*min_step,16*min_step,18*min_step,20*min_step,22*min_step,24*min_step,26*min_step,28*min_step,30*min_step,32*min_step"
bitfld.long 0x00 8. " LPEFF ,Low power Mode Efficiency" "Default,Highest"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Low power mode,Normal mode"
sif cpuis("ATSAML22*")
textline " "
bitfld.long 0x00 5. " STDBYPL0 ,Standby in PL0" "Not changed,Used in PL0"
bitfld.long 0x00 2. " SEL ,Voltage Regulator Selection" "LDO regulator,Buck converter"
else
bitfld.long 0x00 2. " SEL ,Voltage Regulator Selection" "LDO regulator,Buck converter"
endif
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
line.long 0x04 "VREF,Voltage References System (VREF) Control"
bitfld.long 0x04 16.--19. " SEL ,Voltage Reference Selection" "1V0,1V1,1V2,1V25,2V0,2V2,2V4,2V5,?..."
bitfld.long 0x04 7. " ONDEMAND ,On Demand Control" "Always on,On request"
bitfld.long 0x04 6. " RUNSTDBY ,Run In Standby" "Stopped,Not stopped"
textline " "
sif cpuis("ATSAML22*")
bitfld.long 0x04 3. " TSSEL ,Temperature Sensor Channel Selection" "PTAT,CTAT"
textline " "
endif
bitfld.long 0x04 2. " VREFOE ,Voltage Reference Output Enable" "Disabled,Enabled"
bitfld.long 0x04 1. " TSEN ,Temperature Sensor Enable" "Disabled,Enabled"
group.long 0x20++0x03
line.long 0x00 "BBPS,Battery Backup Power Switch (BBPS) Control"
bitfld.long 0x00 3. " PSOKEN ,Power Supply OK Enable" "Not used,Used"
bitfld.long 0x00 2. " WAKEEN ,Wake Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--1. " CONF ,Battery Backup Power Switch Configuration" "NONE,APWS,FORCED,BOD33"
group.long 0x24++0x003
line.long 0x00 "BKOUT,Backup Output (BKOUT) Control"
bitfld.long 0x00 25. " RTCTGL[1] ,RTC Toggle Output 1" "Not toggled,Toggled"
bitfld.long 0x00 24. " RTCTGL[2] ,RTC Toggle Output 2" "Not toggled,Toggled"
bitfld.long 0x00 17. " SET[1] ,Set Output 1" "No effect,Set"
textline " "
bitfld.long 0x00 16. " SET[2] ,Set Output 2" "No effect,Set"
bitfld.long 0x00 9. " CLR[1] ,Clear Output 1" "No effect,Clear"
bitfld.long 0x00 8. " CLR[2] ,Clear Output 2" "No effect,Clear"
textline " "
bitfld.long 0x00 1. " EN[1] ,Enable Output 1" "Disabled,Enabled"
bitfld.long 0x00 0. " EN[2] ,Enable Output 2" "Disabled,Enabled"
rgroup.long 0x28++0x03
line.long 0x00 "BKIN,Backup Input (BKIN) Value"
bitfld.long 0x00 2. " BKIN[2] ,The input value of the OUT[1] pin" "Low,High"
bitfld.long 0x00 2. " BKIN[1] ,The input value of the OUT[0] pin" "Low,High"
bitfld.long 0x00 2. " BKIN[0] ,The input value of the PSOK pin" "Low,High"
width 0x0B
tree.end
tree "WDT (Watchdog Timer)"
base ad:0x40001C00
width 15.
if (((per.b(ad:0x40001C00))&0x80)==0x80)
rgroup.byte 0x00++0x02
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "Not allowed,Allowed"
newline
bitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,WDT enable" "Disabled,Enabled"
line.byte 0x01 "CONFIG,Configuration"
bitfld.byte 0x01 4.--7. " WINDOW ,Window mode time-out period (clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
bitfld.byte 0x01 0.--3. " PER ,Time-out period (clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
line.byte 0x02 "EWCTRL,Early Warning Control"
bitfld.byte 0x02 0.--3. " EWOFFSET ,Early warning interrupt time offset (clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
elif (((per.b(ad:0x40001C00))&0x80)==0x00)&&(((per.b(ad:0x40001C00))&0x02)==0x00)
group.byte 0x00++0x02
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "Not allowed,Allowed"
newline
bitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
line.byte 0x01 "CONFIG,Configuration"
bitfld.byte 0x01 4.--7. " WINDOW ,Window mode Time-Out period (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
bitfld.byte 0x01 0.--3. " PER ,Time-Out period (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
line.byte 0x02 "EWCTRL,Early Warning Control"
bitfld.byte 0x02 0.--3. " EWOFFSET ,Early warning interrupt time offset (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
elif (((per.b(ad:0x40001C00))&0x80)==0x00)&&(((per.b(ad:0x40001C00))&0x02)==0x02)
group.byte 0x00++0x02
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " ALWAYSON ,Always-on" "Not allowed,Allowed"
newline
rbitfld.byte 0x00 2. " WEN ,Watchdog timer window mode enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
line.byte 0x01 "CONFIG,Configuration"
rbitfld.byte 0x01 4.--7. " WINDOW ,Window mode Time-Out period (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
rbitfld.byte 0x01 0.--3. " PER ,Time-Out period (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
line.byte 0x02 "EWCTRL,Early Warning Control"
rbitfld.byte 0x02 0.--3. " EWOFFSET ,Early warning interrupt time offset (Clock cycles)" "8,16,32,64,128,256,512,1024,2048,4096,8192,16384,?..."
endif
newline
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Flag Status And Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " EW ,Early warning" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " EW ,Early warning" "Not occurred,Occurred"
sif (cpuis("ATSAMHA1G1?A"))
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,Watchdog Clear"
else
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
sif (!cpuis("ATSAMC21N*")&&!cpuis("ATSAMC20N*"))
bitfld.long 0x00 4. " CLEAR ,Clear synchronization busy" "Completed,Ongoing"
bitfld.long 0x00 3. " ALWAYSON ,Always-On synchronization busy" "Completed,Ongoing"
newline
endif
bitfld.long 0x00 2. " WEN ,Window enable synchronization busy" "Completed,Ongoing"
newline
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy" "Completed,Ongoing"
wgroup.byte 0x0C++0x00
line.byte 0x00 "CLEAR,Watchdog Clear"
endif
width 0x0B
tree.end
tree "RTC (Real-Time Counter)"
base ad:0x40002000
width 15.
if ((per.w(ad:0x40002000+0x00)&0x0C)==0x00)
if ((per.w(ad:0x40002000+0x00)&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " COUNTSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
bitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
newline
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " COUNTSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
rbitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
rbitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
newline
rbitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
endif
group.word 0x0A++0x03
line.word 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear - COUNT32"
setclrfld.word 0x00 15. 0x00 15. -0x02 15. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 8. 0x00 8. -0x02 8. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 7. 0x00 7. -0x02 7. " PER[7] ,Periodic interval 7 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 6. 0x00 6. -0x02 6. " [6] ,Periodic interval 6 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 5. 0x00 5. -0x02 5. " [5] ,Periodic interval 5 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 4. 0x00 4. -0x02 4. " [4] ,Periodic interval 4 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 3. 0x00 3. -0x02 3. " [3] ,Periodic interval 3 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 2. 0x00 2. -0x02 2. " [2] ,Periodic interval 2 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 1. 0x00 1. -0x02 1. " [1] ,Periodic interval 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 0. 0x00 0. -0x02 0. " [0] ,Periodic interval 0 interrupt enable" "Disabled,Enabled"
line.word 0x02 "INTFLAG,Interrupt Flag Status And Clear In COUNT32 Mode"
eventfld.word 0x02 15. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.word 0x02 8. " CMP0 ,Compare 0" "No interrupt,Interrupt"
eventfld.word 0x02 7. " PER[7] ,Periodic interval 7" "No interrupt,Interrupt"
newline
eventfld.word 0x02 6. " [6] ,Periodic Interval 6" "No interrupt,Interrupt"
eventfld.word 0x02 5. " [5] ,Periodic interval 5" "No interrupt,Interrupt"
eventfld.word 0x02 4. " [4] ,Periodic interval 4" "No interrupt,Interrupt"
newline
eventfld.word 0x02 3. " [3] ,Periodic interval 3" "No interrupt,Interrupt"
eventfld.word 0x02 2. " [2] ,Periodic interval 2" "No interrupt,Interrupt"
eventfld.word 0x02 1. " [1] ,Periodic interval 1" "No interrupt,Interrupt"
newline
eventfld.word 0x02 0. " [0] ,Periodic interval 0" "No interrupt,Interrupt"
group.byte 0x0E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy In COUNT32 Mode"
bitfld.long 0x00 15. " COUNTSYNC ,Count read sync enable synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 5. " COMP0 ,Compare 0 synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 3. " COUNT ,Count value synchronization busy status" "Complete,Ongoing"
newline
bitfld.long 0x00 2. " FREQCORR ,Frequency correction synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy status" "Complete,Ongoing"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Decreased,Increased"
hexmask.byte 0x00 0.--6. 1. " VALUE ,Correction value"
else
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Increased,Decreased"
bitfld.byte 0x00 0.--5. " VALUE ,Correction value" "Disabled,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.long 0x18++0x03
line.long 0x00 "COUNT,Counter Value"
group.long 0x20++0x03
line.long 0x00 "COMP0,Compare 0 Value"
sif !cpuis("ATSAMC21N*")&&!cpuis("ATSAMC20N*")
group.long 0x24++0x0B
line.long 0x00 "COMP1,Compare 1 Value"
line.long 0x04 "COMP2,Compare 2 Value"
line.long 0x08 "COMP3,Compare 3 Value"
endif
sif !cpuis("ATSAMC2*")
group.long 0x40++0x0F
line.long 0x00 "GP0,General Purpose 0"
line.long 0x04 "GP1,General Purpose 1"
line.long 0x08 "GP2,General Purpose 2"
line.long 0x0C "GP3,General Purpose 3"
endif
elif ((per.w(ad:0x40002000+0x00)&0x0C)==0x04)
if ((per.w(ad:0x40002000+0x00)&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " COUNTSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
newline
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 9. " CMPEO1 ,Compare 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " COUNTSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
rbitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
newline
rbitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 9. " CMPEO1 ,Compare 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
endif
group.word 0x0A++0x03
line.word 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr - COUNT16"
setclrfld.word 0x00 15. 0x00 15. -0x02 15. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 9. 0x00 9. -0x02 9. " CMP1 ,Compare 1 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 8. 0x00 8. -0x02 8. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 7. 0x00 7. -0x02 7. " PER[7] ,Periodic interval 7 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 6. 0x00 6. -0x02 6. " [6] ,Periodic interval 6 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 5. 0x00 5. -0x02 5. " [5] ,Periodic interval 5 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 4. 0x00 4. -0x02 4. " [4] ,Periodic interval 4 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 3. 0x00 3. -0x02 3. " [3] ,Periodic interval 3 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 2. 0x00 2. -0x02 2. " [2] ,Periodic interval 2 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 1. 0x00 1. -0x02 1. " [1] ,Periodic interval 1 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 0. 0x00 0. -0x02 0. " [0] ,Periodic interval 0 interrupt enable" "Disabled,Enabled"
line.word 0x02 "INTFLAG,Interrupt Flag Status And Clear In COUNT16 Mode"
eventfld.word 0x02 15. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.word 0x02 9. " CMP1 ,Compare 1 interrupt enable" "Disabled,Enabled"
eventfld.word 0x02 8. " CMP0 ,Compare 0" "No interrupt,Interrupt"
newline
eventfld.word 0x02 7. " PER[7] ,Periodic interval 7" "No interrupt,Interrupt"
eventfld.word 0x02 6. " [6] ,Periodic interval 6" "No interrupt,Interrupt"
eventfld.word 0x02 5. " [5] ,Periodic interval 5" "No interrupt,Interrupt"
newline
eventfld.word 0x02 4. " [4] ,Periodic interval 4" "No interrupt,Interrupt"
eventfld.word 0x02 3. " [3] ,Periodic interval 3" "No interrupt,Interrupt"
eventfld.word 0x02 2. " [2] ,Periodic interval 2" "No interrupt,Interrupt"
newline
eventfld.word 0x02 1. " [1] ,Periodic interval 1" "No interrupt,Interrupt"
eventfld.word 0x02 0. " [0] ,Periodic interval 0" "No interrupt,Interrupt"
group.byte 0x0E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy in COUNT16 mode"
bitfld.long 0x00 15. " COUNTSYNC ,Count read sync enable synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 6. " COMP1 ,Compare 1 synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 5. " COMP0 ,Compare 0 synchronization busy status" "Complete,Ongoing"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 4. " PER ,Period synchronization busy status" "Complete,Ongoing"
newline
endif
bitfld.long 0x00 3. " COUNT ,Count value synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 2. " FREQCORR ,Frequency correction synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy status" "Complete,Ongoing"
newline
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy status" "Complete,Ongoing"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Decreased,Increased"
hexmask.byte 0x00 0.--6. 1. " VALUE ,Correction value"
else
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x00 0.--5. 1. " VALUE ,Correction value"
endif
group.word 0x18++0x01
line.word 0x00 "COUNT,Counter Value"
group.word 0x1C++0x01
line.word 0x00 "PER, Counter Period"
group.word 0x20++0x03
line.word 0x00 "COMP0,Compare 0 Value"
line.word 0x02 "COMP1,Compare 1 Value"
sif !cpuis("ATSAMC21N*")&&!cpuis("ATSAMC20N*")
group.word 0x24++0x07
line.word 0x00 "COMP2,Compare 2 Value"
line.word 0x02 "COMP3,Compare 3 Value"
line.word 0x04 "COMP4,Compare 4 Value"
line.word 0x06 "COMP5,Compare 5 Value"
endif
sif !cpuis("ATSAMC2*")
group.long 0x40++0x0F
line.long 0x00 "GP0,General Purpose 0"
line.long 0x04 "GP1,General Purpose 1"
line.long 0x08 "GP2,General Purpose 2"
line.long 0x0C "GP3,General Purpose 3"
endif
elif ((per.w(ad:0x40002000+0x00)&0x0C)==0x8)
if ((per.w(ad:0x40002000+0x00)&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " CLOCKSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,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" "24h,12h"
newline
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " ALARMO0 ,Alarm 0 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control"
bitfld.word 0x00 15. " COUNTSYNC ,COUNT read synchronization enable" "Disabled,Enabled"
rbitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "OFF,DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
rbitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
rbitfld.word 0x00 6. " CLKREP ,Clock representation" "24h,12h"
newline
rbitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
bitfld.word 0x00 1. " ENABLE ,RTC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " ALARMO0 ,Alarm 0 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " PEREO[7] ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Periodic interval 6 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " [5] ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,Periodic interval 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Periodic interval 2 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Periodic interval 0 event output enable" "Disabled,Enabled"
endif
group.word 0x0A++0x03
line.word 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear In Clock/Calendar Mode"
setclrfld.word 0x00 15. 0x00 15. -0x02 15. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 8. 0x00 8. -0x02 8. " ALARM0 ,Alarm 0 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 7. 0x00 7. -0x02 7. " PER[7] ,Periodic interval 7 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 6. 0x00 6. -0x02 6. " [6] ,Periodic interval 6 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 5. 0x00 5. -0x02 5. " [5] ,Periodic interval 5 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 4. 0x00 4. -0x02 4. " [4] ,Periodic interval 4 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 3. 0x00 3. -0x02 3. " [3] ,Periodic interval 3 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 2. 0x00 2. -0x02 2. " [2] ,Periodic interval 2 interrupt enable" "Disabled,Enabled"
setclrfld.word 0x00 1. 0x00 1. -0x02 1. " [1] ,Periodic interval 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.word 0x00 0. 0x00 0. -0x02 0. " [0] ,Periodic interval 0 interrupt enable" "Disabled,Enabled"
line.word 0x02 "INTFLAG,Interrupt Flag Status And Clear In Clock/Calendar Mode"
eventfld.word 0x02 15. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.word 0x02 8. " ALARM0 ,Alarm 0" "No interrupt,Interrupt"
eventfld.word 0x02 7. " PER[7] ,Periodic interval 7" "No interrupt,Interrupt"
newline
eventfld.word 0x02 6. " [6] ,Periodic interval 6" "No interrupt,Interrupt"
eventfld.word 0x02 5. " [5] ,Periodic interval 5" "No interrupt,Interrupt"
eventfld.word 0x02 4. " [4] ,Periodic interval 4" "No interrupt,Interrupt"
newline
eventfld.word 0x02 3. " [3] ,Periodic interval 3" "No interrupt,Interrupt"
eventfld.word 0x02 2. " [2] ,Periodic interval 2" "No interrupt,Interrupt"
eventfld.word 0x02 1. " [1] ,Periodic interval 1" "No interrupt,Interrupt"
newline
eventfld.word 0x02 0. " [0] ,Periodic interval 0" "No interrupt,Interrupt"
group.byte 0x0E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy In Clock/Calendar Mode"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 15. " CLOCKSYNC ,Clock read sync enable synchronization busy status" "Complete,Ongoing"
else
bitfld.long 0x00 15. " COUNTSYNC ,Count read sync enable synchronization busy status" "Complete,Ongoing"
endif
newline
bitfld.long 0x00 11. " MASK0 ,Mask 0 synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 5. " ALARM0 ,Alarm 0 synchronization busy status" "Complete,Ongoing"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 3. " CLOCK ,Clock register synchronization busy status" "Complete,Ongoing"
newline
else
bitfld.long 0x00 3. " COUNT ,Count value synchronization busy status" "Complete,Ongoing"
newline
endif
bitfld.long 0x00 2. " FREQCORR ,Frequency correction synchronization busy status" "Complete,Ongoing"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy status" "Complete,Ongoing"
newline
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy status" "Complete,Ongoing"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Decreased,Increased"
hexmask.byte 0x00 0.--6. 1. " VALUE ,Correction value"
else
group.byte 0x14++0x00
line.byte 0x00 "FREQCORR,Frequency Correction"
bitfld.byte 0x00 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x00 0.--5. 1. " VALUE ,Correction value"
endif
if ((per.l(ad:0x40002000+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++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"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x18++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"
newline
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:0x40002000+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++0x07
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,-,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x18++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,-,-"
newline
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:0x40002000+0x18)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++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,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x18++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,-"
newline
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:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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 "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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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
if ((per.l(ad:0x40002000+0x20)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x20++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"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x20++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"
newline
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:0x40002000+0x20)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++0x07
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,-,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x20++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,-,-"
newline
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:0x40002000+0x20)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x20++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,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x20++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,-"
newline
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:0x40002000+0x00)&0x40)==0x40)
group.long 0x20++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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 0x20++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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
if ((per.l(ad:0x40002000+0x28)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x28++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"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x28++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"
newline
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:0x40002000+0x28)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++0x07
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,-,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x28++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,-,-"
newline
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:0x40002000+0x28)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x28++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,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x28++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,-"
newline
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:0x40002000+0x00)&0x40)==0x40)
group.long 0x28++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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 0x28++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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
if ((per.l(ad:0x40002000+0x30)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x30++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"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x30++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"
newline
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:0x40002000+0x30)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++0x07
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,-,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x30++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,-,-"
newline
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:0x40002000+0x30)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x30++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,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x30++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,-"
newline
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:0x40002000+0x00)&0x40)==0x40)
group.long 0x30++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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 0x30++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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
if ((per.l(ad:0x40002000+0x38)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x38++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"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x38++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"
newline
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:0x40002000+0x38)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x18++0x07
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,-,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x38++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,-,-"
newline
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:0x40002000+0x38)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002000+0x00)&0x40)==0x40)
group.long 0x38++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,-"
newline
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:0x40002000+0x00)&0x40)==0x00)
group.long 0x38++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,-"
newline
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:0x40002000+0x00)&0x40)==0x40)
group.long 0x38++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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 0x38++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" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
newline
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.byte 0x24++0x00
line.byte 0x00 "MASK0,Alarm 0 Mask"
bitfld.byte 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,?..."
sif !cpuis("ATSAMC2*")
group.long 0x40++0x0F
line.long 0x00 "GP0,General Purpose 0"
line.long 0x04 "GP1,General Purpose 1"
line.long 0x08 "GP2,General Purpose 2"
line.long 0x0C "GP3,General Purpose 3"
endif
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
newline
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "32-bit counter,16-bit counter,Clock/Calendar,?..."
endif
width 0x0B
tree.end
tree "DMAC (Direct Memory Access Controller)"
tree "DMAC Registers"
base ad:0x44000400
width 17.
sif cpuis("ATSAMD21*")
if (((per.w(ad:0x44000400+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:0x44000400+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:0x44000400+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:0x44000400+0x0C))&0x01)==0x00)&&(((per.b(ad:0x44000400+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:0x44000400+0x0C))&0x01)==0x01)&&(((per.b(ad:0x44000400+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:0x44000400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x44000400+0x00))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x44000400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x44000400+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:0x44000400+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:0x44000400+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:0x44000400+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:0x44000400+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:0x44000400+0x20))&0x400)==0x400)||(((per.w(ad:0x44000400+0x20))&0x200)==0x200)||(((per.w(ad:0x44000400+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:0x44000400+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:0x44000400))&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:0x44000400))&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:0x44000400+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:0x44000400+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 "LP SRAM Registers"
tree "Channel 0"
base ad:(data.long(ad:0x44000434)+0x0)
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 "Channel 1"
base ad:(data.long(ad:0x44000434)+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 "Channel 2"
base ad:(data.long(ad:0x44000434)+0x20)
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 "Channel 3"
base ad:(data.long(ad:0x44000434)+0x30)
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 "Channel 4"
base ad:(data.long(ad:0x44000434)+0x40)
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 "Channel 5"
base ad:(data.long(ad:0x44000434)+0x50)
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 "Channel 6"
base ad:(data.long(ad:0x44000434)+0x60)
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 "Channel 7"
base ad:(data.long(ad:0x44000434)+0x70)
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 "Channel 8"
base ad:(data.long(ad:0x44000434)+0x80)
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 "Channel 9"
base ad:(data.long(ad:0x44000434)+0x90)
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 "Channel 10"
base ad:(data.long(ad:0x44000434)+0xA0)
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 "Channel 11"
base ad:(data.long(ad:0x44000434)+0xB0)
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 "Channel 12"
base ad:(data.long(ad:0x44000434)+0xC0)
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 "Channel 13"
base ad:(data.long(ad:0x44000434)+0xD0)
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 "Channel 14"
base ad:(data.long(ad:0x44000434)+0xE0)
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 "Channel 15"
base ad:(data.long(ad:0x44000434)+0xF0)
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:0x40002400
width 18.
if (((d.b(ad:0x40002400))&0x02)==0x00)
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control"
bitfld.byte 0x00 4. " CKSEL ,Clock Selection" "GCLK_EIC,CLK_ULP32K"
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"
rbitfld.byte 0x00 4. " CKSEL ,Clock Selection" "GCLK_EIC,CLK_ULP32K"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
group.byte 0x01++0x00
line.byte 0x00 "NMICTRL,Non-Maskable Interrupt Control"
bitfld.byte 0x00 4. " ASYNCH ,Asynchronous Edge Detection Mode" "Synchronously,Asynchronously"
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,?..."
group.word 0x02++0x01
line.word 0x00 "NMIFLAG,Non-Maskable Interrupt Flag Status and Clear"
eventfld.word 0x00 0. " NMI ,Non-Maskable Interrupt" "No interrupt,Interrupt"
rgroup.long 0x04++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 1. " ENABLE ,Enable Synchronization Busy Status" "Completed,Ongoing"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy Status" "Completed,Ongoing"
if (((d.b(ad:0x40002400))&0x02)==0x00)
group.long 0x08++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x0 15. " EXTINTEO[15] ,External Interrupt 15 Event Output" "Disabled,Enabled"
bitfld.long 0x0 14. " [14] ,External Interrupt 14 Event Output" "Disabled,Enabled"
bitfld.long 0x0 13. " [13] ,External Interrupt 13 Event Output" "Disabled,Enabled"
bitfld.long 0x0 12. " [12] ,External Interrupt 12 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 11. " [11] ,External Interrupt 11 Event Output" "Disabled,Enabled"
bitfld.long 0x0 10. " [10] ,External Interrupt 10 Event Output" "Disabled,Enabled"
bitfld.long 0x0 9. " [9] ,External Interrupt 9 Event Output" "Disabled,Enabled"
bitfld.long 0x0 8. " [8] ,External Interrupt 8 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " [7] ,External Interrupt 7 Event Output" "Disabled,Enabled"
bitfld.long 0x0 6. " [6] ,External Interrupt 6 Event Output" "Disabled,Enabled"
bitfld.long 0x0 5. " [5] ,External Interrupt 5 Event Output" "Disabled,Enabled"
bitfld.long 0x0 4. " [4] ,External Interrupt 4 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 3. " [3] ,External Interrupt 3 Event Output" "Disabled,Enabled"
bitfld.long 0x0 2. " [2] ,External Interrupt 2 Event Output" "Disabled,Enabled"
bitfld.long 0x0 1. " [1] ,External Interrupt 1 Event Output" "Disabled,Enabled"
bitfld.long 0x0 0. " [0] ,External Interrupt 0 Event Output" "Disabled,Enabled"
else
rgroup.long 0x08++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x0 15. " EXTINTEO[15] ,External Interrupt 15 Event Output" "Disabled,Enabled"
bitfld.long 0x0 14. " [14] ,External Interrupt 14 Event Output" "Disabled,Enabled"
bitfld.long 0x0 13. " [13] ,External Interrupt 13 Event Output" "Disabled,Enabled"
bitfld.long 0x0 12. " [12] ,External Interrupt 12 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 11. " [11] ,External Interrupt 11 Event Output" "Disabled,Enabled"
bitfld.long 0x0 10. " [10] ,External Interrupt 10 Event Output" "Disabled,Enabled"
bitfld.long 0x0 9. " [9] ,External Interrupt 9 Event Output" "Disabled,Enabled"
bitfld.long 0x0 8. " [8] ,External Interrupt 8 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " [7] ,External Interrupt 7 Event Output" "Disabled,Enabled"
bitfld.long 0x0 6. " [6] ,External Interrupt 6 Event Output" "Disabled,Enabled"
bitfld.long 0x0 5. " [5] ,External Interrupt 5 Event Output" "Disabled,Enabled"
bitfld.long 0x0 4. " [4] ,External Interrupt 4 Event Output" "Disabled,Enabled"
newline
bitfld.long 0x0 3. " [3] ,External Interrupt 3 Event Output" "Disabled,Enabled"
bitfld.long 0x0 2. " [2] ,External Interrupt 2 Event Output" "Disabled,Enabled"
bitfld.long 0x0 1. " [1] ,External Interrupt 1 Event Output" "Disabled,Enabled"
bitfld.long 0x0 0. " [0] ,External Interrupt 0 Event Output" "Disabled,Enabled"
endif
group.long 0x0C++0x03
line.long 0x00 "INTENCLR_set/clr,Interrupt Enable Clear"
setclrfld.long 0x0 15. 0x4 15. 0x0 15. " EXTINTEO[15] ,External Interrupt 15 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 14. 0x4 14. 0x0 14. " [14] ,External Interrupt 14 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 13. 0x4 13. 0x0 13. " [13] ,External Interrupt 13 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 12. 0x4 12. 0x0 12. " [12] ,External Interrupt 12 Event Enable" "Disabled,Enabled"
newline
setclrfld.long 0x0 11. 0x4 11. 0x0 11. " [11] ,External Interrupt 11 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 10. 0x4 10. 0x0 10. " [10] ,External Interrupt 10 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 9. 0x4 9. 0x0 9. " [9] ,External Interrupt 9 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 8. 0x4 8. 0x0 8. " [8] ,External Interrupt 8 Event Enable" "Disabled,Enabled"
newline
setclrfld.long 0x0 7. 0x4 7. 0x0 7. " [7] ,External Interrupt 7 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 6. 0x4 6. 0x0 6. " [6] ,External Interrupt 6 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 5. 0x4 5. 0x0 5. " [5] ,External Interrupt 5 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 4. 0x4 4. 0x0 4. " [4] ,External Interrupt 4 Event Enable" "Disabled,Enabled"
newline
setclrfld.long 0x0 3. 0x4 3. 0x0 3. " [3] ,External Interrupt 3 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 2. 0x4 2. 0x0 2. " [2] ,External Interrupt 2 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 1. 0x4 1. 0x0 1. " [1] ,External Interrupt 1 Event Enable" "Disabled,Enabled"
setclrfld.long 0x0 0. 0x4 0. 0x0 0. " [0] ,External Interrupt 0 Event Enable" "Disabled,Enabled"
group.long 0x14++0x7
line.long 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x00 15. " EXTINTEO[15] ,External Interrupt 15" "No effect,Clear"
eventfld.long 0x00 14. " [14] ,External Interrupt 14" "No effect,Clear"
eventfld.long 0x00 13. " [13] ,External Interrupt 13" "No effect,Clear"
eventfld.long 0x00 12. " [12] ,External Interrupt 12" "No effect,Clear"
newline
eventfld.long 0x00 11. " [11] ,External Interrupt 11" "No effect,Clear"
eventfld.long 0x00 10. " [10] ,External Interrupt 10" "No effect,Clear"
eventfld.long 0x00 9. " [9] ,External Interrupt 9" "No effect,Clear"
eventfld.long 0x00 8. " [8] ,External Interrupt 8" "No effect,Clear"
newline
eventfld.long 0x00 7. " [7] ,External Interrupt 7" "No effect,Clear"
eventfld.long 0x00 6. " [6] ,External Interrupt 6" "No effect,Clear"
eventfld.long 0x00 5. " [5] ,External Interrupt 5" "No effect,Clear"
eventfld.long 0x00 4. " [4] ,External Interrupt 4" "No effect,Clear"
newline
eventfld.long 0x00 3. " [3] ,External Interrupt 3" "No effect,Clear"
eventfld.long 0x00 2. " [2] ,External Interrupt 2" "No effect,Clear"
eventfld.long 0x00 1. " [1] ,External Interrupt 1" "No effect,Clear"
eventfld.long 0x00 0. " [0] ,External Interrupt 0" "No effect,Clear"
line.long 0x04 "ASYNCH,External Interrupt Asynchronous Mode"
eventfld.long 0x04 15. " ASYNCH[15] ,Asynchronous Edge Detection Mode bit 15" "Synchronously,Asynchronously"
eventfld.long 0x04 14. " [14] ,Asynchronous Edge Detection Mode bit 14" "Synchronously,Asynchronously"
eventfld.long 0x04 13. " [13] ,Asynchronous Edge Detection Mode bit 13" "Synchronously,Asynchronously"
eventfld.long 0x04 12. " [12] ,Asynchronous Edge Detection Mode bit 12" "Synchronously,Asynchronously"
newline
eventfld.long 0x04 11. " [11] ,Asynchronous Edge Detection Mode bit 11" "Synchronously,Asynchronously"
eventfld.long 0x04 10. " [10] ,Asynchronous Edge Detection Mode bit 10" "Synchronously,Asynchronously"
eventfld.long 0x04 9. " [9] ,Asynchronous Edge Detection Mode bit 9" "Synchronously,Asynchronously"
eventfld.long 0x04 8. " [8] ,Asynchronous Edge Detection Mode bit 8" "Synchronously,Asynchronously"
newline
eventfld.long 0x04 7. " [7] ,Asynchronous Edge Detection Mode bit 7" "Synchronously,Asynchronously"
eventfld.long 0x04 6. " [6] ,Asynchronous Edge Detection Mode bit 6" "Synchronously,Asynchronously"
eventfld.long 0x04 5. " [5] ,Asynchronous Edge Detection Mode bit 5" "Synchronously,Asynchronously"
eventfld.long 0x04 4. " [4] ,Asynchronous Edge Detection Mode bit 4" "Synchronously,Asynchronously"
newline
eventfld.long 0x04 3. " [3] ,Asynchronous Edge Detection Mode bit 3" "Synchronously,Asynchronously"
eventfld.long 0x04 2. " [2] ,Asynchronous Edge Detection Mode bit 2" "Synchronously,Asynchronously"
eventfld.long 0x04 1. " [1] ,Asynchronous Edge Detection Mode bit 1" "Synchronously,Asynchronously"
eventfld.long 0x04 0. " [0] ,Asynchronous Edge Detection Mode bit 0" "Synchronously,Asynchronously"
if (((d.b(ad:0x40002400))&0x02)==0x00)
group.long 0x1C++0x07
line.long 0x00 "CONFIG0,Configuration 0"
bitfld.long 0x00 31. " FILTEN7 ,Filter 7 Enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE7 ,SENSE7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 Enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,SENSE6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 Enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,SENSE5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,SENSE4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,SENSE3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,SENSE2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,SENSE1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,SENSE0" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x04 "CONFIG1,Configuration 1"
bitfld.long 0x04 31. " FILTEN15 ,Filter 15 Enable" "Disabled,Enabled"
bitfld.long 0x04 28.--30. " SENSE15 ,SENSE15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 Enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,SENSE14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 Enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,SENSE13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 Enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,SENSE12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 Enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,SENSE11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 Enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,SENSE10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 Enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,SENSE9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 Enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,SENSE8" "None,Rise,Fall,Both,High,Low,?..."
else
rgroup.long 0x1C++0x07
line.long 0x00 "CONFIG0,Configuration 0"
bitfld.long 0x00 31. " FILTEN7 ,Filter 7 Enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE7 ,SENSE7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 Enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,SENSE6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 Enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,SENSE5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,SENSE4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,SENSE3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,SENSE2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,SENSE1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,SENSE0" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x04 "CONFIG1,Configuration 1"
bitfld.long 0x04 31. " FILTEN15 ,Filter 15 Enable" "Disabled,Enabled"
bitfld.long 0x04 28.--30. " SENSE15 ,SENSE15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 Enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,SENSE14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 Enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,SENSE13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 Enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,SENSE12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 Enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,SENSE11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 Enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,SENSE10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 Enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,SENSE9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 Enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,SENSE8" "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.open "PORT (I/O Pin Controller)"
tree "PORT A"
base ad:0x40002800
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_SET/CLR,Data Direction Set/Clear"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " PA31 , Port A 31" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " PA30 ,Port A 30" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " PA27 ,Port A 27" "Disabled,Enabled"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " PA25 ,Port A 25" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " PA24 ,Port A 24" "Disabled,Enabled"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " PA23 ,Port A 23" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " PA22 ,Port A 22" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " PA21 ,Port A 21" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " PA20 ,Port A 20" "Disabled,Enabled"
endif
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " PA19 ,Port A 19" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " PA18 ,Port A 18" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " PA17 ,Port A 17" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " PA16 ,Port A 16" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " PA15 ,Port A 15" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " PA14 ,Port A 14" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " PA13 ,Port A 13" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " PA12 ,Port A 12" "Disabled,Enabled"
endif
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " PA11 ,Port A 11" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " PA10 ,Port A 10" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " PA09 ,Port A 09" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " PA08 ,Port A 08" "Disabled,Enabled"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " PA07 ,Port A 07" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " PA06 ,Port A 06" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " PA05 ,Port A 05" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " PA04 ,Port A 04" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " PA03 ,Port A 03" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " PA02 ,Port A 02" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " PA01 ,Port A 01" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " PA00 ,Port A 00" "Disabled,Enabled"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " PA31 , Port A 31" "Not changed,Toggled"
bitfld.long 0x00 30. " PA30 ,Port A 30" "Not changed,Toggled"
textline " "
bitfld.long 0x00 27. " PA27 ,Port A 27" "Not changed,Toggled"
bitfld.long 0x00 25. " PA25 ,Port A 25" "Not changed,Toggled"
textline " "
bitfld.long 0x00 24. " PA24 ,Port A 24" "Not changed,Toggled"
bitfld.long 0x00 23. " PA23 ,Port A 23" "Not changed,Toggled"
textline " "
bitfld.long 0x00 22. " PA22 ,Port A 22" "Not changed,Toggled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 21. " PA21 ,Port A 21" "Not changed,Toggled"
textline " "
bitfld.long 0x00 20. " PA20 ,Port A 20" "Not changed,Toggled"
endif
bitfld.long 0x00 19. " PA19 ,Port A 19" "Not changed,Toggled"
textline " "
bitfld.long 0x00 18. " PA18 ,Port A 18" "Not changed,Toggled"
bitfld.long 0x00 17. " PA17 ,Port A 17" "Not changed,Toggled"
textline " "
bitfld.long 0x00 16. " PA16 ,Port A 16" "Not changed,Toggled"
bitfld.long 0x00 15. " PA15 ,Port A 15" "Not changed,Toggled"
textline " "
bitfld.long 0x00 14. " PA14 ,Port A 14" "Not changed,Toggled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 13. " PA13 ,Port A 13" "Not changed,Toggled"
textline " "
bitfld.long 0x00 12. " PA12 ,Port A 12" "Not changed,Toggled"
endif
bitfld.long 0x00 11. " PA11 ,Port A 11" "Not changed,Toggled"
textline " "
bitfld.long 0x00 10. " PA10 ,Port A 10" "Not changed,Toggled"
bitfld.long 0x00 9. " PA09 ,Port A 09" "Not changed,Toggled"
textline " "
bitfld.long 0x00 8. " PA08 ,Port A 08" "Not changed,Toggled"
bitfld.long 0x00 7. " PA07 ,Port A 07" "Not changed,Toggled"
textline " "
bitfld.long 0x00 6. " PA06 ,Port A 06" "Not changed,Toggled"
bitfld.long 0x00 5. " PA05 ,Port A 05" "Not changed,Toggled"
textline " "
bitfld.long 0x00 4. " PA04 ,Port A 04" "Not changed,Toggled"
bitfld.long 0x00 3. " PA03 ,Port A 03" "Not changed,Toggled"
textline " "
bitfld.long 0x00 2. " PA02 ,Port A 02" "Not changed,Toggled"
bitfld.long 0x00 1. " PA01 ,Port A 01" "Not changed,Toggled"
textline " "
bitfld.long 0x00 0. " PA00 ,Port A 00" "Not changed,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value Set/Clear"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " PA31 , Port A 31" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " PA30 ,Port A 30" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " PA27 ,Port A 27" "Disabled,Enabled"
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " PA25 ,Port A 25" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " PA24 ,Port A 24" "Disabled,Enabled"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " PA23 ,Port A 23" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " PA22 ,Port A 22" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " PA21 ,Port A 21" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " PA20 ,Port A 20" "Disabled,Enabled"
endif
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " PA19 ,Port A 19" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " PA18 ,Port A 18" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " PA17 ,Port A 17" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " PA16 ,Port A 16" "Disabled,Enabled"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " PA15 ,Port A 15" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " PA14 ,Port A 14" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " PA13 ,Port A 13" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " PA12 ,Port A 12" "Disabled,Enabled"
endif
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " PA11 ,Port A 11" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " PA10 ,Port A 10" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " PA09 ,Port A 09" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " PA08 ,Port A 08" "Disabled,Enabled"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " PA07 ,Port A 07" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " PA06 ,Port A 06" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " PA05 ,Port A 05" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " PA04 ,Port A 04" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " PA03 ,Port A 03" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " PA02 ,Port A 02" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " PA01 ,Port A 01" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " PA00 ,Port A 00" "Disabled,Enabled"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 31. " PA31 , Port A 31" "Not changed,Toggled"
bitfld.long 0x00 30. " PA30 ,Port A 30" "Not changed,Toggled"
textline " "
bitfld.long 0x00 27. " PA27 ,Port A 27" "Not changed,Toggled"
bitfld.long 0x00 25. " PA25 ,Port A 25" "Not changed,Toggled"
textline " "
bitfld.long 0x00 24. " PA24 ,Port A 24" "Not changed,Toggled"
bitfld.long 0x00 23. " PA23 ,Port A 23" "Not changed,Toggled"
textline " "
bitfld.long 0x00 22. " PA22 ,Port A 22" "Not changed,Toggled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 21. " PA21 ,Port A 21" "Not changed,Toggled"
textline " "
bitfld.long 0x00 20. " PA20 ,Port A 20" "Not changed,Toggled"
endif
bitfld.long 0x00 19. " PA19 ,Port A 19" "Not changed,Toggled"
textline " "
bitfld.long 0x00 18. " PA18 ,Port A 18" "Not changed,Toggled"
bitfld.long 0x00 17. " PA17 ,Port A 17" "Not changed,Toggled"
textline " "
bitfld.long 0x00 16. " PA16 ,Port A 16" "Not changed,Toggled"
bitfld.long 0x00 15. " PA15 ,Port A 15" "Not changed,Toggled"
textline " "
bitfld.long 0x00 14. " PA14 ,Port A 14" "Not changed,Toggled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 13. " PA13 ,Port A 13" "Not changed,Toggled"
textline " "
bitfld.long 0x00 12. " PA12 ,Port A 12" "Not changed,Toggled"
endif
bitfld.long 0x00 11. " PA11 ,Port A 11" "Not changed,Toggled"
textline " "
bitfld.long 0x00 10. " PA10 ,Port A 10" "Not changed,Toggled"
bitfld.long 0x00 9. " PA09 ,Port A 09" "Not changed,Toggled"
textline " "
bitfld.long 0x00 8. " PA08 ,Port A 08" "Not changed,Toggled"
bitfld.long 0x00 7. " PA07 ,Port A 07" "Not changed,Toggled"
textline " "
bitfld.long 0x00 6. " PA06 ,Port A 06" "Not changed,Toggled"
bitfld.long 0x00 5. " PA05 ,Port A 05" "Not changed,Toggled"
textline " "
bitfld.long 0x00 4. " PA04 ,Port A 04" "Not changed,Toggled"
bitfld.long 0x00 3. " PA03 ,Port A 03" "Not changed,Toggled"
textline " "
bitfld.long 0x00 2. " PA02 ,Port A 02" "Not changed,Toggled"
bitfld.long 0x00 1. " PA01 ,Port A 01" "Not changed,Toggled"
textline " "
bitfld.long 0x00 0. " PA00 ,Port A 00" "Not changed,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " PA31 , Port A 31" "Low,High"
bitfld.long 0x00 30. " PA30 ,Port A 30" "Low,High"
textline " "
bitfld.long 0x00 27. " PA27 ,Port A 27" "Low,High"
bitfld.long 0x00 25. " PA25 ,Port A 25" "Low,High"
textline " "
bitfld.long 0x00 24. " PA24 ,Port A 24" "Low,High"
bitfld.long 0x00 23. " PA23 ,Port A 23" "Low,High"
textline " "
bitfld.long 0x00 22. " PA22 ,Port A 22" "Low,High"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 21. " PA21 ,Port A 21" "Low,High"
textline " "
bitfld.long 0x00 20. " PA20 ,Port A 20" "Low,High"
endif
bitfld.long 0x00 19. " PA19 ,Port A 19" "Low,High"
textline " "
bitfld.long 0x00 18. " PA18 ,Port A 18" "Low,High"
bitfld.long 0x00 17. " PA17 ,Port A 17" "Low,High"
textline " "
bitfld.long 0x00 16. " PA16 ,Port A 16" "Low,High"
bitfld.long 0x00 15. " PA15 ,Port A 15" "Low,High"
textline " "
bitfld.long 0x00 14. " PA14 ,Port A 14" "Low,High"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 13. " PA13 ,Port A 13" "Low,High"
textline " "
bitfld.long 0x00 12. " PA12 ,Port A 12" "Low,High"
endif
bitfld.long 0x00 11. " PA11 ,Port A 11" "Low,High"
textline " "
bitfld.long 0x00 10. " PA10 ,Port A 10" "Low,High"
bitfld.long 0x00 9. " PA09 ,Port A 09" "Low,High"
textline " "
bitfld.long 0x00 8. " PA08 ,Port A 08" "Low,High"
bitfld.long 0x00 7. " PA07 ,Port A 07" "Low,High"
textline " "
bitfld.long 0x00 6. " PA06 ,Port A 06" "Low,High"
bitfld.long 0x00 5. " PA05 ,Port A 05" "Low,High"
textline " "
bitfld.long 0x00 4. " PA04 ,Port A 04" "Low,High"
bitfld.long 0x00 3. " PA03 ,Port A 03" "Low,High"
textline " "
bitfld.long 0x00 2. " PA02 ,Port A 02" "Low,High"
bitfld.long 0x00 1. " PA01 ,Port A 01" "Low,High"
textline " "
bitfld.long 0x00 0. " PA00 ,Port A 00" "Low,High"
group.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " PA31 , Port A 31" "Disabled,Enabled"
bitfld.long 0x00 30. " PA30 ,Port A 30" "Disabled,Enabled"
textline " "
bitfld.long 0x00 27. " PA27 ,Port A 27" "Disabled,Enabled"
bitfld.long 0x00 25. " PA25 ,Port A 25" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24. " PA24 ,Port A 24" "Disabled,Enabled"
bitfld.long 0x00 23. " PA23 ,Port A 23" "Disabled,Enabled"
textline " "
bitfld.long 0x00 22. " PA22 ,Port A 22" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 21. " PA21 ,Port A 21" "Disabled,Enabled"
textline " "
bitfld.long 0x00 20. " PA20 ,Port A 20" "Disabled,Enabled"
endif
bitfld.long 0x00 19. " PA19 ,Port A 19" "Disabled,Enabled"
textline " "
bitfld.long 0x00 18. " PA18 ,Port A 18" "Disabled,Enabled"
bitfld.long 0x00 17. " PA17 ,Port A 17" "Disabled,Enabled"
textline " "
bitfld.long 0x00 16. " PA16 ,Port A 16" "Disabled,Enabled"
bitfld.long 0x00 15. " PA15 ,Port A 15" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " PA14 ,Port A 14" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
bitfld.long 0x00 13. " PA13 ,Port A 13" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12. " PA12 ,Port A 12" "Disabled,Enabled"
endif
bitfld.long 0x00 11. " PA11 ,Port A 11" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " PA10 ,Port A 10" "Disabled,Enabled"
bitfld.long 0x00 9. " PA09 ,Port A 09" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " PA08 ,Port A 08" "Disabled,Enabled"
bitfld.long 0x00 7. " PA07 ,Port A 07" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PA06 ,Port A 06" "Disabled,Enabled"
bitfld.long 0x00 5. " PA05 ,Port A 05" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " PA04 ,Port A 04" "Disabled,Enabled"
bitfld.long 0x00 3. " PA03 ,Port A 03" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2. " PA02 ,Port A 02" "Disabled,Enabled"
bitfld.long 0x00 1. " PA01 ,Port A 01" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " PA00 ,Port A 00" "Disabled,Enabled"
textline " "
width 10.
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "lower 16 pins of the PORT,upper 16 pins of the PORT"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
textline " "
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
textline " "
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 0.--15. 1. " PINMASK ,Pin Mask for Multiple Pin Configuration"
group.long 0x2C++0x03
line.long 0x00 "EVCTRL,Event Input Control"
bitfld.long 0x00 31. " PORTEI3 ,PORT Event Input 3 Enable" "Not triggered,Triggered"
bitfld.long 0x00 29.--30. " EVACT3 ,PORT Event Action 3" "OUT,SET,CLR,TGL"
textline " "
sif (cpuis("ATSAML21E*"))
bitfld.long 0x00 24.--28. " PID3 ,PORT Event Pin Identifier 3" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,,,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
else
bitfld.long 0x00 24.--28. " PID3 ,PORT Event Pin Identifier 3" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,PIN20,PIN21,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
endif
bitfld.long 0x00 23. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
textline " "
bitfld.long 0x00 21.--22. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21E*"))
bitfld.long 0x00 16.--20. " PID2 ,PORT Event Pin Identifier 2" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,,,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
else
bitfld.long 0x00 16.--20. " PID2 ,PORT Event Pin Identifier 2" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,PIN20,PIN21,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
endif
textline " "
bitfld.long 0x00 15. " PORTEI1 ,PORT Event Input 1 Enable" "Not triggered,Triggered"
bitfld.long 0x00 13.--14. " EVACT1 ,PORT Event Action 1" "OUT,SET,CLR,TGL"
textline " "
sif (cpuis("ATSAML21E*"))
bitfld.long 0x00 8.--12. " PID1 ,PORT Event Pin Identifier 1" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,,,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
else
bitfld.long 0x00 8.--12. " PID1 ,PORT Event Pin Identifier 1" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,PIN20,PIN21,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
endif
bitfld.long 0x00 7. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
textline " "
bitfld.long 0x00 5.--6. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21E*"))
bitfld.long 0x00 0.--4. " PID0 ,PORT Event Pin Identifier 0" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,,,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
else
bitfld.long 0x00 0.--4. " PID0 ,PORT Event Pin Identifier 0" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,PIN20,PIN21,PIN22,PIN23,PIN24,PIN25,,PIN27,,,PIN30,PIN31"
endif
group.byte 0x30++0x0D
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PA01 ,Port A Pin 01" "EXTINT[1]/EXTWAKE[1],,SERCOM1/PAD[1],,TC2/WO[1],?..."
bitfld.byte 0x00 0.--3. " PA00 ,Port A Pin 00" "EXTINT[0]/EXTWAKE[0],,,SERCOM1/PAD[0],TC2/WO[0],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PA03 ,Port A Pin 03" "EXTINT[3]/EXTWAKE[3],(VREFA/AIN[1]/Y[1),?..."
bitfld.byte 0x01 0.--3. " PA02 ,Port A Pin 02" "EXTINT[2]/EXTWAKE[2],AIN[0]/Y[0]/VOUT/OA_NEG[0],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PA05 ,Port A Pin 05" "EXTINT[5]/EXTWAKE[5],AIN[5]/AIN[1]/VOUT[1]/OA_POS[2],,SERCOM0/PAD[1],,TCC0/WO[1],,,,CCL0IN[1],?..."
bitfld.byte 0x02 0.--3. " PA04 ,Port A Pin 04" "EXTINT[4]/EXTWAKE[4],VREFB/AIN[4]/AIN[0]/OA_OUT[2],,SERCOM0/PAD[0],TCC0/WO[0],,,,CCL0IN[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PA07 ,Port A Pin 07" "EXTINT[7]//EXTWAKE[7],AIN[7]/AIN[3]/OA_OUT[0],,SERCOM0/PAD[3],,TCC1/WO[1],,,,CCL0OUT,?..."
bitfld.byte 0x03 0.--3. " PA06 ,Port A Pin 06" "EXTINT[6]/EXTWAKE[6],AIN[6]/AIN[2]/Y[4]/OA_POS[0],,SERCOM0/PAD[2],,TCC1/WO[0],,,,CCL0IN[2],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PA09 ,Port A Pin 09" "EXTINT[9],AIN[17]/X[1]/Y[7],SERCOM0/PAD[1],SERCOM2/PAD[1],TCC0/WO[1],TCC1/WO[3],,,CCL1IN[1],?..."
bitfld.byte 0x04 0.--3. " PA08 ,Port A Pin 08" "NMI,AIN[16]/X[0]/Y[6],SERCOM0/PAD[0],SERCOM2/PAD[0],TCC0/WO[1],TCC1/WO[2],,,CCL1IN[0],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PA11 ,Port A Pin 11" "EXTINT[11],AIN[19]/X[3]/Y[9],SERCOM0/PAD[3],SERCOM2/PAD[3],TCC1/WO[1],TCC0/WO[3],,GCLK/IO[5],CCL1OUT,?..."
bitfld.byte 0x05 0.--3. " PA10 ,Port A Pin 10" "EXTINT[10],AIN[18]/X[2]/Y[8],SERCOM0/PAD[2],SERCOM2/PAD[2],TCC1/WO[0],TCC2/WO[2],,GCLK/IO[4],CCL1IN[2],?..."
sif (!cpuis("ATSAML21E*"))
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PA13 ,Port A Pin 13" "EXTINT[13],,SERCOM2/PAD[1],SERCOM4/PAD[1],TCC2/WO[1],TCC0/WO[7],,AC/CMP[1],?..."
bitfld.byte 0x06 0.--3. " PA12 ,Port A Pin 12" "EXTINT[12],,SERCOM2/PAD[0],SERCOM4/PAD[0],TCC2/WO[0],TCC0/WO[6],,AC/CMP[0],?..."
endif
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PA15 ,Port A Pin 15" "EXTINT[15],,SERCOM2/PAD[3],SERCOM4/PAD[3],TC4/WO[1],TCC0/WO[5],,GCLK/IO[1],?..."
bitfld.byte 0x07 0.--3. " PA14 ,Port A Pin 14" "EXTINT[14],,SERCOM2/PAD[2],SERCOM4/PAD[2],TC4/WO[0],TCC0/WO[4],,GCLK/IO[0],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PA17 ,Port A Pin 17" "EXTINT[1],X[5],SERCOM1/PAD[1],SERCOM3/PAD[1],TCC2/WO[1],TCC0/WO[7],,GCLK/IO[3],CCL0IN[1],?..."
bitfld.byte 0x08 0.--3. " PA16 ,Port A Pin 16" "EXTINT[0],X[4],SERCOM1/PAD[0],SERCOM3/PAD[0],TCC2/WO[0],TCC0/WO[6],,GCLK/IO[2],CCL0IN[0],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PA19 ,Port A Pin 19" "EXTINT[3],X[7],SERCOM1/PAD[3],SERCOM3/PAD[3],TC4/WO[1],TCC0/WO[3],,AC/CMP[1],CCL0OUT,?..."
bitfld.byte 0x09 0.--3. " PA18 ,Port A Pin 18" "EXTINT[2],X[6],SERCOM1/PAD[2],SERCOM3/PAD[2],TC4/WO[0],TCC0/WO[2],,AC/CMP[0],CCL0IN[2],?..."
sif (!cpuis("ATSAML21E*"))
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PA21 ,Port A Pin 21" "EXTINT[5],X[9],SERCOM5/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC0/WO[7],,GCLK/IO[5],?..."
bitfld.byte 0x0A 0.--3. " PA20 ,Port A Pin 20" "EXTINT[4],X[8],SERCOM5/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC0/WO[6],,GCLK/IO[4],?..."
endif
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PA23 ,Port A Pin 23" "EXTINT[7],X[11],SERCOM3/PAD[1],SERCOM5/PAD[1],TC0/WO[1],TCC0/WO[5],USB/SOF,GCLK/IO[7],CCL2IN[1],?..."
bitfld.byte 0x0B 0.--3. " PA22 ,Port A Pin 22" "EXTINT[6],X[10],SERCOM3/PAD[0],SERCOM5/PAD[0],TC0/WO[0],TCC/WO[4],,GCLK/IO[6],CCL2IN[0],?..."
line.byte 0x0C "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x0C 4.--7. " PA25 ,Port A Pin 25" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC1/WO[1],TCC1/WO[3],USB/DP,,CCL2OUT,?..."
bitfld.byte 0x0C 0.--3. " PA24 ,Port A Pin 24" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC1/WO[0],TCC1/WO[2],USB/DM,,CCL2IN[2],?..."
line.byte 0x0D "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x0D 4.--7. " PA27 ,Port A Pin 27" "EXTINT[15],,,,,,,GCLK/IO[0],?..."
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " PA31 ,Port A Pin 31" "EXTINT[11],,,SERCOM1/PAD[3],TCC1/WO[1],,SWDIO,,CCL1OUT,?..."
bitfld.byte 0x00 0.--3. " PA30 ,Port A Pin 30" "EXTINT[10],,,SERCOM1/PAD[2],TCC1/WO[0],,CORTEXM0P/SWCLK,GCLK/IO[0],CCL1IN[0],?..."
group.byte 0x40++0x19
line.byte 0x00 "PINCFG0,Pin Configuration 0"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x02 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x02 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x02 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x02 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x03 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x03 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x03 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x03 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x03 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x04 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x04 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x04 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x04 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x04 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x05 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x05 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x05 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x05 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x05 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x06 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x06 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x06 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x06 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x06 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x07 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x07 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x07 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x07 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x07 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x08 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x08 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x08 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x08 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x08 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x09 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x09 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x09 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x09 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x09 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0A "PINCFG10,Pin Configuration 10"
bitfld.byte 0x0A 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0A 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0A 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0A 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0B "PINCFG11,Pin Configuration 11"
bitfld.byte 0x0B 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0B 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0B 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0B 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
line.byte 0x0C "PINCFG12,Pin Configuration 12"
bitfld.byte 0x0C 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0C 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0C 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0C 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0D "PINCFG13,Pin Configuration 13"
bitfld.byte 0x0D 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0D 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0D 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0D 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
line.byte 0x0E "PINCFG14,Pin Configuration 14"
bitfld.byte 0x0E 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0E 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0E 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0E 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0F "PINCFG15,Pin Configuration 15"
bitfld.byte 0x0F 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0F 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0F 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0F 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x10 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x10 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x10 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x10 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x10 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x11 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x11 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x11 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x11 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x11 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x12 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x12 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x12 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x12 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x12 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x13 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x13 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x13 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x13 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x13 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
sif (!cpuis("ATSAML21E*"))
line.byte 0x14 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x14 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x14 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x14 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x14 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x15 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x15 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x15 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x15 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x15 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
line.byte 0x16 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x16 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x16 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x16 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x16 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x17 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x17 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x17 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x17 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x17 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x18 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x18 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x18 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x18 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x18 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x19 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x19 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x19 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x19 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x19 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5B++0x00
line.byte 0x00 "PINCFG27,Pin Configuration 27"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5E++0x01
line.byte 0x00 "PINCFG30,Pin Configuration 30"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
width 0xb
tree.end
sif cpuis(ATSAMl21G*)||cpuis(ATSAML21J*)
tree "PORT B"
base ad:0x40002880
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_SET/CLR,Data Direction Set/Clear"
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " PB31 ,Port B 31" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " PB30 ,Port B 30" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " PB23 ,Port B 23" "Disabled,Enabled"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " PB22 ,Port B 22" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " PB17 ,Port B 17" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " PB16 ,Port B 16" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " PB15 ,Port B 15" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " PB14 ,Port B 14" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " PB13 ,Port B 13" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " PB12 ,Port B 12" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " PB11 ,Port B 11" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " PB10 ,Port B 10" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " PB09 ,Port B 09" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " PB08 ,Port B 08" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " PB07 ,Port B 07" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " PB06 ,Port B 06" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " PB05 ,Port B 05" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " PB04 ,Port B 04" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " PB03 ,Port B 03" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " PB02 ,Port B 02" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " PB01 ,Port B 01" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " PB00 ,Port B 00" "Disabled,Enabled"
endif
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 31. " PB31 ,Port B 31" "Not changed,Toggled"
bitfld.long 0x00 30. " PB30 ,Port B 30" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 23. " PB23 ,Port B 23" "Not changed,Toggled"
bitfld.long 0x00 22. " PB22 ,Port B 22" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 17. " PB17 ,Port B 17" "Not changed,Toggled"
bitfld.long 0x00 16. " PB16 ,Port B 16" "Not changed,Toggled"
textline " "
bitfld.long 0x00 15. " PB15 ,Port B 15" "Not changed,Toggled"
bitfld.long 0x00 14. " PB14 ,Port B 14" "Not changed,Toggled"
textline " "
bitfld.long 0x00 13. " PB13 ,Port B 13" "Not changed,Toggled"
bitfld.long 0x00 12. " PB12 ,Port B 12" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 11. " PB11 ,Port B 11" "Not changed,Toggled"
bitfld.long 0x00 10. " PB10 ,Port B 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " PB09 ,Port B 09" "Not changed,Toggled"
bitfld.long 0x00 8. " PB08 ,Port B 08" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 7. " PB07 ,Port B 07" "Not changed,Toggled"
bitfld.long 0x00 6. " PB06 ,Port B 06" "Not changed,Toggled"
textline " "
bitfld.long 0x00 5. " PB05 ,Port B 05" "Not changed,Toggled"
bitfld.long 0x00 4. " PB04 ,Port B 04" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 3. " PB03 ,Port B 03" "Not changed,Toggled"
bitfld.long 0x00 2. " PB02 ,Port B 02" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 1. " PB01 ,Port B 01" "Not changed,Toggled"
bitfld.long 0x00 0. " PB00 ,Port B 00" "Not changed,Toggled"
endif
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value Set/Clear"
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " PB31 ,Port B 31" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " PB30 ,Port B 30" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " PB23 ,Port B 23" "Disabled,Enabled"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " PB22 ,Port B 22" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " PB17 ,Port B 17" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " PB16 ,Port B 16" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " PB15 ,Port B 15" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " PB14 ,Port B 14" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " PB13 ,Port B 13" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " PB12 ,Port B 12" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " PB11 ,Port B 11" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " PB10 ,Port B 10" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " PB09 ,Port B 09" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " PB08 ,Port B 08" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " PB07 ,Port B 07" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " PB06 ,Port B 06" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " PB05 ,Port B 05" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " PB04 ,Port B 04" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " PB03 ,Port B 03" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " PB02 ,Port B 02" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " PB01 ,Port B 01" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " PB00 ,Port B 00" "Disabled,Enabled"
endif
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 31. " PB31 ,Port B 31" "Not changed,Toggled"
bitfld.long 0x00 30. " PB30 ,Port B 30" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 23. " PB23 ,Port B 23" "Not changed,Toggled"
bitfld.long 0x00 22. " PB22 ,Port B 22" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 17. " PB17 ,Port B 17" "Not changed,Toggled"
bitfld.long 0x00 16. " PB16 ,Port B 16" "Not changed,Toggled"
textline " "
bitfld.long 0x00 15. " PB15 ,Port B 15" "Not changed,Toggled"
bitfld.long 0x00 14. " PB14 ,Port B 14" "Not changed,Toggled"
textline " "
bitfld.long 0x00 13. " PB13 ,Port B 13" "Not changed,Toggled"
bitfld.long 0x00 12. " PB12 ,Port B 12" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 11. " PB11 ,Port B 11" "Not changed,Toggled"
bitfld.long 0x00 10. " PB10 ,Port B 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " PB09 ,Port B 09" "Not changed,Toggled"
bitfld.long 0x00 8. " PB08 ,Port B 08" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 7. " PB07 ,Port B 07" "Not changed,Toggled"
bitfld.long 0x00 6. " PB06 ,Port B 06" "Not changed,Toggled"
textline " "
bitfld.long 0x00 5. " PB05 ,Port B 05" "Not changed,Toggled"
bitfld.long 0x00 4. " PB04 ,Port B 04" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 3. " PB03 ,Port B 03" "Not changed,Toggled"
bitfld.long 0x00 2. " PB02 ,Port B 02" "Not changed,Toggled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 1. " PB01 ,Port B 01" "Not changed,Toggled"
bitfld.long 0x00 0. " PB00 ,Port B 00" "Not changed,Toggled"
endif
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 31. " PB31 ,Port B 31" "Low,High"
bitfld.long 0x00 30. " PB30 ,Port B 30" "Low,High"
textline " "
endif
bitfld.long 0x00 23. " PB23 ,Port B 23" "Low,High"
bitfld.long 0x00 22. " PB22 ,Port B 22" "Low,High"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 17. " PB17 ,Port B 17" "Low,High"
bitfld.long 0x00 16. " PB16 ,Port B 16" "Low,High"
textline " "
bitfld.long 0x00 15. " PB15 ,Port B 15" "Low,High"
bitfld.long 0x00 14. " PB14 ,Port B 14" "Low,High"
textline " "
bitfld.long 0x00 13. " PB13 ,Port B 13" "Low,High"
bitfld.long 0x00 12. " PB12 ,Port B 12" "Low,High"
textline " "
endif
bitfld.long 0x00 11. " PB11 ,Port B 11" "Low,High"
bitfld.long 0x00 10. " PB10 ,Port B 10" "Low,High"
textline " "
bitfld.long 0x00 9. " PB09 ,Port B 09" "Low,High"
bitfld.long 0x00 8. " PB08 ,Port B 08" "Low,High"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 7. " PB07 ,Port B 07" "Low,High"
bitfld.long 0x00 6. " PB06 ,Port B 06" "Low,High"
textline " "
bitfld.long 0x00 5. " PB05 ,Port B 05" "Low,High"
bitfld.long 0x00 4. " PB04 ,Port B 04" "Low,High"
textline " "
endif
bitfld.long 0x00 3. " PB03 ,Port B 03" "Low,High"
bitfld.long 0x00 2. " PB02 ,Port B 02" "Low,High"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 1. " PB01 ,Port B 01" "Low,High"
bitfld.long 0x00 0. " PB00 ,Port B 00" "Low,High"
endif
group.long 0x24++0x03
line.long 0x00 "CTRL,Control"
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 31. " PB31 ,Port B 31" "Disabled,Enabled"
bitfld.long 0x00 30. " PB30 ,Port B 30" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x00 23. " PB23 ,Port B 23" "Disabled,Enabled"
bitfld.long 0x00 22. " PB22 ,Port B 22" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 17. " PB17 ,Port B 17" "Disabled,Enabled"
bitfld.long 0x00 16. " PB16 ,Port B 16" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " PB15 ,Port B 15" "Disabled,Enabled"
bitfld.long 0x00 14. " PB14 ,Port B 14" "Disabled,Enabled"
textline " "
bitfld.long 0x00 13. " PB13 ,Port B 13" "Disabled,Enabled"
bitfld.long 0x00 12. " PB12 ,Port B 12" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x00 11. " PB11 ,Port B 11" "Disabled,Enabled"
bitfld.long 0x00 10. " PB10 ,Port B 10" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " PB09 ,Port B 09" "Disabled,Enabled"
bitfld.long 0x00 8. " PB08 ,Port B 08" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 7. " PB07 ,Port B 07" "Disabled,Enabled"
bitfld.long 0x00 6. " PB06 ,Port B 06" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5. " PB05 ,Port B 05" "Disabled,Enabled"
bitfld.long 0x00 4. " PB04 ,Port B 04" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x00 3. " PB03 ,Port B 03" "Disabled,Enabled"
bitfld.long 0x00 2. " PB02 ,Port B 02" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAML21G*"))
bitfld.long 0x00 1. " PB01 ,Port B 01" "Disabled,Enabled"
bitfld.long 0x00 0. " PB00 ,Port B 00" "Disabled,Enabled"
endif
textline ""
width 10.
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "lower 16 pins of the PORT,upper 16 pins of the PORT"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
textline " "
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
textline " "
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 0.--15. 1. " PINMASK ,Pin Mask for Multiple Pin Configuration"
group.long 0x2C++0x03
line.long 0x00 "EVCTRL,Event Input Control"
bitfld.long 0x00 31. " PORTEI3 ,PORT Event Input 3 Enable" "Not triggered,Triggered"
bitfld.long 0x00 29.--30. " EVACT3 ,PORT Event Action 3" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21J*"))
bitfld.long 0x00 24.--28. " PID3 ,PORT Event Pin Identifier 3" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
elif (cpuis("ATSAML21G*"))
bitfld.long 0x00 24.--28. " PID3 ,PORT Event Pin Identifier 3" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
endif
textline " "
bitfld.long 0x00 31. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
bitfld.long 0x00 29.--30. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21J*"))
bitfld.long 0x00 24.--28. " PID2 ,PORT Event Pin Identifier 2" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
elif (cpuis("ATSAML21G*"))
bitfld.long 0x00 24.--28. " PID2 ,PORT Event Pin Identifier 2" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
endif
textline " "
bitfld.long 0x00 31. " PORTEI1 ,PORT Event Input 1 Enable" "Not triggered,Triggered"
bitfld.long 0x00 29.--30. " EVACT1 ,PORT Event Action 1" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21J*"))
bitfld.long 0x00 24.--28. " PID1 ,PORT Event Pin Identifier 1" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
elif (cpuis("ATSAML21G*"))
bitfld.long 0x00 24.--28. " PID1 ,PORT Event Pin Identifier 1" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
endif
textline " "
bitfld.long 0x00 31. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
bitfld.long 0x00 29.--30. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
sif (cpuis("ATSAML21J*"))
bitfld.long 0x00 24.--28. " PID0 ,PORT Event Pin Identifier 0" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
elif (cpuis("ATSAML21G*"))
bitfld.long 0x00 24.--28. " PID0 ,PORT Event Pin Identifier 0" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
endif
group.byte 0x30++0x0F
sif (!cpuis("ATSAML21G*"))
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PB01 ,Port B Pin 01" "EXTINT[1],AIN[9],,SERCOM5/PAD[3],TC3/WO[1],,,SUPC/OUT[0],CCL0IN[2],?..."
bitfld.byte 0x00 0.--3. " PB00 ,Port B Pin 00" "EXTINT[0],AIN[8],,SERCOM5/PAD[2],TC3/WO[0],,,SUPC/PSOC,CCL0IN[1],?..."
endif
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PB03 ,Port B Pin 03" "EXTINT[3],AIN[11],,SECROM5/PAD[1],TC2/WO[1],,,SUPC/VBAT,?..."
bitfld.byte 0x01 0.--3. " PB02 ,Port B Pin 02" "EXTINT[2],AIN[10],,SERCOM5/PAD[0],TC2/WO[0],,,SUPC/OUT[1],CCL0OUT,?..."
sif (!cpuis("ATSAML21G*"))
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PB05 ,Port B Pin 05" "EXTINT[5],AIN[13]/Y[11]/OA_NEG[1],?..."
bitfld.byte 0x02 0.--3. " PB04 ,Port B Pin 04" "EXTINT[4],AIN[12]/Y[10],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PB07 ,Port B Pin 07" "EXTINT[7],AIN[15]/Y[13],,,,,,,CCL2IN[1],?..."
bitfld.byte 0x03 0.--3. " PB06 ,Port B Pin 06" "EXTINT[6],AIN[14]/Y[12]/OA_NEG[2],,,,,,,CCL2IN[0],?..."
endif
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PB09 ,Port B Pin 09" "EXTINT[9],AIN[3]/Y[15]/OA_POS[1],,SERCOM4/PAD[1],TC0/WO[1],,,,CCL2OUT,?..."
bitfld.byte 0x04 0.--3. " PB08 ,Port B Pin 08" "EXTINT[8],AIN[2]/OA_OUT[1],,SERCOM4/PAD[0],TC0/WO[0],,,,CCL2IN[2],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PB11 ,Port B Pin 11" "EXTINT[11],Y[3],,SERCOM4/PAD[3],TC1/WO[1],TCC0/WO[5],,GCLK_IO[5],CCL1OUT,?..."
bitfld.byte 0x05 0.--3. " PB10 ,Port B Pin 10" "EXTINT[10],Y[2],,SERCOM4/PAD[2],,TC1/WO[0],TCC0/WO[4],,GCLK_IO[4],CCL1IN[2],?..."
sif (!cpuis("ATSAML21G*"))
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PB13 ,Port B Pin 13" "EXTINT[13],X[13]/Y[14],SERCOM4/PAD[1],,TC0/WO[1],TCC0/WO[7],,GCLK_IO[7],?..."
bitfld.byte 0x06 0.--3. " PB12 ,Port B Pin 12" "EXTINT[12],X[12]/Y[5],SERCOM4/PAD[0],,TC0/WO[0],TCC0/WO[6],,GCLK_IO[6],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PB15 ,Port B Pin 15" "EXTINT[15],X[15],SERCOM4/PAD[3],,TC1/WO[1],,,GCLK_IO[1],CCL3IN[1],?..."
bitfld.byte 0x07 0.--3. " PB14 ,Port B Pin 14" "EXTINT[14],X[14],SERCOM4/PAD[2],,TC1/WO[0],,,GCLK_IO[0],CCL3IN[0],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PB17 ,Port B Pin 17" "EXTINT[1],,SERCOM5/PAD[1],,TC2/WO[1],TCC0/WO[5],,GCLK_IO[3],CCL3OUT,?..."
bitfld.byte 0x08 0.--3. " PB16 ,Port B Pin 16" "EXTINT[0],,SERCOM5/PAD[0],,TC2/WO[0],TCC0/WO[4],,GCLK_IO[2],CCL3IN[2],?..."
endif
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PB23 ,Port B Pin 23" "EXTINT[7],,,SERCOM5/PAD[3],TC3/WO[1],,,GCLK_IO[1],CCL0OUT,?..."
bitfld.byte 0x0B 0.--3. " PB22 ,Port B Pin 22" "EXTINT[6],,,SERCOM5/PAD[2],TC3/WO[0],,,GCLK_IO[0],CCL0IN[0],?..."
sif (!cpuis("ATSAML21G*"))
line.byte 0x0F "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x0F 4.--7. " PB31 ,Port B Pin 31" "EXTINT[15],,,SERCOM5/PAD[1],TCC0/WO[1],TCC1/WO[3],?..."
bitfld.byte 0x0F 0.--3. " PB30 ,Port B Pin 30" "EXTINT[14],,,SERCOM5/PAD[0],TCC0/WO[0],TCC1/WO[2],?..."
endif
group.byte 0x40++0x1F
sif (!cpuis("ATSAML21G*"))
line.byte 0x00 "PINCFG0,Pin Configuration 0"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
line.byte 0x02 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x02 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x02 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x02 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x03 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x03 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x03 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x03 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x03 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
sif (!cpuis("ATSAML21G*"))
line.byte 0x04 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x04 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x04 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x04 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x04 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x05 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x05 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x05 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x05 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x05 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x06 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x06 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x06 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x06 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x06 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x07 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x07 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x07 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x07 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x07 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
line.byte 0x08 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x08 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x08 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x08 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x08 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x09 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x09 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x09 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x09 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x09 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0A "PINCFG10,Pin Configuration 10"
bitfld.byte 0x0A 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0A 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0A 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0A 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0B "PINCFG11,Pin Configuration 11"
bitfld.byte 0x0B 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0B 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0B 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0B 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
sif (!cpuis("ATSAML21G*"))
line.byte 0x0C "PINCFG12,Pin Configuration 12"
bitfld.byte 0x0C 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0C 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0C 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0C 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0D "PINCFG13,Pin Configuration 13"
bitfld.byte 0x0D 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0D 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0D 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0D 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0E "PINCFG14,Pin Configuration 14"
bitfld.byte 0x0E 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0E 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0E 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0E 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x0F "PINCFG15,Pin Configuration 15"
bitfld.byte 0x0F 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x0F 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0F 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x0F 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x10 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x10 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x10 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x10 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x10 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x11 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x11 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x11 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x11 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x11 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
line.byte 0x16 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x16 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x16 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x16 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x16 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x17 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x17 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x17 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x17 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x17 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
sif (!cpuis("ATSAML21G*"))
line.byte 0x1E "PINCFG30,Pin Configuration 30"
bitfld.byte 0x1E 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x1E 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x1E 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x1E 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x1F "PINCFG31,Pin Configuration 31"
bitfld.byte 0x1F 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x1F 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x1F 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x1F 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
endif
width 0x0B
tree.end
endif
tree.end
tree "EVSYS (Event System)"
base ad:0x43000000
width 15.
wgroup.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
rgroup.long 0x0C++0x03
line.long 0x00 "CHSTATUS,Channel Status"
sif !cpuis("ATSAMC20*")
bitfld.long 0x00 27. " CHBUSY11 ,Channel busy 11" "Idle,Busy"
bitfld.long 0x00 26. " CHBUSY10 ,Channel busy 10" "Idle,Busy"
bitfld.long 0x00 25. " CHBUSY9 ,Channel busy 9" "Idle,Busy"
newline
bitfld.long 0x00 24. " CHBUSY8 ,Channel busy 8" "Idle,Busy"
bitfld.long 0x00 23. " CHBUSY7 ,Channel busy 7" "Idle,Busy"
bitfld.long 0x00 22. " CHBUSY6 ,Channel busy 6" "Idle,Busy"
newline
endif
bitfld.long 0x00 21. " CHBUSY5 ,Channel busy 5" "Idle,Busy"
bitfld.long 0x00 20. " CHBUSY4 ,Channel busy 4" "Idle,Busy"
bitfld.long 0x00 19. " CHBUSY3 ,Channel busy 3" "Idle,Busy"
newline
bitfld.long 0x00 18. " CHBUSY2 ,Channel busy 2" "Idle,Busy"
bitfld.long 0x00 17. " CHBUSY1 ,Channel busy 1" "Idle,Busy"
bitfld.long 0x00 16. " CHBUSY0 ,Channel busy 0" "Idle,Busy"
newline
sif !cpuis("ATSAMC20*")
bitfld.long 0x00 11. " USRRDY11 ,User ready for channel 11" "Not ready,Ready"
bitfld.long 0x00 10. " USRRDY10 ,User ready for channel 10" "Not ready,Ready"
bitfld.long 0x00 9. " USRRDY9 ,User ready for channel 9" "Not ready,Ready"
newline
bitfld.long 0x00 8. " USRRDY8 ,User ready for channel 8" "Not ready,Ready"
bitfld.long 0x00 7. " USRRDY7 ,User ready for channel 7" "Not ready,Ready"
bitfld.long 0x00 6. " USRRDY6 ,User ready for channel 6" "Not ready,Ready"
newline
endif
bitfld.long 0x00 5. " USRRDY5 ,User ready for channel 5" "Not ready,Ready"
bitfld.long 0x00 4. " USRRDY4 ,User ready for channel 4" "Not ready,Ready"
bitfld.long 0x00 3. " USRRDY3 ,User ready for channel 3" "Not ready,Ready"
newline
bitfld.long 0x00 2. " USRRDY2 ,User ready for channel 2" "Not ready,Ready"
bitfld.long 0x00 1. " USRRDY1 ,User ready for channel 1" "Not ready,Ready"
bitfld.long 0x00 0. " USRRDY0 ,User ready for channel 0" "Not ready,Ready"
group.long 0x14++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
sif !cpuis("ATSAMC20*")
setclrfld.long 0x00 27. 0x00 27. -0x04 27. " EVD11 ,Event detected channel 11 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 26. 0x00 26. -0x04 26. " EVD10 ,Event detected channel 10 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 25. 0x00 25. -0x04 25. " EVD9 ,Event detected channel 9 interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 24. 0x00 24. -0x04 24. " EVD8 ,Event detected channel 8 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 23. 0x00 23. -0x04 23. " EVD7 ,Event detected channel 7 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 22. 0x00 22. -0x04 22. " EVD6 ,Event detected channel 6 interrupt enable" "Disabled,Enabled"
newline
endif
setclrfld.long 0x00 21. 0x00 21. -0x04 21. " EVD5 ,Event detected channel 5 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 20. 0x00 20. -0x04 20. " EVD4 ,Event detected channel 4 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " EVD3 ,Event detected channel 3 interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " EVD2 ,Event detected channel 2 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " EVD1 ,Event detected channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " EVD0 ,Event detected channel 0 interrupt enable" "Disabled,Enabled"
newline
sif !cpuis("ATSAMC20*")
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " OVR11 ,Overrun channel 11 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " OVR10 ,Overrun channel 10 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " OVR9 ,Overrun channel 9 interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " OVR8 ,Overrun channel 8 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " OVR7 ,Overrun channel 7 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " OVR6 ,Overrun channel 6 interrupt enable" "Disabled,Enabled"
newline
endif
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " OVR5 ,Overrun channel 5 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " OVR4 ,Overrun channel 4 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " OVR3 ,Overrun channel 3 interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " OVR2 ,Overrun channel 2 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " OVR1 ,Overrun channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVR0 ,Overrun channel 0 interrupt enable" "Disabled,Enabled"
group.long 0x18++0x07
line.long 0x00 "INTFLAG,Interrupt Flag Status And Clear"
sif !cpuis("ATSAMC20*")
eventfld.long 0x00 27. " EVD11 ,Event detected channel 11 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 26. " EVD10 ,Event detected channel 10 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 25. " EVD9 ,Event detected channel 9 interrupt enable" "No interrupt,Interrupt"
newline
eventfld.long 0x00 24. " EVD8 ,Event detected channel 8 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 23. " EVD7 ,Event detected channel 7 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 22. " EVD6 ,Event detected channel 6 interrupt enable" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x00 21. " EVD5 ,Event detected channel 5 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 20. " EVD4 ,Event detected channel 4 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 19. " EVD3 ,Event detected channel 3 interrupt enable" "No interrupt,Interrupt"
newline
eventfld.long 0x00 18. " EVD2 ,Event detected channel 2 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 17. " EVD1 ,Event detected channel 1 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 16. " EVD0 ,Event detected channel 0 interrupt enable" "No interrupt,Interrupt"
newline
sif !cpuis("ATSAMC20*")
eventfld.long 0x00 11. " OVR11 ,Overrun channel 11 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 10. " OVR10 ,Overrun channel 10 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 9. " OVR9 ,Overrun channel 9 interrupt enable" "No interrupt,Interrupt"
newline
eventfld.long 0x00 8. " OVR8 ,Overrun channel 8 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 7. " OVR7 ,Overrun channel 7 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 6. " OVR6 ,Overrun channel 6 interrupt enable" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x00 5. " OVR5 ,Overrun channel 5 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 4. " OVR4 ,Overrun channel 4 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 3. " OVR3 ,Overrun channel 3 interrupt enable" "No interrupt,Interrupt"
newline
eventfld.long 0x00 2. " OVR2 ,Overrun channel 2 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 1. " OVR1 ,Overrun channel 1 interrupt enable" "No interrupt,Interrupt"
eventfld.long 0x00 0. " OVR0 ,Overrun channel 0 interrupt enable" "No interrupt,Interrupt"
line.long 0x04 "SWEVT,Software Event"
sif !cpuis("ATSAMC2*")
bitfld.long 0x04 11. " CHANNEL11 ,Channel 11 software selections" "No effect,Trigger"
bitfld.long 0x04 10. " CHANNEL10 ,Channel 10 software selections" "No effect,Trigger"
bitfld.long 0x04 9. " CHANNEL9 ,Channel 9 software selections" "No effect,Trigger"
newline
bitfld.long 0x04 8. " CHANNEL8 ,Channel 8 software selections" "No effect,Trigger"
bitfld.long 0x04 7. " CHANNEL7 ,Channel 7 software selections" "No effect,Trigger"
bitfld.long 0x04 6. " CHANNEL6 ,Channel 6 software selections" "No effect,Trigger"
newline
endif
bitfld.long 0x04 5. " CHANNEL5 ,Channel 5 software selections" "No effect,Trigger"
bitfld.long 0x04 4. " CHANNEL4 ,Channel 4 software selections" "No effect,Trigger"
bitfld.long 0x04 3. " CHANNEL3 ,Channel 3 software selections" "No effect,Trigger"
newline
bitfld.long 0x04 2. " CHANNEL2 ,Channel 2 software selections" "No effect,Trigger"
bitfld.long 0x04 1. " CHANNEL1 ,Channel 1 software selections" "No effect,Trigger"
bitfld.long 0x04 0. " CHANNEL0 ,Channel 0 software selections" "No effect,Trigger"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
sif !cpuis("ATSAMC20N*")
group.long 0x20++0x03
line.long 0x00 "CHANNEL0,Channel 0"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x20++0x03
line.long 0x00 "CHANNEL0,Channel 0"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x24++0x03
line.long 0x00 "CHANNEL1,Channel 1"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x24++0x03
line.long 0x00 "CHANNEL1,Channel 1"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x28++0x03
line.long 0x00 "CHANNEL2,Channel 2"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x28++0x03
line.long 0x00 "CHANNEL2,Channel 2"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x2C++0x03
line.long 0x00 "CHANNEL3,Channel 3"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x2C++0x03
line.long 0x00 "CHANNEL3,Channel 3"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x30++0x03
line.long 0x00 "CHANNEL4,Channel 4"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x30++0x03
line.long 0x00 "CHANNEL4,Channel 4"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x34++0x03
line.long 0x00 "CHANNEL5,Channel 5"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
group.long 0x34++0x03
line.long 0x00 "CHANNEL5,Channel 5"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC20N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
sif !cpuis("ATSAMC20N*")
group.long 0x38++0x03
line.long 0x00 "CHANNEL6,Channel 6"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
sif !cpuis("ATSAMC20N*")
group.long 0x3C++0x03
line.long 0x00 "CHANNEL7,Channel 7"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
sif !cpuis("ATSAMC20N*")
group.long 0x40++0x03
line.long 0x00 "CHANNEL8,Channel 8"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
sif !cpuis("ATSAMC20N*")
group.long 0x44++0x03
line.long 0x00 "CHANNEL9,Channel 9"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
sif !cpuis("ATSAMC20N*")
group.long 0x48++0x03
line.long 0x00 "CHANNEL10,Channel 10"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
sif !cpuis("ATSAMC20N*")
group.long 0x4C++0x03
line.long 0x00 "CHANNEL11,Channel 11"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
newline
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
newline
sif cpuis("ATSAMC21N*")
hexmask.long.byte 0x00 0.--7. 1. " EVGEN ,Event generator"
else
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
else
endif
else
group.long 0x20++0x03
line.long 0x00 "CHANNEL0,Channel 0"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
group.long 0x24++0x03
line.long 0x00 "CHANNEL1,Channel 1"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
group.long 0x28++0x03
line.long 0x00 "CHANNEL2,Channel 2"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
group.long 0x2C++0x03
line.long 0x00 "CHANNEL3,Channel 3"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
group.long 0x30++0x03
line.long 0x00 "CHANNEL4,Channel 4"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
group.long 0x34++0x03
line.long 0x00 "CHANNEL5,Channel 5"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
sif !cpuis("ATSAMC2*")
group.long 0x38++0x03
line.long 0x00 "CHANNEL6,Channel 6"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
sif !cpuis("ATSAMC2*")
group.long 0x3C++0x03
line.long 0x00 "CHANNEL7,Channel 7"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
sif !cpuis("ATSAMC2*")
group.long 0x40++0x03
line.long 0x00 "CHANNEL8,Channel 8"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
sif !cpuis("ATSAMC2*")
group.long 0x44++0x03
line.long 0x00 "CHANNEL9,Channel 9"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
sif !cpuis("ATSAMC2*")
group.long 0x48++0x03
line.long 0x00 "CHANNEL10,Channel 10"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
sif !cpuis("ATSAMC2*")
group.long 0x4C++0x03
line.long 0x00 "CHANNEL11,Channel 11"
bitfld.long 0x00 15. " ONDEMAND ,Generic clock on demand" "Disabled,Enabled"
bitfld.long 0x00 14. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 10.--11. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
newline
bitfld.long 0x00 8.--9. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
hexmask.long.byte 0x00 0.--6. 1. " EVGEN ,Event generator"
endif
endif
width 8.
tree "Event Users"
sif cpuis("ATSAMC21N*")
group.long 0x80++0x03
line.long 0x00 "USER0,Event User 0 (TSENS START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x84++0x03
line.long 0x00 "USER1,Event User 1 (PORT EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x88++0x03
line.long 0x00 "USER2,Event User 2 (PORT EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x8C++0x03
line.long 0x00 "USER3,Event User 3 (PORT EV2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x90++0x03
line.long 0x00 "USER4,Event User 4 (PORT EV3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x94++0x03
line.long 0x00 "USER5,Event User 5 (DMAC CH0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x98++0x03
line.long 0x00 "USER6,Event User 6 (DMAC CH1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x9C++0x03
line.long 0x00 "USER7,Event User 7 (DMAC CH2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA0++0x03
line.long 0x00 "USER8,Event User 8 (DMAC CH3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA4++0x03
line.long 0x00 "USER9,Event User 9 (TCC0 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA8++0x03
line.long 0x00 "USER10,Event User 10 (TCC0 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xAC++0x03
line.long 0x00 "USER11,Event User 11 (TCC0 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB0++0x03
line.long 0x00 "USER12,Event User 12 (TCC0 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB4++0x03
line.long 0x00 "USER13,Event User 13 (TCC0 MC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB8++0x03
line.long 0x00 "USER14,Event User 14 (TCC0 MC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xBC++0x03
line.long 0x00 "USER15,Event User 15 (TCC1 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC0++0x03
line.long 0x00 "USER16,Event User 16 (TCC1 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC4++0x03
line.long 0x00 "USER17,Event User 17 (TCC1 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC8++0x03
line.long 0x00 "USER18,Event User 18 (TCC1 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xCC++0x03
line.long 0x00 "USER19,Event User 19 (TCC2 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD0++0x03
line.long 0x00 "USER20,Event User 20 (TCC2 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD4++0x03
line.long 0x00 "USER21,Event User 21 (TCC2 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD8++0x03
line.long 0x00 "USER22,Event User 22 (TCC2 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xDC++0x03
line.long 0x00 "USER23,Event User 23 (TC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE0++0x03
line.long 0x00 "USER24,Event User 24 (TC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE4++0x03
line.long 0x00 "USER25,Event User 25 (TC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE8++0x03
line.long 0x00 "USER26,Event User 26 (TC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xEC++0x03
line.long 0x00 "USER27,Event User 27 (TC4)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF0++0x03
line.long 0x00 "USER28,Event User 28 (ADC0 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF4++0x03
line.long 0x00 "USER29,Event User 29 (ADC0 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF8++0x03
line.long 0x00 "USER30,Event User 30 (ADC1 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xFC++0x03
line.long 0x00 "USER31,Event User 31 (ADC1 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x100++0x03
line.long 0x00 "USER32,Event User 32 (SDADC START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x104++0x03
line.long 0x00 "USER33,Event User 33 (SDADC FLUSH)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x108++0x03
line.long 0x00 "USER34,Event User 34 (AC COMP0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x10C++0x03
line.long 0x00 "USER35,Event User 35 (AC COMP1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x110++0x03
line.long 0x00 "USER36,Event User 36 (AC COMP2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x114++0x03
line.long 0x00 "USER37,Event User 37 (AC COMP3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x118++0x03
line.long 0x00 "USER38,Event User 38 (DAC START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x11C++0x03
line.long 0x00 "USER39,Event User 39 (PTC STCONC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x120++0x03
line.long 0x00 "USER40,Event User 40 (CCL LUTIN 0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x124++0x03
line.long 0x00 "USER41,Event User 41 (CCL LUTIN 1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x128++0x03
line.long 0x00 "USER42,Event User 42 (CCL LUTIN 2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x12C++0x03
line.long 0x00 "USER43,Event User 43 (CCL LUTIN 3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x130++0x03
line.long 0x00 "USER44,Event User 44 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x134++0x03
line.long 0x00 "USER45,Event User 45 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x138++0x03
line.long 0x00 "USER46,Event User 46 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x13C++0x03
line.long 0x00 "USER47,Event User 47 (TC5)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x140++0x03
line.long 0x00 "USER48,Event User 48 (TC6)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x144++0x03
line.long 0x00 "USER49,Event User 49 (TC7)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMC20N*")
group.long 0x84++0x03
line.long 0x00 "USER1,Event User 1 (PORT EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x88++0x03
line.long 0x00 "USER2,Event User 2 (PORT EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x8C++0x03
line.long 0x00 "USER3,Event User 3 (PORT EV2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x90++0x03
line.long 0x00 "USER4,Event User 4 (PORT EV3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x94++0x03
line.long 0x00 "USER5,Event User 5 (DMAC CH0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x98++0x03
line.long 0x00 "USER6,Event User 6 (DMAC CH1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x9C++0x03
line.long 0x00 "USER7,Event User 7 (DMAC CH2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xA0++0x03
line.long 0x00 "USER8,Event User 8 (DMAC CH3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xA4++0x03
line.long 0x00 "USER9,Event User 9 (TCC0 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xA8++0x03
line.long 0x00 "USER10,Event User 10 (TCC0 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xAC++0x03
line.long 0x00 "USER11,Event User 11 (TCC0 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xB0++0x03
line.long 0x00 "USER12,Event User 12 (TCC0 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xB4++0x03
line.long 0x00 "USER13,Event User 13 (TCC0 MC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xB8++0x03
line.long 0x00 "USER14,Event User 14 (TCC0 MC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xBC++0x03
line.long 0x00 "USER15,Event User 15 (TCC1 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xC0++0x03
line.long 0x00 "USER16,Event User 16 (TCC1 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xC4++0x03
line.long 0x00 "USER17,Event User 17 (TCC1 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xC8++0x03
line.long 0x00 "USER18,Event User 18 (TCC1 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xCC++0x03
line.long 0x00 "USER19,Event User 19 (TCC2 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xD0++0x03
line.long 0x00 "USER20,Event User 20 (TCC2 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xD4++0x03
line.long 0x00 "USER21,Event User 21 (TCC2 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xD8++0x03
line.long 0x00 "USER22,Event User 22 (TCC2 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xDC++0x03
line.long 0x00 "USER23,Event User 23 (TC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xE0++0x03
line.long 0x00 "USER24,Event User 24 (TC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xE4++0x03
line.long 0x00 "USER25,Event User 25 (TC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xE8++0x03
line.long 0x00 "USER26,Event User 26 (TC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xEC++0x03
line.long 0x00 "USER27,Event User 27 (TC4)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xF0++0x03
line.long 0x00 "USER28,Event User 28 (ADC0 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0xF4++0x03
line.long 0x00 "USER29,Event User 29 (ADC0 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x108++0x03
line.long 0x00 "USER34,Event User 34 (AC COMP0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x10C++0x03
line.long 0x00 "USER35,Event User 35 (AC COMP1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x11C++0x03
line.long 0x00 "USER39,Event User 39 (PTC STCONC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x120++0x03
line.long 0x00 "USER40,Event User 40 (CCL LUTIN 0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x124++0x03
line.long 0x00 "USER41,Event User 41 (CCL LUTIN 1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x128++0x03
line.long 0x00 "USER42,Event User 42 (CCL LUTIN 2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x12C++0x03
line.long 0x00 "USER43,Event User 43 (CCL LUTIN 3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x130++0x03
line.long 0x00 "USER44,Event User 44 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x134++0x03
line.long 0x00 "USER45,Event User 45 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x138++0x03
line.long 0x00 "USER46,Event User 46 (0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x13C++0x03
line.long 0x00 "USER47,Event User 47 (TC5)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x140++0x03
line.long 0x00 "USER48,Event User 48 (TC6)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
group.long 0x144++0x03
line.long 0x00 "USER49,Event User 49 (TC7)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,?..."
elif cpuis("ATSAMC21*")
group.long 0x80++0x03
line.long 0x00 "USER0,Event User 0 (TSENS START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x84++0x03
line.long 0x00 "USER1,Event User 1 (PORT EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x88++0x03
line.long 0x00 "USER2,Event User 2 (PORT EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x8C++0x03
line.long 0x00 "USER3,Event User 3 (PORT EV2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x90++0x03
line.long 0x00 "USER4,Event User 4 (PORT EV3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x94++0x03
line.long 0x00 "USER5,Event User 5 (DMAC CH0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x98++0x03
line.long 0x00 "USER6,Event User 6 (DMAC CH1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x9C++0x03
line.long 0x00 "USER7,Event User 7 (DMAC CH2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA0++0x03
line.long 0x00 "USER8,Event User 8 (DMAC CH3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA4++0x03
line.long 0x00 "USER9,Event User 9 (TCC0 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA8++0x03
line.long 0x00 "USER10,Event User 10 (TCC0 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xAC++0x03
line.long 0x00 "USER11,Event User 11 (TCC0 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB0++0x03
line.long 0x00 "USER12,Event User 12 (TCC0 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB4++0x03
line.long 0x00 "USER13,Event User 13 (TCC0 MC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB8++0x03
line.long 0x00 "USER14,Event User 14 (TCC0 MC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xBC++0x03
line.long 0x00 "USER15,Event User 15 (TCC1 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC0++0x03
line.long 0x00 "USER16,Event User 16 (TCC1 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC4++0x03
line.long 0x00 "USER17,Event User 17 (TCC1 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC8++0x03
line.long 0x00 "USER18,Event User 18 (TCC1 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xCC++0x03
line.long 0x00 "USER19,Event User 19 (TCC2 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD0++0x03
line.long 0x00 "USER20,Event User 20 (TCC2 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD4++0x03
line.long 0x00 "USER21,Event User 21 (TCC2 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD8++0x03
line.long 0x00 "USER22,Event User 22 (TCC2 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xDC++0x03
line.long 0x00 "USER23,Event User 23 (TC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE0++0x03
line.long 0x00 "USER24,Event User 24 (TC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE4++0x03
line.long 0x00 "USER25,Event User 25 (TC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE8++0x03
line.long 0x00 "USER26,Event User 26 (TC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xEC++0x03
line.long 0x00 "USER27,Event User 27 (TC4)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF0++0x03
line.long 0x00 "USER28,Event User 28 (ADC0 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF4++0x03
line.long 0x00 "USER29,Event User 29 (ADC0 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF8++0x03
line.long 0x00 "USER30,Event User 30 (ADC1 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xFC++0x03
line.long 0x00 "USER31,Event User 31 (ADC1 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x100++0x03
line.long 0x00 "USER32,Event User 32 (SDADC START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x104++0x03
line.long 0x00 "USER33,Event User 33 (SDADC FLUSH)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x108++0x03
line.long 0x00 "USER34,Event User 34 (AC COMP0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x10C++0x03
line.long 0x00 "USER35,Event User 35 (AC COMP1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x110++0x03
line.long 0x00 "USER36,Event User 36 (AC COMP2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x114++0x03
line.long 0x00 "USER37,Event User 37 (AC COMP3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x118++0x03
line.long 0x00 "USER38,Event User 38 (DAC START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x11C++0x03
line.long 0x00 "USER39,Event User 39 (PTC STCONC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x120++0x03
line.long 0x00 "USER40,Event User 40 (CCL LUTIN 0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x124++0x03
line.long 0x00 "USER41,Event User 41 (CCL LUTIN 1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x128++0x03
line.long 0x00 "USER42,Event User 42 (CCL LUTIN 2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x12C++0x03
line.long 0x00 "USER43,Event User 43 (CCL LUTIN 3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,8,9,10,11,?..."
elif cpuis("ATSAMC20*")
group.long 0x84++0x03
line.long 0x00 "USER1,Event User 1 (PORT EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x88++0x03
line.long 0x00 "USER2,Event User 2 (PORT EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x8C++0x03
line.long 0x00 "USER3,Event User 3 (PORT EV2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x90++0x03
line.long 0x00 "USER4,Event User 4 (PORT EV3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x94++0x03
line.long 0x00 "USER5,Event User 5 (DMAC CH0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x98++0x03
line.long 0x00 "USER6,Event User 6 (DMAC CH1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x9C++0x03
line.long 0x00 "USER7,Event User 7 (DMAC CH2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xA0++0x03
line.long 0x00 "USER8,Event User 8 (DMAC CH3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xA4++0x03
line.long 0x00 "USER9,Event User 9 (TCC0 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xA8++0x03
line.long 0x00 "USER10,Event User 10 (TCC0 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xAC++0x03
line.long 0x00 "USER11,Event User 11 (TCC0 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xB0++0x03
line.long 0x00 "USER12,Event User 12 (TCC0 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xB4++0x03
line.long 0x00 "USER13,Event User 13 (TCC0 MC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xB8++0x03
line.long 0x00 "USER14,Event User 14 (TCC0 MC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xBC++0x03
line.long 0x00 "USER15,Event User 15 (TCC1 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xC0++0x03
line.long 0x00 "USER16,Event User 16 (TCC1 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xC4++0x03
line.long 0x00 "USER17,Event User 17 (TCC1 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xC8++0x03
line.long 0x00 "USER18,Event User 18 (TCC1 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xCC++0x03
line.long 0x00 "USER19,Event User 19 (TCC2 EV0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xD0++0x03
line.long 0x00 "USER20,Event User 20 (TCC2 EV1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xD4++0x03
line.long 0x00 "USER21,Event User 21 (TCC2 MC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xD8++0x03
line.long 0x00 "USER22,Event User 22 (TCC2 MC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xDC++0x03
line.long 0x00 "USER23,Event User 23 (TC0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xE0++0x03
line.long 0x00 "USER24,Event User 24 (TC1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xE4++0x03
line.long 0x00 "USER25,Event User 25 (TC2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xE8++0x03
line.long 0x00 "USER26,Event User 26 (TC3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xEC++0x03
line.long 0x00 "USER27,Event User 27 (TC4)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xF0++0x03
line.long 0x00 "USER28,Event User 28 (ADC0 START)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0xF4++0x03
line.long 0x00 "USER29,Event User 29 (ADC0 SYNC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x108++0x03
line.long 0x00 "USER34,Event User 34 (AC COMP0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x10C++0x03
line.long 0x00 "USER35,Event User 35 (AC COMP1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x11C++0x03
line.long 0x00 "USER39,Event User 39 (PTC STCONC)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x120++0x03
line.long 0x00 "USER40,Event User 40 (CCL LUTIN 0)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x124++0x03
line.long 0x00 "USER41,Event User 41 (CCL LUTIN 1)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x128++0x03
line.long 0x00 "USER42,Event User 42 (CCL LUTIN 2)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
group.long 0x12C++0x03
line.long 0x00 "USER43,Event User 43 (CCL LUTIN 3)"
bitfld.long 0x00 0.--7. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
else
group.long 0x80++0x03
line.long 0x00 "USER0,Event User 0"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x84++0x03
line.long 0x00 "USER1,Event User 1"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x88++0x03
line.long 0x00 "USER2,Event User 2"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x8C++0x03
line.long 0x00 "USER3,Event User 3"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x90++0x03
line.long 0x00 "USER4,Event User 4"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x94++0x03
line.long 0x00 "USER5,Event User 5"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x98++0x03
line.long 0x00 "USER6,Event User 6"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x9C++0x03
line.long 0x00 "USER7,Event User 7"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA0++0x03
line.long 0x00 "USER8,Event User 8"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA4++0x03
line.long 0x00 "USER9,Event User 9"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xA8++0x03
line.long 0x00 "USER10,Event User 10"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xAC++0x03
line.long 0x00 "USER11,Event User 11"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB0++0x03
line.long 0x00 "USER12,Event User 12"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB4++0x03
line.long 0x00 "USER13,Event User 13"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xB8++0x03
line.long 0x00 "USER14,Event User 14"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xBC++0x03
line.long 0x00 "USER15,Event User 15"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC0++0x03
line.long 0x00 "USER16,Event User 16"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC4++0x03
line.long 0x00 "USER17,Event User 17"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xC8++0x03
line.long 0x00 "USER18,Event User 18"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xCC++0x03
line.long 0x00 "USER19,Event User 19"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD0++0x03
line.long 0x00 "USER20,Event User 20"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD4++0x03
line.long 0x00 "USER21,Event User 21"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xD8++0x03
line.long 0x00 "USER22,Event User 22"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xDC++0x03
line.long 0x00 "USER23,Event User 23"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE0++0x03
line.long 0x00 "USER24,Event User 24"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE4++0x03
line.long 0x00 "USER25,Event User 25"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xE8++0x03
line.long 0x00 "USER26,Event User 26"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xEC++0x03
line.long 0x00 "USER27,Event User 27"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF0++0x03
line.long 0x00 "USER28,Event User 28"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF4++0x03
line.long 0x00 "USER29,Event User 29"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xF8++0x03
line.long 0x00 "USER30,Event User 30"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0xFC++0x03
line.long 0x00 "USER31,Event User 31"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x100++0x03
line.long 0x00 "USER32,Event User 32"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x104++0x03
line.long 0x00 "USER33,Event User 33"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x108++0x03
line.long 0x00 "USER34,Event User 34"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x10C++0x03
line.long 0x00 "USER35,Event User 35"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x110++0x03
line.long 0x00 "USER36,Event User 36"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x114++0x03
line.long 0x00 "USER37,Event User 37"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x118++0x03
line.long 0x00 "USER38,Event User 38"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x11C++0x03
line.long 0x00 "USER39,Event User 39"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x120++0x03
line.long 0x00 "USER40,Event User 40"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
group.long 0x124++0x03
line.long 0x00 "USER41,Event User 41"
bitfld.long 0x00 0.--5. " CHANNEL ,Channel event selection" ",0,1,2,3,4,5,6,7,8,9,10,11,?..."
endif
tree.end
width 0x0B
tree.end
tree "SERCOM (Serial Communication Interface)"
tree "SERCOM0"
base ad:0x42000000
width 15.
if ((per.l(ad:0x42000000+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42000000+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000000+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x42000000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000000+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000000+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000000+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x42000000+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x42000000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000000+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000000+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000000+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000000+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x42000000+0x00)&0x1C)==0x08)||((per.l(ad:0x42000000+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x42000000+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x42000000+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000000+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x42000000+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000000+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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x42000000+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x42000000+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000000+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x42000000+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000000+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x42000000+0x00)&0x1C)==0x10)
if (((per.l(ad:0x42000000+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
if ((per.b(ad:0x42000000+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,Synchronization 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:0x42000000+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000000+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000000+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000000+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x42000000+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x42000000+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000000+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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:0x42000000+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
tree "SERCOM1"
base ad:0x42000400
width 15.
if ((per.l(ad:0x42000400+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42000400+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000400+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x42000400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000400+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000400+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x42000400+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x42000400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000400+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000400+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000400+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x42000400+0x00)&0x1C)==0x08)||((per.l(ad:0x42000400+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x42000400+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x42000400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x42000400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000400+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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x42000400+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x42000400+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000400+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x42000400+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000400+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x42000400+0x00)&0x1C)==0x10)
if (((per.l(ad:0x42000400+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
if ((per.b(ad:0x42000400+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,Synchronization 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:0x42000400+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000400+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000400+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x42000400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x42000400+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000400+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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:0x42000400+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
tree "SERCOM2"
base ad:0x42000800
width 15.
if ((per.l(ad:0x42000800+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42000800+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000800+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000800+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000800+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x42000800+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000800+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000800+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000800+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000800+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x42000800+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000800+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
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,Synchronization 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+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000800+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x42000800+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000800+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
tree "SERCOM3"
base ad:0x42000C00
width 15.
if ((per.l(ad:0x42000C00+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42000C00+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000C00+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000C00+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000C00+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x42000C00+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42000C00+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42000C00+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000C00+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000C00+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x42000C00+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42000C00+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
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,Synchronization 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+0x00))&0x02)==0x02)
if (((per.l(ad:0x42000C00+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x42000C00+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42000C00+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
sif (cpuis("ATSAML21J*")||cpuis("ATSAML21G*"))
tree "SERCOM4"
base ad:0x42001000
width 15.
if ((per.l(ad:0x42001000+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42001000+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001000+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42001000+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42001000+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x42001000+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
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 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x42001000+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x42001000+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42001000+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001000+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x42001000+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x42001000+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
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)
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
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,Synchronization 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+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001000+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x42001000+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x42001000+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
tree "SERCOM5"
base ad:0x43000400
width 15.
if ((per.l(ad:0x43000400+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x43000400+0x00)&0x02)==0x02)
if (((per.l(ad:0x43000400+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCL/RTS/CTS)" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x43000400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x43000400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
rbitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
textline " "
rbitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,?..."
textline " "
textfld " "
rbitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
rbitfld.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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
rbitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,?..."
textline " "
endif
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity mode" "Even parity,Odd parity"
rbitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
rbitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One stop bit,Two stop bits"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x43000400+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x43000400+0x00))&0x2000)==0x00)
rgroup.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
rgroup.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
else
if (((per.l(ad:0x43000400+0x00))&0xE000)==(0x00||0x2000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif (((per.l(ad:0x43000400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x43000400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock polarity (TxD change/RxD sample)" "Rising/Falling,Falling/Rising"
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 " "
textfld " "
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
sif cpuis("ATSAMC2*")
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],SERCOM PAD[0]/SERCOM[1]/SERCOM PAD[2]/-"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
else
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout (TxD/XCK/RTS/CTS)" "PAD[0]/PAD[1]/-/-,PAD[2]/PAD[3]/-/-,PAD[0]/-/PAD[2]/PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif cpuis("ATSAMC2*")
bitfld.long 0x00 24.--25. " LINCMD ,LIN command" "Normal transmission,Break field transmit when DATA write,Transmit break/Sync/ID when DATA write,"
textline " "
endif
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"
bitfld.long 0x00 10. " ENC ,Encoding format" "Not encoded,Encoded"
textline " "
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
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"
sif cpuis("ATSAMC2*")
textline " "
if (((per.l(ad:0x43000400+0x04))&0x3000000)==0x2000000)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 10.--11. " HDRDLY ,LIN master header delay (Break and sync transmission/Sync and ID transmission)" "1-bit time/1-bit time,4-bit times/4-bit times,8-bit times/4-bit times,14-bit times/4-bit times"
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
else
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
textfld " "
bitfld.long 0x00 8.--9. " BRKLEN ,LIN master break length" "13-bit times,17-bit times,21-bit times,26-bit times"
bitfld.long 0x00 0.--2. " GTIME ,RS485 guard time" "0-bit time,1-bit time,2-bit time,3-bit time,4-bit time,5-bit time,6-bit time,7-bit time"
endif
endif
if (((per.l(ad:0x43000400+0x00))&0x2000)==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
endif
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
textline " "
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 5. 0x00 5. -0x02 5. " RXBRK ,Receive break interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x02 4. " CTSIC ,Clear to send input change interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
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 flag" "No interrupt,Interrupt"
eventfld.byte 0x00 5. " RXBRK ,Receive break flag" "No interrupt,Interrupt"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " RXS ,Receive start flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif cpuis("ATSAMC2*")
rbitfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
textline " "
endif
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "No error,Error"
rbitfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
textline " "
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
textline " "
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x43000400+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x43000400+0x00)&0x1C)==0x08)||((per.l(ad:0x43000400+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x43000400+0x00))&0x02)==0x02)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
rbitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
rbitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
rbitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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 " "
rbitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "When occurs in the data stream,Immediately upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x43000400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x43000400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
rbitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
rbitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
rgroup.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
textline " "
bitfld.long 0x00 29. " CPOL ,Clock polarity (leading edge/trailing edge)" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,Clock phase (leading edge,trailing edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
textline " "
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout (DO/SCK/SLAVE_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" "When occurs in the data stream,Immediately upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
textline " "
if (((per.l(ad:0x43000400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x43000400+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" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
else
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
textfld " "
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
rbitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
textline " "
sif (cpuis("ATSAMDA1*"))
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
else
if (((per.l(ad:0x43000400+0x00))&0x02)==0x02)
rgroup.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
bitfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " RXC ,Receive complete interrupt enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
else
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
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"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 2. " RXC ,Receive complete flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " TXC ,Transmit complete flag" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty flag" "No interrupt,Interrupt"
hgroup.word 0x1A++0x01
hide.word 0x00 "STATUS,Status"
textfld " "
in
textline " "
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization 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"
if (((per.l(ad:0x43000400+0x00))&0x02)==0x02)
if (((per.l(ad:0x43000400+0x04))&0xC000)==(0x8000||0x4000))
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
else
if (((per.l(ad:0x43000400+0x04))&0xC000)==(0x8000||0x4000))
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address mask"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 22. " [6] ,Address mask bit 6" "Masked,Not masked"
bitfld.long 0x00 21. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 20. " [4] ,Address mask bit 4" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [3] ,Address mask bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 17. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
endif
sif (cpuis("ATSAMDA1*"))
if ((per.l(ad:0x43000400+0x18)&0x04)==0x04)
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
endif
else
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
endif
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
elif ((per.l(ad:0x43000400+0x00)&0x1C)==0x10)
if (((per.l(ad:0x43000400+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
textline " "
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "Disabled,75,450,600"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,Wait for any start (S/Sr) condition,AMATCH: Slave data int.|DRDY: ACK/NACK reception"
textline " "
rbitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
rbitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
textline " "
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,,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"
endif
group.byte 0x16++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " PREC ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " DRDY ,Data ready flag" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 1. " AMATCH ,Address match flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " PREC ,Stop received flag" "No interrupt,Interrupt"
if ((per.b(ad:0x43000400+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,Synchronization 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:0x43000400+0x00))&0x02)==0x02)
if (((per.l(ad:0x43000400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x43000400+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x43000400+0x24)&0x8000)==0x8000)
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
rgroup.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
else
if (((per.l(ad:0x43000400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x43000400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 17.--23. 0x02 " ADDRMSK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
textline " "
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
else
if ((per.l(ad:0x43000400+0x24)&0x8000)==0x8000)
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 26. " ADDRMASK[9] ,Address mask bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " [8] ,Address mask bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " [7] ,Address mask bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " [6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address mask bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " [5] ,Address mask bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " [4] ,Address mask bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " [3] ,Address mask bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " [2] ,Address mask bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " [1] ,Address mask bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " [0] ,Address mask bit 0" "Masked,Not masked"
textline " "
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
endif
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
textfld " "
in
elif ((per.l(ad:0x43000400+0x00)&0x1C)==0x14)
if (((per.l(ad:0x43000400+0x00))&0x02)==0x02)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " LOWTOUT ,SCL low time-out" "Disabled,Enabled"
rbitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
textline " "
rbitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Stretch,After ACK"
rbitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Standard,Fast-mode,High-speed,?..."
textline " "
rbitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
rbitfld.long 0x00 22. " MEXTTOEN ,Master SCL low extend time-out" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
rbitfld.long 0x00 16. " PINOUT ,Pin usage (4-wire operation)" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,Repeated start,Byte read operation,Issuing a stop condition"
textline " "
rbitfld.long 0x04 9. " QCEN ,Quick command enable" "Disabled,Enabled"
rbitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
rgroup.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"
else
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A"
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"
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C slave,I2C master,?..."
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" "No action,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"
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"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " SB ,Slave on bus interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " MB ,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" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " SB ,Slave on bus" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " MB ,Master on bus" "No interrupt,Interrupt"
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"
rbitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "Unknown,Idle,Owner,Busy"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
rbitfld.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,Synchronization 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:0x43000400+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
else
group.long 0x24++0x03
line.long 0x00 "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"
bitfld.long 0x00 8.--10. " ADDR ,Address" "0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07"
endif
hgroup.word 0x18++0x01
hide.word 0x00 "DATA,Master Data"
textfld " "
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
textline " "
textline " "
textline " "
textline " "
textline " "
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART with external clock,USART with internal clock,SPI slave,SPI master,I2C master,I2C slave,?..."
endif
width 0x0B
tree.end
endif
tree.end
tree.open "TC (Timer/Counter)"
tree "TC0"
base ad:0x42002000
width 15.
if ((per.l(ad:0x42002000+0x00)&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
bitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
bitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
bitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
bitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
bitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
bitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
rbitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
rbitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
rbitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
rbitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
rbitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
rbitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
rbitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLBCLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,RETRIGGER,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD"
endif
line.byte 0x01 "CTRLBSET,Control B Set Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Retrigger,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Set Retrigger,Set STOP,Set UPDATE,Set READSYNC,?..."
endif
newline
setclrfld.byte 0x01 2. 0x01 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot on counter (Set/Clear)" "Continued,Stopped"
setclrfld.byte 0x01 1. 0x01 1. -0x01 1. " LUPD_SET/CLR ,Lock update (Set/Clear)" "Released,Locked"
setclrfld.byte 0x01 0. 0x01 0. -0x01 0. " DIR_SET/CLR ,Counter direction (Set/Clear)" "Up,Down"
if ((per.l(ad:0x42002000+0x00)&0x02)==0x00)
group.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
else
rgroup.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
endif
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
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"
group.byte 0x0A++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x00 5. " MC1 ,Match or capture channel 1" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 4. " MC0 ,Match or capture channel 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
if ((per.l(ad:0x42002000+0x00)&0x0C)==0x00)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002000+0x00)&0x0C)==0x04)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
eventfld.byte 0x00 3. " PERBUFV ,Period buffer valid" "Invalid,Valid"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002000+0x00)&0x0C)==0x08)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 1. " SLAVE ,Slave status flag" "Low,High"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
endif
if ((per.l(ad:0x42002000+0x00)&0x02)==0x00)
group.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
else
rgroup.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
endif
group.byte 0x0F++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continued"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 7. " CC1 ,Compare/capture channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " CC0 ,Compare/capture channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PER ,PER synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " COUNT ,COUNT synchronization busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,STATUS synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
newline
if ((per.l(ad:0x42002000+0x00)&0x0C)==0x04)
group.byte 0x14++0x00
line.byte 0x00 "COUNT,Counter Value|8-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
group.byte 0x1B++0x00
line.byte 0x00 "PER,Period Value Register"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.byte 0x1C++0x01
line.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
line.byte 0x01 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
else
hgroup.byte 0x1C++0x00
hide.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
in
hgroup.byte 0x1D++0x00
hide.byte 0x00 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
in
endif
group.byte 0x2F++0x02
line.byte 0x00 "PERBUF,Period Buffer Value|8-bit Mode Register"
line.byte 0x01 "CCBUF0,Channel 0 Compare/Capture Buffer Value|8-bit Mode Register"
line.byte 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|8-bit Mode Register"
elif ((per.l(ad:0x42002000+0x00)&0x0C)==0x00)
group.word 0x14++0x01
line.word 0x00 "COUNT,Counter Value|16-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x1C++0x03
line.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
line.word 0x02 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
group.word 0x2E++0x01
line.word 0x00 "PERBUF,Period Buffer Value|16-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.word 0x1C++0x01
hide.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
in
hgroup.word 0x1E++0x01
hide.word 0x00 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.word 0x30++0x03
line.word 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|16-bit Mode Register"
line.word 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|16-bit Mode Register"
elif ((per.l(ad:0x42002000+0x00)&0x0C)==0x08)
group.long 0x14++0x03
line.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x07
line.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
line.long 0x04 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
group.long 0x2C++0x03
line.long 0x00 "PERBUF,Period Buffer Value|32-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
in
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.long 0x30++0x07
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|32-bit Mode Register"
line.long 0x04 "CCBUF1,Channel 1 Compare/Capture Buffer Value|32-bit Mode Register"
else
hgroup.long 0x14++0x03
hide.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
endif
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value Register"
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value Register"
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
hgroup.long 0x30++0x03
hide.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hgroup.long 0x34++0x03
hide.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
endif
width 0x0B
tree.end
tree "TC1"
base ad:0x42002400
width 15.
if ((per.l(ad:0x42002400+0x00)&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
bitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
bitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
bitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
bitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
bitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
bitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
rbitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
rbitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
rbitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
rbitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
rbitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
rbitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
rbitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLBCLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,RETRIGGER,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD"
endif
line.byte 0x01 "CTRLBSET,Control B Set Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Retrigger,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Set Retrigger,Set STOP,Set UPDATE,Set READSYNC,?..."
endif
newline
setclrfld.byte 0x01 2. 0x01 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot on counter (Set/Clear)" "Continued,Stopped"
setclrfld.byte 0x01 1. 0x01 1. -0x01 1. " LUPD_SET/CLR ,Lock update (Set/Clear)" "Released,Locked"
setclrfld.byte 0x01 0. 0x01 0. -0x01 0. " DIR_SET/CLR ,Counter direction (Set/Clear)" "Up,Down"
if ((per.l(ad:0x42002400+0x00)&0x02)==0x00)
group.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
else
rgroup.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
endif
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
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"
group.byte 0x0A++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x00 5. " MC1 ,Match or capture channel 1" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 4. " MC0 ,Match or capture channel 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
if ((per.l(ad:0x42002400+0x00)&0x0C)==0x00)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002400+0x00)&0x0C)==0x04)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
eventfld.byte 0x00 3. " PERBUFV ,Period buffer valid" "Invalid,Valid"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002400+0x00)&0x0C)==0x08)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 1. " SLAVE ,Slave status flag" "Low,High"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
endif
if ((per.l(ad:0x42002400+0x00)&0x02)==0x00)
group.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
else
rgroup.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
endif
group.byte 0x0F++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continued"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 7. " CC1 ,Compare/capture channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " CC0 ,Compare/capture channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PER ,PER synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " COUNT ,COUNT synchronization busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,STATUS synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
newline
if ((per.l(ad:0x42002400+0x00)&0x0C)==0x04)
group.byte 0x14++0x00
line.byte 0x00 "COUNT,Counter Value|8-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
group.byte 0x1B++0x00
line.byte 0x00 "PER,Period Value Register"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.byte 0x1C++0x01
line.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
line.byte 0x01 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
else
hgroup.byte 0x1C++0x00
hide.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
in
hgroup.byte 0x1D++0x00
hide.byte 0x00 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
in
endif
group.byte 0x2F++0x02
line.byte 0x00 "PERBUF,Period Buffer Value|8-bit Mode Register"
line.byte 0x01 "CCBUF0,Channel 0 Compare/Capture Buffer Value|8-bit Mode Register"
line.byte 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|8-bit Mode Register"
elif ((per.l(ad:0x42002400+0x00)&0x0C)==0x00)
group.word 0x14++0x01
line.word 0x00 "COUNT,Counter Value|16-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x1C++0x03
line.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
line.word 0x02 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
group.word 0x2E++0x01
line.word 0x00 "PERBUF,Period Buffer Value|16-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.word 0x1C++0x01
hide.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
in
hgroup.word 0x1E++0x01
hide.word 0x00 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.word 0x30++0x03
line.word 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|16-bit Mode Register"
line.word 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|16-bit Mode Register"
elif ((per.l(ad:0x42002400+0x00)&0x0C)==0x08)
group.long 0x14++0x03
line.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x07
line.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
line.long 0x04 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
group.long 0x2C++0x03
line.long 0x00 "PERBUF,Period Buffer Value|32-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
in
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.long 0x30++0x07
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|32-bit Mode Register"
line.long 0x04 "CCBUF1,Channel 1 Compare/Capture Buffer Value|32-bit Mode Register"
else
hgroup.long 0x14++0x03
hide.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
endif
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value Register"
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value Register"
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
hgroup.long 0x30++0x03
hide.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hgroup.long 0x34++0x03
hide.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
endif
width 0x0B
tree.end
sif cpuis("ATSAML21J*")
tree "TC2"
base ad:0x42002800
width 15.
if ((per.l(ad:0x42002800+0x00)&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
bitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
bitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
bitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
bitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
bitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
bitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
rbitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
rbitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
rbitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
rbitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
rbitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
rbitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
rbitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLBCLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,RETRIGGER,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD"
endif
line.byte 0x01 "CTRLBSET,Control B Set Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Retrigger,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Set Retrigger,Set STOP,Set UPDATE,Set READSYNC,?..."
endif
newline
setclrfld.byte 0x01 2. 0x01 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot on counter (Set/Clear)" "Continued,Stopped"
setclrfld.byte 0x01 1. 0x01 1. -0x01 1. " LUPD_SET/CLR ,Lock update (Set/Clear)" "Released,Locked"
setclrfld.byte 0x01 0. 0x01 0. -0x01 0. " DIR_SET/CLR ,Counter direction (Set/Clear)" "Up,Down"
if ((per.l(ad:0x42002800+0x00)&0x02)==0x00)
group.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
else
rgroup.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
endif
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
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"
group.byte 0x0A++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x00 5. " MC1 ,Match or capture channel 1" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 4. " MC0 ,Match or capture channel 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
if ((per.l(ad:0x42002800+0x00)&0x0C)==0x00)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002800+0x00)&0x0C)==0x04)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
eventfld.byte 0x00 3. " PERBUFV ,Period buffer valid" "Invalid,Valid"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002800+0x00)&0x0C)==0x08)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 1. " SLAVE ,Slave status flag" "Low,High"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
endif
if ((per.l(ad:0x42002800+0x00)&0x02)==0x00)
group.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
else
rgroup.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
endif
group.byte 0x0F++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continued"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 7. " CC1 ,Compare/capture channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " CC0 ,Compare/capture channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PER ,PER synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " COUNT ,COUNT synchronization busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,STATUS synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
newline
if ((per.l(ad:0x42002800+0x00)&0x0C)==0x04)
group.byte 0x14++0x00
line.byte 0x00 "COUNT,Counter Value|8-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
group.byte 0x1B++0x00
line.byte 0x00 "PER,Period Value Register"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.byte 0x1C++0x01
line.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
line.byte 0x01 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
else
hgroup.byte 0x1C++0x00
hide.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
in
hgroup.byte 0x1D++0x00
hide.byte 0x00 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
in
endif
group.byte 0x2F++0x02
line.byte 0x00 "PERBUF,Period Buffer Value|8-bit Mode Register"
line.byte 0x01 "CCBUF0,Channel 0 Compare/Capture Buffer Value|8-bit Mode Register"
line.byte 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|8-bit Mode Register"
elif ((per.l(ad:0x42002800+0x00)&0x0C)==0x00)
group.word 0x14++0x01
line.word 0x00 "COUNT,Counter Value|16-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x1C++0x03
line.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
line.word 0x02 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
group.word 0x2E++0x01
line.word 0x00 "PERBUF,Period Buffer Value|16-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.word 0x1C++0x01
hide.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
in
hgroup.word 0x1E++0x01
hide.word 0x00 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.word 0x30++0x03
line.word 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|16-bit Mode Register"
line.word 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|16-bit Mode Register"
elif ((per.l(ad:0x42002800+0x00)&0x0C)==0x08)
group.long 0x14++0x03
line.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x07
line.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
line.long 0x04 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
group.long 0x2C++0x03
line.long 0x00 "PERBUF,Period Buffer Value|32-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
in
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.long 0x30++0x07
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|32-bit Mode Register"
line.long 0x04 "CCBUF1,Channel 1 Compare/Capture Buffer Value|32-bit Mode Register"
else
hgroup.long 0x14++0x03
hide.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
endif
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value Register"
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value Register"
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
hgroup.long 0x30++0x03
hide.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hgroup.long 0x34++0x03
hide.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
endif
width 0x0B
tree.end
tree "TC3"
base ad:0x42002C00
width 15.
if ((per.l(ad:0x42002C00+0x00)&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
bitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
bitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
bitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
bitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
bitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
bitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
rbitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
rbitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
rbitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
rbitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
rbitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
rbitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
rbitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLBCLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,RETRIGGER,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD"
endif
line.byte 0x01 "CTRLBSET,Control B Set Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Retrigger,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Set Retrigger,Set STOP,Set UPDATE,Set READSYNC,?..."
endif
newline
setclrfld.byte 0x01 2. 0x01 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot on counter (Set/Clear)" "Continued,Stopped"
setclrfld.byte 0x01 1. 0x01 1. -0x01 1. " LUPD_SET/CLR ,Lock update (Set/Clear)" "Released,Locked"
setclrfld.byte 0x01 0. 0x01 0. -0x01 0. " DIR_SET/CLR ,Counter direction (Set/Clear)" "Up,Down"
if ((per.l(ad:0x42002C00+0x00)&0x02)==0x00)
group.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
else
rgroup.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
endif
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
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"
group.byte 0x0A++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x00 5. " MC1 ,Match or capture channel 1" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 4. " MC0 ,Match or capture channel 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
if ((per.l(ad:0x42002C00+0x00)&0x0C)==0x00)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002C00+0x00)&0x0C)==0x04)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
eventfld.byte 0x00 3. " PERBUFV ,Period buffer valid" "Invalid,Valid"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x42002C00+0x00)&0x0C)==0x08)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 1. " SLAVE ,Slave status flag" "Low,High"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
endif
if ((per.l(ad:0x42002C00+0x00)&0x02)==0x00)
group.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
else
rgroup.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
endif
group.byte 0x0F++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continued"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 7. " CC1 ,Compare/capture channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " CC0 ,Compare/capture channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PER ,PER synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " COUNT ,COUNT synchronization busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,STATUS synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
newline
if ((per.l(ad:0x42002C00+0x00)&0x0C)==0x04)
group.byte 0x14++0x00
line.byte 0x00 "COUNT,Counter Value|8-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
group.byte 0x1B++0x00
line.byte 0x00 "PER,Period Value Register"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.byte 0x1C++0x01
line.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
line.byte 0x01 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
else
hgroup.byte 0x1C++0x00
hide.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
in
hgroup.byte 0x1D++0x00
hide.byte 0x00 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
in
endif
group.byte 0x2F++0x02
line.byte 0x00 "PERBUF,Period Buffer Value|8-bit Mode Register"
line.byte 0x01 "CCBUF0,Channel 0 Compare/Capture Buffer Value|8-bit Mode Register"
line.byte 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|8-bit Mode Register"
elif ((per.l(ad:0x42002C00+0x00)&0x0C)==0x00)
group.word 0x14++0x01
line.word 0x00 "COUNT,Counter Value|16-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x1C++0x03
line.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
line.word 0x02 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
group.word 0x2E++0x01
line.word 0x00 "PERBUF,Period Buffer Value|16-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.word 0x1C++0x01
hide.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
in
hgroup.word 0x1E++0x01
hide.word 0x00 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.word 0x30++0x03
line.word 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|16-bit Mode Register"
line.word 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|16-bit Mode Register"
elif ((per.l(ad:0x42002C00+0x00)&0x0C)==0x08)
group.long 0x14++0x03
line.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x07
line.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
line.long 0x04 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
group.long 0x2C++0x03
line.long 0x00 "PERBUF,Period Buffer Value|32-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
in
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.long 0x30++0x07
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|32-bit Mode Register"
line.long 0x04 "CCBUF1,Channel 1 Compare/Capture Buffer Value|32-bit Mode Register"
else
hgroup.long 0x14++0x03
hide.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
endif
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value Register"
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value Register"
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
hgroup.long 0x30++0x03
hide.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hgroup.long 0x34++0x03
hide.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
endif
width 0x0B
tree.end
endif
tree "TC4"
base ad:0x43000800
width 15.
if ((per.l(ad:0x43000800+0x00)&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
bitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
bitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
bitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
bitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
bitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
bitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 27.--28. " CAPTMODE1 ,Capture mode channel 1" "Default,CAPTMIN,CAPTMAX,?..."
rbitfld.long 0x00 24.--25. " CAPTMODE0 ,Capture mode channel 0" "Default,CAPTMIN,CAPTMAX,?..."
newline
endif
rbitfld.long 0x00 21. " COPEN1 ,Capture on pin 1 enable" "Event,I/O pin"
rbitfld.long 0x00 20. " COPEN0 ,Capture on pin 0 enable" "Event,I/O pin"
rbitfld.long 0x00 17. " CAPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 16. " CAPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 11. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
rbitfld.long 0x00 7. " ONDEMAND ,Clock on demand" "Disabled,Enabled"
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
rbitfld.long 0x00 4.--5. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
rbitfld.long 0x00 2.--3. " MODE ,Timer counter mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.long 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLBCLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,RETRIGGER,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "No effect,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD,Clear pending CMD"
endif
line.byte 0x01 "CTRLBSET,Control B Set Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Retrigger,Stop,Update,READSYNC,?..."
else
bitfld.byte 0x01 5.--7. " CMD ,Command" "No effect,Set Retrigger,Set STOP,Set UPDATE,Set READSYNC,?..."
endif
newline
setclrfld.byte 0x01 2. 0x01 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot on counter (Set/Clear)" "Continued,Stopped"
setclrfld.byte 0x01 1. 0x01 1. -0x01 1. " LUPD_SET/CLR ,Lock update (Set/Clear)" "Released,Locked"
setclrfld.byte 0x01 0. 0x01 0. -0x01 0. " DIR_SET/CLR ,Counter direction (Set/Clear)" "Up,Down"
if ((per.l(ad:0x43000800+0x00)&0x02)==0x00)
group.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
else
rgroup.word 0x06++0x01
line.word 0x00 "EVCTRL,Event Control Register"
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"
newline
bitfld.word 0x00 5. " TCEI ,TC event enable" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input polarity" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "Off,Retrigger,Count,Start,Stamp,PPW,PWP,PW"
endif
group.byte 0x09++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
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"
group.byte 0x0A++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x00 5. " MC1 ,Match or capture channel 1" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 4. " MC0 ,Match or capture channel 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
if ((per.l(ad:0x43000800+0x00)&0x0C)==0x00)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x43000800+0x00)&0x0C)==0x04)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
eventfld.byte 0x00 3. " PERBUFV ,Period buffer valid" "Invalid,Valid"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
elif ((per.l(ad:0x43000800+0x00)&0x0C)==0x08)
group.byte 0x0B++0x00
line.byte 0x00 "STATUS,Status Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
eventfld.byte 0x00 5. " CCBUFV1 ,Channel 1 compare or capture buffer valid" "Not read,Read"
newline
endif
eventfld.byte 0x00 4. " CCBUFV0 ,Channel 0 compare or capture buffer valid" "Not read,Read"
rbitfld.byte 0x00 1. " SLAVE ,Slave status flag" "Low,High"
rbitfld.byte 0x00 0. " STOP ,Stop status flag" "Running,Stopped"
endif
if ((per.l(ad:0x43000800+0x00)&0x02)==0x00)
group.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
else
rgroup.byte 0x0C++0x01
line.byte 0x00 "WAVE,Waveform Generation Control Register"
bitfld.byte 0x00 0.--1. " WAVEGEN ,Waveform generation mode" "NFRQ,MFRQ,NPWM,MPWM"
line.byte 0x01 "DRVCTRL,Driver Control Register"
bitfld.byte 0x01 1. " INVEN1 ,Output waveform 1 invert enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " INVEN0 ,Output waveform 0 invert enable" "Disabled,Enabled"
endif
group.byte 0x0F++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continued"
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 7. " CC1 ,Compare/capture channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " CC0 ,Compare/capture channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PER ,PER synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " COUNT ,COUNT synchronization busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,STATUS synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
newline
if ((per.l(ad:0x43000800+0x00)&0x0C)==0x04)
group.byte 0x14++0x00
line.byte 0x00 "COUNT,Counter Value|8-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
group.byte 0x1B++0x00
line.byte 0x00 "PER,Period Value Register"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.byte 0x1C++0x01
line.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
line.byte 0x01 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
else
hgroup.byte 0x1C++0x00
hide.byte 0x00 "CC0,Channel 0 Compare/Capture Value|8-bit Mode Register"
in
hgroup.byte 0x1D++0x00
hide.byte 0x00 "CC1,Channel 1 Compare/Capture Value|8-bit Mode Register"
in
endif
group.byte 0x2F++0x02
line.byte 0x00 "PERBUF,Period Buffer Value|8-bit Mode Register"
line.byte 0x01 "CCBUF0,Channel 0 Compare/Capture Buffer Value|8-bit Mode Register"
line.byte 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|8-bit Mode Register"
elif ((per.l(ad:0x43000800+0x00)&0x0C)==0x00)
group.word 0x14++0x01
line.word 0x00 "COUNT,Counter Value|16-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x1C++0x03
line.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
line.word 0x02 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
group.word 0x2E++0x01
line.word 0x00 "PERBUF,Period Buffer Value|16-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.word 0x1C++0x01
hide.word 0x00 "CC0,Channel 0 Compare/Capture Value|16-bit Mode Register"
in
hgroup.word 0x1E++0x01
hide.word 0x00 "CC1,Channel 1 Compare/Capture Value|16-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.word 0x30++0x03
line.word 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|16-bit Mode Register"
line.word 0x02 "CCBUF1,Channel 1 Compare/Capture Buffer Value|16-bit Mode Register"
elif ((per.l(ad:0x43000800+0x00)&0x0C)==0x08)
group.long 0x14++0x03
line.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x07
line.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
line.long 0x04 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
group.long 0x2C++0x03
line.long 0x00 "PERBUF,Period Buffer Value|32-bit Mode Register"
else
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value|32-bit Mode Register"
in
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value|32-bit Mode Register"
in
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
endif
group.long 0x30++0x07
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value|32-bit Mode Register"
line.long 0x04 "CCBUF1,Channel 1 Compare/Capture Buffer Value|32-bit Mode Register"
else
hgroup.long 0x14++0x03
hide.long 0x00 "COUNT,Counter Value|32-bit Mode Register"
sif !cpuis("ATSAMC20N17A")&&!cpuis("ATSAMC20N18A")&&!cpuis("ATSAMC21N17A")&&!cpuis("ATSAMC21N18A")
hgroup.byte 0x1B++0x00
hide.byte 0x00 "PER,Period Value Register"
endif
hgroup.long 0x1C++0x03
hide.long 0x00 "CC0,Channel 0 Compare/Capture Value Register"
hgroup.long 0x20++0x03
hide.long 0x00 "CC1,Channel 1 Compare/Capture Value Register"
hgroup.byte 0x2F++0x00
hide.byte 0x00 "PERBUF,Period Buffer Value Register"
hgroup.long 0x30++0x03
hide.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hgroup.long 0x34++0x03
hide.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
endif
width 0x0B
tree.end
tree "TCC0"
base ad:0x42001400
width 15.
if (((d.b(ad:0x42001400))&0x02)==0x00)
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"
textline " "
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
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"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 27. " CPTEN3 ,Capture Channel 3 Enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture Channel 2 Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
rbitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,DITH4,DITH5,DITH6"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline ""
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-Shot Set/Clear" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update Set/Clear" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter Direction Set/Clear" "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"
textline " "
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
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 16. " PATTB ,Pattern Buffer Busy" "Not busy,Busy"
textline " "
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"
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
textline " "
if (((d.b(ad:0x42001400))&0x02)==0x00)
group.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,CC2,CC3"
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,CC2,CC3"
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
group.long 0x14++0x03
line.long 0x00 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x00 24.--31. 1. " DTHS ,Dead-time High Side Outputs Value"
hexmask.long.byte 0x00 16.--23. 1. " DTLS ,Dead-time Low Side Outputs Value"
bitfld.long 0x00 11. " DTIEN3 ,Dead-time Insertion Generator 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " DTIEN2 ,Dead-time Insertion Generator 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " DTIEN1 ,Dead-time Insertion Generator 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " DTIEN0 ,Dead-time Insertion Generator 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--1. " OTMX ,Output Matrix" "32103210,10101010,00000000,11111110"
textline ""
group.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 23. " INVEN7 ,Output Waveform 7 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 22. " INVEN6 ,Output Waveform 6 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 21. " INVEN5 ,Output Waveform 5 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 20. " INVEN4 ,Output Waveform 4 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
else
rgroup.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,CC2,CC3"
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,CC2,CC3"
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
rgroup.long 0x14++0x03
line.long 0x00 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x00 24.--31. 1. " DTHS ,Dead-time High Side Outputs Value"
hexmask.long.byte 0x00 16.--23. 1. " DTLS ,Dead-time Low Side Outputs Value"
bitfld.long 0x00 11. " DTIEN3 ,Dead-time Insertion Generator 3 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " DTIEN2 ,Dead-time Insertion Generator 2 Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " DTIEN1 ,Dead-time Insertion Generator 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " DTIEN0 ,Dead-time Insertion Generator 0 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--1. " OTMX ,Output Matrix" "32103210,10101010,00000000,11111110"
textline ""
rgroup.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 23. " INVEN7 ,Output Waveform 7 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 22. " INVEN6 ,Output Waveform 6 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 21. " INVEN5 ,Output Waveform 5 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 20. " INVEN4 ,Output Waveform 4 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
endif
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"
if (((d.b(ad:0x42001400))&0x02)==0x00)
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"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
textline " "
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"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
else
rgroup.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"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
textline " "
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"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
endif
textline ""
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " MC3 ,Match or Capture Channel 3 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " MC2 ,Match or Capture Channel 2 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x04 19. " MC3 ,Match or Capture Channel 3" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or Capture Channel 2" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "No interrupt,Interrupt"
eventfld.long 0x04 3. " ERR ,Error" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 2. " CNT ,Counter" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow" "No interrupt,Interrupt"
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"
textline " "
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
textline " "
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 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
textline ""
if (((d.l(ad:0x42001400+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42001400+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:0x42001400+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count Value"
else
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"
bitfld.word 0x00 12. " PGV4 ,Pattern Generator 4 Output Value" "0,1"
textline " "
bitfld.word 0x00 11. " PGV3 ,Pattern Generator 3 Output Value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern Generator 2 Output Value" "0,1"
bitfld.word 0x00 9. " PGV1 ,Pattern Generator 1 Output Value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern Generator 0 Output Value" "0,1"
textline " "
bitfld.word 0x00 7. " PGE7 ,Pattern Generator 7 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 6. " PGE6 ,Pattern Generator 6 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 5. " PGE5 ,Pattern Generator 5 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 4. " PGE4 ,Pattern Generator 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern Generator 3 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern Generator 2 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 1. " PGE1 ,Pattern Generator 1 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern Generator 0 Output Enable" "Disabled,Enabled"
group.long 0x3C++0x03
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"
bitfld.long 0x00 24. " SWAP0 ,Swap DTI Output Pair 0" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " POL3 ,Channel 3 Polarity" "~DIR,DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 Polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 11. " CICCEN3 ,Circular Channel 3 Enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular Channel 2 Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
textline ""
if (((d.l(ad:0x42001400+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period Value"
elif (((d.l(ad:0x42001400+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:0x42001400+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"
else
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
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
in
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare and Capture"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare and Capture"
in
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"
textline ""
if (((d.l(ad:0x42001400+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period Value"
elif (((d.l(ad:0x42001400+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period 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:0x42001400+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period 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"
else
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period 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:0x42001400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001800
width 15.
if (((d.b(ad:0x42001800))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
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"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
rbitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,DITH4,DITH5,DITH6"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline ""
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-Shot Set/Clear" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update Set/Clear" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter Direction Set/Clear" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
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 16. " PATTB ,Pattern Buffer 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"
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
textline " "
if (((d.b(ad:0x42001800))&0x02)==0x00)
group.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
hgroup.long 0x14++0x03
hide.long 0x00 "WEXCTRL,Waveform Extension Configuration"
textline ""
group.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
else
rgroup.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
hgroup.long 0x14++0x03
hide.long 0x00 "WEXCTRL,Waveform Extension Configuration"
textline ""
rgroup.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 19. " INVEN3 ,Output Waveform 3 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 18. " INVEN2 ,Output Waveform 2 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
endif
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"
if (((d.b(ad:0x42001800))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
endif
textline ""
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "No interrupt,Interrupt"
eventfld.long 0x04 3. " ERR ,Error" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 2. " CNT ,Counter" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
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 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
textline ""
if (((d.l(ad:0x42001800+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count Value"
elif (((d.l(ad:0x42001800+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:0x42001800+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count Value"
else
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"
bitfld.word 0x00 12. " PGV4 ,Pattern Generator 4 Output Value" "0,1"
textline " "
bitfld.word 0x00 11. " PGV3 ,Pattern Generator 3 Output Value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern Generator 2 Output Value" "0,1"
bitfld.word 0x00 9. " PGV1 ,Pattern Generator 1 Output Value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern Generator 0 Output Value" "0,1"
textline " "
bitfld.word 0x00 7. " PGE7 ,Pattern Generator 7 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 6. " PGE6 ,Pattern Generator 6 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 5. " PGE5 ,Pattern Generator 5 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 4. " PGE4 ,Pattern Generator 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern Generator 3 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern Generator 2 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 1. " PGE1 ,Pattern Generator 1 Output Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern Generator 0 Output Enable" "Disabled,Enabled"
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
textline ""
if (((d.l(ad:0x42001800+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period Value"
elif (((d.l(ad:0x42001800+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:0x42001800+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"
else
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
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
in
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"
textline ""
if (((d.l(ad:0x42001800+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period Value"
elif (((d.l(ad:0x42001800+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period 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:0x42001800+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period 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"
else
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period 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:0x42001800+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001800+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001800+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001800+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Compare and Capture buffer value"
elif (((d.l(ad:0x42001800+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001800+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Compare and Capture buffer 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"
else
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Compare and Capture buffer 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:0x42001C00
width 15.
if (((d.b(ad:0x42001C00))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 25. " CPTEN1 ,Capture Channel 1 Enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture Channel 0 Enable" "Disabled,Enabled"
rbitfld.long 0x00 14. " ALOCK ,Auto Lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and Counter Synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in Standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced Resolution" "Disabled,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline ""
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp Index Command" "DISABLED,SET,CLEAR,HOLD"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-Shot Set/Clear" "Continues,Stopped"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update Set/Clear" "Not performed,Performed"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter Direction Set/Clear" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 20. " CCB1 ,Compare Channel Buffer 1 Busy" "Not busy,Busy"
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 16. " PATTB ,Pattern Buffer 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"
bitfld.long 0x00 6. " WAVE ,Wave Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 5. " PATT ,Pattern Busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count busy" "Not busy,Busy"
bitfld.long 0x00 3. " STATUS ,Status busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Swrst busy" "Not busy,Busy"
textline " "
if (((d.b(ad:0x42001C00))&0x02)==0x00)
group.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
hgroup.long 0x14++0x03
hide.long 0x00 "WEXCTRL,Waveform Extension Configuration"
textline ""
group.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
else
rgroup.long 0x0C++0x07
line.long 0x00 "FCTRLA,Fault Control A"
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 15. " BLANKPRESC ,Fault A Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x00 10.--11. " CHSEL ,Fault A Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x00 8.--9. " HALT ,Fault A Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault A Restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault A Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x00 4. " QUAL ,Fault A Qualification Disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault A Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault A Source" "Disabled,Enabled,Invert,At fault"
line.long 0x04 "FCTRLB,Fault Control B"
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 15. " BLANKPRESC ,Fault B Blanking Prescaler" "Disabled,Enabled"
textline " "
bitfld.long 0x04 12.--14. " CAPTURE ,Fault B Capture Action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
bitfld.long 0x04 10.--11. " CHSEL ,Fault B Capture Channel" "CC0,CC1,?..."
textline " "
bitfld.long 0x04 8.--9. " HALT ,Fault B Halt Mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,Fault B Restart" "Disabled,Enabled"
bitfld.long 0x04 5.--6. " BLANK ,Fault B Blanking Mode" "Start,Rise,Fall,Both"
textline " "
bitfld.long 0x04 4. " QUAL ,Fault B Qualification Disable" "No,Yes"
bitfld.long 0x04 3. " KEEP ,Fault B Keeper" "Rec. fault,TCC cycle"
bitfld.long 0x04 0.--1. " SRC ,Fault B Source" "Disabled,Enabled,Invert,At fault"
hgroup.long 0x14++0x03
hide.long 0x00 "WEXCTRL,Waveform Extension Configuration"
textline ""
rgroup.long 0x18++0x03
line.long 0x00 "DRVCTRL,Driver Configuration"
bitfld.long 0x00 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 0x00 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"
textline " "
bitfld.long 0x00 17. " INVEN1 ,Output Waveform 1 Inversion" "Not inverted,Inverted"
bitfld.long 0x00 16. " INVEN0 ,Output Waveform 0 Inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 15. " NRV7 ,Non-Recoverable State 7 Output Value" "Not set,Set"
bitfld.long 0x00 14. " NRV6 ,Non-Recoverable State 6 Output Value" "Not set,Set"
bitfld.long 0x00 13. " NRV5 ,Non-Recoverable State 5 Output Value" "Not set,Set"
bitfld.long 0x00 12. " NRV4 ,Non-Recoverable State 4 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 11. " NRV3 ,Non-Recoverable State 3 Output Value" "Not set,Set"
bitfld.long 0x00 10. " NRV2 ,Non-Recoverable State 2 Output Value" "Not set,Set"
bitfld.long 0x00 9. " NRV1 ,Non-Recoverable State 1 Output Value" "Not set,Set"
bitfld.long 0x00 8. " NRV0 ,Non-Recoverable State 0 Output Value" "Not set,Set"
textline " "
bitfld.long 0x00 7. " NRE7 ,Non-Recoverable State 7 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " NRE6 ,Non-Recoverable State 6 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NRE5 ,Non-Recoverable State 5 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 4. " NRE4 ,Non-Recoverable State 4 Output Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3. " NRE3 ,Non-Recoverable State 3 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 2. " NRE2 ,Non-Recoverable State 2 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 1. " NRE1 ,Non-Recoverable State 1 Output Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " NRE0 ,Non-Recoverable State 0 Output Enable" "Disabled,Enabled"
endif
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"
if (((d.b(ad:0x42001C00))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or Capture Channel 1 Event Output Enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or Capture Channel 0 Event Output Enable" "Disabled,Enabled"
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"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter Event 1 Input Enable" "Disabled,Enabled"
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"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter Output Event Mode" "BEGIN,END,BETWEEN,BOUNDARY"
textline " "
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,STAMP,FAULT"
endif
textline ""
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or Capture Channel 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or Capture Channel 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable Fault 0 Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable Debug Fault Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " CNT ,Counter Interrupt Enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " TRG ,Retrigger Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow Interrupt Enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x04 17. " MC1 ,Match or Capture Channel 1" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or Capture Channel 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable Fault 1" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable Fault 0" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault" "No interrupt,Interrupt"
eventfld.long 0x04 3. " ERR ,Error" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 2. " CNT ,Counter" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 25. " CMP1 ,Compare Channel 1 Value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare Channel 0 Value" "0,1"
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 5. " PATTBV ,Pattern Buffer Valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable Debug Fault State" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
textline ""
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.word 0x00 0.--15. 1. " COUNT ,Count Value"
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 17. " POL1 ,Channel 1 Polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 Polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular Channel 1 Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular Channel 0 Enable" "Disabled,Enabled"
bitfld.long 0x00 7. " CIPEREN ,Circular period Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4.--5. " RAMP ,Ramp Mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform Generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
textline ""
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.word 0x00 0.--15. 1. " PER ,Period Value"
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare and Capture"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare and Capture"
in
textline ""
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer"
hexmask.long.word 0x00 0.--15. 1. " PERB ,Period Value"
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Compare and Capture Buffer"
hexmask.long.word 0x00 0.--15. 1. " CCBUF ,Compare and Capture buffer value"
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Compare and Capture Buffer"
hexmask.long.word 0x00 0.--15. 1. " CCBUF ,Compare and Capture buffer value"
width 0xB
tree.end
tree.end
tree "TRNG (True Random Number Generator)"
base ad:0x42003800
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Stopped,Not stopped"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
if (((per.b(ad:0x42003800))&0x02)==0x00)
group.byte 0x04++0x00
line.byte 0x00 "EVCTRL,Event Control"
bitfld.byte 0x00 0. " DATARDYEO ,Data ready event output" "Disabled,Enabled"
else
rgroup.byte 0x04++0x00
line.byte 0x00 "EVCTRL,Event Control"
bitfld.byte 0x00 0. " DATARDYEO ,Data ready event output" "Disabled,Enabled"
endif
group.byte 0x09++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DATARDY ,Data ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x01 0. " DATARDY ,Data ready" "No interrupt,Interrupt"
group.long 0x20++0x03
line.long 0x00 "DATA,Output data"
width 0x0B
tree.end
tree "AES (Advanced Encryption Standard)"
base ad:0x42003400
width 15.
if (((per.b(ad:0x42003400))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 19. " CTYPE[4] ,Countermeasure type bit 4" "Disabled,Enabled"
bitfld.long 0x00 18. " [3] ,Countermeasure type bit 3" "Disabled,Enabled"
bitfld.long 0x00 17. " [2] ,Countermeasure type bit 2" "Disabled,Enabled"
textline " "
bitfld.long 0x00 16. " [1] ,Countermeasure type bit 1" "Disabled,Enabled"
bitfld.long 0x00 14. " XORKEY ,XOR key" "No effect,Keyword XORed"
bitfld.long 0x00 13. " KEYGEN ,Key generation" "No effect,Computation started"
textline " "
bitfld.long 0x00 12. " LOD ,Last output data mode" "No effect,Encryption started"
bitfld.long 0x00 11. " STARTMODE ,Start mode select" "Manual Mode,Auto Mode"
bitfld.long 0x00 10. " CIPHER ,Encryption/Decryption" "Decryption,Encryption"
textline " "
bitfld.long 0x00 8.--9. " KEYSIZE ,Encryption key size" "128-bit Key,192-bit Key,256-bit Key,?..."
bitfld.long 0x00 5.--7. " CFBS ,Cipher feedback block size" "128-bit data block,64-bit data block,32-bit data block,16-bit data block,8-bit data block,?..."
bitfld.long 0x00 2.--4. " AESMODE ,AES modes of operation" "ECB,CBC,OFB,CFB,Counter,CCM,GCM,?..."
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"
rbitfld.long 0x00 19. " CTYPE[4] ,Countermeasure type bit 4" "Disabled,Enabled"
rbitfld.long 0x00 18. " [3] ,Countermeasure type bit 3" "Disabled,Enabled"
rbitfld.long 0x00 17. " [2] ,Countermeasure type bit 2" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 16. " [1] ,Countermeasure type bit 1" "Disabled,Enabled"
rbitfld.long 0x00 14. " XORKEY ,XOR Key" "No effect,Keyword XORed"
rbitfld.long 0x00 13. " KEYGEN ,Key generation" "No effect,Computation started"
textline " "
rbitfld.long 0x00 12. " LOD ,Last Output data mode" "No effect,Encryption started"
rbitfld.long 0x00 11. " STARTMODE ,Start mode select" "Manual Mode,Auto Mode"
rbitfld.long 0x00 10. " CIPHER ,Encryption/Decryption" "Decryption,Encryption"
textline " "
rbitfld.long 0x00 8.--9. " KEYSIZE ,Encryption key size" "128-bit Key,192-bit Key,256-bit Key,?..."
rbitfld.long 0x00 5.--7. " CFBS ,Cipher feedback block size" "128-bit data block,64-bit data block,32-bit data block,16-bit data block,8-bit data block,?..."
rbitfld.long 0x00 2.--4. " AESMODE ,AES modes of operation" "ECB,CBC,OFB,CFB,Counter,CCM,GCM,?..."
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
if (((per.b(ad:0x42003400))&0x1C)==0x18)
group.byte 0x04++0x00
line.byte 0x00 "CTRLB,Control B"
bitfld.byte 0x00 3. " GFMUL ,GF multiplication" "No action,GF mul calculated"
bitfld.byte 0x00 2. " EOM ,End of message" "No action,GHASH value generated"
textfld " "
bitfld.byte 0x00 0. " START ,Start encryption/decryption" "No action,Started"
elif (((per.b(ad:0x42003400))&0x1C)==(0x04||0x08||0xC||0x10))
group.byte 0x04++0x00
line.byte 0x00 "CTRLB,Control B"
textfld " "
bitfld.byte 0x00 1. " NEWMSG ,New message" "No action,Started"
bitfld.byte 0x00 0. " START ,Start encryption/decryption" "No action,Started"
else
group.byte 0x04++0x00
line.byte 0x00 "CTRLB,Control B"
newline
bitfld.byte 0x00 0. " START ,Start encryption/decryption" "No action,Started"
endif
group.byte 0x06++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " GFMCMP ,GF multiplication complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " ENCCMP ,Encryption complete interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTENFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x01 1. " GFMCMP ,GF multiplication complete" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " ENCCMP ,Encryption complete" "No interrupt,Interrupt"
textline " "
line.byte 0x02 "DATABUFPTR,Data Buffer Pointer"
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.byte 0x02 0.--1. " INTDATAPTR ,Input data pointer" "0,1,2,3"
else
bitfld.byte 0x02 0.--1. " DATAPTR ,Data pointer" "0,1,2,3"
endif
if (((per.b(ad:0x42003400))&0x02)==0x00)
wgroup.byte 0x09++0x00
line.byte 0x00 "DBGCTRL,Debug"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halt,Continue"
else
hgroup.byte 0x09++0x00
hide.byte 0x00 "DBGCTRL,Debug"
endif
wgroup.long 0xC++0x03
line.long 0x00 "KEYWORD0,Keyword0"
wgroup.long 0x10++0x03
line.long 0x00 "KEYWORD1,Keyword1"
wgroup.long 0x14++0x03
line.long 0x00 "KEYWORD2,Keyword2"
wgroup.long 0x18++0x03
line.long 0x00 "KEYWORD3,Keyword3"
wgroup.long 0x1C++0x03
line.long 0x00 "KEYWORD4,Keyword4"
wgroup.long 0x20++0x03
line.long 0x00 "KEYWORD5,Keyword5"
wgroup.long 0x24++0x03
line.long 0x00 "KEYWORD6,Keyword6"
wgroup.long 0x28++0x03
line.long 0x00 "KEYWORD7,Keyword7"
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
if ((per.l(ad:0x42003400)&0x1000)==0x00)
hgroup.long 0x38++0x03
hide.long 0x00 "DATA,Data"
in
else
group.long 0x38++0x03
line.long 0x00 "DATA,Data"
endif
else
group.long 0x38++0x03
line.long 0x00 "DATA,Data"
endif
wgroup.long 0x3C++0x03
line.long 0x00 "INTVECT0,Initialization Vector 0 Register"
wgroup.long 0x40++0x03
line.long 0x00 "INTVECT1,Initialization Vector 1 Register"
wgroup.long 0x44++0x03
line.long 0x00 "INTVECT2,Initialization Vector 2 Register"
wgroup.long 0x48++0x03
line.long 0x00 "INTVECT3,Initialization Vector 3 Register"
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
if (((per.b(ad:0x42003400))&0x1C)==0x18)
hgroup.long 0x5C++0x03
hide.long 0x00 "HASHKEY0,Hash Key 0"
in
hgroup.long 0x60++0x03
hide.long 0x00 "HASHKEY1,Hash Key 1"
in
hgroup.long 0x64++0x03
hide.long 0x00 "HASHKEY2,Hash Key 2"
in
hgroup.long 0x68++0x03
hide.long 0x00 "HASHKEY3,Hash Key 3"
in
hgroup.long 0x6C++0x03
hide.long 0x00 "GHASH0,Galois Hash 0"
in
hgroup.long 0x70++0x03
hide.long 0x00 "GHASH1,Galois Hash 1"
in
hgroup.long 0x74++0x03
hide.long 0x00 "GHASH2,Galois Hash 2"
in
hgroup.long 0x78++0x03
hide.long 0x00 "GHASH3,Galois Hash 3"
in
group.long 0x80++0x03
line.long 0x00 "CIPLEN,Cipher Length"
else
hgroup.long 0x5C++0x03
hide.long 0x00 "HASHKEY0,Hash Key 0"
hgroup.long 0x60++0x03
hide.long 0x00 "HASHKEY1,Hash Key 1"
hgroup.long 0x64++0x03
hide.long 0x00 "HASHKEY2,Hash Key 2"
hgroup.long 0x68++0x03
hide.long 0x00 "HASHKEY3,Hash Key 3"
hgroup.long 0x6C++0x03
hide.long 0x00 "GHASH0,Galois Hash 0"
hgroup.long 0x70++0x03
hide.long 0x00 "GHASH1,Galois Hash 1"
hgroup.long 0x74++0x03
hide.long 0x00 "GHASH2,Galois Hash 2"
hgroup.long 0x78++0x03
hide.long 0x00 "GHASH3,Galois Hash 3"
hgroup.long 0x80++0x03
hide.long 0x00 "CIPLEN,Cipher Length"
endif
else
if (((per.b(ad:0x42003400))&0x1C)==0x18)
group.long 0x4C++0x03
line.long 0x00 "HASHKEY0,Hash Key 0"
group.long 0x50++0x03
line.long 0x00 "HASHKEY1,Hash Key 1"
group.long 0x54++0x03
line.long 0x00 "HASHKEY2,Hash Key 2"
group.long 0x58++0x03
line.long 0x00 "HASHKEY3,Hash Key 3"
group.long 0x5C++0x03
line.long 0x00 "GHASH0,Galois Hash 0"
group.long 0x60++0x03
line.long 0x00 "GHASH1,Galois Hash 1"
group.long 0x64++0x03
line.long 0x00 "GHASH2,Galois Hash 2"
group.long 0x68++0x03
line.long 0x00 "GHASH3,Galois Hash 3"
group.long 0x70++0x03
line.long 0x00 "CIPLEN,Cipher Length"
else
hgroup.long 0x4C++0x03
hide.long 0x00 "HASHKEY0,Hash Key 0"
hgroup.long 0x50++0x03
hide.long 0x00 "HASHKEY1,Hash Key 1"
hgroup.long 0x54++0x03
hide.long 0x00 "HASHKEY2,Hash Key 2"
hgroup.long 0x58++0x03
hide.long 0x00 "HASHKEY3,Hash Key 3"
hgroup.long 0x5C++0x03
hide.long 0x00 "GHASH0,Galois Hash 0"
hgroup.long 0x60++0x03
hide.long 0x00 "GHASH1,Galois Hash 1"
hgroup.long 0x64++0x03
hide.long 0x00 "GHASH2,Galois Hash 2"
hgroup.long 0x68++0x03
hide.long 0x00 "GHASH3,Galois Hash 3"
hgroup.long 0x70++0x03
hide.long 0x00 "CIPLEN,Cipher Length"
endif
endif
group.long 0x74++0x03
line.long 0x00 "RANDSEED,Random Seed"
width 0x0B
tree.end
tree "USB (Universal Serial Bus)"
base ad:0x41000000
width 18.
tree "Communication Device Host Registers"
if (((per.l(ad:0x41000000))&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:0x41000000+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:0x41000000+0x24)+0x0
group.long 0x00++0x03 "Descriptor 0 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0x0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0x0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0x20
group.long 0x00++0x03 "Descriptor 1 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0x20))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0x20))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0x40
group.long 0x00++0x03 "Descriptor 2 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0x40))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0x40))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0x60
group.long 0x00++0x03 "Descriptor 3 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0x60))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0x60))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0x80
group.long 0x00++0x03 "Descriptor 4 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0x80))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0x80))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0xA0
group.long 0x00++0x03 "Descriptor 5 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0xA0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0xA0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0xC0
group.long 0x00++0x03 "Descriptor 6 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0xC0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0xC0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x24)+0xE0
group.long 0x00++0x03 "Descriptor 7 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+0x100+0xE0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000+0x100+0xE0))&0x07)==0x02)||(((per.b(ad:0x41000000+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:0x41000000
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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+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:0x41000000+0x24)+0x0
group.long 0x00++0x03 "Pipe descriptor 0 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0x0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0x20
group.long 0x00++0x03 "Pipe descriptor 1 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0x20
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0x40
group.long 0x00++0x03 "Pipe descriptor 2 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0x40
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0x60
group.long 0x00++0x03 "Pipe descriptor 3 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0x60
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0x80
group.long 0x00++0x03 "Pipe descriptor 4 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0x80
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0xA0
group.long 0x00++0x03 "Pipe descriptor 5 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0xA0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0xC0
group.long 0x00++0x03 "Pipe descriptor 6 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0xC0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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:0x41000000+0x24)+0xE0
group.long 0x00++0x03 "Pipe descriptor 7 BANK 0"
line.long 0x00 "ADDR,Address of Data Buffer"
; textline " "
if (((per.b(ad:0x41000000+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:0x41000000+0x24+0x10+0xE0
group.long 0x00++0x03 "BANK 1"
line.long 0x00 "ADDR,Address of Data Buffer"
if (((per.b(ad:0x41000000+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 "CCL (Configurable Custom Logic)"
base ad:0x43001C00
width 11.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Generic clock not required,Generic clock required"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
if (((per.l(ad:0x43001C00+0x08))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
rgroup.byte 0x04++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "DISABLE,DFF,JK,LATCH,RS,?..."
else
group.byte 0x04++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "DISABLE,DFF,JK,LATCH,RS,?..."
endif
if (((per.l(ad:0x43001C00+0x10))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
rgroup.byte 0x05++0x00
line.byte 0x00 "SEQCTRL1,Sequential Control 1"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "DISABLE,DFF,JK,LATCH,RS,?..."
endif
newline
if (((per.l(ad:0x43001C00+0x8))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
else
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
bitfld.long 0x00 22. " LUTEO ,LUT Event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
bitfld.long 0x00 7. " EDGESEL ,Inverted Event input enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
endif
if (((per.l(ad:0x43001C00+0xC))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
else
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
bitfld.long 0x00 22. " LUTEO ,LUT Event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
bitfld.long 0x00 7. " EDGESEL ,Inverted Event input enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
endif
if (((per.l(ad:0x43001C00+0x10))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
bitfld.long 0x00 22. " LUTEO ,LUT Event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
bitfld.long 0x00 7. " EDGESEL ,Inverted Event input enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
endif
if (((per.l(ad:0x43001C00+0x14))&0x02)==0x02)||(((per.l(ad:0x43001C00))&0x02)==0x02)
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,Truth table"
bitfld.long 0x00 22. " LUTEO ,LUT Event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,Inverted event input enable" "Not inverted,Inverted"
newline
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
else
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
endif
newline
bitfld.long 0x00 7. " EDGESEL ,Inverted Event input enable" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,Filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT enable" "Disabled,Enabled"
endif
width 0x0B
tree.end
tree "OPAMP (Operational Amplifier Controller)"
base ad:0x43001800
width 12.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 7. " LPMUX ,Low-Power mux" "Low resistance,High resistance"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.byte 0x02++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 2. " READY2 ,OPAMP 2 ready" "Not ready,Ready"
bitfld.byte 0x00 1. " READY1 ,OPAMP 1 ready" "Not ready,Ready"
bitfld.byte 0x00 0. " READY0 ,OPAMP 0 ready" "Not ready,Ready"
group.long 0x04++0x03
line.long 0x00 "OPAMPCTRL0,OPAMP Control 0"
bitfld.long 0x00 20.--22. " MUXNEG ,Negative input mux selection" "OAxNEG,OAxTAP,OAxOUT,DAC,?..."
bitfld.long 0x00 16.--18. " MUXPOS ,Positive input mux selection" "OAxPOS,OAxTAP,DAC,GND,?..."
bitfld.long 0x00 13.--15. " POTMUX ,Potentiometer selection" "1/7,1/3,1,1 + 2/3,3,4 + 1/3,7,15"
textline " ` "
bitfld.long 0x00 11.--12. " RES1MUX ,Resistor 1 mux" "OAxPOS,OAxNEG,DAC,GND"
bitfld.long 0x00 10. " RES1EN ,Resistor 1 enable" "Disconnected,Connected"
bitfld.long 0x00 9. " RES2VCC ,Resistor ladder To VCC" "Open,Closed"
textline " "
bitfld.long 0x00 8. " RES2OUT ,Resistor ladder To output" "Open,Closed"
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3.--4. " BIAS ,Bias selection" "Mode 0,Mode 1,Mode 2,Mode 3"
bitfld.long 0x00 2. " ANAOUT ,Analog output" "Open,Closed"
bitfld.long 0x00 1. " ENABLE ,Operational amplifier enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "OPAMPCTRL1,OPAMP Control 1"
bitfld.long 0x00 20.--22. " MUXNEG ,Negative input mux selection" "OAxNEG,OAxTAP,OAxOUT,DAC,?..."
bitfld.long 0x00 16.--18. " MUXPOS ,Positive input mux selection" "OAxPOS,OAxTAP,OA0OUT,GND,?..."
bitfld.long 0x00 13.--15. " POTMUX ,Potentiometer selection" "1/7,1/3,1,1 + 2/3,3,4 + 1/3,7,15"
textline " "
bitfld.long 0x00 11.--12. " RES1MUX ,Resistor 1 mux" "OAxPOS,OAxNEG,OA0OUT,GND"
bitfld.long 0x00 10. " RES1EN ,Resistor 1 enable" "Disconnected,Connected"
bitfld.long 0x00 9. " RES2VCC ,Resistor ladder to VCC" "Open,Closed"
textline " "
bitfld.long 0x00 8. " RES2OUT ,Resistor ladder to output" "Open,Closed"
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3.--4. " BIAS ,Bias selection" "Mode 0,Mode 1,Mode 2,Mode 3"
bitfld.long 0x00 2. " ANAOUT ,Analog output" "Open,Closed"
bitfld.long 0x00 1. " ENABLE ,Operational amplifier enable" "Disabled,Enabled"
group.long 0x0C++0x03
line.long 0x00 "OPAMPCTRL2,OPAMP Control 2"
bitfld.long 0x00 20.--22. " MUXNEG ,Negative input mux selection" "OAxNEG,OAxTAP,OAxOUT,OA0NEG,OA1NEG,DAC,?..."
bitfld.long 0x00 16.--18. " MUXPOS ,Positive Input mux selection" "OAxPOS,OAxTAP,OA1OUT,GND,OA0POS,OA1POS,OA0TAP,?..."
bitfld.long 0x00 13.--15. " POTMUX ,Potentiometer selection" "1/7,1/3,1,1 + 2/3,3,4 + 1/3,7,15"
textline " "
bitfld.long 0x00 11.--12. " RES1MUX ,Resistor 1 mux" "OAxPOS,OAxNEG,OA1OUT,GND"
bitfld.long 0x00 9. " RES2VCC ,Resistor ladder To VCC" "Open,Closed"
textline " "
bitfld.long 0x00 8. " RES2OUT ,Resistor ladder to output" "Open,Closed"
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
textline " "
bitfld.long 0x00 3.--4. " BIAS ,Bias selection" "Mode 0,Mode 1,Mode 2,Mode 3"
bitfld.long 0x00 2. " ANAOUT ,Analog output" "Open,Closed"
bitfld.long 0x00 1. " ENABLE ,Operational amplifier enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "ADC (Analog-to-Digital Converter)"
base ad:0x43000C00
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 7. " ONDEMAND ,On demand control" "Always on,Enabled on request"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
newline
sif cpuis("ATSAMC21*")
bitfld.byte 0x00 5. " SLAVEEN ,Slave enable (ADC1 slave of ADC0)" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable ADC" "Disabled,Enabled"
newline
else
bitfld.byte 0x00 1. " ENABLE ,Enable ADC" "Disabled,Enabled"
newline
endif
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
if (((per.b(ad:0x43000C00))&0x02)==0x02)
rgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 0.--2. " PRESCALER ,Prescaler configuration" "/2,/4,/8,/16,/32,/64,/128,/256"
rgroup.byte 0x02++0x00
line.byte 0x00 "REFCTRL,Reference Control Register"
bitfld.byte 0x00 7. " REFCOMP ,Reference buffer offset compensation enable" "Disabled,Enabled"
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 0.--3. " REFSEL ,Reference selection" "INTREF,INTVCC0,INTVCC1,VREFA,DAC,INTVCC2,?..."
elif !cpuis("ATSAMC20*")
bitfld.byte 0x00 0.--3. " REFSEL ,Reference selection" "INTREF,INTVCC0,INTVCC1,VREFA,VREFB,INTVCC2,?..."
endif
rgroup.byte 0x03++0x00
line.byte 0x00 "EVCTRL,Event Control Register"
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 3. " STARTINV ,Start conversion event invert enable" "Not inverted,Inverted"
bitfld.byte 0x00 2. " FLUSHINV ,Flush event invert enable" "Not inverted,Inverted"
newline
bitfld.byte 0x00 1. " STARTEI ,Start conversion event input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " FLUSHEI ,Flush event input enable" "Disabled,Enabled"
else
group.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 0.--2. " PRESCALER ,Prescaler configuration" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256"
group.byte 0x02++0x00
line.byte 0x00 "REFCTRL,Reference Control Register"
bitfld.byte 0x00 7. " REFCOMP ,Reference Buffer offset compensation enable" "Disabled,Enabled"
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 0.--3. " REFSEL ,Reference selection" "INTREF,INTVCC0,INTVCC1,VREFA,DAC,INTVCC2,?..."
elif !cpuis("ATSAMC20*")
bitfld.byte 0x00 0.--3. " REFSEL ,Reference selection" "INTREF,INTVCC0,INTVCC1,VREFA,VREFB,INTVCC2,?..."
endif
group.byte 0x03++0x00
line.byte 0x00 "EVCTRL,Event Control Register"
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 3. " STARTINV ,Start conversion event invert enable" "Not inverted,Inverted"
bitfld.byte 0x00 2. " FLUSHINV ,Flush event invert enable" "Not inverted,Inverted"
newline
bitfld.byte 0x00 1. " STARTEI ,Start conversion event input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " FLUSHEI ,Flush event input enable" "Disabled,Enabled"
endif
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " WINMON ,Window monitor interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " OVERRUN ,Overrun interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " RESRDY ,Result ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 2. " WINMON ,Window monitor interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " OVERRUN ,Overrun interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " RESRDY ,Result ready interrupt flag" "No interrupt,Interrupt"
rgroup.byte 0x07++0x00
line.byte 0x00 "SEQSTATUS,Sequence Status Register"
bitfld.byte 0x00 7. " SEQBUSY ,Sequence busy" "Not busy,Busy"
bitfld.byte 0x00 0.--4. " SEQSTATE ,Sequence state" "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"
group.word 0x08++0x01
line.word 0x00 "INPUTCTRL,Input Control Register"
sif cpuis("ATSAMC2*")
bitfld.word 0x00 8.--12. " MUXNEG ,Negative mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,,,,,,,,,,,,,,,,,,,GND,?..."
newline
else
bitfld.word 0x00 8.--12. " MUXNEG ,Negative mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,,,,,,,,,,,,,,,,,GND,?..."
bitfld.word 0x00 7. " DIFFMODE ,Differential mode selection" "Singled-ended mode,Differential mode"
newline
endif
sif cpuis("ATSAML22*")
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,AIN12,AIN13,AIN14,AIN15,AINS16,AINS17,AINS18,AINS19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,,SCALEDVBAT,CTAT,?..."
elif cpuis("ATSAMC20*")
sif cpuis("ATSAMC20N*")
newline
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,,,,,,,,,,,,,,BANDGAP,,,DAC,?..."
else
newline
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,,,,,,,,,,,,,,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
endif
elif cpuis("ATSAMC21*")
sif cpuis("ATSAMC21N*")
newline
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,,,,,,,,,,,,,,BANDGAP,,,DAC,?..."
else
newline
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,,,,,,,,,,,,,,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,?..."
endif
else
newline
bitfld.word 0x00 0.--4. " MUXPOS ,Positive mux input selection" "AIN0,AIN1,AIN2,AIN3,AIN4,AIN5,AIN6,AIN7,AIN8,AIN9,AIN10,AIN11,AIN12,AIN13,AIN14,AIN15,AINS16,AINS17,AINS18,AINS19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,SCALEDVBAT,OPAMP01,OPAMP2"
endif
group.word 0x0A++0x01
line.word 0x00 "CTRLC,Control C Register"
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
bitfld.word 0x00 12.--13. " DUALSEL ,Dual mode trigger selection" "Both,Interleave,?..."
newline
endif
bitfld.word 0x00 8.--10. " WINMODE ,Window monitor mode" "Disabled,Mode1,Mode2,Mode3,Mode4,?..."
newline
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20*")
bitfld.word 0x00 7. " R2R ,Rail-to-rail operation enable" "Disabled,Enabled"
newline
endif
bitfld.word 0x00 4.--5. " RESSEL ,Conversion result resolution" "12-bit,16-bit,10-bit,8-bit"
bitfld.word 0x00 3. " CORREN ,Digital correction logic enabled" "Disabled,Enabled"
newline
bitfld.word 0x00 2. " FREERUN ,Free running mode" "Single conversion,Free running"
bitfld.word 0x00 1. " LEFTADJ ,Left-adjusted result" "Right adjusted,Left adjusted"
newline
bitfld.word 0x00 0. " DIFFMODE ,Differential mode" "Singled-ended,Differential"
group.byte 0x0C++0x01
line.byte 0x00 "AVGCTRL,Average Control Register"
bitfld.byte 0x00 4.--6. " ADJRES ,Adjusting result / division coefficient" "/1,/2,/4,/8,/16,/32,/64,/128"
bitfld.byte 0x00 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 0x01 "SAMPCTRL,Sampling Time Control Register"
bitfld.byte 0x01 7. " OFFCOMP ,Comparator offset compensation enable" "Disabled,Enabled"
bitfld.byte 0x01 0.--5. " SAMPLEN ,Sampling time length" "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,64"
group.word 0x0E++0x07
line.word 0x00 "WINLT,Window Monitor Lower Threshold Register"
line.word 0x02 "WINUT,Window Monitor Upper Threshold Register"
line.word 0x04 "GAINCORR,Gain Correction Register"
hexmask.word 0x04 0.--11. 1. " GAINCORR ,Gain correction value"
line.word 0x06 "OFFSETCORR,Offset Correction Register"
hexmask.word 0x06 0.--11. 0x01 " OFFSETCORR ,Offset correction value"
wgroup.byte 0x18++0x00
line.byte 0x00 "SWTRIG,Software Trigger Register"
bitfld.byte 0x00 1. " START ,ADC start conversion" "No effect,Start"
bitfld.byte 0x00 0. " FLUSH ,ADC conversion flush" "No effect,Flush"
group.byte 0x1C++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continued"
rgroup.word 0x20++0x01
line.word 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.word 0x00 10. " SWTRIG ,Software trigger synchronization busy" "Not busy,Busy"
bitfld.word 0x00 9. " OFFSETCORR ,Offset correction synchronization busy" "Not busy,Busy"
bitfld.word 0x00 8. " GAINCORR ,Gain correction synchronization busy" "Not busy,Busy"
bitfld.word 0x00 7. " WINUT ,Window monitor lower threshold synchronization busy" "Not busy,Busy"
newline
bitfld.word 0x00 6. " WINLT ,Window monitor upper threshold synchronization busy" "Not busy,Busy"
bitfld.word 0x00 5. " SAMPCTRL ,Sampling time control synchronization busy" "Not busy,Busy"
bitfld.word 0x00 4. " AVGCTRL ,Average control synchronization busy" "Not busy,Busy"
newline
bitfld.word 0x00 3. " CTRLC ,Control C synchronization busy" "Not busy,Busy"
bitfld.word 0x00 2. " INPUTCTRL ,Input control synchronization busy" "Not busy,Busy"
bitfld.word 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
newline
bitfld.word 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
if ((per.w(ad:0x43000C00+0x0A)&0x32)==0x00)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word 0x00 0.--11. 1. " RESULT[11:0] ,Result conversion value"
elif ((per.w(ad:0x43000C00+0x0A)&0x32)==0x02)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word 0x00 4.--15. 1. " RESULT[15:4] ,Result conversion value"
elif ((per.w(ad:0x43000C00+0x0A)&0x32)==0x20)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word 0x00 0.--9. 1. " RESULT[9:0] ,Result conversion value"
elif ((per.w(ad:0x43000C00+0x0A)&0x32)==0x22)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word 0x00 6.--15. 1. " RESULT[15:6] ,Result conversion value"
elif ((per.w(ad:0x43000C00+0x0A)&0x32)==0x30)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word.byte 0x00 0.--7. 1. " RESULT[7:0] ,Result conversion value"
elif ((per.w(ad:0x43000C00+0x0A)&0x32)==0x32)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word.byte 0x00 8.--15. 1. " RESULT[15:8] ,Result conversion value"
else
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result Register"
hexmask.word 0x00 0.--15. 1. " RESULT[15:0] ,Result conversion value"
endif
newline
group.long 0x28++0x03
line.long 0x00 "SEQCTRL,Sequence Control Register"
bitfld.long 0x00 31. " SEQEN31 ,Enable positive input in the sequence (Mux31)" "Disabled,Enabled"
bitfld.long 0x00 30. " SEQEN30 ,Enable positive input in the sequence (Mux30)" "Disabled,Enabled"
bitfld.long 0x00 29. " SEQEN29 ,Enable positive input in the sequence (Mux29)" "Disabled,Enabled"
bitfld.long 0x00 28. " SEQEN28 ,Enable positive input in the sequence (Mux28)" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " SEQEN27 ,Enable positive input in the sequence (Mux27)" "Disabled,Enabled"
bitfld.long 0x00 26. " SEQEN26 ,Enable positive input in the sequence (Mux26)" "Disabled,Enabled"
bitfld.long 0x00 25. " SEQEN25 ,Enable positive input in the sequence (Mux25)" "Disabled,Enabled"
bitfld.long 0x00 24. " SEQEN24 ,Enable positive input in the sequence (Mux24)" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " SEQEN23 ,Enable positive input in the sequence (Mux23)" "Disabled,Enabled"
bitfld.long 0x00 22. " SEQEN22 ,Enable positive input in the sequence (Mux22)" "Disabled,Enabled"
bitfld.long 0x00 21. " SEQEN21 ,Enable positive input in the sequence (Mux21)" "Disabled,Enabled"
bitfld.long 0x00 20. " SEQEN20 ,Enable positive input in the sequence (Mux20)" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " SEQEN19 ,Enable positive input in the sequence (Mux19)" "Disabled,Enabled"
bitfld.long 0x00 18. " SEQEN18 ,Enable positive input in the sequence (Mux18)" "Disabled,Enabled"
bitfld.long 0x00 17. " SEQEN17 ,Enable positive input in the sequence (Mux17)" "Disabled,Enabled"
bitfld.long 0x00 16. " SEQEN16 ,Enable positive input in the sequence (Mux16)" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " SEQEN15 ,Enable positive input in the sequence (Mux15)" "Disabled,Enabled"
bitfld.long 0x00 14. " SEQEN14 ,Enable positive input in the sequence (Mux14)" "Disabled,Enabled"
bitfld.long 0x00 13. " SEQEN13 ,Enable positive input in the sequence (Mux13)" "Disabled,Enabled"
bitfld.long 0x00 12. " SEQEN12 ,Enable positive input in the sequence (Mux12)" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " SEQEN11 ,Enable positive input in the sequence (Mux11)" "Disabled,Enabled"
bitfld.long 0x00 10. " SEQEN10 ,Enable positive input in the sequence (Mux10)" "Disabled,Enabled"
bitfld.long 0x00 9. " SEQEN9 ,Enable positive input in the sequence (Mux9)" "Disabled,Enabled"
bitfld.long 0x00 8. " SEQEN8 ,Enable positive input in the sequence (Mux8)" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " SEQEN7 ,Enable positive input in the sequence (Mux7)" "Disabled,Enabled"
bitfld.long 0x00 6. " SEQEN6 ,Enable positive input in the sequence (Mux6)" "Disabled,Enabled"
bitfld.long 0x00 5. " SEQEN5 ,Enable positive input in the sequence (Mux5)" "Disabled,Enabled"
bitfld.long 0x00 4. " SEQEN4 ,Enable positive input in the sequence (Mux4)" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " SEQEN3 ,Enable positive input in the sequence (Mux3)" "Disabled,Enabled"
bitfld.long 0x00 2. " SEQEN2 ,Enable positive input in the sequence (Mux2)" "Disabled,Enabled"
bitfld.long 0x00 1. " SEQEN1 ,Enable positive input in the sequence (Mux1)" "Disabled,Enabled"
bitfld.long 0x00 0. " SEQEN0 ,Enable positive input in the sequence (Mux0)" "Disabled,Enabled"
if (((per.b(ad:0x43000C00))&0x02)==0x02)
rgroup.word 0x2C++0x01
line.word 0x00 "CALIB,Calibration Register"
bitfld.word 0x00 8.--10. " BIASREFBUF ,Bias reference buffer scaling" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 0.--2. " BIASCOMP ,Bias comparator scaling" "0,1,2,3,4,5,6,7"
else
group.word 0x2C++0x01
line.word 0x00 "CALIB,Calibration Register"
bitfld.word 0x00 8.--10. " BIASREFBUF ,Bias reference buffer scaling" "0,1,2,3,4,5,6,7"
bitfld.word 0x00 0.--2. " BIASCOMP ,Bias comparator scaling" "0,1,2,3,4,5,6,7"
endif
width 0x0B
tree.end
tree "AC (Analog Comparators)"
base ad:0x43001000
width 15.
group.byte 0x00++0x01
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software Reset" "No effect,Reset"
line.byte 0x01 "CTRLB,Control B"
bitfld.byte 0x01 1. " START[1] ,Comparator 1 Start Comparison" "No effect,Start"
bitfld.byte 0x01 0. " [0] ,Comparator 0 Start Comparison" "No effect,Start"
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " INVEI[1] ,Inverted Event Input Enable 1" "Not inverted,Inverted"
bitfld.word 0x00 12. " [0] ,Inverted Event Input Enable 0" "Not inverted,Inverted"
newline
bitfld.word 0x00 9. " COMPEI[1] ,Comparator 1 Event Input" "Disabled,Enabled"
bitfld.word 0x00 8. " [0] ,Comparator 0 Event Input" "Disabled,Enabled"
bitfld.word 0x00 4. " WINEO[0] ,Window 0 Event Output Enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " COMPEO[1] ,Comparator 1 Event Output Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " [0] ,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. " WIN[0] ,Window 0 Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " COMP[1] ,Comparator 1 Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " [0] ,Comparator 0 Interrupt Enable" "Disabled,Enabled"
group.byte 0x06++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 4. " WIN[0] ,Window 0" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " COMP[1] ,Comparator 1" "No interrupt,Interrupt"
eventfld.byte 0x00 0. " [0] ,Comparator 0" "No interrupt,Interrupt"
if ((d.b(ad:0x43001000+0x08)&0x03)==0x03)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE[0] ,Window 0 Current State" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE[1] ,Comparator 1 Current State" "0,1"
bitfld.byte 0x00 0. " [0] ,Comparator 0 Current State" "0,1"
elif ((d.b(ad:0x43001000+0x08)&0x03)==0x02)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE[0] ,Window 0 Current State" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE[1] ,Comparator 1 Current State" "0,1"
elif ((d.b(ad:0x43001000+0x08)&0x03)==0x01)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE[0] ,Window 0 Current State" "Above,Inside,Below,?..."
bitfld.byte 0x00 0. " STATE[0] ,Comparator 0 Current State" "0,1"
else
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE[0] ,Window 0 Current State" "Above,Inside,Below,?..."
endif
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSB,Status B"
bitfld.byte 0x00 1. " READY[1] ,Comparator 1 Ready" "Not ready,Ready"
bitfld.byte 0x00 0. " [0] ,Comparator 0 Ready" "Not ready,Ready"
group.byte 0x09++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug Run" "Halted,Continues"
line.byte 0x01 "WINCTRL,Window Control"
bitfld.byte 0x01 1.--2. " WINTSEL[0] ,Window 0 Interrupt Selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 0. " WEN[0] ,Window 0 Mode Enable" "Disabled,Enabled"
group.byte 0x0C++0x01
line.byte 0x00 "SCALER0,Scaler 0"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler Value" "VDD*0.015625,VDD*0.03125,VDD*0.046875,VDD*0.0625,VDD*0.078125,VDD*0.09375,VDD*0.109375,VDD*0.125,VDD*0.140625,VDD*0.15625,VDD*0.171875,VDD*0.1875,VDD*0.203125,VDD*0.21875,VDD*0.234375,VDD*0.25,VDD*0.265625,VDD*0.28125,VDD*0.296875,VDD*0.3125,VDD*0.328125,VDD*0.34375,VDD*0.359375,VDD*0.375,VDD*0.390625,VDD*0.40625,VDD*0.421875,VDD*0.4375,VDD*0.453125,VDD*0.46875,VDD*0.484375,VDD*0.5,VDD*0.515625,VDD*0.53125,VDD*0.546875,VDD*0.5625,VDD*0.578125,VDD*0.59375,VDD*0.609375,VDD*0.625,VDD*0.640625,VDD*0.65625,VDD*0.671875,VDD*0.6875,VDD*0.703125,VDD*0.71875,VDD*0.734375,VDD*0.75,VDD*0.765625,VDD*0.78125,VDD*0.796875,VDD*0.8125,VDD*0.828125,VDD*0.84375,VDD*0.859375,VDD*0.875,VDD*0.890625,VDD*0.90625,VDD*0.921875,VDD*0.9375,VDD*0.953125,VDD*0.96875,VDD*0.984375,VDD*1"
line.byte 0x01 "SCALER1,Scaler 1"
bitfld.byte 0x01 0.--5. " VALUE ,Scaler Value" "VDD*0.015625,VDD*0.03125,VDD*0.046875,VDD*0.0625,VDD*0.078125,VDD*0.09375,VDD*0.109375,VDD*0.125,VDD*0.140625,VDD*0.15625,VDD*0.171875,VDD*0.1875,VDD*0.203125,VDD*0.21875,VDD*0.234375,VDD*0.25,VDD*0.265625,VDD*0.28125,VDD*0.296875,VDD*0.3125,VDD*0.328125,VDD*0.34375,VDD*0.359375,VDD*0.375,VDD*0.390625,VDD*0.40625,VDD*0.421875,VDD*0.4375,VDD*0.453125,VDD*0.46875,VDD*0.484375,VDD*0.5,VDD*0.515625,VDD*0.53125,VDD*0.546875,VDD*0.5625,VDD*0.578125,VDD*0.59375,VDD*0.609375,VDD*0.625,VDD*0.640625,VDD*0.65625,VDD*0.671875,VDD*0.6875,VDD*0.703125,VDD*0.71875,VDD*0.734375,VDD*0.75,VDD*0.765625,VDD*0.78125,VDD*0.796875,VDD*0.8125,VDD*0.828125,VDD*0.84375,VDD*0.859375,VDD*0.875,VDD*0.890625,VDD*0.90625,VDD*0.921875,VDD*0.9375,VDD*0.953125,VDD*0.96875,VDD*0.984375,VDD*1"
newline
if (((d.l(ad:0x43001000+0x10))&0x02)==0x00)
if (((d.l(ad:0x43001000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
sif cpuis("ATSAMC20*")
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
else
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 20.--21. " HYST ,Hysteresis Level" "50mV,70mV,90mV,110mV"
newline
endif
bitfld.long 0x00 19. " HYSTEN ,Hysteresis Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
endif
newline
bitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,?..."
bitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
bitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
bitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
else
if (((d.l(ad:0x43001000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
else
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 20.--21. " HYST ,Hysteresis Level" "50mV,70mV,90mV,110mV"
newline
endif
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis Enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
rbitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,?..."
rbitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
rbitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
endif
if (((d.l(ad:0x43001000+0x14))&0x02)==0x00)
if (((d.l(ad:0x43001000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
sif cpuis("ATSAMC20*")
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
else
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 20.--21. " HYST ,Hysteresis Level" "50mV,70mV,90mV,110mV"
newline
endif
bitfld.long 0x00 19. " HYSTEN ,Hysteresis Enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
endif
newline
bitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,?..."
bitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
bitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
bitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
bitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
bitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
bitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
bitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
else
if (((d.l(ad:0x43001000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
else
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 20.--21. " HYST ,Hysteresis Level" "50mV,70mV,90mV,110mV"
newline
endif
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis Enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
rbitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,?..."
rbitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
rbitfld.long 0x00 28.--29. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter Length" "OFF,MAJ3,MAJ5,?..."
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed Selection" "LOW,MEDLOW,MEDHIGH,HIGH"
rbitfld.long 0x00 15. " SWAP ,Swap Inputs and Invert" "Not inverted,Inverted"
newline
sif cpuis("ATSAMC20*")
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,?..."
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
else
rbitfld.long 0x00 12.--14. " MUXPOS ,Positive Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,VSCALE,?..."
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative Input Mux Selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC/OPAMP"
bitfld.long 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Continues"
newline
endif
rbitfld.long 0x00 3.--4. " INTSEL ,Interrupt Selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2. " SINGLE ,Single-Shot Mode" "Continuous mode,Single-shot mode"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
endif
endif
rgroup.long 0x20++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 4. " COMPCTRL[0] ,COMPCTRL0 Synchronization Busy" "Cleared,Set"
bitfld.long 0x00 3. " [1] ,COMPCTRL1 Synchronization Busy" "Cleared,Set"
bitfld.long 0x00 2. " WINCTRL ,WINCTRL Synchronization Busy" "Cleared,Set"
newline
bitfld.long 0x00 1. " ENABLE ,Enable Synchronization Busy" "Cleared,Set"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Cleared,Set"
width 0x0B
tree.end
tree "DAC (Digital-to-Analog Converter)"
base ad:0x42003000
width 15.
group.byte 0x00++0x02
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
line.byte 0x01 "CTRLB,Control B"
bitfld.byte 0x01 1.--2. " REFSEL ,Reference Selection" "VREFAU,VDDANA,VREFAB,INTREF"
bitfld.byte 0x01 0. " DIFF ,Differential Mode Enable" "Single mode,Differential mode"
line.byte 0x02 "EVCTRL,Event control"
bitfld.byte 0x02 5. " INVEI1 ,Enable Inversion of DAC1 input event" "Rising,Falling"
bitfld.byte 0x02 4. " INVEI0 ,Enable Inversion of DAC0 input event" "Rising,Falling"
bitfld.byte 0x02 3. " EMPTYEO1 ,Data Buffer Empty Event Output DAC1" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 2. " EMPTYEO0 ,Data Buffer Empty Event Output DAC0" "Disabled,Enabled"
bitfld.byte 0x02 1. " STARTEI1 ,Start Conversion Event Input DAC1" "Not triggrered,Triggered"
bitfld.byte 0x02 1. " STARTEI0 ,Start Conversion Event Input DAC0" "Not triggrered,Triggered"
group.byte 0x05++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " EMPTY1 ,Data Buffer 1 Empty Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " EMPTY0 ,Data Buffer 0 Empty Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " UNDERRUN1 ,Underrun Interrupt Enable for DAC1" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " UNDERRUN0 ,Underrun Interrupt Enable for DAC0" "Disabled,Enabled"
group.byte 0x06++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 3. " EMPTY1 ,Data Buffer 1 Empty" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " EMPTY0 ,Data Buffer 0 Empty" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " UNDERRUN1 ,DAC1 Underrun" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 0. " UNDERRUN0 ,DAC0 Underrun" "No interrupt,Interrupt"
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 3. " EOC1 ,DAC1 End of Conversion" "Not completed,Completed"
bitfld.byte 0x00 2. " EOC0 ,DAC0 End of Conversion" "Not completed,Completed"
bitfld.byte 0x00 1. " READY1 ,DAC1 Startup Ready" "Not ready,Ready"
textline " "
bitfld.byte 0x00 0. " READY0 ,DAC0 Startup Ready" "Not ready,Ready"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 5. " DATABUF1 ,Data Buffer DAC1" "No ongoig access,Ongoing access"
bitfld.long 0x00 4. " DATABUF0 ,Data Buffer DAC0" "No ongoig access,Ongoing access"
bitfld.long 0x00 3. " DATA1 ,Data DAC1" "No ongoig access,Ongoing access"
textline " "
bitfld.long 0x00 2. " DATA0 ,Data DAC0" "No ongoig access,Ongoing access"
bitfld.long 0x00 1. " ENABLE ,DAC Enable Status" "No ongoig access,Ongoing access"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No ongoig access,Ongoing access"
group.word 0x0C++0x03
line.word 0x00 "DACCTRL0,DAC0 Control"
bitfld.word 0x00 8.--11. " REFRESH ,Refresh period (T_REFRESH value)" "Disabled,,61.04,91.56,122.08,152.6,183.12,213.64,244.16,274.68,305.2,335.72,366.24,396.76,427.28,457.8"
bitfld.word 0x00 7. " DITHER ,Dithering Mode" "Disabled,Enabled"
bitfld.word 0x00 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
textline " "
bitfld.word 0x00 2.--3. " CCTRL ,Dithering Mode" "CC100K,CC1M,CC12M,?..."
bitfld.word 0x00 1. " ENABLE ,Enable DAC0" "Disabled,Enabled"
bitfld.word 0x00 0. " LEFTADJ ,Left Adjusted Data" "Right adjusted,Left adjusted"
line.word 0x02 "DACCTRL1,DAC1 Control"
bitfld.word 0x02 8.--11. " REFRESH ,Refresh period (T_REFRESH value)" "Disabled,,61.04,91.56,122.08,152.6,183.12,213.64,244.16,274.68,305.2,335.72,366.24,396.76,427.28,457.8"
bitfld.word 0x02 7. " DITHER ,Dithering Mode" "Disabled,Enabled"
bitfld.word 0x02 6. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
textline " "
bitfld.word 0x02 2.--3. " CCTRL ,Dithering Mode" "CC100K,CC1M,CC12M,?..."
bitfld.word 0x02 1. " ENABLE ,Enable DAC1" "Disabled,Enabled"
bitfld.word 0x02 0. " LEFTADJ ,Left Adjusted Data" "Right adjusted,Left adjusted"
if (((d.w(ad:0x42003000+0x0C))&0x80)==0x80)
wgroup.word 0x10++0x01
line.word 0x00 "DATA0,Data DAC0"
hexmask.word 0x00 0.--15. 1. " DATA ,DAC0 Data with dither bits"
wgroup.word 0x14++0x01
line.word 0x00 "DATABUF0,DAC0 Data Buffer"
hexmask.word 0x00 0.--15. 1. " DATABUF ,DAC0 Data Buffer with dither bits"
else
if (((d.w(ad:0x42003000+0x0C))&0x01)==0x00)
wgroup.word 0x10++0x01
line.word 0x00 "DATA0,Data DAC0"
hexmask.word 0x00 0.--11. 1. " DATA ,DAC0 Data"
wgroup.word 0x14++0x01
line.word 0x00 "DATABUF0,DAC0 Data Buffer"
hexmask.word 0x00 0.--11. 1. " DATABUF ,DAC0 Data Buffer"
else
wgroup.word 0x10++0x01
line.word 0x00 "DATA0,Data DAC0"
hexmask.word 0x00 4.--15. 1. " DATA ,DAC0 Data"
wgroup.word 0x14++0x01
line.word 0x00 "DATABUF0,DAC0 Data Buffer"
hexmask.word 0x00 4.--15. 1. " DATABUF ,DAC0 Data Buffer"
endif
endif
if (((d.w(ad:0x42003000+0x0E))&0x80)==0x80)
wgroup.word 0x12++0x01
line.word 0x00 "DATA1,Data DAC1"
hexmask.word 0x00 0.--15. 1. " DATA ,DAC1 Data with dither bits"
wgroup.word 0x16++0x01
line.word 0x00 "DATABUF1,DAC1 Data Buffer"
hexmask.word 0x00 0.--15. 1. " DATABUF ,DAC1 Data Buffer with dither bits"
else
if (((d.w(ad:0x42003000+0x0E))&0x01)==0x00)
wgroup.word 0x12++0x01
line.word 0x00 "DATA1,Data DAC1"
hexmask.word 0x00 0.--11. 1. " DATA ,DAC1 Data"
wgroup.word 0x16++0x01
line.word 0x00 "DATABUF1,DAC1 Data Buffer"
hexmask.word 0x00 0.--11. 1. " DATABUF ,DAC1 Data Buffer"
else
wgroup.word 0x12++0x01
line.word 0x00 "DATA1,Data DAC1"
hexmask.word 0x00 4.--15. 1. " DATA ,DAC1 Data"
wgroup.word 0x16++0x01
line.word 0x00 "DATABUF1,DAC1 Data Buffer"
hexmask.word 0x00 4.--15. 1. " DATABUF ,DAC1 Data Buffer"
endif
endif
group.byte 0x18++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug Run" "Halted,Not halted"
width 0x0B
tree.end
textline ""