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

29880 lines
1.8 MiB

; --------------------------------------------------------------------------------
; @Title: ATSAMC2x On-Chip Peripherals
; @Props: Released
; @Author: KKW, BCA, LST, MKO, KRZ
; @Changelog: 2015-11-20 KKW
; 2019-05-14 KRZ
; @Manufacturer: ATMEL - Atmel Corporation
; @Doc: Atmel-42364-SAMC20_Datasheet.pdf (2015-06)
; Atmel-42365-SAMC21_Datasheet.pdf (2015-06)
; Atmel-42364-SAMC20_Datasheet.pdf (2016-02)
; Atmel-42365-SAMC21_Datasheet.pdf (2016-02)
; DS60001479B.pdf (Rev B. 2017-06)
; SAM-C20C21-Family-Datasheet-DS60001479C.pdf (Rev C. 2019-01)
; @Core: Cortex-M0P
; @Chip: ATSAMC20E15A, ATSAMC20E16A, ATSAMC20E17A, ATSAMC20E18A, ATSAMC20G15A,
; ATSAMC20G16A, ATSAMC20G17A, ATSAMC20G18A, ATSAMC20J15A, ATSAMC20J16A,
; ATSAMC20J17A, ATSAMC20J18A, ATSAMC20N17A, ATSAMC20N18A, ATSAMC21E15A,
; ATSAMC21E16A, ATSAMC21E17A, ATSAMC21E18A, ATSAMC21G15A, ATSAMC21G16A,
; ATSAMC21G17A, ATSAMC21G18A, ATSAMC21J15A, ATSAMC21J16A, ATSAMC21J17A,
; ATSAMC21J18A, ATSAMC21N17A, ATSAMC21N18A
; @Copyright: (C) 1989-2019 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: peratsamc2x.per 11094 2019-10-11 10:54:05Z mkolodziejczyk $
; Known problems:
; MODULE REGISTER DESCRIPTION
; PTC All Missing register description
; GCLK GENCTRLn Misleading description of number DIV bits
; MCLK AHBMASK Bits in description don't appear in the register map
; PORT PINCFGm Misleading description. Some of m values are doubled.
; Range of loop is too short.
; TC All Configuration summary tells us there is 8 TC instances
; but in memory map we have only 5 TC instances
; TCC All Miss leading information about output channels
; per instance at configuration summary chapter and
; information in register descriptions
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 Control)"
base ad:0x40000000
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++0x13
line.long 0x00 "INTFLAGAHB,AHB Slave Bus Interrupt Flag Status And Clear"
eventfld.long 0x00 8. " HPB3 ,Interrupt flag for SLAVE HPB3" "No interrupt,Interrupt"
eventfld.long 0x00 7. " DIVAS ,Interrupt flag for SLAVE DIVAS" "No interrupt,Interrupt"
eventfld.long 0x00 6. " LPRAMDMAC ,Interrupt flag for SLAVE LPRAMDMAC" "No interrupt,Interrupt"
eventfld.long 0x00 5. " HPB2 ,Interrupt flag for SLAVE HPB2" "No interrupt,Interrupt"
newline
eventfld.long 0x00 4. " HPB0 ,Interrupt flag for SLAVE HPB0" "No interrupt,Interrupt"
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"
newline
eventfld.long 0x00 0. " FLASH ,Interrupt flag for SLAVE FLASH" "No interrupt,Interrupt"
line.long 0x04 "INTFLAGA,Peripheral Interrupt Flag Status And Clear A"
sif cpuis("ATSAMC21*")
eventfld.long 0x04 12. " TSENS ,Interrupt flag for TSENS" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x04 11. " FREQM ,Interrupt flag for FREQM" "No interrupt,Interrupt"
eventfld.long 0x04 10. " EIC ,Interrupt flag for EIC" "No interrupt,Interrupt"
eventfld.long 0x04 9. " RTC ,Interrupt flag for RTC" "No interrupt,Interrupt"
eventfld.long 0x04 8. " WDT ,Interrupt flag for WDT" "No interrupt,Interrupt"
newline
eventfld.long 0x04 7. " GCLK ,Interrupt flag for GCLK" "No interrupt,Interrupt"
eventfld.long 0x04 6. " SUPC ,Interrupt flag for SUPC" "No interrupt,Interrupt"
eventfld.long 0x04 5. " OSC32KCTRL ,Interrupt flag for OSC32KCTRL" "No interrupt,Interrupt"
eventfld.long 0x04 4. " OSCCTRL ,Interrupt flag for OSCCTRL" "No interrupt,Interrupt"
newline
eventfld.long 0x04 3. " RSTC ,Interrupt flag for RSTC" "No interrupt,Interrupt"
eventfld.long 0x04 2. " MCLK ,Interrupt flag for MCLK" "No interrupt,Interrupt"
eventfld.long 0x04 1. " PM ,Interrupt flag for PM" "No interrupt,Interrupt"
eventfld.long 0x04 0. " PAC ,Interrupt flag for PAC" "No interrupt,Interrupt"
line.long 0x08 "INTFLAGB,Peripheral Interrupt Flag Status And Clear B"
eventfld.long 0x08 4. " MTB ,Interrupt flag for MTB" "No interrupt,Interrupt"
eventfld.long 0x08 3. " DMAC ,Interrupt flag for DMAC" "No interrupt,Interrupt"
eventfld.long 0x08 2. " NVMCTRL ,Interrupt flag for NVMCTRL" "No interrupt,Interrupt"
eventfld.long 0x08 1. " DSU ,Interrupt flag for DSU" "No interrupt,Interrupt"
newline
eventfld.long 0x08 0. " PORT ,Interrupt flag for PORT" "No interrupt,Interrupt"
line.long 0x0C "INTFLAGC,Peripheral Interrupt Flag Status And Clear C"
eventfld.long 0x0C 23. " CCL ,Interrupt Flag for CCL" "No interrupt,Interrupt"
eventfld.long 0x0C 22. " PTC ,Interrupt Flag for PTC" "No interrupt,Interrupt"
newline
sif cpuis("ATSAMC21*")
eventfld.long 0x0C 21. " DAC ,Interrupt Flag for DAC" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x0C 20. " AC ,Interrupt Flag for AC" "No interrupt,Interrupt"
newline
sif cpuis("ATSAMC21*")
eventfld.long 0x0C 19. " SDADC ,Interrupt Flag for SDADC" "No interrupt,Interrupt"
eventfld.long 0x0C 18. " ADC1 ,Interrupt Flag for ADC1" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x0C 17. " ADC0 ,Interrupt Flag for ADC0" "No interrupt,Interrupt"
eventfld.long 0x0C 16. " TC4 ,Interrupt Flag for TC4" "No interrupt,Interrupt"
eventfld.long 0x0C 15. " TC3 ,Interrupt Flag for TC3" "No interrupt,Interrupt"
newline
eventfld.long 0x0C 14. " TC2 ,Interrupt Flag for TC2" "No interrupt,Interrupt"
eventfld.long 0x0C 13. " TC1 ,Interrupt Flag for TC1" "No interrupt,Interrupt"
eventfld.long 0x0C 12. " TC0 ,Interrupt Flag for TC0" "No interrupt,Interrupt"
newline
eventfld.long 0x0C 11. " TCC2 ,Interrupt Flag for TCC2" "No interrupt,Interrupt"
eventfld.long 0x0C 10. " TCC1 ,Interrupt Flag for TCC1" "No interrupt,Interrupt"
eventfld.long 0x0C 9. " TCC0 ,Interrupt Flag for TCC0" "No interrupt,Interrupt"
newline
sif cpuis("ATSAMC21*")
eventfld.long 0x0C 8. " CAN1 ,Interrupt Flag for CAN1" "No interrupt,Interrupt"
eventfld.long 0x0C 7. " CAN0 ,Interrupt Flag for CAN0" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x0C 6. " SERCOM5 ,Interrupt Flag for SERCOM5" "No interrupt,Interrupt"
eventfld.long 0x0C 5. " SERCOM4 ,Interrupt Flag for SERCOM4" "No interrupt,Interrupt"
eventfld.long 0x0C 4. " SERCOM3 ,Interrupt Flag for SERCOM3" "No interrupt,Interrupt"
eventfld.long 0x0C 3. " SERCOM2 ,Interrupt Flag for SERCOM2" "No interrupt,Interrupt"
newline
eventfld.long 0x0C 2. " SERCOM1 ,Interrupt Flag for SERCOM1" "No interrupt,Interrupt"
eventfld.long 0x0C 1. " SERCOM0 ,Interrupt Flag for SERCOM0" "No interrupt,Interrupt"
eventfld.long 0x0C 0. " EVSYS ,Interrupt Flag for EVSYS" "No interrupt,Interrupt"
line.long 0x10 "INTFLAGD,Peripheral Interrupt Flag Status And Clear D"
eventfld.long 0x10 4. " TC7 ,Interrupt flag for TC7" "No interrupt,Interrupt"
eventfld.long 0x10 3. " TC6 ,Interrupt flag for TC6" "No interrupt,Interrupt"
eventfld.long 0x10 2. " TC5 ,Interrupt flag for TC5" "No interrupt,Interrupt"
eventfld.long 0x10 1. " SERCOM7 ,Interrupt flag for SERCOM7" "No interrupt,Interrupt"
newline
eventfld.long 0x10 0. " SERCOM6 ,Interrupt flag for SERCOM6" "No interrupt,Interrupt"
rgroup.long 0x34++0x0F
line.long 0x00 "STATUSA,Peripheral Write Protection Status A"
sif cpuis("ATSAMC21*")
bitfld.long 0x00 12. " TSENS ,Peripheral TSENS write protection status" "Not protected,Protected"
newline
endif
bitfld.long 0x00 11. " FREQM ,Peripheral FREQM write protection status" "Not protected,Protected"
bitfld.long 0x00 10. " EIC ,Peripheral EIC write protection status" "Not protected,Protected"
bitfld.long 0x00 9. " RTC ,Peripheral RTC write protection status" "Not protected,Protected"
bitfld.long 0x00 8. " WDT ,Peripheral WDT write protection status" "Not protected,Protected"
newline
bitfld.long 0x00 7. " GCLK ,Peripheral GCLK write protection status" "Not protected,Protected"
bitfld.long 0x00 6. " SUPC ,Peripheral SUPC write protection status" "Not protected,Protected"
bitfld.long 0x00 5. " OSC32KCTRL ,Peripheral OSC32KCTRL write protection status" "Not protected,Protected"
bitfld.long 0x00 4. " OSCCTRL ,Peripheral OSCCTRL write protection status" "Not protected,Protected"
newline
bitfld.long 0x00 3. " RSTC ,Peripheral RSTC write protection status" "Not protected,Protected"
bitfld.long 0x00 2. " MCLK ,Peripheral MCLK write protection status" "Not protected,Protected"
bitfld.long 0x00 1. " PM ,Peripheral PM write protection status" "Not protected,Protected"
bitfld.long 0x00 0. " PAC ,Peripheral PAC write protection status" "Not protected,Protected"
line.long 0x04 "STATUSB,Peripheral Write Protection Status B"
bitfld.long 0x04 4. " MTB ,Peripheral MTB write protection status" "Not protected,Protected"
bitfld.long 0x04 3. " DMAC ,Peripheral DMAC write protection status" "Not protected,Protected"
bitfld.long 0x04 2. " NVMCTRL ,Peripheral NVMCTRL write protection status" "Not protected,Protected"
bitfld.long 0x04 1. " DSU ,Peripheral DSU write protection status" "Not protected,Protected"
newline
bitfld.long 0x04 0. " PO ,Peripheral PORT write protection status" "Not protected,Protected"
line.long 0x08 "STATUSC,Peripheral Write Protection Status C"
bitfld.long 0x08 23. " CCL ,Peripheral EVSYS write protection status" "Not protected,Protected"
bitfld.long 0x08 22. " PTC ,Peripheral EVSYS write protection status" "Not protected,Protected"
newline
sif cpuis("ATSAMC21*")
bitfld.long 0x08 21. " DAC ,Peripheral DAC write protection status" "Not protected,Protected"
newline
endif
bitfld.long 0x08 20. " AC ,Peripheral AC write protection status" "Not protected,Protected"
newline
sif cpuis("ATSAMC21*")
bitfld.long 0x08 19. " SDADC ,Peripheral SDADC write protection status" "Not protected,Protected"
bitfld.long 0x08 18. " ADC1 ,Peripheral ADC1 write protection status" "Not protected,Protected"
newline
endif
bitfld.long 0x08 17. " ADC0 ,Peripheral ADC0 write protection status" "Not protected,Protected"
bitfld.long 0x08 16. " TC4 ,Peripheral TC4 write protection status" "Not protected,Protected"
bitfld.long 0x08 15. " TC3 ,Peripheral TC3 write protection status" "Not protected,Protected"
newline
bitfld.long 0x08 14. " TC2 ,Peripheral TC2 write protection status" "Not protected,Protected"
bitfld.long 0x08 13. " TC1 ,Peripheral TC1 write protection status" "Not protected,Protected"
bitfld.long 0x08 12. " TC0 ,Peripheral TC0 write protection status" "Not protected,Protected"
newline
bitfld.long 0x08 11. " TCC2 ,Peripheral TCC2 write protection status" "Not protected,Protected"
bitfld.long 0x08 10. " TCC1 ,Peripheral TCC1 write protection status" "Not protected,Protected"
bitfld.long 0x08 9. " TCC0 ,Peripheral TCC0 write protection status" "Not protected,Protected"
newline
sif cpuis("ATSAMC21*")
bitfld.long 0x08 8. " CAN1 ,Peripheral CAN1 write protection status" "Not protected,Protected"
bitfld.long 0x08 7. " CAN0 ,Peripheral CAN0 write protection status" "Not protected,Protected"
newline
endif
bitfld.long 0x08 6. " SERCOM5 ,Peripheral SERCOM5 write protection status" "Not protected,Protected"
bitfld.long 0x08 5. " SERCOM4 ,Peripheral SERCOM4 write protection status" "Not protected,Protected"
bitfld.long 0x08 4. " SERCOM3 ,Peripheral SERCOM3 write protection status" "Not protected,Protected"
newline
bitfld.long 0x08 3. " SERCOM2 ,Peripheral SERCOM2 write protection status" "Not protected,Protected"
bitfld.long 0x08 2. " SERCOM1 ,Peripheral SERCOM1 write protection status" "Not protected,Protected"
bitfld.long 0x08 1. " SERCOM0 ,Peripheral SERCOM0 write protection status" "Not protected,Protected"
bitfld.long 0x08 0. " EVSYS ,Peripheral EVSYS write protection status" "Not protected,Protected"
line.long 0x0C "STATUSD,Peripheral Write Protection Status D"
bitfld.long 0x0C 4. " TC7 ,Peripheral TC7 write protection status" "Not protected,Protected"
bitfld.long 0x0C 3. " TC6 ,Peripheral TC6 write protection status" "Not protected,Protected"
bitfld.long 0x0C 2. " TC5 ,Peripheral TC5 write protection status" "Not protected,Protected"
bitfld.long 0x0C 1. " SERCOM7 ,Peripheral SERCOM7 write protection status" "Not protected,Protected"
newline
bitfld.long 0x0C 0. " SERCOM6 ,Peripheral SERCOM6 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 "DIVAS (Divide and Square Root Accelerator)"
base ad:0x48000000
width 11.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control Register"
bitfld.byte 0x00 1. " DLZ ,Disable leading zero optimization" "No,Yes"
bitfld.byte 0x00 0. " SIGNED ,Signed division enable" "Disabled,Enabled"
group.byte 0x04++0x00
line.byte 0x00 "STATUS,Status Register"
eventfld.byte 0x00 1. " DBZ ,Divide-by-zero" "Not occurred,Occurred"
rbitfld.byte 0x00 0. " BUSY ,DIVAS accelerator busy" "Idle,Busy"
group.long 0x08++0x07
line.long 0x00 "DIVIDEND,DIVIDEND Register"
line.long 0x04 "DIVISOR,DIVISOR Register"
rgroup.long 0x10++0x07
line.long 0x00 "RESULT,RESULT Register"
line.long 0x04 "REMAINDER,REMAINDER Register"
group.long 0x18++0x03
line.long 0x00 "SQRNUM,Square Root Input Register"
width 0x0B
tree.end
tree "GCLK (Generic Clock Controller)"
base ad:0x40001C00
width 10.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.long 0x04++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 9. " GENCTRL[7] ,Generator control 7 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 8. " [6] ,Generator control 6 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 7. " [5] ,Generator control 5 synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " [4] ,Generator control 4 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " [3] ,Generator control 3 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 4. " [2] ,Generator control 2 synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " [1] ,Generator control 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " [0] ,Generator control 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
tree "Generic Generators"
group.long 0x20++0x03
line.long 0x00 "GENCTRL0,Generator 0 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" "GENCTRL0.DIV,2^(GENCTRL0.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x24++0x03
line.long 0x00 "GENCTRL1,Generator 1 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" "GENCTRL1.DIV,2^(GENCTRL1.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x28++0x03
line.long 0x00 "GENCTRL2,Generator 2 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL2.DIV,2^(GENCTRL2.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x2C++0x03
line.long 0x00 "GENCTRL3,Generator 3 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL3.DIV,2^(GENCTRL3.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x30++0x03
line.long 0x00 "GENCTRL4,Generator 4 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL4.DIV,2^(GENCTRL4.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x34++0x03
line.long 0x00 "GENCTRL5,Generator 5 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL5.DIV,2^(GENCTRL5.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x38++0x03
line.long 0x00 "GENCTRL6,Generator 6 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL6.DIV,2^(GENCTRL6.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x3C++0x03
line.long 0x00 "GENCTRL7,Generator 7 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL7.DIV,2^(GENCTRL7.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
group.long 0x40++0x03
line.long 0x00 "GENCTRL8,Generator 8 Control"
hexmask.long.byte 0x00 16.--20. 1. " DIV ,Division factor"
bitfld.long 0x00 13. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 12. " DIVSEL ,Divide selection" "GENCTRL8.DIV,2^(GENCTRL8.DIV+1)"
bitfld.long 0x00 11. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 10. " OOV ,Output off value" "Low,High"
bitfld.long 0x00 9. " IDC ,Improve duty cycle" "Not improved,Improved"
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,OSC48M,DPLL96M,?..."
tree.end
width 11.
tree "Peripherals Channels Control"
group.long 0x80++0x03
line.long 0x00 "PCHCTRL0,Peripheral Channel 0 (DPLL) Control"
bitfld.long 0x00 7. " WRTLOCK ,Write lock" "Not 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,?..."
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x84))&0x80)==0x80)
rgroup.long 0x84++0x03
line.long 0x00 "PCHCTRL1,Peripheral Channel 1 (DPLL_32K) 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 1 (DPLL_32K) 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
else
if (((per.l(ad:0x40001C00+0x84))&0x80)==0x80)
rgroup.long 0x84++0x03
line.long 0x00 "PCHCTRL1,Peripheral Channel 1 (DPLL_32K) 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 1 (DPLL_32K) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x88))&0x80)==0x80)
rgroup.long 0x88++0x03
line.long 0x00 "PCHCTRL2,Peripheral Channel 2 (EIC) 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 2 (EIC) 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
else
if (((per.l(ad:0x40001C00+0x88))&0x80)==0x80)
rgroup.long 0x88++0x03
line.long 0x00 "PCHCTRL2,Peripheral Channel 2 (EIC) 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 2 (EIC) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x8C))&0x80)==0x80)
rgroup.long 0x8C++0x03
line.long 0x00 "PCHCTRL3,Peripheral Channel 3 (FREQM_MSR) 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 3 (FREQM_MSR) 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
else
if (((per.l(ad:0x40001C00+0x8C))&0x80)==0x80)
rgroup.long 0x8C++0x03
line.long 0x00 "PCHCTRL3,Peripheral Channel 3 (FREQM_MSR) 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 3 (FREQM_MSR) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x90))&0x80)==0x80)
rgroup.long 0x90++0x03
line.long 0x00 "PCHCTRL4,Peripheral Channel 4 (FREQM_REF) 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 4 (FREQM_REF) 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
else
if (((per.l(ad:0x40001C00+0x90))&0x80)==0x80)
rgroup.long 0x90++0x03
line.long 0x00 "PCHCTRL4,Peripheral Channel 4 (FREQM_REF) 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 4 (FREQM_REF) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0x94))&0x80)==0x80)
rgroup.long 0x94++0x03
line.long 0x00 "PCHCTRL5,Peripheral Channel 5 (TSENS) 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 5 (TSENS) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x98))&0x80)==0x80)
rgroup.long 0x98++0x03
line.long 0x00 "PCHCTRL6,Peripheral Channel 6 (EVSYS_CHANNEL_0) 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 6 (EVSYS_CHANNEL_0) 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
else
if (((per.l(ad:0x40001C00+0x98))&0x80)==0x80)
rgroup.long 0x98++0x03
line.long 0x00 "PCHCTRL6,Peripheral Channel 6 (EVSYS_CHANNEL_0) 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 6 (EVSYS_CHANNEL_0) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x9C))&0x80)==0x80)
rgroup.long 0x9C++0x03
line.long 0x00 "PCHCTRL7,Peripheral Channel 7 (EVSYS_CHANNEL_1) 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 7 (EVSYS_CHANNEL_1) 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
else
if (((per.l(ad:0x40001C00+0x9C))&0x80)==0x80)
rgroup.long 0x9C++0x03
line.long 0x00 "PCHCTRL7,Peripheral Channel 7 (EVSYS_CHANNEL_1) 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 7 (EVSYS_CHANNEL_1) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xA0))&0x80)==0x80)
rgroup.long 0xA0++0x03
line.long 0x00 "PCHCTRL8,Peripheral Channel 8 (EVSYS_CHANNEL_2) 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 8 (EVSYS_CHANNEL_2) 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
else
if (((per.l(ad:0x40001C00+0xA0))&0x80)==0x80)
rgroup.long 0xA0++0x03
line.long 0x00 "PCHCTRL8,Peripheral Channel 8 (EVSYS_CHANNEL_2) 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 8 (EVSYS_CHANNEL_2) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xA4))&0x80)==0x80)
rgroup.long 0xA4++0x03
line.long 0x00 "PCHCTRL9,Peripheral Channel 9 (EVSYS_CHANNEL_3) 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 9 (EVSYS_CHANNEL_3) 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
else
if (((per.l(ad:0x40001C00+0xA4))&0x80)==0x80)
rgroup.long 0xA4++0x03
line.long 0x00 "PCHCTRL9,Peripheral Channel 9 (EVSYS_CHANNEL_3) 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 9 (EVSYS_CHANNEL_3) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xA8))&0x80)==0x80)
rgroup.long 0xA8++0x03
line.long 0x00 "PCHCTRL10,Peripheral Channel 10 (EVSYS_CHANNEL_4) 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 10 (EVSYS_CHANNEL_4) 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
else
if (((per.l(ad:0x40001C00+0xA8))&0x80)==0x80)
rgroup.long 0xA8++0x03
line.long 0x00 "PCHCTRL10,Peripheral Channel 10 (EVSYS_CHANNEL_4) 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 10 (EVSYS_CHANNEL_4) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xAC))&0x80)==0x80)
rgroup.long 0xAC++0x03
line.long 0x00 "PCHCTRL11,Peripheral Channel 11 (EVSYS_CHANNEL_5) 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 11 (EVSYS_CHANNEL_5) 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
else
if (((per.l(ad:0x40001C00+0xAC))&0x80)==0x80)
rgroup.long 0xAC++0x03
line.long 0x00 "PCHCTRL11,Peripheral Channel 11 (EVSYS_CHANNEL_5) 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 11 (EVSYS_CHANNEL_5) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xB0))&0x80)==0x80)
rgroup.long 0xB0++0x03
line.long 0x00 "PCHCTRL12,Peripheral Channel 12 (EVSYS_CHANNEL_6) 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 12 (EVSYS_CHANNEL_6) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xB4))&0x80)==0x80)
rgroup.long 0xB4++0x03
line.long 0x00 "PCHCTRL13,Peripheral Channel 13 (EVSYS_CHANNEL_7) 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 13 (EVSYS_CHANNEL_7) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xB8))&0x80)==0x80)
rgroup.long 0xB8++0x03
line.long 0x00 "PCHCTRL14,Peripheral Channel 14 (EVSYS_CHANNEL_8) 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 14 (EVSYS_CHANNEL_8) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xBC))&0x80)==0x80)
rgroup.long 0xBC++0x03
line.long 0x00 "PCHCTRL15,Peripheral Channel 15 (EVSYS_CHANNEL_9) 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 15 (EVSYS_CHANNEL_9) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xC0))&0x80)==0x80)
rgroup.long 0xC0++0x03
line.long 0x00 "PCHCTRL16,Peripheral Channel 16 (EVSYS_CHANNEL_10) 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 16 (EVSYS_CHANNEL_10) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xC4))&0x80)==0x80)
rgroup.long 0xC4++0x03
line.long 0x00 "PCHCTRL17,Peripheral Channel 17 (EVSYS_CHANNEL_11) 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 17 (EVSYS_CHANNEL_11) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xC8))&0x80)==0x80)
rgroup.long 0xC8++0x03
line.long 0x00 "PCHCTRL18,Peripheral Channel 18 (SERCOM[0-3]_SLOW) 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 18 (SERCOM[0-3]_SLOW) 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
else
if (((per.l(ad:0x40001C00+0xC8))&0x80)==0x80)
rgroup.long 0xC8++0x03
line.long 0x00 "PCHCTRL18,Peripheral Channel 18 (SERCOM[0-3]_SLOW) 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 18 (SERCOM[0-3]_SLOW) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xCC))&0x80)==0x80)
rgroup.long 0xCC++0x03
line.long 0x00 "PCHCTRL19,Peripheral Channel 19 (SERCOM0_CORE) 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 19 (SERCOM0_CORE) 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
else
if (((per.l(ad:0x40001C00+0xCC))&0x80)==0x80)
rgroup.long 0xCC++0x03
line.long 0x00 "PCHCTRL19,Peripheral Channel 19 (SERCOM0_CORE) 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 19 (SERCOM0_CORE) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xD0))&0x80)==0x80)
rgroup.long 0xD0++0x03
line.long 0x00 "PCHCTRL20,Peripheral Channel 20 (SERCOM1_CORE) 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 20 (SERCOM1_CORE) 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
else
if (((per.l(ad:0x40001C00+0xD0))&0x80)==0x80)
rgroup.long 0xD0++0x03
line.long 0x00 "PCHCTRL20,Peripheral Channel 20 (SERCOM1_CORE) 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 20 (SERCOM1_CORE) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xD4))&0x80)==0x80)
rgroup.long 0xD4++0x03
line.long 0x00 "PCHCTRL21,Peripheral Channel 21 (SERCOM2_CORE) 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 21 (SERCOM2_CORE) 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
else
if (((per.l(ad:0x40001C00+0xD4))&0x80)==0x80)
rgroup.long 0xD4++0x03
line.long 0x00 "PCHCTRL21,Peripheral Channel 21 (SERCOM2_CORE) 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 21 (SERCOM2_CORE) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xD8))&0x80)==0x80)
rgroup.long 0xD8++0x03
line.long 0x00 "PCHCTRL22,Peripheral Channel 22 (SERCOM3_CORE) 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 22 (SERCOM3_CORE) 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
else
if (((per.l(ad:0x40001C00+0xD8))&0x80)==0x80)
rgroup.long 0xD8++0x03
line.long 0x00 "PCHCTRL22,Peripheral Channel 22 (SERCOM3_CORE) 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 22 (SERCOM3_CORE) 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
endif
sif cpuis("ATSAMC20N*")
else
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xE0))&0x80)==0x80)
rgroup.long 0xE0++0x03
line.long 0x00 "PCHCTRL24,Peripheral Channel 24 (SERCOM5_SLOW) 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 24 (SERCOM5_SLOW) 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
else
if (((per.l(ad:0x40001C00+0xE0))&0x80)==0x80)
rgroup.long 0xE0++0x03
line.long 0x00 "PCHCTRL24,Peripheral Channel 24 (SERCOM5_SLOW) 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 24 (SERCOM5_SLOW) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xE4))&0x80)==0x80)
rgroup.long 0xE4++0x03
line.long 0x00 "PCHCTRL25,Peripheral Channel 25 (SERCOM5_CORE) 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 25 (SERCOM5_CORE) 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
else
if (((per.l(ad:0x40001C00+0xE4))&0x80)==0x80)
rgroup.long 0xE4++0x03
line.long 0x00 "PCHCTRL25,Peripheral Channel 25 (SERCOM5_CORE) 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 25 (SERCOM5_CORE) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xE8))&0x80)==0x80)
rgroup.long 0xE8++0x03
line.long 0x00 "PCHCTRL26,Peripheral Channel 26 (CAN0) 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 26 (CAN0) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0xEC))&0x80)==0x80)
rgroup.long 0xEC++0x03
line.long 0x00 "PCHCTRL27,Peripheral Channel 27 (CAN1) 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 27 (CAN1) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xF0))&0x80)==0x80)
rgroup.long 0xF0++0x03
line.long 0x00 "PCHCTRL28,Peripheral Channel 28 (TCC[0-1]) 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 28 (TCC[0-1]) 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
else
if (((per.l(ad:0x40001C00+0xF0))&0x80)==0x80)
rgroup.long 0xF0++0x03
line.long 0x00 "PCHCTRL28,Peripheral Channel 28 (TCC[0-1]) 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 28 (TCC[0-1]) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xF4))&0x80)==0x80)
rgroup.long 0xF4++0x03
line.long 0x00 "PCHCTRL29,Peripheral Channel 29 (TCC2) 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 29 (TCC2) 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
else
if (((per.l(ad:0x40001C00+0xF4))&0x80)==0x80)
rgroup.long 0xF4++0x03
line.long 0x00 "PCHCTRL29,Peripheral Channel 29 (TCC2) 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 29 (TCC2) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xF8))&0x80)==0x80)
rgroup.long 0xF8++0x03
line.long 0x00 "PCHCTRL30,Peripheral Channel 30 (TC[0-1]) 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 30 (TC[0-1]) 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
else
if (((per.l(ad:0x40001C00+0xF8))&0x80)==0x80)
rgroup.long 0xF8++0x03
line.long 0x00 "PCHCTRL30,Peripheral Channel 30 (TC[0-1]) 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 30 (TC[0-1]) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0xFC))&0x80)==0x80)
rgroup.long 0xFC++0x03
line.long 0x00 "PCHCTRL31,Peripheral Channel 31 (TC[2-3]) 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 31 (TC[2-3]) 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
else
if (((per.l(ad:0x40001C00+0xFC))&0x80)==0x80)
rgroup.long 0xFC++0x03
line.long 0x00 "PCHCTRL31,Peripheral Channel 31 (TC[2-3]) 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 31 (TC[2-3]) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x100))&0x80)==0x80)
rgroup.long 0x100++0x03
line.long 0x00 "PCHCTRL32,Peripheral Channel 32 (TC4) 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 32 (TC4) 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
else
if (((per.l(ad:0x40001C00+0x100))&0x80)==0x80)
rgroup.long 0x100++0x03
line.long 0x00 "PCHCTRL32,Peripheral Channel 32 (TC4) 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 32 (TC4) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x104))&0x80)==0x80)
rgroup.long 0x104++0x03
line.long 0x00 "PCHCTRL33,Peripheral Channel 33 (ADC0) 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 33 (ADC0) 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
else
if (((per.l(ad:0x40001C00+0x104))&0x80)==0x80)
rgroup.long 0x104++0x03
line.long 0x00 "PCHCTRL33,Peripheral Channel 33 (ADC0) 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 33 (ADC0) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0x108))&0x80)==0x80)
rgroup.long 0x108++0x03
line.long 0x00 "PCHCTRL34,Peripheral Channel 34 (ADC1) 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 34 (ADC1) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0x10C))&0x80)==0x80)
rgroup.long 0x10C++0x03
line.long 0x00 "PCHCTRL35,Peripheral Channel 35 (SDADC) 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 0x10C++0x03
line.long 0x00 "PCHCTRL35,Peripheral Channel 35 (SDADC) 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
endif
sif cpuis("ATSAMC20N*")
else
if (((per.l(ad:0x40001C00+0x110))&0x80)==0x80)
rgroup.long 0x110++0x03
line.long 0x00 "PCHCTRL36,Peripheral Channel 36 (DAC) 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 0x110++0x03
line.long 0x00 "PCHCTRL36,Peripheral Channel 36 (DAC) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x114))&0x80)==0x80)
rgroup.long 0x114++0x03
line.long 0x00 "PCHCTRL37,Peripheral Channel 37 (PTC) 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 0x114++0x03
line.long 0x00 "PCHCTRL37,Peripheral Channel 37 (PTC) 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
else
if (((per.l(ad:0x40001C00+0x114))&0x80)==0x80)
rgroup.long 0x114++0x03
line.long 0x00 "PCHCTRL37,Peripheral Channel 37 (PTC) 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 0x114++0x03
line.long 0x00 "PCHCTRL37,Peripheral Channel 37 (PTC) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x118))&0x80)==0x80)
rgroup.long 0x118++0x03
line.long 0x00 "PCHCTRL38,Peripheral Channel 38 (CCL) 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 0x118++0x03
line.long 0x00 "PCHCTRL38,Peripheral Channel 38 (CCL) 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
else
if (((per.l(ad:0x40001C00+0x118))&0x80)==0x80)
rgroup.long 0x118++0x03
line.long 0x00 "PCHCTRL38,Peripheral Channel 38 (CCL) 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 0x118++0x03
line.long 0x00 "PCHCTRL38,Peripheral Channel 38 (CCL) 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
endif
sif cpuis("ATSAMC20N*")
else
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x120))&0x80)==0x80)
rgroup.long 0x120++0x03
line.long 0x00 "PCHCTRL40,Peripheral Channel 40 (AC) 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 0x120++0x03
line.long 0x00 "PCHCTRL40,Peripheral Channel 40 (AC) 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
else
if (((per.l(ad:0x40001C00+0x120))&0x80)==0x80)
rgroup.long 0x120++0x03
line.long 0x00 "PCHCTRL40,Peripheral Channel 40 (AC) 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 0x120++0x03
line.long 0x00 "PCHCTRL40,Peripheral Channel 40 (AC) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x124))&0x80)==0x80)
rgroup.long 0x124++0x03
line.long 0x00 "PCHCTRL41,Peripheral Channel 41 (SERCOM6_CORE) 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 0x124++0x03
line.long 0x00 "PCHCTRL41,Peripheral Channel 41 (SERCOM6_CORE) 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
else
if (((per.l(ad:0x40001C00+0x124))&0x80)==0x80)
rgroup.long 0x124++0x03
line.long 0x00 "PCHCTRL41,Peripheral Channel 41 (SERCOM6_CORE) 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 0x124++0x03
line.long 0x00 "PCHCTRL41,Peripheral Channel 41 (SERCOM6_CORE) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x128))&0x80)==0x80)
rgroup.long 0x128++0x03
line.long 0x00 "PCHCTRL42,Peripheral Channel 42 (SERCOM7_CORE) 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 0x128++0x03
line.long 0x00 "PCHCTRL42,Peripheral Channel 42 (SERCOM7_CORE) 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
else
if (((per.l(ad:0x40001C00+0x128))&0x80)==0x80)
rgroup.long 0x128++0x03
line.long 0x00 "PCHCTRL42,Peripheral Channel 42 (SERCOM7_CORE) 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 0x128++0x03
line.long 0x00 "PCHCTRL42,Peripheral Channel 42 (SERCOM7_CORE) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x12C))&0x80)==0x80)
rgroup.long 0x12C++0x03
line.long 0x00 "PCHCTRL43,Peripheral Channel 43 (TC5) 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 0x12C++0x03
line.long 0x00 "PCHCTRL43,Peripheral Channel 43 (TC5) 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
else
if (((per.l(ad:0x40001C00+0x12C))&0x80)==0x80)
rgroup.long 0x12C++0x03
line.long 0x00 "PCHCTRL43,Peripheral Channel 43 (TC5) 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 0x12C++0x03
line.long 0x00 "PCHCTRL43,Peripheral Channel 43 (TC5) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x130))&0x80)==0x80)
rgroup.long 0x130++0x03
line.long 0x00 "PCHCTRL44,Peripheral Channel 44 (TC6) 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 0x130++0x03
line.long 0x00 "PCHCTRL44,Peripheral Channel 44 (TC6) 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
else
if (((per.l(ad:0x40001C00+0x130))&0x80)==0x80)
rgroup.long 0x130++0x03
line.long 0x00 "PCHCTRL44,Peripheral Channel 44 (TC6) 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 0x130++0x03
line.long 0x00 "PCHCTRL44,Peripheral Channel 44 (TC6) 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
endif
sif cpuis("ATSAMC20N*")
if (((per.l(ad:0x40001C00+0x134))&0x80)==0x80)
rgroup.long 0x134++0x03
line.long 0x00 "PCHCTRL45,Peripheral Channel 45 (TC7) 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 0x134++0x03
line.long 0x00 "PCHCTRL45,Peripheral Channel 45 (TC7) 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
else
if (((per.l(ad:0x40001C00+0x134))&0x80)==0x80)
rgroup.long 0x134++0x03
line.long 0x00 "PCHCTRL45,Peripheral Channel 45 (TC7) 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 0x134++0x03
line.long 0x00 "PCHCTRL45,Peripheral Channel 45 (TC7) 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
endif
tree.end
width 0x0B
tree.end
tree "MCLK (Main Clock)"
base ad:0x40000800
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/Clear"
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 Register"
eventfld.byte 0x00 0. " CKRDY ,Clock ready interrupt status" "Not ready,Ready"
group.byte 0x05++0x00
line.byte 0x00 "CPUDIV,CPU Clock Division Register"
group.long 0x10++0x0B
line.long 0x00 "AHBMASK,AHB Mask Register"
sif cpuis("ATSAMC21*")
bitfld.long 0x00 13. " APBD ,APBD AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 12. " DIVAS ,DIVAS AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 10. " PAC ,PAC AHB clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 9. " CAN1 ,CAN 1 AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CAN0 ,CAN 0 AHB clock enable" "Disabled,Enabled"
newline
else
bitfld.long 0x00 13. " APBD ,APBD AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 12. " DIVAS ,DIVAS AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 10. " PAC ,PAC AHB clock enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x00 7. " DMAC ,DMAC AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 6. " HSRAM ,HMCRAMCHS AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 5. " NVMCTRL ,NVMCTRL AHB clock enable" "Disabled,Enabled"
bitfld.long 0x00 4. " HMATRIXHS ,HMATRIXHS AHB clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " DSU ,DSU 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"
bitfld.long 0x00 0. " APBA ,APBA AHB clock enable" "Disabled,Enabled"
line.long 0x04 "APBAMASK,APBA Mask Register"
sif cpuis("ATSAMC21*")
bitfld.long 0x04 12. " TSENS ,TSENS APBA clock enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x04 11. " FREQM ,FREQM APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 10. " EIC ,EIC APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 9. " RTC ,RTC APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 8. " WDT ,WDT APBA clock enable" "Disabled,Enabled"
newline
bitfld.long 0x04 7. " GCLK ,GCLK APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 6. " SUPC ,SUPC APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 5. " OSC32KCTRL ,OSC32KCTRL APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 4. " OSCCTRL ,OSCCTRL APBA clock enable" "Disabled,Enabled"
newline
bitfld.long 0x04 3. " RSTC ,RSTC APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 2. " MCLK ,MCLK APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 1. " PM ,PM APBA clock enable" "Disabled,Enabled"
bitfld.long 0x04 0. " PAC ,PAC APBA clock enable" "Disabled,Enabled"
line.long 0x08 "APBBMASK,APBB Mask Register"
bitfld.long 0x08 5. " HMATRIXHS ,HMATRIXHS APBB clock enable" "Disabled,Enabled"
bitfld.long 0x08 2. " NVMCTRL ,NVMCTRL APBB clock enable" "Disabled,Enabled"
bitfld.long 0x08 1. " DSU ,DSU APBB clock enable" "Disabled,Enabled"
bitfld.long 0x08 0. " PORT ,PORT APBB clock enable" "Disabled,Enabled"
sif cpuis("ATSAMC21*")
group.long 0x1C++0x3
line.long 0x00 "APBCMASK,APBC Mask Register"
bitfld.long 0x00 23. " CCL ,CCL APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 22. " PTC ,PTC APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 21. " DAC ,DAC APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 20. " AC ,AC APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " SDADC ,SDADC APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 18. " ADC1 ,ADC1 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 17. " ADC0 ,ADC0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TC4 ,TC4 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " TC3 ,TC3 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TC2 ,TC2 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TC1 ,TC1 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 12. " TC0 ,TC0 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " TCC2 ,TCC2 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 10. " TCC1 ,TCC1 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TCC0 ,TCC0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SERCOM5 ,SERCOM5 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " SERCOM4 ,SERCOM4 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 4. " SERCOM3 ,SERCOM3 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 3. " SERCOM2 ,SERCOM2 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 2. " SERCOM1 ,SERCOM1 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " SERCOM0 ,SERCOM0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 0. " EVSYS ,EVSYS APBC clock enable" "Disabled,Enabled"
else
group.long 0x1C++0x3
line.long 0x00 "APBCMASK,APBC Mask Register"
bitfld.long 0x00 23. " CCL ,CCL APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 22. " PTC ,PTC APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 20. " AC ,AC APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 17. " ADC0 ,ADC0 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 16. " TC4 ,TC4 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 15. " TC3 ,TC3 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TC2 ,TC2 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TC1 ,TC1 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 12. " TC0 ,TC0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TCC0 ,TCC0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SERCOM5 ,SERCOM5 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " SERCOM4 ,SERCOM4 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 4. " SERCOM3 ,SERCOM3 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 3. " SERCOM2 ,SERCOM2 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 2. " SERCOM1 ,SERCOM1 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 1. " SERCOM0 ,SERCOM0 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 0. " EVSYS ,EVSYS APBC clock enable" "Disabled,Enabled"
endif
group.long 0x20++0x3
line.long 0x00 "APBDMASK,APBD Mask Register"
bitfld.long 0x00 4. " TC7 ,TC7 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 3. " TC6 ,TC6 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 2. " TC5 ,TC5 APBC clock enable" "Disabled,Enabled"
bitfld.long 0x00 1. " SERCOM7 ,SERCOM7 APBC clock enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SERCOM6 ,SERCOM6 APBC clock enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "RSTC (Reset Controller)"
base ad:0x40000C00
width 8.
rgroup.byte 0x00++0x00
line.byte 0x00 "RCAUSE,Reset Cause Register"
bitfld.byte 0x00 6. " SYST ,System reset request" "Not requested,Requested"
bitfld.byte 0x00 5. " WDT ,Watchdog reset" "Not occurred,Occurred"
bitfld.byte 0x00 4. " EXT ,External reset" "Not occurred,Occurred"
bitfld.byte 0x00 2. " BODVDD ,VDD brown out detector reset" "Not occurred,Occurred"
bitfld.byte 0x00 1. " BODCORE ,CORE brown out detector reset" "Not occurred,Occurred"
bitfld.byte 0x00 0. " POR ,Power on reset" "Not occurred,Occurred"
width 0x0B
tree.end
tree "PM (Power Manager)"
base ad:0x40000400
width 10.
group.byte 0x01++0x00
line.byte 0x00 "SLEEPCFG,Sleep Configuration"
bitfld.byte 0x00 0.--2. " SLEEPMODE ,Sleep mode" ",,Idle,,Standby,?..."
group.word 0x08++0x01
line.word 0x00 "STDBYCFG,Standby Configuration"
bitfld.word 0x00 10. " BBIASHS ,Back bias for HMCRAMCHS" "No back biasing,Standby back biasing"
textline " "
bitfld.word 0x00 6.--7. " VREGSMOD ,VREG switching mode" "Automatic,Performance,Low power consumption,?..."
width 0x0B
tree.end
tree "OSCCTRL (Oscillators Controller)"
base ad:0x40001000
width 16.
group.long 0x04++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DPLLLDRTO ,DPLL loop divider ratio update complete interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " DPLLLTO ,DPLL lock timeout interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " DPLLLCKF ,DPLL lock fall interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " DPLLLCKR ,DPLL lock rise interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " OSC48MRDY ,OSC48M ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " CLKFAIL ,Clock failure interrupt enable" "Disabled,Enabled"
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 11. " DPLLLDRTO ,DPLL loop divider ratio update complete" "No interrupt,Interrupt"
eventfld.long 0x00 10. " DPLLLTO ,DPLL lock timeout" "No interrupt,Interrupt"
eventfld.long 0x00 9. " DPLLLCKF ,DPLL lock fall" "No interrupt,Interrupt"
eventfld.long 0x00 8. " DPLLLCKR ,DPLL lock rise" "No interrupt,Interrupt"
textline " "
eventfld.long 0x00 4. " OSC48MRDY ,OSC48M ready" "No interrupt,Interrupt"
eventfld.long 0x00 1. " CLKFAIL ,XOSC failure detection" "No interrupt,Interrupt"
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"
bitfld.long 0x00 8. " DPLLLCKR ,DPLL lock rise" "Not detected,Detected"
textline " "
bitfld.long 0x00 4. " OSC48MRDY ,OSC48M ready" "Not ready,Ready"
bitfld.long 0x00 2. " CLKSW ,XOSC clock switch" "Not switched,Switched"
bitfld.long 0x00 1. " CLKFAIL ,XOSC clock failure" "Not detected,Detected"
bitfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Not Ready,Ready"
group.word 0x10++0x01
line.word 0x00 "XOSCCTRL,External Multipurpose Crystal Oscillator (XOSC) Control"
bitfld.word 0x00 12.--15. " STARTUP ,Start-up time for external multipurpose crystal oscillator" "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,?..."
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
textline " "
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.word 0x00 4. " SWBACK ,Clock switch back" "Disabled,Enabled"
bitfld.word 0x00 3. " CFDEN ,Clock failure detector enable" "Disabled,Enabled"
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
group.byte 0x12++0x04
line.byte 0x00 "CFDPRESC,Clock Failure Detector Prescaler"
bitfld.byte 0x00 0.--2. " CFDPRESC ,Clock failure detector prescaler" "OSC48M,OSC48M/2,OSC48M/4,OSC48M/8,OSC48M/16,OSC48M/32,OSC48M/64,OSC48M/128"
line.byte 0x01 "EVCTRL,Event Control"
bitfld.byte 0x01 0. " CFDEO ,Clock failure detector event output enable" "Disabled,Enabled"
line.byte 0x02 "OSC48MCTRL,48MHz Internal Oscillator Control"
bitfld.byte 0x02 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.byte 0x02 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.byte 0x02 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
line.byte 0x03 "OSC48MDIV,48MHz Internal Oscillator Divider"
bitfld.byte 0x03 0.--3. " DIV ,Oscillator divider selection" "48MHz,24MHz,16MHz,12MHz,9.6MHz,8MHz,6.86MHz,6MHz,5.33MHz,4.8MHz,4.36MHz,4MHz,3.69MHz,3.43MHz,3.2MHz,3MHz"
line.byte 0x04 "OSC48MSTUP,48MHz Internal Oscillator Startup"
bitfld.byte 0x04 0.--2. " STARTUP ,Oscillator startup delay (clock cycles)" "8,16,32,64,128,256,512,1024"
group.long 0x18++0x03
line.long 0x00 "OSC48MSYNCBUSY,48MHz Internal Oscillator Synchronization Busy"
bitfld.long 0x00 2. " OSC48MDIV ,Oscillator divider synchronization status" "Done,Ongoing"
group.byte 0x1C++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" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,DPLL Enable" "Disabled,Enabled"
group.long 0x20++0x07
line.long 0x00 "DPLLRATIO,DPLL Ratio Control"
bitfld.long 0x00 16.--19. " LDRFRAC ,Loop divider ratio fractional part" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.word 0x00 0.--11. 1. " LDR ,Loop divider ratio"
line.long 0x04 "DPLLCTRLB,DPLL Control B"
hexmask.long.word 0x04 16.--26. 1. " DIV ,Clock divider"
bitfld.long 0x04 12. " LBYPASS ,Lock bypass" "DPLL logic,Always asserted"
bitfld.long 0x04 8.--10. " LTIME ,Lock time" "No time-out,,,,8MS,9MS,10MS,11MS"
textline " "
bitfld.long 0x04 4.--5. " REFCLK ,Reference clock selection" "XOSC32K,XOSC,GCLK,"
bitfld.long 0x04 3. " WUF ,Wake up fast" "Disabled,Enabled"
bitfld.long 0x04 2. " LPEN ,Low-power enable" "Disabled,Enabled"
textline " "
bitfld.long 0x04 0.--1. " FILTER ,Proportional integral filter selection" "Default,Low bandwidth,High bandwidth,High damping"
group.byte 0x28++0x00
line.byte 0x00 "DPLLPRESC,DPLL Prescaler"
bitfld.byte 0x00 0.--1. " PRESC ,Output clock prescaler" "/1,/2,/4,?..."
rgroup.byte 0x2C++0x00
line.byte 0x00 "DPLLSYNCBUSY,DPLL Synchronization Busy"
bitfld.byte 0x00 3. " DPLLPRESC ,DPLL prescaler synchronization status" "Done,In progress"
bitfld.byte 0x00 2. " DPLLRATIO ,DPLL loop divider ratio synchronization status" "Done,In progress"
bitfld.byte 0x00 1. " ENABLE ,DPLL enable synchronization status" "Done,In progress"
rgroup.byte 0x30++0x00
line.byte 0x00 "DPLLSTATUS,DPLL Status"
bitfld.byte 0x00 1. " CLKRDY ,Output clock ready" "Off,On"
bitfld.byte 0x00 0. " LOCK ,DPLL lock status" "Cleared,Asserted"
group.long 0x38++0x03
line.long 0x00 "CAL48M,OSC48M Calibration"
hexmask.long.byte 0x00 16.--21. 1. " TCAL ,Temperature calibration"
bitfld.long 0x00 8.--9. " FRANGE ,Frequency range" "0,1,2,3"
hexmask.long.byte 0x00 0.--5. 1. " FCAL ,Frequency calibration"
width 0x0B
tree.end
tree "OSC32KCTRL (32k Oscillators Controller)"
base ad:0x40001400
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:0x40001400+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:0x40001400+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:0x40001400+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:0x40001800
width 15.
group.long 0x04++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " BVDDSRDY ,BODVDD synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " BODVDDDET ,BODVDD detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " BODVDDRDY ,BODVDD ready interrupt enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x00 2. " BVDDSRDY ,BODVDD synchronization ready interrupt status and clear" "No interrupt,Interrupt"
eventfld.long 0x00 1. " BODVDDDET ,BODVDD detection interrupt status and clear" "No interrupt,Interrupt"
eventfld.long 0x00 0. " BODVDDRDY ,BODVDD ready interrupt status and clear" "No interrupt,Interrupt"
rgroup.long 0x0C++0x03
line.long 0x00 "STATUS,Status"
bitfld.long 0x00 2. " BVDDSRDY ,BODVDD synchronization ready" "Ongoing,Completed"
bitfld.long 0x00 1. " BODVDDDET ,BODVDD detection" "Not detected,Detected"
bitfld.long 0x00 0. " BODVDDRDY ,BODVDD ready" "Not ready,Ready"
if (((per.l(ad:0x40001800+0x10))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "BODVDD,VDD Brown-Out Detector Control"
bitfld.long 0x00 16.--21. " LEVEL ,BODVDD 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" "/2,/4,/8,/16,/32,/64,/128,/256,/512,/1024,/2048,/4096,/8192,/16384,/32768,/65536"
bitfld.long 0x00 8. " ACTCFG ,BODVDD configuration in active sleep mode" "Continuous,Sampling"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x00 5. " STDBYCFG ,BODVDD configuration in standby sleep mode" "Continuous,Sampling"
bitfld.long 0x00 3.--4. " ACTION ,BODVDD action" "None,Reset,Interrupt,?..."
newline
bitfld.long 0x00 2. " HYST ,Hysteresis enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,BODVDD enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "BODVDD,VDD Brown-Out Detector Control"
rbitfld.long 0x00 16.--21. " LEVEL ,BODVDD 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" "/2,/4,/8,/16,/32,/64,/128,/256,/512,/1024,/2048,/4096,/8192,/16384,/32768,/65536"
rbitfld.long 0x00 8. " ACTCFG ,BODVDD configuration in active sleep mode" "Continuous,Sampling"
newline
rbitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
rbitfld.long 0x00 5. " STDBYCFG ,BODVDD configuration in standby sleep mode" "Continuous,Sampling"
rbitfld.long 0x00 3.--4. " ACTION ,BODVDD action" "None,Reset,Interrupt,?..."
newline
rbitfld.long 0x00 2. " HYST ,Hysteresis enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,BODVDD enable" "Disabled,Enabled"
endif
group.long 0x18++0x07
line.long 0x00 "VREG,Voltage Regulator System Control"
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Low power mode,Normal mode"
bitfld.long 0x00 1. " ENABLE ,Voltage regulator enable" "Disabled,Enabled"
line.long 0x04 "VREF,Voltage References System Control"
bitfld.long 0x04 16.--19. " SEL ,Voltage reference selection" "1.024V,,2.048V,4.096V,?..."
bitfld.long 0x04 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.long 0x04 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
bitfld.long 0x04 2. " VREFOE ,Voltage reference output enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "WDT (Watchdog Timer)"
base ad:0x40002000
width 15.
if (((per.b(ad:0x40002000))&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:0x40002000))&0x80)==0x00)&&(((per.b(ad:0x40002000))&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:0x40002000))&0x80)==0x00)&&(((per.b(ad:0x40002000))&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:0x40002400
width 15.
if ((per.w(ad:0x40002400+0x00)&0x0C)==0x00)
if ((per.w(ad:0x40002400+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:0x40002400+0x00)&0x0C)==0x04)
if ((per.w(ad:0x40002400+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:0x40002400+0x00)&0x0C)==0x8)
if ((per.w(ad:0x40002400+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:0x40002400+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+0x18)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+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:0x40002400+0x20)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+0x20)&0x3C00000)==0x800000)
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+0x20)&0x3C00000)==(0x1000000||0x1800000||0x2400000||0x2C00000))
if ((per.w(ad:0x40002400+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:0x40002400+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:0x40002400+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
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)"
base ad:0x41004400
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
width 17.
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.w(ad:0x41004400))&0x06)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
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. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
sif (cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")||cpuis("ATSAMHA1G*"))
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
elif (((per.b(ad:0x41004400+0x0C))&0x01)==0x01)&&(((per.w(ad:0x41004400))&0x04)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
else
rgroup.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
else
if (((per.b(ad:0x41004400+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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
endif
else
if (((per.b(ad:0x41004400+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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
endif
group.long 0x04++0x03
line.long 0x00 "CRCDATAIN,CRC Data Input"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==0x04)
rgroup.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
in
endif
else
if (((per.b(ad:0x41004400+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
if (((per.w(ad:0x41004400+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 (CRC data input register is written)" "Not busy,Busy"
elif (((per.w(ad:0x41004400+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 (Corresponding DMA channel is enabled)" "Not busy,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" "?..."
endif
group.byte 0x0D++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run (DMAC behavior when the CPU is halted by an external debugger)" "Halted,Continues"
group.byte 0x0E++0x00
line.byte 0x00 "QOSCTRL,Quality Of Service 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 ,Write-back quality of service" "Disabled,Low,Medium,High"
group.long 0x10++0x03
line.long 0x00 "SWTRIGCTRL,Software Trigger Control"
sif cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*")
bitfld.long 0x00 11. " SWTRIG11 ,Channel 11 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 10. " SWTRIG10 ,Channel 10 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 9. " SWTRIG9 ,Channel 9 software trigger" "Not triggered,Triggered"
newline
bitfld.long 0x00 8. " SWTRIG8 ,Channel 8 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 7. " SWTRIG7 ,Channel 7 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 6. " SWTRIG6 ,Channel 6 software trigger" "Not triggered,Triggered"
newline
endif
bitfld.long 0x00 5. " SWTRIG5 ,Channel 5 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 4. " SWTRIG4 ,Channel 4 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 3. " SWTRIG3 ,Channel 3 software trigger" "Not triggered,Triggered"
newline
bitfld.long 0x00 2. " SWTRIG2 ,Channel 2 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 1. " SWTRIG1 ,Channel 1 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 0. " SWTRIG0 ,Channel 0 software trigger" "Not triggered,Triggered"
group.long 0x14++0x03
line.long 0x00 "PRICTRL0,Priority Control 0"
bitfld.long 0x00 31. " RRLVLEN3 ,Level 3 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 23. " RRLVLEN2 ,Level 2 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 15. " RRLVLEN1 ,Level 1 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 7. " RRLVLEN0 ,Level 0 round-robin arbitration scheme enable" "Static,Round-robin"
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"
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
if (((per.l(ad:0x41004400+0x20))&0x700)!=0x00)
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
newline
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*"))
newline
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
newline
bitfld.word 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
endif
endif
rgroup.long 0x24++0x0B
line.long 0x00 "INTSTATUS,Interrupt Status"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x00 11. " CHINT11 ,Channel 11 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 10. " CHINT10 ,Channel 10 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 9. " CHINT9 ,Channel 9 pending interrupt" "No interrupt,Interrupt"
newline
bitfld.long 0x00 8. " CHINT8 ,Channel 8 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 7. " CHINT7 ,Channel 7 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 6. " CHINT6 ,Channel 6 pending interrupt" "No interrupt,Interrupt"
newline
endif
bitfld.long 0x00 5. " CHINT5 ,Channel 5 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 4. " CHINT4 ,Channel 4 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 3. " CHINT3 ,Channel 3 pending interrupt" "No interrupt,Interrupt"
newline
bitfld.long 0x00 2. " CHINT2 ,Channel 2 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 1. " CHINT1 ,Channel 1 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 0. " CHINT0 ,Channel 0 pending interrupt" "No interrupt,Interrupt"
line.long 0x04 "BUSYCH,Busy Channels"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x04 11. " BUSYCH11 ,Busy channel 11" "Not busy,Busy"
bitfld.long 0x04 10. " BUSYCH10 ,Busy channel 10" "Not busy,Busy"
bitfld.long 0x04 9. " BUSYCH9 ,Busy channel 9" "Not busy,Busy"
newline
bitfld.long 0x04 8. " BUSYCH8 ,Busy channel 8" "Not busy,Busy"
bitfld.long 0x04 7. " BUSYCH7 ,Busy channel 7" "Not busy,Busy"
bitfld.long 0x04 6. " BUSYCH6 ,Busy channel 6" "Not busy,Busy"
newline
endif
bitfld.long 0x04 5. " BUSYCH5 ,Busy channel 5" "Not busy,Busy"
bitfld.long 0x04 4. " BUSYCH4 ,Busy channel 4" "Not busy,Busy"
bitfld.long 0x04 3. " BUSYCH3 ,Busy channel 3" "Not busy,Busy"
newline
bitfld.long 0x04 2. " BUSYCH2 ,Busy channel 2" "Not busy,Busy"
bitfld.long 0x04 1. " BUSYCH1 ,Busy channel 1" "Not busy,Busy"
bitfld.long 0x04 0. " BUSYCH0 ,Busy channel 0" "Not busy,Busy"
line.long 0x08 "PENDCH,Pending Channels"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x08 11. " PENDCH11 ,Pending channel 11" "Not pending,Pending"
bitfld.long 0x08 10. " PENDCH10 ,Pending channel 10" "Not pending,Pending"
bitfld.long 0x08 9. " PENDCH9 ,Pending channel 9" "Not pending,Pending"
newline
bitfld.long 0x08 8. " PENDCH8 ,Pending channel 8" "Not pending,Pending"
bitfld.long 0x08 7. " PENDCH7 ,Pending channel 7" "Not pending,Pending"
bitfld.long 0x08 6. " PENDCH6 ,Pending channel 6" "Not pending,Pending"
newline
endif
bitfld.long 0x08 5. " PENDCH5 ,Pending channel 5" "Not pending,Pending"
bitfld.long 0x08 4. " PENDCH4 ,Pending channel 4" "Not pending,Pending"
bitfld.long 0x08 3. " PENDCH3 ,Pending channel 3" "Not pending,Pending"
newline
bitfld.long 0x08 2. " PENDCH2 ,Pending channel 2" "Not pending,Pending"
bitfld.long 0x08 1. " PENDCH1 ,Pending channel 1" "Not pending,Pending"
bitfld.long 0x08 0. " PENDCH0 ,Pending channel 0" "Not pending,Pending"
if (((per.l(ad:0x41004400+0x30))&0x8000)==0x00)
rgroup.long 0x30++0x03
line.long 0x00 "ACTIVE,Active Channel And Levels"
textfld " "
bitfld.long 0x00 15. " ABUSY ,Active channel busy" "Not busy,Busy"
newline
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not pending,Pending"
newline
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not pending,Pending"
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" "Not busy,Busy"
newline
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not pending,Pending"
newline
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not pending,Pending"
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
hgroup.long 0x34++0x07
hide.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
hide.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
else
group.long 0x34++0x07
line.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
line.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
endif
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
group.byte 0x3F++0x00
line.byte 0x00 "CHID,Channel ID"
bitfld.byte 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
group.byte 0x3F++0x00
line.byte 0x00 "CHID,Channel ID"
bitfld.byte 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
endif
if (((per.l(ad:0x41004400+0x40))&0x02)==0x00)
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Continues"
endif
newline
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
newline
bitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
else
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Continues"
endif
newline
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
newline
rbitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.l(ad:0x41004400+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"
newline
sif cpuis("ATSAMC21N*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
elif cpuis("ATSAMC20N*")
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
endif
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"
newline
bitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
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"
newline
sif cpuis("ATSAMC21N*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
elif cpuis("ATSAMC20N*")
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
endif
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"
newline
rbitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
endif
else
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
sif (cpuis("ATSAMC21*"))
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,?..."
newline
elif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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,?..."
newline
else
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,?..."
newline
endif
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"
newline
bitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
endif
group.byte 0x4D++0x00
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"
group.byte 0x4E++0x00
line.byte 0x00 "CHINTFLAG,Channel Interrupt Flag"
eventfld.byte 0x00 2. " SUSP ,Channel suspend interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TCMPL ,Transfer complete interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 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" "Not busy,Busy"
bitfld.byte 0x00 0. " PEND ,Channel pending" "Not pending,Pending"
; Base address of Static ram: 0x20000000
tree.open "DMAC SRAM Registers (Descriptor Memory Section)"
tree "Channel 0"
base ad:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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.end
tree.open "DMAC SRAM Registers (Write-Back Memory Section)"
tree "Channel 0"
base ad:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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.end
width 0x0B
else
width 17.
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.w(ad:0x41004400))&0x06)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 11. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
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. " LVEN3 ,Priority level 3 enable" "Disabled,Enabled"
bitfld.word 0x00 10. " LVEN2 ,Priority level 2 enable" "Disabled,Enabled"
bitfld.word 0x00 9. " LVEN1 ,Priority level 1 enable" "Disabled,Enabled"
newline
bitfld.word 0x00 8. " LVEN0 ,Priority level 0 enable" "Disabled,Enabled"
bitfld.word 0x00 2. " CRCENABLE ,CRC enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " DMAENABLE ,DMA enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
sif (cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")||cpuis("ATSAMHA1G*"))
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
elif (((per.b(ad:0x41004400+0x0C))&0x01)==0x01)&&(((per.w(ad:0x41004400))&0x04)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
rbitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
else
rgroup.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
else
if (((per.b(ad:0x41004400+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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,DMA channel 6,DMA channel 7,DMA channel 8,DMA channel 9,DMA channel 10,DMA channel 11,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
endif
else
if (((per.b(ad:0x41004400+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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
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,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,DMA channel 0,DMA channel 1,DMA channel 2,DMA channel 3,DMA channel 4,DMA channel 5,?..."
bitfld.word 0x00 2.--3. " CRCPOLY ,CRC polynomial type" "CRC16,CRC32,?..."
bitfld.word 0x00 0.--1. " CRCBEATSIZE ,CRC beat size" "BYTE,HWORD,WORD,?..."
newline
endif
endif
group.long 0x04++0x03
line.long 0x00 "CRCDATAIN,CRC Data Input"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x41004400+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004400))&0x04)==0x04)
rgroup.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
in
endif
else
if (((per.b(ad:0x41004400+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
if (((per.w(ad:0x41004400+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 (CRC data input register is written)" "Not busy,Busy"
elif (((per.w(ad:0x41004400+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 (Corresponding DMA channel is enabled)" "Not busy,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" "?..."
endif
group.byte 0x0D++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run (DMAC behavior when the CPU is halted by an external debugger)" "Halted,Continues"
group.byte 0x0E++0x00
line.byte 0x00 "QOSCTRL,Quality Of Service 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 ,Write-back quality of service" "Disabled,Low,Medium,High"
group.long 0x10++0x03
line.long 0x00 "SWTRIGCTRL,Software Trigger Control"
sif cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*")
bitfld.long 0x00 11. " SWTRIG11 ,Channel 11 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 10. " SWTRIG10 ,Channel 10 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 9. " SWTRIG9 ,Channel 9 software trigger" "Not triggered,Triggered"
newline
bitfld.long 0x00 8. " SWTRIG8 ,Channel 8 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 7. " SWTRIG7 ,Channel 7 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 6. " SWTRIG6 ,Channel 6 software trigger" "Not triggered,Triggered"
newline
endif
bitfld.long 0x00 5. " SWTRIG5 ,Channel 5 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 4. " SWTRIG4 ,Channel 4 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 3. " SWTRIG3 ,Channel 3 software trigger" "Not triggered,Triggered"
newline
bitfld.long 0x00 2. " SWTRIG2 ,Channel 2 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 1. " SWTRIG1 ,Channel 1 software trigger" "Not triggered,Triggered"
bitfld.long 0x00 0. " SWTRIG0 ,Channel 0 software trigger" "Not triggered,Triggered"
group.long 0x14++0x03
line.long 0x00 "PRICTRL0,Priority Control 0"
bitfld.long 0x00 31. " RRLVLEN3 ,Level 3 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 23. " RRLVLEN2 ,Level 2 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 15. " RRLVLEN1 ,Level 1 round-robin arbitration scheme enable" "Static,Round-robin"
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"
newline
bitfld.long 0x00 7. " RRLVLEN0 ,Level 0 round-robin arbitration scheme enable" "Static,Round-robin"
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"
sif cpuis("ATSAMC21*")||cpuis("ATSAMC20N*")
if (((per.l(ad:0x41004400+0x20))&0x700)!=0x00)
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
newline
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
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" "Not busy,Busy"
rbitfld.word 0x00 13. " FERR ,Fetch error" "No error,Error"
newline
bitfld.word 0x00 10. " SUSP ,Channel suspend" "Not suspended,Suspended"
bitfld.word 0x00 9. " TCMPL ,Transfer complete" "Not completed,Completed"
bitfld.word 0x00 8. " TERR ,Transfer error" "No error,Error"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*"))
newline
bitfld.word 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
newline
bitfld.word 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
endif
endif
rgroup.long 0x24++0x0B
line.long 0x00 "INTSTATUS,Interrupt Status"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x00 11. " CHINT11 ,Channel 11 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 10. " CHINT10 ,Channel 10 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 9. " CHINT9 ,Channel 9 pending interrupt" "No interrupt,Interrupt"
newline
bitfld.long 0x00 8. " CHINT8 ,Channel 8 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 7. " CHINT7 ,Channel 7 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 6. " CHINT6 ,Channel 6 pending interrupt" "No interrupt,Interrupt"
newline
endif
bitfld.long 0x00 5. " CHINT5 ,Channel 5 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 4. " CHINT4 ,Channel 4 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 3. " CHINT3 ,Channel 3 pending interrupt" "No interrupt,Interrupt"
newline
bitfld.long 0x00 2. " CHINT2 ,Channel 2 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 1. " CHINT1 ,Channel 1 pending interrupt" "No interrupt,Interrupt"
bitfld.long 0x00 0. " CHINT0 ,Channel 0 pending interrupt" "No interrupt,Interrupt"
line.long 0x04 "BUSYCH,Busy Channels"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x04 11. " BUSYCH11 ,Busy channel 11" "Not busy,Busy"
bitfld.long 0x04 10. " BUSYCH10 ,Busy channel 10" "Not busy,Busy"
bitfld.long 0x04 9. " BUSYCH9 ,Busy channel 9" "Not busy,Busy"
newline
bitfld.long 0x04 8. " BUSYCH8 ,Busy channel 8" "Not busy,Busy"
bitfld.long 0x04 7. " BUSYCH7 ,Busy channel 7" "Not busy,Busy"
bitfld.long 0x04 6. " BUSYCH6 ,Busy channel 6" "Not busy,Busy"
newline
endif
bitfld.long 0x04 5. " BUSYCH5 ,Busy channel 5" "Not busy,Busy"
bitfld.long 0x04 4. " BUSYCH4 ,Busy channel 4" "Not busy,Busy"
bitfld.long 0x04 3. " BUSYCH3 ,Busy channel 3" "Not busy,Busy"
newline
bitfld.long 0x04 2. " BUSYCH2 ,Busy channel 2" "Not busy,Busy"
bitfld.long 0x04 1. " BUSYCH1 ,Busy channel 1" "Not busy,Busy"
bitfld.long 0x04 0. " BUSYCH0 ,Busy channel 0" "Not busy,Busy"
line.long 0x08 "PENDCH,Pending Channels"
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
bitfld.long 0x08 11. " PENDCH11 ,Pending channel 11" "Not pending,Pending"
bitfld.long 0x08 10. " PENDCH10 ,Pending channel 10" "Not pending,Pending"
bitfld.long 0x08 9. " PENDCH9 ,Pending channel 9" "Not pending,Pending"
newline
bitfld.long 0x08 8. " PENDCH8 ,Pending channel 8" "Not pending,Pending"
bitfld.long 0x08 7. " PENDCH7 ,Pending channel 7" "Not pending,Pending"
bitfld.long 0x08 6. " PENDCH6 ,Pending channel 6" "Not pending,Pending"
newline
endif
bitfld.long 0x08 5. " PENDCH5 ,Pending channel 5" "Not pending,Pending"
bitfld.long 0x08 4. " PENDCH4 ,Pending channel 4" "Not pending,Pending"
bitfld.long 0x08 3. " PENDCH3 ,Pending channel 3" "Not pending,Pending"
newline
bitfld.long 0x08 2. " PENDCH2 ,Pending channel 2" "Not pending,Pending"
bitfld.long 0x08 1. " PENDCH1 ,Pending channel 1" "Not pending,Pending"
bitfld.long 0x08 0. " PENDCH0 ,Pending channel 0" "Not pending,Pending"
if (((per.l(ad:0x41004400+0x30))&0x8000)==0x00)
rgroup.long 0x30++0x03
line.long 0x00 "ACTIVE,Active Channel And Levels"
textfld " "
bitfld.long 0x00 15. " ABUSY ,Active channel busy" "Not busy,Busy"
newline
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not pending,Pending"
newline
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not pending,Pending"
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" "Not busy,Busy"
newline
bitfld.long 0x00 8.--12. " ID ,Active channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
bitfld.long 0x00 3. " LVLEX3 ,Level 3 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 2. " LVLEX2 ,Level 2 channel trigger request executing" "Not pending,Pending"
newline
bitfld.long 0x00 1. " LVLEX1 ,Level 1 channel trigger request executing" "Not pending,Pending"
bitfld.long 0x00 0. " LVLEX0 ,Level 0 channel trigger request executing" "Not pending,Pending"
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
hgroup.long 0x34++0x07
hide.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
hide.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
else
group.long 0x34++0x07
line.long 0x00 "BASEADDR,Descriptor Memory Section Base Address"
line.long 0x04 "WRBADDR,Write-Back Memory Section Base Address"
endif
sif (cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMC20N*"))
group.byte 0x3F++0x00
line.byte 0x00 "CHID,Channel ID"
bitfld.byte 0x00 0.--3. " ID ,Channel ID" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
group.byte 0x3F++0x00
line.byte 0x00 "CHID,Channel ID"
bitfld.byte 0x00 0.--2. " ID ,Channel ID" "0,1,2,3,4,5,?..."
endif
if (((per.l(ad:0x41004400+0x40))&0x02)==0x00)
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Continues"
endif
newline
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
newline
bitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
else
group.byte 0x40++0x00
line.byte 0x00 "CHCTRLA,Channel Control A"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
bitfld.byte 0x00 6. " RUNSTDBY ,Channel run in standby" "Halted,Continues"
endif
newline
bitfld.byte 0x00 1. " ENABLE ,Channel enable" "Disabled,Enabled"
newline
rbitfld.byte 0x00 0. " SWRST ,Channel software reset" "No reset,Reset"
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.l(ad:0x41004400+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"
newline
sif cpuis("ATSAMC21N*")
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
elif cpuis("ATSAMC20N*")
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
endif
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"
newline
bitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
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"
newline
sif cpuis("ATSAMC21N*")
rbitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
elif cpuis("ATSAMC20N*")
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,SERCOM6 RX,SERCOM6 TX,SERCOM7 RX,SERCOM7 TX,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,?..."
newline
endif
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"
newline
rbitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
endif
else
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
sif (cpuis("ATSAMC21*"))
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
bitfld.long 0x00 8.--13. " TRIGSRC ,Peripheral trigger source" "Disabled,TSENS,SERCOM0 RX,SERCOM0 TX,SERCOM1 RX,SERCOM1 TX,SERCOM2 RX,SERCOM2 TX,SERCOM3 RX,SERCOM3 TX,SERCOM4 RX,SERCOM4 TX,SERCOM5 RX,SERCOM5 TX,CAN0 DEBUG,CAN1 DEBUG,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,ADC0 RESRDY,ADC1 RESRDY,SDADC RESRDY,DAC EMPTY,PTC EOC,PTC WCOMP,PTC SEQ,?..."
newline
elif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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,?..."
newline
else
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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,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,ADC0 RESRDY,,,,PTC EOC,PTC WCOMP,PTC SEQ,?..."
newline
endif
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"
newline
bitfld.long 0x00 0.--2. " EVACT ,Event input action" "No action,TRIG,CTRIG,CBLOCK,SUSPEND,RESUME,SSKIP,?..."
newline
endif
group.byte 0x4D++0x00
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"
group.byte 0x4E++0x00
line.byte 0x00 "CHINTFLAG,Channel Interrupt Flag"
eventfld.byte 0x00 2. " SUSP ,Channel suspend interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TCMPL ,Transfer complete interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x00 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" "Not busy,Busy"
bitfld.byte 0x00 0. " PEND ,Channel pending" "Not pending,Pending"
; Base address of Static ram: 0x20000000
tree.open "DMAC SRAM Registers (Descriptor Memory Section)"
tree "Channel 0"
base ad:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x34))&0xFFFFFFFF)+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.end
tree.open "DMAC SRAM Registers (Write-Back Memory Section)"
tree "Channel 0"
base ad:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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:(((per.l(ad:0x41004400+0x38))&0xFFFFFFFF)+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.end
width 0x0B
endif
tree.end
tree "EIC (External Interrupt Controller)"
base ad:0x40002800
width 15.
if (((per.b(ad:0x40002800))&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 ,EIC 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 ,EIC 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" "Synchronous,Asynchronous"
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"
newline
if (((per.b(ad:0x40002800))&0x02)==0x00)
group.long 0x08++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 31. " EXTINTEO[31] ,External interrupt 31 event output enable" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,External interrupt 30 event output enable" "Disabled,Enabled"
bitfld.long 0x00 29. " [29] ,External interrupt 29 event output enable" "Disabled,Enabled"
bitfld.long 0x00 28. " [28] ,External interrupt 28 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " [27] ,External interrupt 27 event output enable" "Disabled,Enabled"
bitfld.long 0x00 26. " [26] ,External interrupt 26 event output enable" "Disabled,Enabled"
bitfld.long 0x00 25. " [25] ,External interrupt 25 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,External interrupt 24 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,External interrupt 23 event output enable" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,External interrupt 22 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " [21] ,External interrupt 21 event output enable" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,External interrupt 20 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,External interrupt 19 event output enable" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,External interrupt 18 event output enable" "Disabled,Enabled"
bitfld.long 0x00 17. " [17] ,External interrupt 17 event output enable" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,External interrupt 16 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,External interrupt 15 event output enable" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,External interrupt 14 event output enable" "Disabled,Enabled"
bitfld.long 0x00 13. " [13] ,External interrupt 13 event output enable" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,External interrupt 12 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,External interrupt 11 event output enable" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,External interrupt 10 event output enable" "Disabled,Enabled"
bitfld.long 0x00 9. " [9] ,External interrupt 9 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,External interrupt 8 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,External interrupt 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,External interrupt 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,External interrupt 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,External interrupt 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,External interrupt 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,External interrupt 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,External interrupt 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,External interrupt 0 event output enable" "Disabled,Enabled"
else
rgroup.long 0x08++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 31. " EXTINTEO[31] ,External interrupt 31 event output enable" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,External interrupt 30 event output enable" "Disabled,Enabled"
bitfld.long 0x00 29. " [29] ,External interrupt 29 event output enable" "Disabled,Enabled"
bitfld.long 0x00 28. " [28] ,External interrupt 28 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " [27] ,External interrupt 27 event output enable" "Disabled,Enabled"
bitfld.long 0x00 26. " [26] ,External interrupt 26 event output enable" "Disabled,Enabled"
bitfld.long 0x00 25. " [25] ,External interrupt 25 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,External interrupt 24 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,External interrupt 23 event output enable" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,External interrupt 22 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " [21] ,External interrupt 21 event output enable" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,External interrupt 20 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,External interrupt 19 event output enable" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,External interrupt 18 event output enable" "Disabled,Enabled"
bitfld.long 0x00 17. " [17] ,External interrupt 17 event output enable" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,External interrupt 16 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,External interrupt 15 event output enable" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,External interrupt 14 event output enable" "Disabled,Enabled"
bitfld.long 0x00 13. " [13] ,External interrupt 13 event output enable" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,External interrupt 12 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,External interrupt 11 event output enable" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,External interrupt 10 event output enable" "Disabled,Enabled"
bitfld.long 0x00 9. " [9] ,External interrupt 9 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,External interrupt 8 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,External interrupt 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,External interrupt 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,External interrupt 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,External interrupt 4 event output enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,External interrupt 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,External interrupt 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,External interrupt 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,External interrupt 0 event output enable" "Disabled,Enabled"
endif
group.long 0x10++0x03
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.long 0x00 31. 0x00 31. -0x04 31. " EXTINT[31] ,External interrupt 31 event enable" "Disabled,Enabled"
setclrfld.long 0x00 30. 0x00 30. -0x04 30. " [30] ,External interrupt 30 event enable" "Disabled,Enabled"
setclrfld.long 0x00 29. 0x00 29. -0x04 29. " [29] ,External interrupt 29 event enable" "Disabled,Enabled"
setclrfld.long 0x00 28. 0x00 28. -0x04 28. " [28] ,External interrupt 28 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 27. 0x00 27. -0x04 27. " [27] ,External interrupt 27 event enable" "Disabled,Enabled"
setclrfld.long 0x00 26. 0x00 26. -0x04 26. " [26] ,External interrupt 26 event enable" "Disabled,Enabled"
setclrfld.long 0x00 25. 0x00 25. -0x04 25. " [25] ,External interrupt 25 event enable" "Disabled,Enabled"
setclrfld.long 0x00 24. 0x00 24. -0x04 24. " [24] ,External interrupt 24 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 23. 0x00 23. -0x04 23. " [23] ,External interrupt 23 event enable" "Disabled,Enabled"
setclrfld.long 0x00 22. 0x00 22. -0x04 22. " [22] ,External interrupt 22 event enable" "Disabled,Enabled"
setclrfld.long 0x00 21. 0x00 21. -0x04 21. " [21] ,External interrupt 21 event enable" "Disabled,Enabled"
setclrfld.long 0x00 20. 0x00 20. -0x04 20. " [20] ,External interrupt 20 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " [19] ,External interrupt 19 event enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " [18] ,External interrupt 18 event enable" "Disabled,Enabled"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " [17] ,External interrupt 17 event enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " [16] ,External interrupt 16 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " [15] ,External interrupt 15 event enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " [14] ,External interrupt 14 event enable" "Disabled,Enabled"
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " [13] ,External interrupt 13 event enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " [12] ,External interrupt 12 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " [11] ,External interrupt 11 event enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " [10] ,External interrupt 10 event enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " [9] ,External interrupt 9 event enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " [8] ,External interrupt 8 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " [7] ,External interrupt 7 event enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " [6] ,External interrupt 6 event enable" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " [5] ,External interrupt 5 event enable" "Disabled,Enabled"
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " [4] ,External interrupt 4 event enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " [3] ,External interrupt 3 event enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " [2] ,External interrupt 2 event enable" "Disabled,Enabled"
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " [1] ,External interrupt 1 event enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " [0] ,External interrupt 0 event enable" "Disabled,Enabled"
group.long 0x14++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.long 0x00 31. " EXTINT[31] ,External interrupt 31" "No effect,Clear"
eventfld.long 0x00 30. " [30] ,External interrupt 30" "No effect,Clear"
eventfld.long 0x00 29. " [29] ,External interrupt 29" "No effect,Clear"
eventfld.long 0x00 28. " [28] ,External interrupt 28" "No effect,Clear"
newline
eventfld.long 0x00 27. " [27] ,External interrupt 27" "No effect,Clear"
eventfld.long 0x00 26. " [26] ,External interrupt 26" "No effect,Clear"
eventfld.long 0x00 25. " [25] ,External interrupt 25" "No effect,Clear"
eventfld.long 0x00 24. " [24] ,External interrupt 24" "No effect,Clear"
newline
eventfld.long 0x00 23. " [23] ,External interrupt 23" "No effect,Clear"
eventfld.long 0x00 22. " [22] ,External interrupt 22" "No effect,Clear"
eventfld.long 0x00 21. " [21] ,External interrupt 21" "No effect,Clear"
eventfld.long 0x00 20. " [20] ,External interrupt 20" "No effect,Clear"
newline
eventfld.long 0x00 19. " [19] ,External interrupt 19" "No effect,Clear"
eventfld.long 0x00 18. " [18] ,External interrupt 18" "No effect,Clear"
eventfld.long 0x00 17. " [17] ,External interrupt 17" "No effect,Clear"
eventfld.long 0x00 16. " [16] ,External interrupt 16" "No effect,Clear"
newline
eventfld.long 0x00 15. " [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"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x40002800))&0x02)==0x00)
group.long 0x18++0x03
line.long 0x00 "ASYNCH,External Interrupt Asynchronous Mode"
eventfld.long 0x00 15. " ASYNCH[15] ,Asynchronous edge detection mode bit 15" "Synchronous,Asynchronous"
eventfld.long 0x00 14. " [14] ,Asynchronous edge detection mode bit 14" "Synchronous,Asynchronous"
eventfld.long 0x00 13. " [13] ,Asynchronous edge detection mode bit 13" "Synchronous,Asynchronous"
eventfld.long 0x00 12. " [12] ,Asynchronous edge detection mode bit 12" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 11. " [11] ,Asynchronous edge detection mode bit 11" "Synchronous,Asynchronous"
eventfld.long 0x00 10. " [10] ,Asynchronous edge detection mode bit 10" "Synchronous,Asynchronous"
eventfld.long 0x00 9. " [9] ,Asynchronous edge detection mode bit 9" "Synchronous,Asynchronous"
eventfld.long 0x00 8. " [8] ,Asynchronous edge detection mode bit 8" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 7. " [7] ,Asynchronous edge detection mode bit 7" "Synchronous,Asynchronous"
eventfld.long 0x00 6. " [6] ,Asynchronous edge detection mode bit 6" "Synchronous,Asynchronous"
eventfld.long 0x00 5. " [5] ,Asynchronous edge detection mode bit 5" "Synchronous,Asynchronous"
eventfld.long 0x00 4. " [4] ,Asynchronous edge detection mode bit 4" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 3. " [3] ,Asynchronous edge detection mode bit 3" "Synchronous,Asynchronous"
eventfld.long 0x00 2. " [2] ,Asynchronous edge detection mode bit 2" "Synchronous,Asynchronous"
eventfld.long 0x00 1. " [1] ,Asynchronous edge detection mode bit 1" "Synchronous,Asynchronous"
eventfld.long 0x00 0. " [0] ,Asynchronous edge detection mode bit 0" "Synchronous,Asynchronous"
newline
else
rgroup.long 0x18++0x03
line.long 0x00 "ASYNCH,External Interrupt Asynchronous Mode"
bitfld.long 0x00 15. " ASYNCH[15] ,Asynchronous edge detection mode bit 15" "Synchronous,Asynchronous"
bitfld.long 0x00 14. " [14] ,Asynchronous edge detection mode bit 14" "Synchronous,Asynchronous"
bitfld.long 0x00 13. " [13] ,Asynchronous edge detection mode bit 13" "Synchronous,Asynchronous"
bitfld.long 0x00 12. " [12] ,Asynchronous edge detection mode bit 12" "Synchronous,Asynchronous"
newline
bitfld.long 0x00 11. " [11] ,Asynchronous edge detection mode bit 11" "Synchronous,Asynchronous"
bitfld.long 0x00 10. " [10] ,Asynchronous edge detection mode bit 10" "Synchronous,Asynchronous"
bitfld.long 0x00 9. " [9] ,Asynchronous edge detection mode bit 9" "Synchronous,Asynchronous"
bitfld.long 0x00 8. " [8] ,Asynchronous edge detection mode bit 8" "Synchronous,Asynchronous"
newline
bitfld.long 0x00 7. " [7] ,Asynchronous edge detection mode bit 7" "Synchronous,Asynchronous"
bitfld.long 0x00 6. " [6] ,Asynchronous edge detection mode bit 6" "Synchronous,Asynchronous"
bitfld.long 0x00 5. " [5] ,Asynchronous edge detection mode bit 5" "Synchronous,Asynchronous"
bitfld.long 0x00 4. " [4] ,Asynchronous edge detection mode bit 4" "Synchronous,Asynchronous"
newline
bitfld.long 0x00 3. " [3] ,Asynchronous edge detection mode bit 3" "Synchronous,Asynchronous"
bitfld.long 0x00 2. " [2] ,Asynchronous edge detection mode bit 2" "Synchronous,Asynchronous"
bitfld.long 0x00 1. " [1] ,Asynchronous edge detection mode bit 1" "Synchronous,Asynchronous"
bitfld.long 0x00 0. " [0] ,Asynchronous edge detection mode bit 0" "Synchronous,Asynchronous"
newline
endif
else
group.long 0x18++0x03
line.long 0x00 "ASYNCH,External Interrupt Asynchronous Mode"
eventfld.long 0x00 15. " ASYNCH[15] ,Asynchronous edge detection mode bit 15" "Synchronous,Asynchronous"
eventfld.long 0x00 14. " [14] ,Asynchronous edge detection mode bit 14" "Synchronous,Asynchronous"
eventfld.long 0x00 13. " [13] ,Asynchronous edge detection mode bit 13" "Synchronous,Asynchronous"
eventfld.long 0x00 12. " [12] ,Asynchronous edge detection mode bit 12" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 11. " [11] ,Asynchronous edge detection mode bit 11" "Synchronous,Asynchronous"
eventfld.long 0x00 10. " [10] ,Asynchronous edge detection mode bit 10" "Synchronous,Asynchronous"
eventfld.long 0x00 9. " [9] ,Asynchronous edge detection mode bit 9" "Synchronous,Asynchronous"
eventfld.long 0x00 8. " [8] ,Asynchronous edge detection mode bit 8" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 7. " [7] ,Asynchronous edge detection mode bit 7" "Synchronous,Asynchronous"
eventfld.long 0x00 6. " [6] ,Asynchronous edge detection mode bit 6" "Synchronous,Asynchronous"
eventfld.long 0x00 5. " [5] ,Asynchronous edge detection mode bit 5" "Synchronous,Asynchronous"
eventfld.long 0x00 4. " [4] ,Asynchronous edge detection mode bit 4" "Synchronous,Asynchronous"
newline
eventfld.long 0x00 3. " [3] ,Asynchronous edge detection mode bit 3" "Synchronous,Asynchronous"
eventfld.long 0x00 2. " [2] ,Asynchronous edge detection mode bit 2" "Synchronous,Asynchronous"
eventfld.long 0x00 1. " [1] ,Asynchronous edge detection mode bit 1" "Synchronous,Asynchronous"
eventfld.long 0x00 0. " [0] ,Asynchronous edge detection mode bit 0" "Synchronous,Asynchronous"
newline
endif
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.b(ad:0x40002800))&0x02)==0x00)
group.long 0x1C++0x0F
line.long 0x00 "CONFIG0,External Interrupt Sense Configuration 0"
bitfld.long 0x00 31. " FILTEN7 ,Filter 7 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE7 ,Input sense configuration 7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,Input sense configuration 6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,Input sense configuration 5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,Input sense configuration 4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,Input sense configuration 3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,Input sense configuration 2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,Input sense configuration 1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,Input sense configuration 0" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x04 "CONFIG1,External Interrupt Sense Configuration 1"
bitfld.long 0x04 31. " FILTEN15 ,Filter 15 enable" "Disabled,Enabled"
bitfld.long 0x04 28.--30. " SENSE15 ,Input sense configuration 15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,Input sense configuration 14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,Input sense configuration 13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,Input sense configuration 12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,Input sense configuration 11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,Input sense configuration 10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,Input sense configuration 9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,Input sense configuration 8" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x08 "CONFIG2,External Interrupt Sense Configuration 2"
bitfld.long 0x08 31. " FILTEN23 ,Filter 23 enable" "Disabled,Enabled"
bitfld.long 0x08 28.--30. " SENSE23 ,Input sense configuration 23" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 27. " FILTEN22 ,Filter 22 enable" "Disabled,Enabled"
bitfld.long 0x08 24.--26. " SENSE22 ,Input sense configuration 22" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 23. " FILTEN21 ,Filter 21 enable" "Disabled,Enabled"
bitfld.long 0x08 20.--22. " SENSE21 ,Input sense configuration 21" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 19. " FILTEN20 ,Filter 20 enable" "Disabled,Enabled"
bitfld.long 0x08 16.--18. " SENSE20 ,Input sense configuration 20" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 15. " FILTEN19 ,Filter 19 enable" "Disabled,Enabled"
bitfld.long 0x08 12.--14. " SENSE19 ,Input sense configuration 19" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 11. " FILTEN18 ,Filter 18 enable" "Disabled,Enabled"
bitfld.long 0x08 8.--10. " SENSE18 ,Input sense configuration 18" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 7. " FILTEN17 ,Filter 17 enable" "Disabled,Enabled"
bitfld.long 0x08 4.--6. " SENSE17 ,Input sense configuration 17" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 3. " FILTEN16 ,Filter 16 enable" "Disabled,Enabled"
bitfld.long 0x08 0.--2. " SENSE16 ,Input sense configuration 16" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x0C "CONFIG3,External Interrupt Sense Configuration 3"
bitfld.long 0x0C 31. " FILTEN31 ,Filter 31 enable" "Disabled,Enabled"
bitfld.long 0x0C 28.--30. " SENSE31 ,Input sense configuration 31" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 27. " FILTEN30 ,Filter 30 enable" "Disabled,Enabled"
bitfld.long 0x0C 24.--26. " SENSE30 ,Input sense configuration 30" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 23. " FILTEN29 ,Filter 29 enable" "Disabled,Enabled"
bitfld.long 0x0C 20.--22. " SENSE29 ,Input sense configuration 29" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 19. " FILTEN28 ,Filter 28 enable" "Disabled,Enabled"
bitfld.long 0x0C 16.--18. " SENSE28 ,Input sense configuration 28" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 15. " FILTEN27 ,Filter 27 enable" "Disabled,Enabled"
bitfld.long 0x0C 12.--14. " SENSE27 ,Input sense configuration 27" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 11. " FILTEN26 ,Filter 26 enable" "Disabled,Enabled"
bitfld.long 0x0C 8.--10. " SENSE26 ,Input sense configuration 26" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 7. " FILTEN25 ,Filter 25 enable" "Disabled,Enabled"
bitfld.long 0x0C 4.--6. " SENSE25 ,Input sense configuration 25" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 3. " FILTEN24 ,Filter 24 enable" "Disabled,Enabled"
bitfld.long 0x0C 0.--2. " SENSE24 ,Input sense configuration 24" "None,Rise,Fall,Both,High,Low,?..."
group.long 0x30++0x07
line.long 0x00 "DEBOUNCEN,Debouncer Enable"
bitfld.long 0x00 31. " DEBOUNCEN[31] ,EXTINT31 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,EXTINT30 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 29. " [29] ,EXTINT29 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 28. " [28] ,EXTINT28 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " [27] ,EXTINT27 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 26. " [26] ,EXTINT26 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 25. " [25] ,EXTINT25 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,EXTINT24 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,EXTINT23 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,EXTINT22 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 21. " [21] ,EXTINT21 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,EXTINT20 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,EXTINT19 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,EXTINT18 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 17. " [17] ,EXTINT17 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,EXTINT16 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,EXTINT15 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,EXTINT14 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 13. " [13] ,EXTINT13 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,EXTINT12 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,EXTINT11 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,EXTINT10 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 9. " [9] ,EXTINT9 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,EXTINT8 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,EXTINT7 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,EXTINT6 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,EXTINT5 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,EXTINT4 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,EXTINT3 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,EXTINT2 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,EXTINT1 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,EXTINT0 edge input debounce enable" "Disabled,Enabled"
line.long 0x04 "DPRESCALER,Debouncer Prescaler"
bitfld.long 0x04 16. " TICKON ,Pin sampler frequency selection" "GCLK_EIC,Low frequency clock"
bitfld.long 0x04 15. " STATES3 ,Debouncer number of states 3" "3,7"
bitfld.long 0x04 12.--14. " PRESCALER3 ,Debouncer prescaler 3" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 11. " STATES2 ,Debouncer number of states 2" "GCLK_EIC,Low frequency clock"
newline
bitfld.long 0x04 8.--10. " PRESCALER2 ,Debouncer prescaler 2" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 7. " STATES1 ,Debouncer number of states 1" "GCLK_EIC,Low frequency clock"
bitfld.long 0x04 4.--6. " PRESCALER1 ,Debouncer prescaler 1" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 3. " STATES0 ,Debouncer number of states 0" "GCLK_EIC,Low frequency clock"
newline
bitfld.long 0x04 0.--2. " PRESCALER0 ,Debouncer prescaler 0" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
else
rgroup.long 0x1C++0x0F
line.long 0x00 "CONFIG0,External Interrupt Sense Configuration 0"
bitfld.long 0x00 31. " FILTEN7 ,Filter 7 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE7 ,Input sense configuration 7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,Input sense configuration 6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,Input sense configuration 5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,Input sense configuration 4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,Input sense configuration 3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,Input sense configuration 2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,Input sense configuration 1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,Input sense configuration 0" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x04 "CONFIG1,External Interrupt Sense Configuration 1"
bitfld.long 0x04 31. " FILTEN15 ,Filter 15 enable" "Disabled,Enabled"
bitfld.long 0x04 28.--30. " SENSE15 ,Input sense configuration 15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,Input sense configuration 14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,Input sense configuration 13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,Input sense configuration 12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,Input sense configuration 11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,Input sense configuration 10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,Input sense configuration 9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,Input sense configuration 8" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x08 "CONFIG2,External Interrupt Sense Configuration 2"
bitfld.long 0x08 31. " FILTEN23 ,Filter 23 enable" "Disabled,Enabled"
bitfld.long 0x08 28.--30. " SENSE23 ,Input sense configuration 23" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 27. " FILTEN22 ,Filter 22 enable" "Disabled,Enabled"
bitfld.long 0x08 24.--26. " SENSE22 ,Input sense configuration 22" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 23. " FILTEN21 ,Filter 21 enable" "Disabled,Enabled"
bitfld.long 0x08 20.--22. " SENSE21 ,Input sense configuration 21" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 19. " FILTEN20 ,Filter 20 enable" "Disabled,Enabled"
bitfld.long 0x08 16.--18. " SENSE20 ,Input sense configuration 20" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 15. " FILTEN19 ,Filter 19 enable" "Disabled,Enabled"
bitfld.long 0x08 12.--14. " SENSE19 ,Input sense configuration 19" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 11. " FILTEN18 ,Filter 18 enable" "Disabled,Enabled"
bitfld.long 0x08 8.--10. " SENSE18 ,Input sense configuration 18" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x08 7. " FILTEN17 ,Filter 17 enable" "Disabled,Enabled"
bitfld.long 0x08 4.--6. " SENSE17 ,Input sense configuration 17" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x08 3. " FILTEN16 ,Filter 16 enable" "Disabled,Enabled"
bitfld.long 0x08 0.--2. " SENSE16 ,Input sense configuration 16" "None,Rise,Fall,Both,High,Low,?..."
line.long 0x0C "CONFIG3,External Interrupt Sense Configuration 3"
bitfld.long 0x0C 31. " FILTEN31 ,Filter 31 enable" "Disabled,Enabled"
bitfld.long 0x0C 28.--30. " SENSE31 ,Input sense configuration 31" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 27. " FILTEN30 ,Filter 30 enable" "Disabled,Enabled"
bitfld.long 0x0C 24.--26. " SENSE30 ,Input sense configuration 30" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 23. " FILTEN29 ,Filter 29 enable" "Disabled,Enabled"
bitfld.long 0x0C 20.--22. " SENSE29 ,Input sense configuration 29" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 19. " FILTEN28 ,Filter 28 enable" "Disabled,Enabled"
bitfld.long 0x0C 16.--18. " SENSE28 ,Input sense configuration 28" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 15. " FILTEN27 ,Filter 27 enable" "Disabled,Enabled"
bitfld.long 0x0C 12.--14. " SENSE27 ,Input sense configuration 27" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 11. " FILTEN26 ,Filter 26 enable" "Disabled,Enabled"
bitfld.long 0x0C 8.--10. " SENSE26 ,Input sense configuration 26" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x0C 7. " FILTEN25 ,Filter 25 enable" "Disabled,Enabled"
bitfld.long 0x0C 4.--6. " SENSE25 ,Input sense configuration 25" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x0C 3. " FILTEN24 ,Filter 24 enable" "Disabled,Enabled"
bitfld.long 0x0C 0.--2. " SENSE24 ,Input sense configuration 24" "None,Rise,Fall,Both,High,Low,?..."
rgroup.long 0x30++0x07
line.long 0x00 "DEBOUNCEN,Debouncer Enable"
bitfld.long 0x00 31. " DEBOUNCEN[31] ,EXTINT31 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,EXTINT30 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 29. " [29] ,EXTINT29 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 28. " [28] ,EXTINT28 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " [27] ,EXTINT27 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 26. " [26] ,EXTINT26 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 25. " [25] ,EXTINT25 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,EXTINT24 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,EXTINT23 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,EXTINT22 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 21. " [21] ,EXTINT21 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,EXTINT20 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,EXTINT19 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,EXTINT18 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 17. " [17] ,EXTINT17 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,EXTINT16 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,EXTINT15 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,EXTINT14 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 13. " [13] ,EXTINT13 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,EXTINT12 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,EXTINT11 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,EXTINT10 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 9. " [9] ,EXTINT9 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,EXTINT8 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,EXTINT7 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,EXTINT6 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 5. " [5] ,EXTINT5 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 4. " [4] ,EXTINT4 edge input debounce enable" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,EXTINT3 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,EXTINT2 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 1. " [1] ,EXTINT1 edge input debounce enable" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,EXTINT0 edge input debounce enable" "Disabled,Enabled"
line.long 0x04 "DPRESCALER,Debouncer Prescaler"
bitfld.long 0x04 16. " TICKON ,Pin sampler frequency selection" "GCLK_EIC,Low frequency clock"
bitfld.long 0x04 15. " STATES3 ,Debouncer number of states 3" "3,7"
bitfld.long 0x04 12.--14. " PRESCALER3 ,Debouncer prescaler 3" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 11. " STATES2 ,Debouncer number of states 2" "GCLK_EIC,Low frequency clock"
newline
bitfld.long 0x04 8.--10. " PRESCALER2 ,Debouncer prescaler 2" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 7. " STATES1 ,Debouncer number of states 1" "GCLK_EIC,Low frequency clock"
bitfld.long 0x04 4.--6. " PRESCALER1 ,Debouncer prescaler 1" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
bitfld.long 0x04 3. " STATES0 ,Debouncer number of states 0" "GCLK_EIC,Low frequency clock"
newline
bitfld.long 0x04 0.--2. " PRESCALER0 ,Debouncer prescaler 0" "F/2,F/4,F/8,F/16,F/32,F/64,F/128,F/256"
endif
rgroup.long 0x38++0x03
line.long 0x00 "PINSTATE,Pin State"
bitfld.long 0x00 31. " PINSTATE[31] ,Valid pin state of the debounced external interrupt pin EXTINT31" "0,1"
bitfld.long 0x00 30. " [30] ,Valid pin state of the debounced external interrupt pin EXTINT30" "0,1"
bitfld.long 0x00 29. " [29] ,Valid pin state of the debounced external interrupt pin EXTINT29" "0,1"
bitfld.long 0x00 28. " [28] ,Valid pin state of the debounced external interrupt pin EXTINT28" "0,1"
newline
bitfld.long 0x00 27. " [27] ,Valid pin state of the debounced external interrupt pin EXTINT27" "0,1"
bitfld.long 0x00 26. " [26] ,Valid pin state of the debounced external interrupt pin EXTINT26" "0,1"
bitfld.long 0x00 25. " [25] ,Valid pin state of the debounced external interrupt pin EXTINT25" "0,1"
bitfld.long 0x00 24. " [24] ,Valid pin state of the debounced external interrupt pin EXTINT24" "0,1"
newline
bitfld.long 0x00 23. " [23] ,Valid pin state of the debounced external interrupt pin EXTINT23" "0,1"
bitfld.long 0x00 22. " [22] ,Valid pin state of the debounced external interrupt pin EXTINT22" "0,1"
bitfld.long 0x00 21. " [21] ,Valid pin state of the debounced external interrupt pin EXTINT21" "0,1"
bitfld.long 0x00 20. " [20] ,Valid pin state of the debounced external interrupt pin EXTINT20" "0,1"
newline
bitfld.long 0x00 19. " [19] ,Valid pin state of the debounced external interrupt pin EXTINT19" "0,1"
bitfld.long 0x00 18. " [18] ,Valid pin state of the debounced external interrupt pin EXTINT18" "0,1"
bitfld.long 0x00 17. " [17] ,Valid pin state of the debounced external interrupt pin EXTINT17" "0,1"
bitfld.long 0x00 16. " [16] ,Valid pin state of the debounced external interrupt pin EXTINT16" "0,1"
newline
bitfld.long 0x00 15. " [15] ,Valid pin state of the debounced external interrupt pin EXTINT15" "0,1"
bitfld.long 0x00 14. " [14] ,Valid pin state of the debounced external interrupt pin EXTINT14" "0,1"
bitfld.long 0x00 13. " [13] ,Valid pin state of the debounced external interrupt pin EXTINT13" "0,1"
bitfld.long 0x00 12. " [12] ,Valid pin state of the debounced external interrupt pin EXTINT12" "0,1"
newline
bitfld.long 0x00 11. " [11] ,Valid pin state of the debounced external interrupt pin EXTINT11" "0,1"
bitfld.long 0x00 10. " [10] ,Valid pin state of the debounced external interrupt pin EXTINT10" "0,1"
bitfld.long 0x00 9. " [9] ,Valid pin state of the debounced external interrupt pin EXTINT9" "0,1"
bitfld.long 0x00 8. " [8] ,Valid pin state of the debounced external interrupt pin EXTINT8" "0,1"
newline
bitfld.long 0x00 7. " [7] ,Valid pin state of the debounced external interrupt pin EXTINT7" "0,1"
bitfld.long 0x00 6. " [6] ,Valid pin state of the debounced external interrupt pin EXTINT6" "0,1"
bitfld.long 0x00 5. " [5] ,Valid pin state of the debounced external interrupt pin EXTINT5" "0,1"
bitfld.long 0x00 4. " [4] ,Valid pin state of the debounced external interrupt pin EXTINT4" "0,1"
newline
bitfld.long 0x00 3. " [3] ,Valid pin state of the debounced external interrupt pin EXTINT3" "0,1"
bitfld.long 0x00 2. " [2] ,Valid pin state of the debounced external interrupt pin EXTINT2" "0,1"
bitfld.long 0x00 1. " [1] ,Valid pin state of the debounced external interrupt pin EXTINT1" "0,1"
bitfld.long 0x00 0. " [0] ,Valid pin state of the debounced external interrupt pin EXTINT0" "0,1"
else
if (((per.b(ad:0x40002800))&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 ,Input sense configuration 7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,Input sense configuration 6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,Input sense configuration 5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,Input sense configuration 4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,Input sense configuration 3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,Input sense configuration 2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,Input sense configuration 1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,Input sense configuration 0" "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 ,Input sense configuration 15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,Input sense configuration 14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,Input sense configuration 13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,Input sense configuration 12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,Input sense configuration 11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,Input sense configuration 10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,Input sense configuration 9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,Input sense configuration 8" "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 ,Input sense configuration 7" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
bitfld.long 0x00 24.--26. " SENSE6 ,Input sense configuration 6" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE5 ,Input sense configuration 5" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE4 ,Input sense configuration 4" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
bitfld.long 0x00 12.--14. " SENSE3 ,Input sense configuration 3" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE2 ,Input sense configuration 2" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x00 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE1 ,Input sense configuration 1" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x00 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " SENSE0 ,Input sense configuration 0" "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 ,Input sense configuration 15" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
bitfld.long 0x04 24.--26. " SENSE14 ,Input sense configuration 14" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x04 20.--22. " SENSE13 ,Input sense configuration 13" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x04 16.--18. " SENSE12 ,Input sense configuration 12" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
bitfld.long 0x04 12.--14. " SENSE11 ,Input sense configuration 11" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x04 8.--10. " SENSE10 ,Input sense configuration 10" "None,Rise,Fall,Both,High,Low,?..."
newline
bitfld.long 0x04 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x04 4.--6. " SENSE9 ,Input sense configuration 9" "None,Rise,Fall,Both,High,Low,?..."
bitfld.long 0x04 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " SENSE8 ,Input sense configuration 8" "None,Rise,Fall,Both,High,Low,?..."
endif
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 (IO Pin Controller)"
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
tree "Port A"
base ad:0x41000000
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR[31] ,Port data direction bit 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port data direction bit 30" "Input,Output"
newline
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port data direction bit 28" "Input,Output"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port data direction bit 27" "Input,Output"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data direction bit 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data direction bit 24" "Input,Output"
newline
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port data direction bit 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port data direction bit 22" "Input,Output"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data direction bit 21" "Input,Output"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data direction bit 20" "Input,Output"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data direction bit 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data direction bit 18" "Input,Output"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data direction bit 17" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data direction bit 16" "Input,Output"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data direction bit 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data direction bit 14" "Input,Output"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data direction bit 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data direction bit 12" "Input,Output"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data direction bit 10" "Input,Output"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data direction bit 8" "Input,Output"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data direction bit 7" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data direction bit 6" "Input,Output"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data direction bit 5" "Input,Output"
newline
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port data direction bit 4" "Input,Output"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data direction bit 2" "Input,Output"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data direction bit 1" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data direction bit 0" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL[31] ,Port data direction toggle bit 31" "No effect,Toggle"
bitfld.long 0x00 30. " [30] ,Port data direction toggle bit 30" "No effect,Toggle"
newline
bitfld.long 0x00 28. " [28] ,Port data direction toggle bit 28" "No effect,Toggle"
bitfld.long 0x00 27. " [27] ,Port data direction toggle bit 27" "No effect,Toggle"
newline
bitfld.long 0x00 25. " [25] ,Port data direction toggle bit 25" "No effect,Toggle"
bitfld.long 0x00 24. " [24] ,Port data direction toggle bit 24" "No effect,Toggle"
newline
bitfld.long 0x00 23. " [23] ,Port data direction toggle bit 23" "No effect,Toggle"
bitfld.long 0x00 22. " [22] ,Port data direction toggle bit 22" "No effect,Toggle"
newline
bitfld.long 0x00 21. " [21] ,Port data direction toggle bit 21" "No effect,Toggle"
bitfld.long 0x00 20. " [20] ,Port data direction toggle bit 20" "No effect,Toggle"
newline
bitfld.long 0x00 19. " [19] ,Port data direction toggle bit 19" "No effect,Toggle"
bitfld.long 0x00 18. " [18] ,Port data direction toggle bit 18" "No effect,Toggle"
newline
bitfld.long 0x00 17. " [17] ,Port data direction toggle bit 17" "No effect,Toggle"
bitfld.long 0x00 16. " [16] ,Port data direction toggle bit 16" "No effect,Toggle"
newline
bitfld.long 0x00 15. " [15] ,Port data direction toggle bit 15" "No effect,Toggle"
bitfld.long 0x00 14. " [14] ,Port data direction toggle bit 14" "No effect,Toggle"
newline
bitfld.long 0x00 13. " [13] ,Port data direction toggle bit 13" "No effect,Toggle"
bitfld.long 0x00 12. " [12] ,Port data direction toggle bit 12" "No effect,Toggle"
newline
bitfld.long 0x00 11. " [11] ,Port data direction toggle bit 11" "No effect,Toggle"
bitfld.long 0x00 10. " [10] ,Port data direction toggle bit 10" "No effect,Toggle"
newline
bitfld.long 0x00 9. " [9] ,Port data direction toggle bit 9" "No effect,Toggle"
bitfld.long 0x00 8. " [8] ,Port data direction toggle bit 8" "No effect,Toggle"
newline
bitfld.long 0x00 7. " [7] ,Port data direction toggle bit 7" "No effect,Toggle"
bitfld.long 0x00 6. " [6] ,Port data direction toggle bit 6" "No effect,Toggle"
newline
bitfld.long 0x00 5. " [5] ,Port data direction toggle bit 5" "No effect,Toggle"
newline
bitfld.long 0x00 4. " [4] ,Port data direction toggle bit 4" "No effect,Toggle"
newline
bitfld.long 0x00 3. " [3] ,Port data direction toggle bit 3" "No effect,Toggle"
bitfld.long 0x00 2. " [2] ,Port data direction toggle bit 2" "No effect,Toggle"
newline
bitfld.long 0x00 1. " [1] ,Port data direction toggle bit 1" "No effect,Toggle"
bitfld.long 0x00 0. " [0] ,Port data direction toggle bit 0" "No effect,Toggle"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT[31] ,Port data output value bit 31" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port data output value bit 30" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port data output value bit 28" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port data output value bit 27" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data output value bit 25" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data output value bit 24" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port data output value bit 23" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port data output value bit 22" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data output value bit 21" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data output value bit 20" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data output value bit 19" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data output value bit 18" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data output value bit 17" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data output value bit 16" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data output value bit 15" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data output value bit 14" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data output value bit 13" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data output value bit 12" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data output value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data output value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data output value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data output value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data output value bit 7" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data output value bit 6" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data output value bit 5" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port data output value bit 4" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data output value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data output value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data output value bit 1" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data output value bit 0" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL[31] ,Port data output value toggle bit 31" "Not changed,Toggled"
bitfld.long 0x00 30. " [30] ,Port data output value toggle bit 30" "Not changed,Toggled"
newline
bitfld.long 0x00 28. " [28] ,Port data output value toggle bit 28" "Not changed,Toggled"
bitfld.long 0x00 27. " [27] ,Port data output value toggle bit 27" "Not changed,Toggled"
newline
bitfld.long 0x00 25. " [25] ,Port data output value toggle bit 25" "Not changed,Toggled"
bitfld.long 0x00 24. " [24] ,Port data output value toggle bit 24" "Not changed,Toggled"
newline
bitfld.long 0x00 23. " [23] ,Port data output value toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,Port data output value toggle bit 22" "Not changed,Toggled"
newline
bitfld.long 0x00 21. " [21] ,Port data output value toggle bit 21" "Not changed,Toggled"
bitfld.long 0x00 20. " [20] ,Port data output value toggle bit 20" "Not changed,Toggled"
newline
bitfld.long 0x00 19. " [19] ,Port data output value toggle bit 19" "Not changed,Toggled"
bitfld.long 0x00 18. " [18] ,Port data output value toggle bit 18" "Not changed,Toggled"
newline
bitfld.long 0x00 17. " [17] ,Port data output value toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,Port data output value toggle bit 16" "Not changed,Toggled"
newline
bitfld.long 0x00 15. " [15] ,Port data output value toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,Port data output value toggle bit 14" "Not changed,Toggled"
newline
bitfld.long 0x00 13. " [13] ,Port data output value toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,Port data output value toggle bit 12" "Not changed,Toggled"
newline
bitfld.long 0x00 11. " [11] ,Port data output value toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,Port data output value toggle bit 10" "Not changed,Toggled"
newline
bitfld.long 0x00 9. " [9] ,Port data output value toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,Port data output value toggle bit 8" "Not changed,Toggled"
newline
bitfld.long 0x00 7. " [7] ,Port data output value toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,Port data output value toggle bit 6" "Not changed,Toggled"
newline
bitfld.long 0x00 5. " [5] ,Port data output value toggle bit 5" "Not changed,Toggled"
newline
bitfld.long 0x00 4. " [4] ,Port data output value toggle bit 4" "Not changed,Toggled"
newline
bitfld.long 0x00 3. " [3] ,Port data output value toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,Port data output value toggle bit 2" "Not changed,Toggled"
newline
bitfld.long 0x00 1. " [1] ,Port data output value toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,Port data output value toggle bit 0" "Not changed,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN[31] ,Port data input value bit 31" "Low level,High level"
bitfld.long 0x00 30. " [30] ,Port data input value bit 30" "Low level,High level"
newline
bitfld.long 0x00 27. " [27] ,Port data input value bit 27" "Low level,High level"
bitfld.long 0x00 28. " [28] ,Port data input value bit 28" "Low level,High level"
newline
bitfld.long 0x00 25. " [25] ,Port data input value bit 25" "Low level,High level"
bitfld.long 0x00 24. " [24] ,Port data input value bit 24" "Low level,High level"
newline
bitfld.long 0x00 23. " [23] ,Port data input value bit 23" "Low level,High level"
bitfld.long 0x00 22. " [22] ,Port data input value bit 22" "Low level,High level"
newline
bitfld.long 0x00 21. " [21] ,Port data input value bit 21" "Low level,High level"
bitfld.long 0x00 20. " [20] ,Port data input value bit 20" "Low level,High level"
newline
bitfld.long 0x00 19. " [19] ,Port data input value bit 19" "Low level,High level"
bitfld.long 0x00 18. " [18] ,Port data input value bit 18" "Low level,High level"
newline
bitfld.long 0x00 17. " [17] ,Port data input value bit 17" "Low level,High level"
bitfld.long 0x00 16. " [16] ,Port data input value bit 16" "Low level,High level"
newline
bitfld.long 0x00 15. " [15] ,Port data input value bit 15" "Low level,High level"
bitfld.long 0x00 14. " [14] ,Port data input value bit 14" "Low level,High level"
newline
bitfld.long 0x00 13. " [13] ,Port data input value bit 13" "Low level,High level"
bitfld.long 0x00 12. " [12] ,Port data input value bit 12" "Low level,High level"
newline
bitfld.long 0x00 11. " [11] ,Port data input value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,Port data input value bit 10" "Low level,High level"
newline
bitfld.long 0x00 9. " [9] ,Port data input value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,Port data input value bit 8" "Low level,High level"
newline
bitfld.long 0x00 7. " [7] ,Port data input value bit 7" "Low level,High level"
bitfld.long 0x00 6. " [6] ,Port data input value bit 6" "Low level,High level"
newline
bitfld.long 0x00 5. " [5] ,Port data input value bit 5" "Low level,High level"
newline
bitfld.long 0x00 4. " [4] ,Port data input value bit 4" "Low level,High level"
newline
bitfld.long 0x00 3. " [3] ,Port data input value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,Port data input value bit 2" "Low level,High level"
newline
bitfld.long 0x00 1. " [1] ,Port data input value bit 1" "Low level,High level"
bitfld.long 0x00 0. " [0] ,Port data input value bit 0" "Low level,High level"
group.long 0x20++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " SAMPLING[31] ,Input sampling mode bit 31" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,Input sampling mode bit 30" "Disabled,Enabled"
newline
bitfld.long 0x00 28. " [28] ,Input sampling mode bit 28" "Disabled,Enabled"
bitfld.long 0x00 27. " [27] ,Input sampling mode bit 27" "Disabled,Enabled"
newline
bitfld.long 0x00 25. " [25] ,Input sampling mode bit 25" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,Input sampling mode bit 24" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,Input sampling mode bit 23" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,Input sampling mode bit 22" "Disabled,Enabled"
newline
bitfld.long 0x00 21. " [21] ,Input sampling mode bit 21" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,Input sampling mode bit 20" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,Input sampling mode bit 19" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,Input sampling mode bit 18" "Disabled,Enabled"
newline
bitfld.long 0x00 17. " [17] ,Input sampling mode bit 17" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,Input sampling mode bit 16" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,Input sampling mode bit 15" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,Input sampling mode bit 14" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " [13] ,Input sampling mode bit 13" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,Input sampling mode bit 12" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,Input sampling mode bit 11" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,Input sampling mode bit 10" "Disabled,Enabled"
newline
bitfld.long 0x00 9. " [9] ,Input sampling mode bit 9" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,Input sampling mode bit 8" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,Input sampling mode bit 7" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Input sampling mode bit 6" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " [5] ,Input sampling mode bit 5" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " [4] ,Input sampling mode bit 4" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Input sampling mode bit 3" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Input sampling mode bit 2" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Input sampling mode bit 1" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Input sampling mode bit 0" "Disabled,Enabled"
newline
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-word select" "Lower 16,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral multiplexing" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
bitfld.long 0x00 22. " DRVSTR ,Output driver strength selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull enable" "0,1"
bitfld.long 0x00 17. " INEN ,Input enable" "0,1"
bitfld.long 0x00 16. " PMUXEN ,Peripheral multiplexer enable" "0,1"
newline
bitfld.long 0x00 15. " PINMASK[15] ,Pin 15 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 14. " [14] ,Pin 14 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 13. " [13] ,Pin 13 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 12. " [12] ,Pin 12 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 11. " [11] ,Pin 11 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 10. " [10] ,Pin 10 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 9. " [9] ,Pin 9 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 8. " [8] ,Pin 8 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 7. " [7] ,Pin 7 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 6. " [6] ,Pin 6 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 5. " [5] ,Pin 5 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 4. " [4] ,Pin 4 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 3. " [3] ,Pin 3 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 2. " [2] ,Pin 2 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 1. " [1] ,Pin 1 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 0. " [0] ,Pin 0 mask for multiple pin configuration" "Not updated,Updated"
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 23. " PORTEI2 ,Port event input 2 enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,Port event action 2" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 7. " PORTEI0 ,Port event input 0 enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,Port event action 0" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
width 10.
tree "Peripheral Multiplexing"
sif cpuis("ATSAMC21N*")
group.byte 0x30++0x0F
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PA01)" "EXTINT[1],,,SERCOM1/PAD[1],TC2/WO[1],,,CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PA00)" "EXTINT[0],,,SERCOM1/PAD[0],TC2/WO[0],,,CMP[2],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PA03)" "EXTINT[3],ADC/VREFA|DAC/VREFB|AIN[1]|Y[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PA02)" "EXTINT[2],AIN[0]|AIN[4]|Y[0]|VOUT,?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PA05)" "EXTINT[5],AIN[5]|AIN[1]|Y[3],,SERCOM0/PAD[1],TC0/WO[1],,,,CCL0/IN[1],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PA04)" "EXTINT[4],SDADC/VREFB|AIN[4]|AIN[0]|Y[2],,SERCOM0/PAD[0],TC0/WO[0],,,,CCL0/IN[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PA07)" "EXTINT[7],AIN[7]|INP[0]|AIN[3]|Y[5],,SERCOM0/PAD[3],TC1/WO[1],,,,CCL0/OUT[0],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PA06)" "EXTINT[6],AIN[6]|INN[0]|AIN[2]|Y[4],,SERCOM0/PAD[2],TC1/WO[0],,,,CCL0/IN[2],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PA09)" "EXTINT[9],AIN[11]|X[1]/Y[17],SERCOM0/PAD[1],SERCOM2/PAD[1],TC0/WO[1],TCC0/WO[1],,,CCL1/IN[4],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PA08)" "NMI,AIN[10]|X[0]/Y[16],SERCOM0/PAD[0],SERCOM2/PAD[0],TC0/WO[0],TCC0/WO[0],,,CCL1/IN[3],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PA11)" "EXTINT[11],X[3]/Y[19],SERCOM0/PAD[3],SERCOM2/PAD[3],TC1/WO[1],TCC0/WO[3],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PA10)" "EXTINT[10],X[2]/Y[18],SERCOM0/PAD[2],SERCOM2/PAD[2],TC1/WO[0],TCC0/WO[2],,GCLK_IO[4],CCL1/IN[5],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PA13)" "EXTINT[13],,SERCOM2/PAD[1],SERCOM4/PAD[1],TC2/WO[1],TCC0_WO7,,CMP[1],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PA12)" "EXTINT[12],,SERCOM2/PAD[0],SERCOM4/PAD[0],TC2/WO[0],TCC0_WO6,,CMP[0],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PA15)" "EXTINT[15],,SERCOM2/PAD[3],SERCOM4/PAD[3],TC3/WO[1],,,GCLK_IO[1],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PA14)" "EXTINT[14],,SERCOM2/PAD[2],SERCOM4/PAD[2],TC3/WO[0],,,GCLK_IO[0],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PA17)" "EXTINT[1],X[5]/Y[21],SERCOM1/PAD[1],SERCOM3/PAD[1],TC2/WO[1],TCC1/WO[1],,GCLK_IO[3],CCL0/IN[1],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PA16)" "EXTINT[0],X[4]/Y[20],SERCOM1/PAD[0],SERCOM3/PAD[0],TC2/WO[0],TCC1/WO[0],,GCLK_IO[2],CCL0/IN[0],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PA19)" "EXTINT[3],X[7]/Y[23],SERCOM1/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC1/WO[3],,CMP[1],CCL0/OUT[0],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PA18)" "EXTINT[2],X[6]/Y[22],SERCOM1/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC1/WO[2],,CMP[0],CCL0/IN[2],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PA21)" "EXTINT[5],X[9]/Y[25],SERCOM5/PAD[3],SERCOM3/PAD[3],TC7/WO[1],TCC2/WO[1],,GCLK_IO[5],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PA20)" "EXTINT[4],X[8]/Y[24],SERCOM5/PAD[2],SERCOM3/PAD[2],TC7/WO[0],TCC2/WO[0],,GCLK_IO[4],?..."
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PMUXO ,Peripheral multiplexing odd (PA23)" "EXTINT[7],X[11]/Y[27],SERCOM3/PAD[1],SERCOM5/PAD[1],TC4/WO[1],TCC1/WO[1],CAN0/RX,GCLK_IO[7],CCL2/IN[7],?..."
bitfld.byte 0x0B 0.--3. " PMUXE ,Peripheral multiplexing even (PA22)" "EXTINT[6],X[10]/Y[26],SERCOM3/PAD[0],SERCOM5/PAD[0],TC4/WO[0],TCC1/WO[0],CAN0/TX,GCLK_IO[6],CCL2/IN[6],?..."
line.byte 0x0C "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x0C 4.--7. " PMUXO ,Peripheral multiplexing odd (PA25)" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC5/WO[1],TCC2/WO[1],CAN0/RX,CMP[3],CCL2/OUT[2],?..."
bitfld.byte 0x0C 0.--3. " PMUXE ,Peripheral multiplexing even (PA24)" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC5/WO[0],TCC2/WO[0],CAN0/TX,CMP[2],CCL2/IN[8],?..."
line.byte 0x0D "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x0D 4.--7. " PMUXO ,Peripheral multiplexing odd (PA27)" "EXTINT[15],,,,,,,GCLK_IO[0],?..."
line.byte 0x0E "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x0E 0.--3. " PMUXE ,Peripheral multiplexing even (PA28)" "EXTINT[8],,,,,,,GCLK_IO[0],?..."
line.byte 0x0F "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x0F 4.--7. " PMUXO ,Peripheral multiplexing odd (PA31)" "EXTINT[11],,,SERCOM1/PAD[3],TC1/WO[1],,CORTEX_M0P/SWDIO,,CCL1/OUT[1],?..."
bitfld.byte 0x0F 0.--3. " PMUXE ,Peripheral multiplexing even (PA30)" "EXTINT[10],,,SERCOM1/PAD[2],TC1/WO[0],,CORTEX_M0P/SWCLK,GCLK_IO[0],CCL1/IN[3],?..."
else
group.byte 0x30++0x0F
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PA01)" "EXTINT[1],,,SERCOM1/PAD[1],TC2/WO[1],,,CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PA00)" "EXTINT[0],,,SERCOM1/PAD[0],TC2/WO[0],,,CMP[2],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PA03)" "EXTINT[3],ADC/VREFA|AIN[1]|Y[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PA02)" "EXTINT[2],AIN[0]|AIN[4]|Y[0],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PA05)" "EXTINT[5],AIN[5]|AIN[1]|Y[3],,SERCOM0/PAD[1],TC0/WO[1],,,,CCL0/IN[1],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PA04)" "EXTINT[4],AIN[4]|AIN[0]|Y[2],,SERCOM0/PAD[0],TC0/WO[0],,,,CCL0/IN[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PA07)" "EXTINT[7],AIN[7]|AIN[3]|Y[5],,SERCOM0/PAD[3],TC1/WO[1],,,,CCL0/OUT[0],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PA06)" "EXTINT[6],AIN[6]|AIN[2]|Y[4],,SERCOM0/PAD[2],TC1/WO[0],,,,CCL0/IN[2],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PA09)" "EXTINT[9],|X[1]/Y[17],SERCOM0/PAD[1],SERCOM2/PAD[1],TC0/WO[1],TCC0/WO[1],,,CCL1/IN[4],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PA08)" "NMI,X[0]/Y[16],SERCOM0/PAD[0],SERCOM2/PAD[0],TC0/WO[0],TCC0/WO[0],,,CCL1/IN[3],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PA11)" "EXTINT[11],X[3]/Y[19],SERCOM0/PAD[3],SERCOM2/PAD[3],TC1/WO[1],TCC0/WO[3],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PA10)" "EXTINT[10],X[2]/Y[18],SERCOM0/PAD[2],SERCOM2/PAD[2],TC1/WO[0],TCC0/WO[2],,GCLK_IO[4],CCL1/IN[5],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PA13)" "EXTINT[13],,SERCOM2/PAD[1],SERCOM4/PAD[1],TC2/WO[1],TCC0_WO7,,CMP[1],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PA12)" "EXTINT[12],,SERCOM2/PAD[0],SERCOM4/PAD[0],TC2/WO[0],TCC0_WO6,,CMP[0],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PA15)" "EXTINT[15],,SERCOM2/PAD[3],SERCOM4/PAD[3],TC3/WO[1],,,GCLK_IO[1],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PA14)" "EXTINT[14],,SERCOM2/PAD[2],SERCOM4/PAD[2],TC3/WO[0],,,GCLK_IO[0],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PA17)" "EXTINT[1],X[5]/Y[21],SERCOM1/PAD[1],SERCOM3/PAD[1],TC2/WO[1],TCC1/WO[1],,GCLK_IO[3],CCL0/IN[1],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PA16)" "EXTINT[0],X[4]/Y[20],SERCOM1/PAD[0],SERCOM3/PAD[0],TC2/WO[0],TCC1/WO[0],,GCLK_IO[2],CCL0/IN[0],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PA19)" "EXTINT[3],X[7]/Y[23],SERCOM1/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC1/WO[3],,CMP[1],CCL0/OUT[0],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PA18)" "EXTINT[2],X[6]/Y[22],SERCOM1/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC1/WO[2],,CMP[0],CCL0/IN[2],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PA21)" "EXTINT[5],X[9]/Y[25],SERCOM5/PAD[3],SERCOM3/PAD[3],TC7/WO[1],TCC2/WO[1],,GCLK_IO[5],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PA20)" "EXTINT[4],X[8]/Y[24],SERCOM5/PAD[2],SERCOM3/PAD[2],TC7/WO[0],TCC2/WO[0],,GCLK_IO[4],?..."
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PMUXO ,Peripheral multiplexing odd (PA23)" "EXTINT[7],X[11]/Y[27],SERCOM3/PAD[1],SERCOM5/PAD[1],TC4/WO[1],TCC1/WO[1],,GCLK_IO[7],CCL2/IN[7],?..."
bitfld.byte 0x0B 0.--3. " PMUXE ,Peripheral multiplexing even (PA22)" "EXTINT[6],X[10]/Y[26],SERCOM3/PAD[0],SERCOM5/PAD[0],TC4/WO[0],TCC1/WO[0],,GCLK_IO[6],CCL2/IN[6],?..."
line.byte 0x0C "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x0C 4.--7. " PMUXO ,Peripheral multiplexing odd (PA25)" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC5/WO[1],TCC2/WO[1],,CMP[3],CCL2/OUT[2],?..."
bitfld.byte 0x0C 0.--3. " PMUXE ,Peripheral multiplexing even (PA24)" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC5/WO[0],TCC2/WO[0],,CMP[2],CCL2/IN[8],?..."
line.byte 0x0D "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x0D 4.--7. " PMUXO ,Peripheral multiplexing odd (PA27)" "EXTINT[15],,,,,,,GCLK_IO[0],?..."
line.byte 0x0E "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x0E 0.--3. " PMUXE ,Peripheral multiplexing even (PA28)" "EXTINT[8],,,,,,,GCLK_IO[0],?..."
line.byte 0x0F "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x0F 4.--7. " PMUXO ,Peripheral multiplexing odd (PA31)" "EXTINT[11],,,SERCOM1/PAD[3],TC1/WO[1],,CORTEX_M0P/SWDIO,,CCL1/OUT[1],?..."
bitfld.byte 0x0F 0.--3. " PMUXE ,Peripheral multiplexing even (PA30)" "EXTINT[10],,,SERCOM1/PAD[2],TC1/WO[0],,CORTEX_M0P/SWCLK,GCLK_IO[0],CCL1/IN[3],?..."
endif
tree.end
tree "Pin Configuration"
group.byte 0x40++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x41++0x00
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x42++0x00
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x43++0x00
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x44++0x00
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x45++0x00
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x46++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4A++0x00
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4B++0x00
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4C++0x00
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4D++0x00
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x54++0x00
line.byte 0x00 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x55++0x00
line.byte 0x00 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x56++0x00
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x57++0x00
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x58++0x00
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x59++0x00
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5C++0x00
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5E++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5F++0x00
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
tree.end
width 0x0B
tree.end
tree "Port B"
base ad:0x41000080
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR[31] ,Port data direction bit 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port data direction bit 30" "Input,Output"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data direction bit 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data direction bit 24" "Input,Output"
newline
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port data direction bit 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port data direction bit 22" "Input,Output"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data direction bit 21" "Input,Output"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data direction bit 20" "Input,Output"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data direction bit 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data direction bit 18" "Input,Output"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data direction bit 17" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data direction bit 16" "Input,Output"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data direction bit 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data direction bit 14" "Input,Output"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data direction bit 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data direction bit 12" "Input,Output"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data direction bit 10" "Input,Output"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data direction bit 8" "Input,Output"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data direction bit 7" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data direction bit 6" "Input,Output"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data direction bit 5" "Input,Output"
newline
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port data direction bit 4" "Input,Output"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data direction bit 2" "Input,Output"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data direction bit 1" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data direction bit 0" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL[31] ,Port data direction toggle bit 31" "No effect,Toggle"
bitfld.long 0x00 30. " [30] ,Port data direction toggle bit 30" "No effect,Toggle"
newline
bitfld.long 0x00 25. " [25] ,Port data direction toggle bit 25" "No effect,Toggle"
bitfld.long 0x00 24. " [24] ,Port data direction toggle bit 24" "No effect,Toggle"
newline
bitfld.long 0x00 23. " [23] ,Port data direction toggle bit 23" "No effect,Toggle"
bitfld.long 0x00 22. " [22] ,Port data direction toggle bit 22" "No effect,Toggle"
newline
bitfld.long 0x00 21. " [21] ,Port data direction toggle bit 21" "No effect,Toggle"
bitfld.long 0x00 20. " [20] ,Port data direction toggle bit 20" "No effect,Toggle"
newline
bitfld.long 0x00 19. " [19] ,Port data direction toggle bit 19" "No effect,Toggle"
bitfld.long 0x00 18. " [18] ,Port data direction toggle bit 18" "No effect,Toggle"
newline
bitfld.long 0x00 17. " [17] ,Port data direction toggle bit 17" "No effect,Toggle"
bitfld.long 0x00 16. " [16] ,Port data direction toggle bit 16" "No effect,Toggle"
newline
bitfld.long 0x00 15. " [15] ,Port data direction toggle bit 15" "No effect,Toggle"
bitfld.long 0x00 14. " [14] ,Port data direction toggle bit 14" "No effect,Toggle"
newline
bitfld.long 0x00 13. " [13] ,Port data direction toggle bit 13" "No effect,Toggle"
bitfld.long 0x00 12. " [12] ,Port data direction toggle bit 12" "No effect,Toggle"
newline
bitfld.long 0x00 11. " [11] ,Port data direction toggle bit 11" "No effect,Toggle"
bitfld.long 0x00 10. " [10] ,Port data direction toggle bit 10" "No effect,Toggle"
newline
bitfld.long 0x00 9. " [9] ,Port data direction toggle bit 9" "No effect,Toggle"
bitfld.long 0x00 8. " [8] ,Port data direction toggle bit 8" "No effect,Toggle"
newline
bitfld.long 0x00 7. " [7] ,Port data direction toggle bit 7" "No effect,Toggle"
bitfld.long 0x00 6. " [6] ,Port data direction toggle bit 6" "No effect,Toggle"
newline
bitfld.long 0x00 5. " [5] ,Port data direction toggle bit 5" "No effect,Toggle"
newline
bitfld.long 0x00 4. " [4] ,Port data direction toggle bit 4" "No effect,Toggle"
newline
bitfld.long 0x00 3. " [3] ,Port data direction toggle bit 3" "No effect,Toggle"
bitfld.long 0x00 2. " [2] ,Port data direction toggle bit 2" "No effect,Toggle"
newline
bitfld.long 0x00 1. " [1] ,Port data direction toggle bit 1" "No effect,Toggle"
bitfld.long 0x00 0. " [0] ,Port data direction toggle bit 0" "No effect,Toggle"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT[31] ,Port data output value bit 31" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port data output value bit 30" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data output value bit 25" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data output value bit 24" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port data output value bit 23" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port data output value bit 22" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data output value bit 21" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data output value bit 20" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data output value bit 19" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data output value bit 18" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data output value bit 17" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data output value bit 16" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data output value bit 15" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data output value bit 14" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data output value bit 13" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data output value bit 12" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data output value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data output value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data output value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data output value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data output value bit 7" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data output value bit 6" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data output value bit 5" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port data output value bit 4" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data output value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data output value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data output value bit 1" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data output value bit 0" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL[31] ,Port data output value toggle bit 31" "Not changed,Toggled"
bitfld.long 0x00 30. " [30] ,Port data output value toggle bit 30" "Not changed,Toggled"
newline
bitfld.long 0x00 25. " [25] ,Port data output value toggle bit 25" "Not changed,Toggled"
bitfld.long 0x00 24. " [24] ,Port data output value toggle bit 24" "Not changed,Toggled"
newline
bitfld.long 0x00 23. " [23] ,Port data output value toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,Port data output value toggle bit 22" "Not changed,Toggled"
newline
bitfld.long 0x00 21. " [21] ,Port data output value toggle bit 21" "Not changed,Toggled"
bitfld.long 0x00 20. " [20] ,Port data output value toggle bit 20" "Not changed,Toggled"
newline
bitfld.long 0x00 19. " [19] ,Port data output value toggle bit 19" "Not changed,Toggled"
bitfld.long 0x00 18. " [18] ,Port data output value toggle bit 18" "Not changed,Toggled"
newline
bitfld.long 0x00 17. " [17] ,Port data output value toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,Port data output value toggle bit 16" "Not changed,Toggled"
newline
bitfld.long 0x00 15. " [15] ,Port data output value toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,Port data output value toggle bit 14" "Not changed,Toggled"
newline
bitfld.long 0x00 13. " [13] ,Port data output value toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,Port data output value toggle bit 12" "Not changed,Toggled"
newline
bitfld.long 0x00 11. " [11] ,Port data output value toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,Port data output value toggle bit 10" "Not changed,Toggled"
newline
bitfld.long 0x00 9. " [9] ,Port data output value toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,Port data output value toggle bit 8" "Not changed,Toggled"
newline
bitfld.long 0x00 7. " [7] ,Port data output value toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,Port data output value toggle bit 6" "Not changed,Toggled"
newline
bitfld.long 0x00 5. " [5] ,Port data output value toggle bit 5" "Not changed,Toggled"
newline
bitfld.long 0x00 4. " [4] ,Port data output value toggle bit 4" "Not changed,Toggled"
newline
bitfld.long 0x00 3. " [3] ,Port data output value toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,Port data output value toggle bit 2" "Not changed,Toggled"
newline
bitfld.long 0x00 1. " [1] ,Port data output value toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,Port data output value toggle bit 0" "Not changed,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN[31] ,Port data input value bit 31" "Low level,High level"
bitfld.long 0x00 30. " [30] ,Port data input value bit 30" "Low level,High level"
newline
bitfld.long 0x00 25. " [25] ,Port data input value bit 25" "Low level,High level"
bitfld.long 0x00 24. " [24] ,Port data input value bit 24" "Low level,High level"
newline
bitfld.long 0x00 23. " [23] ,Port data input value bit 23" "Low level,High level"
bitfld.long 0x00 22. " [22] ,Port data input value bit 22" "Low level,High level"
newline
bitfld.long 0x00 21. " [21] ,Port data input value bit 21" "Low level,High level"
bitfld.long 0x00 20. " [20] ,Port data input value bit 20" "Low level,High level"
newline
bitfld.long 0x00 19. " [19] ,Port data input value bit 19" "Low level,High level"
bitfld.long 0x00 18. " [18] ,Port data input value bit 18" "Low level,High level"
newline
bitfld.long 0x00 17. " [17] ,Port data input value bit 17" "Low level,High level"
bitfld.long 0x00 16. " [16] ,Port data input value bit 16" "Low level,High level"
newline
bitfld.long 0x00 15. " [15] ,Port data input value bit 15" "Low level,High level"
bitfld.long 0x00 14. " [14] ,Port data input value bit 14" "Low level,High level"
newline
bitfld.long 0x00 13. " [13] ,Port data input value bit 13" "Low level,High level"
bitfld.long 0x00 12. " [12] ,Port data input value bit 12" "Low level,High level"
newline
bitfld.long 0x00 11. " [11] ,Port data input value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,Port data input value bit 10" "Low level,High level"
newline
bitfld.long 0x00 9. " [9] ,Port data input value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,Port data input value bit 8" "Low level,High level"
newline
bitfld.long 0x00 7. " [7] ,Port data input value bit 7" "Low level,High level"
bitfld.long 0x00 6. " [6] ,Port data input value bit 6" "Low level,High level"
newline
bitfld.long 0x00 5. " [5] ,Port data input value bit 5" "Low level,High level"
newline
bitfld.long 0x00 4. " [4] ,Port data input value bit 4" "Low level,High level"
newline
bitfld.long 0x00 3. " [3] ,Port data input value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,Port data input value bit 2" "Low level,High level"
newline
bitfld.long 0x00 1. " [1] ,Port data input value bit 1" "Low level,High level"
bitfld.long 0x00 0. " [0] ,Port data input value bit 0" "Low level,High level"
group.long 0x20++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " SAMPLING[31] ,Input sampling mode bit 31" "Disabled,Enabled"
bitfld.long 0x00 30. " [30] ,Input sampling mode bit 30" "Disabled,Enabled"
newline
bitfld.long 0x00 25. " [25] ,Input sampling mode bit 25" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,Input sampling mode bit 24" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " [23] ,Input sampling mode bit 23" "Disabled,Enabled"
bitfld.long 0x00 22. " [22] ,Input sampling mode bit 22" "Disabled,Enabled"
newline
bitfld.long 0x00 21. " [21] ,Input sampling mode bit 21" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,Input sampling mode bit 20" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,Input sampling mode bit 19" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,Input sampling mode bit 18" "Disabled,Enabled"
newline
bitfld.long 0x00 17. " [17] ,Input sampling mode bit 17" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,Input sampling mode bit 16" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,Input sampling mode bit 15" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,Input sampling mode bit 14" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " [13] ,Input sampling mode bit 13" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,Input sampling mode bit 12" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,Input sampling mode bit 11" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,Input sampling mode bit 10" "Disabled,Enabled"
newline
bitfld.long 0x00 9. " [9] ,Input sampling mode bit 9" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,Input sampling mode bit 8" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,Input sampling mode bit 7" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Input sampling mode bit 6" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " [5] ,Input sampling mode bit 5" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " [4] ,Input sampling mode bit 4" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Input sampling mode bit 3" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Input sampling mode bit 2" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Input sampling mode bit 1" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Input sampling mode bit 0" "Disabled,Enabled"
newline
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-word select" "Lower 16,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral multiplexing" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
bitfld.long 0x00 22. " DRVSTR ,Output driver strength selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull enable" "0,1"
bitfld.long 0x00 17. " INEN ,Input enable" "0,1"
bitfld.long 0x00 16. " PMUXEN ,Peripheral multiplexer enable" "0,1"
newline
bitfld.long 0x00 15. " PINMASK[15] ,Pin 15 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 14. " [14] ,Pin 14 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 13. " [13] ,Pin 13 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 12. " [12] ,Pin 12 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 11. " [11] ,Pin 11 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 10. " [10] ,Pin 10 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 9. " [9] ,Pin 9 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 8. " [8] ,Pin 8 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 7. " [7] ,Pin 7 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 6. " [6] ,Pin 6 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 5. " [5] ,Pin 5 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 4. " [4] ,Pin 4 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 3. " [3] ,Pin 3 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 2. " [2] ,Pin 2 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 1. " [1] ,Pin 1 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 0. " [0] ,Pin 0 mask for multiple pin configuration" "Not updated,Updated"
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 23. " PORTEI2 ,Port event input 2 enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,Port event action 2" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 7. " PORTEI0 ,Port event input 0 enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,Port event action 0" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
width 10.
tree "Peripheral Multiplexing"
sif cpuis("ATSAMC21N*")
group.byte 0x30++0x0C
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PB01)" "EXTINT[1],AIN[1]|Y[7],,SERCOM5/PAD[3],TC7/WO[1],,,,CCL0/IN[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PB00)" "EXTINT[0],AIN[0]|Y[6],,SERCOM5/PAD[2],TC7/WO[0],,,,CCL0/IN[1],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PB03)" "EXTINT[3],AIN[3]|Y[9],,SERCOM5/PAD[1],TC6/WO[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PB02)" "EXTINT[2],AIN[2]|Y[8],,SERCOM5/PAD[0],TC6/WO[0],,,,CCL0/OUT[0],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PB05)" "EXTINT[5],AIN[7]|AIN[6]|Y[11],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PB04)" "EXTINT[4],AIN[6]|AIN[5]|Y[10],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PB07)" "EXTINT[7],AIN[9]|INP[2]|Y[13],SERCOM7/PAD[3],SERCOM7/PAD[2],,,,,CCL2/IN[7],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PB06)" "EXTINT[6],AIN[8]|INN[2]|AIN[7]|Y[12],SERCOM7/PAD[1],,,,,,CCL2/IN[6],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PB09)" "EXTINT[9],AIN[3]|AIN[5]|INP[1]|Y[15],,SERCOM4/PAD[1],TC4/WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PB08)" "EXTINT[8],AIN[2]|AIN[4]|INN[1]|Y[14],SERCOM7/PAD[2],SERCOM7/PAD[3],TC4/WO[0],,,,CCL2/IN[8],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PB11)" "EXTINT[11],,,SERCOM4/PAD[3],TC5/WO[1],TCC0_WO5,,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PB10)" "EXTINT[10],,,SERCOM4/PAD[2],TC5/WO[0],TCC0_WO4,,GCLK_IO[4],CCL1/IN[5],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PB13)" "EXTINT[13],X[13]/Y[29],SERCOM4/PAD[1],,TC4/WO[1],TCC0_WO7,CAN1/RX,GCLK_IO[7],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PB12)" "EXTINT[12],X[12]/Y[28],SERCOM4/PAD[0],,TC4/WO[0],TCC0_WO6,CAN1/TX,GCLK_IO[6],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PB15)" "EXTINT[15],X[15]/Y[31],SERCOM4/PAD[3],,TC5/WO[1],,CAN1/RX,GCLK_IO[1],CCL3/IN[10],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PB14)" "EXTINT[14],X[14]/Y[30],SERCOM4/PAD[2],,TC5/WO[0],,CAN1/TX,GCLK_IO[0],CCL3/IN[9],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PB17)" "EXTINT[1],,SERCOM5/PAD[1],,TC6/WO[1],,,GCLK_IO[3],CCL3/OUT[3],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PB16)" "EXTINT[0],,SERCOM5/PAD[0],,TC6/WO[0],,,GCLK_IO[2],CCL3/IN[11],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PB19)" "EXTINT[3],,SERCOM5/PAD[3],SERCOM3/PAD[3],,,,GCLK_IO[5],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PB18)" "EXTINT[2],,SERCOM5/PAD[2],SERCOM3/PAD[2],,,,GCLK_IO[4],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PB21)" "EXTINT[5],,SERCOM3/PAD[1],SERCOM2/PAD[1],,,,GCLK_IO[7],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PB20)" "EXTINT[4],,SERCOM3/PAD[0],SERCOM2/PAD[0],,,,GCLK_IO[6],?..."
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PMUXO ,Peripheral multiplexing odd (PB23)" "EXTINT[7],,SERCOM0/PAD[3],SERCOM5/PAD[3],TC7/WO[1],TCC1/WO[3],,GCLK_IO[1],CCL0/OUT[0],?..."
bitfld.byte 0x0B 0.--3. " PMUXE ,Peripheral multiplexing even (PB22)" "EXTINT[6],,SERCOM0/PAD[2],SERCOM5/PAD[2],TC7/WO[0],TCC1/WO[2],,GCLK_IO[0],CCL0/IN[0],?..."
line.byte 0x0C "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x0C 4.--7. " PMUXO ,Peripheral multiplexing odd (PB25)" "EXTINT[9],,SERCOM0/PAD[1],SERCOM4/PAD[1],,,,CMP[1],?..."
bitfld.byte 0x0C 0.--3. " PMUXE ,Peripheral multiplexing even (PB24)" "EXTINT[8],,SERCOM0/PAD[0],SERCOM4/PAD[0],,,,CMP[0],?..."
hgroup.byte 0x3D++0x01
hide.byte 0x00 "PMUX13,Peripheral Multiplexing 13"
hide.byte 0x01 "PMUX14,Peripheral Multiplexing 14"
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PB31)" "EXTINT[15],,SERCOM1/PAD[1],SERCOM5/PAD[1],TC0/WO[1],,,CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PB30)" "EXTINT[14],,SERCOM1/PAD[0],SERCOM5/PAD[0],TC0/WO[0],,,CMP[2],?..."
else
group.byte 0x30++0x0C
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PB01)" "EXTINT[1],Y[7],,SERCOM5/PAD[3],TC7/WO[1],,,,CCL0/IN[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PB00)" "EXTINT[0],Y[6],,SERCOM5/PAD[2],TC7/WO[0],,,,CCL0/IN[1],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PB03)" "EXTINT[3],Y[9],,SERCOM5/PAD[1],TC6/WO[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PB02)" "EXTINT[2],Y[8],,SERCOM5/PAD[0],TC6/WO[0],,,,CCL0/OUT[0],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PB05)" "EXTINT[5],AIN[6]|Y[11],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PB04)" "EXTINT[4],AIN[5]|Y[10],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PB07)" "EXTINT[7],Y[13],SERCOM7/PAD[3],SERCOM7/PAD[2],,,,,CCL2/IN[7],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PB06)" "EXTINT[6],AIN[7]|Y[12],SERCOM7/PAD[1],,,,,,CCL2/IN[6],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PB09)" "EXTINT[9],AIN[3]|Y[15],,SERCOM4/PAD[1],TC4/WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PB08)" "EXTINT[8],AIN[2]|Y[14],SERCOM7/PAD[2],SERCOM7/PAD[3],TC4/WO[0],,,,CCL2/IN[8],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PB11)" "EXTINT[11],,,SERCOM4/PAD[3],TC5/WO[1],TCC0_WO5,,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PB10)" "EXTINT[10],,,SERCOM4/PAD[2],TC5/WO[0],TCC0_WO4,,GCLK_IO[4],CCL1/IN[5],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PB13)" "EXTINT[13],X[13]/Y[29],SERCOM4/PAD[1],,TC4/WO[1],TCC0_WO7,,GCLK_IO[7],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PB12)" "EXTINT[12],X[12]/Y[28],SERCOM4/PAD[0],,TC4/WO[0],TCC0_WO6,,GCLK_IO[6],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PB15)" "EXTINT[15],X[15]/Y[31],SERCOM4/PAD[3],,TC5/WO[1],,,GCLK_IO[1],CCL3/IN[10],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PB14)" "EXTINT[14],X[14]/Y[30],SERCOM4/PAD[2],,TC5/WO[0],,,GCLK_IO[0],CCL3/IN[9],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PB17)" "EXTINT[1],,SERCOM5/PAD[1],,TC6/WO[1],,,GCLK_IO[3],CCL3/OUT[3],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PB16)" "EXTINT[0],,SERCOM5/PAD[0],,TC6/WO[0],,,GCLK_IO[2],CCL3/IN[11],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PB19)" "EXTINT[3],,SERCOM5/PAD[3],SERCOM3/PAD[3],,,,GCLK_IO[5],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PB18)" "EXTINT[2],,SERCOM5/PAD[2],SERCOM3/PAD[2],,,,GCLK_IO[4],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PB21)" "EXTINT[5],,SERCOM3/PAD[1],SERCOM2/PAD[1],,,,GCLK_IO[7],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PB20)" "EXTINT[4],,SERCOM3/PAD[0],SERCOM2/PAD[0],,,,GCLK_IO[6],?..."
line.byte 0x0B "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x0B 4.--7. " PMUXO ,Peripheral multiplexing odd (PB23)" "EXTINT[7],,SERCOM0/PAD[3],SERCOM5/PAD[3],TC7/WO[1],TCC1/WO[3],,GCLK_IO[1],CCL0/OUT[0],?..."
bitfld.byte 0x0B 0.--3. " PMUXE ,Peripheral multiplexing even (PB22)" "EXTINT[6],,SERCOM0/PAD[2],SERCOM5/PAD[2],TC7/WO[0],TCC1/WO[2],,GCLK_IO[0],CCL0/IN[0],?..."
line.byte 0x0C "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x0C 4.--7. " PMUXO ,Peripheral multiplexing odd (PB25)" "EXTINT[9],,SERCOM0/PAD[1],SERCOM4/PAD[1],,,,CMP[1],?..."
bitfld.byte 0x0C 0.--3. " PMUXE ,Peripheral multiplexing even (PB24)" "EXTINT[8],,SERCOM0/PAD[0],SERCOM4/PAD[0],,,,CMP[0],?..."
hgroup.byte 0x3D++0x01
hide.byte 0x00 "PMUX13,Peripheral Multiplexing 13"
hide.byte 0x01 "PMUX14,Peripheral Multiplexing 14"
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PB31)" "EXTINT[15],,SERCOM1/PAD[1],SERCOM5/PAD[1],TC0/WO[1],,,CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PB30)" "EXTINT[14],,SERCOM1/PAD[0],SERCOM5/PAD[0],TC0/WO[0],,,CMP[2],?..."
endif
tree.end
tree "Pin Configuration"
group.byte 0x40++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x41++0x00
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x42++0x00
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x43++0x00
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x44++0x00
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x45++0x00
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x46++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4A++0x00
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4B++0x00
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4C++0x00
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4D++0x00
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x54++0x00
line.byte 0x00 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x55++0x00
line.byte 0x00 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x56++0x00
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x57++0x00
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x58++0x00
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x59++0x00
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5E++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5F++0x00
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
tree.end
width 0x0B
tree.end
tree "Port C"
base ad:0x41000100
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_SET/CLR,Data Direction"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port data direction bit 28" "Input,Output"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port data direction bit 27" "Input,Output"
newline
setclrfld.long 0x00 26. 0x08 26. 0x04 26. " [26] ,Port data direction bit 26" "Input,Output"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data direction bit 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data direction bit 24" "Input,Output"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data direction bit 21" "Input,Output"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data direction bit 20" "Input,Output"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data direction bit 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data direction bit 18" "Input,Output"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data direction bit 17" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data direction bit 16" "Input,Output"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data direction bit 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data direction bit 14" "Input,Output"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data direction bit 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data direction bit 12" "Input,Output"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data direction bit 10" "Input,Output"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data direction bit 8" "Input,Output"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data direction bit 7" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data direction bit 6" "Input,Output"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data direction bit 5" "Input,Output"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data direction bit 2" "Input,Output"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data direction bit 1" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data direction bit 0" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 28. " [28] ,Port data direction toggle bit 28" "No effect,Toggle"
bitfld.long 0x00 27. " [27] ,Port data direction toggle bit 27" "No effect,Toggle"
newline
bitfld.long 0x00 26. " [26] ,Port data direction toggle bit 26" "No effect,Toggle"
newline
bitfld.long 0x00 25. " [25] ,Port data direction toggle bit 25" "No effect,Toggle"
bitfld.long 0x00 24. " [24] ,Port data direction toggle bit 24" "No effect,Toggle"
newline
bitfld.long 0x00 21. " [21] ,Port data direction toggle bit 21" "No effect,Toggle"
bitfld.long 0x00 20. " [20] ,Port data direction toggle bit 20" "No effect,Toggle"
newline
bitfld.long 0x00 19. " [19] ,Port data direction toggle bit 19" "No effect,Toggle"
bitfld.long 0x00 18. " [18] ,Port data direction toggle bit 18" "No effect,Toggle"
newline
bitfld.long 0x00 17. " [17] ,Port data direction toggle bit 17" "No effect,Toggle"
bitfld.long 0x00 16. " [16] ,Port data direction toggle bit 16" "No effect,Toggle"
newline
bitfld.long 0x00 15. " [15] ,Port data direction toggle bit 15" "No effect,Toggle"
bitfld.long 0x00 14. " [14] ,Port data direction toggle bit 14" "No effect,Toggle"
newline
bitfld.long 0x00 13. " [13] ,Port data direction toggle bit 13" "No effect,Toggle"
bitfld.long 0x00 12. " [12] ,Port data direction toggle bit 12" "No effect,Toggle"
newline
bitfld.long 0x00 11. " [11] ,Port data direction toggle bit 11" "No effect,Toggle"
bitfld.long 0x00 10. " [10] ,Port data direction toggle bit 10" "No effect,Toggle"
newline
bitfld.long 0x00 9. " [9] ,Port data direction toggle bit 9" "No effect,Toggle"
bitfld.long 0x00 8. " [8] ,Port data direction toggle bit 8" "No effect,Toggle"
newline
bitfld.long 0x00 7. " [7] ,Port data direction toggle bit 7" "No effect,Toggle"
bitfld.long 0x00 6. " [6] ,Port data direction toggle bit 6" "No effect,Toggle"
newline
bitfld.long 0x00 5. " [5] ,Port data direction toggle bit 5" "No effect,Toggle"
newline
bitfld.long 0x00 3. " [3] ,Port data direction toggle bit 3" "No effect,Toggle"
bitfld.long 0x00 2. " [2] ,Port data direction toggle bit 2" "No effect,Toggle"
newline
bitfld.long 0x00 1. " [1] ,Port data direction toggle bit 1" "No effect,Toggle"
bitfld.long 0x00 0. " [0] ,Port data direction toggle bit 0" "No effect,Toggle"
group.long 0x10++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port data output value bit 28" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port data output value bit 27" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 26. 0x08 26. 0x04 26. " [26] ,Port data output value bit 26" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port data output value bit 25" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port data output value bit 24" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port data output value bit 21" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port data output value bit 20" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port data output value bit 19" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port data output value bit 18" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port data output value bit 17" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port data output value bit 16" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port data output value bit 15" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port data output value bit 14" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port data output value bit 13" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port data output value bit 12" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port data output value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port data output value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port data output value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port data output value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port data output value bit 7" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port data output value bit 6" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port data output value bit 5" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port data output value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port data output value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
newline
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port data output value bit 1" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port data output value bit 0" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 28. " [28] ,Port data output value toggle bit 28" "Not changed,Toggled"
bitfld.long 0x00 27. " [27] ,Port data output value toggle bit 27" "Not changed,Toggled"
newline
bitfld.long 0x00 26. " [26] ,Port data output value toggle bit 26" "Not changed,Toggled"
newline
bitfld.long 0x00 25. " [25] ,Port data output value toggle bit 25" "Not changed,Toggled"
bitfld.long 0x00 24. " [24] ,Port data output value toggle bit 24" "Not changed,Toggled"
newline
bitfld.long 0x00 21. " [21] ,Port data output value toggle bit 21" "Not changed,Toggled"
bitfld.long 0x00 20. " [20] ,Port data output value toggle bit 20" "Not changed,Toggled"
newline
bitfld.long 0x00 19. " [19] ,Port data output value toggle bit 19" "Not changed,Toggled"
bitfld.long 0x00 18. " [18] ,Port data output value toggle bit 18" "Not changed,Toggled"
newline
bitfld.long 0x00 17. " [17] ,Port data output value toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,Port data output value toggle bit 16" "Not changed,Toggled"
newline
bitfld.long 0x00 15. " [15] ,Port data output value toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,Port data output value toggle bit 14" "Not changed,Toggled"
newline
bitfld.long 0x00 13. " [13] ,Port data output value toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,Port data output value toggle bit 12" "Not changed,Toggled"
newline
bitfld.long 0x00 11. " [11] ,Port data output value toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,Port data output value toggle bit 10" "Not changed,Toggled"
newline
bitfld.long 0x00 9. " [9] ,Port data output value toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,Port data output value toggle bit 8" "Not changed,Toggled"
newline
bitfld.long 0x00 7. " [7] ,Port data output value toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,Port data output value toggle bit 6" "Not changed,Toggled"
newline
bitfld.long 0x00 5. " [5] ,Port data output value toggle bit 5" "Not changed,Toggled"
newline
bitfld.long 0x00 3. " [3] ,Port data output value toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,Port data output value toggle bit 2" "Not changed,Toggled"
newline
bitfld.long 0x00 1. " [1] ,Port data output value toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,Port data output value toggle bit 0" "Not changed,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 27. " [27] ,Port data input value bit 27" "Low level,High level"
bitfld.long 0x00 28. " [28] ,Port data input value bit 28" "Low level,High level"
newline
bitfld.long 0x00 26. " [26] ,Port data input value bit 26" "Low level,High level"
newline
bitfld.long 0x00 25. " [25] ,Port data input value bit 25" "Low level,High level"
bitfld.long 0x00 24. " [24] ,Port data input value bit 24" "Low level,High level"
newline
bitfld.long 0x00 21. " [21] ,Port data input value bit 21" "Low level,High level"
bitfld.long 0x00 20. " [20] ,Port data input value bit 20" "Low level,High level"
newline
bitfld.long 0x00 19. " [19] ,Port data input value bit 19" "Low level,High level"
bitfld.long 0x00 18. " [18] ,Port data input value bit 18" "Low level,High level"
newline
bitfld.long 0x00 17. " [17] ,Port data input value bit 17" "Low level,High level"
bitfld.long 0x00 16. " [16] ,Port data input value bit 16" "Low level,High level"
newline
bitfld.long 0x00 15. " [15] ,Port data input value bit 15" "Low level,High level"
bitfld.long 0x00 14. " [14] ,Port data input value bit 14" "Low level,High level"
newline
bitfld.long 0x00 13. " [13] ,Port data input value bit 13" "Low level,High level"
bitfld.long 0x00 12. " [12] ,Port data input value bit 12" "Low level,High level"
newline
bitfld.long 0x00 11. " [11] ,Port data input value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,Port data input value bit 10" "Low level,High level"
newline
bitfld.long 0x00 9. " [9] ,Port data input value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,Port data input value bit 8" "Low level,High level"
newline
bitfld.long 0x00 7. " [7] ,Port data input value bit 7" "Low level,High level"
bitfld.long 0x00 6. " [6] ,Port data input value bit 6" "Low level,High level"
newline
bitfld.long 0x00 5. " [5] ,Port data input value bit 5" "Low level,High level"
newline
bitfld.long 0x00 3. " [3] ,Port data input value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,Port data input value bit 2" "Low level,High level"
newline
bitfld.long 0x00 1. " [1] ,Port data input value bit 1" "Low level,High level"
bitfld.long 0x00 0. " [0] ,Port data input value bit 0" "Low level,High level"
group.long 0x20++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 28. " [28] ,Input sampling mode bit 28" "Disabled,Enabled"
bitfld.long 0x00 27. " [27] ,Input sampling mode bit 27" "Disabled,Enabled"
newline
bitfld.long 0x00 26. " [26] ,Input sampling mode bit 26" "Disabled,Enabled"
newline
bitfld.long 0x00 25. " [25] ,Input sampling mode bit 25" "Disabled,Enabled"
bitfld.long 0x00 24. " [24] ,Input sampling mode bit 24" "Disabled,Enabled"
newline
bitfld.long 0x00 21. " [21] ,Input sampling mode bit 21" "Disabled,Enabled"
bitfld.long 0x00 20. " [20] ,Input sampling mode bit 20" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " [19] ,Input sampling mode bit 19" "Disabled,Enabled"
bitfld.long 0x00 18. " [18] ,Input sampling mode bit 18" "Disabled,Enabled"
newline
bitfld.long 0x00 17. " [17] ,Input sampling mode bit 17" "Disabled,Enabled"
bitfld.long 0x00 16. " [16] ,Input sampling mode bit 16" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " [15] ,Input sampling mode bit 15" "Disabled,Enabled"
bitfld.long 0x00 14. " [14] ,Input sampling mode bit 14" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " [13] ,Input sampling mode bit 13" "Disabled,Enabled"
bitfld.long 0x00 12. " [12] ,Input sampling mode bit 12" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " [11] ,Input sampling mode bit 11" "Disabled,Enabled"
bitfld.long 0x00 10. " [10] ,Input sampling mode bit 10" "Disabled,Enabled"
newline
bitfld.long 0x00 9. " [9] ,Input sampling mode bit 9" "Disabled,Enabled"
bitfld.long 0x00 8. " [8] ,Input sampling mode bit 8" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " [7] ,Input sampling mode bit 7" "Disabled,Enabled"
bitfld.long 0x00 6. " [6] ,Input sampling mode bit 6" "Disabled,Enabled"
newline
bitfld.long 0x00 5. " [5] ,Input sampling mode bit 5" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " [3] ,Input sampling mode bit 3" "Disabled,Enabled"
bitfld.long 0x00 2. " [2] ,Input sampling mode bit 2" "Disabled,Enabled"
newline
bitfld.long 0x00 1. " [1] ,Input sampling mode bit 1" "Disabled,Enabled"
bitfld.long 0x00 0. " [0] ,Input sampling mode bit 0" "Disabled,Enabled"
newline
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-word select" "Lower 16,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral multiplexing" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
bitfld.long 0x00 22. " DRVSTR ,Output driver strength selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull enable" "0,1"
bitfld.long 0x00 17. " INEN ,Input enable" "0,1"
bitfld.long 0x00 16. " PMUXEN ,Peripheral multiplexer enable" "0,1"
newline
bitfld.long 0x00 15. " PINMASK[15] ,Pin 15 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 14. " [14] ,Pin 14 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 13. " [13] ,Pin 13 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 12. " [12] ,Pin 12 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 11. " [11] ,Pin 11 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 10. " [10] ,Pin 10 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 9. " [9] ,Pin 9 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 8. " [8] ,Pin 8 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 7. " [7] ,Pin 7 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 6. " [6] ,Pin 6 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 5. " [5] ,Pin 5 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 4. " [4] ,Pin 4 mask for multiple pin configuration" "Not updated,Updated"
newline
bitfld.long 0x00 3. " [3] ,Pin 3 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 2. " [2] ,Pin 2 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 1. " [1] ,Pin 1 mask for multiple pin configuration" "Not updated,Updated"
bitfld.long 0x00 0. " [0] ,Pin 0 mask for multiple pin configuration" "Not updated,Updated"
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 23. " PORTEI2 ,Port event input 2 enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,Port event action 2" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
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"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
bitfld.long 0x00 7. " PORTEI0 ,Port event input 0 enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,Port event action 0" "OUT,SET,CLR,TGL"
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,PIN26,PIN27,PIN28,PIN29,PIN30,PIN31"
newline
width 10.
tree "Peripheral Multiplexing"
sif cpuis("ATSAMC21N*")
group.byte 0x30++0x0A
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PC01)" "EXTINT[9],AIN[9],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PC00)" "EXTINT[8],AIN[8],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PC03)" "EXTINT[11],AIN[11],SERCOM7/PAD[0],,,TCC2/WO[0],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PC02)" "EXTINT[10],AIN[10],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PC05)" "EXTINT[13],,SERCOM6/PAD[3],,,TCC2/WO[1],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PC07)" "EXTINT[15],,SERCOM6/PAD[1],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PC06)" "EXTINT[14],,SERCOM6/PAD[0],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PC09)" "EXTINT[1],,SERCOM6/PAD[1],SERCOM7/PAD[1],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PC08)" "EXTINT[0],,SERCOM6/PAD[0],SERCOM7/PAD[0],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PC11)" "EXTINT[3],,SERCOM6/PAD[3],SERCOM7/PAD[3],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PC10)" "EXTINT[2],,SERCOM6/PAD[2],SERCOM7/PAD[2],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PC13)" "EXTINT[5],,SERCOM7/PAD[1],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PC12)" "EXTINT[4],,SERCOM7/PAD[0],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PC15)" "EXTINT[7],,SERCOM7/PAD[3],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PC14)" "EXTINT[6],,SERCOM7/PAD[2],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PC17)" "EXTINT[9],,SERCOM6/PAD[1],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PC16)" "EXTINT[8],,SERCOM6/PAD[0],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PC19)" "EXTINT[11],,SERCOM6/PAD[3],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PC18)" "EXTINT[10],,SERCOM6/PAD[2],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PC21)" "EXTINT[13],,,,,,,,CCL3/IN[10],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PC20)" "EXTINT[12],,,,,,,,CCL3/IN[9],?..."
hgroup.byte 0x3B++0x00
hide.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
group.byte 0x3C++0x02
line.byte 0x00 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PC25)" "EXTINT[1],,SERCOM0/PAD[3],SERCOM4/PAD[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PC24)" "EXTINT[0],,SERCOM0/PAD[2],SERCOM4/PAD[2],?..."
line.byte 0x01 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PC27)" "EXTINT[3],,,SERCOM1/PAD[0],,,,,CCL1/IN[4],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PC26)" "EXTINT[2],?..."
line.byte 0x02 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PC28)" "EXTINT[4],,,SERCOM1/PAD[1],,,,,CCL1/IN[5],?..."
hgroup.byte 0x3F++0x00
hide.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
else
group.byte 0x30++0x0A
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PC01)" "EXTINT[9],AIN[9],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PC00)" "EXTINT[8],AIN[8],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PC03)" "EXTINT[11],AIN[11],SERCOM7/PAD[0],,,TCC2/WO[0],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PC02)" "EXTINT[10],AIN[10],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral multiplexing odd (PC05)" "EXTINT[13],,SERCOM6/PAD[3],,,TCC2/WO[1],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral multiplexing odd (PC07)" "EXTINT[15],,SERCOM6/PAD[1],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral multiplexing even (PC06)" "EXTINT[14],,SERCOM6/PAD[0],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral multiplexing odd (PC09)" "EXTINT[1],,SERCOM6/PAD[1],SERCOM7/PAD[1],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral multiplexing even (PC08)" "EXTINT[0],,SERCOM6/PAD[0],SERCOM7/PAD[0],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral multiplexing odd (PC11)" "EXTINT[3],,SERCOM6/PAD[3],SERCOM7/PAD[3],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral multiplexing even (PC10)" "EXTINT[2],,SERCOM6/PAD[2],SERCOM7/PAD[2],?..."
line.byte 0x06 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x06 4.--7. " PMUXO ,Peripheral multiplexing odd (PC13)" "EXTINT[5],,SERCOM7/PAD[1],?..."
bitfld.byte 0x06 0.--3. " PMUXE ,Peripheral multiplexing even (PC12)" "EXTINT[4],,SERCOM7/PAD[0],?..."
line.byte 0x07 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x07 4.--7. " PMUXO ,Peripheral multiplexing odd (PC15)" "EXTINT[7],,SERCOM7/PAD[3],?..."
bitfld.byte 0x07 0.--3. " PMUXE ,Peripheral multiplexing even (PC14)" "EXTINT[6],,SERCOM7/PAD[2],?..."
line.byte 0x08 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x08 4.--7. " PMUXO ,Peripheral multiplexing odd (PC17)" "EXTINT[9],,SERCOM6/PAD[1],?..."
bitfld.byte 0x08 0.--3. " PMUXE ,Peripheral multiplexing even (PC16)" "EXTINT[8],,SERCOM6/PAD[0],?..."
line.byte 0x09 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x09 4.--7. " PMUXO ,Peripheral multiplexing odd (PC19)" "EXTINT[11],,SERCOM6/PAD[3],?..."
bitfld.byte 0x09 0.--3. " PMUXE ,Peripheral multiplexing even (PC18)" "EXTINT[10],,SERCOM6/PAD[2],?..."
line.byte 0x0A "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x0A 4.--7. " PMUXO ,Peripheral multiplexing odd (PC21)" "EXTINT[13],,,,,,,,CCL3/IN[10],?..."
bitfld.byte 0x0A 0.--3. " PMUXE ,Peripheral multiplexing even (PC20)" "EXTINT[12],,,,,,,,CCL3/IN[9],?..."
hgroup.byte 0x3B++0x00
hide.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
group.byte 0x3C++0x02
line.byte 0x00 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral multiplexing odd (PC25)" "EXTINT[1],,SERCOM0/PAD[3],SERCOM4/PAD[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral multiplexing even (PC24)" "EXTINT[0],,SERCOM0/PAD[2],SERCOM4/PAD[2],?..."
line.byte 0x01 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral multiplexing odd (PC27)" "EXTINT[3],,,SERCOM1/PAD[0],,,,,CCL1/IN[4],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral multiplexing even (PC26)" "EXTINT[2],?..."
line.byte 0x02 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral multiplexing even (PC28)" "EXTINT[4],,,SERCOM1/PAD[1],,,,,CCL1/IN[5],?..."
hgroup.byte 0x3F++0x00
hide.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
endif
tree.end
tree "Pin Configuration"
group.byte 0x40++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x41++0x00
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x42++0x00
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x43++0x00
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x45++0x00
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x46++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4A++0x00
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4B++0x00
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4C++0x00
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4D++0x00
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x53++0x00
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x54++0x00
line.byte 0x00 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x55++0x00
line.byte 0x00 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x58++0x00
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x59++0x00
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5A++0x00
line.byte 0x00 "PINCFG26,Pin Configuration 26"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 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"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5C++0x00
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
tree.end
width 0x0B
tree.end
else
tree "Port A"
base ad:0x41000000
width 13.
group.long 0x0++0x3
line.long 0x00 "DIR_set/clr,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR[31] ,Port Data Direction bit 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port Data Direction bit 30" "Input,Output"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port Data Direction bit 28" "Input,Output"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port Data Direction bit 27" "Input,Output"
textline " "
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port Data Direction bit 25" "Input,Output"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port Data Direction bit 24" "Input,Output"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port Data Direction bit 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Direction bit 22" "Input,Output"
textline " "
sif !cpuis("ATSAMC2?E*")
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port Data Direction bit 21" "Input,Output"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port Data Direction bit 20" "Input,Output"
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port Data Direction bit 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port Data Direction bit 18" "Input,Output"
textline " "
else
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port Data Direction bit 19" "Input,Output"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port Data Direction bit 18" "Input,Output"
textline " "
endif
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port Data Direction bit 17" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port Data Direction bit 16" "Input,Output"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port Data Direction bit 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port Data Direction bit 14" "Input,Output"
textline " "
sif !cpuis("ATSAMC2?E*")
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port Data Direction bit 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port Data Direction bit 12" "Input,Output"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Direction bit 10" "Input,Output"
textline " "
else
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Direction bit 10" "Input,Output"
textline " "
endif
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Direction bit 8" "Input,Output"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port Data Direction bit 7" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port Data Direction bit 6" "Input,Output"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port Data Direction bit 5" "Input,Output"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port Data Direction bit 4" "Input,Output"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Direction bit 2" "Input,Output"
textline " "
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port Data Direction bit 1" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port Data Direction bit 0" "Input,Output"
group.long 0xC++0x3
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL[31] ,Port Data Direction Toggle bit 31" "No effect,Toggle"
bitfld.long 0x00 30. " [30] ,Port Data Direction Toggle bit 30" "No effect,Toggle"
bitfld.long 0x00 28. " [28] ,Port Data Direction Toggle bit 28" "No effect,Toggle"
bitfld.long 0x00 27. " [27] ,Port Data Direction Toggle bit 27" "No effect,Toggle"
textline " "
bitfld.long 0x00 25. " [25] ,Port Data Direction Toggle bit 25" "No effect,Toggle"
bitfld.long 0x00 24. " [24] ,Port Data Direction Toggle bit 24" "No effect,Toggle"
bitfld.long 0x00 23. " [23] ,Port Data Direction Toggle bit 23" "No effect,Toggle"
bitfld.long 0x00 22. " [22] ,Port Data Direction Toggle bit 22" "No effect,Toggle"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 21. " [21] ,Port Data Direction Toggle bit 21" "No effect,Toggle"
bitfld.long 0x00 20. " [20] ,Port Data Direction Toggle bit 20" "No effect,Toggle"
bitfld.long 0x00 19. " [19] ,Port Data Direction Toggle bit 19" "No effect,Toggle"
bitfld.long 0x00 18. " [18] ,Port Data Direction Toggle bit 18" "No effect,Toggle"
textline " "
else
bitfld.long 0x00 19. " [19] ,Port Data Direction Toggle bit 19" "No effect,Toggle"
bitfld.long 0x00 18. " [18] ,Port Data Direction Toggle bit 18" "No effect,Toggle"
textline " "
endif
bitfld.long 0x00 17. " [17] ,Port Data Direction Toggle bit 17" "No effect,Toggle"
bitfld.long 0x00 16. " [16] ,Port Data Direction Toggle bit 16" "No effect,Toggle"
bitfld.long 0x00 15. " [15] ,Port Data Direction Toggle bit 15" "No effect,Toggle"
bitfld.long 0x00 14. " [14] ,Port Data Direction Toggle bit 14" "No effect,Toggle"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 13. " [13] ,Port Data Direction Toggle bit 13" "No effect,Toggle"
bitfld.long 0x00 12. " [12] ,Port Data Direction Toggle bit 12" "No effect,Toggle"
bitfld.long 0x00 11. " [11] ,Port Data Direction Toggle bit 11" "No effect,Toggle"
bitfld.long 0x00 10. " [10] ,Port Data Direction Toggle bit 10" "No effect,Toggle"
textline " "
else
bitfld.long 0x00 11. " [11] ,Port Data Direction Toggle bit 11" "No effect,Toggle"
bitfld.long 0x00 10. " [10] ,Port Data Direction Toggle bit 10" "No effect,Toggle"
textline " "
endif
bitfld.long 0x00 9. " [9] ,Port Data Direction Toggle bit 9" "No effect,Toggle"
bitfld.long 0x00 8. " [8] ,Port Data Direction Toggle bit 8" "No effect,Toggle"
bitfld.long 0x00 7. " [7] ,Port Data Direction Toggle bit 7" "No effect,Toggle"
bitfld.long 0x00 6. " [6] ,Port Data Direction Toggle bit 6" "No effect,Toggle"
textline " "
bitfld.long 0x00 5. " [5] ,Port Data Direction Toggle bit 5" "No effect,Toggle"
bitfld.long 0x00 4. " [4] ,Port Data Direction Toggle bit 4" "No effect,Toggle"
bitfld.long 0x00 3. " [3] ,Port Data Direction Toggle bit 3" "No effect,Toggle"
bitfld.long 0x00 2. " [2] ,Port Data Direction Toggle bit 2" "No effect,Toggle"
textline " "
bitfld.long 0x00 1. " [1] ,Port Data Direction Toggle bit 1" "No effect,Toggle"
bitfld.long 0x00 0. " [0] ,Port Data Direction Toggle bit 0" "No effect,Toggle"
group.long 0x10++0x3
line.long 0x00 "OUT_set/clr,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT[31] ,Port Data Output Value bit 31" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port Data Output Value bit 30" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 28. 0x08 28. 0x04 28. " [28] ,Port Data Output Value bit 28" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 27. 0x08 27. 0x04 27. " [27] ,Port Data Output Value bit 27" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 25. 0x08 25. 0x04 25. " [25] ,Port Data Output Value bit 25" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 24. 0x08 24. 0x04 24. " [24] ,Port Data Output Value bit 24" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port Data Output Value bit 23" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Output Value bit 22" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
sif !cpuis("ATSAMC2?E*")
setclrfld.long 0x00 21. 0x08 21. 0x04 21. " [21] ,Port Data Output Value bit 21" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 20. 0x08 20. 0x04 20. " [20] ,Port Data Output Value bit 20" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port Data Output Value bit 19" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port Data Output Value bit 18" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
else
setclrfld.long 0x00 19. 0x08 19. 0x04 19. " [19] ,Port Data Output Value bit 19" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 18. 0x08 18. 0x04 18. " [18] ,Port Data Output Value bit 18" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
endif
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port Data Output Value bit 17" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port Data Output Value bit 16" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port Data Output Value bit 15" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port Data Output Value bit 14" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
sif !cpuis("ATSAMC2?E*")
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port Data Output Value bit 13" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port Data Output Value bit 12" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Output Value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Output Value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
else
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Output Value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Output Value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
endif
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Output Value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Output Value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port Data Output Value bit 7" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port Data Output Value bit 6" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port Data Output Value bit 5" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port Data Output Value bit 4" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Output Value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Output Value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port Data Output Value bit 1" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port Data Output Value bit 0" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x3
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL[31] ,PORT A Data Output Value Toggle bit 31" "Not changed,Toggled"
bitfld.long 0x00 30. " [30] ,PORT A Data Output Value Toggle bit 30" "Not changed,Toggled"
bitfld.long 0x00 28. " [28] ,PORT A Data Output Value Toggle bit 28" "Not changed,Toggled"
bitfld.long 0x00 27. " [27] ,PORT A Data Output Value Toggle bit 27" "Not changed,Toggled"
textline " "
bitfld.long 0x00 25. " [25] ,PORT A Data Output Value Toggle bit 25" "Not changed,Toggled"
bitfld.long 0x00 24. " [24] ,PORT A Data Output Value Toggle bit 24" "Not changed,Toggled"
bitfld.long 0x00 23. " [23] ,PORT A Data Output Value Toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,PORT A Data Output Value Toggle bit 22" "Not changed,Toggled"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 21. " [21] ,PORT A Data Output Value Toggle bit 21" "Not changed,Toggled"
bitfld.long 0x00 20. " [20] ,PORT A Data Output Value Toggle bit 20" "Not changed,Toggled"
bitfld.long 0x00 19. " [19] ,PORT A Data Output Value Toggle bit 19" "Not changed,Toggled"
bitfld.long 0x00 18. " [18] ,PORT A Data Output Value Toggle bit 18" "Not changed,Toggled"
textline " "
else
bitfld.long 0x00 19. " [19] ,PORT A Data Output Value Toggle bit 19" "Not changed,Toggled"
bitfld.long 0x00 18. " [18] ,PORT A Data Output Value Toggle bit 18" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 17. " [17] ,PORT A Data Output Value Toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,PORT A Data Output Value Toggle bit 16" "Not changed,Toggled"
bitfld.long 0x00 15. " [15] ,PORT A Data Output Value Toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,PORT A Data Output Value Toggle bit 14" "Not changed,Toggled"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 13. " [13] ,PORT A Data Output Value Toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,PORT A Data Output Value Toggle bit 12" "Not changed,Toggled"
bitfld.long 0x00 11. " [11] ,PORT A Data Output Value Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,PORT A Data Output Value Toggle bit 10" "Not changed,Toggled"
textline " "
else
bitfld.long 0x00 11. " [11] ,PORT A Data Output Value Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,PORT A Data Output Value Toggle bit 10" "Not changed,Toggled"
textline " "
endif
bitfld.long 0x00 9. " [9] ,PORT A Data Output Value Toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,PORT A Data Output Value Toggle bit 8" "Not changed,Toggled"
bitfld.long 0x00 7. " [7] ,PORT A Data Output Value Toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,PORT A Data Output Value Toggle bit 6" "Not changed,Toggled"
textline " "
bitfld.long 0x00 5. " [5] ,PORT A Data Output Value Toggle bit 5" "Not changed,Toggled"
bitfld.long 0x00 4. " [4] ,PORT A Data Output Value Toggle bit 4" "Not changed,Toggled"
bitfld.long 0x00 3. " [3] ,PORT A Data Output Value Toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,PORT A Data Output Value Toggle bit 2" "Not changed,Toggled"
textline " "
bitfld.long 0x00 1. " [1] ,PORT A Data Output Value Toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,PORT A Data Output Value Toggle bit 0" "Not changed,Toggled"
group.long 0x20++0x7
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN[31] ,PORT A Data Input Value bit 31" "Low level,High level"
bitfld.long 0x00 30. " [30] ,PORT A Data Input Value bit 30" "Low level,High level"
bitfld.long 0x00 28. " [28] ,PORT A Data Input Value bit 28" "Low level,High level"
bitfld.long 0x00 27. " [27] ,PORT A Data Input Value bit 27" "Low level,High level"
textline " "
bitfld.long 0x00 25. " [25] ,PORT A Data Input Value bit 25" "Low level,High level"
bitfld.long 0x00 24. " [24] ,PORT A Data Input Value bit 24" "Low level,High level"
bitfld.long 0x00 23. " [23] ,PORT A Data Input Value bit 23" "Low level,High level"
bitfld.long 0x00 22. " [22] ,PORT A Data Input Value bit 22" "Low level,High level"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 21. " [21] ,PORT A Data Input Value bit 21" "Low level,High level"
bitfld.long 0x00 20. " [20] ,PORT A Data Input Value bit 20" "Low level,High level"
bitfld.long 0x00 19. " [19] ,PORT A Data Input Value bit 19" "Low level,High level"
bitfld.long 0x00 18. " [18] ,PORT A Data Input Value bit 18" "Low level,High level"
textline " "
else
bitfld.long 0x00 19. " [19] ,PORT A Data Input Value bit 19" "Low level,High level"
bitfld.long 0x00 18. " [18] ,PORT A Data Input Value bit 18" "Low level,High level"
textline " "
endif
bitfld.long 0x00 17. " [17] ,PORT A Data Input Value bit 17" "Low level,High level"
bitfld.long 0x00 16. " [16] ,PORT A Data Input Value bit 16" "Low level,High level"
bitfld.long 0x00 15. " [15] ,PORT A Data Input Value bit 15" "Low level,High level"
bitfld.long 0x00 14. " [14] ,PORT A Data Input Value bit 14" "Low level,High level"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x00 13. " [13] ,PORT A Data Input Value bit 13" "Low level,High level"
bitfld.long 0x00 12. " [12] ,PORT A Data Input Value bit 12" "Low level,High level"
bitfld.long 0x00 11. " [11] ,PORT A Data Input Value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,PORT A Data Input Value bit 10" "Low level,High level"
textline " "
else
bitfld.long 0x00 11. " [11] ,PORT A Data Input Value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,PORT A Data Input Value bit 10" "Low level,High level"
textline " "
endif
bitfld.long 0x00 9. " [9] ,PORT A Data Input Value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,PORT A Data Input Value bit 8" "Low level,High level"
bitfld.long 0x00 7. " [7] ,PORT A Data Input Value bit 7" "Low level,High level"
bitfld.long 0x00 6. " [6] ,PORT A Data Input Value bit 6" "Low level,High level"
textline " "
bitfld.long 0x00 5. " [5] ,PORT A Data Input Value bit 5" "Low level,High level"
bitfld.long 0x00 4. " [4] ,PORT A Data Input Value bit 4" "Low level,High level"
bitfld.long 0x00 3. " [3] ,PORT A Data Input Value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,PORT A Data Input Value bit 2" "Low level,High level"
textline " "
bitfld.long 0x00 1. " [1] ,PORT A Data Input Value bit 1" "Low level,High level"
bitfld.long 0x00 0. " [0] ,PORT A Data Input Value bit 0" "Low level,High level"
line.long 0x04 "CTRL,Control"
bitfld.long 0x04 31. " SAMPLING[31] ,Input Sampling Mode bit 31" "Disabled,Enabled"
bitfld.long 0x04 30. " [30] ,Input Sampling Mode bit 30" "Disabled,Enabled"
bitfld.long 0x04 28. " [28] ,Input Sampling Mode bit 28" "Disabled,Enabled"
bitfld.long 0x04 27. " [27] ,Input Sampling Mode bit 27" "Disabled,Enabled"
textline " "
bitfld.long 0x04 25. " [25] ,Input Sampling Mode bit 25" "Disabled,Enabled"
bitfld.long 0x04 24. " [24] ,Input Sampling Mode bit 24" "Disabled,Enabled"
bitfld.long 0x04 23. " [23] ,Input Sampling Mode bit 23" "Disabled,Enabled"
bitfld.long 0x04 22. " [22] ,Input Sampling Mode bit 22" "Disabled,Enabled"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x04 21. " [21] ,Input Sampling Mode bit 21" "Disabled,Enabled"
bitfld.long 0x04 20. " [20] ,Input Sampling Mode bit 20" "Disabled,Enabled"
bitfld.long 0x04 19. " [19] ,Input Sampling Mode bit 19" "Disabled,Enabled"
bitfld.long 0x04 18. " [18] ,Input Sampling Mode bit 18" "Disabled,Enabled"
textline " "
else
bitfld.long 0x04 19. " [19] ,Input Sampling Mode bit 19" "Disabled,Enabled"
bitfld.long 0x04 18. " [18] ,Input Sampling Mode bit 18" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x04 17. " [17] ,Input Sampling Mode bit 17" "Disabled,Enabled"
bitfld.long 0x04 16. " [16] ,Input Sampling Mode bit 16" "Disabled,Enabled"
bitfld.long 0x04 15. " [15] ,Input Sampling Mode bit 15" "Disabled,Enabled"
bitfld.long 0x04 14. " [14] ,Input Sampling Mode bit 14" "Disabled,Enabled"
textline " "
sif !cpuis("ATSAMC2?E*")
bitfld.long 0x04 13. " [13] ,Input Sampling Mode bit 13" "Disabled,Enabled"
bitfld.long 0x04 12. " [12] ,Input Sampling Mode bit 12" "Disabled,Enabled"
bitfld.long 0x04 11. " [11] ,Input Sampling Mode bit 11" "Disabled,Enabled"
bitfld.long 0x04 10. " [10] ,Input Sampling Mode bit 10" "Disabled,Enabled"
textline " "
else
bitfld.long 0x04 11. " [11] ,Input Sampling Mode bit 11" "Disabled,Enabled"
bitfld.long 0x04 10. " [10] ,Input Sampling Mode bit 10" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x04 9. " [9] ,Input Sampling Mode bit 9" "Disabled,Enabled"
bitfld.long 0x04 8. " [8] ,Input Sampling Mode bit 8" "Disabled,Enabled"
bitfld.long 0x04 7. " [7] ,Input Sampling Mode bit 7" "Disabled,Enabled"
bitfld.long 0x04 6. " [6] ,Input Sampling Mode bit 6" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5. " [5] ,Input Sampling Mode bit 5" "Disabled,Enabled"
bitfld.long 0x04 4. " [4] ,Input Sampling Mode bit 4" "Disabled,Enabled"
bitfld.long 0x04 3. " [3] ,Input Sampling Mode bit 3" "Disabled,Enabled"
bitfld.long 0x04 2. " [2] ,Input Sampling Mode bit 2" "Disabled,Enabled"
textline " "
bitfld.long 0x04 1. " [1] ,Input Sampling Mode bit 1" "Disabled,Enabled"
bitfld.long 0x04 0. " [0] ,Input Sampling Mode bit 0" "Disabled,Enabled"
textline " "
width 10.
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
sif cpuis("ATSAMC2?E*")
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,,PMUX7,PMUX8,PMUX9,,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
textline " "
else
bitfld.long 0x00 31. " HWSEL ,Half-Word Select" "Lower 16,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
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 " "
endif
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "0,1"
bitfld.long 0x00 17. " INEN ,Input Enable" "0,1"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "0,1"
textline " "
hexmask.long.word 0x00 0.--15. 1. " PINMASK ,Pin Mask for Multiple Pin Configuration"
sif cpuis("ATSAMC2?E*")
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"
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,PIN28,,PIN30,PIN31"
textline " "
bitfld.long 0x00 23. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
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,PIN28,,PIN30,PIN31"
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"
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,PIN28,,PIN30,PIN31"
textline " "
bitfld.long 0x00 7. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
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,PIN28,,PIN30,PIN31"
textline " "
else
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"
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,PIN28,,PIN30,PIN31"
textline " "
bitfld.long 0x00 23. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
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,PIN28,,PIN30,PIN31"
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"
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,PIN28,,PIN30,PIN31"
textline " "
bitfld.long 0x00 7. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
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,PIN28,,PIN30,PIN31"
textline " "
endif
width 7.
sif cpuis("ATSAMC20*")
tree.open "Peripheral Multiplexing"
group.byte 0x30++0x05
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA01)" "EXTINT[1],,,SERCOM1/PAD[0],,,,CMP[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA00)" "EXTINT[0],,,SERCOM1/PAD[0],,,,CMP[3],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA03)" "EXTINT[3],ADC/VREFA|AIN[1]|AIN[5]|Y[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA02)" "EXTINT[2],AIN[0]|AIN[4]|Y[0],?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA05)" "EXTINT[5],AIN[5]|AIN[1]|Y[3],,SERCOM0/PAD[1],TCC0/WO[1],,,,CCL0/IN[1],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA04)" "EXTINT[4],VREFB|AIN[4]|AIN[0]|Y[2],,SERCOM0/PAD[0],TCC0/WO[0],,,,CCL0/IN[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA07)" "EXTINT[7],AIN[7]|AIN[3]|Y[5],,SERCOM0/PAD[3],,,,,CCL0/OUT[0],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA06)" "EXTINT[6],AIN[6]|AIN[2]|Y[4],,SERCOM0/PAD[2],,,,,CCL0/IN[2],?..."
line.byte 0x4 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x4 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA09)" "EXTINT[9],AIN[9]|X[1]/Y[17],SERCOM0/PAD[1],SERCOM2/PAD[1],TCC0/WO[1],,,,CCL1/IN[4],?..."
bitfld.byte 0x4 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA08)" "NMI,AIN[8]|X[0]/Y[16],SERCOM0/PAD[0],SERCOM2/PAD[0],TCC0/WO[0],,,,CCL1/IN[3],?..."
line.byte 0x5 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x5 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA11)" "EXTINT[11],AIN[11]|X[3]/Y[19],SERCOM0/PAD[3],SERCOM2/PAD[3],,TCC0/WO[3],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x5 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA10)" "EXTINT[10],AIN[10]|X[2]/Y[18],SERCOM0/PAD[2],SERCOM2/PAD[2],,TCC0/WO[2],,GCLK_IO[4],CCL1/IN[5],?..."
sif !cpuis("ATSAMC20E*")
group.byte 0x36++0x00
line.byte 0x00 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA13)" "EXTINT[13],,SERCOM2/PAD[1],,,TCC0/WO[7],,AC/CMP[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA12)" "EXTINT[12],,SERCOM2/PAD[0],,,TCC0/WO[6],,AC/CMP[0],?..."
endif
group.byte 0x37++0x2
line.byte 0x00 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA015)" "EXTINT[15],,SERCOM2/PAD[3],,TC4/WO[1],TCC0/WO[5],,GCLK_IO[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA14)" "EXTINT[14],,SERCOM2/PAD[2],,TC4/WO[0],TCC0/WO[4],GCLK_IO[0],?..."
line.byte 0x01 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA17)" "EXTINT[1],X[5]/Y[21],SERCOM1/PAD[1],SERCOM3/PAD[1],,TCC0/WO[7],,GCLK_IO[3],CCL0/IN[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA16)" "EXTINT[0],X[4]/Y[20],SERCOM1/PAD[0],SERCOM3/PAD[0],,TCC0/WO[6],,GCLK_IO[2],CCL0/IN[0],?..."
line.byte 0x02 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA19)" "EXTINT[3],X[7]/Y[23],SERCOM1/PAD[3],SERCOM3/PAD[3],TC4/WO[1],TCC0/WO[3],,AC/CMP[1],CCL0/OUT[0],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA18)" "EXTINT[2],X[6]/Y[22],SERCOM1/PAD[2],SERCOM3/PAD[2],TC4/WO[0],TCC0/WO[2],,AC/CMP[0],CCL0/IN[2],?..."
sif !cpuis("ATSAMC20E*")
group.byte 0x3A++0x3
line.byte 0x00 "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA21)" "EXTINT[5],X[9]/Y[25],,SERCOM3/PAD[3],TC3/WO[1],TCC0/WO[7],,GCLK_IO[5],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA20)" "EXTINT[4],X[8]/Y[24],,SERCOM3/PAD[2],TC3/WO[0],TCC0/WO[6],,GCLK_IO[4],?..."
endif
group.byte 0x3B++0x13
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA23)" "EXTINT[7],X[11]/Y[27],SERCOM3/PAD[1],,TC0/WO[1],TCC0/WO[5],,GCLK_IO[7],CCL2IN[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA22)" "EXTINT[6],X[10]/Y[26],SERCOM3/PAD[0],,TC0/WO[0],TCC0/WO[4],,GCLK_IO[6],CCL2IN[0],?..."
line.byte 0x01 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA25)" "EXTINT[13],,SERCOM3/PAD[3],,TC1/WO[1],,,AC/CMP[3],CCL2OUT,?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA24)" "EXTINT[12],,SERCOM3/PAD[2],,TC1/WO[0],,,AC/CMP[2],CCL2IN[2],?..."
line.byte 0x02 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA27)" "EXTINT[15],,,,,,BRK,GCLK_IO[0],?..."
line.byte 0x03 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA28)" "EXTINT[8],,,,,,,GCLK_IO[0],?..."
line.byte 0x04 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA31)" "EXTINT[11],,,SERCOM1/PAD[3],,,CORTEX_M0P/SWDIO,,CCL1OUT,?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA30)" "EXTINT[10],,,SERCOM1/PAD[2],,,CORTEX_M0P/SWCLK,GCLK_IO[0],CCL1IN[0],?..."
tree.end
else
tree.open "Peripheral Multiplexing"
group.byte 0x30++0x05
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA01)" "EXTINT[1],,,SERCOM1/PAD[1],TCC2/WO[1],,,CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA00)" "EXTINT[0],,,SERCOM1/PAD[0],TCC2/WO[0],,,CMP[2],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA03)" "EXTINT[3],ADC/DAC/VREFA|AIN[1]|AIN[5]|Y[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA02)" "EXTINT[2],AIN[0]|AIN[4]|Y[0]|VOUT,?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA05)" "EXTINT[5],AIN[5]|AIN[1]|Y[3],,SERCOM0/PAD[1],TCC0/WO[1],,,,CCL0/IN[1],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA04)" "EXTINT[4],SDADCVREFB|AIN[4]|AIN[0]|Y[2],,SERCOM0/PAD[0],TCC0/WO[0],,,,CCL0/IN[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA07)" "EXTINT[7],AIN[7]|AIN[3]|Y[5]|INP[0],,SERCOM0/PAD[3],TCC1/WO[1],,,,CCL0/OUT[0],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA06)" "EXTINT[6],AIN[6]|AIN[2]|Y[4]|INN[0],,SERCOM0/PAD[2],TCC1/WO[0],,,,CCL0/IN[2],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA09)" "EXTINT[9],AIN[9]|AIN[11]|X[1]/Y[17],SERCOM0/PAD[1],SERCOM2/PAD[1],TCC0/WO[1],TCC1/WO[3],,,CCL1/IN[4],?..."
bitfld.byte 0x04 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA08)" "NMI,AIN[8]|AIN[10|X[0]/Y[16],SERCOM0/PAD[0],SERCOM2/PAD[0],TCC0/WO[0],TCC1/WO[2],,,CCL1/IN[3],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA11)" "EXTINT[11],AIN[11]|X[3]/Y[19],SERCOM0/PAD[3],SERCOM2/PAD[3],TCC1/WO[1],TCC0/WO[3],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x05 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA10)" "EXTINT[10],AIN[10]|X[2]/Y[18],SERCOM0/PAD[2],SERCOM2/PAD[2],TCC1/WO[0],TCC0/WO[2],,GCLK_IO[4],CCL1/IN[5],?..."
sif !cpuis("ATSAMC21E*")
group.byte 0x36++0x00
line.byte 0x00 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA13)" "EXTINT[13],,SERCOM2/PAD[1],SERCOM4/PAD[1],TCC2/WO[1],TCC0/WO[7],,AC/CMP[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA12)" "EXTINT[12],,SERCOM2/PAD[0],SERCOM4/PAD[0],TCC2/WO[0],TCC0/WO[6],,AC/CMP[0],?..."
endif
group.byte 0x37++0x02
line.byte 0x00 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA015)" "EXTINT[15],,SERCOM2/PAD[3],SERCOM4/PAD[3],TC4/WO[1],TCC0/WO[5],,GCLK_IO[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA14)" "EXTINT[14],,SERCOM2/PAD[2],SERCOM4/PAD[2],TC4/WO[0],TCC0/WO[4],,GCLK_IO[0],?..."
line.byte 0x01 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA17)" "EXTINT[1],X[5]/Y[21],SERCOM1/PAD[1],SERCOM3/PAD[1],TCC2/WO[1],TCC0/WO[7],,GCLK_IO[3],CCL0/IN[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA16)" "EXTINT[0],X[4]/Y[20],SERCOM1/PAD[0],SERCOM3/PAD[0],TCC2/WO[0],TCC0/WO[6],,GCLK_IO[2],CCL0/IN[0],?..."
line.byte 0x02 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA19)" "EXTINT[3],X[7]/Y[23],SERCOM1/PAD[3],SERCOM3/PAD[3],TC4/WO[1],TCC0/WO[3],,AC/CMP[1],CCL0/OUT[0],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA18)" "EXTINT[2],X[6]/Y[22],SERCOM1/PAD[2],SERCOM3/PAD[2],TC4/WO[0],TCC0/WO[2],,AC/CMP[0],CCL0/IN[2],?..."
sif !cpuis("ATSAMC21E*")
group.byte 0x3A++0x2
line.byte 0x00 "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA21)" "EXTINT[5],X[9]/Y[25],SERCOM5/PAD[3],SERCOM3/PAD[3],TC3/WO[1],TCC0/WO[7],,GCLK_IO[5],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA20)" "EXTINT[4],X[8]/Y[24],SERCOM5/PAD[2],SERCOM3/PAD[2],TC3/WO[0],TCC0/WO[6],,GCLK_IO[4],?..."
endif
group.byte 0x3B++0x1
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA23)" "EXTINT[7],X[11]/Y[27],SERCOM3/PAD[1],SERCOM5/PAD[1],TC0/WO[1],TCC0/WO[5],,GCLK_IO[7],CCL2IN[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA22)" "EXTINT[6],X[10]/Y[26],SERCOM3/PAD[0],SERCOM5/PAD[0],TC0/WO[0],TCC0/WO[4],,GCLK_IO[6],CCL2IN[0],?..."
line.byte 0x01 "PMUX12,Peripheral Multiplexing 12"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA25)" "EXTINT[13],,SERCOM3/PAD[3],SERCOM5/PAD[3],TC1/WO[1],TCC1/WO[3],CAN0/RX,AC/CMP[3],CCL2OUT,?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA24)" "EXTINT[12],,SERCOM3/PAD[2],SERCOM5/PAD[2],TC1/WO[0],TCC1/WO[2],CAN0/TX,AC/CMP[2],CCL2IN[2],?..."
group.byte 0x3D++0xF
line.byte 0x00 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA27)" "EXTINT[15],,,,,,BRK,GCLK_IO[0],?..."
line.byte 0x01 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA28)" "EXTINT[8],,,,,,,GCLK_IO[0],?..."
line.byte 0x02 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PA31)" "EXTINT[11],,,SERCOM1/PAD[3],TCC1/WO[1],,CORTEX_M0P/SWDIO,,CCL1OUT,?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PA30)" "EXTINT[10],,,SERCOM1/PAD[2],TCC1/WO[0],,CORTEX_M0P/SWCLK,GCLK_IO[0],CCL1IN[0],?..."
tree.end
endif
width 10.
sif cpuis("ATSAMC2?E*")
tree.open "Pin Configuration"
group.byte 0x40++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x41++0x0
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x42++0x0
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x43++0x0
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x44++0x0
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x45++0x0
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x46++0x0
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x47++0x0
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x48++0x0
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x49++0x0
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4A++0x0
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4B++0x0
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4C++0x0
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4D++0x0
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4E++0x0
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4F++0x0
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x50++0x0
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x51++0x0
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x52++0x0
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x53++0x0
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x54++0x0
line.byte 0x00 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x55++0x0
line.byte 0x00 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x56++0x0
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x57++0x0
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x58++0x0
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x59++0x0
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5A++0x0
line.byte 0x00 "PINCFG26,Pin Configuration 26"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5B++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5C++0x0
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5D++0x0
line.byte 0x00 "PINCFG29,Pin Configuration 29"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5E++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5F++0x0
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
tree.end
else
tree.open "Pin Configuration"
group.byte 0x40++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x41++0x0
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x42++0x0
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x43++0x0
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x44++0x0
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x45++0x0
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x46++0x0
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x47++0x0
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x48++0x0
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x49++0x0
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4A++0x0
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4B++0x0
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4C++0x0
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4D++0x0
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4E++0x0
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4F++0x0
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x50++0x0
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x51++0x0
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x52++0x0
line.byte 0x00 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x53++0x0
line.byte 0x00 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x54++0x0
line.byte 0x00 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x55++0x0
line.byte 0x00 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x56++0x0
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x57++0x0
line.byte 0x00 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x58++0x0
line.byte 0x00 "PINCFG24,Pin Configuration 24"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x59++0x0
line.byte 0x00 "PINCFG25,Pin Configuration 25"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5B++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5C++0x0
line.byte 0x00 "PINCFG28,Pin Configuration 28"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5E++0x0
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x5F++0x0
line.byte 0x00 "PINCFG31,Pin Configuration 31"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
tree.end
endif
width 0xb
tree.end
endif
sif cpuis("ATSAMC20G*")||cpuis("ATSAMC21G*")
tree "Port B"
base ad:0x41000080
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_set/clr,Data Direction"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " DIR[23] ,Port Data Direction bit 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Direction bit 22" "Input,Output"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Direction bit 10" "Input,Output"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Direction bit 8" "Input,Output"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Direction bit 2" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 23. " DIRTGL[23] ,Port Data Direction Toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,Port Data Direction Toggle bit 22" "Not changed,Toggled"
bitfld.long 0x00 11. " [11] ,Port Data Direction Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,Port Data Direction Toggle bit 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " [9] ,Port Data Direction Toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,Port Data Direction Toggle bit 8" "Not changed,Toggled"
bitfld.long 0x00 3. " [3] ,Port Data Direction Toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,Port Data Direction Toggle bit 2" "Not changed,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_set/clr,Data Output Value"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " OUT[23] ,Port Data Output Value bit 23" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Output Value bit 22" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Output Value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Output Value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Output Value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Output Value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Output Value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Output Value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 23. " OUTTGL[23] ,PORT B Data Output Value Toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,PORT B Data Output Value Toggle bit 22" "Not changed,Toggled"
bitfld.long 0x00 11. " [11] ,PORT B Data Output Value Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,PORT B Data Output Value Toggle bit 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " [9] ,PORT B Data Output Value Toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,PORT B Data Output Value Toggle bit 8" "Not changed,Toggled"
bitfld.long 0x00 3. " [3] ,PORT B Data Output Value Toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,PORT B Data Output Value Toggle bit 2" "Not changed,Toggled"
group.long 0x20++0x7
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 23. " IN[23] ,PORT B Data Input Value bit 23" "Low level,High level"
bitfld.long 0x00 22. " [22] ,PORT B Data Input Value bit 22" "Low level,High level"
bitfld.long 0x00 11. " [11] ,PORT B Data Input Value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,PORT B Data Input Value bit 10" "Low level,High level"
textline " "
bitfld.long 0x00 9. " [9] ,PORT B Data Input Value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,PORT B Data Input Value bit 8" "Low level,High level"
bitfld.long 0x00 3. " [3] ,PORT B Data Input Value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,PORT B Data Input Value bit 2" "Low level,High level"
line.long 0x04 "CTRL,Control"
bitfld.long 0x04 23. " SAMPLING[23] ,Input Sampling Mode bit 23" "Disabled,Enabled"
bitfld.long 0x04 22. " [22] ,Input Sampling Mode bit 22" "Disabled,Enabled"
bitfld.long 0x04 11. " [11] ,Input Sampling Mode bit 11" "Disabled,Enabled"
bitfld.long 0x04 10. " [10] ,Input Sampling Mode bit 10" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " [9] ,Input Sampling Mode bit 9" "Disabled,Enabled"
bitfld.long 0x04 8. " [8] ,Input Sampling Mode bit 8" "Disabled,Enabled"
bitfld.long 0x04 3. " [3] ,Input Sampling Mode bit 3" "Disabled,Enabled"
bitfld.long 0x04 2. " [2] ,Input Sampling Mode bit 2" "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,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "Not updated,Updated"
bitfld.long 0x00 24.--27. " PMUX ,Peripheral Multiplexing" ",PMUX1,,,PMUX4,PMUX5,,,,,,PMUX11,,,,"
textline " "
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "0,1"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "0,1"
bitfld.long 0x00 17. " INEN ,Input Enable" "0,1"
bitfld.long 0x00 16. " PMUXEN ,Peripheral Multiplexer Enable" "0,1"
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"
bitfld.long 0x00 24.--28. " PID3 ,PORT Event Pin Identifier 3" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
textline " "
bitfld.long 0x00 23. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
bitfld.long 0x00 16.--20. " PID2 ,PORT Event Pin Identifier 2" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
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"
bitfld.long 0x00 8.--12. " PID1 ,PORT Event Pin Identifier 1" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
textline " "
bitfld.long 0x00 7. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
bitfld.long 0x00 0.--4. " PID0 ,PORT Event Pin Identifier 0" ",,PIN2,PIN3,,,,,PIN8,PIN9,PIN10,PIN11,,,,,,,,,,,PIN22,PIN23,?..."
textline " "
width 7.
sif cpuis("ATSAMC20*")
tree.open "Peripheral Multiplexing"
group.byte 0x31++0x00
line.byte 0x00 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB03)" "EXTINT[3],Y[9],,,TC2/WO[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB02)" "EXTINT[2],Y[8],,,TC2/WO[0],,,,CCL0OUT,?..."
group.byte 0x34++0x00
line.byte 0x00 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB09)" "EXTINT[9],AIN[3]|Y[15],,,TC0WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB08)" "EXTINT[8],AIN[2]|Y[14],,,TC0/WO[0],,,,CCL2/IN[8],?..."
group.byte 0x35++0x00
line.byte 0x00 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB11)" "EXTINT[11],,,,TC1/WO[1],TCC0/WO[5],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB10)" "EXTINT[10],,,,TC1/WO[0],TCC0/WO[4],,GCLK_IO[4],CCL1/IN[5],?..."
group.byte 0x3B++0x00
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB23)" "EXTINT[7],,,,TC3/WO[1],,,GCLK_IO[1],CCL0OUT,?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB22)" "EXTINT[6],,,,TC3/WO[0],,,GCLK_IO[0],CCL0IN[0],?..."
tree.end
else
tree.open "Peripheral Multiplexing"
group.byte 0x31++0x00
line.byte 0x00 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB03)" "EXTINT[3],AIN[3]|Y[9],,SERCOM5/PAD[1],TC2/WO[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB02)" "EXTINT[2],AIN[2]|Y[8],,SERCOM5/PAD[0],TC2/WO[0],,,,CCL0OUT,?..."
group.byte 0x34++0x01
line.byte 0x00 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB09)" "EXTINT[9],AIN[3]|AIN[5]|Y[15]|INP[1],,SERCOM4/PAD[1],TC0WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB08)" "EXTINT[8],AIN[2]|AIN[4]|Y[14]|INN[1],,SERCOM4/PAD[0],TC0/WO[0],,,,CCL2/IN[8],?..."
group.byte 0x35++0x00
line.byte 0x00 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB11)" "EXTINT[11],,,SERCOM4/PAD[3],TC1/WO[1],TCC0/WO[5],CAN1/RX,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB10)" "EXTINT[10],,,SERCOM4/PAD[2],TC1/WO[0],TCC0/WO[4],CAN1/TX,GCLK_IO[4],CCL1/IN[5],?..."
group.byte 0x3B++0x00
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB23)" "EXTINT[7],,,SERCOM5/PAD[3],TC3/WO[1],,CAN0/RX,GCLK_IO[1],CCL0OUT,?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB22)" "EXTINT[6],,,SERCOM5/PAD[2],TC3/WO[0],,CAN0/TX,GCLK_IO[0],CCL0IN[0],?..."
tree.end
endif
width 10.
tree.open "Pin Configuration"
group.byte 0x42++0x01
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x48++0x03
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x02 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x02 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x02 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x02 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x03 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x03 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x03 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x03 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x03 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x56++0x01
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG23,Pin Configuration 23"
bitfld.byte 0x01 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
tree.end
width 0x0B
tree.end
elif cpuis("ATSAMC20J*")||cpuis("ATSAMC21J*")
tree "Port B"
base ad:0x41000080
width 13.
group.long 0x00++0x03
line.long 0x00 "DIR_set/clr,Data Direction"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " DIR[31] ,Port Data Direction bit 31" "Input,Output"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port Data Direction bit 30" "Input,Output"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port Data Direction bit 23" "Input,Output"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Direction bit 22" "Input,Output"
textline " "
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port Data Direction bit 17" "Input,Output"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port Data Direction bit 16" "Input,Output"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port Data Direction bit 15" "Input,Output"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port Data Direction bit 14" "Input,Output"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port Data Direction bit 13" "Input,Output"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port Data Direction bit 12" "Input,Output"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Direction bit 11" "Input,Output"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Direction bit 10" "Input,Output"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Direction bit 9" "Input,Output"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Direction bit 8" "Input,Output"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port Data Direction bit 7" "Input,Output"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port Data Direction bit 6" "Input,Output"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port Data Direction bit 5" "Input,Output"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port Data Direction bit 4" "Input,Output"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Direction bit 3" "Input,Output"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Direction bit 2" "Input,Output"
textline " "
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port Data Direction bit 1" "Input,Output"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port Data Direction bit 0" "Input,Output"
group.long 0x0C++0x03
line.long 0x00 "DIRTGL,Data Direction Toggle"
bitfld.long 0x00 31. " DIRTGL[31] ,Port Data Direction Toggle bit 31" "Not changed,Toggled"
bitfld.long 0x00 30. " [30] ,Port Data Direction Toggle bit 30" "Not changed,Toggled"
bitfld.long 0x00 23. " [23] ,Port Data Direction Toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,Port Data Direction Toggle bit 22" "Not changed,Toggled"
textline " "
bitfld.long 0x00 17. " [17] ,Port Data Direction Toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,Port Data Direction Toggle bit 16" "Not changed,Toggled"
bitfld.long 0x00 15. " [15] ,Port Data Direction Toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,Port Data Direction Toggle bit 14" "Not changed,Toggled"
textline " "
bitfld.long 0x00 13. " [13] ,Port Data Direction Toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,Port Data Direction Toggle bit 12" "Not changed,Toggled"
bitfld.long 0x00 11. " [11] ,Port Data Direction Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,Port Data Direction Toggle bit 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " [9] ,Port Data Direction Toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,Port Data Direction Toggle bit 8" "Not changed,Toggled"
bitfld.long 0x00 7. " [7] ,Port Data Direction Toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,Port Data Direction Toggle bit 6" "Not changed,Toggled"
textline " "
bitfld.long 0x00 5. " [5] ,Port Data Direction Toggle bit 5" "Not changed,Toggled"
bitfld.long 0x00 4. " [4] ,Port Data Direction Toggle bit 4" "Not changed,Toggled"
bitfld.long 0x00 3. " [3] ,Port Data Direction Toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,Port Data Direction Toggle bit 2" "Not changed,Toggled"
textline " "
bitfld.long 0x00 1. " [1] ,Port Data Direction Toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,Port Data Direction Toggle bit 0" "Not changed,Toggled"
group.long 0x10++0x03
line.long 0x00 "OUT_set/clr,Data Output Value"
setclrfld.long 0x00 31. 0x08 31. 0x04 31. " OUT[31] ,Port Data Output Value bit 31" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 30. 0x08 30. 0x04 30. " [30] ,Port Data Output Value bit 30" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 23. 0x08 23. 0x04 23. " [23] ,Port Data Output Value bit 23" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 22. 0x08 22. 0x04 22. " [22] ,Port Data Output Value bit 22" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 17. 0x08 17. 0x04 17. " [17] ,Port Data Output Value bit 17" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 16. 0x08 16. 0x04 16. " [16] ,Port Data Output Value bit 16" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 15. 0x08 15. 0x04 15. " [15] ,Port Data Output Value bit 15" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 14. 0x08 14. 0x04 14. " [14] ,Port Data Output Value bit 14" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 13. 0x08 13. 0x04 13. " [13] ,Port Data Output Value bit 13" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 12. 0x08 12. 0x04 12. " [12] ,Port Data Output Value bit 12" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 11. 0x08 11. 0x04 11. " [11] ,Port Data Output Value bit 11" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 10. 0x08 10. 0x04 10. " [10] ,Port Data Output Value bit 10" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 9. 0x08 9. 0x04 9. " [9] ,Port Data Output Value bit 9" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 8. 0x08 8. 0x04 8. " [8] ,Port Data Output Value bit 8" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 7. 0x08 7. 0x04 7. " [7] ,Port Data Output Value bit 7" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 6. 0x08 6. 0x04 6. " [6] ,Port Data Output Value bit 6" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 5. 0x08 5. 0x04 5. " [5] ,Port Data Output Value bit 5" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 4. 0x08 4. 0x04 4. " [4] ,Port Data Output Value bit 4" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 3. 0x08 3. 0x04 3. " [3] ,Port Data Output Value bit 3" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 2. 0x08 2. 0x04 2. " [2] ,Port Data Output Value bit 2" "Driven low/Pull-down,Driven high/Pull-up"
textline " "
setclrfld.long 0x00 1. 0x08 1. 0x04 1. " [1] ,Port Data Output Value bit 1" "Driven low/Pull-down,Driven high/Pull-up"
setclrfld.long 0x00 0. 0x08 0. 0x04 0. " [0] ,Port Data Output Value bit 0" "Driven low/Pull-down,Driven high/Pull-up"
group.long 0x1C++0x03
line.long 0x00 "OUTTGL,Data Output Value Toggle"
bitfld.long 0x00 31. " OUTTGL[31] ,PORT B Data Output Value Toggle bit 31" "Not changed,Toggled"
bitfld.long 0x00 23. " [23] ,PORT B Data Output Value Toggle bit 23" "Not changed,Toggled"
bitfld.long 0x00 22. " [22] ,PORT B Data Output Value Toggle bit 22" "Not changed,Toggled"
textline " "
bitfld.long 0x00 17. " [17] ,PORT B Data Output Value Toggle bit 17" "Not changed,Toggled"
bitfld.long 0x00 16. " [16] ,PORT B Data Output Value Toggle bit 16" "Not changed,Toggled"
bitfld.long 0x00 15. " [15] ,PORT B Data Output Value Toggle bit 15" "Not changed,Toggled"
bitfld.long 0x00 14. " [14] ,PORT B Data Output Value Toggle bit 14" "Not changed,Toggled"
textline " "
bitfld.long 0x00 13. " [13] ,PORT B Data Output Value Toggle bit 13" "Not changed,Toggled"
bitfld.long 0x00 12. " [12] ,PORT B Data Output Value Toggle bit 12" "Not changed,Toggled"
bitfld.long 0x00 11. " [11] ,PORT B Data Output Value Toggle bit 11" "Not changed,Toggled"
bitfld.long 0x00 10. " [10] ,PORT B Data Output Value Toggle bit 10" "Not changed,Toggled"
textline " "
bitfld.long 0x00 9. " [9] ,PORT B Data Output Value Toggle bit 9" "Not changed,Toggled"
bitfld.long 0x00 8. " [8] ,PORT B Data Output Value Toggle bit 8" "Not changed,Toggled"
bitfld.long 0x00 7. " [7] ,PORT B Data Output Value Toggle bit 7" "Not changed,Toggled"
bitfld.long 0x00 6. " [6] ,PORT B Data Output Value Toggle bit 6" "Not changed,Toggled"
textline " "
bitfld.long 0x00 5. " [5] ,PORT B Data Output Value Toggle bit 5" "Not changed,Toggled"
bitfld.long 0x00 4. " [4] ,PORT B Data Output Value Toggle bit 4" "Not changed,Toggled"
bitfld.long 0x00 3. " [3] ,PORT B Data Output Value Toggle bit 3" "Not changed,Toggled"
bitfld.long 0x00 2. " [2] ,PORT B Data Output Value Toggle bit 2" "Not changed,Toggled"
textline " "
bitfld.long 0x00 1. " [1] ,PORT B Data Output Value Toggle bit 1" "Not changed,Toggled"
bitfld.long 0x00 0. " [0] ,PORT B Data Output Value Toggle bit 0" "Not changed,Toggled"
group.long 0x20++0x7
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN[31] ,PORT B Data Input Value bit 31" "Low level,High level"
bitfld.long 0x00 30. " [30] ,PORT B Data Input Value bit 30" "Low level,High level"
bitfld.long 0x00 23. " [23] ,PORT B Data Input Value bit 23" "Low level,High level"
bitfld.long 0x00 22. " [22] ,PORT B Data Input Value bit 22" "Low level,High level"
textline " "
bitfld.long 0x00 17. " [17] ,PORT B Data Input Value bit 17" "Low level,High level"
bitfld.long 0x00 16. " [16] ,PORT B Data Input Value bit 16" "Low level,High level"
bitfld.long 0x00 15. " [15] ,PORT B Data Input Value bit 15" "Low level,High level"
bitfld.long 0x00 14. " [14] ,PORT B Data Input Value bit 14" "Low level,High level"
textline " "
bitfld.long 0x00 13. " [13] ,PORT B Data Input Value bit 13" "Low level,High level"
bitfld.long 0x00 12. " [12] ,PORT B Data Input Value bit 12" "Low level,High level"
bitfld.long 0x00 11. " [11] ,PORT B Data Input Value bit 11" "Low level,High level"
bitfld.long 0x00 10. " [10] ,PORT B Data Input Value bit 10" "Low level,High level"
textline " "
bitfld.long 0x00 9. " [9] ,PORT B Data Input Value bit 9" "Low level,High level"
bitfld.long 0x00 8. " [8] ,PORT B Data Input Value bit 8" "Low level,High level"
bitfld.long 0x00 7. " [7] ,PORT B Data Input Value bit 7" "Low level,High level"
bitfld.long 0x00 6. " [6] ,PORT B Data Input Value bit 6" "Low level,High level"
textline " "
bitfld.long 0x00 5. " [5] ,PORT B Data Input Value bit 5" "Low level,High level"
bitfld.long 0x00 4. " [4] ,PORT B Data Input Value bit 4" "Low level,High level"
bitfld.long 0x00 3. " [3] ,PORT B Data Input Value bit 3" "Low level,High level"
bitfld.long 0x00 2. " [2] ,PORT B Data Input Value bit 2" "Low level,High level"
textline " "
bitfld.long 0x00 1. " [1] ,PORT B Data Input Value bit 1" "Low level,High level"
bitfld.long 0x00 0. " [0] ,PORT B Data Input Value bit 0" "Low level,High level"
line.long 0x04 "CTRL,Control"
bitfld.long 0x04 31. " SAMPLING[31] ,Input Sampling Mode bit 31" "Disabled,Enabled"
bitfld.long 0x04 30. " [30] ,Input Sampling Mode bit 30" "Disabled,Enabled"
bitfld.long 0x04 23. " [23] ,Input Sampling Mode bit 23" "Disabled,Enabled"
bitfld.long 0x04 22. " [22] ,Input Sampling Mode bit 22" "Disabled,Enabled"
textline " "
bitfld.long 0x04 17. " [17] ,Input Sampling Mode bit 17" "Disabled,Enabled"
bitfld.long 0x04 16. " [16] ,Input Sampling Mode bit 16" "Disabled,Enabled"
bitfld.long 0x04 15. " [15] ,Input Sampling Mode bit 15" "Disabled,Enabled"
bitfld.long 0x04 14. " [14] ,Input Sampling Mode bit 14" "Disabled,Enabled"
textline " "
bitfld.long 0x04 13. " [13] ,Input Sampling Mode bit 13" "Disabled,Enabled"
bitfld.long 0x04 12. " [12] ,Input Sampling Mode bit 12" "Disabled,Enabled"
bitfld.long 0x04 11. " [11] ,Input Sampling Mode bit 11" "Disabled,Enabled"
bitfld.long 0x04 10. " [10] ,Input Sampling Mode bit 10" "Disabled,Enabled"
textline " "
bitfld.long 0x04 9. " [9] ,Input Sampling Mode bit 9" "Disabled,Enabled"
bitfld.long 0x04 8. " [8] ,Input Sampling Mode bit 8" "Disabled,Enabled"
bitfld.long 0x04 7. " [7] ,Input Sampling Mode bit 7" "Disabled,Enabled"
bitfld.long 0x04 6. " [6] ,Input Sampling Mode bit 6" "Disabled,Enabled"
textline " "
bitfld.long 0x04 5. " [5] ,Input Sampling Mode bit 5" "Disabled,Enabled"
bitfld.long 0x04 4. " [4] ,Input Sampling Mode bit 4" "Disabled,Enabled"
bitfld.long 0x04 3. " [3] ,Input Sampling Mode bit 3" "Disabled,Enabled"
bitfld.long 0x04 2. " [2] ,Input Sampling Mode bit 2" "Disabled,Enabled"
textline " "
bitfld.long 0x04 1. " [1] ,Input Sampling Mode bit 1" "Disabled,Enabled"
bitfld.long 0x04 0. " [0] ,Input Sampling Mode bit 0" "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,Upper 16"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "Not updated,Updated"
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,,,PMUX11,,,,PMUX15"
textline " "
bitfld.long 0x00 22. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull Enable" "Disabled,Enabled"
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"
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"
textline " "
bitfld.long 0x00 23. " PORTEI2 ,PORT Event Input 2 Enable" "Not triggered,Triggered"
bitfld.long 0x00 21.--22. " EVACT2 ,PORT Event Action 2" "OUT,SET,CLR,TGL"
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,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
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"
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,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
textline " "
bitfld.long 0x00 7. " PORTEI0 ,PORT Event Input 0 Enable" "Not triggered,Triggered"
bitfld.long 0x00 5.--6. " EVACT0 ,PORT Event Action 0" "OUT,SET,CLR,TGL"
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,,,,,PIN22,PIN23,,,,,,,PIN30,PIN31"
textline " "
width 7.
sif cpuis("ATSAMC20*")
tree.open "Peripheral Multiplexing"
group.byte 0x30++0x03
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB01)" "EXTINT[1],Y[7],,,TC3/WO[1],,,,CCL0IN[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB00)" "EXTINT[0],Y[6],,,TC3/WO[0],,,,CCL0IN[1],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB03)" "EXTINT[3],Y[9],,,TC2/WO[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB02)" "EXTINT[2],Y[8],,,TC2/WO[0],,,,CCL0OUT,?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB05)" "EXTINT[5],AIN[6]|Y[11],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB04)" "EXTINT[4],Y[10],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB07)" "EXTINT[7],Y[13],,,,,,,CCL2/IN[7],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB06)" "EXTINT[6],AIN[7]|Y[12],,,,,,,CCL2/IN[6],?..."
group.byte 0x34++0x01
line.byte 0x00 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB09)" "EXTINT[9],AIN[3]|Y[15],,,TC0WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB08)" "EXTINT[8],AIN[2]|Y[14],,,TC0/WO[0],,,,CCL2/IN[8],?..."
line.byte 0x01 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB11)" "EXTINT[11],,,,TC1/WO[1],TCC0/WO[5],,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB10)" "EXTINT[10],,,,TC1/WO[0],TCC0/WO[4],,GCLK_IO[4],CCL1/IN[5],?..."
group.byte 0x36++0x02
line.byte 0x00 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB13)" "EXTINT[13],X[13]/Y[29],,,TC0/WO[1],TCC0/WO[7],,GCLK_IO[7],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB12)" "EXTINT[12],X[12]/Y[28],,,TC0/WO[0],TCC0/WO[6],,GCLK_IO[6],?..."
line.byte 0x01 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB15)" "EXTINT[15],X[15]/Y[31],,,TC1/WO[1],,,GCLK_IO[1],CCL3/IN[10],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB14)" "EXTINT[14],X[14]/Y[30],,,TC1/WO[0],,,GCLK_IO[0],CCL3/IN[9],?..."
line.byte 0x02 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB17)" "EXTINT[1],,,,TC2/WO[1],TCC0/WO[5],,GCLK_IO[3],CCL3/OUT[3],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB16)" "EXTINT[0],,,,TC2/WO[0],TCC0/WO[4],,GCLK_IO[2],GCLK_IO[2]CCL3/IN[11],?..."
group.byte 0x3B++0x00
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB23)" "EXTINT[7],,,,TC3/WO[1],,,GCLK_IO[1],CCL0OUT,?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB22)" "EXTINT[6],,,,TC3/WO[0],,,GCLK_IO[0],CCL0IN[0],?..."
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB31)" "EXTINT[15],,,,TCC0/WO[1],,,AC/CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB30)" "EXTINT[14],,,,TCC0/WO[0],,,AC/CMP[2],?..."
tree.end
else
tree.open "Peripheral Multiplexing"
group.byte 0x30++0x03
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB01)" "EXTINT[1],AIN[1]|Y[7],,SERCOM5/PAD[3],TC3/WO[1],,,,CCL0IN[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB00)" "EXTINT[0],AIN[0]|Y[6],,SERCOM5/PAD[2],TC3/WO[0],,,,CCLIN[1],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB03)" "EXTINT[3],AIN[3]|Y[9],,SERCOM5/PAD[1],TC2/WO[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB02)" "EXTINT[2],AIN[2]|Y[8],,SERCOM5/PAD[0],TC2/WO[0],,,,CCL0OUT,?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB05)" "EXTINT[5],AIN[7]|AIN[6]|Y[11],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB04)" "EXTINT[4],AIN[6]|Y[10],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB07)" "EXTINT[7],AIN[9]|Y[13]|INP[2],,,,,,,CCL2/IN[7],?..."
bitfld.byte 0x03 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB06)" "EXTINT[6],AIN[8]|AIN[7]|Y[12]|INN[2],,,,,,,CCL2/IN[6],?..."
group.byte 0x34++0x01
line.byte 0x00 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB09)" "EXTINT[9],AIN[3]|AIN[5]|Y[15]|INP[1],,SERCOM4/PAD[1],TC0WO[1],,,,CCL2/OUT[2],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB08)" "EXTINT[8],AIN[2]|AIN[4]|Y[14]|INN[1],,SERCOM4/PAD[0],TC0/WO[0],,,,CCL2/IN[8],?..."
line.byte 0x01 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB11)" "EXTINT[11],,,SERCOM4/PAD[3],TC1/WO[1],TCC0/WO[5],CAN1/RX,GCLK_IO[5],CCL1/OUT[1],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB10)" "EXTINT[10],,,SERCOM4/PAD[2],TC1/WO[0],TCC0/WO[4],CAN1/TX,GCLK_IO[4],CCL1/IN[5],?..."
group.byte 0x36++0x02
line.byte 0x00 "PMUX6,Peripheral Multiplexing 6"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB13)" "EXTINT[13],X[13]/Y[29],SERCOM4/PAD[1],,TC0/WO[1],TCC0/WO[7],,GCLK_IO[7],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB12)" "EXTINT[12],X[12]/Y[28],SERCOM4/PAD[0],,TC0/WO[0],TCC0/WO[6],,GCLK_IO[6],?..."
line.byte 0x01 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x01 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB15)" "EXTINT[15],X[15]/Y[31],SERCOM4/PAD[3],,TC1/WO[1],,CAN1/RX,GCLK_IO[1],CCL3/IN[10],?..."
bitfld.byte 0x01 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB14)" "EXTINT[14],X[14]/Y[30],SERCOM4/PAD[2],,TC1/WO[0],,CAN1/TX,GCLK_IO[0],CCL3/IN[9],?..."
line.byte 0x02 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x02 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB17)" "EXTINT[1],,SERCOM5/PAD[1],,TC2/WO[1],TCC0/WO[5],,GCLK_IO[3],CCL3/OUT[3],?..."
bitfld.byte 0x02 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB16)" "EXTINT[0],,SERCOM5/PAD[0],,TC2/WO[0],TCC0/WO[4],,GCLK_IO[2],CCL3/IN[11],?..."
group.byte 0x3B++0x00
line.byte 0x00 "PMUX11,Peripheral Multiplexing 11"
bitfld.byte 0x00 4.--7. " PMUXO ,Peripheral Multiplexing Odd (PB23)" "EXTINT[7],,,SERCOM5/PAD[3],TC3/WO[1],,CAN0/RX,GCLK_IO[1],CCL0OUT,?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB22)" "EXTINT[6],,,SERCOM5/PAD[2],TC3/WO[0],,CAN0/TX,GCLK_IO[0],CCL0IN[0],?..."
group.byte 0x3F++0x00
line.byte 0x00 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x00 4.--7. " nPMUXO ,Peripheral Multiplexing Odd (PB31)" "EXTINT[15],,,SERCOM5/PAD[1],TCC0/WO[1],TCC1/WO[3],,AC/CMP[3],?..."
bitfld.byte 0x00 0.--3. " PMUXE ,Peripheral Multiplexing Even (PB30)" "EXTINT[14],,,SERCOM5/PAD[0],TCC0/WO[0],TCC1/WO[2],,AC/CMP[2],?..."
tree.end
endif
width 10.
tree.open "Pin Configuration Registers"
group.byte 0x41++0x00
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"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x42++0x00
line.byte 0x00 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x43++0x00
line.byte 0x00 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x44++0x00
line.byte 0x00 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x45++0x00
line.byte 0x00 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x46++0x00
line.byte 0x00 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x47++0x00
line.byte 0x00 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x48++0x00
line.byte 0x00 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x49++0x00
line.byte 0x00 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4A++0x00
line.byte 0x00 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4B++0x00
line.byte 0x00 "PINCFG10,Pin Configuration 10"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4C++0x00
line.byte 0x00 "PINCFG11,Pin Configuration 11"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4D++0x00
line.byte 0x00 "PINCFG12,Pin Configuration 12"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4E++0x00
line.byte 0x00 "PINCFG13,Pin Configuration 13"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x4F++0x00
line.byte 0x00 "PINCFG14,Pin Configuration 14"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x50++0x00
line.byte 0x00 "PINCFG15,Pin Configuration 15"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x51++0x00
line.byte 0x00 "PINCFG16,Pin Configuration 16"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x52++0x00
line.byte 0x00 "PINCFG17,Pin Configuration 17"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
group.byte 0x57++0x00
line.byte 0x00 "PINCFG22,Pin Configuration 22"
bitfld.byte 0x00 6. " DRVSTR ,Output Driver Strength Selection" "Normal,Stronger"
bitfld.byte 0x00 2. " PULLEN ,Pull Enable" "Disabled,Enabled"
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"
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"
bitfld.byte 0x01 1. " INEN ,Input Enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " PMUXEN ,Peripheral Multiplexer Enable" "Disabled,Enabled"
tree.end
width 0xb
tree.end
endif
tree.end
tree "EVSYS (Event System)"
base ad:0x42000000
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
sif (cpuis("ATSAMC20N17A")||cpuis("ATSAMC20N18A")||cpuis("ATSAMC21N17A")||cpuis("ATSAMC21N18A"))
tree.open "SERCOM (Serial Communication Interface)"
tree "SERCOM 0"
base ad:0x42000400
width 18.
if (((per.l(ad:0x42000400+0x00))&0x1C)==0x08)||(((per.l(ad:0x42000400+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000400+0x00))&0x1C)==0x00)||(((per.l(ad:0x42000400+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42000400+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42000400+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
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 USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000400+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42000400+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 1"
base ad:0x42000800
width 18.
if (((per.l(ad:0x42000800+0x00))&0x1C)==0x08)||(((per.l(ad:0x42000800+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000800+0x00))&0x1C)==0x00)||(((per.l(ad:0x42000800+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42000800+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
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 USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000800+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42000800+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 2"
base ad:0x42000C00
width 18.
if (((per.l(ad:0x42000C00+0x00))&0x1C)==0x08)||(((per.l(ad:0x42000C00+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000C00+0x00))&0x1C)==0x00)||(((per.l(ad:0x42000C00+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42000C00+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
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 USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42000C00+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42000C00+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 3"
base ad:0x42001000
width 18.
if (((per.l(ad:0x42001000+0x00))&0x1C)==0x08)||(((per.l(ad:0x42001000+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001000+0x00))&0x1C)==0x00)||(((per.l(ad:0x42001000+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42001000+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
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 USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001000+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42001000+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 4"
base ad:0x42001400
width 18.
if (((per.l(ad:0x42001400+0x00))&0x1C)==0x08)||(((per.l(ad:0x42001400+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001400+0x00))&0x1C)==0x00)||(((per.l(ad:0x42001400+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42001400+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif ((((per.l(ad:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x6000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001400+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42001400+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 5"
base ad:0x42001800
width 18.
if (((per.l(ad:0x42001800+0x00))&0x1C)==0x08)||(((per.l(ad:0x42001800+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001800+0x00))&0x1C)==0x00)||(((per.l(ad:0x42001800+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x42001800+0x00))&0xE000)==0x2000)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif ((((per.l(ad:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x6000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x42001800+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x42001800+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,HSm,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 6"
base ad:0x43000000
width 18.
if (((per.l(ad:0x43000000+0x00))&0x1C)==0x08)||(((per.l(ad:0x43000000+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x43000000+0x00))&0x1C)==0x00)||(((per.l(ad:0x43000000+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x43000000+0x00))&0xE000)==0x2000)||(((per.l(ad:0x43000000+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
elif ((((per.l(ad:0x43000000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x43000000+0x00))&0xE000)==0x6000))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x43000000+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x43000000+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree "SERCOM 7"
base ad:0x43000400
width 18.
if (((per.l(ad:0x43000400+0x00))&0x1C)==0x08)||(((per.l(ad:0x43000400+0x00))&0x1C)==0x0C)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A SPI"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CPHA ,Clock phase" "Low,High"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data in pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data out pinout" "0,1,2,3"
newline
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x04 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x04 6. " PLOADEN ,Slave data preload enable" "Disabled,Enabled"
bitfld.long 0x04 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,?..."
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
newline
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit complete interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 3. " SSL ,Slave select low interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
newline
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x01 " ADDRMASK ,Address"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x43000400+0x00))&0x1C)==0x00)||(((per.l(ad:0x43000400+0x00))&0x1C)==0x04)
if ((((per.l(ad:0x43000400+0x00))&0xE000)==0x2000)||(((per.l(ad:0x43000400+0x00))&0xE000)==0x00))
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
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 USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
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]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A USART"
bitfld.long 0x00 30. " DORD ,Data order" "MSB first,LSB first"
bitfld.long 0x00 29. " CPOL ,Clock polarity" "Low,High"
bitfld.long 0x00 28. " CMODE ,Communication mode" "Asynchronous,Synchronous"
newline
bitfld.long 0x00 24.--27. " FORM ,Frame format" "USART,USART with parity,LIN,,Auto-baud,Auto-baud with parity,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample adjustment" "0,1,2,3"
bitfld.long 0x00 20.--21. " RXPO ,Receive data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
newline
bitfld.long 0x00 16.--17. " TXPO ,Transmit data pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 13.--15. " SAMPR ,Sample rate" "16x arithmetic,16x fractional,8x arithmetic,8x functional,3x arithmetic,?..."
bitfld.long 0x00 8. " IBON ,Immediate buffer overflow notification" "Data stream,Buffer overflow"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.long 0x04++0x07
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 24.--25. " LINCMD ,LIN Command" "Normal USART,Break,Break/sync/identifier,?..."
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter enable" "Disabled,Enabled"
newline
bitfld.long 0x00 13. " PMODE ,Parity mode" "Even,Odd"
bitfld.long 0x00 10. " ENC ,Encoding format" "Encoded,IrDA encoded"
bitfld.long 0x00 9. " SFDE ,Start of frame detection enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " COLDEN ,Collision detection enable" "Disabled,Enabled"
bitfld.long 0x00 6. " SBMODE ,Stop bit mode" "One,Two"
bitfld.long 0x00 0.--2. " CHSIZE ,Character size" "8BIT,9BIT,,,,5BIT,6BIT,7BIT"
line.long 0x04 "CTRLC,Control C"
bitfld.long 0x04 10.--11. " HDRDLY ,LIN master header delay" "1BIT,4BIT,8BIT,14BIT"
bitfld.long 0x04 8.--9. " BRKLEN ,LIN master break length" "13BIT,17BIT,21BIT,26BIT"
bitfld.long 0x04 0.--2. " GTIME ,Guard time" "0,1,2,3,4,5,6,7"
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud Rate"
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/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"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
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"
newline
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data register empty interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 5. " RXBRK ,Receive break enable" "Disabled,Enabled"
eventfld.byte 0x00 4. " CTSIC ,Clear to send input change enable" "Disabled,Enabled"
newline
eventfld.byte 0x00 3. " RXS ,Receive start interrupt enable" "Disabled,Enabled"
rbitfld.byte 0x00 2. " RXC ,Receive complete" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " TXC ,Transmit complete" "No interrupt,Interrupt"
newline
rbitfld.byte 0x00 0. " DRE ,Data register empty" "No interrupt,Interrupt"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 6. " TXE ,Transmitter empty" "Not empty,Empty"
eventfld.word 0x00 5. " COLL ,Collision detected" "Not detected,Detected"
eventfld.word 0x00 4. " ISF ,Inconsistent sync field" "Equal,Not equal"
newline
eventfld.word 0x00 3. " CTS ,Clear to send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer overflow" "No overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame error" "No error,Error"
newline
eventfld.word 0x00 0. " PERR ,Parity error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB synchronization busy" "Idle,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM enable synchronization busy" "Idle,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Idle,Busy"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--8. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
elif (((per.l(ad:0x43000400+0x00))&0x1C)==0x10)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,?..."
newline
bitfld.long 0x00 23. " SEXTTOEN ,Slave SCL low extend time-out" "Disabled,Enabled"
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Low,High"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,,2,3"
bitfld.long 0x04 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
newline
bitfld.long 0x04 10. " AACKEN ,Automatic acknowledge enable" "Disabled,Enabled"
bitfld.long 0x04 9. " GCMD ,PMBus group command" "Disabled,Enabled"
bitfld.long 0x04 8. " SMEN ,Smart mode enable" "Disabled,Enabled"
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 2. 0x00 2. -0x02 2. " DRDY ,Data ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " AMATCH ,Address match interrupt enable" "Disabled,Enabled"
newline
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" "Not occurred,Occurred"
eventfld.byte 0x00 2. " DRDY ,Data ready" "Not occurred,Occurred"
eventfld.byte 0x00 1. " AMATCH ,Address match" "Not occurred,Occurred"
newline
eventfld.byte 0x00 0. " PREC ,Stop received" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 11. " LENERR ,Transaction length error" "Not occurred,Occurred"
eventfld.word 0x00 10. " HS ,High-speed" "No effect,Cleared"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
newline
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
newline
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "Not occurred,Occurred"
newline
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.word 0x00 17.--26. 0x02 " ADDRMASK ,Address mask"
bitfld.long 0x00 15. " TENBITEN ,Ten bit addressing enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
newline
bitfld.long 0x00 0. " GENCEN ,General call address enable" "Disabled,Enabled"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
elif (((per.l(ad:0x43000400+0x00))&0x1C)==0x14)
group.long 0x00++0x07
line.long 0x00 "CTRLA,Control A I2C"
bitfld.long 0x00 30. " LOWTOUT ,SCL low time out" "Disabled,Enabled"
bitfld.long 0x00 28.--29. " INACTOUT ,Inactive time-out" "DIS,55US,105US,205US"
bitfld.long 0x00 27. " SCLSM ,SCL clock stretch mode" "Low,High"
newline
bitfld.long 0x00 24.--25. " SPEED ,Transfer speed" "Sm/Fm,Fm+,?..."
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"
newline
bitfld.long 0x00 20.--21. " SDAHOLD ,SDA hold time" "DIS,75NS,450NS,600NS"
bitfld.long 0x00 16. " PINOUT ,Pin usage" "Disabled,Enabled"
bitfld.long 0x00 7. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.long 0x04 "CTRLB,Control B"
bitfld.long 0x04 18. " ACKACT ,Acknowledge action" "ACK,NACK"
bitfld.long 0x04 16.--17. " CMD ,Command" "No action,1,2,3"
newline
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"
newline
hexmask.long.byte 0x00 0.--7. 1. " BAUD ,Master baud rate"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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" "Not occurred,Occurred"
eventfld.byte 0x00 1. " SB ,Slave on bus" "Not occurred,Occurred"
eventfld.byte 0x00 0. " MB ,Master on bus" "Not occurred,Occurred"
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " LENERR ,Transaction length error" "Not occurred,Occurred"
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"
newline
eventfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not held,Held"
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
bitfld.word 0x00 4.--5. " BUSSTATE ,Bus state" "UNKNOWN,IDLE,OWNER,BUSY"
newline
eventfld.word 0x00 2. " RXNACK ,Received not acknowledge" "Not occurred,Occurred"
eventfld.word 0x00 1. " ARBLOST ,Arbitration lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus error" "Not occurred,Occurred"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy 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"
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"
newline
bitfld.long 0x00 13. " LENEN ,Transfer length enable" "Disabled,Enabled"
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
group.word 0x28++0x01
line.word 0x00 "DATA,Data"
hexmask.word.byte 0x00 0.--7. 1. " DATA ,Data"
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug stop mode" "Continued,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A SPI"
newline
newline
newline
newline
bitfld.long 0x00 2.--4. " MODE ,Operating mode" "USART Ext,USART Int,SPI slave,SPI master,I2C slave,I2C master,?..."
endif
width 0x0B
tree.end
tree.end
else
tree.open "SERCOM (Serial Communication Interface)"
tree "SERCOM 0"
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 "SERCOM 1"
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 "SERCOM 2"
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
tree "SERCOM 3"
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
sif cpuis("ATSAMC21*")
tree "SERCOM 4"
base ad:0x42001400
width 15.
if ((per.l(ad:0x42001400+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42001400+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001400+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:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+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:0x42001400+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:0x42001400+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:0x42001400+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:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+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:0x42001400+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:0x42001400+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:0x42001400+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:0x42001400+0x00)&0x1C)==0x08)||((per.l(ad:0x42001400+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x42001400+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:0x42001400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
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:0x42001400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "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:0x42001400+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:0x42001400+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001400+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:0x42001400+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:0x42001400+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:0x42001400+0x00)&0x1C)==0x10)
if (((per.l(ad:0x42001400+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:0x42001400+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,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:0x42001400+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001400+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:0x42001400+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:0x42001400+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001400+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:0x42001400+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:0x42001400+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001400+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:0x42001400+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 "SERCOM 5"
base ad:0x42001800
width 15.
if ((per.l(ad:0x42001800+0x00)&0x1C)==(0x00||0x04))
if ((per.l(ad:0x42001800+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001800+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:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+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:0x42001800+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:0x42001800+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:0x42001800+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:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+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:0x42001800+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:0x42001800+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:0x42001800+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:0x42001800+0x00)&0x1C)==0x08)||((per.l(ad:0x42001800+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x42001800+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:0x42001800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
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:0x42001800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master slave select enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave select low detect enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave data preload enable" "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:0x42001800+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:0x42001800+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001800+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:0x42001800+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:0x42001800+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:0x42001800+0x00)&0x1C)==0x10)
if (((per.l(ad:0x42001800+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:0x42001800+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL low extend time-out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL low time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/write direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received not acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,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:0x42001800+0x00))&0x02)==0x02)
if (((per.l(ad:0x42001800+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001800+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:0x42001800+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:0x42001800+0x04))&0xC000)==(0x8000||0x4000))
if ((per.l(ad:0x42001800+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:0x42001800+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:0x42001800+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001800+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:0x42001800+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
endif
sif cpuis("ATSAMC21*")
tree.open "CAN (Control Area Network)"
tree "CAN 0"
base ad:0x42001C00
width 8.
sif (!cpuis("BCM89103")&&!cpuis("BCM89107"))
rgroup.long 0x00++0x07
line.long 0x00 "CREL,Core Release Register"
bitfld.long 0x00 28.--31. " REL ,Core release" "0,1,2,3,4,5,6,7,8,9,?..."
bitfld.long 0x00 24.--27. " STEP ,Step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
sif (cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*"))
bitfld.long 0x00 20.--23. " LSUBSTEP ,Sub-step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
else
bitfld.long 0x00 20.--23. " DUPSTEP ,Sub-step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
endif
line.long 0x04 "ENDN,Endian (Endianness Test Value) Register"
group.long 0x08++0x03
line.long 0x00 "MRCFG,Message RAM Configuration Register"
sif !cpuis("ATSAMD5*")&&!cpuis("ATSAME5*")&&!cpuis("ATSAMC21*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "No,Yes"
newline
endif
bitfld.long 0x00 0.--1. " DQOS ,Data quality of service" "Disabled,Low,Medium,High"
endif
if (((per.l(ad:0x42001C00+0x18))&0x03)==0x03)
group.long 0x0C++0x03
line.long 0x00 "DBTP,Data Bit Timing & Prescaler Register"
bitfld.long 0x00 23. " TDC ,Transceiver delay compensation enable" "Disabled,Enabled"
bitfld.long 0x00 16.--20. " DBRP ,Data baud rate prescaler" "0,1,2,3,4,5,6,7,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
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*")
bitfld.long 0x00 8.--12. " DTSEG1 ,Fast time segment before sample point" "0,1,2,3,4,5,6,7,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
else
bitfld.long 0x00 8.--11. " DTSEG1 ,Data time segment before sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
endif
bitfld.long 0x00 4.--7. " DTSEG2 ,Data time segment after sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 0.--3. " DSJW ,Data (re)synchronization jump width" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
rgroup.long 0x0C++0x03
line.long 0x00 "DBTP,Data Bit Timing & Prescaler Register"
bitfld.long 0x00 23. " TDC ,Transceiver delay compensation enable" "Disabled,Enabled"
bitfld.long 0x00 16.--20. " DBRP ,Data baud rate prescaler" "0,1,2,3,4,5,6,7,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
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*")
bitfld.long 0x00 8.--12. " DTSEG1 ,Fast time segment before sample point" "0,1,2,3,4,5,6,7,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
else
bitfld.long 0x00 8.--11. " DTSEG1 ,Data time segment before sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
endif
bitfld.long 0x00 4.--7. " DTSEG2 ,Data time segment after sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 0.--3. " DSJW ,Data (re)synchronization jump width" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
if (((per.l(ad:0x42001C00+0x18))&0x80)==0x80)
group.long 0x10++0x03
line.long 0x00 "TEST,Test Register"
rbitfld.long 0x00 7. " RX ,Receive pin" "Dominant,Recessive"
bitfld.long 0x00 5.--6. " TX ,Control of transmit pin" "Core,Sample,Dominant,Recessive"
bitfld.long 0x00 4. " LBCK ,Loop back mode enabled" "Disabled,Enabled"
else
rgroup.long 0x10++0x03
line.long 0x00 "TEST,Test Register"
bitfld.long 0x00 7. " RX ,Receive pin" "Dominant,Recessive"
bitfld.long 0x00 5.--6. " TX ,Control of transmit pin" "Core,Sample,Dominant,Recessive"
bitfld.long 0x00 4. " LBCK ,Loop back mode enabled" "Disabled,Enabled"
endif
if (((per.l(ad:0x42001C00+0x18))&0x03)==0x03)
group.long 0x14++0x03
line.long 0x00 "RWD,RAM Watchdog Register"
hexmask.long.byte 0x00 8.--15. 1. " WDV ,Watchdog value"
hexmask.long.byte 0x00 0.--7. 1. " WDC ,Watchdog configuration"
else
rgroup.long 0x14++0x03
line.long 0x00 "RWD,RAM Watchdog Register"
hexmask.long.byte 0x00 8.--15. 1. " WDV ,Watchdog value"
hexmask.long.byte 0x00 0.--7. 1. " WDC ,Watchdog configuration"
endif
newline
if (((per.l(ad:0x42001C00+0x18))&0x03)==0x03)
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
bitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
bitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
bitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
else
bitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
bitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
bitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
elif (((per.l(ad:0x42001C00+0x18))&0x01)==0x01)
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
rbitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
rbitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
rbitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
rbitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
elif cpuis("ATSAMC21N*")
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Reserved"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Reserved"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Reserved"
newline
else
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
bitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
else
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
rbitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
rbitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
rbitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
rbitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
elif cpuis("ATSAMC21N*")
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Reserved"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Reserved"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Reserved"
newline
else
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
rbitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
endif
newline
if (((per.l(ad:0x42001C00+0x18))&0x03)==0x03)
group.long 0x1C++0x07
line.long 0x00 "NBTP,Nominal Bit Timing & Prescaler Register"
hexmask.long.byte 0x00 25.--31. 1. " NSJW ,Nominal (re)synchronization jump width"
hexmask.long.word 0x00 16.--24. 1. " NBRP ,Nominal baud rate prescaler"
hexmask.long.byte 0x00 8.--15. 1. " NTSEG1 ,Nominal time segment before sample point"
hexmask.long.byte 0x00 0.--6. 1. " NTSEG2 ,Nominal time segment after sample point"
line.long 0x04 "TSCC,Timestamp Counter Configuration Register"
bitfld.long 0x04 16.--19. " TCP ,Timestamp counter prescaler" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
newline
sif cpuis("ATSAMC2*")
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,,Always zero"
else
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,External,Always zero"
endif
else
rgroup.long 0x1C++0x07
line.long 0x00 "NBTP,Nominal Bit Timing & Prescaler Register"
hexmask.long.byte 0x00 25.--31. 1. " NSJW ,Nominal (re)synchronization jump width"
hexmask.long.word 0x00 16.--24. 1. " NBRP ,Nominal baud rate prescaler"
hexmask.long.byte 0x00 8.--15. 1. " NTSEG1 ,Nominal time segment before sample point"
hexmask.long.byte 0x00 0.--6. 1. " NTSEG2 ,Nominal time segment after sample point"
line.long 0x04 "TSCC,Timestamp Counter Configuration Register"
bitfld.long 0x04 16.--19. " TCP ,Timestamp counter prescaler" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
newline
sif cpuis("ATSAMC2*")
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,,Always zero"
else
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,External,Always zero"
endif
endif
sif (cpuis("BCM89103")||cpuis("BCM89107"))
group.long 0x24++0x03
line.long 0x00 "TSCV,Timestamp Counter Value Register"
hexmask.long.word 0x00 0.--15. 1. " TSC ,Timestamp counter"
else
rgroup.long 0x24++0x03
line.long 0x00 "TSCV,Timestamp Counter Value Register"
hexmask.long.word 0x00 0.--14. 1. " TSC ,Timestamp counter"
endif
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0x28++0x03
line.long 0x00 "TOCC,Timeout Counter Configuration Register"
hexmask.long.word 0x00 16.--31. 1. " TOP ,Timeout period"
bitfld.long 0x00 1.--2. " TOS ,Timeout select" "Continuous,TX Event FIFO,RX FIFO 0,RX FIFO 1"
bitfld.long 0x00 0. " ETOC ,Enable timeout counter" "Disabled,Enabled"
else
rgroup.long 0x28++0x03
line.long 0x00 "TOCC,Timeout Counter Configuration Register"
hexmask.long.word 0x00 16.--31. 1. " TOP ,Timeout period"
bitfld.long 0x00 1.--2. " TOS ,Timeout select" "Continuous,TX Event FIFO,RX FIFO 0,RX FIFO 1"
bitfld.long 0x00 0. " ETOC ,Enable timeout counter" "Disabled,Enabled"
endif
group.long 0x2C++0x03
line.long 0x00 "TOCV,Timeout Counter Value Register"
hexmask.long.word 0x00 0.--15. 1. " TOC ,Timeout counter"
sif (cpuis("BCM89103")||cpuis("BCM89107")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
hgroup.long 0x40++0x03
hide.long 0x00 "ECR,Error Counter Register"
in
else
rgroup.long 0x40++0x03
line.long 0x00 "ECR,Error Counter Register"
hexmask.long.byte 0x00 16.--23. 1. " CEL ,CAN error logging"
bitfld.long 0x00 15. " RP ,Receive error passive" "Not occurred,Occurred"
hexmask.long.byte 0x00 8.--14. 1. " REC ,Receive error counter"
hexmask.long.byte 0x00 0.--7. 1. " TEC ,Transmit error counter"
endif
newline
hgroup.long 0x44++0x03
hide.long 0x00 "PSR,Protocol Status Register"
in
newline
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0x48++0x03
line.long 0x00 "TDCR,Transmitter Delay Compensation Register"
hexmask.long.byte 0x00 8.--14. 1. " TDCO ,Transmitter delay compensation offset"
hexmask.long.byte 0x00 0.--6. 1. " TDCF ,Transmitter delay compensation filter window length"
else
rgroup.long 0x48++0x03
line.long 0x00 "TDCR,Transmitter Delay Compensation Register"
hexmask.long.byte 0x00 8.--14. 1. " TDCO ,Transmitter delay compensation offset"
hexmask.long.byte 0x00 0.--6. 1. " TDCF ,Transmitter delay compensation filter window length"
endif
group.long 0x50++0x0F
line.long 0x00 "IR,Interrupt Register"
eventfld.long 0x00 29. " ARA ,Access to reserved address" "Not occurred,Occurred"
eventfld.long 0x00 28. " PED ,Protocol error in data phase" "No error,Error"
eventfld.long 0x00 27. " PEA ,Protocol error in arbitration phase" "No error,Error"
eventfld.long 0x00 26. " WDI ,Watchdog interrupt" "Not occurred,Occurred"
newline
eventfld.long 0x00 25. " BO ,Bus_off status" "Unchanged,Changed"
eventfld.long 0x00 24. " EW ,Warning status" "Unchanged,Changed"
eventfld.long 0x00 23. " EP ,Error passive" "Unchanged,Changed"
eventfld.long 0x00 22. " ELO ,Error logging overflow" "No overflow,Overflow"
newline
eventfld.long 0x00 21. " BEU ,Bit error uncorrected" "No error,Error"
eventfld.long 0x00 20. " BEC ,Bit error corrected" "No error,Error"
eventfld.long 0x00 19. " DRX ,Message stored to dedicated RX buffer" "Not stored,Stored"
eventfld.long 0x00 18. " TOO ,Timeout occurred" "Not occurred,Occurred"
newline
eventfld.long 0x00 17. " MRAF ,Message RAM access failure" "Not occurred,Occurred"
eventfld.long 0x00 16. " TSW ,Timestamp wraparound" "Not occurred,Occurred"
eventfld.long 0x00 15. " TEFL ,TX event FIFO element lost" "Not lost,Lost"
eventfld.long 0x00 14. " TEFF ,TX event FIFO full" "Not full,Full"
newline
eventfld.long 0x00 13. " TEFW ,TX event FIFO watermark reached" "Not reached,Reached"
eventfld.long 0x00 12. " TEFN ,TX event FIFO new entry" "Unchanged,Changed"
eventfld.long 0x00 11. " TFE ,TX FIFO empty" "Not empty,Empty"
eventfld.long 0x00 10. " TCF ,Transmission cancellation finished" "Not finished,Finished"
newline
eventfld.long 0x00 9. " TC ,Transmission completed" "Not completed,Completed"
eventfld.long 0x00 8. " HPM ,High priority message" "Not received,Received"
eventfld.long 0x00 7. " RF1L ,RX FIFO 1 message lost" "Not lost,Lost"
eventfld.long 0x00 6. " RF1F ,RX FIFO 1 full" "Not full,Full"
newline
eventfld.long 0x00 5. " RF1W ,RX FIFO 1 watermark reached" "Not reached,Reached"
eventfld.long 0x00 4. " RF1N ,RX FIFO 1 new message" "No new message,New message"
eventfld.long 0x00 3. " RF0L ,RX FIFO 0 message lost" "Not lost,Lost"
eventfld.long 0x00 2. " RF0F ,RX FIFO 0 full" "Not full,Full"
newline
eventfld.long 0x00 1. " RF0W ,RX FIFO 0 watermark reached" "Not reached,Reached"
eventfld.long 0x00 0. " RF0N ,RX FIFO 0 new message" "No new message,New message"
line.long 0x04 "IE,Interrupt Enable Register"
bitfld.long 0x04 29. " ARAE ,Access to reserved address interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 28. " PEDE ,Protocol error in data phase interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 27. " PEAE ,Protocol error in arbitration phase interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 26. " WDIE ,Watchdog interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 25. " BOE ,Bus_Off status interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 24. " EWE ,Warning status interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 23. " EPE ,Error passive interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 22. " ELOE ,Error logging overflow interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 21. " BEUE ,Bit error uncorrected interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 20. " BECE ,Bit error corrected interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 19. " DRXE ,Message stored to dedicated RX buffer interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 18. " TOOE ,Timeout occurred interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 17. " MRAFE ,Message RAM access failure interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 16. " TSWE ,Timestamp wraparound interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 15. " TEFLE ,TX event FIFO element lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 14. " TEFFE ,TX event FIFO full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 13. " TEFWE ,TX event FIFO watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 12. " TEFNE ,TX event FIFO new entry interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 11. " TFEE ,TX FIFO empty interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 10. " TCFE ,Transmission cancellation finished interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " TCE ,Transmission completed interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 8. " HPME ,High priority message interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 7. " RF1LE ,RX FIFO 1 message lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 6. " RF1FE ,RX FIFO 1 full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 5. " RF1WE ,RX FIFO 1 watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 4. " RF1NE ,RX FIFO 1 new message interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 3. " RF0LE ,RX FIFO 0 message lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 2. " RF0FE ,RX FIFO 0 full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " RF0WE ,RX FIFO 0 watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 0. " RF0NE ,RX FIFO 0 new message interrupt enable" "Disabled,Enabled"
line.long 0x08 "ILS,Interrupt Line Select Register"
bitfld.long 0x08 29. " ARAL ,Access to reserved address interrupt line" "Line 0,Line 1"
bitfld.long 0x08 28. " PEDL ,Protocol error in data phase interrupt line" "Line 0,Line 1"
bitfld.long 0x08 27. " PEAL ,Protocol error in arbitration phase interrupt line" "Line 0,Line 1"
bitfld.long 0x08 26. " WDIL ,Watchdog interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 25. " BOL ,Bus_Off status interrupt line" "Line 0,Line 1"
bitfld.long 0x08 24. " EWL ,Warning status interrupt line" "Line 0,Line 1"
bitfld.long 0x08 23. " EPL ,Error passive interrupt line" "Line 0,Line 1"
bitfld.long 0x08 22. " ELOL ,Error logging overflow interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 21. " BEUL ,Bit error uncorrected interrupt line" "Line 0,Line 1"
bitfld.long 0x08 20. " BECL ,Bit error corrected interrupt line" "Line 0,Line 1"
bitfld.long 0x08 19. " DRXL ,Message stored to dedicated RX buffer interrupt line" "Line 0,Line 1"
bitfld.long 0x08 18. " TOOL ,Timeout occurred interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 17. " MRAFL ,Message RAM access failure interrupt line" "Line 0,Line 1"
bitfld.long 0x08 16. " TSWL ,Timestamp wraparound interrupt line" "Line 0,Line 1"
bitfld.long 0x08 15. " TEFLL ,TX Event FIFO element lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 14. " TEFFL ,TX Event FIFO full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 13. " TEFWL ,TX event FIFO watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 12. " TEFNL ,TX event FIFO new entry interrupt line" "Line 0,Line 1"
bitfld.long 0x08 11. " TFEL ,TX FIFO empty interrupt line" "Line 0,Line 1"
bitfld.long 0x08 10. " TCFL ,Transmission cancellation finished interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 9. " TCL ,Transmission completed interrupt line" "Line 0,Line 1"
bitfld.long 0x08 8. " HPML ,High priority message interrupt line" "Line 0,Line 1"
bitfld.long 0x08 7. " RF1LL ,RX FIFO 1 message lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 6. " RF1FL ,RX FIFO 1 full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 5. " RF1WL ,RX FIFO 1 watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 4. " RF1NL ,RX FIFO 1 new message interrupt line" "Line 0,Line 1"
bitfld.long 0x08 3. " RF0LL ,RX FIFO 0 message lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 2. " RF0FL ,RX FIFO 0 full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 1. " RF0WL ,RX FIFO 0 watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 0. " RF0NL ,RX FIFO 0 new message interrupt line" "Line 0,Line 1"
line.long 0x0C "ILE,Interrupt Line Enable Register"
bitfld.long 0x0C 1. " EINT1 ,Enable interrupt line 1" "Disabled,Enabled"
bitfld.long 0x0C 0. " EINT0 ,Enable interrupt line 0" "Disabled,Enabled"
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0x80++0x0B
line.long 0x00 "GFC,Global Filter Configuration Register"
bitfld.long 0x00 4.--5. " ANFS ,Accept non-matching frames standard" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 2.--3. " ANFE ,Accept non-matching frames extended" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 1. " RRFS ,Reject remote frames standard (11-bit standard IDs)" "Filtered,Rejected all"
bitfld.long 0x00 0. " RRFE ,Reject remote frames extended (29-bit extended IDs)" "Filtered,Rejected all"
line.long 0x04 "SIDFC,Standard ID Filter Configuration Register"
hexmask.long.byte 0x04 16.--23. 1. " LSS ,List size standard"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " FLSSA ,Filter list standard start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " FLSSA ,Filter list standard start address"
endif
line.long 0x08 "XIDFC,Extended ID Filter Configuration Register"
hexmask.long.byte 0x08 16.--22. 1. " LSE ,List size extended"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x08 2.--15. 0x04 " FLESA ,Filter list extended start address"
else
hexmask.long.word 0x08 0.--15. 0x01 " FLESA ,Filter list extended start address"
endif
group.long 0x90++0x03
line.long 0x00 "XIDAM,Extended ID AND Mask Register"
hexmask.long 0x00 0.--28. 1. " EIDM ,Extended ID mask"
else
rgroup.long 0x80++0x0B
line.long 0x00 "GFC,Global Filter Configuration Register"
bitfld.long 0x00 4.--5. " ANFS ,Accept non-matching frames standard" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 2.--3. " ANFE ,Accept non-matching frames extended" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 1. " RRFS ,Reject remote frames standard (11-bit standard IDs)" "Filtered,Rejected all"
bitfld.long 0x00 0. " RRFE ,Reject remote frames extended (29-bit extended IDs)" "Filtered,Rejected all"
line.long 0x04 "SIDFC,Standard ID Filter Configuration Register"
hexmask.long.byte 0x04 16.--23. 1. " LSS ,List size standard"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " FLSSA ,Filter list standard start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " FLSSA ,Filter list standard start address"
endif
line.long 0x08 "XIDFC,Extended ID Filter Configuration Register"
hexmask.long.byte 0x08 16.--22. 1. " LSE ,List size extended"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x08 2.--15. 0x04 " FLESA ,Filter list extended start address"
else
hexmask.long.word 0x08 0.--15. 0x01 " FLESA ,Filter list extended start address"
endif
rgroup.long 0x90++0x03
line.long 0x00 "XIDAM,Extended ID AND Mask Register"
hexmask.long 0x00 0.--28. 1. " EIDM ,Extended ID mask"
endif
sif (cpuis("BCM89103")||cpuis("BCM89107"))
if (((per.l(ad:0x42001C00+0x94))&0xC0)==(0x80||0xC0))
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
hexmask.long.byte 0x00 0.--5. 1. " BIDX ,Buffer index"
else
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
endif
else
if (((per.l(ad:0x42001C00+0x94))&0xC0)==0x40)
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
hexmask.long.byte 0x00 0.--5. 1. " BIDX ,Buffer index"
else
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
endif
endif
newline
group.long 0x98++0x07
line.long 0x00 "NDAT1,New Data 1 Register"
eventfld.long 0x00 31. " ND31 ,New data RX buffer 31" "Not updated,Updated"
eventfld.long 0x00 30. " ND30 ,New data RX buffer 30" "Not updated,Updated"
eventfld.long 0x00 29. " ND29 ,New data RX buffer 29" "Not updated,Updated"
eventfld.long 0x00 28. " ND28 ,New data RX buffer 28" "Not updated,Updated"
newline
eventfld.long 0x00 27. " ND27 ,New data RX buffer 27" "Not updated,Updated"
eventfld.long 0x00 26. " ND26 ,New data RX buffer 26" "Not updated,Updated"
eventfld.long 0x00 25. " ND25 ,New data RX buffer 25" "Not updated,Updated"
eventfld.long 0x00 24. " ND24 ,New data RX buffer 24" "Not updated,Updated"
newline
eventfld.long 0x00 23. " ND23 ,New data RX buffer 23" "Not updated,Updated"
eventfld.long 0x00 22. " ND22 ,New data RX buffer 22" "Not updated,Updated"
eventfld.long 0x00 21. " ND21 ,New data RX buffer 21" "Not updated,Updated"
eventfld.long 0x00 20. " ND20 ,New data RX buffer 20" "Not updated,Updated"
newline
eventfld.long 0x00 19. " ND19 ,New data RX buffer 19" "Not updated,Updated"
eventfld.long 0x00 18. " ND18 ,New data RX buffer 18" "Not updated,Updated"
eventfld.long 0x00 17. " ND17 ,New data RX buffer 17" "Not updated,Updated"
eventfld.long 0x00 16. " ND16 ,New data RX buffer 16" "Not updated,Updated"
newline
eventfld.long 0x00 15. " ND15 ,New data RX buffer 15" "Not updated,Updated"
eventfld.long 0x00 14. " ND14 ,New data RX buffer 14" "Not updated,Updated"
eventfld.long 0x00 13. " ND13 ,New data RX buffer 13" "Not updated,Updated"
eventfld.long 0x00 12. " ND12 ,New data RX buffer 12" "Not updated,Updated"
newline
eventfld.long 0x00 11. " ND11 ,New data RX buffer 11" "Not updated,Updated"
eventfld.long 0x00 10. " ND10 ,New data RX buffer 10" "Not updated,Updated"
eventfld.long 0x00 9. " ND9 ,New data RX buffer 9" "Not updated,Updated"
eventfld.long 0x00 8. " ND8 ,New data RX buffer 8" "Not updated,Updated"
newline
eventfld.long 0x00 7. " ND7 ,New data RX buffer 7" "Not updated,Updated"
eventfld.long 0x00 6. " ND6 ,New data RX buffer 6" "Not updated,Updated"
eventfld.long 0x00 5. " ND5 ,New data RX buffer 5" "Not updated,Updated"
eventfld.long 0x00 4. " ND4 ,New data RX buffer 4" "Not updated,Updated"
newline
eventfld.long 0x00 3. " ND3 ,New data RX buffer 3" "Not updated,Updated"
eventfld.long 0x00 2. " ND2 ,New data RX buffer 2" "Not updated,Updated"
eventfld.long 0x00 1. " ND1 ,New data RX buffer 1" "Not updated,Updated"
eventfld.long 0x00 0. " ND0 ,New data RX buffer 0" "Not updated,Updated"
line.long 0x04 "NDAT2,New Data 2 Register"
eventfld.long 0x04 31. " ND63 ,New data RX buffer 63" "Not updated,Updated"
eventfld.long 0x04 30. " ND62 ,New data RX buffer 62" "Not updated,Updated"
eventfld.long 0x04 29. " ND61 ,New data RX buffer 61" "Not updated,Updated"
eventfld.long 0x04 28. " ND60 ,New data RX buffer 60" "Not updated,Updated"
newline
eventfld.long 0x04 27. " ND59 ,New data RX buffer 59" "Not updated,Updated"
eventfld.long 0x04 26. " ND58 ,New data RX buffer 58" "Not updated,Updated"
eventfld.long 0x04 25. " ND57 ,New data RX buffer 57" "Not updated,Updated"
eventfld.long 0x04 24. " ND56 ,New data RX buffer 56" "Not updated,Updated"
newline
eventfld.long 0x04 23. " ND55 ,New data RX buffer 55" "Not updated,Updated"
eventfld.long 0x04 22. " ND54 ,New data RX buffer 54" "Not updated,Updated"
eventfld.long 0x04 21. " ND53 ,New data RX buffer 53" "Not updated,Updated"
eventfld.long 0x04 20. " ND52 ,New data RX buffer 52" "Not updated,Updated"
newline
eventfld.long 0x04 19. " ND51 ,New data RX buffer 51" "Not updated,Updated"
eventfld.long 0x04 18. " ND50 ,New data RX buffer 50" "Not updated,Updated"
eventfld.long 0x04 17. " ND49 ,New data RX buffer 49" "Not updated,Updated"
eventfld.long 0x04 16. " ND48 ,New data RX buffer 48" "Not updated,Updated"
newline
eventfld.long 0x04 15. " ND47 ,New data RX buffer 47" "Not updated,Updated"
eventfld.long 0x04 14. " ND46 ,New data RX buffer 46" "Not updated,Updated"
eventfld.long 0x04 13. " ND45 ,New data RX buffer 45" "Not updated,Updated"
eventfld.long 0x04 12. " ND44 ,New data RX buffer 44" "Not updated,Updated"
newline
eventfld.long 0x04 11. " ND43 ,New data RX buffer 43" "Not updated,Updated"
eventfld.long 0x04 10. " ND42 ,New data RX buffer 42" "Not updated,Updated"
eventfld.long 0x04 9. " ND41 ,New data RX buffer 41" "Not updated,Updated"
eventfld.long 0x04 8. " ND40 ,New data RX buffer 40" "Not updated,Updated"
newline
eventfld.long 0x04 7. " ND39 ,New data RX buffer 39" "Not updated,Updated"
eventfld.long 0x04 6. " ND38 ,New data RX buffer 38" "Not updated,Updated"
eventfld.long 0x04 5. " ND37 ,New data RX buffer 37" "Not updated,Updated"
eventfld.long 0x04 4. " ND36 ,New data RX buffer 36" "Not updated,Updated"
newline
eventfld.long 0x04 3. " ND35 ,New data RX buffer 35" "Not updated,Updated"
eventfld.long 0x04 2. " ND34 ,New data RX buffer 34" "Not updated,Updated"
eventfld.long 0x04 1. " ND33 ,New data RX buffer 33" "Not updated,Updated"
eventfld.long 0x04 0. " ND32 ,New data RX buffer 32" "Not updated,Updated"
newline
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0xA0++0x03
line.long 0x00 "RXF0C,RX FIFO 0 Configuration Register"
bitfld.long 0x00 31. " F0OM ,FIFO 0 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x00 24.--30. 1. " F0WM ,RX FIFO 0 watermark"
hexmask.long.byte 0x00 16.--22. 1. " F0S ,RX FIFO 0 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " F0SA ,RX FIFO 0 start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " F0SA ,RX FIFO 0 start address"
endif
else
rgroup.long 0xA0++0x03
line.long 0x00 "RXF0C,RX FIFO 0 Configuration Register"
bitfld.long 0x00 31. " F0OM ,FIFO 0 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x00 24.--30. 1. " F0WM ,RX FIFO 0 watermark"
hexmask.long.byte 0x00 16.--22. 1. " F0S ,RX FIFO 0 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " F0SA ,RX FIFO 0 start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " F0SA ,RX FIFO 0 start address"
endif
endif
rgroup.long 0xA4++0x03
line.long 0x00 "RXF0S,RX FIFO 0 Status Register"
bitfld.long 0x00 25. " RF0L ,RX FIFO 0 message lost" "Not lost,Lost"
bitfld.long 0x00 24. " F0F ,RX FIFO 0 full" "Not full,Full"
newline
bitfld.long 0x00 16.--21. " F0PI ,RX FIFO 0 put index" "0,1,2,3,4,5,6,7,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 8.--13. " F0GI ,RX FIFO 0 get index" "0,1,2,3,4,5,6,7,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.byte 0x00 0.--6. 1. " F0FL ,RX FIFO 0 fill level"
group.long 0xA8++0x03
line.long 0x00 "RXF0A,RX FIFO 0 Acknowledge Register"
bitfld.long 0x00 0.--5. " F0AI ,RX FIFO 0 acknowledge index" "0,1,2,3,4,5,6,7,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"
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0xAC++0x07
line.long 0x00 "RXBC,RX Buffer Configuration Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " RBSA ,RX buffer start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " RBSA ,RX buffer start address"
endif
line.long 0x04 "RXF1C,RX FIFO 1 Configuration Register"
bitfld.long 0x04 31. " F1OM ,FIFO 1 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x04 24.--30. 1. " F1WM ,RX FIFO 1 watermark"
hexmask.long.byte 0x04 16.--22. 1. " F1S ,RX FIFO 1 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " F1SA ,RX FIFO 1 start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " F1SA ,RX FIFO 1 start address"
endif
else
rgroup.long 0xAC++0x07
line.long 0x00 "RXBC,RX Buffer Configuration Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " RBSA ,RX buffer start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " RBSA ,RX buffer start address"
endif
line.long 0x04 "RXF1C,RX FIFO 1 Configuration Register"
bitfld.long 0x04 31. " F1OM ,FIFO 1 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x04 24.--30. 1. " F1WM ,RX FIFO 1 watermark"
hexmask.long.byte 0x04 16.--22. 1. " F1S ,RX FIFO 1 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " F1SA ,RX FIFO 1 start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " F1SA ,RX FIFO 1 start address"
endif
endif
rgroup.long 0xB4++0x03
line.long 0x00 "RXF1S,RX FIFO 1 Status Register"
bitfld.long 0x00 30.--31. " DMS ,Debug message status" "Idle,DBGA,DBGB,DBGC"
bitfld.long 0x00 25. " RF1L ,RX FIFO 1 message lost" "Not lost,Lost"
bitfld.long 0x00 24. " F1F ,RX FIFO 1 full" "Not full,Full"
newline
bitfld.long 0x00 16.--21. " F1PI ,RX FIFO 1 put index" "0,1,2,3,4,5,6,7,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 8.--13. " F1GI ,RX FIFO 1 get index" "0,1,2,3,4,5,6,7,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.byte 0x00 0.--6. 1. " F1FL ,RX FIFO 1 fill level"
group.long 0xB8++0x03
line.long 0x00 "RXF1A,RX FIFO 1 Acknowledge Register"
bitfld.long 0x00 0.--5. " F1AI ,RX FIFO 1 acknowledge index" "0,1,2,3,4,5,6,7,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"
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0xBC++0x07
line.long 0x00 "RXESC,RX Buffer / FIFO Element Size Configuration Register"
bitfld.long 0x00 8.--10. " RBDS ,RX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 4.--6. " F1DS ,RX FIFO 1 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 0.--2. " F0DS ,RX FIFO 0 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
line.long 0x04 "TXBC,TX Buffer Configuration Register"
bitfld.long 0x04 30. " TFQM ,TX FIFO/queue mode" "FIFO,Queue"
bitfld.long 0x04 24.--29. " TFQS ,Transmit FIFO/queue size" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
bitfld.long 0x04 16.--21. " NDTB ,Number of dedicated transmit buffers" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " TBSA ,TX buffers start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " TBSA ,TX buffers start address"
endif
else
rgroup.long 0xBC++0x07
line.long 0x00 "RXESC,RX Buffer / FIFO Element Size Configuration Register"
bitfld.long 0x00 8.--10. " RBDS ,RX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 4.--6. " F1DS ,RX FIFO 1 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 0.--2. " F0DS ,RX FIFO 0 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
line.long 0x04 "TXBC,TX Buffer Configuration Register"
bitfld.long 0x04 30. " TFQM ,TX FIFO/queue mode" "FIFO,Queue"
bitfld.long 0x04 24.--29. " TFQS ,Transmit FIFO/queue size" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
bitfld.long 0x04 16.--21. " NDTB ,Number of dedicated transmit buffers" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " TBSA ,TX buffers start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " TBSA ,TX buffers start address"
endif
endif
rgroup.long 0xC4++0x03
line.long 0x00 "TXFQS,TX FIFO/Queue Status Register"
bitfld.long 0x00 21. " TFQF ,TX FIFO/queue full" "Not full,Full"
bitfld.long 0x00 16.--20. " TFQPI ,TX FIFO/queue put index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 8.--12. " TFGI ,TX FIFO get index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
sif (cpuis("BCM89103")||cpuis("BCM89107")||cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21N*"))
bitfld.long 0x00 0.--5. " TFFL ,TX FIFO free 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,?..."
else
bitfld.long 0x00 0.--5. " TFFL ,TX FIFO free 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,?..."
endif
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0xC8++0x03
line.long 0x00 "TXESC,TX Buffer Element Size Configuration Register"
bitfld.long 0x00 0.--2. " TBDS ,TX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
else
rgroup.long 0xC8++0x03
line.long 0x00 "TXESC,TX Buffer Element Size Configuration Register"
bitfld.long 0x00 0.--2. " TBDS ,TX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
endif
newline
rgroup.long 0xCC++0x03
line.long 0x00 "TXBRP,TX Buffer Request Pending Register"
bitfld.long 0x00 31. " TPR31 ,Transmission request on TX buffer 31" "Not pending,Pending"
bitfld.long 0x00 30. " TPR30 ,Transmission request on TX buffer 30" "Not pending,Pending"
bitfld.long 0x00 29. " TPR29 ,Transmission request on TX buffer 29" "Not pending,Pending"
bitfld.long 0x00 28. " TPR28 ,Transmission request on TX buffer 28" "Not pending,Pending"
newline
bitfld.long 0x00 27. " TPR27 ,Transmission request on TX buffer 27" "Not pending,Pending"
bitfld.long 0x00 26. " TPR26 ,Transmission request on TX buffer 26" "Not pending,Pending"
bitfld.long 0x00 25. " TPR25 ,Transmission request on TX buffer 25" "Not pending,Pending"
bitfld.long 0x00 24. " TPR24 ,Transmission request on TX buffer 24" "Not pending,Pending"
newline
bitfld.long 0x00 23. " TPR23 ,Transmission request on TX buffer 23" "Not pending,Pending"
bitfld.long 0x00 22. " TPR22 ,Transmission request on TX buffer 22" "Not pending,Pending"
bitfld.long 0x00 21. " TPR21 ,Transmission request on TX buffer 21" "Not pending,Pending"
bitfld.long 0x00 20. " TPR20 ,Transmission request on TX buffer 20" "Not pending,Pending"
newline
bitfld.long 0x00 19. " TPR19 ,Transmission request on TX buffer 19" "Not pending,Pending"
bitfld.long 0x00 18. " TPR18 ,Transmission request on TX buffer 18" "Not pending,Pending"
bitfld.long 0x00 17. " TPR17 ,Transmission request on TX buffer 17" "Not pending,Pending"
bitfld.long 0x00 16. " TPR16 ,Transmission request on TX buffer 16" "Not pending,Pending"
newline
bitfld.long 0x00 15. " TPR15 ,Transmission request on TX buffer 15" "Not pending,Pending"
bitfld.long 0x00 14. " TPR14 ,Transmission request on TX buffer 14" "Not pending,Pending"
bitfld.long 0x00 13. " TPR13 ,Transmission request on TX buffer 13" "Not pending,Pending"
bitfld.long 0x00 12. " TPR12 ,Transmission request on TX buffer 12" "Not pending,Pending"
newline
bitfld.long 0x00 11. " TPR11 ,Transmission request on TX buffer 11" "Not pending,Pending"
bitfld.long 0x00 10. " TPR10 ,Transmission request on TX buffer 10" "Not pending,Pending"
bitfld.long 0x00 9. " TPR9 ,Transmission request on TX buffer 9" "Not pending,Pending"
bitfld.long 0x00 8. " TPR8 ,Transmission request on TX buffer 8" "Not pending,Pending"
newline
bitfld.long 0x00 7. " TPR7 ,Transmission request on TX buffer 7" "Not pending,Pending"
bitfld.long 0x00 6. " TPR6 ,Transmission request on TX buffer 6" "Not pending,Pending"
bitfld.long 0x00 5. " TPR5 ,Transmission request on TX buffer 5" "Not pending,Pending"
bitfld.long 0x00 4. " TPR4 ,Transmission request on TX buffer 4" "Not pending,Pending"
newline
bitfld.long 0x00 3. " TPR3 ,Transmission request on TX buffer 3" "Not pending,Pending"
bitfld.long 0x00 2. " TPR2 ,Transmission request on TX buffer 2" "Not pending,Pending"
bitfld.long 0x00 1. " TPR1 ,Transmission request on TX buffer 1" "Not pending,Pending"
bitfld.long 0x00 0. " TPR0 ,Transmission request on TX buffer 0" "Not pending,Pending"
group.long 0xD0++0x07
line.long 0x00 "TXBAR,TX Buffer Add Request Register"
bitfld.long 0x00 31. " AR31 ,Add request on TX buffer 31" "No effect,Add request"
bitfld.long 0x00 30. " AR30 ,Add request on TX buffer 30" "No effect,Add request"
bitfld.long 0x00 29. " AR29 ,Add request on TX buffer 29" "No effect,Add request"
bitfld.long 0x00 28. " AR28 ,Add request on TX buffer 28" "No effect,Add request"
newline
bitfld.long 0x00 27. " AR27 ,Add request on TX buffer 27" "No effect,Add request"
bitfld.long 0x00 26. " AR26 ,Add request on TX buffer 26" "No effect,Add request"
bitfld.long 0x00 25. " AR25 ,Add request on TX buffer 25" "No effect,Add request"
bitfld.long 0x00 24. " AR24 ,Add request on TX buffer 24" "No effect,Add request"
newline
bitfld.long 0x00 23. " AR23 ,Add request on TX buffer 23" "No effect,Add request"
bitfld.long 0x00 22. " AR22 ,Add request on TX buffer 22" "No effect,Add request"
bitfld.long 0x00 21. " AR21 ,Add request on TX buffer 21" "No effect,Add request"
bitfld.long 0x00 20. " AR20 ,Add request on TX buffer 20" "No effect,Add request"
newline
bitfld.long 0x00 19. " AR19 ,Add request on TX buffer 19" "No effect,Add request"
bitfld.long 0x00 18. " AR18 ,Add request on TX buffer 18" "No effect,Add request"
bitfld.long 0x00 17. " AR17 ,Add request on TX buffer 17" "No effect,Add request"
bitfld.long 0x00 16. " AR16 ,Add request on TX buffer 16" "No effect,Add request"
newline
bitfld.long 0x00 15. " AR15 ,Add request on TX buffer 15" "No effect,Add request"
bitfld.long 0x00 14. " AR14 ,Add request on TX buffer 14" "No effect,Add request"
bitfld.long 0x00 13. " AR13 ,Add request on TX buffer 13" "No effect,Add request"
bitfld.long 0x00 12. " AR12 ,Add request on TX buffer 12" "No effect,Add request"
newline
bitfld.long 0x00 11. " AR11 ,Add request on TX buffer 11" "No effect,Add request"
bitfld.long 0x00 10. " AR10 ,Add request on TX buffer 10" "No effect,Add request"
bitfld.long 0x00 9. " AR9 ,Add request on TX buffer 9" "No effect,Add request"
bitfld.long 0x00 8. " AR8 ,Add request on TX buffer 8" "No effect,Add request"
newline
bitfld.long 0x00 7. " AR7 ,Add request on TX buffer 7" "No effect,Add request"
bitfld.long 0x00 6. " AR6 ,Add request on TX buffer 6" "No effect,Add request"
bitfld.long 0x00 5. " AR5 ,Add request on TX buffer 5" "No effect,Add request"
bitfld.long 0x00 4. " AR4 ,Add request on TX buffer 4" "No effect,Add request"
newline
bitfld.long 0x00 3. " AR3 ,Add request on TX buffer 3" "No effect,Add request"
bitfld.long 0x00 2. " AR2 ,Add request on TX buffer 2" "No effect,Add request"
bitfld.long 0x00 1. " AR1 ,Add request on TX buffer 1" "No effect,Add request"
bitfld.long 0x00 0. " AR0 ,Add request on TX buffer 0" "No effect,Add request"
line.long 0x04 "TXBCR,TX Buffer Cancellation Request Register"
bitfld.long 0x04 31. " CR31 ,Cancellation request on TX buffer 31" "Not pending,Pending"
bitfld.long 0x04 30. " CR30 ,Cancellation request on TX buffer 30" "Not pending,Pending"
bitfld.long 0x04 29. " CR29 ,Cancellation request on TX buffer 29" "Not pending,Pending"
bitfld.long 0x04 28. " CR28 ,Cancellation request on TX buffer 28" "Not pending,Pending"
newline
bitfld.long 0x04 27. " CR27 ,Cancellation request on TX buffer 27" "Not pending,Pending"
bitfld.long 0x04 26. " CR26 ,Cancellation request on TX buffer 26" "Not pending,Pending"
bitfld.long 0x04 25. " CR25 ,Cancellation request on TX buffer 25" "Not pending,Pending"
bitfld.long 0x04 24. " CR24 ,Cancellation request on TX buffer 24" "Not pending,Pending"
newline
bitfld.long 0x04 23. " CR23 ,Cancellation request on TX buffer 23" "Not pending,Pending"
bitfld.long 0x04 22. " CR22 ,Cancellation request on TX buffer 22" "Not pending,Pending"
bitfld.long 0x04 21. " CR21 ,Cancellation request on TX buffer 21" "Not pending,Pending"
bitfld.long 0x04 20. " CR20 ,Cancellation request on TX buffer 20" "Not pending,Pending"
newline
bitfld.long 0x04 19. " CR19 ,Cancellation request on TX buffer 19" "Not pending,Pending"
bitfld.long 0x04 18. " CR18 ,Cancellation request on TX buffer 18" "Not pending,Pending"
bitfld.long 0x04 17. " CR17 ,Cancellation request on TX buffer 17" "Not pending,Pending"
bitfld.long 0x04 16. " CR16 ,Cancellation request on TX buffer 16" "Not pending,Pending"
newline
bitfld.long 0x04 15. " CR15 ,Cancellation request on TX buffer 15" "Not pending,Pending"
bitfld.long 0x04 14. " CR14 ,Cancellation request on TX buffer 14" "Not pending,Pending"
bitfld.long 0x04 13. " CR13 ,Cancellation request on TX buffer 13" "Not pending,Pending"
bitfld.long 0x04 12. " CR12 ,Cancellation request on TX buffer 12" "Not pending,Pending"
newline
bitfld.long 0x04 11. " CR11 ,Cancellation request on TX buffer 11" "Not pending,Pending"
bitfld.long 0x04 10. " CR10 ,Cancellation request on TX buffer 10" "Not pending,Pending"
bitfld.long 0x04 9. " CR9 ,Cancellation request on TX buffer 9" "Not pending,Pending"
bitfld.long 0x04 8. " CR8 ,Cancellation request on TX buffer 8" "Not pending,Pending"
newline
bitfld.long 0x04 7. " CR7 ,Cancellation request on TX buffer 7" "Not pending,Pending"
bitfld.long 0x04 6. " CR6 ,Cancellation request on TX buffer 6" "Not pending,Pending"
bitfld.long 0x04 5. " CR5 ,Cancellation request on TX buffer 5" "Not pending,Pending"
bitfld.long 0x04 4. " CR4 ,Cancellation request on TX buffer 4" "Not pending,Pending"
newline
bitfld.long 0x04 3. " CR3 ,Cancellation request on TX buffer 3" "Not pending,Pending"
bitfld.long 0x04 2. " CR2 ,Cancellation request on TX buffer 2" "Not pending,Pending"
bitfld.long 0x04 1. " CR1 ,Cancellation request on TX buffer 1" "Not pending,Pending"
bitfld.long 0x04 0. " CR0 ,Cancellation request on TX buffer 0" "Not pending,Pending"
rgroup.long 0xD8++0x07
line.long 0x00 "TXBTO,TX Buffer Transmission Occurred"
bitfld.long 0x00 31. " TO31 ,Transmission occurred on TX buffer 31" "Not occurred,Occurred"
bitfld.long 0x00 30. " TO30 ,Transmission occurred on TX buffer 30" "Not occurred,Occurred"
bitfld.long 0x00 29. " TO29 ,Transmission occurred on TX buffer 29" "Not occurred,Occurred"
bitfld.long 0x00 28. " TO28 ,Transmission occurred on TX buffer 28" "Not occurred,Occurred"
newline
bitfld.long 0x00 27. " TO27 ,Transmission occurred on TX buffer 27" "Not occurred,Occurred"
bitfld.long 0x00 26. " TO26 ,Transmission occurred on TX buffer 26" "Not occurred,Occurred"
bitfld.long 0x00 25. " TO25 ,Transmission occurred on TX buffer 25" "Not occurred,Occurred"
bitfld.long 0x00 24. " TO24 ,Transmission occurred on TX buffer 24" "Not occurred,Occurred"
newline
bitfld.long 0x00 23. " TO23 ,Transmission occurred on TX buffer 23" "Not occurred,Occurred"
bitfld.long 0x00 22. " TO22 ,Transmission occurred on TX buffer 22" "Not occurred,Occurred"
bitfld.long 0x00 21. " TO21 ,Transmission occurred on TX buffer 21" "Not occurred,Occurred"
bitfld.long 0x00 20. " TO20 ,Transmission occurred on TX buffer 20" "Not occurred,Occurred"
newline
bitfld.long 0x00 19. " TO19 ,Transmission occurred on TX buffer 19" "Not occurred,Occurred"
bitfld.long 0x00 18. " TO18 ,Transmission occurred on TX buffer 18" "Not occurred,Occurred"
bitfld.long 0x00 17. " TO17 ,Transmission occurred on TX buffer 17" "Not occurred,Occurred"
bitfld.long 0x00 16. " TO16 ,Transmission occurred on TX buffer 16" "Not occurred,Occurred"
newline
bitfld.long 0x00 15. " TO15 ,Transmission occurred on TX buffer 15" "Not occurred,Occurred"
bitfld.long 0x00 14. " TO14 ,Transmission occurred on TX buffer 14" "Not occurred,Occurred"
bitfld.long 0x00 13. " TO13 ,Transmission occurred on TX buffer 13" "Not occurred,Occurred"
bitfld.long 0x00 12. " TO12 ,Transmission occurred on TX buffer 12" "Not occurred,Occurred"
newline
bitfld.long 0x00 11. " TO11 ,Transmission occurred on TX buffer 11" "Not occurred,Occurred"
bitfld.long 0x00 10. " TO10 ,Transmission occurred on TX buffer 10" "Not occurred,Occurred"
bitfld.long 0x00 9. " TO9 ,Transmission occurred on TX buffer 9" "Not occurred,Occurred"
bitfld.long 0x00 8. " TO8 ,Transmission occurred on TX buffer 8" "Not occurred,Occurred"
newline
bitfld.long 0x00 7. " TO7 ,Transmission occurred on TX buffer 7" "Not occurred,Occurred"
bitfld.long 0x00 6. " TO6 ,Transmission occurred on TX buffer 6" "Not occurred,Occurred"
bitfld.long 0x00 5. " TO5 ,Transmission occurred on TX buffer 5" "Not occurred,Occurred"
bitfld.long 0x00 4. " TO4 ,Transmission occurred on TX buffer 4" "Not occurred,Occurred"
newline
bitfld.long 0x00 3. " TO3 ,Transmission occurred on TX buffer 3" "Not occurred,Occurred"
bitfld.long 0x00 2. " TO2 ,Transmission occurred on TX buffer 2" "Not occurred,Occurred"
bitfld.long 0x00 1. " TO1 ,Transmission occurred on TX buffer 1" "Not occurred,Occurred"
bitfld.long 0x00 0. " TO0 ,Transmission occurred on TX buffer 0" "Not occurred,Occurred"
line.long 0x04 "TXBCF,TX Buffer Cancellation Finished"
bitfld.long 0x04 31. " CF31 ,Cancellation finished on TX buffer 31" "Not finished,Finished"
bitfld.long 0x04 30. " CF30 ,Cancellation finished on TX buffer 30" "Not finished,Finished"
bitfld.long 0x04 29. " CF29 ,Cancellation finished on TX buffer 29" "Not finished,Finished"
bitfld.long 0x04 28. " CF28 ,Cancellation finished on TX buffer 28" "Not finished,Finished"
newline
bitfld.long 0x04 27. " CF27 ,Cancellation finished on TX buffer 27" "Not finished,Finished"
bitfld.long 0x04 26. " CF26 ,Cancellation finished on TX buffer 26" "Not finished,Finished"
bitfld.long 0x04 25. " CF25 ,Cancellation finished on TX buffer 25" "Not finished,Finished"
bitfld.long 0x04 24. " CF24 ,Cancellation finished on TX buffer 24" "Not finished,Finished"
newline
bitfld.long 0x04 23. " CF23 ,Cancellation finished on TX buffer 23" "Not finished,Finished"
bitfld.long 0x04 22. " CF22 ,Cancellation finished on TX buffer 22" "Not finished,Finished"
bitfld.long 0x04 21. " CF21 ,Cancellation finished on TX buffer 21" "Not finished,Finished"
bitfld.long 0x04 20. " CF20 ,Cancellation finished on TX buffer 20" "Not finished,Finished"
newline
bitfld.long 0x04 19. " CF19 ,Cancellation finished on TX buffer 19" "Not finished,Finished"
bitfld.long 0x04 18. " CF18 ,Cancellation finished on TX buffer 18" "Not finished,Finished"
bitfld.long 0x04 17. " CF17 ,Cancellation finished on TX buffer 17" "Not finished,Finished"
bitfld.long 0x04 16. " CF16 ,Cancellation finished on TX buffer 16" "Not finished,Finished"
newline
bitfld.long 0x04 15. " CF15 ,Cancellation finished on TX buffer 15" "Not finished,Finished"
bitfld.long 0x04 14. " CF14 ,Cancellation finished on TX buffer 14" "Not finished,Finished"
bitfld.long 0x04 13. " CF13 ,Cancellation finished on TX buffer 13" "Not finished,Finished"
bitfld.long 0x04 12. " CF12 ,Cancellation finished on TX buffer 12" "Not finished,Finished"
newline
bitfld.long 0x04 11. " CF11 ,Cancellation finished on TX buffer 11" "Not finished,Finished"
bitfld.long 0x04 10. " CF10 ,Cancellation finished on TX buffer 10" "Not finished,Finished"
bitfld.long 0x04 9. " CF9 ,Cancellation finished on TX buffer 9" "Not finished,Finished"
bitfld.long 0x04 8. " CF8 ,Cancellation finished on TX buffer 8" "Not finished,Finished"
newline
bitfld.long 0x04 7. " CF7 ,Cancellation finished on TX buffer 7" "Not finished,Finished"
bitfld.long 0x04 6. " CF6 ,Cancellation finished on TX buffer 6" "Not finished,Finished"
bitfld.long 0x04 5. " CF5 ,Cancellation finished on TX buffer 5" "Not finished,Finished"
bitfld.long 0x04 4. " CF4 ,Cancellation finished on TX buffer 4" "Not finished,Finished"
newline
bitfld.long 0x04 3. " CF3 ,Cancellation finished on TX buffer 3" "Not finished,Finished"
bitfld.long 0x04 2. " CF2 ,Cancellation finished on TX buffer 2" "Not finished,Finished"
bitfld.long 0x04 1. " CF1 ,Cancellation finished on TX buffer 1" "Not finished,Finished"
bitfld.long 0x04 0. " CF0 ,Cancellation finished on TX buffer 0" "Not finished,Finished"
group.long 0xE0++0x07
line.long 0x00 "TXBTIE,TX Buffer Transmission Interrupt Enable Register"
bitfld.long 0x00 31. " TIE31 ,Transmission interrupt enable for TX buffer 31" "Disabled,Enabled"
bitfld.long 0x00 30. " TIE30 ,Transmission interrupt enable for TX buffer 30" "Disabled,Enabled"
bitfld.long 0x00 29. " TIE29 ,Transmission interrupt enable for TX buffer 29" "Disabled,Enabled"
bitfld.long 0x00 28. " TIE28 ,Transmission interrupt enable for TX buffer 28" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " TIE27 ,Transmission interrupt enable for TX buffer 27" "Disabled,Enabled"
bitfld.long 0x00 26. " TIE26 ,Transmission interrupt enable for TX buffer 26" "Disabled,Enabled"
bitfld.long 0x00 25. " TIE25 ,Transmission interrupt enable for TX buffer 25" "Disabled,Enabled"
bitfld.long 0x00 24. " TIE24 ,Transmission interrupt enable for TX buffer 24" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " TIE23 ,Transmission interrupt enable for TX buffer 23" "Disabled,Enabled"
bitfld.long 0x00 22. " TIE22 ,Transmission interrupt enable for TX buffer 22" "Disabled,Enabled"
bitfld.long 0x00 21. " TIE21 ,Transmission interrupt enable for TX buffer 21" "Disabled,Enabled"
bitfld.long 0x00 20. " TIE20 ,Transmission interrupt enable for TX buffer 20" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " TIE19 ,Transmission interrupt enable for TX buffer 19" "Disabled,Enabled"
bitfld.long 0x00 18. " TIE18 ,Transmission interrupt enable for TX buffer 18" "Disabled,Enabled"
bitfld.long 0x00 17. " TIE17 ,Transmission interrupt enable for TX buffer 17" "Disabled,Enabled"
bitfld.long 0x00 16. " TIE16 ,Transmission interrupt enable for TX buffer 16" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " TIE15 ,Transmission interrupt enable for TX buffer 15" "Disabled,Enabled"
bitfld.long 0x00 14. " TIE14 ,Transmission interrupt enable for TX buffer 14" "Disabled,Enabled"
bitfld.long 0x00 13. " TIE13 ,Transmission interrupt enable for TX buffer 13" "Disabled,Enabled"
bitfld.long 0x00 12. " TIE12 ,Transmission interrupt enable for TX buffer 12" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " TIE11 ,Transmission interrupt enable for TX buffer 11" "Disabled,Enabled"
bitfld.long 0x00 10. " TIE10 ,Transmission interrupt enable for TX buffer 10" "Disabled,Enabled"
bitfld.long 0x00 9. " TIE9 ,Transmission interrupt enable for TX buffer 9" "Disabled,Enabled"
bitfld.long 0x00 8. " TIE8 ,Transmission interrupt enable for TX buffer 8" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " TIE7 ,Transmission interrupt enable for TX buffer 7" "Disabled,Enabled"
bitfld.long 0x00 6. " TIE6 ,Transmission interrupt enable for TX buffer 6" "Disabled,Enabled"
bitfld.long 0x00 5. " TIE5 ,Transmission interrupt enable for TX buffer 5" "Disabled,Enabled"
bitfld.long 0x00 4. " TIE4 ,Transmission interrupt enable for TX buffer 4" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " TIE3 ,Transmission interrupt enable for TX buffer 3" "Disabled,Enabled"
bitfld.long 0x00 2. " TIE2 ,Transmission interrupt enable for TX buffer 2" "Disabled,Enabled"
bitfld.long 0x00 1. " TIE1 ,Transmission interrupt enable for TX buffer 1" "Disabled,Enabled"
bitfld.long 0x00 0. " TIE0 ,Transmission interrupt enable for TX buffer 0" "Disabled,Enabled"
line.long 0x04 "TXBCIE,TX Buffer Cancellation Finished Interrupt Enable Register"
bitfld.long 0x04 31. " CFIE31 ,Cancellation finished interrupt enable for TX buffer 31" "Disabled,Enabled"
bitfld.long 0x04 30. " CFIE30 ,Cancellation finished interrupt enable for TX buffer 30" "Disabled,Enabled"
bitfld.long 0x04 29. " CFIE29 ,Cancellation finished interrupt enable for TX buffer 29" "Disabled,Enabled"
bitfld.long 0x04 28. " CFIE28 ,Cancellation finished interrupt enable for TX buffer 28" "Disabled,Enabled"
newline
bitfld.long 0x04 27. " CFIE27 ,Cancellation finished interrupt enable for TX buffer 27" "Disabled,Enabled"
bitfld.long 0x04 26. " CFIE26 ,Cancellation finished interrupt enable for TX buffer 26" "Disabled,Enabled"
bitfld.long 0x04 25. " CFIE25 ,Cancellation finished interrupt enable for TX buffer 25" "Disabled,Enabled"
bitfld.long 0x04 24. " CFIE24 ,Cancellation finished interrupt enable for TX buffer 24" "Disabled,Enabled"
newline
bitfld.long 0x04 23. " CFIE23 ,Cancellation finished interrupt enable for TX buffer 23" "Disabled,Enabled"
bitfld.long 0x04 22. " CFIE22 ,Cancellation finished interrupt enable for TX buffer 22" "Disabled,Enabled"
bitfld.long 0x04 21. " CFIE21 ,Cancellation finished interrupt enable for TX buffer 21" "Disabled,Enabled"
bitfld.long 0x04 20. " CFIE20 ,Cancellation finished interrupt enable for TX buffer 20" "Disabled,Enabled"
newline
bitfld.long 0x04 19. " CFIE19 ,Cancellation finished interrupt enable for TX buffer 19" "Disabled,Enabled"
bitfld.long 0x04 18. " CFIE18 ,Cancellation finished interrupt enable for TX buffer 18" "Disabled,Enabled"
bitfld.long 0x04 17. " CFIE17 ,Cancellation finished interrupt enable for TX buffer 17" "Disabled,Enabled"
bitfld.long 0x04 16. " CFIE16 ,Cancellation finished interrupt enable for TX buffer 16" "Disabled,Enabled"
newline
bitfld.long 0x04 15. " CFIE15 ,Cancellation finished interrupt enable for TX buffer 15" "Disabled,Enabled"
bitfld.long 0x04 14. " CFIE14 ,Cancellation finished interrupt enable for TX buffer 14" "Disabled,Enabled"
bitfld.long 0x04 13. " CFIE13 ,Cancellation finished interrupt enable for TX buffer 13" "Disabled,Enabled"
bitfld.long 0x04 12. " CFIE12 ,Cancellation finished interrupt enable for TX buffer 12" "Disabled,Enabled"
newline
bitfld.long 0x04 11. " CFIE11 ,Cancellation finished interrupt enable for TX buffer 11" "Disabled,Enabled"
bitfld.long 0x04 10. " CFIE10 ,Cancellation finished interrupt enable for TX buffer 10" "Disabled,Enabled"
bitfld.long 0x04 9. " CFIE9 ,Cancellation finished interrupt enable for TX buffer 9" "Disabled,Enabled"
bitfld.long 0x04 8. " CFIE8 ,Cancellation finished interrupt enable for TX buffer 8" "Disabled,Enabled"
newline
bitfld.long 0x04 7. " CFIE7 ,Cancellation finished interrupt enable for TX buffer 7" "Disabled,Enabled"
bitfld.long 0x04 6. " CFIE6 ,Cancellation finished interrupt enable for TX buffer 6" "Disabled,Enabled"
bitfld.long 0x04 5. " CFIE5 ,Cancellation finished interrupt enable for TX buffer 5" "Disabled,Enabled"
bitfld.long 0x04 4. " CFIE4 ,Cancellation finished interrupt enable for TX buffer 4" "Disabled,Enabled"
newline
bitfld.long 0x04 3. " CFIE3 ,Cancellation finished interrupt enable for TX buffer 3" "Disabled,Enabled"
bitfld.long 0x04 2. " CFIE2 ,Cancellation finished interrupt enable for TX buffer 2" "Disabled,Enabled"
bitfld.long 0x04 1. " CFIE1 ,Cancellation finished interrupt enable for TX buffer 1" "Disabled,Enabled"
bitfld.long 0x04 0. " CFIE0 ,Cancellation finished interrupt enable for TX buffer 0" "Disabled,Enabled"
newline
if (((per.l(ad:0x42001C00+0x018))&0x03)==0x03)
group.long 0xF0++0x03
line.long 0x00 "TXEFC,TX Event FIFO Configuration Register"
bitfld.long 0x00 24.--29. " EFWM ,Event FIFO watermark" "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,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled"
bitfld.long 0x00 16.--21. " EFS ,Event FIFO size" "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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " EFSA ,Event FIFO start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " EFSA ,Event FIFO start address"
endif
else
rgroup.long 0xF0++0x03
line.long 0x00 "TXEFC,TX Event FIFO Configuration Register"
bitfld.long 0x00 24.--29. " EFWM ,Event FIFO watermark" "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,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled"
bitfld.long 0x00 16.--21. " EFS ,Event FIFO size" "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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " EFSA ,Event FIFO start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " EFSA ,Event FIFO start address"
endif
endif
rgroup.long 0xF4++0x03
line.long 0x00 "TXEFS,TX Event FIFO Status Register"
bitfld.long 0x00 25. " TEFL ,TX event FIFO element lost" "Not lost,Lost"
bitfld.long 0x00 24. " EFF ,Event FIFO full" "Not full,Full"
bitfld.long 0x00 16.--20. " EFP ,Event FIFO put index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 8.--12. " EFGI ,Event FIFO get index" "0,1,2,3,4,5,6,7,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
sif (cpuis("BCM89103")||cpuis("BCM89107"))
bitfld.long 0x00 0.--5. " EFFL ,Event FIFO fill 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,?..."
else
bitfld.long 0x00 0.--4. " EFFL ,Event FIFO fill 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"
endif
group.long 0xF8++0x03
line.long 0x00 "TXEFA,TX Event FIFO Acknowledge Register"
bitfld.long 0x00 0.--4. " EFAI ,Event FIFO acknowledge index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
width 0x0B
tree.end
tree "CAN 1"
base ad:0x42002000
width 8.
sif (!cpuis("BCM89103")&&!cpuis("BCM89107"))
rgroup.long 0x00++0x07
line.long 0x00 "CREL,Core Release Register"
bitfld.long 0x00 28.--31. " REL ,Core release" "0,1,2,3,4,5,6,7,8,9,?..."
bitfld.long 0x00 24.--27. " STEP ,Step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
sif (cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*"))
bitfld.long 0x00 20.--23. " LSUBSTEP ,Sub-step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
else
bitfld.long 0x00 20.--23. " DUPSTEP ,Sub-step of core release" "0,1,2,3,4,5,6,7,8,9,?..."
endif
line.long 0x04 "ENDN,Endian (Endianness Test Value) Register"
group.long 0x08++0x03
line.long 0x00 "MRCFG,Message RAM Configuration Register"
sif !cpuis("ATSAMD5*")&&!cpuis("ATSAME5*")&&!cpuis("ATSAMC21*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "No,Yes"
newline
endif
bitfld.long 0x00 0.--1. " DQOS ,Data quality of service" "Disabled,Low,Medium,High"
endif
if (((per.l(ad:0x42002000+0x18))&0x03)==0x03)
group.long 0x0C++0x03
line.long 0x00 "DBTP,Data Bit Timing & Prescaler Register"
bitfld.long 0x00 23. " TDC ,Transceiver delay compensation enable" "Disabled,Enabled"
bitfld.long 0x00 16.--20. " DBRP ,Data baud rate prescaler" "0,1,2,3,4,5,6,7,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
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*")
bitfld.long 0x00 8.--12. " DTSEG1 ,Fast time segment before sample point" "0,1,2,3,4,5,6,7,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
else
bitfld.long 0x00 8.--11. " DTSEG1 ,Data time segment before sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
endif
bitfld.long 0x00 4.--7. " DTSEG2 ,Data time segment after sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 0.--3. " DSJW ,Data (re)synchronization jump width" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
else
rgroup.long 0x0C++0x03
line.long 0x00 "DBTP,Data Bit Timing & Prescaler Register"
bitfld.long 0x00 23. " TDC ,Transceiver delay compensation enable" "Disabled,Enabled"
bitfld.long 0x00 16.--20. " DBRP ,Data baud rate prescaler" "0,1,2,3,4,5,6,7,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
sif cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21*")
bitfld.long 0x00 8.--12. " DTSEG1 ,Fast time segment before sample point" "0,1,2,3,4,5,6,7,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
else
bitfld.long 0x00 8.--11. " DTSEG1 ,Data time segment before sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
newline
endif
bitfld.long 0x00 4.--7. " DTSEG2 ,Data time segment after sample point" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x00 0.--3. " DSJW ,Data (re)synchronization jump width" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
endif
if (((per.l(ad:0x42002000+0x18))&0x80)==0x80)
group.long 0x10++0x03
line.long 0x00 "TEST,Test Register"
rbitfld.long 0x00 7. " RX ,Receive pin" "Dominant,Recessive"
bitfld.long 0x00 5.--6. " TX ,Control of transmit pin" "Core,Sample,Dominant,Recessive"
bitfld.long 0x00 4. " LBCK ,Loop back mode enabled" "Disabled,Enabled"
else
rgroup.long 0x10++0x03
line.long 0x00 "TEST,Test Register"
bitfld.long 0x00 7. " RX ,Receive pin" "Dominant,Recessive"
bitfld.long 0x00 5.--6. " TX ,Control of transmit pin" "Core,Sample,Dominant,Recessive"
bitfld.long 0x00 4. " LBCK ,Loop back mode enabled" "Disabled,Enabled"
endif
if (((per.l(ad:0x42002000+0x18))&0x03)==0x03)
group.long 0x14++0x03
line.long 0x00 "RWD,RAM Watchdog Register"
hexmask.long.byte 0x00 8.--15. 1. " WDV ,Watchdog value"
hexmask.long.byte 0x00 0.--7. 1. " WDC ,Watchdog configuration"
else
rgroup.long 0x14++0x03
line.long 0x00 "RWD,RAM Watchdog Register"
hexmask.long.byte 0x00 8.--15. 1. " WDV ,Watchdog value"
hexmask.long.byte 0x00 0.--7. 1. " WDC ,Watchdog configuration"
endif
newline
if (((per.l(ad:0x42002000+0x18))&0x03)==0x03)
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
bitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
bitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
bitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
else
bitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
bitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
bitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
elif (((per.l(ad:0x42002000+0x18))&0x01)==0x01)
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
rbitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
rbitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
rbitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
rbitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
elif cpuis("ATSAMC21N*")
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Reserved"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Reserved"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Reserved"
newline
else
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
bitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
else
group.long 0x18++0x03
line.long 0x00 "CCCR,CC Control Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
rbitfld.long 0x00 15. " NISO ,Non ISO operation" "Disabled,Enabled"
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
rbitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
rbitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
rbitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
rbitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
elif cpuis("ATSAMC21N*")
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Reserved"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Reserved"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Reserved"
newline
else
rbitfld.long 0x00 14. " TXP ,Transmit pause" "Disabled,Enabled"
bitfld.long 0x00 13. " EFBI ,Edge filtering during bus integration" "Disabled,Enabled"
bitfld.long 0x00 12. " PXHD ,Protocol exception handling disable" "No,Yes"
newline
bitfld.long 0x00 9. " BRSE ,Bit rate switch enable" "Disabled,Enabled"
bitfld.long 0x00 8. " FDOE ,FD operation enable" "Disabled,Enabled"
bitfld.long 0x00 7. " TEST ,Test mode enable" "Normal,Test"
rbitfld.long 0x00 6. " DAR ,Disable automatic retransmission" "No,Yes"
newline
bitfld.long 0x00 5. " MON ,Bus monitoring mode" "Disabled,Enabled"
bitfld.long 0x00 4. " CSR ,Clock stop request" "Not requested,Requested"
bitfld.long 0x00 3. " CSA ,Clock stop acknowledge" "Not acknowledged,Acknowledged"
bitfld.long 0x00 2. " ASM ,Restricted operation mode" "Normal,Restricted"
newline
endif
rbitfld.long 0x00 1. " CCE ,Configuration change enable" "Disabled,Enabled"
bitfld.long 0x00 0. " INIT ,Initialization" "Normal,Initialization"
endif
newline
if (((per.l(ad:0x42002000+0x18))&0x03)==0x03)
group.long 0x1C++0x07
line.long 0x00 "NBTP,Nominal Bit Timing & Prescaler Register"
hexmask.long.byte 0x00 25.--31. 1. " NSJW ,Nominal (re)synchronization jump width"
hexmask.long.word 0x00 16.--24. 1. " NBRP ,Nominal baud rate prescaler"
hexmask.long.byte 0x00 8.--15. 1. " NTSEG1 ,Nominal time segment before sample point"
hexmask.long.byte 0x00 0.--6. 1. " NTSEG2 ,Nominal time segment after sample point"
line.long 0x04 "TSCC,Timestamp Counter Configuration Register"
bitfld.long 0x04 16.--19. " TCP ,Timestamp counter prescaler" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
newline
sif cpuis("ATSAMC2*")
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,,Always zero"
else
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,External,Always zero"
endif
else
rgroup.long 0x1C++0x07
line.long 0x00 "NBTP,Nominal Bit Timing & Prescaler Register"
hexmask.long.byte 0x00 25.--31. 1. " NSJW ,Nominal (re)synchronization jump width"
hexmask.long.word 0x00 16.--24. 1. " NBRP ,Nominal baud rate prescaler"
hexmask.long.byte 0x00 8.--15. 1. " NTSEG1 ,Nominal time segment before sample point"
hexmask.long.byte 0x00 0.--6. 1. " NTSEG2 ,Nominal time segment after sample point"
line.long 0x04 "TSCC,Timestamp Counter Configuration Register"
bitfld.long 0x04 16.--19. " TCP ,Timestamp counter prescaler" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
newline
sif cpuis("ATSAMC2*")
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,,Always zero"
else
bitfld.long 0x04 0.--1. " TSS ,Timestamp select (timestamp counter value selection)" "Always zero,Incremented,External,Always zero"
endif
endif
sif (cpuis("BCM89103")||cpuis("BCM89107"))
group.long 0x24++0x03
line.long 0x00 "TSCV,Timestamp Counter Value Register"
hexmask.long.word 0x00 0.--15. 1. " TSC ,Timestamp counter"
else
rgroup.long 0x24++0x03
line.long 0x00 "TSCV,Timestamp Counter Value Register"
hexmask.long.word 0x00 0.--14. 1. " TSC ,Timestamp counter"
endif
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0x28++0x03
line.long 0x00 "TOCC,Timeout Counter Configuration Register"
hexmask.long.word 0x00 16.--31. 1. " TOP ,Timeout period"
bitfld.long 0x00 1.--2. " TOS ,Timeout select" "Continuous,TX Event FIFO,RX FIFO 0,RX FIFO 1"
bitfld.long 0x00 0. " ETOC ,Enable timeout counter" "Disabled,Enabled"
else
rgroup.long 0x28++0x03
line.long 0x00 "TOCC,Timeout Counter Configuration Register"
hexmask.long.word 0x00 16.--31. 1. " TOP ,Timeout period"
bitfld.long 0x00 1.--2. " TOS ,Timeout select" "Continuous,TX Event FIFO,RX FIFO 0,RX FIFO 1"
bitfld.long 0x00 0. " ETOC ,Enable timeout counter" "Disabled,Enabled"
endif
group.long 0x2C++0x03
line.long 0x00 "TOCV,Timeout Counter Value Register"
hexmask.long.word 0x00 0.--15. 1. " TOC ,Timeout counter"
sif (cpuis("BCM89103")||cpuis("BCM89107")||cpuis("ATSAMD5*")||cpuis("ATSAME5*"))
hgroup.long 0x40++0x03
hide.long 0x00 "ECR,Error Counter Register"
in
else
rgroup.long 0x40++0x03
line.long 0x00 "ECR,Error Counter Register"
hexmask.long.byte 0x00 16.--23. 1. " CEL ,CAN error logging"
bitfld.long 0x00 15. " RP ,Receive error passive" "Not occurred,Occurred"
hexmask.long.byte 0x00 8.--14. 1. " REC ,Receive error counter"
hexmask.long.byte 0x00 0.--7. 1. " TEC ,Transmit error counter"
endif
newline
hgroup.long 0x44++0x03
hide.long 0x00 "PSR,Protocol Status Register"
in
newline
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0x48++0x03
line.long 0x00 "TDCR,Transmitter Delay Compensation Register"
hexmask.long.byte 0x00 8.--14. 1. " TDCO ,Transmitter delay compensation offset"
hexmask.long.byte 0x00 0.--6. 1. " TDCF ,Transmitter delay compensation filter window length"
else
rgroup.long 0x48++0x03
line.long 0x00 "TDCR,Transmitter Delay Compensation Register"
hexmask.long.byte 0x00 8.--14. 1. " TDCO ,Transmitter delay compensation offset"
hexmask.long.byte 0x00 0.--6. 1. " TDCF ,Transmitter delay compensation filter window length"
endif
group.long 0x50++0x0F
line.long 0x00 "IR,Interrupt Register"
eventfld.long 0x00 29. " ARA ,Access to reserved address" "Not occurred,Occurred"
eventfld.long 0x00 28. " PED ,Protocol error in data phase" "No error,Error"
eventfld.long 0x00 27. " PEA ,Protocol error in arbitration phase" "No error,Error"
eventfld.long 0x00 26. " WDI ,Watchdog interrupt" "Not occurred,Occurred"
newline
eventfld.long 0x00 25. " BO ,Bus_off status" "Unchanged,Changed"
eventfld.long 0x00 24. " EW ,Warning status" "Unchanged,Changed"
eventfld.long 0x00 23. " EP ,Error passive" "Unchanged,Changed"
eventfld.long 0x00 22. " ELO ,Error logging overflow" "No overflow,Overflow"
newline
eventfld.long 0x00 21. " BEU ,Bit error uncorrected" "No error,Error"
eventfld.long 0x00 20. " BEC ,Bit error corrected" "No error,Error"
eventfld.long 0x00 19. " DRX ,Message stored to dedicated RX buffer" "Not stored,Stored"
eventfld.long 0x00 18. " TOO ,Timeout occurred" "Not occurred,Occurred"
newline
eventfld.long 0x00 17. " MRAF ,Message RAM access failure" "Not occurred,Occurred"
eventfld.long 0x00 16. " TSW ,Timestamp wraparound" "Not occurred,Occurred"
eventfld.long 0x00 15. " TEFL ,TX event FIFO element lost" "Not lost,Lost"
eventfld.long 0x00 14. " TEFF ,TX event FIFO full" "Not full,Full"
newline
eventfld.long 0x00 13. " TEFW ,TX event FIFO watermark reached" "Not reached,Reached"
eventfld.long 0x00 12. " TEFN ,TX event FIFO new entry" "Unchanged,Changed"
eventfld.long 0x00 11. " TFE ,TX FIFO empty" "Not empty,Empty"
eventfld.long 0x00 10. " TCF ,Transmission cancellation finished" "Not finished,Finished"
newline
eventfld.long 0x00 9. " TC ,Transmission completed" "Not completed,Completed"
eventfld.long 0x00 8. " HPM ,High priority message" "Not received,Received"
eventfld.long 0x00 7. " RF1L ,RX FIFO 1 message lost" "Not lost,Lost"
eventfld.long 0x00 6. " RF1F ,RX FIFO 1 full" "Not full,Full"
newline
eventfld.long 0x00 5. " RF1W ,RX FIFO 1 watermark reached" "Not reached,Reached"
eventfld.long 0x00 4. " RF1N ,RX FIFO 1 new message" "No new message,New message"
eventfld.long 0x00 3. " RF0L ,RX FIFO 0 message lost" "Not lost,Lost"
eventfld.long 0x00 2. " RF0F ,RX FIFO 0 full" "Not full,Full"
newline
eventfld.long 0x00 1. " RF0W ,RX FIFO 0 watermark reached" "Not reached,Reached"
eventfld.long 0x00 0. " RF0N ,RX FIFO 0 new message" "No new message,New message"
line.long 0x04 "IE,Interrupt Enable Register"
bitfld.long 0x04 29. " ARAE ,Access to reserved address interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 28. " PEDE ,Protocol error in data phase interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 27. " PEAE ,Protocol error in arbitration phase interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 26. " WDIE ,Watchdog interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 25. " BOE ,Bus_Off status interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 24. " EWE ,Warning status interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 23. " EPE ,Error passive interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 22. " ELOE ,Error logging overflow interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 21. " BEUE ,Bit error uncorrected interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 20. " BECE ,Bit error corrected interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 19. " DRXE ,Message stored to dedicated RX buffer interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 18. " TOOE ,Timeout occurred interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 17. " MRAFE ,Message RAM access failure interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 16. " TSWE ,Timestamp wraparound interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 15. " TEFLE ,TX event FIFO element lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 14. " TEFFE ,TX event FIFO full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 13. " TEFWE ,TX event FIFO watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 12. " TEFNE ,TX event FIFO new entry interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 11. " TFEE ,TX FIFO empty interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 10. " TCFE ,Transmission cancellation finished interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 9. " TCE ,Transmission completed interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 8. " HPME ,High priority message interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 7. " RF1LE ,RX FIFO 1 message lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 6. " RF1FE ,RX FIFO 1 full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 5. " RF1WE ,RX FIFO 1 watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 4. " RF1NE ,RX FIFO 1 new message interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 3. " RF0LE ,RX FIFO 0 message lost interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 2. " RF0FE ,RX FIFO 0 full interrupt enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " RF0WE ,RX FIFO 0 watermark reached interrupt enable" "Disabled,Enabled"
bitfld.long 0x04 0. " RF0NE ,RX FIFO 0 new message interrupt enable" "Disabled,Enabled"
line.long 0x08 "ILS,Interrupt Line Select Register"
bitfld.long 0x08 29. " ARAL ,Access to reserved address interrupt line" "Line 0,Line 1"
bitfld.long 0x08 28. " PEDL ,Protocol error in data phase interrupt line" "Line 0,Line 1"
bitfld.long 0x08 27. " PEAL ,Protocol error in arbitration phase interrupt line" "Line 0,Line 1"
bitfld.long 0x08 26. " WDIL ,Watchdog interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 25. " BOL ,Bus_Off status interrupt line" "Line 0,Line 1"
bitfld.long 0x08 24. " EWL ,Warning status interrupt line" "Line 0,Line 1"
bitfld.long 0x08 23. " EPL ,Error passive interrupt line" "Line 0,Line 1"
bitfld.long 0x08 22. " ELOL ,Error logging overflow interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 21. " BEUL ,Bit error uncorrected interrupt line" "Line 0,Line 1"
bitfld.long 0x08 20. " BECL ,Bit error corrected interrupt line" "Line 0,Line 1"
bitfld.long 0x08 19. " DRXL ,Message stored to dedicated RX buffer interrupt line" "Line 0,Line 1"
bitfld.long 0x08 18. " TOOL ,Timeout occurred interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 17. " MRAFL ,Message RAM access failure interrupt line" "Line 0,Line 1"
bitfld.long 0x08 16. " TSWL ,Timestamp wraparound interrupt line" "Line 0,Line 1"
bitfld.long 0x08 15. " TEFLL ,TX Event FIFO element lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 14. " TEFFL ,TX Event FIFO full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 13. " TEFWL ,TX event FIFO watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 12. " TEFNL ,TX event FIFO new entry interrupt line" "Line 0,Line 1"
bitfld.long 0x08 11. " TFEL ,TX FIFO empty interrupt line" "Line 0,Line 1"
bitfld.long 0x08 10. " TCFL ,Transmission cancellation finished interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 9. " TCL ,Transmission completed interrupt line" "Line 0,Line 1"
bitfld.long 0x08 8. " HPML ,High priority message interrupt line" "Line 0,Line 1"
bitfld.long 0x08 7. " RF1LL ,RX FIFO 1 message lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 6. " RF1FL ,RX FIFO 1 full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 5. " RF1WL ,RX FIFO 1 watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 4. " RF1NL ,RX FIFO 1 new message interrupt line" "Line 0,Line 1"
bitfld.long 0x08 3. " RF0LL ,RX FIFO 0 message lost interrupt line" "Line 0,Line 1"
bitfld.long 0x08 2. " RF0FL ,RX FIFO 0 full interrupt line" "Line 0,Line 1"
newline
bitfld.long 0x08 1. " RF0WL ,RX FIFO 0 watermark reached interrupt line" "Line 0,Line 1"
bitfld.long 0x08 0. " RF0NL ,RX FIFO 0 new message interrupt line" "Line 0,Line 1"
line.long 0x0C "ILE,Interrupt Line Enable Register"
bitfld.long 0x0C 1. " EINT1 ,Enable interrupt line 1" "Disabled,Enabled"
bitfld.long 0x0C 0. " EINT0 ,Enable interrupt line 0" "Disabled,Enabled"
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0x80++0x0B
line.long 0x00 "GFC,Global Filter Configuration Register"
bitfld.long 0x00 4.--5. " ANFS ,Accept non-matching frames standard" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 2.--3. " ANFE ,Accept non-matching frames extended" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 1. " RRFS ,Reject remote frames standard (11-bit standard IDs)" "Filtered,Rejected all"
bitfld.long 0x00 0. " RRFE ,Reject remote frames extended (29-bit extended IDs)" "Filtered,Rejected all"
line.long 0x04 "SIDFC,Standard ID Filter Configuration Register"
hexmask.long.byte 0x04 16.--23. 1. " LSS ,List size standard"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " FLSSA ,Filter list standard start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " FLSSA ,Filter list standard start address"
endif
line.long 0x08 "XIDFC,Extended ID Filter Configuration Register"
hexmask.long.byte 0x08 16.--22. 1. " LSE ,List size extended"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x08 2.--15. 0x04 " FLESA ,Filter list extended start address"
else
hexmask.long.word 0x08 0.--15. 0x01 " FLESA ,Filter list extended start address"
endif
group.long 0x90++0x03
line.long 0x00 "XIDAM,Extended ID AND Mask Register"
hexmask.long 0x00 0.--28. 1. " EIDM ,Extended ID mask"
else
rgroup.long 0x80++0x0B
line.long 0x00 "GFC,Global Filter Configuration Register"
bitfld.long 0x00 4.--5. " ANFS ,Accept non-matching frames standard" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 2.--3. " ANFE ,Accept non-matching frames extended" "RX FIFO 0,RX FIFO 1,Rejected,Rejected"
bitfld.long 0x00 1. " RRFS ,Reject remote frames standard (11-bit standard IDs)" "Filtered,Rejected all"
bitfld.long 0x00 0. " RRFE ,Reject remote frames extended (29-bit extended IDs)" "Filtered,Rejected all"
line.long 0x04 "SIDFC,Standard ID Filter Configuration Register"
hexmask.long.byte 0x04 16.--23. 1. " LSS ,List size standard"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " FLSSA ,Filter list standard start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " FLSSA ,Filter list standard start address"
endif
line.long 0x08 "XIDFC,Extended ID Filter Configuration Register"
hexmask.long.byte 0x08 16.--22. 1. " LSE ,List size extended"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x08 2.--15. 0x04 " FLESA ,Filter list extended start address"
else
hexmask.long.word 0x08 0.--15. 0x01 " FLESA ,Filter list extended start address"
endif
rgroup.long 0x90++0x03
line.long 0x00 "XIDAM,Extended ID AND Mask Register"
hexmask.long 0x00 0.--28. 1. " EIDM ,Extended ID mask"
endif
sif (cpuis("BCM89103")||cpuis("BCM89107"))
if (((per.l(ad:0x42002000+0x94))&0xC0)==(0x80||0xC0))
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
hexmask.long.byte 0x00 0.--5. 1. " BIDX ,Buffer index"
else
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
endif
else
if (((per.l(ad:0x42002000+0x94))&0xC0)==0x40)
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
hexmask.long.byte 0x00 0.--5. 1. " BIDX ,Buffer index"
else
rgroup.long 0x94++0x03
line.long 0x00 "HPMS,High Priority Message Status Register"
bitfld.long 0x00 15. " FLST ,Filter list" "Standard,Extended"
hexmask.long.byte 0x00 8.--14. 1. " FIDX ,Filter index"
bitfld.long 0x00 6.--7. " MSI ,Message storage indicator" "None,Lost,FIFO0,FIFO1"
endif
endif
newline
group.long 0x98++0x07
line.long 0x00 "NDAT1,New Data 1 Register"
eventfld.long 0x00 31. " ND31 ,New data RX buffer 31" "Not updated,Updated"
eventfld.long 0x00 30. " ND30 ,New data RX buffer 30" "Not updated,Updated"
eventfld.long 0x00 29. " ND29 ,New data RX buffer 29" "Not updated,Updated"
eventfld.long 0x00 28. " ND28 ,New data RX buffer 28" "Not updated,Updated"
newline
eventfld.long 0x00 27. " ND27 ,New data RX buffer 27" "Not updated,Updated"
eventfld.long 0x00 26. " ND26 ,New data RX buffer 26" "Not updated,Updated"
eventfld.long 0x00 25. " ND25 ,New data RX buffer 25" "Not updated,Updated"
eventfld.long 0x00 24. " ND24 ,New data RX buffer 24" "Not updated,Updated"
newline
eventfld.long 0x00 23. " ND23 ,New data RX buffer 23" "Not updated,Updated"
eventfld.long 0x00 22. " ND22 ,New data RX buffer 22" "Not updated,Updated"
eventfld.long 0x00 21. " ND21 ,New data RX buffer 21" "Not updated,Updated"
eventfld.long 0x00 20. " ND20 ,New data RX buffer 20" "Not updated,Updated"
newline
eventfld.long 0x00 19. " ND19 ,New data RX buffer 19" "Not updated,Updated"
eventfld.long 0x00 18. " ND18 ,New data RX buffer 18" "Not updated,Updated"
eventfld.long 0x00 17. " ND17 ,New data RX buffer 17" "Not updated,Updated"
eventfld.long 0x00 16. " ND16 ,New data RX buffer 16" "Not updated,Updated"
newline
eventfld.long 0x00 15. " ND15 ,New data RX buffer 15" "Not updated,Updated"
eventfld.long 0x00 14. " ND14 ,New data RX buffer 14" "Not updated,Updated"
eventfld.long 0x00 13. " ND13 ,New data RX buffer 13" "Not updated,Updated"
eventfld.long 0x00 12. " ND12 ,New data RX buffer 12" "Not updated,Updated"
newline
eventfld.long 0x00 11. " ND11 ,New data RX buffer 11" "Not updated,Updated"
eventfld.long 0x00 10. " ND10 ,New data RX buffer 10" "Not updated,Updated"
eventfld.long 0x00 9. " ND9 ,New data RX buffer 9" "Not updated,Updated"
eventfld.long 0x00 8. " ND8 ,New data RX buffer 8" "Not updated,Updated"
newline
eventfld.long 0x00 7. " ND7 ,New data RX buffer 7" "Not updated,Updated"
eventfld.long 0x00 6. " ND6 ,New data RX buffer 6" "Not updated,Updated"
eventfld.long 0x00 5. " ND5 ,New data RX buffer 5" "Not updated,Updated"
eventfld.long 0x00 4. " ND4 ,New data RX buffer 4" "Not updated,Updated"
newline
eventfld.long 0x00 3. " ND3 ,New data RX buffer 3" "Not updated,Updated"
eventfld.long 0x00 2. " ND2 ,New data RX buffer 2" "Not updated,Updated"
eventfld.long 0x00 1. " ND1 ,New data RX buffer 1" "Not updated,Updated"
eventfld.long 0x00 0. " ND0 ,New data RX buffer 0" "Not updated,Updated"
line.long 0x04 "NDAT2,New Data 2 Register"
eventfld.long 0x04 31. " ND63 ,New data RX buffer 63" "Not updated,Updated"
eventfld.long 0x04 30. " ND62 ,New data RX buffer 62" "Not updated,Updated"
eventfld.long 0x04 29. " ND61 ,New data RX buffer 61" "Not updated,Updated"
eventfld.long 0x04 28. " ND60 ,New data RX buffer 60" "Not updated,Updated"
newline
eventfld.long 0x04 27. " ND59 ,New data RX buffer 59" "Not updated,Updated"
eventfld.long 0x04 26. " ND58 ,New data RX buffer 58" "Not updated,Updated"
eventfld.long 0x04 25. " ND57 ,New data RX buffer 57" "Not updated,Updated"
eventfld.long 0x04 24. " ND56 ,New data RX buffer 56" "Not updated,Updated"
newline
eventfld.long 0x04 23. " ND55 ,New data RX buffer 55" "Not updated,Updated"
eventfld.long 0x04 22. " ND54 ,New data RX buffer 54" "Not updated,Updated"
eventfld.long 0x04 21. " ND53 ,New data RX buffer 53" "Not updated,Updated"
eventfld.long 0x04 20. " ND52 ,New data RX buffer 52" "Not updated,Updated"
newline
eventfld.long 0x04 19. " ND51 ,New data RX buffer 51" "Not updated,Updated"
eventfld.long 0x04 18. " ND50 ,New data RX buffer 50" "Not updated,Updated"
eventfld.long 0x04 17. " ND49 ,New data RX buffer 49" "Not updated,Updated"
eventfld.long 0x04 16. " ND48 ,New data RX buffer 48" "Not updated,Updated"
newline
eventfld.long 0x04 15. " ND47 ,New data RX buffer 47" "Not updated,Updated"
eventfld.long 0x04 14. " ND46 ,New data RX buffer 46" "Not updated,Updated"
eventfld.long 0x04 13. " ND45 ,New data RX buffer 45" "Not updated,Updated"
eventfld.long 0x04 12. " ND44 ,New data RX buffer 44" "Not updated,Updated"
newline
eventfld.long 0x04 11. " ND43 ,New data RX buffer 43" "Not updated,Updated"
eventfld.long 0x04 10. " ND42 ,New data RX buffer 42" "Not updated,Updated"
eventfld.long 0x04 9. " ND41 ,New data RX buffer 41" "Not updated,Updated"
eventfld.long 0x04 8. " ND40 ,New data RX buffer 40" "Not updated,Updated"
newline
eventfld.long 0x04 7. " ND39 ,New data RX buffer 39" "Not updated,Updated"
eventfld.long 0x04 6. " ND38 ,New data RX buffer 38" "Not updated,Updated"
eventfld.long 0x04 5. " ND37 ,New data RX buffer 37" "Not updated,Updated"
eventfld.long 0x04 4. " ND36 ,New data RX buffer 36" "Not updated,Updated"
newline
eventfld.long 0x04 3. " ND35 ,New data RX buffer 35" "Not updated,Updated"
eventfld.long 0x04 2. " ND34 ,New data RX buffer 34" "Not updated,Updated"
eventfld.long 0x04 1. " ND33 ,New data RX buffer 33" "Not updated,Updated"
eventfld.long 0x04 0. " ND32 ,New data RX buffer 32" "Not updated,Updated"
newline
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0xA0++0x03
line.long 0x00 "RXF0C,RX FIFO 0 Configuration Register"
bitfld.long 0x00 31. " F0OM ,FIFO 0 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x00 24.--30. 1. " F0WM ,RX FIFO 0 watermark"
hexmask.long.byte 0x00 16.--22. 1. " F0S ,RX FIFO 0 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " F0SA ,RX FIFO 0 start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " F0SA ,RX FIFO 0 start address"
endif
else
rgroup.long 0xA0++0x03
line.long 0x00 "RXF0C,RX FIFO 0 Configuration Register"
bitfld.long 0x00 31. " F0OM ,FIFO 0 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x00 24.--30. 1. " F0WM ,RX FIFO 0 watermark"
hexmask.long.byte 0x00 16.--22. 1. " F0S ,RX FIFO 0 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " F0SA ,RX FIFO 0 start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " F0SA ,RX FIFO 0 start address"
endif
endif
rgroup.long 0xA4++0x03
line.long 0x00 "RXF0S,RX FIFO 0 Status Register"
bitfld.long 0x00 25. " RF0L ,RX FIFO 0 message lost" "Not lost,Lost"
bitfld.long 0x00 24. " F0F ,RX FIFO 0 full" "Not full,Full"
newline
bitfld.long 0x00 16.--21. " F0PI ,RX FIFO 0 put index" "0,1,2,3,4,5,6,7,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 8.--13. " F0GI ,RX FIFO 0 get index" "0,1,2,3,4,5,6,7,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.byte 0x00 0.--6. 1. " F0FL ,RX FIFO 0 fill level"
group.long 0xA8++0x03
line.long 0x00 "RXF0A,RX FIFO 0 Acknowledge Register"
bitfld.long 0x00 0.--5. " F0AI ,RX FIFO 0 acknowledge index" "0,1,2,3,4,5,6,7,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"
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0xAC++0x07
line.long 0x00 "RXBC,RX Buffer Configuration Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " RBSA ,RX buffer start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " RBSA ,RX buffer start address"
endif
line.long 0x04 "RXF1C,RX FIFO 1 Configuration Register"
bitfld.long 0x04 31. " F1OM ,FIFO 1 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x04 24.--30. 1. " F1WM ,RX FIFO 1 watermark"
hexmask.long.byte 0x04 16.--22. 1. " F1S ,RX FIFO 1 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " F1SA ,RX FIFO 1 start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " F1SA ,RX FIFO 1 start address"
endif
else
rgroup.long 0xAC++0x07
line.long 0x00 "RXBC,RX Buffer Configuration Register"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " RBSA ,RX buffer start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " RBSA ,RX buffer start address"
endif
line.long 0x04 "RXF1C,RX FIFO 1 Configuration Register"
bitfld.long 0x04 31. " F1OM ,FIFO 1 operation mode" "Blocking,Overwrite"
hexmask.long.byte 0x04 24.--30. 1. " F1WM ,RX FIFO 1 watermark"
hexmask.long.byte 0x04 16.--22. 1. " F1S ,RX FIFO 1 size"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " F1SA ,RX FIFO 1 start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " F1SA ,RX FIFO 1 start address"
endif
endif
rgroup.long 0xB4++0x03
line.long 0x00 "RXF1S,RX FIFO 1 Status Register"
bitfld.long 0x00 30.--31. " DMS ,Debug message status" "Idle,DBGA,DBGB,DBGC"
bitfld.long 0x00 25. " RF1L ,RX FIFO 1 message lost" "Not lost,Lost"
bitfld.long 0x00 24. " F1F ,RX FIFO 1 full" "Not full,Full"
newline
bitfld.long 0x00 16.--21. " F1PI ,RX FIFO 1 put index" "0,1,2,3,4,5,6,7,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 8.--13. " F1GI ,RX FIFO 1 get index" "0,1,2,3,4,5,6,7,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.byte 0x00 0.--6. 1. " F1FL ,RX FIFO 1 fill level"
group.long 0xB8++0x03
line.long 0x00 "RXF1A,RX FIFO 1 Acknowledge Register"
bitfld.long 0x00 0.--5. " F1AI ,RX FIFO 1 acknowledge index" "0,1,2,3,4,5,6,7,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"
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0xBC++0x07
line.long 0x00 "RXESC,RX Buffer / FIFO Element Size Configuration Register"
bitfld.long 0x00 8.--10. " RBDS ,RX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 4.--6. " F1DS ,RX FIFO 1 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 0.--2. " F0DS ,RX FIFO 0 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
line.long 0x04 "TXBC,TX Buffer Configuration Register"
bitfld.long 0x04 30. " TFQM ,TX FIFO/queue mode" "FIFO,Queue"
bitfld.long 0x04 24.--29. " TFQS ,Transmit FIFO/queue size" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
bitfld.long 0x04 16.--21. " NDTB ,Number of dedicated transmit buffers" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " TBSA ,TX buffers start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " TBSA ,TX buffers start address"
endif
else
rgroup.long 0xBC++0x07
line.long 0x00 "RXESC,RX Buffer / FIFO Element Size Configuration Register"
bitfld.long 0x00 8.--10. " RBDS ,RX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 4.--6. " F1DS ,RX FIFO 1 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
bitfld.long 0x00 0.--2. " F0DS ,RX FIFO 0 data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
line.long 0x04 "TXBC,TX Buffer Configuration Register"
bitfld.long 0x04 30. " TFQM ,TX FIFO/queue mode" "FIFO,Queue"
bitfld.long 0x04 24.--29. " TFQS ,Transmit FIFO/queue size" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
bitfld.long 0x04 16.--21. " NDTB ,Number of dedicated transmit buffers" "0,1,2,3,4,5,6,7,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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x04 2.--15. 0x04 " TBSA ,TX buffers start address"
else
hexmask.long.word 0x04 0.--15. 0x01 " TBSA ,TX buffers start address"
endif
endif
rgroup.long 0xC4++0x03
line.long 0x00 "TXFQS,TX FIFO/Queue Status Register"
bitfld.long 0x00 21. " TFQF ,TX FIFO/queue full" "Not full,Full"
bitfld.long 0x00 16.--20. " TFQPI ,TX FIFO/queue put index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 8.--12. " TFGI ,TX FIFO get index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
sif (cpuis("BCM89103")||cpuis("BCM89107")||cpuis("ATSAMD5*")||cpuis("ATSAME5*")||cpuis("ATSAMC21N*"))
bitfld.long 0x00 0.--5. " TFFL ,TX FIFO free 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,?..."
else
bitfld.long 0x00 0.--5. " TFFL ,TX FIFO free 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,?..."
endif
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0xC8++0x03
line.long 0x00 "TXESC,TX Buffer Element Size Configuration Register"
bitfld.long 0x00 0.--2. " TBDS ,TX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
else
rgroup.long 0xC8++0x03
line.long 0x00 "TXESC,TX Buffer Element Size Configuration Register"
bitfld.long 0x00 0.--2. " TBDS ,TX buffer data field size" "DATA8,DATA12,DATA16,DATA20,DATA24,DATA32,DATA48,DATA64"
endif
newline
rgroup.long 0xCC++0x03
line.long 0x00 "TXBRP,TX Buffer Request Pending Register"
bitfld.long 0x00 31. " TPR31 ,Transmission request on TX buffer 31" "Not pending,Pending"
bitfld.long 0x00 30. " TPR30 ,Transmission request on TX buffer 30" "Not pending,Pending"
bitfld.long 0x00 29. " TPR29 ,Transmission request on TX buffer 29" "Not pending,Pending"
bitfld.long 0x00 28. " TPR28 ,Transmission request on TX buffer 28" "Not pending,Pending"
newline
bitfld.long 0x00 27. " TPR27 ,Transmission request on TX buffer 27" "Not pending,Pending"
bitfld.long 0x00 26. " TPR26 ,Transmission request on TX buffer 26" "Not pending,Pending"
bitfld.long 0x00 25. " TPR25 ,Transmission request on TX buffer 25" "Not pending,Pending"
bitfld.long 0x00 24. " TPR24 ,Transmission request on TX buffer 24" "Not pending,Pending"
newline
bitfld.long 0x00 23. " TPR23 ,Transmission request on TX buffer 23" "Not pending,Pending"
bitfld.long 0x00 22. " TPR22 ,Transmission request on TX buffer 22" "Not pending,Pending"
bitfld.long 0x00 21. " TPR21 ,Transmission request on TX buffer 21" "Not pending,Pending"
bitfld.long 0x00 20. " TPR20 ,Transmission request on TX buffer 20" "Not pending,Pending"
newline
bitfld.long 0x00 19. " TPR19 ,Transmission request on TX buffer 19" "Not pending,Pending"
bitfld.long 0x00 18. " TPR18 ,Transmission request on TX buffer 18" "Not pending,Pending"
bitfld.long 0x00 17. " TPR17 ,Transmission request on TX buffer 17" "Not pending,Pending"
bitfld.long 0x00 16. " TPR16 ,Transmission request on TX buffer 16" "Not pending,Pending"
newline
bitfld.long 0x00 15. " TPR15 ,Transmission request on TX buffer 15" "Not pending,Pending"
bitfld.long 0x00 14. " TPR14 ,Transmission request on TX buffer 14" "Not pending,Pending"
bitfld.long 0x00 13. " TPR13 ,Transmission request on TX buffer 13" "Not pending,Pending"
bitfld.long 0x00 12. " TPR12 ,Transmission request on TX buffer 12" "Not pending,Pending"
newline
bitfld.long 0x00 11. " TPR11 ,Transmission request on TX buffer 11" "Not pending,Pending"
bitfld.long 0x00 10. " TPR10 ,Transmission request on TX buffer 10" "Not pending,Pending"
bitfld.long 0x00 9. " TPR9 ,Transmission request on TX buffer 9" "Not pending,Pending"
bitfld.long 0x00 8. " TPR8 ,Transmission request on TX buffer 8" "Not pending,Pending"
newline
bitfld.long 0x00 7. " TPR7 ,Transmission request on TX buffer 7" "Not pending,Pending"
bitfld.long 0x00 6. " TPR6 ,Transmission request on TX buffer 6" "Not pending,Pending"
bitfld.long 0x00 5. " TPR5 ,Transmission request on TX buffer 5" "Not pending,Pending"
bitfld.long 0x00 4. " TPR4 ,Transmission request on TX buffer 4" "Not pending,Pending"
newline
bitfld.long 0x00 3. " TPR3 ,Transmission request on TX buffer 3" "Not pending,Pending"
bitfld.long 0x00 2. " TPR2 ,Transmission request on TX buffer 2" "Not pending,Pending"
bitfld.long 0x00 1. " TPR1 ,Transmission request on TX buffer 1" "Not pending,Pending"
bitfld.long 0x00 0. " TPR0 ,Transmission request on TX buffer 0" "Not pending,Pending"
group.long 0xD0++0x07
line.long 0x00 "TXBAR,TX Buffer Add Request Register"
bitfld.long 0x00 31. " AR31 ,Add request on TX buffer 31" "No effect,Add request"
bitfld.long 0x00 30. " AR30 ,Add request on TX buffer 30" "No effect,Add request"
bitfld.long 0x00 29. " AR29 ,Add request on TX buffer 29" "No effect,Add request"
bitfld.long 0x00 28. " AR28 ,Add request on TX buffer 28" "No effect,Add request"
newline
bitfld.long 0x00 27. " AR27 ,Add request on TX buffer 27" "No effect,Add request"
bitfld.long 0x00 26. " AR26 ,Add request on TX buffer 26" "No effect,Add request"
bitfld.long 0x00 25. " AR25 ,Add request on TX buffer 25" "No effect,Add request"
bitfld.long 0x00 24. " AR24 ,Add request on TX buffer 24" "No effect,Add request"
newline
bitfld.long 0x00 23. " AR23 ,Add request on TX buffer 23" "No effect,Add request"
bitfld.long 0x00 22. " AR22 ,Add request on TX buffer 22" "No effect,Add request"
bitfld.long 0x00 21. " AR21 ,Add request on TX buffer 21" "No effect,Add request"
bitfld.long 0x00 20. " AR20 ,Add request on TX buffer 20" "No effect,Add request"
newline
bitfld.long 0x00 19. " AR19 ,Add request on TX buffer 19" "No effect,Add request"
bitfld.long 0x00 18. " AR18 ,Add request on TX buffer 18" "No effect,Add request"
bitfld.long 0x00 17. " AR17 ,Add request on TX buffer 17" "No effect,Add request"
bitfld.long 0x00 16. " AR16 ,Add request on TX buffer 16" "No effect,Add request"
newline
bitfld.long 0x00 15. " AR15 ,Add request on TX buffer 15" "No effect,Add request"
bitfld.long 0x00 14. " AR14 ,Add request on TX buffer 14" "No effect,Add request"
bitfld.long 0x00 13. " AR13 ,Add request on TX buffer 13" "No effect,Add request"
bitfld.long 0x00 12. " AR12 ,Add request on TX buffer 12" "No effect,Add request"
newline
bitfld.long 0x00 11. " AR11 ,Add request on TX buffer 11" "No effect,Add request"
bitfld.long 0x00 10. " AR10 ,Add request on TX buffer 10" "No effect,Add request"
bitfld.long 0x00 9. " AR9 ,Add request on TX buffer 9" "No effect,Add request"
bitfld.long 0x00 8. " AR8 ,Add request on TX buffer 8" "No effect,Add request"
newline
bitfld.long 0x00 7. " AR7 ,Add request on TX buffer 7" "No effect,Add request"
bitfld.long 0x00 6. " AR6 ,Add request on TX buffer 6" "No effect,Add request"
bitfld.long 0x00 5. " AR5 ,Add request on TX buffer 5" "No effect,Add request"
bitfld.long 0x00 4. " AR4 ,Add request on TX buffer 4" "No effect,Add request"
newline
bitfld.long 0x00 3. " AR3 ,Add request on TX buffer 3" "No effect,Add request"
bitfld.long 0x00 2. " AR2 ,Add request on TX buffer 2" "No effect,Add request"
bitfld.long 0x00 1. " AR1 ,Add request on TX buffer 1" "No effect,Add request"
bitfld.long 0x00 0. " AR0 ,Add request on TX buffer 0" "No effect,Add request"
line.long 0x04 "TXBCR,TX Buffer Cancellation Request Register"
bitfld.long 0x04 31. " CR31 ,Cancellation request on TX buffer 31" "Not pending,Pending"
bitfld.long 0x04 30. " CR30 ,Cancellation request on TX buffer 30" "Not pending,Pending"
bitfld.long 0x04 29. " CR29 ,Cancellation request on TX buffer 29" "Not pending,Pending"
bitfld.long 0x04 28. " CR28 ,Cancellation request on TX buffer 28" "Not pending,Pending"
newline
bitfld.long 0x04 27. " CR27 ,Cancellation request on TX buffer 27" "Not pending,Pending"
bitfld.long 0x04 26. " CR26 ,Cancellation request on TX buffer 26" "Not pending,Pending"
bitfld.long 0x04 25. " CR25 ,Cancellation request on TX buffer 25" "Not pending,Pending"
bitfld.long 0x04 24. " CR24 ,Cancellation request on TX buffer 24" "Not pending,Pending"
newline
bitfld.long 0x04 23. " CR23 ,Cancellation request on TX buffer 23" "Not pending,Pending"
bitfld.long 0x04 22. " CR22 ,Cancellation request on TX buffer 22" "Not pending,Pending"
bitfld.long 0x04 21. " CR21 ,Cancellation request on TX buffer 21" "Not pending,Pending"
bitfld.long 0x04 20. " CR20 ,Cancellation request on TX buffer 20" "Not pending,Pending"
newline
bitfld.long 0x04 19. " CR19 ,Cancellation request on TX buffer 19" "Not pending,Pending"
bitfld.long 0x04 18. " CR18 ,Cancellation request on TX buffer 18" "Not pending,Pending"
bitfld.long 0x04 17. " CR17 ,Cancellation request on TX buffer 17" "Not pending,Pending"
bitfld.long 0x04 16. " CR16 ,Cancellation request on TX buffer 16" "Not pending,Pending"
newline
bitfld.long 0x04 15. " CR15 ,Cancellation request on TX buffer 15" "Not pending,Pending"
bitfld.long 0x04 14. " CR14 ,Cancellation request on TX buffer 14" "Not pending,Pending"
bitfld.long 0x04 13. " CR13 ,Cancellation request on TX buffer 13" "Not pending,Pending"
bitfld.long 0x04 12. " CR12 ,Cancellation request on TX buffer 12" "Not pending,Pending"
newline
bitfld.long 0x04 11. " CR11 ,Cancellation request on TX buffer 11" "Not pending,Pending"
bitfld.long 0x04 10. " CR10 ,Cancellation request on TX buffer 10" "Not pending,Pending"
bitfld.long 0x04 9. " CR9 ,Cancellation request on TX buffer 9" "Not pending,Pending"
bitfld.long 0x04 8. " CR8 ,Cancellation request on TX buffer 8" "Not pending,Pending"
newline
bitfld.long 0x04 7. " CR7 ,Cancellation request on TX buffer 7" "Not pending,Pending"
bitfld.long 0x04 6. " CR6 ,Cancellation request on TX buffer 6" "Not pending,Pending"
bitfld.long 0x04 5. " CR5 ,Cancellation request on TX buffer 5" "Not pending,Pending"
bitfld.long 0x04 4. " CR4 ,Cancellation request on TX buffer 4" "Not pending,Pending"
newline
bitfld.long 0x04 3. " CR3 ,Cancellation request on TX buffer 3" "Not pending,Pending"
bitfld.long 0x04 2. " CR2 ,Cancellation request on TX buffer 2" "Not pending,Pending"
bitfld.long 0x04 1. " CR1 ,Cancellation request on TX buffer 1" "Not pending,Pending"
bitfld.long 0x04 0. " CR0 ,Cancellation request on TX buffer 0" "Not pending,Pending"
rgroup.long 0xD8++0x07
line.long 0x00 "TXBTO,TX Buffer Transmission Occurred"
bitfld.long 0x00 31. " TO31 ,Transmission occurred on TX buffer 31" "Not occurred,Occurred"
bitfld.long 0x00 30. " TO30 ,Transmission occurred on TX buffer 30" "Not occurred,Occurred"
bitfld.long 0x00 29. " TO29 ,Transmission occurred on TX buffer 29" "Not occurred,Occurred"
bitfld.long 0x00 28. " TO28 ,Transmission occurred on TX buffer 28" "Not occurred,Occurred"
newline
bitfld.long 0x00 27. " TO27 ,Transmission occurred on TX buffer 27" "Not occurred,Occurred"
bitfld.long 0x00 26. " TO26 ,Transmission occurred on TX buffer 26" "Not occurred,Occurred"
bitfld.long 0x00 25. " TO25 ,Transmission occurred on TX buffer 25" "Not occurred,Occurred"
bitfld.long 0x00 24. " TO24 ,Transmission occurred on TX buffer 24" "Not occurred,Occurred"
newline
bitfld.long 0x00 23. " TO23 ,Transmission occurred on TX buffer 23" "Not occurred,Occurred"
bitfld.long 0x00 22. " TO22 ,Transmission occurred on TX buffer 22" "Not occurred,Occurred"
bitfld.long 0x00 21. " TO21 ,Transmission occurred on TX buffer 21" "Not occurred,Occurred"
bitfld.long 0x00 20. " TO20 ,Transmission occurred on TX buffer 20" "Not occurred,Occurred"
newline
bitfld.long 0x00 19. " TO19 ,Transmission occurred on TX buffer 19" "Not occurred,Occurred"
bitfld.long 0x00 18. " TO18 ,Transmission occurred on TX buffer 18" "Not occurred,Occurred"
bitfld.long 0x00 17. " TO17 ,Transmission occurred on TX buffer 17" "Not occurred,Occurred"
bitfld.long 0x00 16. " TO16 ,Transmission occurred on TX buffer 16" "Not occurred,Occurred"
newline
bitfld.long 0x00 15. " TO15 ,Transmission occurred on TX buffer 15" "Not occurred,Occurred"
bitfld.long 0x00 14. " TO14 ,Transmission occurred on TX buffer 14" "Not occurred,Occurred"
bitfld.long 0x00 13. " TO13 ,Transmission occurred on TX buffer 13" "Not occurred,Occurred"
bitfld.long 0x00 12. " TO12 ,Transmission occurred on TX buffer 12" "Not occurred,Occurred"
newline
bitfld.long 0x00 11. " TO11 ,Transmission occurred on TX buffer 11" "Not occurred,Occurred"
bitfld.long 0x00 10. " TO10 ,Transmission occurred on TX buffer 10" "Not occurred,Occurred"
bitfld.long 0x00 9. " TO9 ,Transmission occurred on TX buffer 9" "Not occurred,Occurred"
bitfld.long 0x00 8. " TO8 ,Transmission occurred on TX buffer 8" "Not occurred,Occurred"
newline
bitfld.long 0x00 7. " TO7 ,Transmission occurred on TX buffer 7" "Not occurred,Occurred"
bitfld.long 0x00 6. " TO6 ,Transmission occurred on TX buffer 6" "Not occurred,Occurred"
bitfld.long 0x00 5. " TO5 ,Transmission occurred on TX buffer 5" "Not occurred,Occurred"
bitfld.long 0x00 4. " TO4 ,Transmission occurred on TX buffer 4" "Not occurred,Occurred"
newline
bitfld.long 0x00 3. " TO3 ,Transmission occurred on TX buffer 3" "Not occurred,Occurred"
bitfld.long 0x00 2. " TO2 ,Transmission occurred on TX buffer 2" "Not occurred,Occurred"
bitfld.long 0x00 1. " TO1 ,Transmission occurred on TX buffer 1" "Not occurred,Occurred"
bitfld.long 0x00 0. " TO0 ,Transmission occurred on TX buffer 0" "Not occurred,Occurred"
line.long 0x04 "TXBCF,TX Buffer Cancellation Finished"
bitfld.long 0x04 31. " CF31 ,Cancellation finished on TX buffer 31" "Not finished,Finished"
bitfld.long 0x04 30. " CF30 ,Cancellation finished on TX buffer 30" "Not finished,Finished"
bitfld.long 0x04 29. " CF29 ,Cancellation finished on TX buffer 29" "Not finished,Finished"
bitfld.long 0x04 28. " CF28 ,Cancellation finished on TX buffer 28" "Not finished,Finished"
newline
bitfld.long 0x04 27. " CF27 ,Cancellation finished on TX buffer 27" "Not finished,Finished"
bitfld.long 0x04 26. " CF26 ,Cancellation finished on TX buffer 26" "Not finished,Finished"
bitfld.long 0x04 25. " CF25 ,Cancellation finished on TX buffer 25" "Not finished,Finished"
bitfld.long 0x04 24. " CF24 ,Cancellation finished on TX buffer 24" "Not finished,Finished"
newline
bitfld.long 0x04 23. " CF23 ,Cancellation finished on TX buffer 23" "Not finished,Finished"
bitfld.long 0x04 22. " CF22 ,Cancellation finished on TX buffer 22" "Not finished,Finished"
bitfld.long 0x04 21. " CF21 ,Cancellation finished on TX buffer 21" "Not finished,Finished"
bitfld.long 0x04 20. " CF20 ,Cancellation finished on TX buffer 20" "Not finished,Finished"
newline
bitfld.long 0x04 19. " CF19 ,Cancellation finished on TX buffer 19" "Not finished,Finished"
bitfld.long 0x04 18. " CF18 ,Cancellation finished on TX buffer 18" "Not finished,Finished"
bitfld.long 0x04 17. " CF17 ,Cancellation finished on TX buffer 17" "Not finished,Finished"
bitfld.long 0x04 16. " CF16 ,Cancellation finished on TX buffer 16" "Not finished,Finished"
newline
bitfld.long 0x04 15. " CF15 ,Cancellation finished on TX buffer 15" "Not finished,Finished"
bitfld.long 0x04 14. " CF14 ,Cancellation finished on TX buffer 14" "Not finished,Finished"
bitfld.long 0x04 13. " CF13 ,Cancellation finished on TX buffer 13" "Not finished,Finished"
bitfld.long 0x04 12. " CF12 ,Cancellation finished on TX buffer 12" "Not finished,Finished"
newline
bitfld.long 0x04 11. " CF11 ,Cancellation finished on TX buffer 11" "Not finished,Finished"
bitfld.long 0x04 10. " CF10 ,Cancellation finished on TX buffer 10" "Not finished,Finished"
bitfld.long 0x04 9. " CF9 ,Cancellation finished on TX buffer 9" "Not finished,Finished"
bitfld.long 0x04 8. " CF8 ,Cancellation finished on TX buffer 8" "Not finished,Finished"
newline
bitfld.long 0x04 7. " CF7 ,Cancellation finished on TX buffer 7" "Not finished,Finished"
bitfld.long 0x04 6. " CF6 ,Cancellation finished on TX buffer 6" "Not finished,Finished"
bitfld.long 0x04 5. " CF5 ,Cancellation finished on TX buffer 5" "Not finished,Finished"
bitfld.long 0x04 4. " CF4 ,Cancellation finished on TX buffer 4" "Not finished,Finished"
newline
bitfld.long 0x04 3. " CF3 ,Cancellation finished on TX buffer 3" "Not finished,Finished"
bitfld.long 0x04 2. " CF2 ,Cancellation finished on TX buffer 2" "Not finished,Finished"
bitfld.long 0x04 1. " CF1 ,Cancellation finished on TX buffer 1" "Not finished,Finished"
bitfld.long 0x04 0. " CF0 ,Cancellation finished on TX buffer 0" "Not finished,Finished"
group.long 0xE0++0x07
line.long 0x00 "TXBTIE,TX Buffer Transmission Interrupt Enable Register"
bitfld.long 0x00 31. " TIE31 ,Transmission interrupt enable for TX buffer 31" "Disabled,Enabled"
bitfld.long 0x00 30. " TIE30 ,Transmission interrupt enable for TX buffer 30" "Disabled,Enabled"
bitfld.long 0x00 29. " TIE29 ,Transmission interrupt enable for TX buffer 29" "Disabled,Enabled"
bitfld.long 0x00 28. " TIE28 ,Transmission interrupt enable for TX buffer 28" "Disabled,Enabled"
newline
bitfld.long 0x00 27. " TIE27 ,Transmission interrupt enable for TX buffer 27" "Disabled,Enabled"
bitfld.long 0x00 26. " TIE26 ,Transmission interrupt enable for TX buffer 26" "Disabled,Enabled"
bitfld.long 0x00 25. " TIE25 ,Transmission interrupt enable for TX buffer 25" "Disabled,Enabled"
bitfld.long 0x00 24. " TIE24 ,Transmission interrupt enable for TX buffer 24" "Disabled,Enabled"
newline
bitfld.long 0x00 23. " TIE23 ,Transmission interrupt enable for TX buffer 23" "Disabled,Enabled"
bitfld.long 0x00 22. " TIE22 ,Transmission interrupt enable for TX buffer 22" "Disabled,Enabled"
bitfld.long 0x00 21. " TIE21 ,Transmission interrupt enable for TX buffer 21" "Disabled,Enabled"
bitfld.long 0x00 20. " TIE20 ,Transmission interrupt enable for TX buffer 20" "Disabled,Enabled"
newline
bitfld.long 0x00 19. " TIE19 ,Transmission interrupt enable for TX buffer 19" "Disabled,Enabled"
bitfld.long 0x00 18. " TIE18 ,Transmission interrupt enable for TX buffer 18" "Disabled,Enabled"
bitfld.long 0x00 17. " TIE17 ,Transmission interrupt enable for TX buffer 17" "Disabled,Enabled"
bitfld.long 0x00 16. " TIE16 ,Transmission interrupt enable for TX buffer 16" "Disabled,Enabled"
newline
bitfld.long 0x00 15. " TIE15 ,Transmission interrupt enable for TX buffer 15" "Disabled,Enabled"
bitfld.long 0x00 14. " TIE14 ,Transmission interrupt enable for TX buffer 14" "Disabled,Enabled"
bitfld.long 0x00 13. " TIE13 ,Transmission interrupt enable for TX buffer 13" "Disabled,Enabled"
bitfld.long 0x00 12. " TIE12 ,Transmission interrupt enable for TX buffer 12" "Disabled,Enabled"
newline
bitfld.long 0x00 11. " TIE11 ,Transmission interrupt enable for TX buffer 11" "Disabled,Enabled"
bitfld.long 0x00 10. " TIE10 ,Transmission interrupt enable for TX buffer 10" "Disabled,Enabled"
bitfld.long 0x00 9. " TIE9 ,Transmission interrupt enable for TX buffer 9" "Disabled,Enabled"
bitfld.long 0x00 8. " TIE8 ,Transmission interrupt enable for TX buffer 8" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " TIE7 ,Transmission interrupt enable for TX buffer 7" "Disabled,Enabled"
bitfld.long 0x00 6. " TIE6 ,Transmission interrupt enable for TX buffer 6" "Disabled,Enabled"
bitfld.long 0x00 5. " TIE5 ,Transmission interrupt enable for TX buffer 5" "Disabled,Enabled"
bitfld.long 0x00 4. " TIE4 ,Transmission interrupt enable for TX buffer 4" "Disabled,Enabled"
newline
bitfld.long 0x00 3. " TIE3 ,Transmission interrupt enable for TX buffer 3" "Disabled,Enabled"
bitfld.long 0x00 2. " TIE2 ,Transmission interrupt enable for TX buffer 2" "Disabled,Enabled"
bitfld.long 0x00 1. " TIE1 ,Transmission interrupt enable for TX buffer 1" "Disabled,Enabled"
bitfld.long 0x00 0. " TIE0 ,Transmission interrupt enable for TX buffer 0" "Disabled,Enabled"
line.long 0x04 "TXBCIE,TX Buffer Cancellation Finished Interrupt Enable Register"
bitfld.long 0x04 31. " CFIE31 ,Cancellation finished interrupt enable for TX buffer 31" "Disabled,Enabled"
bitfld.long 0x04 30. " CFIE30 ,Cancellation finished interrupt enable for TX buffer 30" "Disabled,Enabled"
bitfld.long 0x04 29. " CFIE29 ,Cancellation finished interrupt enable for TX buffer 29" "Disabled,Enabled"
bitfld.long 0x04 28. " CFIE28 ,Cancellation finished interrupt enable for TX buffer 28" "Disabled,Enabled"
newline
bitfld.long 0x04 27. " CFIE27 ,Cancellation finished interrupt enable for TX buffer 27" "Disabled,Enabled"
bitfld.long 0x04 26. " CFIE26 ,Cancellation finished interrupt enable for TX buffer 26" "Disabled,Enabled"
bitfld.long 0x04 25. " CFIE25 ,Cancellation finished interrupt enable for TX buffer 25" "Disabled,Enabled"
bitfld.long 0x04 24. " CFIE24 ,Cancellation finished interrupt enable for TX buffer 24" "Disabled,Enabled"
newline
bitfld.long 0x04 23. " CFIE23 ,Cancellation finished interrupt enable for TX buffer 23" "Disabled,Enabled"
bitfld.long 0x04 22. " CFIE22 ,Cancellation finished interrupt enable for TX buffer 22" "Disabled,Enabled"
bitfld.long 0x04 21. " CFIE21 ,Cancellation finished interrupt enable for TX buffer 21" "Disabled,Enabled"
bitfld.long 0x04 20. " CFIE20 ,Cancellation finished interrupt enable for TX buffer 20" "Disabled,Enabled"
newline
bitfld.long 0x04 19. " CFIE19 ,Cancellation finished interrupt enable for TX buffer 19" "Disabled,Enabled"
bitfld.long 0x04 18. " CFIE18 ,Cancellation finished interrupt enable for TX buffer 18" "Disabled,Enabled"
bitfld.long 0x04 17. " CFIE17 ,Cancellation finished interrupt enable for TX buffer 17" "Disabled,Enabled"
bitfld.long 0x04 16. " CFIE16 ,Cancellation finished interrupt enable for TX buffer 16" "Disabled,Enabled"
newline
bitfld.long 0x04 15. " CFIE15 ,Cancellation finished interrupt enable for TX buffer 15" "Disabled,Enabled"
bitfld.long 0x04 14. " CFIE14 ,Cancellation finished interrupt enable for TX buffer 14" "Disabled,Enabled"
bitfld.long 0x04 13. " CFIE13 ,Cancellation finished interrupt enable for TX buffer 13" "Disabled,Enabled"
bitfld.long 0x04 12. " CFIE12 ,Cancellation finished interrupt enable for TX buffer 12" "Disabled,Enabled"
newline
bitfld.long 0x04 11. " CFIE11 ,Cancellation finished interrupt enable for TX buffer 11" "Disabled,Enabled"
bitfld.long 0x04 10. " CFIE10 ,Cancellation finished interrupt enable for TX buffer 10" "Disabled,Enabled"
bitfld.long 0x04 9. " CFIE9 ,Cancellation finished interrupt enable for TX buffer 9" "Disabled,Enabled"
bitfld.long 0x04 8. " CFIE8 ,Cancellation finished interrupt enable for TX buffer 8" "Disabled,Enabled"
newline
bitfld.long 0x04 7. " CFIE7 ,Cancellation finished interrupt enable for TX buffer 7" "Disabled,Enabled"
bitfld.long 0x04 6. " CFIE6 ,Cancellation finished interrupt enable for TX buffer 6" "Disabled,Enabled"
bitfld.long 0x04 5. " CFIE5 ,Cancellation finished interrupt enable for TX buffer 5" "Disabled,Enabled"
bitfld.long 0x04 4. " CFIE4 ,Cancellation finished interrupt enable for TX buffer 4" "Disabled,Enabled"
newline
bitfld.long 0x04 3. " CFIE3 ,Cancellation finished interrupt enable for TX buffer 3" "Disabled,Enabled"
bitfld.long 0x04 2. " CFIE2 ,Cancellation finished interrupt enable for TX buffer 2" "Disabled,Enabled"
bitfld.long 0x04 1. " CFIE1 ,Cancellation finished interrupt enable for TX buffer 1" "Disabled,Enabled"
bitfld.long 0x04 0. " CFIE0 ,Cancellation finished interrupt enable for TX buffer 0" "Disabled,Enabled"
newline
if (((per.l(ad:0x42002000+0x018))&0x03)==0x03)
group.long 0xF0++0x03
line.long 0x00 "TXEFC,TX Event FIFO Configuration Register"
bitfld.long 0x00 24.--29. " EFWM ,Event FIFO watermark" "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,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled"
bitfld.long 0x00 16.--21. " EFS ,Event FIFO size" "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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " EFSA ,Event FIFO start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " EFSA ,Event FIFO start address"
endif
else
rgroup.long 0xF0++0x03
line.long 0x00 "TXEFC,TX Event FIFO Configuration Register"
bitfld.long 0x00 24.--29. " EFWM ,Event FIFO watermark" "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,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled,Disabled"
bitfld.long 0x00 16.--21. " EFS ,Event FIFO size" "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,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32"
sif (cpuis("BCM89103")||cpuis("BCM89107"))
hexmask.long.word 0x00 2.--15. 0x04 " EFSA ,Event FIFO start address"
else
hexmask.long.word 0x00 0.--15. 0x01 " EFSA ,Event FIFO start address"
endif
endif
rgroup.long 0xF4++0x03
line.long 0x00 "TXEFS,TX Event FIFO Status Register"
bitfld.long 0x00 25. " TEFL ,TX event FIFO element lost" "Not lost,Lost"
bitfld.long 0x00 24. " EFF ,Event FIFO full" "Not full,Full"
bitfld.long 0x00 16.--20. " EFP ,Event FIFO put index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
bitfld.long 0x00 8.--12. " EFGI ,Event FIFO get index" "0,1,2,3,4,5,6,7,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
sif (cpuis("BCM89103")||cpuis("BCM89107"))
bitfld.long 0x00 0.--5. " EFFL ,Event FIFO fill 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,?..."
else
bitfld.long 0x00 0.--4. " EFFL ,Event FIFO fill 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"
endif
group.long 0xF8++0x03
line.long 0x00 "TXEFA,TX Event FIFO Acknowledge Register"
bitfld.long 0x00 0.--4. " EFAI ,Event FIFO acknowledge index" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
width 0x0B
tree.end
tree.end
endif
tree.open "TC (Timer/Counter)"
tree "TC 0"
base ad:0x42003000
width 15.
if ((per.l(ad:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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:0x42003000+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 "TC 1"
base ad:0x42003400
width 15.
if ((per.l(ad:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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:0x42003400+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 "TC 2"
base ad:0x42003800
width 15.
if ((per.l(ad:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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:0x42003800+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 "TC 3"
base ad:0x42003C00
width 15.
if ((per.l(ad:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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:0x42003C00+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 "TC 4"
base ad:0x42004000
width 15.
if ((per.l(ad:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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:0x42004000+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 "TC 5"
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 "TC 6"
base ad:0x43000C00
width 15.
if ((per.l(ad:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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:0x43000C00+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 "TC 7"
base ad:0x43001000
width 15.
if ((per.l(ad:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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:0x43001000+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.end
sif cpuis("ATSAMC20*")&&(!cpuis("ATSAMC20N*"))
tree "TCC (Timer/Counter for Control Applications)"
base ad:0x42002400
width 15.
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
else
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "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. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textfld " "
newline
else
rbitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
endif
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
rbitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
newline
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "None,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "Disabled,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
endif
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set Register"
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"
newline
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot set/clear" "Continued,Stopped"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update set/clear" "Unlocked,Locked"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter direction set/clear" "Incremented,Decremented"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
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"
newline
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"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,WAVEB synchronization busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
else
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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 synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 5. " PATT ,Pattern synchronization busy" "Not busy,Busy"
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
width 15.
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
endif
newline
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"
newline
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"
else
rgroup.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
endif
newline
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"
newline
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"
endif
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
else
rgroup.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
endif
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
newline
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
newline
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continued"
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
endif
width 0x0B
newline
width 15.
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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"
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"
newline
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable fault B interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable fault A interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-recoverable debug fault interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " UFS ,Non-recoverable update fault interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error interrupt enable" "Disabled,Enabled"
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"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
else
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 15. " FAULT1 ,Non-recoverable fault 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-recoverable fault 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 13. " FAULTB ,Recoverable fault B interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable fault A interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 11. " DFS ,Non-recoverable debug fault interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 10. " UFS ,Non-recoverable update fault interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 3. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 2. " CNT ,Counter interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
else
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
endif
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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"
eventfld.long 0x08 14. " FAULT0 ,Non-recoverable fault 0 state" "No fault,Fault"
newline
eventfld.long 0x08 13. " FAULTB ,Recoverable fault B state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable fault A state" "No fault,Fault"
rbitfld.long 0x08 11. " FAULT1IN ,Non-recoverable fault 1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-recoverable fault 0 input" "No fault,Fault"
newline
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable fault B input" "No fault,Fault"
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable fault A input" "No fault,Fault"
eventfld.long 0x08 7. " PERBUFV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBUFV ,Waveform control buffer valid" "Not valid,Valid"
newline
eventfld.long 0x08 5. " PATTBUFV ,Pattern generator buffer valid" "Not valid,Valid"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 4. " SLAVE ,Slave mode enabled" "Disabled,Enabled"
newline
endif
eventfld.long 0x08 3. " DFS ,Debug fault state" "Not halted,Halted"
eventfld.long 0x08 2. " UFS ,Non-recoverable update fault state" "Not updated,Updated"
rbitfld.long 0x08 1. " IDX ,Ramp index" "Cycle A,Cycle B"
newline
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count value"
else
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count value"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
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"
newline
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "0,1"
newline
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
newline
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"
newline
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
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"
newline
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"
newline
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"
newline
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"
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
else
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
endif
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
else
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
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"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 Register"
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 Register"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare And Capture Register"
in
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
else
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
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"
newline
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"
newline
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
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"
newline
bitfld.word 0x00 4. " PGEB4 ,Pattern generator 4 output enable buffer" "Disabled,Enabled"
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"
newline
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
else
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
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"
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
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"
newline
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"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
endif
group.long 0x68++0x3
line.long 0x0 "WAVEB,Waveform Control Buffer Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
else
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
endif
bitfld.long 0x0 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x0 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x0 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
else
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
endif
width 0x0B
tree.end
else
tree.open "TCC (Timer/Counter for Control Applications)"
tree "TCC 0"
base ad:0x42002400
width 15.
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
else
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "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. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textfld " "
newline
else
rbitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
endif
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
rbitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
newline
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "None,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "Disabled,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
endif
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set Register"
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"
newline
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot set/clear" "Continued,Stopped"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update set/clear" "Unlocked,Locked"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter direction set/clear" "Incremented,Decremented"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
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"
newline
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"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,WAVEB synchronization busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
else
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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 synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 5. " PATT ,Pattern synchronization busy" "Not busy,Busy"
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
width 15.
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
endif
newline
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"
newline
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"
else
rgroup.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
endif
newline
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"
newline
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"
endif
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
else
rgroup.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
endif
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
newline
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
newline
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x04 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x04 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
bitfld.long 0x04 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 15. " NRV7 ,Non-recoverable state 7 output value" "Not set,Set"
bitfld.long 0x04 14. " NRV6 ,Non-recoverable state 6 output value" "Not set,Set"
bitfld.long 0x04 13. " NRV5 ,Non-recoverable state 5 output value" "Not set,Set"
bitfld.long 0x04 12. " NRV4 ,Non-recoverable state 4 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 7. " NRE7 ,Non-recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x04 6. " NRE6 ,Non-recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x04 5. " NRE5 ,Non-recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x04 4. " NRE4 ,Non-recoverable state 4 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continued"
if (((per.b(ad:0x42002400))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
endif
width 0x0B
newline
width 15.
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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"
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"
newline
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable fault B interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable fault A interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-recoverable debug fault interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " UFS ,Non-recoverable update fault interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error interrupt enable" "Disabled,Enabled"
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"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
else
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
endif
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 15. " FAULT1 ,Non-recoverable fault 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-recoverable fault 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 13. " FAULTB ,Recoverable fault B interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable fault A interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 11. " DFS ,Non-recoverable debug fault interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 10. " UFS ,Non-recoverable update fault interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 3. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 2. " CNT ,Counter interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
else
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
endif
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
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"
newline
endif
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"
eventfld.long 0x08 14. " FAULT0 ,Non-recoverable fault 0 state" "No fault,Fault"
newline
eventfld.long 0x08 13. " FAULTB ,Recoverable fault B state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable fault A state" "No fault,Fault"
rbitfld.long 0x08 11. " FAULT1IN ,Non-recoverable fault 1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-recoverable fault 0 input" "No fault,Fault"
newline
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable fault B input" "No fault,Fault"
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable fault A input" "No fault,Fault"
eventfld.long 0x08 7. " PERBUFV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBUFV ,Waveform control buffer valid" "Not valid,Valid"
newline
eventfld.long 0x08 5. " PATTBUFV ,Pattern generator buffer valid" "Not valid,Valid"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 4. " SLAVE ,Slave mode enabled" "Disabled,Enabled"
newline
endif
eventfld.long 0x08 3. " DFS ,Debug fault state" "Not halted,Halted"
eventfld.long 0x08 2. " UFS ,Non-recoverable update fault state" "Not updated,Updated"
rbitfld.long 0x08 1. " IDX ,Ramp index" "Cycle A,Cycle B"
newline
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count value"
else
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count value"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
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"
newline
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "0,1"
newline
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
newline
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"
newline
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
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"
newline
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"
newline
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"
newline
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"
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
else
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
endif
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
else
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
endif
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
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"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 Register"
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 Register"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare And Capture Register"
in
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
else
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
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"
newline
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"
newline
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
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"
newline
bitfld.word 0x00 4. " PGEB4 ,Pattern generator 4 output enable buffer" "Disabled,Enabled"
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"
newline
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
else
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
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"
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
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"
newline
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"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
endif
group.long 0x68++0x3
line.long 0x0 "WAVEB,Waveform Control Buffer Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
else
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
endif
bitfld.long 0x0 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x0 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x0 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
newline
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x80++0x03
line.long 0x00 "CCBUF4,Channel 4 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x84++0x03
line.long 0x00 "CCBUF5,Channel 5 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x88++0x03
line.long 0x00 "CCBUF6,Channel 6 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 0x8C++0x03
line.long 0x00 "CCBUF7,Channel 7 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
else
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel compare/capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
endif
width 0x0B
tree.end
tree "TCC 1"
base ad:0x42002800
width 15.
if (((per.b(ad:0x42002800))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
else
endif
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "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. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textfld " "
newline
else
endif
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
rbitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
newline
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "None,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "Disabled,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
endif
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set Register"
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"
newline
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot set/clear" "Continued,Stopped"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update set/clear" "Unlocked,Locked"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter direction set/clear" "Incremented,Decremented"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
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"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,WAVEB synchronization busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
else
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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 synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 5. " PATT ,Pattern synchronization busy" "Not busy,Busy"
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
width 15.
if (((per.b(ad:0x42002800))&0x02)==0x00)
group.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,?..."
endif
newline
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"
newline
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"
else
rgroup.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,?..."
endif
newline
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"
newline
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"
endif
if (((per.b(ad:0x42002800))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,?..."
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
else
rgroup.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,?..."
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
endif
if (((per.b(ad:0x42002800))&0x02)==0x00)
group.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x04 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 11. " NRV3 ,Non-recoverable state 3 output value" "Not set,Set"
bitfld.long 0x04 10. " NRV2 ,Non-recoverable state 2 output value" "Not set,Set"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 3. " NRE3 ,Non-recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x04 2. " NRE2 ,Non-recoverable state 2 output enable" "Disabled,Enabled"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continued"
if (((per.b(ad:0x42002800))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
endif
width 0x0B
newline
width 15.
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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"
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"
newline
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable fault B interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable fault A interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-recoverable debug fault interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " UFS ,Non-recoverable update fault interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error interrupt enable" "Disabled,Enabled"
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"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
else
endif
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 15. " FAULT1 ,Non-recoverable fault 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-recoverable fault 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 13. " FAULTB ,Recoverable fault B interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable fault A interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 11. " DFS ,Non-recoverable debug fault interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 10. " UFS ,Non-recoverable update fault interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 3. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 2. " CNT ,Counter interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
else
endif
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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"
eventfld.long 0x08 14. " FAULT0 ,Non-recoverable fault 0 state" "No fault,Fault"
newline
eventfld.long 0x08 13. " FAULTB ,Recoverable fault B state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable fault A state" "No fault,Fault"
rbitfld.long 0x08 11. " FAULT1IN ,Non-recoverable fault 1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-recoverable fault 0 input" "No fault,Fault"
newline
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable fault B input" "No fault,Fault"
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable fault A input" "No fault,Fault"
eventfld.long 0x08 7. " PERBUFV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBUFV ,Waveform control buffer valid" "Not valid,Valid"
newline
eventfld.long 0x08 5. " PATTBUFV ,Pattern generator buffer valid" "Not valid,Valid"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 4. " SLAVE ,Slave mode enabled" "Disabled,Enabled"
newline
endif
eventfld.long 0x08 3. " DFS ,Debug fault state" "Not halted,Halted"
eventfld.long 0x08 2. " UFS ,Non-recoverable update fault state" "Not updated,Updated"
rbitfld.long 0x08 1. " IDX ,Ramp index" "Cycle A,Cycle B"
newline
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
newline
if (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count value"
else
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count value"
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "0,1"
newline
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
newline
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
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"
newline
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"
newline
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"
newline
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"
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
else
endif
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
else
endif
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
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"
newline
if (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
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 Register"
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 Register"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare And Capture Register"
in
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
else
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
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"
newline
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
else
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
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"
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
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"
newline
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"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
endif
group.long 0x68++0x3
line.long 0x0 "WAVEB,Waveform Control Buffer Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
else
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
endif
bitfld.long 0x0 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x0 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x0 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
newline
if (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
if (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 2 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 2 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCBUF2,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 2 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 2 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 2 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 3 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 3 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCBUF3,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 3 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 3 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 3 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
else
if (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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 (((per.l(ad:0x42002800+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002800+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
endif
width 0x0B
tree.end
tree "TCC 2"
base ad:0x42002C00
width 15.
if (((per.b(ad:0x42002C00))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
newline
else
endif
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "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. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textfld " "
newline
else
endif
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
sif cpuis("ATSAMC20*")||cpuis("ATSAMC21N*")
newline
rbitfld.long 0x00 15. " MSYNC ,Master synchronization (only for TCC slave instance)" "Disabled,Enabled"
endif
newline
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
newline
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Counter prescaler factor" "/1,/2,/4,/8,/16,/64,/256,/1024"
newline
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,?..."
newline
bitfld.long 0x00 1. " ENABLE ,Enable peripheral" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
newline
group.byte 0x04++0x00
line.byte 0x00 "CTRLB_CLR,Control B Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
else
bitfld.byte 0x00 5.--7. " CMD ,Command" "None,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "Disabled,CLR Pending CMD,CLR Pending CMD,CLR Pending CMD"
endif
group.byte 0x05++0x00
line.byte 0x00 "CTRLB_SET,Control B Set Register"
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"
newline
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " ONESHOT_SET/CLR ,One-shot set/clear" "Continued,Stopped"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " LUPD_SET/CLR ,Lock update set/clear" "Unlocked,Locked"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DIR_SET/CLR ,Counter direction set/clear" "Incremented,Decremented"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
sif !cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*")
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"
newline
sif cpuis("ATSAMC20*")
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,WAVEB synchronization busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
else
bitfld.long 0x00 18. " PERB ,Period buffer busy" "Not busy,Busy"
bitfld.long 0x00 16. " PATTB ,Pattern buffer busy" "Not busy,Busy"
newline
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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 synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 5. " PATT ,Pattern synchronization busy" "Not busy,Busy"
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
width 15.
if (((per.b(ad:0x42002C00))&0x02)==0x00)
group.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,?..."
endif
newline
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"
newline
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"
else
rgroup.long 0xC++0x03
line.long 0x00 "FCTRLA,Fault Control A Register"
bitfld.long 0x00 24.--27. " FILTERVAL ,Fault A filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x00 16.--23. 1. " BLANKVAL ,Fault A blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault A capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault A capture channel" "CC0,CC1,?..."
endif
newline
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"
newline
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"
endif
if (((per.b(ad:0x42002C00))&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,?..."
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
else
rgroup.long 0x10++0x03
line.long 0x00 "FCTRLB,Fault Control B Register"
bitfld.long 0x00 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 0x00 16.--23. 1. " BLANKVAL ,Fault B blanking time"
bitfld.long 0x00 12.--14. " CAPTURE ,Fault B capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,CC2,CC3"
else
newline
bitfld.long 0x00 10.--11. " CHSEL ,Fault B capture channel" "CC0,CC1,?..."
endif
newline
bitfld.long 0x00 8.--9. " HALT ,Fault B halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,Fault B restart" "Disabled,Enabled"
bitfld.long 0x00 5.--6. " BLANK ,Fault B blanking mode" "Start,Rise,Fall,Both"
newline
bitfld.long 0x00 4. " QUAL ,Fault B qualification disable" "No,Yes"
bitfld.long 0x00 3. " KEEP ,Fault B keeper" "Rec. fault,TCC cycle"
bitfld.long 0x00 0.--1. " SRC ,Fault B source" "Disabled,Enabled,Invert,At fault"
endif
if (((per.b(ad:0x42002C00))&0x02)==0x00)
group.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x14++0x07
line.long 0x00 "WEXCTRL,Waveform Extension Configuration Register"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x00 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
else
endif
newline
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"
bitfld.long 0x00 0.--1. " OTMX ,Output matrix" "32103210,10101010,00000000,11111110"
line.long 0x04 "DRVCTRL,Driver Configuration Register"
bitfld.long 0x04 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 0x04 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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
else
newline
bitfld.long 0x04 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x04 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
newline
bitfld.long 0x04 9. " NRV1 ,Non-recoverable state 1 output value" "Not set,Set"
bitfld.long 0x04 8. " NRV0 ,Non-recoverable state 0 output value" "Not set,Set"
newline
bitfld.long 0x04 1. " NRE1 ,Non-recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x04 0. " NRE0 ,Non-recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continued"
if (((per.b(ad:0x42002C00))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
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"
newline
else
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"
newline
endif
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"
newline
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"
newline
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "Off,RETRIGGER,DIR,Stop,DEC,PPW,PWP,Fault"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "Off,RETRIGGER,COUNTEV,START,INC,COUNT,,Fault"
endif
width 0x0B
newline
width 15.
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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"
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"
newline
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable fault B interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable fault A interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-recoverable debug fault interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " UFS ,Non-recoverable update fault interrupt enable" "Disabled,Enabled"
newline
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " ERR ,Error interrupt enable" "Disabled,Enabled"
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"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "No interrupt,Interrupt"
newline
else
endif
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 15. " FAULT1 ,Non-recoverable fault 1 interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 14. " FAULT0 ,Non-recoverable fault 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 13. " FAULTB ,Recoverable fault B interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 12. " FAULTA ,Recoverable fault A interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 11. " DFS ,Non-recoverable debug fault interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 10. " UFS ,Non-recoverable update fault interrupt flag" "No interrupt,Interrupt"
newline
eventfld.long 0x04 3. " ERR ,Error interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 2. " CNT ,Counter interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 1. " TRG ,Retrigger interrupt flag" "No interrupt,Interrupt"
eventfld.long 0x04 0. " OVF ,Overflow interrupt flag" "No interrupt,Interrupt"
line.long 0x08 "STATUS,Status Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
newline
else
endif
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
else
endif
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"
eventfld.long 0x08 14. " FAULT0 ,Non-recoverable fault 0 state" "No fault,Fault"
newline
eventfld.long 0x08 13. " FAULTB ,Recoverable fault B state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable fault A state" "No fault,Fault"
rbitfld.long 0x08 11. " FAULT1IN ,Non-recoverable fault 1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-recoverable fault 0 input" "No fault,Fault"
newline
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable fault B input" "No fault,Fault"
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable fault A input" "No fault,Fault"
eventfld.long 0x08 7. " PERBUFV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBUFV ,Waveform control buffer valid" "Not valid,Valid"
newline
eventfld.long 0x08 5. " PATTBUFV ,Pattern generator buffer valid" "Not valid,Valid"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x08 4. " SLAVE ,Slave mode enabled" "Disabled,Enabled"
newline
endif
eventfld.long 0x08 3. " DFS ,Debug fault state" "Not halted,Halted"
eventfld.long 0x08 2. " UFS ,Non-recoverable update fault state" "Not updated,Updated"
rbitfld.long 0x08 1. " IDX ,Ramp index" "Cycle A,Cycle B"
newline
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
newline
group.long 0x34++0x03
line.long 0x00 "COUNT,Count Register"
hexmask.long.word 0x00 0.--15. 1. " COUNT ,Count value"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern Register"
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
newline
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
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"
newline
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
else
endif
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity (single-slope/dual-slope PWM waveform generation)" "DIR/~DIR,~DIR/DIR"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
newline
else
endif
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
newline
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
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"
newline
group.long 0x40++0x03
line.long 0x00 "PER,Period Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period value"
hgroup.long 0x44++0x03
hide.long 0x00 "CC0,Compare And Capture Register"
in
hgroup.long 0x48++0x03
hide.long 0x00 "CC1,Compare And Capture Register"
in
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
hgroup.long 0x4C++0x03
hide.long 0x00 "CC2,Compare And Capture Register"
in
hgroup.long 0x50++0x03
hide.long 0x00 "CC3,Compare And Capture Register"
in
else
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer Register"
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
newline
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
else
endif
group.long 0x68++0x3
line.long 0x0 "WAVEB,Waveform Control Buffer Register"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x0 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x0 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x0 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 19. " POLB3 ,Channel 3 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 18. " POLB2 ,Channel 2 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
bitfld.long 0x0 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
newline
else
bitfld.long 0x0 17. " POLB1 ,Channel 1 polarity buffer" "DIR/~DIR,~DIR/DIR"
bitfld.long 0x0 16. " POLB0 ,Channel 0 polarity buffer" "DIR/~DIR,~DIR/DIR"
newline
endif
bitfld.long 0x0 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x0 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
newline
bitfld.long 0x0 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x0 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,RAMP2C"
bitfld.long 0x0 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
newline
if (((per.l(ad:0x42002C00+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period buffer value"
elif (((per.l(ad:0x42002C00+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--3. " DITHERBUF ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002C00+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERBUF,Period Buffer Value Register"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--4. " DITHERBUF ,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 Value Register"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period buffer value"
bitfld.long 0x00 0.--5. " DITHERBUF ,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
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
else
group.long 0x70++0x03
line.long 0x00 "CCBUF0,Channel 0 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 0 compare/capture buffer value"
group.long 0x74++0x03
line.long 0x00 "CCBUF1,Channel 1 Compare/Capture Buffer Value Register"
hexmask.long.tbyte 0x00 0.--23. 1. " CCBUF ,Channel 1 compare/capture buffer value"
endif
width 0x0B
tree.end
tree.end
endif
tree "CCL (Configurable Custom Logic)"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
base ad:0x42005C00
width 10.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control Register"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Generic clock not required,Generic clock required"
bitfld.byte 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "Reset,No reset"
if (((per.l(ad:0x42005C00+0x8))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
rgroup.byte 0x4++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
else
group.byte 0x4++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
endif
if (((per.l(ad:0x42005C00+0x10))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
rgroup.byte 0x5++0x00
line.byte 0x00 "SEQCTRL1,Sequential Control 1 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
else
group.byte 0x5++0x00
line.byte 0x00 "SEQCTRL1,Sequential Control 1 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
endif
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 0 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x8))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
else
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 0 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 1 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0xC))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
else
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 1 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 2 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x10))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 2 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 3 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x14))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 3 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
endif
endif
width 0x0B
else
base ad:0x42005C00
width 10.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control Register"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Generic clock not required,Generic clock required"
bitfld.byte 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "Reset,No reset"
if (((per.l(ad:0x42005C00+0x8))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
rgroup.byte 0x4++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
else
group.byte 0x4++0x00
line.byte 0x00 "SEQCTRL0,Sequential Control 0 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
endif
if (((per.l(ad:0x42005C00+0x10))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
rgroup.byte 0x5++0x00
line.byte 0x00 "SEQCTRL1,Sequential Control 1 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
else
group.byte 0x5++0x00
line.byte 0x00 "SEQCTRL1,Sequential Control 1 Register"
bitfld.byte 0x00 0.--3. " SEQSEL ,Sequential selection" "Disabled,DFF,JK,LATCH,RS,?..."
endif
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 0 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x8))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
else
group.long 0x8++0x03
line.long 0x00 "LUTCTRL0,LUT Control 0 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 0 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 0 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 0 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 0 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 0 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 0 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 0 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 0 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 1 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0xC))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
else
group.long 0xC++0x03
line.long 0x00 "LUTCTRL1,LUT Control 1 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 1 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 1 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 1 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 1 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 1 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 1 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 2 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x10))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "LUTCTRL2,LUT Control 2 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 2 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 2 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 2 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 2 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 2 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 2 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 2 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 2 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 3 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x14))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "LUTCTRL3,LUT Control 3 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 3 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 3 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 3 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 3 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 3 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 3 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x18++0x03
line.long 0x00 "LUTCTRL4,LUT Control 4 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 4 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 4 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 4 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 4 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 4 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 4 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 4 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 4 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 4 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x18))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x18++0x03
line.long 0x00 "LUTCTRL4,LUT Control 4 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 4 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 4 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 4 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 4 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 4 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 4 enable" "Disabled,Enabled"
else
group.long 0x18++0x03
line.long 0x00 "LUTCTRL4,LUT Control 4 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 4 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 4 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 4 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 4 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 4 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 4 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 4 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x1C++0x03
line.long 0x00 "LUTCTRL5,LUT Control 5 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 5 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 5 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 5 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 5 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 5 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 5 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 5 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 5 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 5 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x1C))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x1C++0x03
line.long 0x00 "LUTCTRL5,LUT Control 5 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 5 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 5 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 5 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 5 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 5 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 5 enable" "Disabled,Enabled"
else
group.long 0x1C++0x03
line.long 0x00 "LUTCTRL5,LUT Control 5 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 5 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 5 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 5 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 5 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 5 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 5 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 5 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 5 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x20++0x03
line.long 0x00 "LUTCTRL6,LUT Control 6 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 6 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 6 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 6 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 6 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 6 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 6 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 6 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 6 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 6 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x20))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x20++0x03
line.long 0x00 "LUTCTRL6,LUT Control 6 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 6 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 6 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 6 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 6 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 6 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 6 enable" "Disabled,Enabled"
else
group.long 0x20++0x03
line.long 0x00 "LUTCTRL6,LUT Control 6 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 6 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 6 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 6 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 6 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 6 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 6 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 6 enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
group.long 0x24++0x03
line.long 0x00 "LUTCTRL7,LUT Control 7 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 7 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 7 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 7 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 7 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 7 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 7 input 2 source selection" "Mask,Feedback,Link,Event,IO,AC,TC,ALTTC,TCC,SERCOM,ALT2TC,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 7 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 7 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 7 enable" "Disabled,Enabled"
else
if (((per.l(ad:0x42005C00+0x24))&0x02)==0x02)||(((per.l(ad:0x42005C00))&0x02)==0x02)
group.long 0x24++0x03
line.long 0x00 "LUTCTRL7,LUT Control 7 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 7 truth table"
rbitfld.long 0x00 22. " LUTEO ,LUT 7 event output enable" "Disabled,Enabled"
rbitfld.long 0x00 21. " LUTEI ,LUT 7 event input enable" "Disabled,Enabled"
rbitfld.long 0x00 20. " INVEI ,LUT 7 inverted event input enable" "Not inverted,Inverted"
newline
rbitfld.long 0x00 16.--19. " INSEL2 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 12.--15. " INSEL1 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
rbitfld.long 0x00 8.--11. " INSEL0 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
rbitfld.long 0x00 7. " EDGESEL ,Inverted event input enable" "Disabled,Enabled"
rbitfld.long 0x00 4.--5. " FILTSEL ,LUT 7 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 7 enable" "Disabled,Enabled"
else
group.long 0x24++0x03
line.long 0x00 "LUTCTRL7,LUT Control 7 Register"
hexmask.long.byte 0x00 24.--31. 1. " TRUTH ,LUT 7 truth table"
bitfld.long 0x00 22. " LUTEO ,LUT 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 21. " LUTEI ,LUT 7 event input enable" "Disabled,Enabled"
bitfld.long 0x00 20. " INVEI ,LUT 7 inverted event input enable" "Not inverted,Inverted"
newline
bitfld.long 0x00 16.--19. " INSEL2 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 12.--15. " INSEL1 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
bitfld.long 0x00 8.--11. " INSEL0 ,LUT 7 input 2 source selection" "MASK,FEEDBACK,LINK,EVENT,IO,AC,TC,ALTTC,TCC,SERCOM,?..."
newline
bitfld.long 0x00 7. " EDGESEL ,LUT 7 edge selection" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " FILTSEL ,LUT 7 filter selection" "DISABLE,SYNCH,FILTER,?..."
bitfld.long 0x00 1. " ENABLE ,LUT 7 enable" "Disabled,Enabled"
endif
endif
width 0x0B
endif
tree.end
sif cpuis("ATSAMC20*")
tree "ADC (Analog-to-Digital Converter)"
base ad:0x42004400
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:0x42004400))&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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400))&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
else
tree.open "ADC (Analog-to-Digital Converter)"
tree "ADC 0"
base ad:0x42004400
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:0x42004400))&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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400))&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 "ADC 1"
base ad:0x42004800
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:0x42004400))&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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400+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:0x42004400))&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.end
endif
sif cpuis("ATSAMC21*")
tree "SDADC (Sigma-Delta Analog-to-Digital Converter)"
base ad:0x42004C00
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 7. " ONDEMAND ,On demand control" "Always on,On request"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Halted,Continued"
bitfld.byte 0x00 1. " ENABLE ,Enable SDADC" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "Not reset,Reset"
if (((per.b(ad:0x42004C00+0x00))&0x2)==0x02)
rgroup.byte 0x01++0x00
line.byte 0x00 "REFCTRL,Reference Control Register"
bitfld.byte 0x00 7. " ONREFBUF ,Enable reference buffer" "Disabled,Enabled"
bitfld.byte 0x00 4.--5. " REFRANGE ,Reference range" "Vref < 1.4V,1.4V < Vref < 2.4V,2.4 < Vref < 3.6V,Vref > 3.6V"
bitfld.byte 0x00 0.--1. " REFSEL ,Reference selection" "Internal bandgap,VREFB pin,DAC output,VDDANA"
rgroup.word 0x02++0x01
line.word 0x00 "CTRLB,Control B Register"
bitfld.word 0x00 12.--15. " SKPCNT ,Skip count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x00 8.--10. " OSR ,Over sampling ratio" "OSR64,OSR128,OSR256,OSR512,OSR1024,?..."
hexmask.word.byte 0x00 0.--7. 1. " PRESCALER ,Prescaler configuration"
rgroup.byte 0x04++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 "REFCTRL,Reference Control Register"
bitfld.byte 0x00 7. " ONREFBUF ,Enable reference buffer" "Disabled,Enabled"
bitfld.byte 0x00 4.--5. " REFRANGE ,Reference range" "Vref < 1.4V,1.4V < Vref < 2.4V,2.4 < Vref < 3.6V,Vref > 3.6V"
bitfld.byte 0x00 0.--1. " REFSEL ,Reference selection" "Internal bandgap,VREFB pin,DAC output,VDDANA"
group.word 0x02++0x01
line.word 0x00 "CTRLB,Control B Register"
bitfld.word 0x00 12.--15. " SKPCNT ,Skip count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x00 8.--10. " OSR ,Over sampling ratio" "OSR64,OSR128,OSR256,OSR512,OSR1024,?..."
hexmask.word.byte 0x00 0.--7. 1. " PRESCALER ,Prescaler configuration"
group.byte 0x04++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 0x06++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 0x08++0x00
line.byte 0x00 "SEQSTATUS,Sequence Status Register"
bitfld.byte 0x00 7. " SEQBUSY ,Sequence busy" "Not busy,Busy"
bitfld.byte 0x00 0.--3. " SEQSTATE ,Sequence state" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
group.byte 0x09++0x02
line.byte 0x00 "INPUTCTRL,Input Control Register"
bitfld.byte 0x00 0.--3. " MUXSEL ,ADC analog input selection" "AIN0,AIN1,AIN2,?..."
line.byte 0x01 "CTRLC,Control C Register"
bitfld.byte 0x01 0. " FREERUN ,Free running mode" "Single conversion,Free running"
line.byte 0x02 "WINCTRL,Window Monitor Control Register"
bitfld.byte 0x02 0.--2. " WINMODE ,Window monitor mode" "Disabled,Above,Below,Inside,Outside,?..."
newline
group.long 0x0C++0x0B
line.long 0x00 "WINLT,Window Monitor Lower Threshold Register"
hexmask.long.tbyte 0x00 0.--23. 1. " WINLT ,Window lower threshold"
line.long 0x04 "WINUT,Window Monitor Upper Threshold Register"
hexmask.long.tbyte 0x04 0.--23. 1. " WINUT ,Window upper threshold"
line.long 0x08 "OFFSETCORR,OFFSET Correction Register"
hexmask.long.tbyte 0x08 0.--23. 1. " OFFSETCORR ,Offset correction"
group.word 0x18++0x01
line.word 0x00 "GAINCORR,GAIN Correction Register"
hexmask.word 0x00 0.--13. 1. " GAINCORR ,Gain correction"
group.byte 0x1A++0x00
line.byte 0x00 "SHIFTCORR,SHIFT Correction Register"
bitfld.byte 0x00 0.--3. " SHIFTCORR ,Shift correction" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
wgroup.byte 0x1C++0x00
line.byte 0x00 "SWTRIG,Software Trigger Register"
bitfld.byte 0x00 1. " START ,SDADC start conversion" "No effect,Start"
bitfld.byte 0x00 0. " FLUSH ,SDADC conversion flush" "No effect,Flush"
rgroup.long 0x20++0x07
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 11. " ANACTRL ,Analog control synchronization busy" "Not busy,Busy"
bitfld.long 0x00 10. " SWTRIG ,Software trigger synchronization busy" "Not busy,Busy"
bitfld.long 0x00 9. " SHIFTCORR ,Shift correction synchronization busy" "Not busy,Busy"
bitfld.long 0x00 8. " GAINCORR ,Gain correction synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 7. " OFFSETCORR ,Offset correction synchronization busy" "Not busy,Busy"
bitfld.long 0x00 6. " WINUT ,Window monitor lower threshold synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " WINLT ,Window monitor upper threshold synchronization busy" "Not busy,Busy"
bitfld.long 0x00 4. " WINCTRL ,Window monitor control synchronization busy" "Not busy,Busy"
newline
bitfld.long 0x00 3. " MUXCTRL ,Mux control synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLC ,Control C synchronization busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,ENABLE synchronization busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,SWRST synchronization busy" "Not busy,Busy"
line.long 0x04 "RESULT,Result Register"
hexmask.long.tbyte 0x04 0.--23. 1. " RESULT ,Result conversion value"
group.byte 0x28++0x00
line.byte 0x00 "SEQCTRL,Sequence Control Register"
bitfld.byte 0x00 2. " SEQEN2 ,Enable positive input in the sequence (Mux2)" "Disabled,Enabled"
bitfld.byte 0x00 1. " SEQEN1 ,Enable positive input in the sequence (Mux1)" "Disabled,Enabled"
bitfld.byte 0x00 0. " SEQEN0 ,Enable positive input in the sequence (Mux0)" "Disabled,Enabled"
group.byte 0x02C++0x00
line.byte 0x00 "ANACTRL,Analog Control Register"
bitfld.byte 0x00 7. " BUFTEST ,Buffer test" "0,1"
bitfld.byte 0x00 6. " ONCHOP ,Chopper detected at SDADC input" "Not detected,Detected"
bitfld.byte 0x00 0.--4. " CTLSDADC ,SDADC bias current control" "0,1,2,3,4,5,6,7,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.byte 0x2E++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run (SDADC behavior when the CPU is halted by an external debugger)" "Halted,Continued"
width 0x0B
tree.end
endif
tree "AC (Analog Comparator)"
sif cpuis("ATSAMC20N*")
base ad:0x42005000
width 15.
group.byte 0x00++0x01
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
line.byte 0x01 "CTRLB,Control B Register"
bitfld.byte 0x01 3. " START3 ,Comparator 3 start comparison" "No effect,Started"
bitfld.byte 0x01 2. " START2 ,Comparator 2 start comparison" "No effect,Started"
bitfld.byte 0x01 1. " START1 ,Comparator 1 start comparison" "No effect,Started"
bitfld.byte 0x01 0. " START0 ,Comparator 0 start comparison" "No effect,Started"
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control Register"
bitfld.word 0x00 15. " INVEI3 ,Inverted event input enable 3" "Not inverted,Inverted"
bitfld.word 0x00 14. " INVEI2 ,Inverted event input enable 2" "Not inverted,Inverted"
bitfld.word 0x00 13. " INVEI1 ,Inverted event input enable 1" "Not inverted,Inverted"
bitfld.word 0x00 12. " INVEI0 ,Inverted event input enable 0" "Not inverted,Inverted"
newline
bitfld.word 0x00 11. " COMPEI3 ,Comparator 3 event input" "Disabled,Enabled"
bitfld.word 0x00 10. " COMPEI2 ,Comparator 2 event input" "Disabled,Enabled"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Disabled,Enabled"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Disabled,Enabled"
newline
bitfld.word 0x00 5. " WINEO1 ,Window 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.word 0x00 3. " COMPEO3 ,Comparator 3 event output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " COMPEO2 ,Comparator 2 event output enable" "Disabled,Enabled"
newline
endif
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " WIN1 ,Window 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " WIN0 ,Window 0 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " COMP3 ,Comparator 3 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " COMP2 ,Comparator 2 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " COMP1 ,Comparator 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " COMP0 ,Comparator 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 5. " WIN1 ,Window 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " WIN0 ,Window 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.byte 0x01 3. " COMP3 ,Comparator 3 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " COMP2 ,Comparator 2 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " COMP1 ,Comparator 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " COMP0 ,Comparator 0 interrupt flag" "No interrupt,Interrupt"
if (((per.l(ad:0x42005000+0x08))&0x0F)==0x00)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x01)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x02)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x03)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x04)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x05)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x06)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x07)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x08)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x09)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0A)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0B)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0C)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0D)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0E)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0F)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
endif
newline
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSB,Status B Register"
bitfld.byte 0x00 3. " READY3 ,Comparator 3 ready" "Not ready,Ready"
bitfld.byte 0x00 2. " READY2 ,Comparator 2 ready" "Not ready,Ready"
bitfld.byte 0x00 1. " READY1 ,Comparator 1 ready" "Not ready,Ready"
bitfld.byte 0x00 0. " READY0 ,Comparator 0 ready" "Not ready,Ready"
group.byte 0x09++0x01
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continues"
line.byte 0x01 "WINCTRL,Window Control Register"
bitfld.byte 0x01 5.--6. " WINTSEL1 ,Window 1 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 4. " WEN1 ,Window 1 mode enable" "Disabled,Enabled"
bitfld.byte 0x01 1.--2. " WINTSEL0 ,Window 0 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 0. " WEN0 ,Window 0 mode enable" "Disabled,Enabled"
newline
group.byte 0xC++0x00
line.byte 0x00 "SCALER0,Scaler 0 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xD++0x00
line.byte 0x00 "SCALER1,Scaler 1 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
newline
if (((per.l(ad:0x42005000+0x10))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
if (((per.l(ad:0x42005000+0x14))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
newline
rgroup.long 0x20++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 6. " COMPCTRL3 ,COMPCTRL3 synchronization busy" "Cleared,Set"
bitfld.long 0x00 5. " COMPCTRL2 ,COMPCTRL2 synchronization busy" "Cleared,Set"
bitfld.long 0x00 4. " COMPCTRL1 ,COMPCTRL1 synchronization busy" "Cleared,Set"
bitfld.long 0x00 3. " COMPCTRL0 ,COMPCTRL0 synchronization busy" "Cleared,Set"
newline
bitfld.long 0x00 2. " WINCTRL ,WINCTRL synchronization busy" "Cleared,Set"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy" "Cleared,Set"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Cleared,Set"
width 0x0B
elif cpuis("ATSAMC21N*")
base ad:0x42005000
width 15.
group.byte 0x00++0x01
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
line.byte 0x01 "CTRLB,Control B Register"
bitfld.byte 0x01 3. " START3 ,Comparator 3 start comparison" "No effect,Started"
bitfld.byte 0x01 2. " START2 ,Comparator 2 start comparison" "No effect,Started"
bitfld.byte 0x01 1. " START1 ,Comparator 1 start comparison" "No effect,Started"
bitfld.byte 0x01 0. " START0 ,Comparator 0 start comparison" "No effect,Started"
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control Register"
bitfld.word 0x00 15. " INVEI3 ,Inverted event input enable 3" "Not inverted,Inverted"
bitfld.word 0x00 14. " INVEI2 ,Inverted event input enable 2" "Not inverted,Inverted"
bitfld.word 0x00 13. " INVEI1 ,Inverted event input enable 1" "Not inverted,Inverted"
bitfld.word 0x00 12. " INVEI0 ,Inverted event input enable 0" "Not inverted,Inverted"
newline
bitfld.word 0x00 11. " COMPEI3 ,Comparator 3 event input" "Disabled,Enabled"
bitfld.word 0x00 10. " COMPEI2 ,Comparator 2 event input" "Disabled,Enabled"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Disabled,Enabled"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Disabled,Enabled"
newline
bitfld.word 0x00 5. " WINEO1 ,Window 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.word 0x00 3. " COMPEO3 ,Comparator 3 event output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " COMPEO2 ,Comparator 2 event output enable" "Disabled,Enabled"
newline
endif
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " WIN1 ,Window 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " WIN0 ,Window 0 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " COMP3 ,Comparator 3 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " COMP2 ,Comparator 2 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " COMP1 ,Comparator 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " COMP0 ,Comparator 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 5. " WIN1 ,Window 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " WIN0 ,Window 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.byte 0x01 3. " COMP3 ,Comparator 3 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " COMP2 ,Comparator 2 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " COMP1 ,Comparator 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " COMP0 ,Comparator 0 interrupt flag" "No interrupt,Interrupt"
if (((per.l(ad:0x42005000+0x08))&0x0F)==0x00)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x01)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x02)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x03)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x04)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x05)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x06)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x07)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x08)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x09)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0A)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0B)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0C)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0D)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0E)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0F)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
endif
newline
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSB,Status B Register"
bitfld.byte 0x00 3. " READY3 ,Comparator 3 ready" "Not ready,Ready"
bitfld.byte 0x00 2. " READY2 ,Comparator 2 ready" "Not ready,Ready"
bitfld.byte 0x00 1. " READY1 ,Comparator 1 ready" "Not ready,Ready"
bitfld.byte 0x00 0. " READY0 ,Comparator 0 ready" "Not ready,Ready"
group.byte 0x09++0x01
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continues"
line.byte 0x01 "WINCTRL,Window Control Register"
bitfld.byte 0x01 5.--6. " WINTSEL1 ,Window 1 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 4. " WEN1 ,Window 1 mode enable" "Disabled,Enabled"
bitfld.byte 0x01 1.--2. " WINTSEL0 ,Window 0 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 0. " WEN0 ,Window 0 mode enable" "Disabled,Enabled"
newline
group.byte 0xC++0x00
line.byte 0x00 "SCALER0,Scaler 0 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xD++0x00
line.byte 0x00 "SCALER1,Scaler 1 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xE++0x00
line.byte 0x00 "SCALER2,Scaler 2 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xF++0x00
line.byte 0x00 "SCALER3,Scaler 3 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
newline
if (((per.l(ad:0x42005000+0x10))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
if (((per.l(ad:0x42005000+0x14))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
if (((per.l(ad:0x42005000+0x18))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x18))&0x04)==0x00)
group.long 0x18++0x03
line.long 0x00 "COMPCTRL2,Comparator Control 2 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x18++0x03
line.long 0x00 "COMPCTRL2,Comparator Control 2 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x18))&0x04)==0x00)
group.long 0x18++0x03
line.long 0x00 "COMPCTRL2,Comparator Control 2 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x18++0x03
line.long 0x00 "COMPCTRL2,Comparator Control 2 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
if (((per.l(ad:0x42005000+0x1C))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x1C))&0x04)==0x00)
group.long 0x1C++0x03
line.long 0x00 "COMPCTRL3,Comparator Control 3 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x1C++0x03
line.long 0x00 "COMPCTRL3,Comparator Control 3 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x1C))&0x04)==0x00)
group.long 0x1C++0x03
line.long 0x00 "COMPCTRL3,Comparator Control 3 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x1C++0x03
line.long 0x00 "COMPCTRL3,Comparator Control 3 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
newline
rgroup.long 0x20++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 6. " COMPCTRL3 ,COMPCTRL3 synchronization busy" "Cleared,Set"
bitfld.long 0x00 5. " COMPCTRL2 ,COMPCTRL2 synchronization busy" "Cleared,Set"
bitfld.long 0x00 4. " COMPCTRL1 ,COMPCTRL1 synchronization busy" "Cleared,Set"
bitfld.long 0x00 3. " COMPCTRL0 ,COMPCTRL0 synchronization busy" "Cleared,Set"
newline
bitfld.long 0x00 2. " WINCTRL ,WINCTRL synchronization busy" "Cleared,Set"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy" "Cleared,Set"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Cleared,Set"
width 0x0B
elif cpuis("ATSAMC20*")
base ad:0x42005000
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:0x42005000+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:0x42005000+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:0x42005000+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:0x42005000+0x10))&0x02)==0x00)
if (((d.l(ad:0x42005000+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:0x42005000+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:0x42005000+0x14))&0x02)==0x00)
if (((d.l(ad:0x42005000+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:0x42005000+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
else
base ad:0x42005000
width 15.
group.byte 0x00++0x01
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
line.byte 0x01 "CTRLB,Control B Register"
bitfld.byte 0x01 3. " START3 ,Comparator 3 start comparison" "No effect,Started"
bitfld.byte 0x01 2. " START2 ,Comparator 2 start comparison" "No effect,Started"
bitfld.byte 0x01 1. " START1 ,Comparator 1 start comparison" "No effect,Started"
bitfld.byte 0x01 0. " START0 ,Comparator 0 start comparison" "No effect,Started"
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control Register"
bitfld.word 0x00 15. " INVEI3 ,Inverted event input enable 3" "Not inverted,Inverted"
bitfld.word 0x00 14. " INVEI2 ,Inverted event input enable 2" "Not inverted,Inverted"
bitfld.word 0x00 13. " INVEI1 ,Inverted event input enable 1" "Not inverted,Inverted"
bitfld.word 0x00 12. " INVEI0 ,Inverted event input enable 0" "Not inverted,Inverted"
newline
bitfld.word 0x00 11. " COMPEI3 ,Comparator 3 event input" "Disabled,Enabled"
bitfld.word 0x00 10. " COMPEI2 ,Comparator 2 event input" "Disabled,Enabled"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Disabled,Enabled"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Disabled,Enabled"
newline
bitfld.word 0x00 5. " WINEO1 ,Window 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.word 0x00 3. " COMPEO3 ,Comparator 3 event output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " COMPEO2 ,Comparator 2 event output enable" "Disabled,Enabled"
newline
endif
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " WIN1 ,Window 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " WIN0 ,Window 0 interrupt enable" "Disabled,Enabled"
newline
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " COMP3 ,Comparator 3 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " COMP2 ,Comparator 2 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " COMP1 ,Comparator 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " COMP0 ,Comparator 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 5. " WIN1 ,Window 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 4. " WIN0 ,Window 0 interrupt flag" "No interrupt,Interrupt"
newline
eventfld.byte 0x01 3. " COMP3 ,Comparator 3 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " COMP2 ,Comparator 2 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " COMP1 ,Comparator 1 interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " COMP0 ,Comparator 0 interrupt flag" "No interrupt,Interrupt"
if (((per.l(ad:0x42005000+0x08))&0x0F)==0x00)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x01)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x02)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x03)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x04)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x05)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x06)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x07)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
newline
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x08)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x09)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0A)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0B)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0C)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0D)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
newline
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0E)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
elif (((per.l(ad:0x42005000+0x08))&0x0F)==0x0F)
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUSA,Status A Register"
bitfld.byte 0x00 6.--7. " WSTATE1 ,Window 1 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
newline
bitfld.byte 0x00 3. " STATE3 ,Comparator 3 current state" "Low,High"
bitfld.byte 0x00 2. " STATE2 ,Comparator 2 current state" "Low,High"
newline
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "Low,High"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "Low,High"
endif
newline
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSB,Status B Register"
bitfld.byte 0x00 3. " READY3 ,Comparator 3 ready" "Not ready,Ready"
bitfld.byte 0x00 2. " READY2 ,Comparator 2 ready" "Not ready,Ready"
bitfld.byte 0x00 1. " READY1 ,Comparator 1 ready" "Not ready,Ready"
bitfld.byte 0x00 0. " READY0 ,Comparator 0 ready" "Not ready,Ready"
group.byte 0x09++0x01
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continues"
line.byte 0x01 "WINCTRL,Window Control Register"
bitfld.byte 0x01 5.--6. " WINTSEL1 ,Window 1 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 4. " WEN1 ,Window 1 mode enable" "Disabled,Enabled"
bitfld.byte 0x01 1.--2. " WINTSEL0 ,Window 0 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x01 0. " WEN0 ,Window 0 mode enable" "Disabled,Enabled"
newline
group.byte 0xC++0x00
line.byte 0x00 "SCALER0,Scaler 0 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xD++0x00
line.byte 0x00 "SCALER1,Scaler 1 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xE++0x00
line.byte 0x00 "SCALER2,Scaler 2 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
group.byte 0xF++0x00
line.byte 0x00 "SCALER3,Scaler 3 Register"
bitfld.byte 0x00 0.--5. " VALUE ,Scaler 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"
newline
if (((per.l(ad:0x42005000+0x10))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x10))&0x04)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
if (((per.l(ad:0x42005000+0x14))&0x02)==0x00)
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
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 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
bitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
bitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
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 comparator" "Disabled,Enabled"
endif
else
if (((per.l(ad:0x42005000+0x14))&0x04)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 19. " HYSTEN ,Hysteresis enable" "Disabled,Enabled"
newline
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1 Register"
rbitfld.long 0x00 28.--29. " OUT ,Output" "Off,ASYNC,SYNC,?..."
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "Off,MAJ3,MAJ5,?..."
newline
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "Low,,,High"
newline
else
rbitfld.long 0x00 16.--17. " SPEED ,Speed selection" "LOW,MEDLOW,MEDHIGH,HIGH"
newline
endif
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "Not inverted,Inverted"
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"
newline
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Continues"
newline
else
rbitfld.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 comparator" "Disabled,Enabled"
endif
endif
newline
rgroup.long 0x20++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 6. " COMPCTRL3 ,COMPCTRL3 synchronization busy" "Cleared,Set"
bitfld.long 0x00 5. " COMPCTRL2 ,COMPCTRL2 synchronization busy" "Cleared,Set"
bitfld.long 0x00 4. " COMPCTRL1 ,COMPCTRL1 synchronization busy" "Cleared,Set"
bitfld.long 0x00 3. " COMPCTRL0 ,COMPCTRL0 synchronization busy" "Cleared,Set"
newline
bitfld.long 0x00 2. " WINCTRL ,WINCTRL synchronization busy" "Cleared,Set"
bitfld.long 0x00 1. " ENABLE ,Enable synchronization busy" "Cleared,Set"
bitfld.long 0x00 0. " SWRST ,Software reset synchronization busy" "Cleared,Set"
width 0x0B
endif
tree.end
sif cpuis("ATSAMC21*")
tree "DAC (Digital-to-Analog Converter)"
base ad:0x42005400
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable DAC controller" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
sif cpuis("ATSAMC21N*")
if (((per.b(ad:0x42005400))&0x02)==0x00)
group.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 6.--7. " REFSEL ,Reference selection" "INTREF,VDDANA,VREFA,?..."
bitfld.byte 0x00 5. " DITHER ,Dithering mode" "Disabled,Enabled"
bitfld.byte 0x00 3. " VPD ,Voltage pump disable" "No,Yes"
newline
bitfld.byte 0x00 2. " LEFTADJ ,Left-adjusted data" "Right-adjusted,Left-adjusted"
bitfld.byte 0x00 1. " IOEN ,Internal output enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " EOEN ,External output enable" "Disabled,Enabled"
else
rgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 6.--7. " REFSEL ,Reference selection" "INTREF,VDDANA,VREFA,?..."
bitfld.byte 0x00 5. " DITHER ,Dithering mode" "Disabled,Enabled"
bitfld.byte 0x00 3. " VPD ,Voltage pump disable" "No,Yes"
newline
bitfld.byte 0x00 2. " LEFTADJ ,Left-adjusted data" "Right-adjusted,Left-adjusted"
bitfld.byte 0x00 1. " IOEN ,Internal output enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " EOEN ,External output enable" "Disabled,Enabled"
endif
else
group.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 6.--7. " REFSEL ,Reference selection" "VREF,VDDANA,VREFP,?..."
bitfld.byte 0x00 5. " DITHER ,Dithering mode" "Disabled,Enabled"
bitfld.byte 0x00 3. " VPD ,Voltage pump disable" "No,Yes"
newline
bitfld.byte 0x00 2. " LEFTADJ ,Left-adjusted data" "Right-adjusted,Left-adjusted"
endif
group.byte 0x02++0x00
line.byte 0x00 "EVCTRL,Event Control Register"
bitfld.byte 0x00 2. " INVEI ,Enable inversion data buffer empty event output" "Rising edge,Falling edge"
bitfld.byte 0x00 1. " EMPTYEO ,Data buffer empty event output" "Disabled,Enabled"
bitfld.byte 0x00 0. " STARTEI ,Start conversion event input" "Not triggered,Triggered"
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " EMPTY ,Data buffer empty interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " UNDERRUN ,Underrun interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 1. " EMPTY ,Data buffer empty interrupt flag" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " UNDERRUN ,Underrun interrupt flag" "No interrupt,Interrupt"
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUS,Status Register"
bitfld.byte 0x00 0. " READY ,Synchronization busy status" "Not ready,Ready"
newline
if (((per.b(ad:0x42005400+0x01))&0x20)==0x00)
if ((per.b(ad:0x42005400+0x01)&0x04)==0x00)
group.word 0x08++0x01
line.word 0x00 "DATA,Data Register"
hexmask.word 0x00 0.--9. 1. " DATA ,Data value to be converted"
else
group.word 0x08++0x01
line.word 0x00 "DATA,Data Register"
hexmask.word 0x00 6.--15. 1. " DATA ,Data value to be converted"
endif
else
if ((per.b(ad:0x42005400+0x01)&0x04)==0x00)
group.word 0x08++0x01
line.word 0x00 "DATA,Data Register"
hexmask.word 0x00 0.--13. 1. " DATA ,Data value to be converted"
else
group.word 0x08++0x01
line.word 0x00 "DATA,Data Register"
hexmask.word 0x00 2.--15. 1. " DATA ,Data value to be converted"
endif
endif
sif cpuis("ATSAMC21N*")
wgroup.word 0x0C++0x01
line.word 0x00 "DATABUF,Data Buffer Register"
else
group.word 0x0C++0x01
line.word 0x00 "DATABUF,Data Buffer Register"
endif
newline
rgroup.long 0x10++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 3. " DATABUF ,Data buffer synchronized access ongoing" "Completed,Ongoing"
bitfld.long 0x00 2. " DATA ,Data synchronized access ongoing" "Completed,Ongoing"
bitfld.long 0x00 1. " ENABLE ,DAC enable status synchronized access ongoing" "Completed,Ongoing"
bitfld.long 0x00 0. " SWRST ,Software reset synchronized access ongoing" "Completed,Ongoing"
newline
group.byte 0x18++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continues"
width 0x0B
tree.end
tree "TSENS (Temperature Sensor)"
base ad:0x40003000
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby sleep mode" "Halted,Run"
bitfld.byte 0x00 1. " ENABLE ,TSENS enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRTS ,Software reset" "No reset,Reset"
wgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 0. " START ,Start measurement" "No effect,Start"
if (((per.b(ad:0x40003000+0x00))&0x02)==0x00)
group.byte 0x02++0x01
line.byte 0x00 "CTRLC,Control C Register"
bitfld.byte 0x00 4. " FREERUN ,Free running measurement" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " WINMODE ,Window monitor mode" "Disable,Above,Below,Inside,Outside,HYST_ABOVE,HYST_BELOW,?..."
line.byte 0x01 "EVCTRL,Event Control Register"
bitfld.byte 0x01 2. " WINEO ,Window monitor event out" "Disabled,Enabled"
bitfld.byte 0x01 1. " STARTINV ,Start conversion event invert enable" "Not inverted,Inverted"
bitfld.byte 0x01 0. " STARTEI ,Start conversion event input enable" "Disabled,Enabled"
else
rgroup.byte 0x02++0x01
line.byte 0x00 "CTRLC,Control C Register"
bitfld.byte 0x00 4. " FREERUN ,Free running measurement" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " WINMODE ,Window monitor mode" "Disable,Above,Below,Inside,Outside,HYST_ABOVE,HYST_BELOW,?..."
line.byte 0x01 "EVCTRL,Event Control Register"
bitfld.byte 0x01 2. " WINEO ,Window monitor event out" "Disabled,Enabled"
bitfld.byte 0x01 1. " STARTINV ,Start conversion event invert enable" "Not inverted,Inverted"
bitfld.byte 0x01 0. " STARTEI ,Start conversion event input enable" "Disabled,Enabled"
endif
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
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 3. " OVF ,Overflow interrupt status and clear" "No interrupt,Interrupt"
eventfld.byte 0x01 2. " WINMON ,Window monitor interrupt status and clear" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " OVERRUN ,Overrun interrupt status and clear" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " RESRDY ,Result ready interrupt status and clear" "No interrupt,Interrupt"
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUS,Status Register"
bitfld.byte 0x00 0. " OVF ,Result overflow" "No overflow,Overflow"
rgroup.long 0x08++0x07
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 1. " ENABLE ,Enable busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software reset busy" "Not busy,Busy"
line.long 0x04 "VALUE,Measurement Value Register"
hexmask.long.tbyte 0x04 0.--23. 1. " VALUE ,Measurement value"
if (((per.b(ad:0x40003000+0x00))&0x02)==0x00)
group.long 0x10++0x13
line.long 0x00 "WINLT,Window Monitor Lower Threshold Register"
hexmask.long.tbyte 0x00 0.--23. 1. " WINLT ,Window lower threshold"
line.long 0x04 "WINUT,Window Monitor Upper Threshold Register"
hexmask.long.tbyte 0x04 0.--23. 1. " WINUT ,Window upper threshold"
line.long 0x08 "GAIN,Time Amplifier Gain Register"
hexmask.long.tbyte 0x08 0.--23. 1. " GAIN ,Time amplifier gain"
line.long 0x0C "OFFSET,Offset Correction Register"
hexmask.long.tbyte 0x0C 0.--23. 1. " OFFSETC ,Offset correction"
line.long 0x10 "CAL,Calibration Register"
bitfld.long 0x10 8.--13. " TCAL ,Temperature 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,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 0x10 0.--5. " FCAL ,Frequency 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,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"
else
rgroup.long 0x10++0x13
line.long 0x00 "WINLT,Window Monitor Lower Threshold Register"
hexmask.long.tbyte 0x00 0.--23. 1. " WINLT ,Window lower threshold"
line.long 0x04 "WINUT,Window Monitor Upper Threshold Register"
hexmask.long.tbyte 0x04 0.--23. 1. " WINUT ,Window upper threshold"
line.long 0x08 "GAIN,Time Amplifier Gain Register"
hexmask.long.tbyte 0x08 0.--23. 1. " GAIN ,Time amplifier gain"
line.long 0x0C "OFFSET,Offset Correction Register"
hexmask.long.tbyte 0x0C 0.--23. 1. " OFFSETC ,Offset correction"
line.long 0x10 "CAL,Calibration Register"
bitfld.long 0x10 8.--13. " TCAL ,Temperature 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,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 0x10 0.--5. " FCAL ,Frequency 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,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.byte 0x24++0x00
line.byte 0x00 "DBGCTRL,Debug Control Register"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continued"
width 0x0B
tree.end
endif
tree "FREQM (Frequency Meter)"
base ad:0x40002C00
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A Register"
bitfld.byte 0x00 1. " ENABLE ,Peripheral enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
wgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B Register"
bitfld.byte 0x00 0. " START ,Start measurement" "No effect,Start"
if (((per.b(ad:0x40002C00))&0x02)==0x00)
group.word 0x02++0x01
line.word 0x00 "CFGA,Configuration A Register"
sif (cpuis("ATSAMC20N17A")||cpuis("ATSAMC20N18A")||cpuis("ATSAMC21N17A")||cpuis("ATSAMC21N18A"))
bitfld.word 0x00 15. " DIVREF ,Divide reference clock" "/1,/8"
newline
endif
hexmask.word.byte 0x00 0.--7. 1. " REFNUM ,Number of reference clock cycles"
else
rgroup.word 0x02++0x01
line.word 0x00 "CFGA,Configuration A Register"
sif (cpuis("ATSAMC20N17A")||cpuis("ATSAMC20N18A")||cpuis("ATSAMC21N17A")||cpuis("ATSAMC21N18A"))
bitfld.word 0x00 15. " DIVREF ,Divide reference clock" "/1,/8"
newline
endif
hexmask.word.byte 0x00 0.--7. 1. " REFNUM ,Number of reference clock cycles"
endif
group.byte 0x09++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear Register"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " DONE ,Measurement done interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear Register"
eventfld.byte 0x01 0. " DONE ,Measurement done" "No interrupt,Interrupt"
line.byte 0x02 "STATUS,Status Register"
eventfld.byte 0x02 1. " OVF ,Sticky count value overflow" "No overflow,Overflow"
rbitfld.byte 0x02 0. " BUSY ,FREQM status" "Idle,Busy"
rgroup.long 0x0C++0x07
line.long 0x00 "SYNCBUSY,Synchronization Busy Register"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Synchronization busy" "Idle,Busy"
line.long 0x04 "VALUE,Value Register"
hexmask.long.tbyte 0x04 0.--23. 1. " VALUE ,Measurement value"
width 0x0B
tree.end
newline