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

13259 lines
870 KiB
Plaintext

; --------------------------------------------------------------------------------
; @Title: ATSAMHA1G On-Chip Peripherals
; @Props: Released
; @Author: PCC, KST, MSU
; @Changelog: 2017-05-31 MSU
; @Manufacturer: Atmel - Atmel Corporation
; @Doc: Atmel-9354_LIN-Networking-SAMHA1A_Datasheet.pdf (2016-05)
; Atmel-9426-SAM-HA1G16A-Xplained-Pro_User-Guide.pdf (2016-10)
; @Core: Cortex-M0P
; @Chiplist: ATSAMHA1G14A, ATSAMHA1G15A, ATSAMHA1G16A
; @Copyright: (C) 1989-2017 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: peratsamha1g.per 10634 2019-06-05 05:51:19Z mkolodziejczyk $
;
; Known problems
; Module Register Description
; PTC all not sufficient register description
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.open "PAC (Peripheral Access Controller)"
tree "PAC0"
base ad:0x40000000
width 7.
group.long 0x00++0x07
line.long 0x00 "WPCLR,Write Protect Clear"
eventfld.long 0x00 6. " EIC ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 5. " RTC ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 4. " WDT ,Write protect" "Disabled,Enabled"
textline " "
eventfld.long 0x00 3. " GCLK ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 2. " SYSCTRL ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 1. " PM ,Write protect" "Disabled,Enabled"
line.long 0x04 "WPSET,Write Protect Set"
bitfld.long 0x04 6. " EIC ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 5. " RTC ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 4. " WDT ,Write protect" "Disabled,Enabled"
textline " "
bitfld.long 0x04 3. " GCLK ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 2. " SYSCTRL ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 1. " PM ,Write protect" "Disabled,Enabled"
width 0x0B
tree.end
tree "PAC1"
base ad:0x41000000
width 7.
sif (cpuis("ATSAMHA1G1?A"))
group.long 0x00++0x07
line.long 0x00 "WPCLR,Write Protect Clear"
eventfld.long 0x00 6. " MTB ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 4. " DMAC ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 3. " PORT ,Write protect" "Disabled,Enabled"
textline " "
eventfld.long 0x00 2. " NVMCTRL ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 1. " DSU ,Write protect" "Disabled,Enabled"
line.long 0x04 "WPSET,Write Protect Set"
bitfld.long 0x04 6. " MTB ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 4. " DMAC ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 3. " PORT ,Write protect" "Disabled,Enabled"
textline " "
bitfld.long 0x04 2. " NVMCTRL ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 1. " DSU ,Write protect" "Disabled,Enabled"
else
group.long 0x00++0x07
line.long 0x00 "WPCLR,Write Protect Clear"
eventfld.long 0x00 3. " PORT ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 2. " NVMCTRL ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 1. " DSU ,Write protect" "Disabled,Enabled"
line.long 0x04 "WPSET,Write Protect Set"
bitfld.long 0x04 3. " PORT ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 2. " NVMCTRL ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 1. " DSU ,Write protect" "Disabled,Enabled"
endif
width 0x0B
tree.end
tree "PAC2"
base ad:0x42000000
width 7.
group.long 0x00++0x07
line.long 0x00 "WPCLR,Write Protect Clear"
eventfld.long 0x00 19. " PTC ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 18. " DAC ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 17. " AC ,Write protect" "Disabled,Enabled"
textline " "
eventfld.long 0x00 16. " ADC ,Write protect" "Disabled,Enabled"
sif (cpuis("ATSAMD20J*")||cpuis("ATSAMHA1G1?A"))
eventfld.long 0x00 15. " TC7 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 14. " TC6 ,Write protect" "Disabled,Enabled"
endif
textline " "
eventfld.long 0x00 13. " TC5 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 12. " TC4 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 11. " TC3 ,Write protect" "Disabled,Enabled"
textline " "
eventfld.long 0x00 10. " TC2 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 9. " TC1 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 8. " TC0 ,Write protect" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMD20J*")||cpuis("ATSAMD20G*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD20E*"))
eventfld.long 0x00 7. " SERCOM5 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 6. " SERCOM4 ,Write protect" "Disabled,Enabled"
textline " "
endif
eventfld.long 0x00 5. " SERCOM3 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 4. " SERCOM2 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 3. " SERCOM1 ,Write protect" "Disabled,Enabled"
textline " "
eventfld.long 0x00 2. " SERCOM0 ,Write protect" "Disabled,Enabled"
eventfld.long 0x00 1. " EVSYS ,Write protect" "Disabled,Enabled"
line.long 0x04 "WPSET,Write Protect Set"
bitfld.long 0x04 19. " PTC ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 18. " DAC ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 17. " AC ,Write protect" "Disabled,Enabled"
textline " "
bitfld.long 0x04 16. " ADC ,Write protect" "Disabled,Enabled"
sif (cpuis("ATSAMD20J*")||cpuis("ATSAMHA1G1?A"))
bitfld.long 0x04 15. " TC7 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 14. " TC6 ,Write protect" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x04 13. " TC5 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 12. " TC4 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 11. " TC3 ,Write protect" "Disabled,Enabled"
sif (cpuis("ATSAMHA1G1?A"))
textline " "
bitfld.long 0x04 10. " TCC2 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 9. " TCC1 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 8. " TCC0 ,Write protect" "Disabled,Enabled"
else
textline " "
bitfld.long 0x04 10. " TC2 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 9. " TC1 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 8. " TC0 ,Write protect" "Disabled,Enabled"
endif
sif (cpuis("ATSAMD20J*")||cpuis("ATSAMD20G*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD20E*"))
textline " "
bitfld.long 0x04 7. " SERCOM5 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 6. " SERCOM4 ,Write protect" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x04 5. " SERCOM3 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 4. " SERCOM2 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 3. " SERCOM1 ,Write protect" "Disabled,Enabled"
textline " "
bitfld.long 0x04 2. " SERCOM0 ,Write protect" "Disabled,Enabled"
bitfld.long 0x04 1. " EVSYS ,Write protect" "Disabled,Enabled"
width 0x0B
tree.end
tree.end
tree "DSU (Device Service Unit)"
base ad:0x41002000
width 9.
wgroup.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")&&!cpuis("ATSAMD20*")&&!cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*"))
bitfld.byte 0x00 7. " SMSA ,Start memory stream access" "No effect,Start"
bitfld.byte 0x00 6. " ARR ,Auxiliary row read" "No effect,Start"
newline
endif
bitfld.byte 0x00 4. " CE ,Chip erase" "No effect,Start"
bitfld.byte 0x00 3. " MBIST ,Memory built-in self-test" "No effect,Start"
sif (!cpuis("ATSAML22*")&&!cpuis("ATSAMC20N*")&&!cpuis("ATSAMC21N*"))
newline
bitfld.byte 0x00 2. " CRC ,32-bit cyclic redundancy check" "No effect,Start"
elif (cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*"))
bitfld.byte 0x00 1. " CRC ,32-bit cyclic redundancy check" "No effect,Start"
endif
newline
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
group.byte 0x01++0x00
line.byte 0x00 "STATUSA,Status A"
eventfld.byte 0x00 4. " PERR ,Protection error" "No error,Error"
eventfld.byte 0x00 3. " FAIL ,Failure" "Not detected,Detected"
eventfld.byte 0x00 2. " BERR ,Bus error" "No error,Error"
newline
eventfld.byte 0x00 1. " CRSTEXT ,CPU reset phase extension" "Not detected,Detected"
eventfld.byte 0x00 0. " DONE ,Done" "Not completed,Completed"
newline
hgroup.byte 0x02++0x00
hide.byte 0x00 "STATUSB,Status B"
in
newline
sif cpuis("ATSAML21*")||cpuis("ATSAML22*")
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
elif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD21*")||cpuis("ATSAMD20*"))
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
elif cpuis("ATSAMC2?N*")
if (((per.b(ad:0x41002000))&0x02)==0x00)
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "ARRAY,EEPROM,?..."
else
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode" "Exit on error,Pause on error,?..."
endif
elif cpuis("ATSAMC2*")||cpuis("ATSAMDA1*")||cpuis("ATSAMD51*")||cpuis("ATSAME5*")
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
bitfld.long 0x00 0.--1. " AMOD ,Access mode (CRC32 / MBIST operation)" "ARRAY/exit-on-error,EEPROM/pause-on-error,?..."
else
group.long 0x04++0x03
line.long 0x00 "ADDR,Address"
hexmask.long 0x00 2.--31. 0x04 " ADDR ,Address for memory operations"
endif
group.long 0x08++0x07
line.long 0x00 "LENGTH,Length"
hexmask.long 0x00 2.--31. 1. " LENGTH ,Length"
line.long 0x04 "DATA,Data"
newline
hgroup.long 0x10++0x03
hide.long 0x00 "DCC0,Debug Communication Channel 0"
in
newline
hgroup.long 0x14++0x03
hide.long 0x00 "DCC1,Debug Communication Channel 1"
in
newline
rgroup.long 0x18++0x03
line.long 0x00 "DID,Device Identification"
hexmask.long.byte 0x00 28.--31. 1. " PROCESSOR ,Processor"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC2*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*")||cpuis("ATSAMD51*")||cpuis("ATSAME5*"))
newline
hexmask.long.byte 0x00 23.--27. 1. " FAMILY ,Product family"
hexmask.long.byte 0x00 16.--21. 1. " SERIES ,Product series"
else
newline
hexmask.long.byte 0x00 24.--27. 1. " FAMILY ,Product family"
hexmask.long.byte 0x00 16.--23. 1. " SERIES ,Product series"
endif
newline
hexmask.long.byte 0x00 12.--15. 1. " DIE ,Die identification"
hexmask.long.byte 0x00 8.--11. 1. " REVISION ,Revision"
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"||cpu()=="ATSAMD21G16L"
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21E16L,SAMD21E15L,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21G16L,?..."
elif cpuis("ATSAMD21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD21J18A,SAMD21J17A,SAMD21J16A,SAMD21J15A,,SAMD21G18A,SAMD21G17A,SAMD21G16A,SAMD21G15A,,SAMD21E18A,SAMD21E17A,SAMD21E16A,SAMD21E15A,,SAMD21G18A (WLCSP),SAMD21G17A (WLCSP),,,,,,,,,,,,,,,,SAMD21J16B,SAMD21J15B,,SAMD21G16B,SAMD21G15B,,SAMD21E16B,SAMD21E15B,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMD21E16B (WLCSP),SAMD21E15B (WLCSP),,,,,,,,,,,,SAMD21E16C (WLCSP),SAMD21E15C (WLCSP),?..."
elif cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD51*")||cpuis("ATSAME5*")
newline
hexmask.long.byte 0x00 0.--7. 1. " DEVSEL ,Device selection"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD09D14AM,,,,,,,SAMD09C13A,?..."
elif cpuis("ATSAMR21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD21J18A,SAMD21J17A,SAMD21J16A,SAMD21J15A,,SAMD21G18A,SAMD21G17A,SAMD21G16A,SAMD21G15A,,SAMD21E18A,SAMD21E17A,SAMD20E16A,SAMD20E15A,?..."
elif cpuis("ATSAMD10*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD10D14AM,SAMD10D13AM,,SAMD10D14ASS,SAMD10D13ASS,,SAMD10D14A,SAMD10D13A,?..."
elif cpuis("ATSAMD11*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD11D14AM,,,SAMD11D14ASS,,,SAMD11D14A,?..."
elif cpuis("ATSAML21*")
newline
bitfld.long 0x00 0.--7. " DSEL ,Device selection" "SAML21J18B,SAML21J17B,SAML21J16B,,,SAML21G18B,SAML21G17B,SAML21G16B,,SAML21E18B,SAML21E17B,SAML21E16B,SAML21E15B,?..."
elif cpuis("ATSAML22*")
newline
bitfld.long 0x00 0.--7. " DSEL ,Device selection" "L22N18,L22N17,L22N16,,,L22J18,L22J17,L22J16,,L22G18,L22G17,L22G16,?..."
elif cpuis("ATSAMD20*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMD20J18A,SAMD20J17A,SAMD20J16A,SAMD20J15A,SAMD20J14A,SAMD20G18A,SAMD20G17A,SAMD20G16A,SAMD20G15A,SAMD20G14A,SAMD20E18A,SAMD20E17A,SAMD20E16A,SAMD20E15A,SAMD20E14A,?..."
elif cpuis("ATSAMC21*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMC21J18A,SAMC21J17A,SAMC21J16A,SAMC21J15A,,SAMC21G18A,SAMC21G17A,SAMC21G16A,SAMC21G15A,,SAMC21E18A,SAMC21E17A,SAMC21E16A,SAMC21E15A,?..."
elif cpuis("ATSAMC20*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" "SAMC20J18A,SAMC20J17A,SAMC20J16A,SAMC20J15A,,SAMC20G18A,SAMC20G17A,SAMC20G16A,SAMC20G15A,,SAMC20E18A,SAMC20E17A,SAMC20E16A,SAMC20E15A,?..."
elif cpuis("ATSAMDA1*")
newline
bitfld.long 0x00 0.--7. " DEVSEL ,Device selection" ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMDA1J16A,SAMDA1J15A,SAMDA1J14A,SAMDA1G16A,SAMDA1G15A,SAMDA1G14A,SAMDA1E16A,SAMDA1E15A,SAMDA1E14A,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,SAMDA1J16B,SAMDA1J15B,SAMDA1J14B,SAMDA1G16B,SAMDA1G15B,SAMDA1G14B,SAMDA1E16B,SAMDA1E15B,SAMDA1E14B,?..."
endif
sif cpuis("ATSAMD51*")
group.long 0x1C++0x03
line.long 0x00 "CFG,Configuration"
bitfld.long 0x00 4. " ETBRAMEN ,Reserves 32kB of the RAM for Trace ETB RAM buffer" "Not reserved,Reserved"
bitfld.long 0x00 2.--3. " DCCDMALEVEL ,DMA trigger level" "DCC empty,DCC full,?..."
bitfld.long 0x00 0.--1. " LQOS ,Latency quality of service" "Background,Sensitive bandwidth,Sensitive latency,Critical latency"
width 11.
tree "MBIST Registers"
group.long 0x40++0x0F
line.long 0x00 "MBCTRL,MBIST Control"
bitfld.long 0x00 1. " ENABLE ,MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,MBIST software reset" "No reset,Reset"
line.long 0x04 "MBCONFIG,MBIST Configuration"
bitfld.long 0x04 7. " DBG ,Debug mode enable" "Disabled,Enabled"
bitfld.long 0x04 6. " DEFRDMARGIN ,Default read margin force" "Not forced,Forced"
bitfld.long 0x04 0.--4. " ALGO ,MBIST algorithm" "Memory clear,Memory verify,Memory clear and verify,Address decoder,March LR,March SR,March SS,,CRC increasing address,CRC decreasing address,?..."
line.long 0x08 "MBWORD,MBIST Background Word"
line.long 0x0C "MBGSTAT,MBIST Global Status"
bitfld.long 0x0C 3. " CONFIGURED ,MBIST configuration sent" "Not sent,Sent"
bitfld.long 0x0C 2. " ERRINFO ,MBIST error info present" "Not present,Present"
bitfld.long 0x0C 1. " FAILED ,MBIST failed" "Not failed,Failed"
bitfld.long 0x0C 0. " ALLDONE ,MBIST completed" "Not completed,Completed"
rgroup.long 0x50++0x0F
line.long 0x00 "MBDFAIL,MBIST Fail Data"
line.long 0x04 "MBDEXP,MBIST Expected Data"
line.long 0x08 "MBAFAIL,MBIST Fail Address"
hexmask.long.word 0x08 0.--13. 0x01 " ADDR ,Error address"
line.long 0x0C "MBCONTEXT,MBIST Fail Context"
bitfld.long 0x0C 10. " PORT ,DPRAM port index" "0,1"
bitfld.long 0x0C 5.--9. " STEP ,Algorithm step" ",,DOWN_ROW1,UP_R1W0R0W1,UP_R1W0,UP_R0W1R1W0,UP_R0,UP_R0R0W0R0W1,UP_R1R1W1R1W0,DOWN_R0R0W0R0W1,DOWN_R1R1W1R1W0,,UP_R0R0,,DOWN_R1W0R0W1,DOWN_R1R1,?..."
bitfld.long 0x0C 0.--4. " SUBSTEP ,Algorithm sub-step" ",R0_1,,R1_1,,R0_2,,R1_2,,R0_3,,R1_3,?..."
group.long 0x60++0x03
line.long 0x00 "MBENABLE0,MBIST Memory Enable 0"
bitfld.long 0x00 28. " ENABLE28 ,Memory 28 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 27. " ENABLE27 ,Memory 27 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 26. " ENABLE26 ,Memory 26 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 25. " ENABLE25 ,Memory 25 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 24. " ENABLE24 ,Memory 24 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 23. " ENABLE23 ,Memory 23 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 22. " ENABLE22 ,Memory 22 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 21. " ENABLE21 ,Memory 21 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 20. " ENABLE20 ,Memory 20 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 19. " ENABLE19 ,Memory 19 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 18. " ENABLE18 ,Memory 18 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 17. " ENABLE17 ,Memory 17 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 16. " ENABLE16 ,Memory 16 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 15. " ENABLE15 ,Memory 15 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 14. " ENABLE14 ,Memory 14 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 13. " ENABLE13 ,Memory 13 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 12. " ENABLE12 ,Memory 12 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 11. " ENABLE11 ,Memory 11 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 10. " ENABLE10 ,Memory 10 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 9. " ENABLE9 ,Memory 9 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 8. " ENABLE8 ,Memory 8 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 7. " ENABLE7 ,Memory 7 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 6. " ENABLE6 ,Memory 6 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 5. " ENABLE5 ,Memory 5 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 4. " ENABLE4 ,Memory 4 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 3. " ENABLE3 ,Memory 3 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 2. " ENABLE2 ,Memory 2 MBIST enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE1 ,Memory 1 MBIST enable" "Disabled,Enabled"
newline
bitfld.long 0x00 0. " ENABLE0 ,Memory 0 MBIST enable" "Disabled,Enabled"
rgroup.long 0x68++0x03
line.long 0x00 "MBBUSY0,MBIST Memory Busy 0"
bitfld.long 0x00 28. " BUSY28 ,Memory 28 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 27. " BUSY27 ,Memory 27 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 26. " BUSY26 ,Memory 26 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 25. " BUSY25 ,Memory 25 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 24. " BUSY24 ,Memory 24 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 23. " BUSY23 ,Memory 23 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 22. " BUSY22 ,Memory 22 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 21. " BUSY21 ,Memory 21 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 20. " BUSY20 ,Memory 20 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 19. " BUSY19 ,Memory 19 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 18. " BUSY18 ,Memory 18 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 17. " BUSY17 ,Memory 17 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 16. " BUSY16 ,Memory 16 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 15. " BUSY15 ,Memory 15 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 14. " BUSY14 ,Memory 14 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 13. " BUSY13 ,Memory 13 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 12. " BUSY12 ,Memory 12 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 11. " BUSY11 ,Memory 11 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 10. " BUSY10 ,Memory 10 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 9. " BUSY9 ,Memory 9 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 8. " BUSY8 ,Memory 8 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 7. " BUSY7 ,Memory 7 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 6. " BUSY6 ,Memory 6 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 5. " BUSY5 ,Memory 5 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 4. " BUSY4 ,Memory 4 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 3. " BUSY3 ,Memory 3 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 2. " BUSY2 ,Memory 2 MBIST busy" "Not busy,Busy"
bitfld.long 0x00 1. " BUSY1 ,Memory 1 MBIST busy" "Not busy,Busy"
newline
bitfld.long 0x00 0. " BUSY0 ,Memory 0 MBIST busy" "Not busy,Busy"
group.long 0x70++0x03
line.long 0x00 "MBSTATUS0,MBIST Memory Status 0"
bitfld.long 0x00 28. " STATUS28 ,Memory 28 MBIST status" "0,1"
bitfld.long 0x00 27. " STATUS27 ,Memory 27 MBIST status" "0,1"
bitfld.long 0x00 26. " STATUS26 ,Memory 26 MBIST status" "0,1"
bitfld.long 0x00 25. " STATUS25 ,Memory 25 MBIST status" "0,1"
newline
bitfld.long 0x00 24. " STATUS24 ,Memory 24 MBIST status" "0,1"
bitfld.long 0x00 23. " STATUS23 ,Memory 23 MBIST status" "0,1"
bitfld.long 0x00 22. " STATUS22 ,Memory 22 MBIST status" "0,1"
bitfld.long 0x00 21. " STATUS21 ,Memory 21 MBIST status" "0,1"
newline
bitfld.long 0x00 20. " STATUS20 ,Memory 20 MBIST status" "0,1"
bitfld.long 0x00 19. " STATUS19 ,Memory 19 MBIST status" "0,1"
bitfld.long 0x00 18. " STATUS18 ,Memory 18 MBIST status" "0,1"
bitfld.long 0x00 17. " STATUS17 ,Memory 17 MBIST status" "0,1"
newline
bitfld.long 0x00 16. " STATUS16 ,Memory 16 MBIST status" "0,1"
bitfld.long 0x00 15. " STATUS15 ,Memory 15 MBIST status" "0,1"
bitfld.long 0x00 14. " STATUS14 ,Memory 14 MBIST status" "0,1"
bitfld.long 0x00 13. " STATUS13 ,Memory 13 MBIST status" "0,1"
newline
bitfld.long 0x00 12. " STATUS12 ,Memory 12 MBIST status" "0,1"
bitfld.long 0x00 11. " STATUS11 ,Memory 11 MBIST status" "0,1"
bitfld.long 0x00 10. " STATUS10 ,Memory 10 MBIST status" "0,1"
bitfld.long 0x00 9. " STATUS9 ,Memory 9 MBIST status" "0,1"
newline
bitfld.long 0x00 8. " STATUS8 ,Memory 8 MBIST status" "0,1"
bitfld.long 0x00 7. " STATUS7 ,Memory 7 MBIST status" "0,1"
bitfld.long 0x00 6. " STATUS6 ,Memory 6 MBIST status" "0,1"
bitfld.long 0x00 5. " STATUS5 ,Memory 5 MBIST status" "0,1"
newline
bitfld.long 0x00 4. " STATUS4 ,Memory 4 MBIST status" "0,1"
bitfld.long 0x00 3. " STATUS3 ,Memory 3 MBIST status" "0,1"
bitfld.long 0x00 2. " STATUS2 ,Memory 2 MBIST status" "0,1"
bitfld.long 0x00 1. " STATUS1 ,Memory 1 MBIST status" "0,1"
newline
bitfld.long 0x00 0. " STATUS0 ,Memory 0 MBIST status" "0,1"
tree.end
newline
width 9.
endif
group.long 0xF0++0x07
line.long 0x00 "DCFG0,Device Configuration"
line.long 0x04 "DCFG1,Device Configuration"
rgroup.long 0x1000++0x0B
line.long 0x00 "ENTRY0,CoreSight ROM Table Entry 0"
hexmask.long.tbyte 0x00 12.--31. 0x10 " ADDOFF ,Address offset"
bitfld.long 0x00 1. " FMT ,Format" ",32-bit ROM table"
bitfld.long 0x00 0. " EPRES ,Entry present" "Present,Not present"
line.long 0x04 "ENTRY1,CoreSight ROM Table Entry 1"
hexmask.long.tbyte 0x04 12.--31. 0x10 " ADDOFF ,Address offset"
bitfld.long 0x04 1. " FMT ,Format" ",32-bit ROM table"
bitfld.long 0x04 0. " EPRES ,Entry present" "Present,Not present"
line.long 0x08 "END,CoreSight ROM Table End"
newline
rgroup.long 0x1FCC++0x07
line.long 0x00 "MEMTYPE,CoreSight ROM Table Memory Type"
bitfld.long 0x00 0. " SMEMP ,System memory present" "Not present,Present"
line.long 0x04 "PID4,Peripheral Identification 4"
hexmask.long.byte 0x04 4.--7. 1. " FKBC ,4KB count"
hexmask.long.byte 0x04 0.--3. 1. " JEPCC ,JEP-106 continuation code"
rgroup.long 0x1FE0++0x03
line.long 0x00 "PID0,Peripheral Identification 0"
hexmask.long.byte 0x00 0.--7. 1. " PARTNBL ,Part number low"
sif cpuis("ATSAMC20N*")||cpuis("ATSAMC21N*")
if ((((per.l(ad:0x41002000+0x1FE4))&0xF0)==0xF0)&&(((per.l(ad:0x41002000+0x1FE8))&0x07)==0x01))
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" ",,,,,,,,,,,,,,,Atmel JEP-106"
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" ",Atmel JEP-106,?..."
else
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" "?..."
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" "?..."
endif
else
rgroup.long 0x1FE4++0x07
line.long 0x00 "PID1,Peripheral Identification 1"
bitfld.long 0x00 4.--7. " JEPIDCL ,Low part of the JEP-106 identity code" ",,,,,,,,,,,,,,,Atmel JEP-106"
hexmask.long.byte 0x00 0.--3. 1. " PARTNBH ,Part number high"
line.long 0x04 "PID2,Peripheral Identification 2"
hexmask.long.byte 0x04 4.--7. 1. " REVISION ,Revision number"
bitfld.long 0x04 3. " JEPU ,JEP-106 identity code is used" ",JEP-106"
bitfld.long 0x04 0.--2. " JEPIDCH ,JEP-106 identity code high" ",Atmel JEP-106,?..."
endif
rgroup.long 0x1FEC++0x13
line.long 0x00 "PID3,Peripheral Identification 3"
hexmask.long.byte 0x00 4.--7. 1. " REVAND ,Revision number"
hexmask.long.byte 0x00 0.--3. 1. " CUSMOD ,ARM CUSMOD"
line.long 0x04 "CID0,Component Identification 0"
hexmask.long.byte 0x04 0.--7. 1. " PREAMBLE0 ,Preamble byte 0"
line.long 0x08 "CID1,Component Identification 1"
hexmask.long.byte 0x08 4.--7. 1. " CCLASS ,Component class"
hexmask.long.byte 0x08 0.--3. 1. " PREAMBLE ,Preamble"
line.long 0x0C "CID2,Component Identification 2"
hexmask.long.byte 0x0C 0.--7. 1. " PREAMBLE2 ,Preamble byte 2"
line.long 0x10 "CID3,Component Identification 3"
hexmask.long.byte 0x10 0.--7. 1. " PREAMBLE3 ,Preamble byte 3"
width 0x0B
tree.end
tree "GCLK (Generic Clock Controller)"
base ad:0x40000C00
width 9.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.byte 0x01++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy status" "Idle,Busy"
group.word 0x02++0x01
line.word 0x00 "CLKCTRL,Generic Clock Control"
bitfld.word 0x00 15. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.word 0x00 14. " CLKEN ,Clock enable" "Disabled,Enabled"
textline " "
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
bitfld.word 0x00 8.--11. " GEN ,Generic clock generator" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
textline " "
sif cpuis("ATSAMD20J*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,,,TC2,ADC,?..."
elif cpu()=="ATSAMD21G16L"
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC1_DIG,AC_ANA,AC1_ANA,DAC,?..."
elif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,AC1_DIG,AC_ANA,AC1_ANA,DAC,?..."
elif cpuis("ATSAMD21E*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,,,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD21G*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD21*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
elif cpuis("ATSAMD20G*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD20E*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,WDT,RTC,EIC,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TC0/TC1,TC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMR21*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,,ADC,AC_DIG,AC_ANA,PTC,?..."
elif cpuis("ATSAMD10*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,TCC0,TC1/TC2,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMD11*")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,TCC0,TC1/TC2,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMHA1G1?A")
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M reference,FDPLL96M input clock,FDPLL96M 32kHz clock,WDT,RTC,EIC,,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,AC_ANA,DAC,PTC,?..."
elif cpuis("ATSAMDA1*")
sif (cpuis("ATSAMDA1E*"))
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M_REF,DPLL,DPLL_32K,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,,,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
else
bitfld.word 0x00 0.--5. " ID ,Generic clock selection ID" "DFLL48M_REF,DPLL,DPLL_32K,WDT,RTC,EIC,USB,EVSYS_CHANNEL_0,EVSYS_CHANNEL_1,EVSYS_CHANNEL_2,EVSYS_CHANNEL_3,EVSYS_CHANNEL_4,EVSYS_CHANNEL_5,EVSYS_CHANNEL_6,EVSYS_CHANNEL_7,EVSYS_CHANNEL_8,EVSYS_CHANNEL_9,EVSYS_CHANNEL_10,EVSYS_CHANNEL_11,SERCOMx_SLOW,SERCOM0_CORE,SERCOM1_CORE,SERCOM2_CORE,SERCOM3_CORE,SERCOM4_CORE,SERCOM5_CORE,TCC0/TCC1,TCC2/TC3,TC4/TC5,TC6/TC7,ADC,AC_DIG,,AC_ANA,,DAC,PTC,I2S_0,I2S_1,?..."
endif
endif
group.long 0x04++0x03
line.long 0x00 "GENCTRL,Generic Clock Generator Control"
bitfld.long 0x00 21. " RUNSTDBY ,Run in standby" "Stopped,Running"
bitfld.long 0x00 20. " DIVSEL ,Divide selection" "GENDIV.DIV,2^(GENDIV.DIV+1)"
bitfld.long 0x00 19. " OE ,Output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 18. " OOV ,Output off value" "0,1"
bitfld.long 0x00 17. " IDC ,Improve duty cycle" "Not 50/50 for odd division factors,50/50"
bitfld.long 0x00 16. " GENEN ,Generic clock generator enable" "Disabled,Enabled"
textline " "
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,,OSC8M,DFLL48M,FDPLL96M,?..."
elif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,XOSC32K,OSC8M,DFLL48M,FDPLL96M,?..."
else
bitfld.long 0x00 8.--12. " SRC ,Source select" "XOSC,GCLKIN,GCLKGEN1,OSCULP32K,OSC32K,XOSC32K,OSC8M,DFLL48M,?..."
endif
textline " "
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
textline " "
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
if ((per.l(ad:0x40000C00+0x08)&0xF)==0x00)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x01)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV[15:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x02)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--12. 1. " DIV[4:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
elif (((per.l(ad:0x40000C00+0x08)&0xF)>0x02)&&((per.l(ad:0x40000C00+0x08)&0xF)<0x09))
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,Generic clock generator 8,?..."
endif
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
if ((per.l(ad:0x40000C00+0x08)&0xF)==0x00)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x01)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV[15:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif ((per.l(ad:0x40000C00+0x08)&0xF)==0x02)
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--12. 1. " DIV[4:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
elif (((per.l(ad:0x40000C00+0x08)&0xF)>0x02)&&((per.l(ad:0x40000C00+0x08)&0xF)<0x06))
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.byte 0x00 8.--15. 1. " DIV[7:0] ,Division factor"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
textline " "
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,?..."
endif
else
group.long 0x08++0x03
line.long 0x00 "GENDIV,Generic Clock Generator Division"
hexmask.long.word 0x00 8.--23. 1. " DIV ,Division factor"
bitfld.long 0x00 0.--3. " ID ,Generic clock generator selection" "Generic clock generator 0,Generic clock generator 1,Generic clock generator 2,Generic clock generator 3,Generic clock generator 4,Generic clock generator 5,Generic clock generator 6,Generic clock generator 7,?..."
endif
width 0x0B
tree.end
tree "PM (Power Manager)"
base ad:0x40000400
width 15.
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*"))
hgroup.byte 0x00++0x00
hide.byte 0x00 "CTRL,Control"
else
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 4. " BKUPCLK ,Backup clock select" "GCLKMAIN clock selected,OSC8M backup clock selected"
bitfld.byte 0x00 2. " CFDEN ,Clock failure detector enable" "Disabled,Enabled"
endif
group.byte 0x01++0x00
line.byte 0x00 "SLEEP,Sleep Mode"
bitfld.byte 0x00 0.--1. " IDLE ,Idle mode configuration" "CPU clock domain is stopped,CPU and AHB clock domains are stopped,CPU and AHB and APB clock domains are stopped,?..."
textline " "
sif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14"))
group.byte 0x02++0x00
line.byte 0x00 "EXTCTRL,External Reset Register"
bitfld.byte 0x00 0. " SETDIS ,External reset disable" "No,Yes"
endif
group.byte 0x08++0x03
line.byte 0x00 "CPUSEL,CPU Clock Select"
bitfld.byte 0x00 0.--2. " CPUDIV ,CPU prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x01 "APBASEL,APBA Clock Select"
bitfld.byte 0x01 0.--2. " APBADIV ,APBA prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x02 "APBBSEL,APBB Clock Select"
bitfld.byte 0x02 0.--2. " APBBDIV ,APBB prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
line.byte 0x03 "APBCSEL,APBC Clock Select"
bitfld.byte 0x03 0.--2. " APBCDIV ,APBC prescaler selection" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
group.long 0x14++0x0F
line.long 0x00 "AHBMASK,AHB Mask"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
sif (cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L")
bitfld.long 0x00 6. " USB ,USB clock enable" "Stopped,Enabled"
textline " "
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 5. " DMAC ,DMAC clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x00 4. " NVMCTRL ,NVMCTRL clock enable" "Stopped,Enabled"
bitfld.long 0x00 3. " DSU ,DSU clock enable" "Stopped,Enabled"
bitfld.long 0x00 2. " HPB2 ,HPB2 clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x00 1. " HPB1 ,HPB1 clock enable" "Stopped,Enabled"
bitfld.long 0x00 0. " HPB0 ,HPB0 clock enable" "Stopped,Enabled"
line.long 0x04 "APBAMASK,APBA Mask"
bitfld.long 0x04 6. " EIC ,EIC clock enable" "Stopped,Enabled"
bitfld.long 0x04 5. " RTC ,RTC clock enable" "Stopped,Enabled"
bitfld.long 0x04 4. " WDT ,WDT clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x04 3. " GCLK ,GLCK clock enable" "Stopped,Enabled"
bitfld.long 0x04 2. " SYSCTRL ,SYSCTRL clock enable" "Stopped,Enabled"
bitfld.long 0x04 1. " PM ,PM clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x04 0. " PAC0 ,PAC0 clock enable" "Stopped,Enabled"
textline " "
line.long 0x08 "APBBMASK,APBB Mask"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD11*")||cpuis("ATSAMDA1*"))
sif ((cpu()!="ATSAMD21E15L")&&(cpu()!="ATSAMD21E16L")&&(cpu()!="ATSAMD21G16L"))
bitfld.long 0x08 5. " USB ,USB APB clock enable" "Stopped,Enabled"
textline " "
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
bitfld.long 0x08 4. " DMAC ,DMAC APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x08 3. " PORT ,PORT APB clock enable" "Stopped,Enabled"
bitfld.long 0x08 2. " NVMCTRL ,NVMCTRL APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x08 1. " DSU ,DSU APB clock enable" "Stopped,Enabled"
bitfld.long 0x08 0. " PAC1 ,PAC1 APB clock enable" "Stopped,Enabled"
line.long 0x0C "APBCMASK,APBC Mask"
sif (!cpuis("ATSAMD10")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
sif ((cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L"))
bitfld.long 0x0C 21. " AC1 ,AC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x0C 20. " I2S ,I2S APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMR21*")
bitfld.long 0x0C 21. " RFCTRL ,RFCTRL APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
textline " "
else
bitfld.long 0x0C 19. " PTC ,PTC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 18. " DAC ,DAC APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x0C 17. " AC ,AC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 16. " ADC ,ADC APB clock enable" "Stopped,Enabled"
textline " "
sif (cpuis("ATSAMD20J*")||(cpuis("ATSAMD21J*"))||(cpuis("ATSAMHA1G1?A"))||(cpu()=="ATSAMD21G16L")||cpuis("ATSAMDA1*"))
bitfld.long 0x0C 15. " TC7 ,TC7 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 14. " TC6 ,TC6 APB clock enable" "Stopped,Enabled"
textline " "
endif
bitfld.long 0x0C 13. " TC5 ,APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 12. " TC4 ,TC4 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 11. " TC3 ,TC3 APB clock enable" "Stopped,Enabled"
textline " "
sif cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x0C 10. " TCC2 ,TCC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TCC1 ,TCC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
elif cpuis("ATSAMD20*")
bitfld.long 0x0C 10. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TC0 ,TC0 APB clock enable" "Stopped,Enabled"
textline " "
else
bitfld.long 0x0C 10. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " TCC1 ,TCC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
endif
sif (cpu()=="ATSAMD21E15L")||(cpu()=="ATSAMD21E16L")||(cpu()=="ATSAMD21G16L")
bitfld.long 0x0C 6. " SERCOM4 ,SERCOM4 APB clock enable" "Stopped,Enabled"
textline " "
elif (cpuis("ATSAMD20J*")||cpuis("ATSAMD20G*")||cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMDA1*")||cpuis("ATSAMD20E*"))
sif (!cpuis("ATSAMD21E*")&&!cpuis("ATSAMDA1E*"))
bitfld.long 0x0C 7. " SERCOM5 ,SERCOM5 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " SERCOM4 ,SERCOM4 APB clock enable" "Stopped,Enabled"
textline " "
endif
endif
bitfld.long 0x0C 5. " SERCOM3 ,SERCOM3 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 4. " SERCOM2 ,SERCOM2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
bitfld.long 0x0C 8. " ADC ,ADC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 7. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
else
bitfld.long 0x0C 10. " DAC ,DAC APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 9. " AC ,AC ABP clock enable" "Stopped,Enabled"
bitfld.long 0x0C 8. " ADC ,ADC APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 7. " TC2 ,TC2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 6. " TC1 ,TC1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 5. " TCC0 ,TCC0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 4. " SERCOM2 ,SERCOM2 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 3. " SERCOM1 ,SERCOM1 APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 2. " SERCOM0 ,SERCOM0 APB clock enable" "Stopped,Enabled"
textline " "
bitfld.long 0x0C 1. " EVSYS ,EVSYS APB clock enable" "Stopped,Enabled"
bitfld.long 0x0C 0. " PAC2 ,PAC2 APB clock enable" "Stopped,Enabled"
endif
textline " "
sif (cpuis("ATSAMHA1G1?A"))
group.byte 0x34++0x02
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x01 0. 0x00 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x02 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x02 0. " CKRDY ,Clock ready" "Low,High"
elif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
group.byte 0x35++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " CKRDY ,Clock ready" "Not ready,Ready"
elif (cpuis("ATSAMR21*"))
group.byte 0x34++0x02
line.byte 0x00 "INTENCLR,Interrupt Enable Clear"
eventfld.byte 0x00 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTENSET,Interrupt Enable Set"
bitfld.byte 0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x02 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x02 0. " CKRDY ,Clock ready" "Low,High"
else
group.byte 0x35++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Clear/Set"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " CFD ,Clock failure detector interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CKRDY ,Clock ready interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 1. " CFD ,Clock failure detector" "Low,High"
eventfld.byte 0x01 0. " CKRDY ,Clock ready" "Low,High"
endif
rgroup.byte 0x38++0x00
line.byte 0x00 "RCAUSE,Reset Cause"
bitfld.byte 0x00 6. " SYST ,System reset request" "No reset,Reset"
bitfld.byte 0x00 5. " WDT ,Watchdog reset" "No reset,Reset"
bitfld.byte 0x00 4. " EXT ,External reset" "No reset,Reset"
textline " "
bitfld.byte 0x00 2. " BOD33 ,Brown out 33 detector reset" "No reset,Reset"
bitfld.byte 0x00 1. " BOD12 ,Brown out 12 detector reset" "No reset,Reset"
bitfld.byte 0x00 0. " POR ,Power-On reset" "No reset,Reset"
width 0x0B
tree.end
tree "SYSCTRL (System Controller)"
base ad:0x40000800
width 14.
group.long 0x00++0x07
line.long 0x00 "INTENCLR/SET,Interrupt Enable Clear/Set"
setclrfld.long 0x04 17. 0x04 17. 0x00 17. " DPLLLTO ,DPLL lock timeout interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 16. 0x04 16. 0x00 16. " DPLLLCKF ,DPLL lock fall interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 15. 0x04 15. 0x00 15. " DPLLLCKR ,PLL lock rise interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 11. 0x04 11. 0x00 11. " B33SRDY ,BOD33 synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x04 10. 0x04 10. 0x00 10. " BOD33DET ,BOD33 detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 9. 0x04 9. 0x00 9. " BOD33RDY ,BOD33 ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 8. 0x04 8. 0x00 8. " DFLLRCS ,DFLL reference clock stopped interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 7. 0x04 7. 0x00 7. " DFLLLCKC ,DFLL lock coarse interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x04 6. 0x04 6. 0x00 6. " DFLLLCKF ,DFLL lock fine interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 5. 0x04 5. 0x00 5. " DFLL00B ,DFLL out of bounds interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 4. 0x04 4. 0x00 4. " DFLLRDY ,DFLL ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 3. 0x04 3. 0x00 3. " OSC8MRDY ,OSC8M ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x04 2. 0x04 2. 0x00 2. " OSC32KRDY ,OSC32K ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 1. 0x04 1. 0x00 1. " XOSC32KRDY ,XOSC32K ready interrupt enable" "Disabled,Enabled"
setclrfld.long 0x04 0. 0x04 0. 0x00 0. " XOSCRDY ,XOSC ready interrupt enable" "Disabled,Enabled"
group.long 0x08++0x03
line.long 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x00 17. " DPLLLTO ,DPLL lock timeout" "Low,High"
eventfld.long 0x00 16. " DPLLLCKF ,DPLL lock fall" "Low,High"
eventfld.long 0x00 15. " DPLLLCKR ,DPLL lock rise" "Low,High"
eventfld.long 0x00 11. " B33SRDY ,BOD33 synchronization ready" "Low,High"
textline " "
eventfld.long 0x00 10. " BOD33DET ,BOD33 detection" "Low,High"
eventfld.long 0x00 9. " BOD33RDY ,BOD33 ready" "Low,High"
eventfld.long 0x00 8. " DFLLRCS ,DFLL reference clock stopped" "Low,High"
eventfld.long 0x00 7. " DFLLLCKC ,DFLL lock coarse" "Low,High"
textline " "
eventfld.long 0x00 6. " DFLLLCKF ,DFLL lock fine" "Low,High"
eventfld.long 0x00 5. " DFLLOOB ,DFLL out of bounds" "Low,High"
eventfld.long 0x00 4. " DFLLRDY ,DFLL ready" "Low,High"
eventfld.long 0x00 3. " OSC8MRDY ,OSC8M ready" "Low,High"
textline " "
eventfld.long 0x00 2. " OSC32KRDY ,OSC32K ready" "Low,High"
eventfld.long 0x00 1. " XOSC32KRDY ,XOSC32K ready" "Low,High"
eventfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Low,High"
rgroup.long 0x0C++0x03
line.long 0x00 "PCLKSR,Power And Clocks Status"
bitfld.long 0x00 17. " DPLLLTO ,DPLL lock timeout" "Not detected,Detected"
bitfld.long 0x00 16. " DPLLLCKF ,DPLL lock fall" "Not detected,Detected"
bitfld.long 0x00 15. " DPLLLCKR ,DPLL lock rise" "Not detected,Detected"
bitfld.long 0x00 11. " B33SRDY ,BOD33 synchronization ready" "Complete,Ongoing"
textline " "
bitfld.long 0x00 10. " BOD33DET ,BOD33 detection" "Not detected,Detected"
bitfld.long 0x00 9. " BOD33RDY ,BOD33 ready" "Not ready,Ready"
bitfld.long 0x00 8. " DFLLRCS ,DFLL reference clock stopped" "Running,Stopped"
bitfld.long 0x00 7. " DFLLLCKC ,DFLL lock coarse" "No detected,Detected"
textline " "
bitfld.long 0x00 6. " DFLLLCKF ,DFLL lock fine" "No detected,Detected"
bitfld.long 0x00 5. " DFLLOOB ,DFLL out of bounds" "No detected,Detected"
bitfld.long 0x00 4. " DFLLRDY ,DFLL ready" "Ongoing,Complete"
bitfld.long 0x00 3. " OSC8MRDY ,OSC8M ready" "Not ready,Ready"
textline " "
bitfld.long 0x00 2. " OSC32KRDY ,OSC32K ready" "Not ready,Ready"
bitfld.long 0x00 1. " XOSC32KRDY ,XOSC32K ready" "Not ready,Ready"
bitfld.long 0x00 0. " XOSCRDY ,XOSC ready" "Not ready,Ready"
group.word 0x10++0x01
line.word 0x00 "XOSC,External Multipurpose Crystal Oscillator (XOSC) Control"
bitfld.word 0x00 12.--15. " STARTUP ,Start-Up time" "31us,61us,122us,244us,488us,977us,1953us,3906us,7813us,15625us,31250us,62500us,125000us,250000us,500000us,1000000us"
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 demand"
textline " "
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "External,Crystal"
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
group.word 0x14++0x01
line.word 0x00 "XOSC32K,32kHz External Crystal Oscillator (XOSC32K) Control"
bitfld.word 0x00 12. " WRTLOCK ,Write lock" "Not locked,Locked"
bitfld.word 0x00 8.--10. " STARTUP ,Oscillator Start-Up time" "122us,1068us,62592us,125092us,500092us,1000092us,2000092us,4000092us"
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
textline " "
bitfld.word 0x00 5. " AAMPEN ,Automatic amplitude control enable" "Disabled,Enabled"
bitfld.word 0x00 3. " EN32K ,32kHz output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " XTALEN ,Crystal oscillator enable" "External,Crystal"
bitfld.word 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
group.long 0x18++0x03
line.long 0x00 "OSC32K,32kHz Internal Oscillator (OSC32K) 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" "92us,122us,183us,305us,549us,1038us,2014us,3967us"
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.long 0x00 2. " EN32K ,32kHz output enable" "Disabled,Enabled"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enabled"
group.byte 0x1C++0x00
line.byte 0x00 "OSCULP32K,32kHz Ultra Low Power Internal Oscillator (OSCULP32K) Control"
bitfld.byte 0x00 7. " WRTLOCK ,Write lock" "Not locked,Locked"
hexmask.byte 0x00 0.--4. 1. " CALIB ,Oscillator calibration"
group.long 0x20++0x03
line.long 0x00 "OSC8M,8MHz Internal Oscillator (OSC8M) Control"
bitfld.long 0x00 30.--31. " FRANGE ,Oscillator frequency range" "4 to 6MHz,6 to 8MHz,8 to 11MHz,11 to 15MHz"
hexmask.long.word 0x00 16.--27. 1. " CALIB ,Oscillator calibration"
bitfld.long 0x00 8.--9. " PRESC ,Oscillator prescaler" "1,2,4,8"
bitfld.long 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.long 0x00 1. " ENABLE ,Oscillator enable" "Disabled,Enable"
group.word 0x24++0x01
line.word 0x00 "DFLLCTRL,DFLL48M Control"
bitfld.word 0x00 11. " WAITLOCK ,Wait lock" "Before DFLL,When DFLL"
bitfld.word 0x00 10. " BPLCKC ,Bypass coarse lock" "Disabled,Enabled"
bitfld.word 0x00 9. " QLDIS ,Quick lock disable" "No,Yes"
bitfld.word 0x00 8. " CCDIS ,Chill cycle disable" "No,Yes"
textline " "
bitfld.word 0x00 7. " ONDEMAND ,On demand control" "Always on,On demand"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.word 0x00 4. " LLAW ,Lose lock after wake" "Not lost,Lost"
bitfld.word 0x00 3. " STABLE ,Stable DFLL frequency" "Tracks changes,Fixed"
textline " "
bitfld.word 0x00 2. " MODE ,Operating mode selection" "Open-loop,Closed-loop"
bitfld.word 0x00 1. " ENABLE ,DFLL enable" "Disabled,Enabled"
group.long 0x28++0x07
line.long 0x00 "DFLLVAL,DFLL48M Value"
hexmask.long.word 0x00 16.--31. 1. " DIFF ,Multiplication ratio difference"
hexmask.long.byte 0x00 10.--15. 1. " COARSE ,Coarse value"
hexmask.long.word 0x00 0.--9. 1. " FINE ,Fine value"
line.long 0x04 "DFLLMUL,DFLL48M Multiplier"
hexmask.long.byte 0x04 26.--31. 1. " CSTEP ,Coarse maximum step"
hexmask.long.word 0x04 16.--25. 1. " FSTEP ,Fine maximum step"
hexmask.long.word 0x04 0.--15. 1. " MUL ,DFLL multiply factor"
wgroup.byte 0x30++0x00
line.byte 0x00 "DFLLSYNC,DFLL48M Synchronization"
bitfld.byte 0x00 7. " READREQ ,Read request" "No effect,Request"
group.long 0x34++0x03
line.long 0x00 "BOD33,3.3V Brown-Out Detector (BOD33) Control"
hexmask.long.byte 0x00 16.--21. 1. " LEVEL ,BOD33 threshold level"
bitfld.long 0x00 12.--15. " PSEL ,Prescaler select" "DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,DIV2048,DIV4096,DIV8192,DIV16384,DIV32768,DIV65536"
bitfld.long 0x00 9. " CEN ,Clock enable" "Disabled,Enabled"
bitfld.long 0x00 8. " MODE ,Operation mode" "Continuous,Sampling"
textline " "
bitfld.long 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.long 0x00 3.--4. " ACTION ,BOD33 action" "NONE,Reset,Interrupt,?..."
bitfld.long 0x00 2. " HYST ,Hysteresis" "No hysteresis,Hysteresis"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
group.word 0x3C++0x01
line.word 0x00 "VREG,Voltage Regulator System (VREG) Control"
bitfld.word 0x00 13. " DORCELDO ,Force LDO voltage regulator" "Low/Low,Low/High"
bitfld.word 0x00 6. " RUNSTDBY ,Run in standby" "Low power,Normal"
group.long 0x40++0x03
line.long 0x00 "VREF,Voltage References System (VREF) Control"
hexmask.long.word 0x00 16.--26. 1. " CALIB ,Bandgap voltage generator calibration"
bitfld.long 0x00 2. " BGOUTEN ,Bandgap output enable" "Not available,Routed"
bitfld.long 0x00 1. " TSEN ,Temperature sensor enable" "Disabled,Enabled"
group.byte 0x44++0x00
line.byte 0x00 "DPLLCTRLA,DPLL Control A"
bitfld.byte 0x00 7. " ONDEMAND ,On demand clock activation" "Always on,On demand"
bitfld.byte 0x00 6. " RUNSTDBY ,Run in standby" "Disabled,Not stopped"
bitfld.byte 0x00 1. " ENABLE ,DPLL enable" "Disabled,Enabled"
group.long 0x48++0x07
line.long 0x00 "DPLLRATIO,DPLL Ratio Control"
hexmask.long.byte 0x00 16.--19. 1. " LDRFRAC ,Loop divider ratio fractional part"
hexmask.long.word 0x00 0.--11. 1. " LDR ,Loop divider ratio"
line.long 0x04 "DPLLCTRLB,DPLL Control B"
hexmask.long.word 0x04 16.--26. 1. " DIV ,Clock divider"
bitfld.long 0x04 12. " LBYPASS ,Lock bypass" "Not locked,Locked"
bitfld.long 0x04 8.--10. " LTIME ,Lock time" "No time-out,,,,8ms,9ms,10ms,11ms"
bitfld.long 0x04 4.--5. " REFCLK ,Reference clock selection" "XOSC32,XOSC,GCLK_DPLL,?..."
textline " "
bitfld.long 0x04 3. " WUF ,Wake up fast" "Until complete,Until startup"
bitfld.long 0x04 2. " LPEN ,Low-Power enable" "Selected,Not selected"
bitfld.long 0x04 0.--1. " FILTER ,Proportional integral filter selection" "Default,Low bandwidth,High bandwidth,High damping"
rgroup.byte 0x50++0x00
line.byte 0x00 "DPLLSTATUS,DPLL Status"
bitfld.byte 0x00 3. " DIV ,Divider enable" "Disabled,Enabled"
bitfld.byte 0x00 2. " ENABLE ,DPLL enable" "Disabled,Enabled"
bitfld.byte 0x00 1. " CLKRDY ,Output clock ready" "Off,On"
bitfld.byte 0x00 0. " LOCK ,DPLL lock status" "Cleared,Asserted"
width 0x0B
tree.end
tree "WDT (Watchdog Timer)"
base ad:0x40001000
width 15.
if (((per.b(ad:0x40001000))&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:0x40001000))&0x80)==0x00)&&(((per.b(ad:0x40001000))&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:0x40001000))&0x80)==0x00)&&(((per.b(ad:0x40001000))&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:0x40001400
width 15.
if ((per.w(ad:0x40001400+0x00)&0xC)==0x00)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
bitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " CMP0 ,Compare 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
group.long 0x18++0x03
line.long 0x00 "COMP0,Compare 0 Value"
else
group.long 0x18++0x0F
line.long 0x00 "COMP0,Compare 0 Value"
line.long 0x04 "COMP1,Compare 1 Value"
line.long 0x08 "COMP2,Compare 2 Value"
line.long 0x0C "COMP3,Compare 3 Value"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x4)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 9. " CMPEO1 ,Compare 1 event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " CMPEO0 ,Compare 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " CMP1 ,Compare 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " CMP0 ,Compare 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x01 1. " CMP1 ,Compare 1" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " CMP0 ,Compare 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
group.word 0x14++0x01
line.word 0x00 "PER,Counter Period"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
group.word 0x18++0x03
line.word 0x00 "COMP0,Compare 0 Value"
line.word 0x02 "COMP1,Compare 1 Value"
else
group.word 0x18++0x0D
line.word 0x00 "COMP0,Compare 0 Value"
line.word 0x02 "COMP1,Compare 1 Value"
line.word 0x04 "COMP2,Compare 2 Value"
line.word 0x06 "COMP3,Compare 3 Value"
line.word 0x08 "COMP4,Compare 4 Value"
line.word 0x0C "COMP5,Compare 5 Value"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x8)
group.word 0x00++0x05
line.word 0x00 "CTRL,Control"
bitfld.word 0x00 8.--11. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512,DIV1024,?..."
bitfld.word 0x00 7. " MATCHCLR ,Clear on match" "Not cleared,Cleared"
bitfld.word 0x00 6. " CLKREP ,Clock representation" "24 hour,12 hour (AM/PM)"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
textline " "
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.word 0x02 "READREQ,Read Request"
bitfld.word 0x02 15. " RREQ ,Read request" "Low,High"
bitfld.word 0x02 14. " RCONT ,Read continuously" "Disabled,Enabled"
textline " "
hexmask.word.byte 0x02 0.--5. 0x01 " ADDR ,Address"
line.word 0x04 "EVCTRL,Event Control"
bitfld.word 0x04 15. " OVFEO ,Overflow event output enable" "Disabled,Enabled"
bitfld.word 0x04 8. " ALARMEO0 ,Alarm 0 event output enable" "Disabled,Enabled"
bitfld.word 0x04 7. " PEREO7 ,Periodic interval 7 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 6. " PEREO6 ,Periodic interval 6 event output enable" "Disabled,Enabled"
bitfld.word 0x04 5. " PEREO5 ,Periodic interval 5 event output enable" "Disabled,Enabled"
bitfld.word 0x04 4. " PEREO4 ,Periodic interval 4 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 3. " PEREO3 ,Periodic interval 3 event output enable" "Disabled,Enabled"
bitfld.word 0x04 2. " PEREO2 ,Periodic interval 2 event output enable" "Disabled,Enabled"
bitfld.word 0x04 1. " PEREO1 ,Periodic interval 1 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x04 0. " PEREO0 ,Periodic interval 0 event output enable" "Disabled,Enabled"
group.byte 0x07++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 7. 0x00 7. -0x01 7. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 6. 0x00 6. -0x01 6. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x00 0. " ALARM0 ,Alarm 0 interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 7. " OVF ,Overflow" "No interrupt,Interrupt"
eventfld.byte 0x01 6. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " ALARM0 ,Alarm 0" "No interrupt,Interrupt"
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
group.byte 0x0B++0x01
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Run during debug" "Halted,Continue"
line.byte 0x01 "FREQCORR,Frequency Correction"
bitfld.byte 0x01 7. " SIGN ,Correction sign" "Increased,Decreased"
hexmask.byte 0x01 0.--6. 1. " VALUE ,Correction value"
if ((per.l(ad:0x40001400+0x10)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x10)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x10)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
else
group.long 0x10++0x03
line.long 0x00 "CLOCK,Clock Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ASAMD11*")||cpuis("ATSAMHA1G1?A")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*"))
if ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
else
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
endif
group.long 0x1C++0x03
line.long 0x00 "MASK0,Alarm 0 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
else
if ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x18)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
group.long 0x18++0x03
line.long 0x00 "ALARM0,Alarm 0 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x20)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x20)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x20)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
group.long 0x20++0x03
line.long 0x00 "ALARM1,Alarm 1 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x28)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x28)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x28)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
group.long 0x28++0x03
line.long 0x00 "ALARM2,Alarm 2 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
if ((per.l(ad:0x40001400+0x30)&0x3C00000)==(0x400000||0xC00000||0x1400000||0x1C00000||0x2000000||0x2800000||0x3000000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x30)&0x3C00000)==0x800000)
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
elif ((per.l(ad:0x40001400+0x30)&0x3C00000)==(0x800000||0x1000000||0x1800000||0x1C00000||0x2400000||0x2C00000))
if ((per.w(ad:0x40001400+0x00)&0x40)==0x40)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
elif ((per.w(ad:0x40001400+0x00)&0x40)==0x00)
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,-,-,-,-,-,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
else
group.long 0x30++0x03
line.long 0x00 "ALARM3,Alarm 3 Value"
hexmask.long.byte 0x00 26.--31. 1. " YEAR ,Year"
bitfld.long 0x00 22.--25. " MONTH ,Month" "-,January,February,March,April,May,June,July,August,September,October,November,December,-,-,-"
bitfld.long 0x00 17.--21. " DAY ,Day" "-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-"
textline " "
bitfld.long 0x00 12.--16. " HOUR ,Hour" "-,1AM,2AM,3AM,4AM,5AM,6AM,7AM,8AM,9AM,10AM,11AM,12AM,-,-,-,-,1PM,2PM,3PM,4PM,5PM,6PM,7PM,8PM,9PM,10PM,11PM,12PM,-,-,-"
bitfld.long 0x00 6.--11. " MINUTE ,Minute" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
bitfld.long 0x00 0.--5. " SECOND ,Second" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,-,-,-,-"
endif
group.long 0x1C++0x03
line.long 0x00 "MASK0,Alarm 0 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x24++0x03
line.long 0x00 "MASK1,Alarm 1 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x2C++0x03
line.long 0x00 "MASK2,Alarm 2 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
group.long 0x34++0x03
line.long 0x00 "MASK3,Alarm 3 Mask"
bitfld.long 0x00 0.--2. " SEL ,Alarm mask selection" "OFF,SS,MMSS,HHMMSS,DDHHMMSS,MMDDHHMMSS,YYMMDDHHMMSS,-"
endif
elif ((per.w(ad:0x40001400+0x00)&0xC)==0x0C)
group.word 0x00++0x01
line.word 0x00 "CTRL,Control"
textline " "
bitfld.word 0x00 2.--3. " MODE ,Operating mode" "Mode 0: 32-bit counter,Mode 1: 16-bit counter,Mode 2: clock/calendar,Disabled"
endif
width 0x0B
tree.end
tree "DMAC (Direct Memory Access Controller)"
base ad:0x41004800
sif cpuis("ATSAMHA1G*")
width 17.
sif cpuis("ATSAMC21N*")||cpuis("ATSAMC20N*")
if (((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x01)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:0x41004800+0x0C))&0x01)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
in
endif
endif
if (((per.w(ad:0x41004800+0x02))&0x3F00)==0x100)
group.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
rbitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
eventfld.byte 0x00 0. " CRCBUSY ,CRC module busy (CRC data input register is written)" "Not busy,Busy"
elif (((per.w(ad:0x41004800+0x02))&0x3F00)>=0x2000)
rgroup.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
bitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
bitfld.byte 0x00 0. " CRCBUSY ,CRC module busy (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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+0x40))&0x02)==0x00)
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x01)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:0x41004800+0x0C))&0x01)==0x00)
group.word 0x02++0x01
line.word 0x00 "CRCCTRL,CRC Control"
bitfld.word 0x00 8.--13. " CRCSRC ,CRC input source" "No action,I/O interface,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&0x04)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
elif (((per.b(ad:0x41004800+0x0C))&0x01)==0x00)&&(((per.w(ad:0x41004800))&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:0x41004800+0x0C))&0x01)==0x00)
group.long 0x08++0x03
line.long 0x00 "CRCCHKSUM,CRC Checksum"
else
hgroup.long 0x08++0x03
hide.long 0x00 "CRCCHKSUM,CRC Checksum"
in
endif
endif
if (((per.w(ad:0x41004800+0x02))&0x3F00)==0x100)
group.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
rbitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
eventfld.byte 0x00 0. " CRCBUSY ,CRC module busy (CRC data input register is written)" "Not busy,Busy"
elif (((per.w(ad:0x41004800+0x02))&0x3F00)>=0x2000)
rgroup.byte 0x0C++0x00
line.byte 0x00 "CRCSTATUS,CRC Status"
bitfld.byte 0x00 1. " CRCZERO ,CRC zero" "CRC source,CRC gen. completed"
bitfld.byte 0x00 0. " CRCBUSY ,CRC module busy (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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+0x40))&0x02)==0x00)
group.long 0x44++0x03
line.long 0x00 "CHCTRLB,Channel Control B"
bitfld.long 0x00 24.--25. " CMD ,Software command" "No action,Suspend,Resume,?..."
bitfld.long 0x00 22.--23. " TRIGACT ,Trigger action" "Block,,Beat,Transaction"
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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x41004800+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:0x40001800
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
rgroup.byte 0x01++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Not busy,Busy"
group.byte 0x02++0x01
line.byte 0x00 "NMICTRL,Non-Maskable Interrupt Control"
bitfld.byte 0x00 3. " NMIFILTEN ,Non-maskable interrupt filter enable" "Disabled,Enabled"
bitfld.byte 0x00 0.--2. " NMISENSE ,Non-maskable interrupt sense" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
line.byte 0x01 "NMIFLAG,Non-Maskable Interrupt Flag Status And Clear"
eventfld.byte 0x01 0. " NMI ,Non-maskable interrupt" "No interrupt,Interrupt"
group.long 0x04++0x03
line.long 0x00 "EVCTRL,Event Control"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
bitfld.long 0x00 17. " EXTINTEO17 ,External interrupt 17 event output enable" "Disabled,Enabled"
bitfld.long 0x00 16. " EXTINTEO16 ,External interrupt 16 event output enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x00 15. " EXTINTEO15 ,External interrupt 15 event output enable" "Disabled,Enabled"
bitfld.long 0x00 14. " EXTINTEO14 ,External interrupt 14 event output enable" "Disabled,Enabled"
bitfld.long 0x00 13. " EXTINTEO13 ,External interrupt 13 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12. " EXTINTEO12 ,External interrupt 12 event output enable" "Disabled,Enabled"
bitfld.long 0x00 11. " EXTINTEO11 ,External interrupt 11 event output enable" "Disabled,Enabled"
bitfld.long 0x00 10. " EXTINTEO10 ,External interrupt 10 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " EXTINTEO9 ,External interrupt 9 event output enable" "Disabled,Enabled"
bitfld.long 0x00 8. " EXTINTEO8 ,External interrupt 8 event output enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x00 7. " EXTINTEO7 ,External interrupt 7 event output enable" "Disabled,Enabled"
bitfld.long 0x00 6. " EXTINTEO6 ,External interrupt 6 event output enable" "Disabled,Enabled"
bitfld.long 0x00 5. " EXTINTEO5 ,External interrupt 5 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 4. " EXTINTEO4 ,External interrupt 4 event output enable" "Disabled,Enabled"
bitfld.long 0x00 3. " EXTINTEO3 ,External interrupt 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 2. " EXTINTEO2 ,External interrupt 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 1. " EXTINTEO1 ,External interrupt 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 0. " EXTINTEO0 ,External interrupt 0 event output enable" "Disabled,Enabled"
group.long 0x0C++0x0F
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " EXTINT17 ,External interrupt 17 enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " EXTINT16 ,External interrupt 16 enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " EXTINT15 ,External interrupt 15 enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " EXTINT14 ,External interrupt 14 enable" "Disabled,Enabled"
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " EXTINT13 ,External interrupt 13 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " EXTINT12 ,External interrupt 12 enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " EXTINT11 ,External interrupt 11 enable" "Disabled,Enabled"
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " EXTINT10 ,External interrupt 10 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " EXTINT9 ,External interrupt 9 enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " EXTINT8 ,External interrupt 8 enable" "Disabled,Enabled"
endif
textline " "
setclrfld.long 0x00 7. 0x00 7. -0x04 7. " EXTINT7 ,External interrupt 7 enable" "Disabled,Enabled"
setclrfld.long 0x00 6. 0x00 6. -0x04 6. " EXTINT6 ,External interrupt 6 enable" "Disabled,Enabled"
setclrfld.long 0x00 5. 0x00 5. -0x04 5. " EXTINT5 ,External interrupt 5 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 4. 0x00 4. -0x04 4. " EXTINT4 ,External interrupt 4 enable" "Disabled,Enabled"
setclrfld.long 0x00 3. 0x00 3. -0x04 3. " EXTINT3 ,External interrupt 3 enable" "Disabled,Enabled"
setclrfld.long 0x00 2. 0x00 2. -0x04 2. " EXTINT2 ,External interrupt 2 enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 1. 0x00 1. -0x04 1. " EXTINT1 ,External interrupt 1 enable" "Disabled,Enabled"
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " EXTINT0 ,External interrupt 0 enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
eventfld.long 0x04 17. " EXTINT17 ,External interrupt 17" "No interrupt,Interrupt"
eventfld.long 0x04 16. " EXTINT16 ,External interrupt 16" "No interrupt,Interrupt"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
eventfld.long 0x04 15. " EXTINT15 ,External interrupt 15" "No interrupt,Interrupt"
eventfld.long 0x04 14. " EXTINT14 ,External interrupt 14" "No interrupt,Interrupt"
eventfld.long 0x04 13. " EXTINT13 ,External interrupt 13" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 12. " EXTINT12 ,External interrupt 12" "No interrupt,Interrupt"
eventfld.long 0x04 11. " EXTINT11 ,External interrupt 11" "No interrupt,Interrupt"
eventfld.long 0x04 10. " EXTINT10 ,External interrupt 10" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 9. " EXTINT9 ,External interrupt 9" "No interrupt,Interrupt"
eventfld.long 0x04 8. " EXTINT8 ,External interrupt 8" "No interrupt,Interrupt"
endif
textline " "
eventfld.long 0x04 7. " EXTINT7 ,External interrupt 7" "No interrupt,Interrupt"
eventfld.long 0x04 6. " EXTINT6 ,External interrupt 6" "No interrupt,Interrupt"
eventfld.long 0x04 5. " EXTINT5 ,External interrupt 5" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 4. " EXTINT4 ,External interrupt 4" "No interrupt,Interrupt"
eventfld.long 0x04 3. " EXTINT3 ,External interrupt 3" "No interrupt,Interrupt"
eventfld.long 0x04 2. " EXTINT2 ,External interrupt 2" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 1. " EXTINT1 ,External interrupt 1" "No interrupt,Interrupt"
eventfld.long 0x04 0. " EXTINT0 ,External interrupt 0" "No interrupt,Interrupt"
line.long 0x08 "WAKEUPEN,Wake-Up Enable"
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
bitfld.long 0x08 17. " WAKEUPEN17 ,External interrupt 17 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 16. " WAKEUPEN16 ,External interrupt 16 Wake-up enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x08 15. " WAKEUPEN15 ,External interrupt 15 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 14. " WAKEUPEN14 ,External interrupt 14 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 13. " WAKEUPEN13 ,External interrupt 13 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 12. " WAKEUPEN12 ,External interrupt 12 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 11. " WAKEUPEN11 ,External interrupt 11 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 10. " WAKEUPEN10 ,External interrupt 10 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 9. " WAKEUPEN9 ,External interrupt 9 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 8. " WAKEUPEN8 ,External interrupt 8 wake-up enable" "Disabled,Enabled"
endif
textline " "
bitfld.long 0x08 7. " WAKEUPEN7 ,External interrupt 7 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 6. " WAKEUPEN6 ,External interrupt 6 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 5. " WAKEUPEN5 ,External interrupt 5 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 4. " WAKEUPEN4 ,External interrupt 4 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 3. " WAKEUPEN3 ,External interrupt 3 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 2. " WAKEUPEN2 ,External interrupt 2 wake-up enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 1. " WAKEUPEN1 ,External interrupt 1 wake-up enable" "Disabled,Enabled"
bitfld.long 0x08 0. " WAKEUPEN0 ,External interrupt 0 wake-up enable" "Disabled,Enabled"
line.long 0x0C "CONFIG0,Configuration 0"
bitfld.long 0x0C 31. " FILTEN7 ,Filter 7 enable" "Disabled,Enabled"
bitfld.long 0x0C 28.--30. " SENSE7 ,Input sense 7 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 27. " FILTEN6 ,Filter 6 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 24.--26. " SENSE6 ,Input sense 6 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 23. " FILTEN5 ,Filter 5 enable" "Disabled,Enabled"
bitfld.long 0x0C 20.--22. " SENSE5 ,Input sense 5 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x0C 19. " FILTEN4 ,Filter 4 enable" "Disabled,Enabled"
bitfld.long 0x0C 16.--18. " SENSE4 ,Input sense 4 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 15. " FILTEN3 ,Filter 3 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 12.--14. " SENSE3 ,Input sense 3 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 11. " FILTEN2 ,Filter 2 enable" "Disabled,Enabled"
bitfld.long 0x0C 8.--10. " SENSE2 ,Input sense 2 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x0C 7. " FILTEN1 ,Filter 1 enable" "Disabled,Enabled"
bitfld.long 0x0C 4.--6. " SENSE1 ,Input sense 1 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x0C 3. " FILTEN0 ,Filter 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 0.--2. " SENSE0 ,Input sense 0 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14")||cpuis("ATSAMDA1*"))
group.long 0x1C++0x03
line.long 0x00 "CONFIG1,Configuration 1"
bitfld.long 0x00 31. " FILTEN15 ,Filter 15 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE15 ,Input sense 15 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 27. " FILTEN14 ,Filter 14 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24.--26. " SENSE14 ,Input sense 14 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 23. " FILTEN13 ,Filter 13 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE13 ,Input sense 13 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 19. " FILTEN12 ,Filter 12 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE12 ,Input sense 12 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 15. " FILTEN11 ,Filter 11 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " SENSE11 ,Input sense 11 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 11. " FILTEN10 ,Filter 10 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE10 ,Input sense 10 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 7. " FILTEN9 ,Filter 9 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE9 ,Input sense 9 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 3. " FILTEN8 ,Filter 8 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " SENSE8 ,Input sense 8 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
endif
sif (cpuis("ATSAMR21*")||cpuis("ATSAMHA1G*"))
group.long 0x20++0x03
line.long 0x00 "CONFIG2,Configuration 2"
bitfld.long 0x00 31. " FILTEN31 ,Filter 31 enable" "Disabled,Enabled"
bitfld.long 0x00 28.--30. " SENSE31 ,Input sense 31 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 27. " FILTEN30 ,Filter 30 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 24.--26. " SENSE30 ,Input sense 30 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 23. " FILTEN29 ,Filter 29 enable" "Disabled,Enabled"
bitfld.long 0x00 20.--22. " SENSE29 ,Input sense 29 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 19. " FILTEN28 ,Filter 28 enable" "Disabled,Enabled"
bitfld.long 0x00 16.--18. " SENSE28 ,Input sense 28 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 15. " FILTEN27 ,Filter 27 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 12.--14. " SENSE27 ,Input sense 27 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 11. " FILTEN26 ,Filter 26 enable" "Disabled,Enabled"
bitfld.long 0x00 8.--10. " SENSE26 ,Input sense 26 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
textline " "
bitfld.long 0x00 7. " FILTEN25 ,Filter 25 enable" "Disabled,Enabled"
bitfld.long 0x00 4.--6. " SENSE25 ,Input sense 25 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
bitfld.long 0x00 3. " FILTEN24 ,Filter 24 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " SENSE24 ,Input sense 24 configuration" "NONE,RISE,FALL,BOTH,HIGH,LOW,?..."
endif
width 0x0B
tree.end
tree "NVMCTRL (Non-Volatile Memory Controller)"
base ad:0x41004000
width 15.
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
hexmask.word.byte 0x00 8.--15. 1. " CMDEX ,Command execution"
hexmask.word.byte 0x00 0.--6. 1. " CMD ,Command"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
sif (cpuis("ATSAMD20*"))
bitfld.long 0x00 18.--19. " CACHEDIS ,Cache disable - RWW EEPROM/NVM cache" "Yes/No,Yes/Yes,No/No,?..."
else
bitfld.long 0x00 18. " CACHEDIS ,Cache disable" "No,Yes"
endif
newline
bitfld.long 0x00 16.--17. " READMODE ,NVMCTRL read mode" "NO_MISS_PENALTY,LOW_POWER,DETERMINISTIC,?..."
bitfld.long 0x00 8.--9. " SLEEPPRM ,Power reduction mode during sleep" "WAKEONACCESS,WAKEUPINSTANT,,DISABLED"
newline
sif (cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMD20*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 7. " MANW ,Manual write" "Disabled,Enabled"
bitfld.long 0x00 1.--4. " RWS ,NVM read wait states" "0 wait states,1 wait state,2 wait states,3 wait states,4 wait states,5 wait states,6 wait states,7 wait states,8 wait states,9 wait states,10 wait states,11 wait states,12 wait states,13 wait states,14 wait states,15 wait states"
else
rbitfld.long 0x00 7. " MANW ,Manual write" "Disabled,Enabled"
rbitfld.long 0x00 1.--4. " RWS ,NVM read wait states" "0 wait states,1 wait state,2 wait states,3 wait states,4 wait states,5 wait states,6 wait states,7 wait states,8 wait states,9 wait states,10 wait states,11 wait states,12 wait states,13 wait states,14 wait states,15 wait states"
endif
rgroup.long 0x08++0x03
line.long 0x00 "PARAM,NVM Parameter"
sif (cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*"))
hexmask.long.word 0x00 20.--31. 1. " RWWEEP ,Read while write EEPROM emulation area pages"
bitfld.long 0x00 16.--18. " PSZ ,Page size" "8 bytes,16 bytes,32 bytes,64 bytes,128 bytes,256 bytes,512 bytes,1024 bytes"
else
bitfld.long 0x00 16.--18. " PSZ ,Page size" "8 bytes,16 bytes,32 bytes,64 bytes,128 bytes,256 bytes,512 bytes,1024 bytes"
textfld " "
endif
hexmask.long.word 0x00 0.--15. 1. " NVMP ,NVM pages"
group.byte 0x10++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 1. 0x00 1. -0x04 1. " ERROR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x04 0. " READY ,NVM ready interrupt enable" "Disabled,Enabled"
group.byte 0x14++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x00 1. " ERROR ,Error" "No error,Error"
rbitfld.byte 0x00 0. " READY ,NVM ready" "Not ready,Ready"
group.word 0x18++0x01
line.word 0x00 "STATUS,Status"
rbitfld.word 0x00 8. " SB ,Security bit status" "Inactive,Active"
eventfld.word 0x00 4. " NVME ,NVM error" "No error,Error"
eventfld.word 0x00 3. " LOCKE ,Lock error status" "Not locked,Locked"
newline
eventfld.word 0x00 2. " PROGE ,Programming error status" "No error,Error"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMR21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAML21*")||cpuis("ATSAML22*")||cpuis("ATSAMC20*")||cpuis("ATSAMC21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
newline
eventfld.word 0x00 1. " LOAD ,NVM page buffer active loading" "Not loaded,Loaded"
rbitfld.word 0x00 0. " PRM ,Power reduction mode" "Off,On"
else
newline
bitfld.word 0x00 1. " LOAD ,NVM page buffer active loading" "Not loaded,Loaded"
rbitfld.word 0x00 0. " PRM ,Power reduction mode" "Off,On"
endif
sif (cpuis("ATSAML21*")||cpuis("ATSAML22*"))
hgroup.long 0x1C++0x03
hide.long 0x00 "ADDR,Address"
elif (cpuis("ATSAMC20*")||cpuis("ATSAMC21*"))
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--20. 0x01 " ADDR ,NVM address"
elif (cpuis("ATSAMD21*")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--21. 0x01 " ADDR ,NVM address"
else
group.long 0x1C++0x03
line.long 0x00 "ADDR,Address"
hexmask.long.tbyte 0x00 0.--20. 0x01 " ADDR ,NVM address"
endif
rgroup.word 0x20++0x01
line.word 0x00 "LOCK,Lock Section"
bitfld.word 0x00 15. " LOCK[15] ,Region lock 15 bit" "Locked,Not locked"
bitfld.word 0x00 14. " [14] ,Region lock 14 bit" "Locked,Not locked"
bitfld.word 0x00 13. " [13] ,Region lock 13 bit" "Locked,Not locked"
newline
bitfld.word 0x00 12. " [12] ,Region lock 12 bit" "Locked,Not locked"
bitfld.word 0x00 11. " [11] ,Region lock 11 bit" "Locked,Not locked"
bitfld.word 0x00 10. " [10] ,Region lock 10 bit" "Locked,Not locked"
newline
bitfld.word 0x00 9. " [9] ,Region lock 9 bit" "Locked,Not locked"
bitfld.word 0x00 8. " [8] ,Region lock 8 bit" "Locked,Not locked"
bitfld.word 0x00 7. " [7] ,Region lock 7 bit" "Locked,Not locked"
newline
bitfld.word 0x00 6. " [6] ,Region lock 6 bit" "Locked,Not locked"
bitfld.word 0x00 5. " [5] ,Region lock 5 bit" "Locked,Not locked"
bitfld.word 0x00 4. " [4] ,Region lock 4 bit" "Locked,Not locked"
newline
bitfld.word 0x00 3. " [3] ,Region lock 3 bit" "Locked,Not locked"
bitfld.word 0x00 2. " [2] ,Region lock 2 bit" "Locked,Not locked"
bitfld.word 0x00 1. " [1] ,Region lock 1 bit" "Locked,Not locked"
newline
bitfld.word 0x00 0. " [0] ,Region lock 0 bit" "Locked,Not locked"
sif (cpuis("ATSAMC20*")||cpuis("ATSAMC21*"))
rgroup.long 0x28++0x07
line.long 0x00 "PBLDATA0,Page Buffer Load Data 0 Register"
line.long 0x04 "PBLDATA1,Page Buffer Load Data 1 Register"
endif
width 0x0B
tree.end
tree.open "PORT"
tree "PORT A"
base ad:0x41004400
width 17.
group.long 0x00++0x03
line.long 0x00 "DIR,Data Direction"
bitfld.long 0x00 31. " DIR31 ,PORT data direction 31" "Input,Output"
bitfld.long 0x00 30. " DIR30 ,PORT data direction 30" "Input,Output"
bitfld.long 0x00 28. " DIR28 ,PORT data direction 28" "Input,Output"
textline " "
bitfld.long 0x00 27. " DIR27 ,PORT data direction 27" "Input,Output"
bitfld.long 0x00 21. " DIR21 ,PORT data direction 21" "Input,Output"
bitfld.long 0x00 20. " DIR20 ,PORT data direction 20" "Input,Output"
textline " "
bitfld.long 0x00 19. " DIR19 ,PORT data direction 19" "Input,Output"
bitfld.long 0x00 18. " DIR18 ,PORT data direction 18" "Input,Output"
bitfld.long 0x00 17. " DIR17 ,PORT data direction 17" "Input,Output"
textline " "
bitfld.long 0x00 16. " DIR16 ,PORT data direction 16" "Input,Output"
bitfld.long 0x00 15. " DIR15 ,PORT data direction 15" "Input,Output"
bitfld.long 0x00 14. " DIR14 ,PORT data direction 14" "Input,Output"
textline " "
bitfld.long 0x00 11. " DIR11 ,PORT data direction 11" "Input,Output"
bitfld.long 0x00 10. " DIR10 ,PORT data direction 10" "Input,Output"
bitfld.long 0x00 9. " DIR09 ,PORT data direction 09" "Input,Output"
textline " "
bitfld.long 0x00 8. " DIR08 ,PORT data direction 08" "Input,Output"
bitfld.long 0x00 7. " DIR07 ,PORT data direction 07" "Input,Output"
bitfld.long 0x00 6. " DIR06 ,PORT data direction 06" "Input,Output"
textline " "
bitfld.long 0x00 5. " DIR05 ,PORT data direction 05" "Input,Output"
bitfld.long 0x00 4. " DIR04 ,PORT data direction 04" "Input,Output"
bitfld.long 0x00 3. " DIR03 ,PORT data direction 03" "Input,Output"
textline " "
bitfld.long 0x00 2. " DIR02 ,PORT data direction 02" "Input,Output"
bitfld.long 0x00 1. " DIR01 ,PORT data direction 01" "Input,Output"
bitfld.long 0x00 0. " DIR00 ,PORT data direction 00" "Input,Output"
group.long 0x0C++0x07
line.long 0x00 "DIR_SET/CLR,Data Direction Toggle"
setclrfld.long 0x00 31. -0x04 31. -0x08 31. " DIRTGL31 ,PORT data direction toggle 31" "Not toggled,Toggled"
setclrfld.long 0x00 30. -0x04 30. -0x08 30. " DIRTGL30 ,PORT data direction toggle 30" "Not toggled,Toggled"
setclrfld.long 0x00 28. -0x04 28. -0x08 28. " DIRTGL28 ,PORT data direction toggle 28" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 27. -0x04 27. -0x08 27. " DIRTGL27 ,PORT data direction toggle 27" "Not toggled,Toggled"
setclrfld.long 0x00 21. -0x04 21. -0x08 21. " DIRTGL21 ,PORT data direction toggle 21" "Not toggled,Toggled"
setclrfld.long 0x00 20. -0x04 20. -0x08 20. " DIRTGL20 ,PORT data direction toggle 20" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 19. -0x04 19. -0x08 19. " DIRTGL19 ,PORT data direction toggle 19" "Not toggled,Toggled"
setclrfld.long 0x00 18. -0x04 18. -0x08 18. " DIRTGL18 ,PORT data direction toggle 18" "Not toggled,Toggled"
setclrfld.long 0x00 17. -0x04 17. -0x08 17. " DIRTGL17 ,PORT data direction toggle 17" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 16. -0x04 16. -0x08 16. " DIRTGL16 ,PORT data direction toggle 16" "Not toggled,Toggled"
setclrfld.long 0x00 15. -0x04 15. -0x08 15. " DIRTGL15 ,PORT data direction toggle 15" "Not toggled,Toggled"
setclrfld.long 0x00 14. -0x04 14. -0x08 14. " DIRTGL14 ,PORT data direction toggle 14" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 11. -0x04 11. -0x08 11. " DIRTGL11 ,PORT data direction toggle 11" "Not toggled,Toggled"
setclrfld.long 0x00 10. -0x04 10. -0x08 10. " DIRTGL10 ,PORT data direction toggle 10" "Not toggled,Toggled"
setclrfld.long 0x00 9. -0x04 9. -0x08 9. " DIRTGL09 ,PORT data direction toggle 09" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 8. -0x04 8. -0x08 8. " DIRTGL08 ,PORT data direction toggle 08" "Not toggled,Toggled"
setclrfld.long 0x00 7. -0x04 7. -0x08 7. " DIRTGL07 ,PORT data direction toggle 07" "Not toggled,Toggled"
setclrfld.long 0x00 6. -0x04 6. -0x08 6. " DIRTGL06 ,PORT data direction toggle 06" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 5. -0x04 5. -0x08 5. " DIRTGL05 ,PORT data direction toggle 05" "Not toggled,Toggled"
setclrfld.long 0x00 4. -0x04 4. -0x08 4. " DIRTGL04 ,PORT data direction toggle 04" "Not toggled,Toggled"
setclrfld.long 0x00 3. -0x04 3. -0x08 3. " DIRTGL03 ,PORT data direction toggle 03" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 2. -0x04 2. -0x08 2. " DIRTGL02 ,PORT data direction toggle 02" "Not toggled,Toggled"
setclrfld.long 0x00 1. -0x04 1. -0x08 1. " DIRTGL01 ,PORT data direction toggle 01" "Not toggled,Toggled"
setclrfld.long 0x00 0. -0x04 0. -0x08 0. " DIRTGL00 ,PORT data direction toggle 00" "Not toggled,Toggled"
line.long 0x04 "OUT,Data Output Value"
bitfld.long 0x04 31. " OUT31 ,PORT data output value 31" "Low,High"
bitfld.long 0x04 30. " OUT30 ,PORT data output value 30" "Low,High"
bitfld.long 0x04 28. " OUT28 ,PORT data output value 28" "Low,High"
textline " "
bitfld.long 0x04 27. " OUT27 ,PORT data output value 27" "Low,High"
bitfld.long 0x04 21. " OUT21 ,PORT data output value 21" "Low,High"
bitfld.long 0x04 20. " OUT20 ,PORT data output value 20" "Low,High"
textline " "
bitfld.long 0x04 19. " OUT19 ,PORT data output value 19" "Low,High"
bitfld.long 0x04 18. " OUT18 ,PORT data output value 18" "Low,High"
bitfld.long 0x04 17. " OUT17 ,PORT data output value 17" "Low,High"
textline " "
bitfld.long 0x04 16. " OUT16 ,PORT data output value 16" "Low,High"
bitfld.long 0x04 15. " OUT15 ,PORT data output value 15" "Low,High"
bitfld.long 0x04 14. " OUT14 ,PORT data output value 14" "Low,High"
textline " "
bitfld.long 0x04 11. " OUT11 ,PORT data output value 11" "Low,High"
bitfld.long 0x04 10. " OUT10 ,PORT data output value 10" "Low,High"
bitfld.long 0x04 9. " OUT09 ,PORT data output value 09" "Low,High"
textline " "
bitfld.long 0x04 8. " OUT08 ,PORT data output value 08" "Low,High"
bitfld.long 0x04 7. " OUT07 ,PORT data output value 07" "Low,High"
bitfld.long 0x04 6. " OUT06 ,PORT data output value 06" "Low,High"
textline " "
bitfld.long 0x04 5. " OUT05 ,PORT data output value 05" "Low,High"
bitfld.long 0x04 4. " OUT04 ,PORT data output value 04" "Low,High"
bitfld.long 0x04 3. " OUT03 ,PORT data output value 03" "Low,High"
textline " "
bitfld.long 0x04 2. " OUT02 ,PORT data output value 02" "Low,High"
bitfld.long 0x04 1. " OUT01 ,PORT data output value 01" "Low,High"
bitfld.long 0x04 0. " OUT00 ,PORT data output value 00" "Low,High"
group.long 0x1C++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value Toggle"
setclrfld.long 0x00 31. -0x04 31. -0x08 31. " OUT31 ,PORT data output value toggle 31" "Not toggled,Toggled"
setclrfld.long 0x00 30. -0x04 30. -0x08 30. " OUT30 ,PORT data output value toggle 30" "Not toggled,Toggled"
setclrfld.long 0x00 28. -0x04 28. -0x08 28. " OUT28 ,PORT data output value toggle 28" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 27. -0x04 27. -0x08 27. " OUT27 ,PORT data output value toggle 27" "Not toggled,Toggled"
setclrfld.long 0x00 21. -0x04 21. -0x08 21. " OUT21 ,PORT data output value toggle 21" "Not toggled,Toggled"
setclrfld.long 0x00 20. -0x04 20. -0x08 20. " OUT20 ,PORT data output value toggle 19" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 19. -0x04 19. -0x08 19. " OUT19 ,PORT data output value toggle 20" "Not toggled,Toggled"
setclrfld.long 0x00 18. -0x04 18. -0x08 18. " OUT18 ,PORT data output value toggle 18" "Not toggled,Toggled"
setclrfld.long 0x00 17. -0x04 17. -0x08 17. " OUT17 ,PORT data output value toggle 17" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 16. -0x04 16. -0x08 16. " OUT16 ,PORT data output value toggle 16" "Not toggled,Toggled"
setclrfld.long 0x00 15. -0x04 15. -0x08 15. " OUT15 ,PORT data output value toggle 15" "Not toggled,Toggled"
setclrfld.long 0x00 14. -0x04 14. -0x08 14. " OUT14 ,PORT data output value toggle 14" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 11. -0x04 11. -0x08 11. " OUT11 ,PORT data output value toggle 11" "Not toggled,Toggled"
setclrfld.long 0x00 10. -0x04 10. -0x08 10. " OUT10 ,PORT data output value toggle 10" "Not toggled,Toggled"
setclrfld.long 0x00 9. -0x04 9. -0x08 9. " OUT09 ,PORT data output value toggle 09" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 8. -0x04 8. -0x08 8. " OUT08 ,PORT data output value toggle 08" "Not toggled,Toggled"
setclrfld.long 0x00 7. -0x04 7. -0x08 7. " OUT07 ,PORT data output value toggle 07" "Not toggled,Toggled"
setclrfld.long 0x00 6. -0x04 6. -0x08 6. " OUT06 ,PORT data output value toggle 06" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 5. -0x04 5. -0x08 5. " OUT05 ,PORT data output value toggle 05" "Not toggled,Toggled"
setclrfld.long 0x00 4. -0x04 4. -0x08 4. " OUT04 ,PORT data output value toggle 04" "Not toggled,Toggled"
setclrfld.long 0x00 3. -0x04 3. -0x08 3. " OUT03 ,PORT data output value toggle 03" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 2. -0x04 2. -0x08 2. " OUT02 ,PORT data output value toggle 02" "Not toggled,Toggled"
setclrfld.long 0x00 1. -0x04 1. -0x08 1. " OUT01 ,PORT data output value toggle 01" "Not toggled,Toggled"
setclrfld.long 0x00 0. -0x04 0. -0x08 0. " OUT00 ,PORT data output value toggle 00" "Not toggled,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 31. " IN31 ,PORT data input value 31" "Low,High"
bitfld.long 0x00 30. " IN30 ,PORT data input value 30" "Low,High"
bitfld.long 0x00 28. " IN28 ,PORT data input value 28" "Low,High"
textline " "
bitfld.long 0x00 27. " IN27 ,PORT data input value 27" "Low,High"
bitfld.long 0x00 21. " IN21 ,PORT data input value 21" "Low,High"
bitfld.long 0x00 20. " IN20 ,PORT data input value 20" "Low,High"
textline " "
bitfld.long 0x00 19. " IN19 ,PORT data input value 19" "Low,High"
bitfld.long 0x00 18. " IN18 ,PORT data input value 18" "Low,High"
bitfld.long 0x00 17. " IN17 ,PORT data input value 17" "Low,High"
textline " "
bitfld.long 0x00 16. " IN16 ,PORT data input value 16" "Low,High"
bitfld.long 0x00 15. " IN15 ,PORT data input value 15" "Low,High"
bitfld.long 0x00 14. " IN14 ,PORT data input value 14" "Low,High"
textline " "
bitfld.long 0x00 11. " IN11 ,PORT data input value 11" "Low,High"
bitfld.long 0x00 10. " IN10 ,PORT data input value 10" "Low,High"
bitfld.long 0x00 9. " IN9 ,PORT data input value 9" "Low,High"
textline " "
bitfld.long 0x00 8. " IN8 ,PORT data input value 8" "Low,High"
bitfld.long 0x00 7. " IN07 ,PORT data input value 07" "Low,High"
bitfld.long 0x00 6. " IN06 ,PORT data input value 06" "Low,High"
textline " "
bitfld.long 0x00 5. " IN05 ,PORT data input value 05" "Low,High"
bitfld.long 0x00 4. " IN04 ,PORT data input value 04" "Low,High"
bitfld.long 0x00 3. " IN03 ,PORT data input value 03" "Low,High"
textline " "
bitfld.long 0x00 2. " IN02 ,PORT data input value 02" "Low,High"
bitfld.long 0x00 1. " IN01 ,PORT data input value 01" "Low,High"
bitfld.long 0x00 0. " IN00 ,PORT data input value 00" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 31. " SAMPLING31 ,Input sampling mode 31" "Disabled,Enabled"
bitfld.long 0x00 30. " SAMPLING30 ,Input sampling mode 30" "Disabled,Enabled"
bitfld.long 0x00 28. " SAMPLING28 ,Input sampling mode 28" "Disabled,Enabled"
textline " "
bitfld.long 0x00 27. " SAMPLING27 ,Input sampling mode 27" "Disabled,Enabled"
bitfld.long 0x00 21. " SAMPLING21 ,Input sampling mode 21" "Disabled,Enabled"
bitfld.long 0x00 20. " SAMPLING20 ,Input sampling mode 20" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " SAMPLING19 ,Input sampling mode 19" "Disabled,Enabled"
bitfld.long 0x00 18. " SAMPLING18 ,Input sampling mode 18" "Disabled,Enabled"
bitfld.long 0x00 17. " SAMPLING17 ,Input sampling mode 17" "Disabled,Enabled"
textline " "
bitfld.long 0x00 16. " SAMPLING16 ,Input sampling mode 16" "Disabled,Enabled"
bitfld.long 0x00 15. " SAMPLING15 ,Input sampling mode 15" "Disabled,Enabled"
bitfld.long 0x00 14. " SAMPLING14 ,Input sampling mode 14" "Disabled,Enabled"
textline " "
bitfld.long 0x00 11. " SAMPLING11 ,Input sampling mode 11" "Disabled,Enabled"
bitfld.long 0x00 10. " SAMPLING10 ,Input sampling mode 10" "Disabled,Enabled"
bitfld.long 0x00 9. " SAMPLING09 ,Input sampling mode 09" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " SAMPLING08 ,Input sampling mode 08" "Disabled,Enabled"
bitfld.long 0x00 7. " SAMPLING07 ,Input sampling mode 07" "Disabled,Enabled"
bitfld.long 0x00 6. " SAMPLING06 ,Input sampling mode 06" "Disabled,Enabled"
textline " "
bitfld.long 0x00 5. " SAMPLING05 ,Input sampling mode 05" "Disabled,Enabled"
bitfld.long 0x00 4. " SAMPLING04 ,Input sampling mode 04" "Disabled,Enabled"
bitfld.long 0x00 3. " SAMPLING03 ,Input sampling mode 03" "Disabled,Enabled"
textline " "
bitfld.long 0x00 2. " SAMPLING02 ,Input sampling mode 02" "Disabled,Enabled"
bitfld.long 0x00 1. " SAMPLING01 ,Input sampling mode 01" "Disabled,Enabled"
bitfld.long 0x00 0. " SAMPLING00 ,Input sampling mode 00" "Disabled,Enabled"
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral multiplexer enable" "Disable,Enable"
bitfld.long 0x00 15. " PINMASK[15] ,Pin mask for multiple pin configuration bit 15" "No change,Change"
textline " "
bitfld.long 0x00 14. " [14] ,Pin mask for multiple pin configuration bit 14" "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin mask for multiple pin configuration bit 13" "No change,Change"
bitfld.long 0x00 12. " [12] ,Pin mask for multiple pin configuration bit 12" "No change,Change"
textline " "
bitfld.long 0x00 11. " [11] ,Pin mask for multiple pin configuration bit 11" "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin mask for multiple pin configuration bit 10" "No change,Change"
bitfld.long 0x00 9. " [9] ,Pin mask for multiple pin configuration bit 9" "No change,Change"
textline " "
bitfld.long 0x00 8. " [8] ,Pin mask for multiple pin configuration bit 8" "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin mask for multiple pin configuration bit 7" "No change,Change"
bitfld.long 0x00 6. " [6] ,Pin mask for multiple pin configuration bit 6" "No change,Change"
textline " "
bitfld.long 0x00 5. " [5] ,Pin mask for multiple pin configuration bit 5" "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin mask for multiple pin configuration bit 4" "No change,Change"
bitfld.long 0x00 3. " [3] ,Pin mask for multiple pin configuration bit 3" "No change,Change"
textline " "
bitfld.long 0x00 2. " [2] ,Pin mask for multiple pin configuration bit 2" "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin mask for multiple pin configuration bit 1" "No change,Change"
bitfld.long 0x00 0. " [0] ,Pin mask for multiple pin configuration bit 0" "No change,Change"
group.byte 0x30++0x05
line.byte 0x00 "PMUX0,Peripheral Multiplexing 0"
bitfld.byte 0x00 4.--7. " PA01 ,PORT A pin 01 multiplexing" "EXTINT[1],,,SERCOM1-PAD[1],TCC2-WO0[1],?..."
bitfld.byte 0x00 0.--3. " PA00 ,PORT A pin 00 multiplexing" "EXTINT[0],,,SERCOM1-PAD[0],TCC2-WO0[0],?..."
line.byte 0x01 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x01 4.--7. " PA03 ,PORT A pin 03" "EXTINT[3],(ADC/VREFA/DAC/VREFP)/AIN[1]/-/Y[1]/-,?..."
bitfld.byte 0x01 0.--3. " PA02 ,PORT A pin 02" "EXTINT[2],-/AIN[0]/-/Y[0]/VOUT,?..."
line.byte 0x02 "PMUX2,Peripheral Multiplexing 2"
bitfld.byte 0x02 4.--7. " PA05 ,PORT A pin 05 multiplexing" "EXTINT[5],-/AIN[5]/AIN[1]/Y[3]/-,,SERCOM0-PAD[1],TCC0-WO[1],?..."
bitfld.byte 0x02 0.--3. " PA04 ,PORT A pin 04 multiplexing" "EXTINT[4],ADC VREFP/AIN[4]/AIN[0]/Y[2]/-,,SERCOM0-PAD[0],TCC0-WO[0],?..."
line.byte 0x03 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x03 4.--7. " PA07 ,PORT A pin 07 multiplexing" "EXTINT[7],-/AIN[7]/AIN[3]/Y[5]/-,,SERCOM0-PAD[3],TCC1-WO[1],?..."
bitfld.byte 0x03 0.--3. " PA06 ,PORT A pin 06 multiplexing" "EXTINT[6],-/AIN[6]/AIN[2]/Y[4]/-,,SERCOM0-PAD[2],TCC1-WO[0],?..."
line.byte 0x04 "PMUX4,Peripheral Multiplexing 4"
bitfld.byte 0x04 4.--7. " PA09 ,PORT A pin 09 multiplexing" "EXTINT[9],-/AIN[17]/-/X[1]/-,SERCOM0-PAD[1],SERCOM2-PAD[1],TCC0-WO[1],TCC1-WO[3],?..."
bitfld.byte 0x04 0.--3. " PA08 ,PORT A pin 08 multiplexing" "NMI,-/AIN[16]/-/X[0]/-,SERCOM0-PAD[0],SERCOM2-PAD[0],TCC0-WO[0],TCC1-WO[2],?..."
line.byte 0x05 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x05 4.--7. " PA11 ,PORT A pin 11 internal multiplexing" "EXTINT[11],-/AIN[19]/-/X[3],SERCOM0-PAD[3],SERCOM2-PAD[3],TCC1-WO[1],TCC0/WO[3],,GCLK-IO[5],?..."
bitfld.byte 0x05 0.--3. " PA10 ,PORT A pin 10 internal multiplexing" "EXTINT[10],-/AIN[18]/-/X[2]/-,SERCOM0-PAD[2],SERCOM2-PAD[2],TCC1-WO[0],TCC0-WO[2],,GCLK-IO[4],?..."
group.byte 0x37++0x03
line.byte 0x00 "PMUX7,Peripheral Multiplexing 7"
bitfld.byte 0x00 4.--7. " PA15 ,PORT A pin 15 multiplexing" "EXTINT[15],,SERCOM2-PAD[3],SERCOM4-PAD[3],TC3-WO[1],TCC0-WO[5],,GCLK-IO[1],?..."
bitfld.byte 0x00 0.--3. " PA14 ,PORT A pin 14 multiplexing" "EXTINT[14],,SERCOM2-PAD[2],SERCOM4-PAD[2],TC3-WO[0],TCC0-WO[4],,GCLK-IO[0],?..."
line.byte 0x01 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x01 4.--7. " PA17 ,PORT A pin 17 multiplexing" "EXTINT[1],-/-/-/X[5]/-,SERCOM1-PAD[1],SERCOM3-PAD[1],TCC2-WO[1],TCC0-WO[7],,GCLK-IO[3],?..."
bitfld.byte 0x01 0.--3. " PA16 ,PORT A pin 16 multiplexing" "EXTINT[0],-/-/-/X[4]/-,SERCOM1-PAD[0],SERCOM3-PAD[0],TCC2-WO[0],TCC0-WO[6],,GCLK-IO[2],?..."
line.byte 0x02 "PMUX9,Peripheral Multiplexing 9"
bitfld.byte 0x02 4.--7. " PA19 ,PORT A pin 19 multiplexing" "EXTINT[3],-/-/-/X[7]/-,SERCOM1-PAD[3],SERCOM3-PAD[3],TC3-WO[1],TCC0-WO[3],,AC/CMP[1],?..."
bitfld.byte 0x02 0.--3. " PA18 ,PORT A pin 18 multiplexing" "EXTINT[2],-/-/-/X[6]/-,SERCOM1-PAD[2],SERCOM3-PAD[2],TC3-WO[0],TCC0-WO[2],,AC/CMP[0],?..."
line.byte 0x03 "PMUX10,Peripheral Multiplexing 10"
bitfld.byte 0x03 4.--7. " PA21 ,PORT A pin 21" "EXTINT[5],-/-/-/X[9]/-,SERCOM5-PAD[3],SERCOM3-PAD[3],TC7-WO[1],TCC0-WO[7],,GCLK-IO[5],?..."
bitfld.byte 0x03 0.--3. " PA20 ,PORT A pin 20" "EXTINT[4],-/-/-/X[8]/-,SERCOM5-PAD[2],SERCOM3-PAD[2],TC7-WO[0],TCC0-WO[6],,GCLK-IO[4],?..."
group.byte 0x3A++0x03
line.byte 0x01 "PMUX13,Peripheral Multiplexing 13"
bitfld.byte 0x01 4.--7. " PA27 ,PORT A pin 27 multiplexing" "EXTINT[15],,,,,,,GCLK-IO[0],?..."
line.byte 0x02 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x02 0.--3. " PA28 ,PORT A pin 28 multiplexing" "EXTINT[8],,,,,,,GCLK-IO[0],?..."
line.byte 0x03 "PMUX15,Peripheral Multiplexing 15"
bitfld.byte 0x03 4.--7. " PA31 ,PORT A pin 31 multiplexing" "EXTINT[11],,,SERCOM1-PAD[3],TCC1-WO[1],,SWDIO,?..."
bitfld.byte 0x03 0.--3. " PA30 ,PORT A pin 30 multiplexing" "EXTINT[10],,,SERCOM1-PAD[2],TCC1-WO[1],,SWD CLK,GCLK-IO[0],?..."
group.byte 0x40++0x0B
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG1,Pin Configuration 1"
bitfld.byte 0x01 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x01 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x01 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x01 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x02 "PINCFG2,Pin Configuration 2"
bitfld.byte 0x02 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x02 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x03 "PINCFG3,Pin Configuration 3"
bitfld.byte 0x03 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x03 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x03 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x03 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x04 "PINCFG4,Pin Configuration 4"
bitfld.byte 0x04 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x04 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x04 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x04 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x05 "PINCFG5,Pin Configuration 5"
bitfld.byte 0x05 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x05 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x05 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x05 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x06 "PINCFG6,Pin Configuration 6"
bitfld.byte 0x06 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x06 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x06 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x06 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x07 "PINCFG7,Pin Configuration 7"
bitfld.byte 0x07 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x07 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x07 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x07 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x08 "PINCFG8,Pin Configuration 8"
bitfld.byte 0x08 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x08 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x08 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x08 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x09 "PINCFG9,Pin Configuration 9"
bitfld.byte 0x09 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x09 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x09 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x09 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x0A "PINCFG10,Pin Configuration 10"
bitfld.byte 0x0A 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x0A 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x0A 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0A 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x0B "PINCFG11,Pin Configuration 11"
bitfld.byte 0x0B 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x0B 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x0B 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x0B 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4E++0x07
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG15,Pin Configuration 15"
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"
textline " "
bitfld.byte 0x01 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x02 "PINCFG16,Pin Configuration 16"
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"
textline " "
bitfld.byte 0x02 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x03 "PINCFG17,Pin Configuration 17"
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"
textline " "
bitfld.byte 0x03 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x04 "PINCFG18,Pin Configuration 18"
bitfld.byte 0x04 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x04 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x04 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x04 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x05 "PINCFG19,Pin Configuration 19"
bitfld.byte 0x05 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x05 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x05 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x05 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x06 "PINCFG20,Pin Configuration 20"
bitfld.byte 0x06 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x06 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x06 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x06 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x07 "PINCFG21,Pin Configuration 21"
bitfld.byte 0x07 6. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.byte 0x07 2. " PULLEN ,Pull enable" "Disabled,Enabled"
bitfld.byte 0x07 1. " INEN ,Input enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x07 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x5B++0x01
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG28,Pin Configuration 28"
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"
textline " "
bitfld.byte 0x01 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"
textline " "
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"
textline " "
bitfld.byte 0x01 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
width 0x0B
tree.end
tree "PORT B"
base ad:0x41004480
width 17.
group.long 0x00++0x03
line.long 0x00 "DIR,Data Direction"
bitfld.long 0x00 22. " DIR22 ,PORT data direction 22" "Input,Output"
bitfld.long 0x00 17. " DIR17 ,PORT data direction 17" "Input,Output"
bitfld.long 0x00 16. " DIR16 ,PORT data direction 16" "Input,Output"
textline " "
bitfld.long 0x00 11. " DIR11 ,PORT data direction 11" "Input,Output"
bitfld.long 0x00 10. " DIR10 ,PORT data direction 10" "Input,Output"
bitfld.long 0x00 7. " DIR07 ,PORT data direction 07" "Input,Output"
textline " "
bitfld.long 0x00 6. " DIR06 ,PORT data direction 06" "Input,Output"
bitfld.long 0x00 3. " DIR03 ,PORT data direction 03" "Input,Output"
group.long 0x0C++0x07
line.long 0x00 "DIR_SET/CLR,Data Direction Toggle"
setclrfld.long 0x00 22. -0x04 22. -0x08 22. " DIRTGL22 ,PORT data direction toggle 22" "Not toggled,Toggled"
setclrfld.long 0x00 17. -0x04 17. -0x08 17. " DIRTGL17 ,PORT data direction toggle 17" "Not toggled,Toggled"
setclrfld.long 0x00 16. -0x04 16. -0x08 16. " DIRTGL16 ,PORT data direction toggle 16" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 11. -0x04 11. -0x08 11. " DIRTGL11 ,PORT data direction toggle 11" "Not toggled,Toggled"
setclrfld.long 0x00 10. -0x04 10. -0x08 10. " DIRTGL10 ,PORT data direction toggle 10" "Not toggled,Toggled"
setclrfld.long 0x00 7. -0x04 7. -0x08 7. " DIRTGL07 ,PORT data direction toggle 07" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 6. -0x04 6. -0x08 6. " DIRTGL06 ,PORT data direction toggle 06" "Not toggled,Toggled"
setclrfld.long 0x00 3. -0x04 3. -0x08 3. " DIRTGL03 ,PORT data direction toggle 03" "Not toggled,Toggled"
line.long 0x04 "OUT,Data Output Value"
bitfld.long 0x04 22. " OUT22 ,PORT data output value 22" "Low,High"
bitfld.long 0x04 17. " OUT17 ,PORT data output value 17" "Low,High"
bitfld.long 0x04 16. " OUT16 ,PORT data output value 16" "Low,High"
textline " "
bitfld.long 0x04 11. " OUT11 ,PORT data output value 11" "Low,High"
bitfld.long 0x04 10. " OUT10 ,PORT data output value 10" "Low,High"
bitfld.long 0x04 7. " OUT07 ,PORT data output value 07" "Low,High"
textline " "
bitfld.long 0x04 6. " OUT06 ,PORT data output value 06" "Low,High"
bitfld.long 0x04 3. " OUT03 ,PORT data output value 03" "Low,High"
group.long 0x1C++0x03
line.long 0x00 "OUT_SET/CLR,Data Output Value Toggle"
setclrfld.long 0x00 22. -0x04 22. -0x08 22. " OUT22 ,PORT data output value toggle" "Not toggled,Toggled"
setclrfld.long 0x00 17. -0x04 17. -0x08 17. " OUT17 ,PORT data output value toggle 17" "Not toggled,Toggled"
setclrfld.long 0x00 16. -0x04 16. -0x08 16. " OUT16 ,PORT data output value toggle 16" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 11. -0x04 11. -0x08 11. " OUT11 ,PORT data output value toggle 11" "Not toggled,Toggled"
setclrfld.long 0x00 10. -0x04 10. -0x08 10. " OUT10 ,PORT data output value toggle 10" "Not toggled,Toggled"
setclrfld.long 0x00 7. -0x04 7. -0x08 7. " OUT07 ,PORT data output value toggle 07" "Not toggled,Toggled"
textline " "
setclrfld.long 0x00 6. -0x04 6. -0x08 6. " OUT06 ,PORT data output value toggle 06" "Not toggled,Toggled"
setclrfld.long 0x00 3. -0x04 3. -0x08 3. " OUT03 ,PORT data output value toggle 03" "Not toggled,Toggled"
rgroup.long 0x20++0x03
line.long 0x00 "IN,Data Input Value"
bitfld.long 0x00 22. " IN22 ,PORT data input value 22" "Low,High"
bitfld.long 0x00 17. " IN17 ,PORT data input value 17" "Low,High"
bitfld.long 0x00 16. " IN16 ,PORT data input value 16" "Low,High"
textline " "
bitfld.long 0x00 11. " IN11 ,PORT data input value 11" "Low,High"
bitfld.long 0x00 10. " IN10 ,PORT data input value 10" "Low,High"
bitfld.long 0x00 7. " IN07 ,PORT data input value 07" "Low,High"
textline " "
bitfld.long 0x00 6. " IN06 ,PORT data input value 06" "Low,High"
bitfld.long 0x00 3. " IN03 ,PORT data input value 03" "Low,High"
wgroup.long 0x24++0x03
line.long 0x00 "CTRL,Control"
bitfld.long 0x00 22. " SAMPLING22 ,Input sampling mode 22" "Disabled,Enabled"
bitfld.long 0x00 17. " SAMPLING17 ,Input sampling mode 17" "Disabled,Enabled"
bitfld.long 0x00 16. " SAMPLING16 ,Input sampling mode 16" "Disabled,Enabled"
textline " "
bitfld.long 0x00 11. " SAMPLING11 ,Input sampling mode 11" "Disabled,Enabled"
bitfld.long 0x00 10. " SAMPLING10 ,Input sampling mode 10" "Disabled,Enabled"
bitfld.long 0x00 7. " SAMPLING07 ,Input sampling mode 07" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SAMPLING06 ,Input sampling mode 06" "Disabled,Enabled"
bitfld.long 0x00 3. " SAMPLING03 ,Input sampling mode 03" "Disabled,Enabled"
wgroup.long 0x28++0x03
line.long 0x00 "WRCONFIG,Write Configuration"
bitfld.long 0x00 31. " HWSEL ,Half-Word select" "Lower 16 pins,Upper 16 pins"
bitfld.long 0x00 30. " WRPINCFG ,Write PINCFG" "No effect,Update"
bitfld.long 0x00 28. " WRPMUX ,Write PMUX" "No effect,Update"
textline " "
bitfld.long 0x00 24.--27. " PMUX ,Peripheral multiplexing" "PMUX0,PMUX1,PMUX2,PMUX3,PMUX4,PMUX5,PMUX6,PMUX7,PMUX8,PMUX9,PMUX10,PMUX11,PMUX12,PMUX13,PMUX14,PMUX15"
bitfld.long 0x00 22. " DRVSTR ,Output driver strength selection" "Normal,Stronger"
bitfld.long 0x00 18. " PULLEN ,Pull enable" "Disable,Enable"
textline " "
bitfld.long 0x00 17. " INEN ,Input enable" "Disable,Enable"
bitfld.long 0x00 16. " PMUXEN ,Peripheral multiplexer enable" "Disable,Enable"
bitfld.long 0x00 15. " PINMASK[15] ,Pin mask for multiple pin configuration bit 15" "No change,Change"
textline " "
bitfld.long 0x00 14. " [14] ,Pin mask for multiple pin configuration bit 14" "No change,Change"
bitfld.long 0x00 13. " [13] ,Pin mask for multiple pin configuration bit 13" "No change,Change"
bitfld.long 0x00 12. " [12] ,Pin mask for multiple pin configuration bit 12" "No change,Change"
textline " "
bitfld.long 0x00 11. " [11] ,Pin mask for multiple pin configuration bit 11" "No change,Change"
bitfld.long 0x00 10. " [10] ,Pin mask for multiple pin configuration bit 10" "No change,Change"
bitfld.long 0x00 9. " [9] ,Pin mask for multiple pin configuration bit 9" "No change,Change"
textline " "
bitfld.long 0x00 8. " [8] ,Pin mask for multiple pin configuration bit 8" "No change,Change"
bitfld.long 0x00 7. " [7] ,Pin mask for multiple pin configuration bit 7" "No change,Change"
bitfld.long 0x00 6. " [6] ,Pin mask for multiple pin configuration bit 6" "No change,Change"
textline " "
bitfld.long 0x00 5. " [5] ,Pin mask for multiple pin configuration bit 5" "No change,Change"
bitfld.long 0x00 4. " [4] ,Pin mask for multiple pin configuration bit 4" "No change,Change"
bitfld.long 0x00 3. " [3] ,Pin mask for multiple pin configuration bit 3" "No change,Change"
textline " "
bitfld.long 0x00 2. " [2] ,Pin mask for multiple pin configuration bit 2" "No change,Change"
bitfld.long 0x00 1. " [1] ,Pin mask for multiple pin configuration bit 1" "No change,Change"
bitfld.long 0x00 0. " [0] ,Pin mask for multiple pin configuration bit 0" "No change,Change"
group.byte 0x31++0x00
line.byte 0x00 "PMUX1,Peripheral Multiplexing 1"
bitfld.byte 0x00 4.--7. " PB03 ,PORT B pin 03" "EXTINT[3],-/AIN[11]-/Y[9]/-,,SERCOM5/PAD[1],TC6/WO[1],?..."
group.byte 0x33++0x00
line.byte 0x00 "PMUX3,Peripheral Multiplexing 3"
bitfld.byte 0x00 4.--7. " PB07 ,PORT B pin 07 multiplexing" "EXTINT[7],-/AIN[15]/-/Y[13]/-,?..."
bitfld.byte 0x00 0.--3. " PB06 ,PORT B pin 06 multiplexing" "EXTINT[6],-/AIN[14]/-/Y[12]/-,?..."
group.byte 0x35++0x00
line.byte 0x00 "PMUX5,Peripheral Multiplexing 5"
bitfld.byte 0x00 4.--7. " PB11 ,PORT B pin 11 internal multiplexing" "EXTINT[11],,,SERCOM4-PAD[3],TC5-WO[1],TCC0-WO[5],,GCLK-IO[5],?..."
bitfld.byte 0x00 0.--3. " PB10 ,PORT B pin 10 internal multiplexing" "EXTINT[10],,,SERCOM4-PAD[2],TC5-WO[0],TCC0-WO[4],,GCLK-IO[4],?..."
group.byte 0x38++0x00
line.byte 0x00 "PMUX8,Peripheral Multiplexing 8"
bitfld.byte 0x00 4.--7. " PB17 ,PORT B pin 17 multiplexing" "EXTINT[1],,SERCOM5-PAD[1],,TC6-WO[1],TCC0-WO[5],,GCLK-IO[3],?..."
bitfld.byte 0x00 0.--3. " PB16 ,PORT B pin 16 multiplexing" "EXTINT[0],,SERCOM5-PAD[0],,TC6-WO[0],TCC0-WO[4],,GCLK-IO[2],?..."
group.byte 0x3E++0x00
line.byte 0x00 "PMUX14,Peripheral Multiplexing 14"
bitfld.byte 0x00 0.--3. " PB22 ,Port B pin 22" "EXTINT[6],,,SERCOM5-PAD[2],TC7-WO[0],,,GCLK-IO[0],?..."
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x46++0x01
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG7,Pin Configuration 7"
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"
textline " "
bitfld.byte 0x01 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x4A++0x01
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG11,Pin Configuration 11"
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"
textline " "
bitfld.byte 0x01 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
group.byte 0x50++0x01
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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
line.byte 0x01 "PINCFG17,Pin Configuration 17"
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"
textline " "
bitfld.byte 0x01 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"
textline " "
bitfld.byte 0x00 0. " PMUXEN ,Peripheral multiplexer enable" "Disabled,Enabled"
width 0x0B
tree.end
tree.end
tree "EVSYS (Event System)"
base ad:0x42000400
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRL,Control"
bitfld.byte 0x00 4. " GCLKREQ ,Generic clock requests" "On event,Always on"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No effect,Reset"
group.long 0x04++0x03
line.long 0x00 "CHANNEL,Channel"
bitfld.long 0x00 26.--27. " EDGSEL ,Edge detection selection" "NO_EVT_OUTPUT,RISING_EDGE,FALLING_EDGE,BOTH_EDGES"
bitfld.long 0x00 24.--25. " PATH ,Path selection" "SYNCHRONOUS,RESYNCHRONIZED,ASYNCHRONOUS,?..."
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"||cpu()=="ATSAMD21G16L"
textline " "
bitfld.long 0x00 16.--22. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,,,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TCC1 OVF,TCC1 TRG,TCC1 CNT,TCC1_MCX0,TCC1_MCX1,TCC2 OVF,TCC2 TRG,TCC2 CNT,TCC2_MCX0,TCC2_MCX1,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,ADC WINMON,AC COMP0,AC COMP1,AC WIN0,DAC EMPTY,?..."
elif cpuis("ATSAMD21E*")
textline " "
bitfld.long 0x00 16.--22. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,,,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TCC1 OVF,TCC1 TRG,TCC1 CNT,TCC1_MCX0,TCC1_MCX1,TCC2 OVF,TCC2 TRG,TCC2 CNT,TCC2_MCX0,TCC2_MCX1,TC3 OVF,TC3 MC0,TC3 MC1,TC4 OVF,TC4 MC0,TC4 MC1,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,ADC WINMON,AC COMP0,AC COMP1,AC WIN0,DAC EMPTY,PTC EOC,PTC WCOMP,?..."
elif cpuis("ATSAMD21*")
textline " "
bitfld.long 0x00 16.--22. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,,,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TCC1 OVF,TCC1 TRG,TCC1 CNT,TCC1_MCX0,TCC1_MCX1,TCC2 OVF,TCC2 TRG,TCC2 CNT,TCC2_MCX0,TCC2_MCX1,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,ADC WINMON,AC COMP0,AC COMP1,AC WIN0,DAC EMPTY,PTC EOC,PTC WCOMP,?..."
elif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*"))
textline " "
bitfld.long 0x00 16.--21. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,ADC WINMON,AC COMP0,AC COMP1,AC WIN,DAC EMPTY,PTC EOC,PTC WCOMP,?..."
elif (cpuis("ATSAMHA1G*"))
textline " "
bitfld.long 0x00 16.--22. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,,,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TCC1 OVF,TCC1 TRG,TCC1 CNT,TCC1_MCX0,TCC1_MCX1,TCC2 OVF,TCC2 TRG,TCC2 CNT,TCC2_MCX0,TCC2_MCX1,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,ADC WINMON,AC COMP0,AC COMP1,AC WIN0,DAC EMPTY,PTC EOC,PTC WCOMP,AC1 COMP0,AC1 COMP1,AC1 WIN0,?..."
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
textline " "
bitfld.long 0x00 16.--21. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,,,,,,,,TC1 OVF,TC1 MC0,TC1 MC1,TC2 OVF,TC2 MC0,TC2 MC1,ADC RESRDY,ADC WINMON,?..."
elif cpuis("ATSAMDA1*")
textline " "
bitfld.long 0x00 16.--22. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,,,DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 OVF,TCC0 TRG,TCC0 CNT,TCC0_MCX0,TCC0_MCX1,TCC0_MCX2,TCC0_MCX3,TCC1 OVF,TCC1 TRG,TCC1 CNT,TCC1_MCX0,TCC1_MCX1,TCC2 OVF,TCC2 TRG,TCC2 CNT,TCC2_MCX0,TCC2_MCX1,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,ADC WINMON,AC COMP0,AC COMP1,AC WIN0,DAC EMPTY,,,AC1 COMP0,AC1 COMP1,AC1 WIN0,?..."
elif (cpuis("ATSAMD20G*")||cpuis("ATSAMD20E*"))
textline " "
bitfld.long 0x00 16.--23. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,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,TC5 OVF,TC5 MC0,TC5 MC1,,,,,,,ADC RESRDY,ADC WINMON,AC COMP0,AC COMP1,AC WIN,DAC EMPTY,PTC EOC,PTC WCOMP,?..."
else
textline " "
bitfld.long 0x00 16.--23. " EVGEN ,Event generator" "NONE,RTC CMP0,RTC CMP1,RTC OVF,RTC PER0,RTC PER1,RTC PER2,RTC PER3,RTC PER4,RTC PER5,RTC PER6,RTC PER7,EIC EXTINT0,EIC EXTINT1,EIC EXTINT2,EIC EXTINT3,EIC EXTINT4,EIC EXTINT5,EIC EXTINT6,EIC EXTINT7,EIC EXTINT8,EIC EXTINT9,EIC EXTINT10,EIC EXTINT11,EIC EXTINT12,EIC EXTINT13,EIC EXTINT14,EIC EXTINT15,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,TC5 OVF,TC5 MC0,TC5 MC1,TC6 OVF,TC6 MC0,TC6 MC1,TC7 OVF,TC7 MC0,TC7 MC1,ADC RESRDY,ADC WINMON,AC COMP0,AC COMP1,AC WIN,DAC EMPTY,PTC EOC,PTC WCOMP,?..."
endif
textline " "
bitfld.long 0x00 8. " SWEVT ,Software event" "No effect,Triggered"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMHA1G*"))
textline " "
bitfld.long 0x00 0.--3. " CHANNEL ,Channel selection" "0,1,2,3,4,5,6,7,8,9,10,11,12,?..."
elif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14"))
textline " "
bitfld.long 0x00 0.--2. " CHANNEL ,Channel selection" "0,1,2,3,4,5,?..."
elif cpuis("ATSAMDA1*")
textline " "
bitfld.long 0x00 0.--3. " CHANNEL ,Channel selection" "0,1,2,3,4,5,6,7,8,9,10,11,?..."
else
textline " "
bitfld.long 0x00 0.--7. " CHANNEL ,Channel selection" "0,1,2,3,4,5,6,7,?..."
endif
group.word 0x08++0x01
line.word 0x00 "USER,User Multiplexer"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMDA1*"))
bitfld.word 0x00 8.--12. " CHANNEL ,Channel event selection" "No channel,0,1,2,3,4,5,6,7,8,9,10,11,?..."
sif cpu()=="ATSAMD21E15L"||cpu()=="ATSAMD21E16L"
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 EV0,TCC0 EV1,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 EV0,TCC1 EV1,TCC1 MC0,TCC1 MC1,TCC2 EV0,TCC2 EV1,TCC2 MC0,TCC2 MC1,TC3,TC4,TC5,,,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,?..."
elif cpu()=="ATSAMD21G16L"
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 EV0,TCC0 EV1,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 EV0,TCC1 EV1,TCC1 MC0,TCC1 MC1,TCC2 EV0,TCC2 EV1,TCC2 MC0,TCC2 MC1,TC3,TC4,TC5,TC6,TC7,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,?..."
elif cpuis("ATSAMD21E*")
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 EV0,TCC0 EV1,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 EV0,TCC1 EV1,TCC1 MC0,TCC1 MC1,TCC2 EV0,TCC2 EV1,TCC2 MC0,TCC2 MC1,TC3,TC4,TC5,,,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,PTC STCONV,?..."
else
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 EV0,TCC0 EV1,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TCC1 EV0,TCC1 EV1,TCC1 MC0,TCC1 MC1,TCC2 EV0,TCC2 EV1,TCC2 MC0,TCC2 MC1,TC3,TC4,TC5,TC6,TC7,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,PTC STCONV,?..."
endif
textline " "
elif cpuis("ATSAMD09C13")||cpuis("ATSAMD09D14")
textline " "
bitfld.word 0x00 8.--11. " CHANNEL ,Channel event selection" "No channel,1,2,3,4,5,?..."
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,,,,,,,TC1_EVU,TC2_EVU,ADC_START,ADC_SYNC,?..."
elif (cpuis("ATSAMD10*")||cpuis("ATSAMD11*"))
textline " "
bitfld.word 0x00 8.--11. " CHANNEL ,Channel event selection" "No channel,1,2,3,4,5,?..."
bitfld.word 0x00 0.--4. " USER ,User multiplexer selection" "DMAC CH0,DMAC CH1,DMAC CH2,DMAC CH3,TCC0 EV0,TCC0 EV1,TCC0 MC0,TCC0 MC1,TCC0 MC2,TCC0 MC3,TC1_EVU,TC2_EVU,ADC START,ADC SYNC,AC_SOC_0,AC_SOC_1,DAC START,PTC_STCONV,?..."
elif (cpuis("ATSAMD20G*")||cpuis("ATSAMD20E*"))
textline " "
bitfld.word 0x00 8.--15. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
bitfld.word 0x00 0.--7. " USER ,User multiplexer selection" "TC0,TC1,TC2,TC3,TC4,TC5,,,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,PTC STCONV,?..."
else
textline " "
bitfld.word 0x00 8.--15. " CHANNEL ,Channel event selection" "None,0,1,2,3,4,5,6,7,?..."
bitfld.word 0x00 0.--7. " USER ,User multiplexer selection" "TC0,TC1,TC2,TC3,TC4,TC5,TC6,TC7,ADC START,ADC SYNC,AC COMP0,AC COMP1,DAC START,PTC STCONV,?..."
endif
rgroup.long 0x0C++0x03
line.long 0x00 "CHSTATUS,Channel Status"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMDA1*"))
bitfld.long 0x00 27. " CHBUSY11 ,Channel 11 busy" "Idle,Busy"
bitfld.long 0x00 26. " CHBUSY10 ,Channel 10 busy" "Idle,Busy"
bitfld.long 0x00 25. " CHBUSY9 ,Channel 9 busy" "Idle,Busy"
textline " "
bitfld.long 0x00 24. " CHBUSY8 ,Channel 8 busy" "Idle,Busy"
bitfld.long 0x00 19. " USRRDY11 ,Channel 11 user ready" "Not ready,Ready"
bitfld.long 0x00 18. " USRRDY10 ,Channel 10 user ready" "Not ready,Ready"
textline " "
bitfld.long 0x00 17. " USRRDY9 ,Channel 9 user ready" "Not ready,Ready"
bitfld.long 0x00 16. " USRRDY8 ,Channel 8 user ready" "Not ready,Ready"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
bitfld.long 0x00 15. " CHBUSY7 ,Channel busy 7" "Idle,Busy"
bitfld.long 0x00 14. " CHBUSY6 ,Channel busy 6" "Idle,Busy"
textline " "
endif
bitfld.long 0x00 13. " CHBUSY5 ,Channel busy 5" "Idle,Busy"
bitfld.long 0x00 12. " CHBUSY4 ,Channel busy 4" "Idle,Busy"
bitfld.long 0x00 11. " CHBUSY3 ,Channel busy 3" "Idle,Busy"
textline " "
bitfld.long 0x00 10. " CHBUSY2 ,Channel busy 2" "Idle,Busy"
bitfld.long 0x00 9. " CHBUSY1 ,Channel busy 1" "Idle,Busy"
bitfld.long 0x00 8. " CHBUSY0 ,Channel busy 0" "Idle,Busy"
textline " "
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
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"
textline " "
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"
textline " "
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++0x07
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMDA1*"))
setclrfld.long 0x00 27. 0x00 27. -0x04 27. " EVD11 ,Channel 11 event detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 26. 0x00 26. -0x04 26. " EVD10 ,Channel 10 event detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 25. 0x00 25. -0x04 25. " EVD9 ,Channel 9 event detection interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 24. 0x00 24. -0x04 24. " EVD8 ,Channel 8 event detection interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " OVR11 ,Channel 11 overrun interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " OVR10 ,Channel 10 overrun interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " OVR9 ,Channel 9 overrun interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " OVR8 ,Channel 8 overrun interrupt enable" "Disabled,Enabled"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " EVD7 ,Event detected channel 7 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " EVD6 ,Event detected channel 6 interrupt enable" "Disabled,Enabled"
textline " "
endif
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " EVD5 ,Event detected channel 5 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " EVD4 ,Event detected channel 4 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " EVD3 ,Event detected channel 3 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 10. 0x00 10. -0x04 10. " EVD2 ,Event detected channel 2 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 9. 0x00 9. -0x04 9. " EVD1 ,Event detected channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 8. 0x00 8. -0x04 8. " EVD0 ,Event detected channel 0 interrupt enable" "Disabled,Enabled"
textline " "
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
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"
textline " "
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"
textline " "
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"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMHA1G*")||cpuis("ATSAMDA1*"))
eventfld.long 0x04 27. " EVD11 ,Channel 11 event detection" "No interrupt,Interrupt"
eventfld.long 0x04 26. " EVD10 ,Channel 10 event detection" "No interrupt,Interrupt"
eventfld.long 0x04 25. " EVD9 ,Channel 9 event detection" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 24. " EVD8 ,Channel 8 event detection" "No interrupt,Interrupt"
eventfld.long 0x04 19. " OVR11 ,Channel 11 overrun" "No interrupt,Interrupt"
eventfld.long 0x04 18. " OVR10 ,Channel 10 overrun" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 17. " OVR9 ,Channel 9 overrun" "No interrupt,Interrupt"
eventfld.long 0x04 16. " OVR8 ,Channel 8 overrun" "No interrupt,Interrupt"
textline " "
endif
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
eventfld.long 0x04 15. " EVD7 ,Event detected channel 7" "No interrupt,Interrupt"
eventfld.long 0x04 14. " EVD6 ,Event detected channel 6" "No interrupt,Interrupt"
textline " "
endif
eventfld.long 0x04 13. " EVD5 ,Event detected channel 5" "No interrupt,Interrupt"
eventfld.long 0x04 12. " EVD4 ,Event detected channel 4" "No interrupt,Interrupt"
eventfld.long 0x04 11. " EVD3 ,Event detected channel 3" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 10. " EVD2 ,Event detected channel 2" "No interrupt,Interrupt"
eventfld.long 0x04 9. " EVD1 ,Event detected channel 1" "No interrupt,Interrupt"
eventfld.long 0x04 8. " EVD0 ,Event detected channel 0" "No interrupt,Interrupt"
textline " "
sif (!cpuis("ATSAMD10*")&&!cpuis("ATSAMD11*")&&!cpuis("ATSAMD09C13")&&!cpuis("ATSAMD09D14"))
eventfld.long 0x04 7. " OVR7 ,Overrun channel 7 interrupt" "No interrupt,Interrupt"
eventfld.long 0x04 6. " OVR6 ,Overrun channel 6 interrupt" "No interrupt,Interrupt"
textline " "
endif
eventfld.long 0x04 5. " OVR5 ,Overrun channel 5 interrupt" "No interrupt,Interrupt"
eventfld.long 0x04 4. " OVR4 ,Overrun channel 4 interrupt" "No interrupt,Interrupt"
eventfld.long 0x04 3. " OVR3 ,Overrun channel 3 interrupt" "No interrupt,Interrupt"
textline " "
eventfld.long 0x04 2. " OVR2 ,Overrun channel 2 interrupt" "No interrupt,Interrupt"
eventfld.long 0x04 1. " OVR1 ,Overrun channel 1 interrupt" "No interrupt,Interrupt"
eventfld.long 0x04 0. " OVR0 ,Overrun channel 0 interrupt" "No interrupt,Interrupt"
width 0x0B
tree.end
tree.open "SERCOM (Serial Communication Interface)"
tree "SERCOM0"
base ad:0x42000800
width 17.
if ((per.l(ad:0x42000800+0x00)&0x1C)==0x00)||((per.l(ad:0x42000800+0x00)&0x1C)==0x04)||((per.l(ad:0x42000800+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42000800+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42000800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000800+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42000800+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000800+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42000800+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42000800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42000800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000800+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42000800+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000800+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42000800+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x08)||((per.l(ad:0x42000800+0x00)&0x1C)==0x0C)
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,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x10)
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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42000800+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42000800+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree "SERCOM1"
base ad:0x42000C00
width 17.
if ((per.l(ad:0x42000C00+0x00)&0x1C)==0x00)||((per.l(ad:0x42000C00+0x00)&0x1C)==0x04)||((per.l(ad:0x42000C00+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42000C00+0x00)&0x02)==0x02)
if (((per.l(ad:0x42000C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42000C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000C00+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42000C00+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000C00+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42000C00+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42000C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42000C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42000C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42000C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000C00+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42000C00+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42000C00+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42000C00+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x08)||((per.l(ad:0x42000C00+0x00)&0x1C)==0x0C)
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,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42000C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42000C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x10)
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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42000C00+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42000C00+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree "SERCOM2"
base ad:0x42001000
width 17.
if ((per.l(ad:0x42001000+0x00)&0x1C)==0x00)||((per.l(ad:0x42001000+0x00)&0x1C)==0x04)||((per.l(ad:0x42001000+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42001000+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001000+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001000+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001000+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001000+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001000+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001000+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42001000+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001000+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001000+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001000+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001000+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001000+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001000+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001000+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x08)||((per.l(ad:0x42001000+0x00)&0x1C)==0x0C)
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,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001000+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001000+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001000+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001000+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x10)
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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001000+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42001000+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree "SERCOM3"
base ad:0x42001400
width 17.
if ((per.l(ad:0x42001400+0x00)&0x1C)==0x00)||((per.l(ad:0x42001400+0x00)&0x1C)==0x04)||((per.l(ad:0x42001400+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42001400+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001400+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001400+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001400+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001400+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001400+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001400+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42001400+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001400+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001400+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001400+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001400+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001400+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001400+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001400+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x08)||((per.l(ad:0x42001400+0x00)&0x1C)==0x0C)
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,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001400+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001400+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001400+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x10)
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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001400+0x00))&0x02)==0x02)
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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001400+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001400+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42001400+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree "SERCOM4"
base ad:0x42001800
width 17.
if ((per.l(ad:0x42001800+0x00)&0x1C)==0x00)||((per.l(ad:0x42001800+0x00)&0x1C)==0x04)||((per.l(ad:0x42001800+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42001800+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001800+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001800+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001800+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001800+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42001800+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001800+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001800+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001800+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001800+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001800+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001800+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x08)||((per.l(ad:0x42001800+0x00)&0x1C)==0x0C)
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,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001800+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001800+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001800+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x10)
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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001800+0x00))&0x02)==0x02)
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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001800+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001800+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42001800+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree "SERCOM5"
base ad:0x42001C00
width 17.
if ((per.l(ad:0x42001C00+0x00)&0x1C)==0x00)||((per.l(ad:0x42001C00+0x00)&0x1C)==0x04)||((per.l(ad:0x42001C00+0x00)&0x1C)==0x1C)
if ((per.l(ad:0x42001C00+0x00)&0x02)==0x02)
if (((per.l(ad:0x42001C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
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 " "
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],?..."
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
rbitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
rbitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
rbitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
sif (!cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
rbitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
rbitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
rbitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
sif (cpuis("ATSAMHA1G*"))
rbitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
textline " "
else
textline " "
rbitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
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"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001C00+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001C00+0x08)&0x10000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001C00+0x00)&0x10000000)==0x00)
rgroup.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
textline " "
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001C00+0x00))&0x4000)==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. 0x1 " BAUD ,Baud Value"
endif
else
if (((per.l(ad:0x42001C00+0x00))&0xE000)==0x00)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x2000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "7-8-9,9-10-11,11-12-13,13-14-15"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
elif (((per.l(ad:0x42001C00+0x00))&0xE000)==0x4000)||(((per.l(ad:0x42001C00+0x00))&0xE000)==0x6000)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 22.--23. " SAMPA ,Sample Adjustment" "3-4-5,4-5-6,5-6-7,6-7-8"
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
textline " "
bitfld.long 0x00 16.--17. " TXPO ,Transmit Data Pinout" "SERCOM PAD[0]/SERCOM PAD[1]/-/-,SERCOM PAD[2]/SERCOM PAD[3]/-/-,SERCOM PAD[0]/-/SERCOM PAD[2]/SERCOM PAD[3],?..."
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 30. " DORD ,Data Order" "MSB,LSB"
bitfld.long 0x00 29. " CPOL ,Clock Polarity" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CMODE ,Communication Mode" "Asynchronous,Synchronous"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "USART frame,USART frame with parity,,,Auto-baud,Auto-baud with parity,,ISO 7816,?..."
bitfld.long 0x00 20.--21. " RXPO ,Receive Data Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
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],?..."
textline " "
bitfld.long 0x00 13.--15. " SAMPR ,Sample Rate" "16x arithmetic,16x fractional,8x arithmetic,8x fractional,3x arithmetic,?..."
textline " "
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 10. " RXINV ,Receive Data Invert" "Not inverted,Inverted"
bitfld.long 0x00 9. " TXINV ,Transmit Data Invert" "Not inverted,Inverted"
textline " "
endif
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
endif
textline " "
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 16. " TXEN ,Transmitter Enable" "Disabled,Enabled"
bitfld.long 0x00 13. " PMODE ,Parity Mode" "Even parity,Odd parity"
textline " "
bitfld.long 0x00 10. " ENC ,Encoding Format" "Not encoded,Encoded"
textline " "
sif (cpuis("ATSAMHA1G*"))
bitfld.long 0x00 9. " SFDE ,Start Of Frame Enable" "Disabled,Enabled"
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
else
textline " "
bitfld.long 0x00 8. " COLDEN ,Collision Detection Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " SBMODE ,Stop Bit Mode" "One stop bit,Two stop bits"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8 bits,9 bits,,,,5 bits,6 bits,7 bits"
endif
sif (!cpuis("ATSAMHA1G*"))
if ((per.l(ad:0x42001C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001C00+0x00)&0x10000000)==0x00)&&((per.l(ad:0x42001C00+0x08)&0x10000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 17. " DSNACK ,Disable Successive Not Acknowledge" "Every error,On error counter overflow"
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
textline " "
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x1C)&&((per.l(ad:0x42001C00+0x00)&0x10000000)==0x00)
group.long 0x08++0x03
line.long 0x00 "CTRLC,Control C"
bitfld.long 0x00 20.--22. " MAXITER ,Maximum Iterations" "Every error,On error counter overflow,?..."
bitfld.long 0x00 16. " INACK ,Inhibit Not Acknowledge" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " GTIME ,Guard Time" "Disabled,Enabled,?..."
else
hgroup.long 0x08++0x03
hide.long 0x00 "CTRLC,Control C"
endif
endif
if (((per.l(ad:0x42001C00+0x00))&0x4000)==0x00)
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
else
group.word 0x0C++0x01
line.word 0x00 "BAUD,Baud"
bitfld.word 0x00 13.--15. " FP ,Fractional Part" "0,1,2,3,4,5,6,7"
hexmask.word 0x00 0.--12. 0x1 " BAUD ,Baud Value"
endif
endif
textline " "
group.byte 0x0E++0x00
line.byte 0x00 "RXPL,Receive Pulse Length Register"
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,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"
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"
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"
textline " "
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
sif (!cpuis("ATSAMHA1G*"))
eventfld.word 0x00 6. " ITER ,Maximum Number of Repetitions Reached" "Disabled,Enabled"
endif
textline " "
eventfld.word 0x00 5. " COLL ,Collision Detected" "Disabled,Enabled"
eventfld.word 0x00 4. " ISF ,Inconsistent Sync Field" "Disabled,Auto-baud"
textline " "
rbitfld.word 0x00 3. " CTS ,Clear to Send" "Disabled,Enabled"
eventfld.word 0x00 2. " BUFOVF ,Buffer Overflow" "Not overflow,Overflow"
eventfld.word 0x00 1. " FERR ,Frame Error" "No error,Error"
textline " "
eventfld.word 0x00 0. " PERR ,Parity Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
sif (!cpuis("ATSAMHA1G*"))
bitfld.long 0x00 3. " RXERRCNT ,Receive Error Count" "Not busy,Busy"
endif
textline " "
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
sif (!cpuis("ATSAMHA1G*"))
hgroup.byte 0x20++0x00
hide.byte 0x00 "RXERRCNT,Receive Error Count"
in
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x08)||((per.l(ad:0x42001C00+0x00)&0x1C)==0x0C)
if (((per.l(ad:0x42001C00+0x00))&0x02)==0x02)
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" "Rising/Falling,Falling/Rising"
rbitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
rbitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
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/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
rbitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
rbitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
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"
rbitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
rbitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
rbitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
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" "Rising/Falling,Falling/Rising"
bitfld.long 0x00 28. " CPHA ,SPI transfer mode (Leading Edge/Trailing Edge)" "Sampled/changed,Changed/sampled"
textline " "
bitfld.long 0x00 24.--27. " FORM ,Frame Format" "SPI,,SPI_ADDR,?..."
bitfld.long 0x00 20.--21. " DIPO ,Data In Pinout" "PAD[0],PAD[1],PAD[2],PAD[3]"
bitfld.long 0x00 16.--17. " DOPO ,Data Out Pinout (DO/SCK/SLAVE_SS/MASTER_SS)" "PAD[0]/PAD[1]/PAD[2],PAD[2]/PAD[3]/PAD[1],PAD[3]/PAD[1]/PAD[2],PAD[0]/PAD[3]/PAD[1]"
textline " "
bitfld.long 0x00 8. " IBON ,Immediate Buffer Overflow Notification" "Occurred in data stream,Upon buffer overflow"
bitfld.long 0x00 7. " RUNSTDBY ,Run In Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
if (((per.l(ad:0x42001C00+0x00)&0xF000000)==0x2000000)&&((per.l(ad:0x42001C00+0x00)&0x1C)==0x08))
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 17. " RXEN ,Receiver Enable" "Disabled,Enabled"
bitfld.long 0x00 14.--15. " AMODE ,Address Mode" "MASK,2_ADDRS,RANGE,?..."
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "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"
bitfld.long 0x00 13. " MSSEN ,Master Slave Select Enable" "Disabled,Enabled"
bitfld.long 0x00 9. " SSDE ,Slave Select Low Detect Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 6. " PLOADEN ,Slave Data Preload Enable" "Disabled,Enabled"
bitfld.long 0x00 0.--2. " CHSIZE ,Character Size" "8BIT,9BIT,?..."
endif
group.byte 0x0C++0x00
line.byte 0x00 "BAUD,Baud Rate"
endif
group.byte 0x16++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set"
setclrfld.byte 0x00 7. 0x00 7. -0x02 7. " ERROR ,Error Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x02 3. " SSL ,Slave Select Low Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x02 2. " RXC ,Receive Complete Interrupt Enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x02 1. " TXC ,Transmit Complete Interrupt Enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x02 0. " DRE ,Data Register Empty Interrupt Enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status and Clear"
eventfld.byte 0x00 7. " ERROR ,Error Interrupt flag" "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"
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,Syncbusy Register"
bitfld.long 0x00 2. " CTRLB ,CTRLB Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001C00+0x00))&0x02)==0x02)
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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
else
group.long 0x24++0x03
line.long 0x00 "ADDR,Address"
bitfld.long 0x00 23. " [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"
textline " "
bitfld.long 0x00 20. " [4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 19. " [3] ,Address Mask Bit 3" "Masked,Not masked"
bitfld.long 0x00 18. " [2] ,Address Mask Bit 2" "Masked,Not masked"
textline " "
bitfld.long 0x00 17. " [1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 16. " [0] ,Address Mask Bit 0" "Masked,Not masked"
hexmask.long.byte 0x00 0.--7. 0x01 " ADDR ,Address"
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x10)
if (((per.l(ad:0x42001C00+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 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 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"
rbitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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"
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 20.--21. " SDAHOLD ,SDA Hold Time" "Disabled,75,450,600"
bitfld.long 0x00 16. " PINOUT ,Pin Usage (4-wire operation)" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " RUNSTDBY ,Run in Standby" "Disabled,Enabled"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
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:0x42001C00+0x18)&0x02)==0x02)
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 4. " SR ,Repeated Start" "Started,Repeated"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
else
group.word 0x1A++0x01
line.word 0x00 "STATUS,Status"
eventfld.word 0x00 10. " HS ,High-speed" "Not detected,Detected"
eventfld.word 0x00 9. " SEXTTOUT ,Slave SCL Low Extend Time-Out" "Not occurred,Occurred"
rbitfld.word 0x00 7. " CLKHOLD ,Clock Hold" "Not occurred,Occurred"
textline " "
eventfld.word 0x00 6. " LOWTOUT ,SCL Low Time-out" "Not occurred,Occurred"
rbitfld.word 0x00 3. " DIR ,Read/Write Direction" "Write,Read"
textline " "
rbitfld.word 0x00 2. " RXNACK ,Received Not Acknowledge" "ACK,NACK"
eventfld.word 0x00 1. " COLL ,Transmit Collision" "No collision,Collision"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
endif
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,Busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,Busy"
if (((per.l(ad:0x42001C00+0x00))&0x02)==0x02)
if ((per.l(ad:0x42001C00+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. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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 26. " ADDRMASK[9] ,Address Mask Bit 9" "Masked,Not masked"
textline " "
bitfld.long 0x00 25. " ADDRMASK[8] ,Address Mask Bit 8" "Masked,Not masked"
bitfld.long 0x00 24. " ADDRMASK[7] ,Address Mask Bit 7" "Masked,Not masked"
bitfld.long 0x00 23. " ADDRMASK[6] ,Address Mask Bit 6" "Masked,Not masked"
textline " "
bitfld.long 0x00 22. " ADDRMASK[5] ,Address Mask Bit 5" "Masked,Not masked"
bitfld.long 0x00 21. " ADDRMASK[4] ,Address Mask Bit 4" "Masked,Not masked"
bitfld.long 0x00 20. " ADDRMASK[3] ,Address Mask Bit 3" "Masked,Not masked"
textline " "
bitfld.long 0x00 19. " ADDRMASK[2] ,Address Mask Bit 2" "Masked,Not masked"
bitfld.long 0x00 18. " ADDRMASK[1] ,Address Mask Bit 1" "Masked,Not masked"
bitfld.long 0x00 17. " ADDRMASK[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
else
if ((per.l(ad:0x42001C00+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 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.byte 0x00 1.--7. 0x02 " ADDR ,Address"
bitfld.long 0x00 0. " GENCEN ,,General Call Address Enable" "Disabled,Enabled"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x0 "DATA,Data"
in
elif ((per.l(ad:0x42001C00+0x00)&0x1C)==0x14)
if (((per.l(ad:0x42001C00+0x00))&0x02)==0x02)
group.long 0x00++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 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++0x03
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"
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"
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"
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 in slave operation,SPI in master operation,I2C in slave operation,I2C in master operation,,ISO 7816"
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software Reset" "No reset,Reset"
group.long 0x04++0x03
line.long 0x00 "CTRLB,Control B"
bitfld.long 0x00 18. " ACKACT ,Acknowledge Action" "Send ACK,Send NACK"
bitfld.long 0x00 16.--17. " CMD ,Command" "No action,Repeated Start,Byte read operation,Issuing a stop condition"
rbitfld.long 0x00 9. " QCEN ,Quick Command Enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 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"
eventfld.word 0x00 1. " ARBLOST ,Arbitration Lost" "Not lost,Lost"
eventfld.word 0x00 0. " BUSERR ,Bus Error" "No error,Error"
rgroup.long 0x1C++0x03
line.long 0x00 "SYNCBUSY,Syncbusy Register"
bitfld.long 0x00 2. " SYSOP ,System Operation Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 1. " ENABLE ,SERCOM Enable Synchronization Busy" "Not busy,busy"
bitfld.long 0x00 0. " SWRST ,Software Reset Synchronization Busy" "Not busy,busy"
if (((per.l(ad:0x42001C00+0x00))&0x02)==0x02)
rgroup.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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" "0,1,2,3,4,5,6,7"
else
group.long 0x24++0x03
line.long 0x0 "ADDR,Address"
hexmask.long.byte 0x00 16.--23. 0x1 " 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"
sif (cpuis("ATSAMHA1G*"))
hexmask.long.word 0x00 1.--10. 0x02 " ADDR ,Address"
else
bitfld.long 0x00 8.--10. " ADDR ,Address" "0,1,2,3,4,5,6,7"
endif
endif
hgroup.word 0x28++0x01
hide.word 0x00 "DATA,Data"
in
group.byte 0x30++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGSTOP ,Debug Stop Mode" "Continues,Halted"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 2.--4. " MODE ,Operating Mode" "USART with external clock,USART with internal clock,SPI in slave operation,SPI in master operation,I2C in master operation,I2C in slave operation,,ISO 7816"
endif
width 0xB
tree.end
tree.end
tree.open "TC (Timer/Counter)"
tree "TC3"
base ad:0x42002C00
width 15.
if (((per.w(ad:0x42002C00))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42002C00))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42002C00+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42002C00+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42002C00+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC4"
base ad:0x42003000
width 15.
if (((per.w(ad:0x42003000))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003000))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003000+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003000+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003000+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC5"
base ad:0x42003400
width 15.
if (((per.w(ad:0x42003400))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003400))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003400+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003400+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003400+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC6"
base ad:0x42003800
width 15.
if (((per.w(ad:0x42003800))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003800))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003800+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003800+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003800+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TC7"
base ad:0x42003C00
width 15.
if (((per.w(ad:0x42003C00))&0x02)==0x00)
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
bitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
bitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
bitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.word 0x00++0x01
line.word 0x00 "CTRLA,Control A"
rbitfld.word 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
bitfld.word 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continue"
rbitfld.word 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
textline " "
rbitfld.word 0x00 5.--6. " WAVEGEN ,Waveform generation operation" "NFRQ,MFRQ,NPWM,MPWM"
rbitfld.word 0x00 2.--3. " MODE ,TC mode" "COUNT16,COUNT8,COUNT32,?..."
bitfld.word 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.word 0x02++0x01
line.word 0x00 "READREQ,Read Request"
bitfld.word 0x00 15. " RREQ ,Read request" "No effect,Request"
bitfld.word 0x00 14. " RCONT ,Read continuously" "Disabled,Enabled"
hexmask.word.byte 0x00 0.--4. 1. " ADDR ,Address"
group.byte 0x04++0x02
line.byte 0x00 "CTRLBCLR,Control B Clear"
bitfld.byte 0x00 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLBSET,Control B Set"
bitfld.byte 0x01 6.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,?..."
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continue,Stopped"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x02 "CTRLC,Control C"
bitfld.byte 0x02 5. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.byte 0x02 4. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
bitfld.byte 0x02 1. " INVEN1 ,Waveform output 1 inversion enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x02 0. " INVEN0 ,Waveform output 0 inversion enable" "Disabled,Enabled"
if (((per.w(ad:0x42003C00))&0x02)==0x00)
group.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
group.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
else
rgroup.byte 0x08++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run mode" "Halted,Continue"
rgroup.word 0x0A++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 13. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 12. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " OVFEO ,Overflow/Underflow event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 5. " TCEI ,TC event input" "Disabled,Enabled"
bitfld.word 0x00 4. " TCINV ,TC inverted event input" "Not inverted,Inverted"
bitfld.word 0x00 0.--2. " EVACT ,Event action" "OFF,RETRIGGER,COUNT,START,,PPW,PWP,?..."
endif
group.byte 0x0D++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 5. 0x00 5. -0x01 5. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " ERR ,Error interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x01 5. " MC1 ,Match or capture channel 1" "Not occurred,Occurred"
eventfld.byte 0x01 4. " MC0 ,Match or capture channel 0" "Not occurred,Occurred"
eventfld.byte 0x01 3. " SYNCRDY ,Synchronization ready" "Not ready,Ready"
textline " "
eventfld.byte 0x01 1. " ERR ,Error" "No error,Error"
eventfld.byte 0x01 0. " OVF ,Overflow" "Not occurred,Occurred"
rgroup.byte 0x0F++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 4. " SLAVE ,Slave" "Not 32-bit mode,32-bit mode"
bitfld.byte 0x00 3. " STOP ,Stop" "Running,Stopped"
if ((per.w(ad:0x42003C00+0x00)&0x0C)==0x04)
group.byte 0x10++0x00
line.byte 0x00 "COUNT,Counter Value"
group.byte 0x14++0x00
line.byte 0x00 "PER,Period Value"
hgroup.byte 0x18++0x00
hide.byte 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.byte 0x19++0x00
hide.byte 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.byte 0x1A++0x00
hide.byte 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.byte 0x1B++0x00
hide.byte 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003C00+0x00)&0x0C)==0x00)
group.word 0x10++0x01
line.word 0x00 "COUNT,Counter Value"
hgroup.word 0x18++0x01
hide.word 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.word 0x1A++0x01
hide.word 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.word 0x1C++0x01
hide.word 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.word 0x20++0x01
hide.word 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
elif ((per.w(ad:0x42003C00+0x00)&0x0C)==0x08)
group.long 0x10++0x03
line.long 0x00 "COUNT,Counter Value"
hgroup.long 0x18++0x03
hide.long 0x00 "CC0,Compare/Capture 0"
textfld " "
in
hgroup.long 0x1C++0x03
hide.long 0x00 "CC1,Compare/Capture 1"
textfld " "
in
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
hgroup.long 0x20++0x03
hide.long 0x00 "CC2,Compare/Capture 2"
textfld " "
in
hgroup.long 0x24++0x03
hide.long 0x00 "CC3,Compare/Capture 3"
textfld " "
in
endif
endif
width 0x0B
tree.end
tree "TCC0"
base ad:0x42002000
width 15.
if (((per.l(ad:0x42002000))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 27. " CPTEN3 ,Capture channel 3 enable" "Disabled,Enabled"
rbitfld.long 0x00 26. " CPTEN2 ,Capture channel 2 enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x00 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLB_SET,Control B Set"
bitfld.byte 0x01 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x01 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x01 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 22. " CCB3 ,Compare channel buffer 3 busy" "Not busy,Busy"
bitfld.long 0x00 21. " CCB2 ,Compare channel buffer 2 busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 20. " CCB1 ,Compare channel buffer 1 busy" "Not busy,Busy"
bitfld.long 0x00 19. " CCB0 ,Compare channel buffer 0 busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 18. " PERB ,Period buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 11. " CC3 ,Compare channel 3 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 10. " CC2 ,Compare channel 2 synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst buffer synchronization busy" "Not busy,Busy"
if (((per.l(ad:0x42002000))&0x02)==0x00)
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x08 24.--31. 1. " DTHS ,Dead-time high side outputs value"
hexmask.long.byte 0x08 16.--23. 1. " DTLS ,Dead-time low side outputs value"
textline " "
bitfld.long 0x08 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x08 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 9. " DTIEN1 ,Dead-time insertion generator 1 enable" "Disabled,Enabled"
bitfld.long 0x08 8. " DTIEN0 ,Dead-time insertion generator 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 0.--1. " OTMX ,Output matrix" "CC(x% CC_NUM),CC(x% (CC_NUM/2)),CC0,OTMX[x] = CC | OTMX[0]=CC0"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
sif cpu()=="ATSAMD21E15"||cpu()=="ATSAMD21E16"||cpu()=="ATSAMD21E17"||cpu()=="ATSAMD21E18"||cpuis("ATSAMDA1E*")||cpuis("ATSAMDA1E*")
bitfld.long 0x0C 23. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
else
bitfld.long 0x0C 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
endif
textline " "
bitfld.long 0x0C 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
sif cpu()!="ATSAMD21E15"&&cpu()!="ATSAMD21E16"&&cpu()!="ATSAMD21E17"&&cpu()!="ATSAMD21E18"&&!cpuis("ATSAMDA1E*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
endif
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
sif cpu()!="ATSAMD21E15"&&cpu()!="ATSAMD21E16"&&cpu()!="ATSAMD21E17"&&cpu()!="ATSAMD21E18"&&!cpuis("ATSAMDA1E*")
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,CC2,CC3"
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
hexmask.long.byte 0x08 24.--31. 1. " DTHS ,Dead-time high side outputs value"
hexmask.long.byte 0x08 16.--23. 1. " DTLS ,Dead-time low side outputs value"
textline " "
bitfld.long 0x08 11. " DTIEN3 ,Dead-time insertion generator 3 enable" "Disabled,Enabled"
bitfld.long 0x08 10. " DTIEN2 ,Dead-time insertion generator 2 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 9. " DTIEN1 ,Dead-time insertion generator 1 enable" "Disabled,Enabled"
bitfld.long 0x08 8. " DTIEN0 ,Dead-time insertion generator 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x08 0.--1. " OTMX ,Output matrix" "CC(x% CC_NUM),CC(x% (CC_NUM/2)),CC0,OTMX[x] = CC | OTMX[0]=CC0"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
sif cpu()=="ATSAMD21E15"||cpu()=="ATSAMD21E16"||cpu()=="ATSAMD21E17"||cpu()=="ATSAMD21E18"
bitfld.long 0x0C 23. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
else
bitfld.long 0x0C 23. " INVEN7 ,Output waveform 7 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 22. " INVEN6 ,Output waveform 6 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 21. " INVEN5 ,Output waveform 5 inversion" "Not inverted,Inverted"
endif
textline " "
bitfld.long 0x0C 20. " INVEN4 ,Output waveform 4 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
sif cpu()!="ATSAMD21E15"&&cpu()!="ATSAMD21E16"&&cpu()!="ATSAMD21E17"&&cpu()!="ATSAMD21E18"
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
endif
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
sif cpu()!="ATSAMD21E15"&&cpu()!="ATSAMD21E16"&&cpu()!="ATSAMD21E17"&&cpu()!="ATSAMD21E18"
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
textline " "
endif
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continues"
if (((per.l(ad:0x42002000))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 27. " MCEO3 ,Match or capture channel 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 26. " MCEO2 ,Match or capture channel 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " MCEI3 ,Match or capture channel 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 18. " MCEI2 ,Match or capture channel 2 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 27. " MCEO3 ,Match or capture channel 3 event output enable" "Disabled,Enabled"
bitfld.long 0x00 26. " MCEO2 ,Match or capture channel 2 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " MCEI3 ,Match or capture channel 3 event input enable" "Disabled,Enabled"
bitfld.long 0x00 18. " MCEI2 ,Match or capture channel 2 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
endif
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 19. 0x00 19. -0x04 19. " MC3 ,Match or capture channel 3 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 18. 0x00 18. -0x04 18. " MC2 ,Match or capture channel 2 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable debug fault interrupt enable" "Disabled,Enabled"
textline " "
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"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x04 19. " MC3 ,Match or capture channel 3 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 18. " MC2 ,Match or capture channel 2 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable fault 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault State Interrupt Flag " "Not occurred,Occurred"
textline " "
eventfld.long 0x04 3. " ERR ,Error Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 2. " CNT ,Counter Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 1. " TRG ,Retrigger Interrupt Flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow Interrupt Flag" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 27. " CMP3 ,Compare channel 3 value" "0,1"
rbitfld.long 0x08 26. " CMP2 ,Compare channel 2 value" "0,1"
textline " "
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
textline " "
eventfld.long 0x08 19. " CCBV3 ,Compare channel 3 buffer valid" "Not valid,Valid"
eventfld.long 0x08 18. " CCBV2 ,Compare channel 2 buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare channel 1 buffer valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare channel 0 buffer valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable fault 1 state" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable fault 0 state" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA state" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable fault1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable fault0 input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable debug fault state" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 0.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 4.--23. 1. " COUNT ,Count value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count value"
else
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count value"
endif
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
sif (cpu()=="ATSAMD21E15")||(cpu()=="ATSAMD21E16")||(cpu()=="ATSAMD21E17")||(cpu()=="ATSAMD21E18")||cpuis("ATSAMDA1E*")
bitfld.word 0x00 13. " PGV5 ,Pattern generator 5 output value" "Low,High"
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "Low,High"
textline " "
else
bitfld.word 0x00 15. " PGV7 ,Pattern generator 7 output value" "Low,High"
bitfld.word 0x00 14. " PGV6 ,Pattern generator 6 output value" "Low,High"
bitfld.word 0x00 13. " PGV5 ,Pattern generator 5 output value" "Low,High"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "Low,High"
textline " "
endif
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "Low,High"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "Low,High"
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "Low,High"
textline " "
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "Low,High"
textline " "
sif (cpu()=="ATSAMD21E15")||(cpu()=="ATSAMD21E16")||(cpu()=="ATSAMD21E17")||(cpu()=="ATSAMD21E18")||cpuis("ATSAMDA1E*")
bitfld.word 0x00 5. " PGE5 ,Pattern generator 5 output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
textline " "
else
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"
textline " "
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
textline " "
endif
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"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 15. " PGV7 ,Pattern generator 7 output value" "0,1"
bitfld.word 0x00 14. " PGV6 ,Pattern generator 6 output value" "0,1"
bitfld.word 0x00 13. " PGV5 ,Pattern generator 5 output value" "0,1"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "0,1"
textline " "
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
bitfld.word 0x00 7. " PGE7 ,Pattern generator 7 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGE6 ,Pattern generator 6 output enable" "Disabled,Enabled"
bitfld.word 0x00 5. " PGE5 ,Pattern generator 5 output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 27. " SWAP3 ,Swap DTI output pair 3" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAP2 ,Swap DTI output pair 2" "Disabled,Enabled"
textline " "
bitfld.long 0x00 25. " SWAP1 ,Swap DTI output pair 1" "Disabled,Enabled"
bitfld.long 0x00 24. " SWAP0 ,Swap DTI output pair 0" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " POL3 ,Channel 3 polarity" "~DIR,DIR"
bitfld.long 0x00 18. " POL2 ,Channel 2 polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 11. " CICCEN3 ,Circular channel 3 enable" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCEN2 ,Circular channel 2 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
else
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,?..."
endif
textline " "
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 0.--23. 1. " PER ,Period value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 4.--23. 1. " PER ,Period value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 5.--23. 1. " PER ,Period value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 6.--23. 1. " PER ,Period value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x4C++0x03
line.long 0x00 "CC2,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x50++0x03
line.long 0x00 "CC3,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x50++0x03
line.long 0x00 "CC3,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
sif cpuis("ATSAMDA1*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer"
sif !cpuis("ATSAMDA1E*")
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"
else
bitfld.word 0x00 13. " PGVB5 ,Pattern generator 5 output enable" "Disabled,Enabled"
endif
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
textline " "
sif !cpuis("ATSAMDA1E*")
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"
else
bitfld.word 0x00 5. " PGEB5 ,Pattern generator 5 output enable buffer" "Disabled,Enabled"
endif
textline " "
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"
textline " "
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"
bitfld.word 0x00 15. " PGVB7 ,Pattern generator 7 output enable" "Disabled,Enabled"
bitfld.word 0x00 14. " PGVB6 ,Pattern generator 6 output enable" "Disabled,Enabled"
bitfld.word 0x00 13. " PGVB5 ,Pattern generator 5 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGEB6 ,Pattern generator 6 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 5. " PGEB5 ,Pattern generator 5 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 4. " PGEB4 ,Pattern generator 4 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGEB3 ,Pattern generator 3 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 2. " PGEB2 ,Pattern generator 2 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
endif
group.long 0x68++0x03
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 27. " SWAPB3 ,Swap DTI output pair 3 buffer" "Disabled,Enabled"
bitfld.long 0x00 26. " SWAPB2 ,Swap DTI output pair 2 buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 25. " SWAPB1 ,Swap DTI output pair 1 buffer" "Disabled,Enabled"
bitfld.long 0x00 24. " SWAPB0 ,Swap DTI output pair 0 buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 19. " POLB3 ,Channel 3 polarity buffer" "Disabled,Enabled"
bitfld.long 0x00 18. " POLB2 ,Channel 2 polarity buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " POLB1 ,Channel 1 polarity buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 polarity buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 11. " CICCENB3 ,Circular channel 3 enable buffer" "Disabled,Enabled"
bitfld.long 0x00 10. " CICCENB2 ,Circular channel 2 enable buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,?..."
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x78++0x03
line.long 0x00 "CCB2,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x78++0x03
line.long 0x00 "CCB2,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x78++0x03
line.long 0x00 "CCB2,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x78++0x03
line.long 0x00 "CCB2,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002000+0x00))&0x60)==0x00)
group.long 0x7C++0x03
line.long 0x00 "CCB3,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x20)
group.long 0x7C++0x03
line.long 0x00 "CCB3,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002000+0x00))&0x60)==0x40)
group.long 0x7C++0x03
line.long 0x00 "CCB3,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x7C++0x03
line.long 0x00 "CCB3,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
width 0x0B
tree.end
tree "TCC1"
base ad:0x42002400
width 15.
if (((per.l(ad:0x42002400))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,DITH4,DITH5,DITH6"
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x00 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLB_SET,Control B Set"
bitfld.byte 0x01 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x01 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x01 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 20. " CCB1 ,Compare channel buffer 1 busy" "Not busy,Busy"
bitfld.long 0x00 19. " CCB0 ,Compare channel buffer 0 busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 18. " PERB ,Period buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst buffer synchronization busy" "Not busy,Busy"
if (((per.l(ad:0x42002400))&0x02)==0x00)
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,?..."
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,?..."
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
bitfld.long 0x0C 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,?..."
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,?..."
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
bitfld.long 0x0C 19. " INVEN3 ,Output waveform 3 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 18. " INVEN2 ,Output waveform 2 inversion" "Not inverted,Inverted"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continues"
if (((per.l(ad:0x42002400))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
endif
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable debug fault interrupt enable" "Disabled,Enabled"
textline " "
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"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable fault 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault State Interrupt Flag " "Not occurred,Occurred"
textline " "
eventfld.long 0x04 3. " ERR ,Error Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 2. " CNT ,Counter Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 1. " TRG ,Retrigger Interrupt Flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow Interrupt Flag" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare channel 1 buffer valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare channel 0 buffer valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable fault 1 state" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable fault 0 state" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA state" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable fault1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable fault0 input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable debug fault state" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
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"
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"
hexmask.long.tbyte 0x00 5.--23. 1. " COUNT ,Count value"
else
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.tbyte 0x00 6.--23. 1. " COUNT ,Count value"
endif
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "Low,High"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "Low,High"
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "Low,High"
textline " "
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "Low,High"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
else
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 15. " PGV7 ,Pattern generator 7 output value" "0,1"
bitfld.word 0x00 14. " PGV6 ,Pattern generator 6 output value" "0,1"
bitfld.word 0x00 13. " PGV5 ,Pattern generator 5 output value" "0,1"
textline " "
bitfld.word 0x00 12. " PGV4 ,Pattern generator 4 output value" "0,1"
bitfld.word 0x00 11. " PGV3 ,Pattern generator 3 output value" "0,1"
bitfld.word 0x00 10. " PGV2 ,Pattern generator 2 output value" "0,1"
textline " "
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "0,1"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "0,1"
bitfld.word 0x00 7. " PGE7 ,Pattern generator 7 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGE6 ,Pattern generator 6 output enable" "Disabled,Enabled"
bitfld.word 0x00 5. " PGE5 ,Pattern generator 5 output enable" "Disabled,Enabled"
bitfld.word 0x00 4. " PGE4 ,Pattern generator 4 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGE3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 2. " PGE2 ,Pattern generator 2 output enable" "Disabled,Enabled"
bitfld.word 0x00 1. " PGE1 ,Pattern generator 1 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGE0 ,Pattern generator 0 output enable" "Disabled,Enabled"
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
else
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,?..."
endif
textline " "
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x40++0x03
line.long 0x00 "PER,Period"
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"
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"
hexmask.long.tbyte 0x00 5.--23. 1. " PER ,Period value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.tbyte 0x00 6.--23. 1. " PER ,Period value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 0.--23. 1. " CC ,Channel compare/capture value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 4.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--3. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 5.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--4. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.tbyte 0x00 6.--23. 1. " CC ,Channel compare/capture value"
bitfld.long 0x00 0.--5. " DITHERCY ,Dithering cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
sif cpuis("ATSAMDA1*")
group.word 0x64++0x01
line.word 0x00 "PATTB,Pattern Buffer"
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"
textline " "
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "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"
textline " "
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"
bitfld.word 0x00 15. " PGVB7 ,Pattern generator 7 output enable" "Disabled,Enabled"
bitfld.word 0x00 14. " PGVB6 ,Pattern generator 6 output enable" "Disabled,Enabled"
bitfld.word 0x00 13. " PGVB5 ,Pattern generator 5 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 12. " PGVB4 ,Pattern generator 4 output enable" "Disabled,Enabled"
bitfld.word 0x00 11. " PGVB3 ,Pattern generator 3 output enable" "Disabled,Enabled"
bitfld.word 0x00 10. " PGVB2 ,Pattern generator 2 output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 9. " PGVB1 ,Pattern generator 1 output enable" "Disabled,Enabled"
bitfld.word 0x00 8. " PGVB0 ,Pattern generator 0 output enable" "Disabled,Enabled"
bitfld.word 0x00 7. " PGEB7 ,Pattern generator 7 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 6. " PGEB6 ,Pattern generator 6 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 5. " PGEB5 ,Pattern generator 5 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 4. " PGEB4 ,Pattern generator 4 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 3. " PGEB3 ,Pattern generator 3 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 2. " PGEB2 ,Pattern generator 2 output enable buffer" "Disabled,Enabled"
bitfld.word 0x00 1. " PGEB1 ,Pattern generator 1 output enable buffer" "Disabled,Enabled"
textline " "
bitfld.word 0x00 0. " PGEB0 ,Pattern generator 0 output enable buffer" "Disabled,Enabled"
endif
group.long 0x68++0x03
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 17. " POLB1 ,Channel 1 polarity buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 polarity buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,?..."
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " PERB ,Period value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--3. " DITHERCYB ,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 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " PERB ,Period value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
if (((per.l(ad:0x42002400+0x00))&0x60)==0x00)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 0.--23. 1. " CCB ,Compare and capture buffer value"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x20)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 4.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--3. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
elif (((per.l(ad:0x42002400+0x00))&0x60)==0x40)
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 5.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--4. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31"
else
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.tbyte 0x00 6.--23. 1. " CCB ,Compare and capture buffer value"
bitfld.long 0x00 0.--5. " DITHERCYB ,Dithering buffer cycle number" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
endif
width 0x0B
tree.end
tree "TCC2"
base ad:0x42002800
width 15.
if (((per.l(ad:0x42002800))&0x02)==0x00)
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
bitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
bitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
bitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
bitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,?..."
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
group.long 0x00++0x03
line.long 0x00 "CTRLA,Control A"
rbitfld.long 0x00 25. " CPTEN1 ,Capture channel 1 enable" "Disabled,Enabled"
rbitfld.long 0x00 24. " CPTEN0 ,Capture channel 0 enable" "Disabled,Enabled"
textline " "
rbitfld.long 0x00 14. " ALOCK ,Auto lock" "Not locked,Locked"
rbitfld.long 0x00 12.--13. " PRESCSYNC ,Prescaler and counter synchronization" "GCLK,PRESC,RESYNC,?..."
textline " "
bitfld.long 0x00 11. " RUNSTDBY ,Run in standby" "Halted,Continues"
rbitfld.long 0x00 8.--10. " PRESCALER ,Prescaler" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV64,DIV256,DIV1024"
rbitfld.long 0x00 5.--6. " RESOLUTION ,Enhanced resolution" "Disabled,?..."
textline " "
bitfld.long 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.long 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
group.byte 0x04++0x01
line.byte 0x00 "CTRLB_CLR,Control B Clear"
bitfld.byte 0x00 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x00 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x00 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x00 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x00 0. " DIR ,Counter direction" "Incrementing,Decrementing"
line.byte 0x01 "CTRLB_SET,Control B Set"
bitfld.byte 0x01 5.--7. " CMD ,Command" "NONE,RETRIGGER,STOP,UPDATE,READSYNC,?..."
bitfld.byte 0x01 3.--4. " IDXCMD ,Ramp index command" "DISABLED,SET,CLEAR,HOLD"
bitfld.byte 0x01 2. " ONESHOT ,One-shot" "Continues,Stopped"
textline " "
bitfld.byte 0x01 1. " LUPD ,Lock update" "Not performed,Performed"
bitfld.byte 0x01 0. " DIR ,Counter direction" "Incrementing,Decrementing"
rgroup.long 0x08++0x03
line.long 0x00 "SYNCBUSY,Synchronization Busy"
bitfld.long 0x00 20. " CCB1 ,Compare channel buffer 1 busy" "Not busy,Busy"
bitfld.long 0x00 19. " CCB0 ,Compare channel buffer 0 busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 18. " PERB ,Period buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 17. " WAVEB ,Wave buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 16. " PATTB ,Pattern buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 9. " CC1 ,Compare channel 1 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 8. " CC0 ,Compare channel 0 synchronization busy" "Not busy,Busy"
bitfld.long 0x00 7. " PER ,Period buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 6. " WAVE ,Wave buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 5. " PATT ,Pattern buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 4. " COUNT ,Count buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 3. " STATUS ,Status buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 2. " CTRLB ,Ctrlb buffer synchronization busy" "Not busy,Busy"
bitfld.long 0x00 1. " ENABLE ,Enable buffer synchronization busy" "Not busy,Busy"
textline " "
bitfld.long 0x00 0. " SWRST ,Swrst buffer synchronization busy" "Not busy,Busy"
if (((per.l(ad:0x42002800))&0x02)==0x00)
group.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,?..."
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,?..."
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")&&!cpuis("ATSAMDA1*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
else
rgroup.long 0x0C++0x0F
line.long 0x00 "FCTRLA,Recoverable FaultA Configuration"
bitfld.long 0x00 24.--27. " FILTERVAL ,FaultA 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 ,FaultA blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x00 12.--14. " CAPTURE ,FaultA capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x00 10.--11. " CHSEL ,FaultA capture channel" "CC0,CC1,?..."
bitfld.long 0x00 8.--9. " HALT ,FaultA halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x00 7. " RESTART ,FaultA restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x00 5.--6. " BLANK ,FaultA blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x00 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x00 3. " KEEP ,FaultA keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x00 0.--1. " SRC ,FaultA source" "Disabled,Enabled,Invert,Altfault"
line.long 0x04 "FCTRLB,Recoverable FaultB Configuration"
bitfld.long 0x04 24.--27. " FILTERVAL ,Fault B filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
hexmask.long.byte 0x04 16.--23. 1. " BLANKVAL ,FaultB blanking time"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 15. " BLANKPRESC ,Fault A blanking prescaler" "BLANKVAL* prescaled GCLK_TCC,BLANKVAL*64* prescaled GCLK_TCC"
endif
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,CAPTMARK"
textline " "
else
bitfld.long 0x04 12.--14. " CAPTURE ,FaultB capture action" "Disabled,CAPT,CAPTMIN,CAPTMAX,LOCMIN,LOCMAX,DERIV0,?..."
textline " "
endif
bitfld.long 0x04 10.--11. " CHSEL ,FaultB capture channel" "CC0,CC1,?..."
bitfld.long 0x04 8.--9. " HALT ,FaultB halt mode" "Disabled,HW,SW,NR"
bitfld.long 0x04 7. " RESTART ,FaultB restart" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMD21*")
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Start,Rise,Fall,Both"
else
bitfld.long 0x04 5.--6. " BLANK ,FaultB blanking mode" "Disabled,Rise,Fall,Both"
endif
textline " "
bitfld.long 0x04 4. " QUAL ,Fault qualification" "Enabled,Disabled"
bitfld.long 0x04 3. " KEEP ,FaultB keeper" "Rec. Fault,TCC cycle"
textline " "
bitfld.long 0x04 0.--1. " SRC ,FaultB source" "Disabled,Enabled,Invert,Altfault"
line.long 0x08 "WEXCTRL,Waveform Extension Configuration"
line.long 0x0C "DRVCTRL,Driver Configuration"
bitfld.long 0x0C 28.--31. " FILTERVAL1 ,Non-Recoverable fault input 1 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0C 24.--27. " FILTERVAL0 ,Non-Recoverable fault input 0 filter value" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline " "
bitfld.long 0x0C 17. " INVEN1 ,Output waveform 1 inversion" "Not inverted,Inverted"
bitfld.long 0x0C 16. " INVEN0 ,Output waveform 0 inversion" "Not inverted,Inverted"
textline " "
sif !cpuis("ATSAMD21*")
bitfld.long 0x0C 15. " NRV7 ,Non-Recoverable state 7 output value" "Not set,Set"
bitfld.long 0x0C 14. " NRV6 ,Non-Recoverable state 6 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 13. " NRV5 ,Non-Recoverable state 5 output value" "Not set,Set"
bitfld.long 0x0C 12. " NRV4 ,Non-Recoverable state 4 output value" "Not set,Set"
bitfld.long 0x0C 11. " NRV3 ,Non-Recoverable state 3 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 10. " NRV2 ,Non-Recoverable state 2 output value" "Not set,Set"
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 7. " NRE7 ,Non-Recoverable state 7 output enable" "Disabled,Enabled"
bitfld.long 0x0C 6. " NRE6 ,Non-Recoverable state 6 output enable" "Disabled,Enabled"
bitfld.long 0x0C 5. " NRE5 ,Non-Recoverable state 5 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 4. " NRE4 ,Non-Recoverable state 4 output enable" "Disabled,Enabled"
bitfld.long 0x0C 3. " NRE3 ,Non-Recoverable state 3 output enable" "Disabled,Enabled"
bitfld.long 0x0C 2. " NRE2 ,Non-Recoverable state 2 output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
else
bitfld.long 0x0C 9. " NRV1 ,Non-Recoverable state 1 output value" "Not set,Set"
bitfld.long 0x0C 8. " NRV0 ,Non-Recoverable state 0 output value" "Not set,Set"
textline " "
bitfld.long 0x0C 1. " NRE1 ,Non-Recoverable state 1 output enable" "Disabled,Enabled"
bitfld.long 0x0C 0. " NRE0 ,Non-Recoverable state 0 output enable" "Disabled,Enabled"
endif
endif
group.byte 0x1E++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 2. " FDDBD ,Fault detection on debug break detection" "No fault,Fault"
bitfld.byte 0x00 0. " DBGRUN ,Debug running mode" "Halted,Continues"
if (((per.l(ad:0x42002800))&0x02)==0x00)
group.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
else
rgroup.long 0x20++0x03
line.long 0x00 "EVCTRL,Event Control"
bitfld.long 0x00 25. " MCEO1 ,Match or capture channel 1 event output enable" "Disabled,Enabled"
bitfld.long 0x00 24. " MCEO0 ,Match or capture channel 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 17. " MCEI1 ,Match or capture channel 1 event input enable" "Disabled,Enabled"
bitfld.long 0x00 16. " MCEI0 ,Match or capture channel 0 event input enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 15. " TCEI1 ,Timer/counter event 1 input enable" "Disabled,Enabled"
bitfld.long 0x00 14. " TCEI0 ,Timer/counter event 0 input enable" "Disabled,Enabled"
bitfld.long 0x00 13. " TCINV1 ,Inverted event 1 input enable" "Not inverted,Inverted"
textline " "
bitfld.long 0x00 12. " TCINV0 ,Inverted event 0 input enable" "Not inverted,Inverted"
bitfld.long 0x00 10. " CNTEO ,Timer/counter output event enable" "Disabled,Enabled"
bitfld.long 0x00 9. " TRGEO ,Retrigger output event enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 8. " OVFEO ,Overflow/underflow output event enable" "Disabled,Enabled"
bitfld.long 0x00 6.--7. " CNTSEL ,Timer/counter output event mode" "START,END,BETWEEN,BOUNDARY"
textline " "
bitfld.long 0x00 3.--5. " EVACT1 ,Timer/counter input event1 action" "OFF,RETRIGGER,DIR,STOP,DEC,PPW,PWP,FAULT"
bitfld.long 0x00 0.--2. " EVACT0 ,Timer/counter input event0 action" "OFF,RETRIGGER,COUNTEV,START,INC,COUNT,,FAULT"
endif
group.long 0x28++0x0B
line.long 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clr"
setclrfld.long 0x00 17. 0x00 17. -0x04 17. " MC1 ,Match or capture channel 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 16. 0x00 16. -0x04 16. " MC0 ,Match or capture channel 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 15. 0x00 15. -0x04 15. " FAULT1 ,Non-Recoverable Fault 1 interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 14. 0x00 14. -0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.long 0x00 13. 0x00 13. -0x04 13. " FAULTB ,Recoverable FaultB interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 12. 0x00 12. -0x04 12. " FAULTA ,Recoverable FaultA interrupt enable" "Disabled,Enabled"
setclrfld.long 0x00 11. 0x00 11. -0x04 11. " DFS ,Non-Recoverable debug fault interrupt enable" "Disabled,Enabled"
textline " "
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"
textline " "
setclrfld.long 0x00 0. 0x00 0. -0x04 0. " OVF ,Overflow interrupt enable" "Disabled,Enabled"
line.long 0x04 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.long 0x04 17. " MC1 ,Match or capture channel 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 16. " MC0 ,Match or capture channel 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 15. " FAULT1 ,Non-Recoverable fault 1 interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 14. " FAULT0 ,Non-Recoverable fault 0 interrupt flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 13. " FAULTB ,Recoverable FaultB interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 12. " FAULTA ,Recoverable FaultA interrupt flag" "Not occurred,Occurred"
eventfld.long 0x04 11. " DFS ,Non-Recoverable Debug Fault State Interrupt Flag " "Not occurred,Occurred"
textline " "
eventfld.long 0x04 3. " ERR ,Error Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 2. " CNT ,Counter Interrupt Flag" "Not occurred,Occurred"
eventfld.long 0x04 1. " TRG ,Retrigger Interrupt Flag" "Not occurred,Occurred"
textline " "
eventfld.long 0x04 0. " OVF ,Overflow Interrupt Flag" "Not occurred,Occurred"
line.long 0x08 "STATUS,Status"
rbitfld.long 0x08 25. " CMP1 ,Compare channel 1 value" "0,1"
rbitfld.long 0x08 24. " CMP0 ,Compare channel 0 value" "0,1"
textline " "
eventfld.long 0x08 17. " CCBV1 ,Compare channel 1 buffer valid" "Not valid,Valid"
eventfld.long 0x08 16. " CCBV0 ,Compare channel 0 buffer valid" "Not valid,Valid"
eventfld.long 0x08 15. " FAULT1 ,Non-Recoverable fault 1 state" "No fault,Fault"
textline " "
eventfld.long 0x08 14. " FAULT0 ,Non-Recoverable fault 0 state" "No fault,Fault"
eventfld.long 0x08 13. " FAULTB ,Recoverable FaultB state" "No fault,Fault"
eventfld.long 0x08 12. " FAULTA ,Recoverable FaultA state" "No fault,Fault"
textline " "
rbitfld.long 0x08 11. " FAULT1IN ,Non-Recoverable fault1 input" "No fault,Fault"
rbitfld.long 0x08 10. " FAULT0IN ,Non-Recoverable fault0 input" "No fault,Fault"
rbitfld.long 0x08 9. " FAULTBIN ,Recoverable FaultB input" "No fault,Fault"
textline " "
rbitfld.long 0x08 8. " FAULTAIN ,Recoverable FaultA input" "No fault,Fault"
eventfld.long 0x08 7. " PERBV ,Period buffer valid" "Not valid,Valid"
eventfld.long 0x08 6. " WAVEBV ,Wave buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 5. " PATTBV ,Pattern buffer valid" "Not valid,Valid"
textline " "
eventfld.long 0x08 3. " DFS ,Non-Recoverable debug fault state" "Not halted,Halted"
rbitfld.long 0x08 1. " IDX ,Ramp" "A,B"
textline " "
rbitfld.long 0x08 0. " STOP ,Stop" "Running,Stopped"
group.long 0x34++0x03
line.long 0x00 "COUNT,Count"
hexmask.long.word 0x00 0.--15. 1. " COUNT ,Count value"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
sif !cpuis("ATSAMDA1*")
group.word 0x38++0x01
line.word 0x00 "PATT,Pattern"
bitfld.word 0x00 9. " PGV1 ,Pattern generator 1 output value" "Low,High"
bitfld.word 0x00 8. " PGV0 ,Pattern generator 0 output value" "Low,High"
textline " "
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
else
endif
group.long 0x3C++0x03
line.long 0x00 "WAVE,Waveform Control"
bitfld.long 0x00 17. " POL1 ,Channel 1 polarity" "~DIR,DIR"
bitfld.long 0x00 16. " POL0 ,Channel 0 polarity" "~DIR,DIR"
textline " "
bitfld.long 0x00 9. " CICCEN1 ,Circular channel 1 enable" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCEN0 ,Circular channel 0 enable" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPEREN ,Circular period enable" "Disabled,Enabled"
textline " "
sif cpuis("ATSAMD10*")||cpuis("ATSAMD11*")
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,RAMP2C"
else
bitfld.long 0x00 4.--5. " RAMP ,Ramp mode" "RAMP1,RAMP2A,RAMP2,?..."
endif
textline " "
bitfld.long 0x00 0.--2. " WAVEGEN ,Waveform generation" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
group.long 0x40++0x03
line.long 0x00 "PER,Period"
hexmask.long.word 0x00 0.--15. 1. " PER ,Period value"
group.long 0x44++0x03
line.long 0x00 "CC0,Compare And Capture"
hexmask.long.word 0x00 0.--15. 1. " CC ,Channel compare/capture value"
group.long 0x48++0x03
line.long 0x00 "CC1,Compare And Capture"
hexmask.long.word 0x00 0.--15. 1. " CC ,Channel compare/capture value"
sif cpuis("ATSAMDA1*")
else
endif
group.long 0x68++0x03
line.long 0x00 "WAVEB,Waveform Control Buffer"
bitfld.long 0x00 17. " POLB1 ,Channel 1 polarity buffer" "Disabled,Enabled"
bitfld.long 0x00 16. " POLB0 ,Channel 0 polarity buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 9. " CICCENB1 ,Circular channel 1 enable buffer" "Disabled,Enabled"
bitfld.long 0x00 8. " CICCENB0 ,Circular channel 0 enable buffer" "Disabled,Enabled"
textline " "
bitfld.long 0x00 7. " CIPERENB ,Circular period enable buffer" "Disabled,Enabled"
bitfld.long 0x00 4.--5. " RAMPB ,Ramp mode buffer" "RAMP1,RAMP2A,RAMP2,?..."
bitfld.long 0x00 0.--2. " WAVEGENB ,Waveform generation buffer" "NFRQ,MFRQ,NPWM,,DSCRITICAL,DSBOTTOM,DSBOTH,DSTOP"
group.long 0x6C++0x03
line.long 0x00 "PERB,Period Buffer"
hexmask.long.word 0x00 0.--15. 1. " PERB ,Period value"
group.long 0x70++0x03
line.long 0x00 "CCB0,Compare And Capture Buffer"
hexmask.long.word 0x00 0.--15. 1. " CCB ,Compare and capture buffer value"
group.long 0x74++0x03
line.long 0x00 "CCB1,Compare And Capture Buffer"
hexmask.long.word 0x00 0.--15. 1. " CCB ,Compare and capture buffer value"
width 0x0B
tree.end
tree.end
tree "ADC (Analog to Digital Converter)"
base ad:0x42004000
width 15.
group.byte 0x00++0x03
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 2. " RUNSTDBY ,Run in standby" "Halted,Continue"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.byte 0x01 "REFCTRL,Reference Control"
bitfld.byte 0x01 7. " REFCOMP ,Reference buffer offset compensation enable" "Disabled,Enabled"
bitfld.byte 0x01 0.--3. " REFSEL ,Reference selection" "INT1V,INTVCC0,INTVCC1,VREFA,VREFB,?..."
line.byte 0x02 "AVGCTRL,Average Control"
bitfld.byte 0x02 4.--6. " ADJRES ,Adjusting result/division coefficient" "DIV1,DIV2,DIV4,DIV8,DIV16,DIV32,DIV64,DIV128"
bitfld.byte 0x02 0.--3. " SAMPLENUM ,Number of samples to be collected" "1 sample,2 samples,4 samples,8 samples,16 samples,32 samples,64 samples,128 samples,256 samples,512 samples,1024 samples,?..."
line.byte 0x03 "SAMPCTRL,Sampling Time Control"
hexmask.byte 0x03 0.--5. 1. " SAMPLEN ,Sampling time length"
group.word 0x04++0x01
line.word 0x00 "CTRLB,Control B"
bitfld.word 0x00 8.--10. " PRESCALER ,Prescaler configuration" "DIV4,DIV8,DIV16,DIV32,DIV64,DIV128,DIV256,DIV512"
bitfld.word 0x00 4.--5. " RESSEL ,Conversion result resolution" "12BIT,16BIT,10BIT,8BIT"
bitfld.word 0x00 3. " CORREN ,Digital correction logic enabled" "Disabled,Enabled"
textline " "
bitfld.word 0x00 2. " FREERUN ,Free running mode" "Single conversion mode,Free running mode"
bitfld.word 0x00 1. " LEFTADJ ,Left-Adjusted result" "Right-adjusted,Left-adjusted"
bitfld.word 0x00 0. " DIFFMODE ,Differential mode" "Singled-ended mode,Differential mode"
group.byte 0x08++0x00
line.byte 0x00 "WINCTRL,Window Monitor Control"
bitfld.byte 0x00 0.--2. " WINMODE ,Window monitor control" "No window mode(default),Mode 1: RESULT>WINLT,Mode 2: RESULT<WINUT,Mode 3: WINLT<RESULT<WINUT,Mode 4:!(WINLT<RESULT<WINUT),?..."
textline ""
group.byte 0x0C++0x00
line.byte 0x00 "SWTRIG,Software Trigger"
bitfld.byte 0x00 1. " START ,ADC start conversion" "Not started,Started"
bitfld.byte 0x00 0. " FLUSH ,ADC conversion flush" "No flush action,Flushed"
sif cpuis("ATSAMR21G*")
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,ADC AIN4,ADC AIN5,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,ADC AIN3,ADC AIN4,,,ADC AIN7,ADC AIN8,ADC AIN9,ADC AIN10,ADC AIN11,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,ADC AIN4,ADC AIN5,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,ADC AIN3,ADC AIN4,,,ADC AIN7,ADC AIN8,ADC AIN9,ADC AIN10,ADC AIN11,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
endif
elif cpuis("ATSAMHA1G14A")||cpuis("ATSAMHA1G15A")||cpuis("ATSAMHA1G16A")
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" "PIN0,PIN1,PIN2,PIN3,PIN4,PIN5,PIN6,PIN7,PIN8,PIN9,PIN10,PIN11,PIN12,PIN13,PIN14,PIN15,PIN16,PIN17,PIN18,PIN19,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,DAC,?..."
endif
else
if ((per.l(ad:0x42004000+0x10)&0xF0000)==0x00000)
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,,,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,,,,,ADC AIN7,ADC AIN8,ADC AIN9,,,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
else
group.long 0x10++0x03
line.long 0x00 "INPUTCTRL,Input Control"
bitfld.long 0x00 24.--27. " GAIN ,Gain factor selection" "1X,2X,4X,8X,16X,,,,,,,,,,,DIV2"
hexmask.long.byte 0x00 20.--23. 1. " INPUTOFFSET ,Positive mux setting offset"
hexmask.long.byte 0x00 16.--19. 1. " INPUTSCAN ,Number of input channels included in scan"
textline " "
bitfld.long 0x00 8.--12. " MUXNEG ,Negative mux input selection" ",,,,,,ADC AIN6,ADC AIN7,,,,,,,,,,,,,,,,,GND,IOGND,?..."
bitfld.long 0x00 0.--4. " MUXPOS ,Positive mux input selection" ",,,,,,,ADC AIN7,ADC AIN8,ADC AIN9,,,,,,,ADC AIN16,ADC AIN17,,,,,,,TEMP,BANDGAP,SCALEDCOREVCC,SCALEDIOVCC,?..."
endif
endif
group.byte 0x14++0x00
line.byte 0x00 "EVCTRL,Event Control"
bitfld.byte 0x00 5. " WINMONEO ,Window monitor event out" "Disabled,Enabled"
bitfld.byte 0x00 4. " RESRDYEO ,Result ready event out" "Disabled,Enabled"
bitfld.byte 0x00 1. " SYNCEI ,Synchronization event in" "Not triggered,Triggered"
textline " "
bitfld.byte 0x00 0. " STARTEI ,Start conversion event in" "Not triggered,Triggered"
group.byte 0x17++0x00
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 3. 0x00 3. -0x01 3. " SYNCRDY_SET/CLR ,Synchronization ready interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 2. 0x00 2. -0x01 2. " WINMON_SET/CLR ,Window monitor interrupt enable" "Disabled,Enabled"
setclrfld.byte 0x00 1. 0x00 1. -0x01 1. " OVERRUN_SET/CLR ,Overrun interrupt enable" "Disabled,Enabled"
textline " "
setclrfld.byte 0x00 0. 0x00 0. -0x01 0. " RESRDY_SET/CLR ,Result ready interrupt enable" "Disabled,Enabled"
group.byte 0x18++0x00
line.byte 0x00 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x00 3. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x00 2. " WINMON ,Window monitor" "No interrupt,Interrupt"
eventfld.byte 0x00 1. " OVERRUN ,Overrun" "No interrupt,Interrupt"
textline " "
eventfld.byte 0x00 0. " RESRDY ,Result ready" "Low,High"
rgroup.byte 0x19++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
if ((per.w(ad:0x42004000+0x04)&0x32)==0x00)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--11. 1. " RESULT[11:0] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x02)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 4.--15. 1. " RESULT[15:4] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x20)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--9. 1. " RESULT[9:0] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x22)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 6.--15. 1. " RESULT[15:6] ,Result conversion value"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x30)
rgroup.byte 0x1A++0x00
line.byte 0x00 "RESULT,Result"
elif ((per.w(ad:0x42004000+0x04)&0x32)==0x32)
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word.byte 0x00 8.--15. 1. " RESULT[15:8] ,Result conversion value"
else
rgroup.word 0x1A++0x01
line.word 0x00 "RESULT,Result"
hexmask.word 0x00 0.--15. 1. " RESULT[15:0] ,Result conversion value"
endif
group.word 0x1C++0x01
line.word 0x00 "WINLT,Window Monitor Lower Threshold"
group.word 0x20++0x01
line.word 0x00 "WINUT,Window Monitor Upper Threshold"
group.word 0x24++0x05
line.word 0x00 "GAINCORR,Gain Correction"
hexmask.word 0x00 0.--11. 1. " GAINCORR ,Gain correction value"
line.word 0x02 "OFFSETCORR,Offset Correction"
hexmask.word 0x02 0.--11. 1. " OFFSETCORR ,Offset correction value"
rgroup.word 0x28++0x01
line.word 0x00 "CALIB,Calibration"
hexmask.word.byte 0x00 8.--10. 1. " BIAS_CAL ,Bias calibration value"
hexmask.word.byte 0x00 0.--7. 1. " LINEARITY_CAL ,Linearity calibration value"
if ((per.b(ad:0x42004000+0x00)&0x02)==0x00)
group.byte 0x2A++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continue"
else
rgroup.byte 0x2A++0x00
line.byte 0x00 "DBGCTRL,Debug Control"
bitfld.byte 0x00 0. " DBGRUN ,Debug run" "Halted,Continue"
endif
width 0x0B
tree.end
tree "AC (Analog Comparators)"
base ad:0x42004400
width 15.
group.byte 0x00++0x00
line.byte 0x00 "CTRLA,Control A"
sif (cpuis("ATSAMD21*")||cpuis("ATSAMD10*")||cpuis("ATSAMD11*")||cpuis("ATSAMHA1G14A")||cpuis("ATSAMHA1G15A")||cpuis("ATSAMHA1G16A")||cpuis("ATSAMD20*")||cpuis("ATSAMDA1*"))
bitfld.byte 0x00 7. " LPMUX ,Low-Power mux" "Low,High"
bitfld.byte 0x00 2. " RUNSTDBY ,Run in standby" "Disabled,Continue"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
textline " "
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
else
bitfld.byte 0x00 2. " RUNSTDBY ,Run in standby" "Disabled,Continue"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
endif
wgroup.byte 0x01++0x00
line.byte 0x00 "CTRLB,Control B"
bitfld.byte 0x00 1. " START1 ,Comparator 1 start comparison" "No effect,Start"
bitfld.byte 0x00 0. " START0 ,Comparator 0 start comparison" "No effect,Start"
sif cpuis("ATSAMD21*")||cpuis("ATSAMDA1*")
if (((per.l(ad:0x42004400))&0x02)==0x00)
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Not started,Started"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Not started,Started"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
else
rgroup.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Not started,Started"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Not started,Started"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
endif
else
group.word 0x02++0x01
line.word 0x00 "EVCTRL,Event Control"
bitfld.word 0x00 9. " COMPEI1 ,Comparator 1 event input" "Not started,Started"
bitfld.word 0x00 8. " COMPEI0 ,Comparator 0 event input" "Not started,Started"
bitfld.word 0x00 4. " WINEO0 ,Window 0 event output enable" "Disabled,Enabled"
textline " "
bitfld.word 0x00 1. " COMPEO1 ,Comparator 1 event output enable" "Disabled,Enabled"
bitfld.word 0x00 0. " COMPEO0 ,Comparator 0 event output enable" "Disabled,Enabled"
endif
group.byte 0x05++0x01
line.byte 0x00 "INTEN_SET/CLR,Interrupt Enable Set/Clear"
setclrfld.byte 0x00 4. 0x00 4. -0x01 4. " WIN0 ,Window 0 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"
eventfld.byte 0x01 4. " WIN0 ,Window 0" "No interrupt,Interrupt"
eventfld.byte 0x01 1. " COMP1 ,Comparator 1" "No interrupt,Interrupt"
eventfld.byte 0x01 0. " COMP0 ,Comparator 0" "No interrupt,Interrupt"
if ((per.b(ad:0x42004400+0x09)&0x03)==0x02)
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "0,1"
elif ((per.b(ad:0x42004400+0x09)&0x03)==0x01)
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "0,1"
elif ((per.b(ad:0x42004400+0x09)&0x03)==0x03)
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "0,1"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "0,1"
else
rgroup.byte 0x08++0x00
line.byte 0x00 "STATUSA,Status A"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
endif
sif cpuis("ATSAMDA1*")
group.byte 0x09++0x00
line.byte 0x00 "STATUSB,Status B"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 1. " READY1 ,Comparator 1 ready" "Not ready,Ready"
bitfld.byte 0x00 0. " READY0 ,Comparator 0 ready" "Not ready,Ready"
else
rgroup.byte 0x09++0x00
line.byte 0x00 "STATUSB,Status B"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy" "Idle,Busy"
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current ready" "Not ready,Ready"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current ready" "Not ready,Ready"
endif
sif (cpuis("ATSAMD21*")||cpuis("ATSAMD20*"))
hgroup.byte 0x0A++0x00
hide.byte 0x00 "STATUSC,Status C"
textfld " "
in
else
if ((per.b(ad:0x42004400+0x09)&0x03)==0x02)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "0,1"
elif ((per.b(ad:0x42004400+0x09)&0x03)==0x01)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "0,1"
elif ((per.b(ad:0x42004400+0x09)&0x03)==0x03)
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
bitfld.byte 0x00 1. " STATE1 ,Comparator 1 current state" "0,1"
bitfld.byte 0x00 0. " STATE0 ,Comparator 0 current state" "0,1"
else
rgroup.byte 0x0A++0x00
line.byte 0x00 "STATUSC,Status C"
bitfld.byte 0x00 4.--5. " WSTATE0 ,Window 0 current state" "Above,Inside,Below,?..."
endif
endif
group.byte 0x0C++0x00
line.byte 0x00 "WINCTRL,Window Control"
bitfld.byte 0x00 1.--2. " WINTSEL0 ,Window 0 interrupt selection" "Above,Inside,Below,Outside"
bitfld.byte 0x00 0. " WEN0 ,Window 0 mode enable" "Disabled,Enabled"
sif !cpuis("ATSAMDA1*")&&!cpuis("ATSAMD21*")
group.byte 0x20++0x01
line.byte 0x00 "SCALER0,Scaler 0"
hexmask.byte 0x00 0.--5. 1. " VALUE ,Scaler value"
line.byte 0x01 "SCALER1,Scaler 1"
hexmask.byte 0x01 0.--5. 1. " VALUE ,Scaler value"
endif
textline " "
if ((per.b(ad:0x42004400+0x10)&0x01)==0x00)
if ((per.b(ad:0x42004400+0x10)&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 19. " HYST ,Hysteresis enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,?..."
bitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
bitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
bitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
else
if ((per.b(ad:0x42004400+0x10)&0x02)==0x00)
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 19. " HYST ,Hysteresis enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,?..."
rbitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
rbitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x10++0x03
line.long 0x00 "COMPCTRL0,Comparator Control 0"
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
rbitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
endif
if ((per.b(ad:0x42004400+0x14)&0x01)==0x00)
if ((per.b(ad:0x42004400+0x14)&0x02)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 19. " HYST ,Hysteresis enable" "Disabled,Enabled"
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,?..."
bitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
bitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
bitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
bitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
bitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
bitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
bitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
bitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,EOC"
bitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
bitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
else
if ((per.b(ad:0x42004400+0x14)&0x02)==0x00)
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 19. " HYST ,Hysteresis enable" "Disabled,Enabled"
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,?..."
rbitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
rbitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
else
group.long 0x14++0x03
line.long 0x00 "COMPCTRL1,Comparator Control 1"
rbitfld.long 0x00 24.--26. " FLEN ,Filter length" "OFF,MAJ3,MAJ5,?..."
rbitfld.long 0x00 16.--17. " OUT ,Output" "OFF,ASYNC,SYNC,?..."
textline " "
rbitfld.long 0x00 15. " SWAP ,Swap inputs and invert" "MUXPOS-positive input/MUXNEG-negative input,MUXPOS-negative input/MUXNEG-positive input"
rbitfld.long 0x00 12.--13. " MUXPOS ,Positive input mux selection" "PIN0,PIN1,PIN2,PIN3"
rbitfld.long 0x00 8.--10. " MUXNEG ,Negative input mux selection" "PIN0,PIN1,PIN2,PIN3,GND,VSCALE,BANDGAP,DAC"
textline " "
rbitfld.long 0x00 5.--6. " INTSEL ,Interrupt selection" "TOGGLE,RISING,FALLING,EOC"
rbitfld.long 0x00 2.--3. " SPEED ,Speed selection" "LOW,HIGH,?..."
rbitfld.long 0x00 1. " SINGLE ,Single-Shot mode" "Continuous measurement mode,Single-shot mode"
textline " "
bitfld.long 0x00 0. " ENABLE ,Enable" "Disabled,Enabled"
endif
endif
sif cpuis("ATSAMDA1*")||cpuis("ATSAMD21*")
group.byte 0x20++0x01
line.byte 0x00 "SCALER0,Scaler 0"
hexmask.byte 0x00 0.--5. 1. " VALUE ,Scaler value"
line.byte 0x01 "SCALER1,Scaler 1"
hexmask.byte 0x01 0.--5. 1. " VALUE ,Scaler value"
endif
width 0x0B
tree.end
tree "DAC (Digital to Analog Converter)"
base ad:0x42004800
width 10.
group.byte 0x00++0x02
line.byte 0x00 "CTRLA,Control A"
bitfld.byte 0x00 2. " RUNSTDBY ,Run in standby" "Disabled,Enabled"
bitfld.byte 0x00 1. " ENABLE ,Enable" "Disabled,Enabled"
bitfld.byte 0x00 0. " SWRST ,Software reset" "No reset,Reset"
line.byte 0x01 "CTRLB,Control B"
bitfld.byte 0x01 6.--7. " REFSEL ,Reference selection" "INT1V,AVCC,VREFP,?..."
sif cpuis("ATSAMHA1G14A")||cpuis("ATSAMHA1G15A")||cpuis("ATSAMHA1G16A")
bitfld.byte 0x01 4. " BDWP ,Bypass DATABUF write protection" "Protected,Not protected"
endif
textline " "
bitfld.byte 0x01 3. " VPD ,Voltage pump disable" "No,Yes"
bitfld.byte 0x01 2. " LEFTADJ ,Left-Adjusted data" "Right-adjusted,Left-adjusted"
textline " "
bitfld.byte 0x01 1. " IOEN ,Internal output enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " EOEN ,External output enable" "Disabled,Enabled"
line.byte 0x02 "EVCTRL,Event Control"
bitfld.byte 0x02 1. " EMPTYEO ,Data buffer empty event output" "Disabled,Enabled"
bitfld.byte 0x02 0. " STARTEI ,Start conversion event input" "Not triggered,Triggered"
group.byte 0x04++0x02
line.byte 0x00 "INTENCLR,Interrupt Enable Clear"
eventfld.byte 0x00 2. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 1. " EMPTY ,Data buffer empty interrupt enable" "Disabled,Enabled"
eventfld.byte 0x00 0. " UNDERRUN ,Underrun interrupt enable" "Disabled,Enabled"
line.byte 0x01 "INTENSET,Interrupt Enable Set"
bitfld.byte 0x01 2. " SYNCRDY ,Synchronization ready interrupt enable" "Disabled,Enabled"
bitfld.byte 0x01 1. " EMPTY ,Data buffer empty interrupt enable" "Disabled,Enabled"
bitfld.byte 0x01 0. " UNDERRUN ,Underrun interrupt enable" "Disabled,Enabled"
line.byte 0x02 "INTFLAG,Interrupt Flag Status And Clear"
eventfld.byte 0x02 2. " SYNCRDY ,Synchronization ready" "No interrupt,Interrupt"
eventfld.byte 0x02 1. " EMPTY ,Data buffer empty" "No interrupt,Interrupt"
eventfld.byte 0x02 0. " UNDERRUN ,Underrun" "No interrupt,Interrupt"
rgroup.byte 0x07++0x00
line.byte 0x00 "STATUS,Status"
bitfld.byte 0x00 7. " SYNCBUSY ,Synchronization busy status" "Idle,Busy"
group.word 0x08++0x01
line.word 0x00 "DATA,Data"
hexmask.word 0x00 0.--15. 1. " DATA ,Data value"
group.word 0x0C++0x01
line.word 0x00 "DATABUF,Data Buffer"
hexmask.word 0x00 0.--15. 1. " DATABUF ,Data buffer"
width 0x0B
tree.end
textline ""