; -------------------------------------------------------------------------------- ; @Title: NM1200 On-Chip Peripherals ; @Props: Released ; @Author: KRZ ; @Changelog: 2023-08-22 KRZ ; 2023-11-09 KRZ ; @Manufacturer: NUVOTON - Nuvoton Technology Corp. ; @Doc: Generated (TRACE32, build: 164352.), based on: ; NM1200AE_v1.svd (Ver. 1.0) ; @Core: Cortex-M0 ; @Chip: NM1200LBAE, NM1200ZBAE, NM1100FBAE ; @Copyright: (C) 1989-2023 Lauterbach GmbH, licensed for use with TRACE32(R) only ; -------------------------------------------------------------------------------- ; $Id: pernm1200.per 16971 2023-11-09 16:09:22Z kwisniewski $ AUTOINDENT.ON CENTER TREE ENUMDELIMITER "," base ad:0x0 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 "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 "ACMP (Analog Comparator)" base ad:0x400D0000 group.long 0x0++0xF line.long 0x0 "ACMP_CTL0,Analog Comparator 0 Control Register" bitfld.long 0x0 29.--30. "POSSEL,Analog Comparator 0 Positive Input Selection\n" "0: CPP0 is from P1.5 pin,1: CPP0 is from P1.0 pin,?,?" bitfld.long 0x0 12. "SMPTSEL,Analog Comparator 0 Speed Mode Selection\n" "0: Slow mode,1: Fast mode" newline bitfld.long 0x0 9. "FTRGEN,Analog Comparator 0 Falling Edge Trigger Enable\nNote: The bit is only effective while analog comparator 0 triggers PWM or Timer." "0: Disabled,1: Enabled" bitfld.long 0x0 8. "RTRGEN,Analog Comparator 0 Rising Edge Trigger Enable\nNote: The bit is only effective while analog comparator 0 triggers PWM or Timer." "0: Disabled,1: Enabled" newline bitfld.long 0x0 4. "NEGSEL,Analog Comparator 0 Negative Input Selection\n" "0: CPN0 (ACMP0_N) pin,1: Internal band-gap / comparator reference voltage" bitfld.long 0x0 2.--3. "HYSSEL,Analog Comparator 0 Hysteresis Selection\n" "0: CMP0 Hysteresis Disabled,1: CMP0 Hysteresis typical range is 15mV,?,?" newline bitfld.long 0x0 1. "ACMPIE,Analog Comparator 0 Interrupt Enable Control\n" "0: Interrupt function Disabled,1: Interrupt function Enabled" bitfld.long 0x0 0. "ACMPEN,Analog Comparator 0 Enable Control\nNote: Analog comparator output needs to wait 2 us stable time after this bit is set." "0: Analog Comparator 0 Disabled,1: Analog Comparator 1 Enabled" line.long 0x4 "ACMP_CTL1,Analog Comparator 1 Control Register" bitfld.long 0x4 29.--30. "POSSEL,Comparator 1 Positive Input Selection\n" "0: CPP1 is from P3.1 pin,1: CPP1 is from P3.2 pin,?,?" bitfld.long 0x4 12. "SMPTSEL,Analog Comparator 1 Speed Mode Selection\n" "0: Slow mode,1: Fast mode" newline bitfld.long 0x4 9. "FTRGEN,Analog Comparator 1 Falling Edge Trigger Enable\nNote: The bit is only effective while analog comparator 1 triggers PWM or Timer." "0: Disabled,1: Enabled" bitfld.long 0x4 8. "RTRGEN,Analog Comparator 1 Rising Edge Trigger Enable\nNote: The bit is only effective while analog comparator 1 triggers PWM or Timer." "0: Disabled,1: Enabled" newline bitfld.long 0x4 4. "NEGSEL,Analog Comparator 1 Negative Input Selection\n" "0: CPN0 (ACMP0_N) pin,1: Internal band-gap / comparator reference voltage" bitfld.long 0x4 2.--3. "HYSSEL,Analog Comparator 1 Hysteresis Selction\n" "0: CMP0 Hysteresis Disabled,1: CMP0 Hysteresis typical range is 15mV,?,?" newline bitfld.long 0x4 1. "ACMPIE,Analog Comparator 1 Interrupt Enable Control\n" "0: Interrupt function Disabled,1: Interrupt function Enabled" bitfld.long 0x4 0. "ACMPEN,Analog Comparator 1 Enable Control\nNote: Analog comparator output needs to wait 2 us stable time after this bit is set.." "0: Analog Comparator 1 Disabled,1: Analog Comparator 1 Enabled" line.long 0x8 "ACMP_STATUS,Analog Comparator 0/1 Status Register" bitfld.long 0x8 3. "ACMPO1,Analog Comparator 1 Output\n" "0: Analog comparator 1 outputs 0,1: Analog comparator 1 outputs 1" bitfld.long 0x8 2. "ACMPO0,Analog Comparator 0 Output\n" "0: Analog comparator 0 outputs 0,1: Analog comparator 0 outputs 1" newline bitfld.long 0x8 1. "ACMPIF1,Analog Comparator 1 Flag\nNote: Software can write 1 to clear this bit to zero." "0: Analog comparator 1 output does not change,1: Analog comparator 1 output changed" bitfld.long 0x8 0. "ACMPIF0,Analog Comparator 0 Flag\nNote: Software can write 1 to clear this bit to zero." "0: Analog comparator 0 output does not change,1: Analog comparator 0 output changed" line.long 0xC "ACMP_VREF,Analog Comparator Reference Voltage Control Register" bitfld.long 0xC 7. "IREFSEL,CRV Module Output Selection\n" "0: Band-gap voltage,1: Internal comparator reference voltage" hexmask.long.byte 0xC 0.--3. 1. "CRVCTL,Internal Reference Selection\n" tree.end tree "ADC (Analog-to-Digital Converter)" base ad:0x400E0000 rgroup.long 0x0++0x3 line.long 0x0 "ADC_DAT,ADC Data Register" bitfld.long 0x0 17. "VALID,Valid Flag\nThis bit is set to 1 when ADC conversion is completed and cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT[9:0] bits not valid,1: Data in RESULT[9:0] bits valid" bitfld.long 0x0 16. "OV,Over Run Flag\nIf converted data in RESULT[9:0] has not been read before the new conversion result is loaded to this register OV is set to 1. It is cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT[9:0] is recent conversion result,1: Data in RESULT[9:0] overwrote" newline hexmask.long.word 0x0 0.--9. 1. "RESULT,A/D Conversion Result\nThis field contains conversion result of ADC." group.long 0x20++0x13 line.long 0x0 "ADC_CTL,ADC Control Register" bitfld.long 0x0 12. "VREFSEL,Reference Voltage Selection Signal\n" "0: Connect VDD5V to internal reference,1: Connect VREF (AIN0) pin to internal reference" bitfld.long 0x0 11. "SWTRG,A/D Conversion Start\nSWTRG bit can be set to 1 from two sources: software and external pin STADC. SWTRG will be cleared to 0 by hardware automatically after conversion complete.\n" "0: Conversion stopped and A/D converter entered..,1: Conversion start" newline bitfld.long 0x0 8. "HWTRGEN,External Trigger Enable\nEnable or disable triggering of A/D conversion by external STADC pin. If external trigger is enabled the SWTRG bit can be set to 1 by the selected hardware trigger source.\n" "0: External trigger Disabled,1: External trigger Enabled" bitfld.long 0x0 6. "HWTRGCOND,External Trigger Condition\nThis bit decides whether the external pin STADC trigger event is falling or raising edge. The signal must be kept at stable state at least 4 PCLKs at high and low state for edge trigger.\n" "0: Falling edge,1: Raising edge" newline bitfld.long 0x0 4.--5. "HWTRGSEL,Hardware Trigger Source\nNote: Software should disable HWTRGEN and SWTRG before change HWTRGSEL." "0: A/D conversion is started by external STADC pin,?,?,?" bitfld.long 0x0 1. "ADCIEN,A/D Interrupt Enable\nA/D conversion end interrupt request is generated if ADCIEN bit is set to 1.\n" "0: A/D interrupt function Disabled,1: A/D interrupt function Enabled" newline bitfld.long 0x0 0. "ADCEN,A/D Converter Enable\nNote: Before starting A/D conversion function this bit should be set to 1. Clear it to 0 to disable A/D converter analog circuit to save power consumption." "0: A/D Converter Disabled,1: A/D Converter Enabled" line.long 0x4 "ADC_CHEN,ADC Channel Enable Register" bitfld.long 0x4 13. "BGEN,Band-Gap Voltage Measurement\nNote: User can set BGEN high to use ADC to measure Band-Gap voltage directly to instead of enabling PRESET and CHEN7." "0: Disabled,1: Enabled" bitfld.long 0x4 12. "CHEN11,Analog Input Channel 11 Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x4 11. "CHEN10,Analog Input Channel 10 Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x4 10. "CHEN9,Analog Input Channel 9 Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x4 9. "CHEN8,Analog Input Channel 8 Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x4 8. "CH7SEL,Analog Input Channel 7 Selection\nNote: When software selects the band-gap voltage as the analog input source of ADC channel 7 the ADC clock rate needs to be limited to lower than 300 kHz." "0: External analog input,1: Internal band-gap voltage (VBG)" newline bitfld.long 0x4 7. "CHEN7,Analog Input Channel 7 Enable\n" "0: Channel 7 Disabled,1: Channel 7 Enabled" bitfld.long 0x4 6. "CHEN6,Analog Input Channel 6 Enable\n" "0: Channel 6 Disabled,1: Channel 6 Enabled" newline bitfld.long 0x4 5. "CHEN5,Analog Input Channel 5 Enable\n" "0: Channel 5 Disabled,1: Channel 5 Enabled" bitfld.long 0x4 4. "CHEN4,Analog Input Channel 4 Enable\n" "0: Channel 4 Disabled,1: Channel 4 Enabled" newline bitfld.long 0x4 3. "CHEN3,Analog Input Channel 3 Enable\n" "0: Channel 3 Disabled,1: Channel 3 Enabled" bitfld.long 0x4 2. "CHEN2,Analog Input Channel 2 Enable\n" "0: Channel 2 Disabled,1: Channel 2 Enabled" newline bitfld.long 0x4 1. "CHEN1,Analog Input Channel 1 Enable\n" "0: Channel 1 Disabled,1: Channel 1 Enabled" bitfld.long 0x4 0. "CHEN0,Analog Input Channel 0 Enable\nNote: If software enables more than one channel the channel with the smallest number will be selected and the other enabled channels will be ignored." "0: Channel 0 Disabled,1: Channel 0 Enabled" line.long 0x8 "ADC_CMP0,ADC Compare Register 0" hexmask.long.word 0x8 16.--25. 1. "CMPDAT,Comparison Data\nThe 10-bit data is used to compare with conversion result of specified channel." hexmask.long.byte 0x8 8.--11. 1. "CMPMCNT,Compare Match Count\nWhen the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2] the internal match counter will increase 1. When the internal counter reaches the value to (CMPMCNT +1) the ADCMPFx.." newline hexmask.long.byte 0x8 3.--6. 1. "CMPCH,Compare Channel Selection\n" bitfld.long 0x8 2. "CMPCOND,Compare Condition\nNote: When the internal counter reaches the value to (CMPMCNT +1) the ADCMPFx bit will be set." "0: Less than the 10-bit CMPDAT,1: Greater or equal to the 10-bit CMPDAT" newline bitfld.long 0x8 1. "ADCMPIE,Compare Interrupt Enable\nIf the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMCNT ADCMPFx bit will be asserted in the meanwhile if CMPCOND is set to 1 a compare interrupt request is generated.\n" "0: Compare function interrupt Disabled,1: Compare function interrupt Enabled" bitfld.long 0x8 0. "ADCMPEN,Compare Enable\nSet 1 to this bit to enable comparing CMPDAT[9:0] with specified channel conversion results when converted data is loaded into the ADC_DAT register.\n" "0: Compare function Disabled,1: Compare function Enabled" line.long 0xC "ADC_CMP1,ADC Compare Register 0" hexmask.long.word 0xC 16.--25. 1. "CMPDAT,Comparison Data\nThe 10-bit data is used to compare with conversion result of specified channel." hexmask.long.byte 0xC 8.--11. 1. "CMPMCNT,Compare Match Count\nWhen the specified A/D channel analog conversion result matches the compare condition defined by CMPCOND[2] the internal match counter will increase 1. When the internal counter reaches the value to (CMPMCNT +1) the ADCMPFx.." newline hexmask.long.byte 0xC 3.--6. 1. "CMPCH,Compare Channel Selection\n" bitfld.long 0xC 2. "CMPCOND,Compare Condition\nNote: When the internal counter reaches the value to (CMPMCNT +1) the ADCMPFx bit will be set." "0: Less than the 10-bit CMPDAT,1: Greater or equal to the 10-bit CMPDAT" newline bitfld.long 0xC 1. "ADCMPIE,Compare Interrupt Enable\nIf the compare function is enabled and the compare condition matches the setting of CMPCOND and CMPMCNT ADCMPFx bit will be asserted in the meanwhile if CMPCOND is set to 1 a compare interrupt request is generated.\n" "0: Compare function interrupt Disabled,1: Compare function interrupt Enabled" bitfld.long 0xC 0. "ADCMPEN,Compare Enable\nSet 1 to this bit to enable comparing CMPDAT[9:0] with specified channel conversion results when converted data is loaded into the ADC_DAT register.\n" "0: Compare function Disabled,1: Compare function Enabled" line.long 0x10 "ADC_STATUS,ADC Status Register" rbitfld.long 0x10 16. "OV,OV Flag (Read Only)\nIt is a mirror to OV bit in ADC_DAT register." "0,1" rbitfld.long 0x10 8. "VALID,Data Valid Flag (Read Only)\nIt is a mirror of VALID bit in ADC_DAT register." "0,1" newline rbitfld.long 0x10 4.--6. "CHANNEL,Current Conversion Channel (Read Only)\n" "0,1,2,3,4,5,6,7" rbitfld.long 0x10 3. "BUSY,BUSY/IDLE (Read Only)\nThis bit is mirror of as SWTRG bit in ADC_CTL\n" "0: A/D converter is in idle state,1: A/D converter is busy at conversion" newline bitfld.long 0x10 2. "ADCMPF1,Compare Flag 1\nWhen the selected channel A/D conversion result meets the setting condition in ADC_CMP1 this bit is set to 1. Software can write 1 to clear this bit to zero.\n" "0: Conversion result in ADC_DAT does not meet the..,1: Conversion result in ADC_DAT meets the ADC_CMP1.." bitfld.long 0x10 1. "ADCMPF0,Compare Flag 0\nWhen the selected channel A/D conversion result meets the setting condition in ADC_CMP0 this bit is set to 1. Software can write 1 to clear this bit to zero.\n" "0: Conversion result in ADC_DAT does not meet the..,1: Conversion result in ADC_DAT meets the ADC_CMP0.." newline bitfld.long 0x10 0. "ADIF,A/D Conversion End Flag\nA status flag that indicates the end of A/D conversion. ADIF is set to 1 When A/D conversion ends.\nSoftware can write 1 to clear this bit to zero." "0,1" group.long 0x44++0xB line.long 0x0 "ADC_TRGDLY,ADC Trigger Delay Control Register" hexmask.long.byte 0x0 0.--7. 1. "DELAY,PWM Trigger Delay Timer\nSet this field will delay ADC start conversion time after PWM trigger.\nPWM trigger delay time is (4 * DELAY) * system clock." line.long 0x4 "ADC_EXTSMPT,ADC Sampling Time Counter Register" hexmask.long.byte 0x4 0.--3. 1. "EXTSMPT,ADC Sampling Counter\nADC sampling counters are 6 ADC clock is suggestion." line.long 0x8 "ADC_SEQCTL,ADC PWM Sequential Mode Control Register" bitfld.long 0x8 18.--19. "TRG2SRC,ADC Sequential Mode Trigger2 Source\n" "0: PWM0,1: PWM2,?,?" bitfld.long 0x8 16.--17. "TRG2TYPE,ADC Sequential Mode Trigger2 Type\n" "0: Rising of the selected PWM,1: Center of the selected PWM,?,?" newline bitfld.long 0x8 10.--11. "TRG1SRC,ADC Sequential Mode Trigger1 Source\n" "0: PWM0,1: PWM2,?,?" bitfld.long 0x8 8.--9. "TRG1TYPE,ADC Sequential Mode Trigger1 Type\n" "0: Rising of the selected PWM,1: Center of the selected PWM,?,?" newline bitfld.long 0x8 2.--3. "MODESEL,ADC Sequential Mode Selection\n" "0: Issue ADC_INT after Channel 0 then Channel 1..,1: Issue ADC_INT after Channel 1 then Channel 2..,?,?" bitfld.long 0x8 1. "SEQTYPE,ADC Sequential Mode Type\n" "0: ADC delay time is only inserted before the first..,1: ADC delay time is inserted before each.." newline bitfld.long 0x8 0. "SEQEN,ADC Sequential Mode Enable\nWhen ADC sequential mode is enabled two of three ADC channels from 0 to 2 will automatically convert analog data in the sequence of channel [0 1] or channel[1 2] or channel[0 2] defined by SEQ_MODE[1:0].\n" "0: ADC sequential mode Disabled,1: ADC sequential mode Enabled" rgroup.long 0x50++0x7 line.long 0x0 "ADC_SEQDAT0,ADC PWM Sequential Mode Result Register 0" bitfld.long 0x0 17. "VALID,Valid Flag\nThis bit is set to 1 when ADC conversion is completed and cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT [9:0] bits not valid,1: Data in RESULT. ADC_TRGDLY [9:0] bits valid" bitfld.long 0x0 16. "OV,Over Run Flag\nIf converted data in RESULT [9:0] has not been read before the new conversion result is loaded to this register OV is set to 1. It is cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT [9:0] is recent conversion result,1: Data in RESULT [9:0] overwritten" newline hexmask.long.word 0x0 0.--9. 1. "RESULT,A/D PWM Sequential Mode Conversion Result\nThis field contains conversion result of ADC." line.long 0x4 "ADC_SEQDAT1,ADC PWM Sequential Mode Result Register 0" bitfld.long 0x4 17. "VALID,Valid Flag\nThis bit is set to 1 when ADC conversion is completed and cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT [9:0] bits not valid,1: Data in RESULT. ADC_TRGDLY [9:0] bits valid" bitfld.long 0x4 16. "OV,Over Run Flag\nIf converted data in RESULT [9:0] has not been read before the new conversion result is loaded to this register OV is set to 1. It is cleared by hardware after the ADC_DAT register is read." "0: Data in RESULT [9:0] is recent conversion result,1: Data in RESULT [9:0] overwritten" newline hexmask.long.word 0x4 0.--9. 1. "RESULT,A/D PWM Sequential Mode Conversion Result\nThis field contains conversion result of ADC." tree.end tree "CLK (Clock Controller)" base ad:0x50000200 group.long 0x0++0x1F line.long 0x0 "CLK_PWRCTL,System Power-down Control Register" bitfld.long 0x0 10.--11. "HXTGAIN,HXT Gain Selection\n" "0: Full gain for the frequency up to 24MHz,1: 3/4 gain for the frequency up to 16MHz,?,?" bitfld.long 0x0 9. "PDLXT,Enable LXT In Power-Down Mode\nThis bit controls the crystal oscillator active or not in Power-down mode.\n" "0: No effect to Power-down mode,1: If XTLEN[1:0] = 10 LXT is still active in.." newline bitfld.long 0x0 7. "PDEN,System Power-Down Enable Bit (Write Protect)\nWhen chip wakes up from Power-down mode this bit is cleared by hardware. User needs to set this bit again for next Power-down.\nIn Power-down mode 4~24 MHz external high speed crystal oscillator (HXT) .." "0: Chip operating normally or chip in Idle mode..,1: Chip enters Power-down mode instantly or waits.." bitfld.long 0x0 6. "PDWKIF,Power-Down Mode Wake-Up Interrupt Status\nSet by 'Power-down wake-up event' which indicates that resume from Power-down mode'\nThe flag is set if the GPIO UART WDT ACMP Timer or BOD wake-up occurred.\nNote: This bit works only if PDWKIEN.." "0,1" newline bitfld.long 0x0 5. "PDWKIEN,Power-Down Mode Wake-Up Interrupt Enable Control (Write Protect)\nNote: The interrupt will occur when both PDWKIF and PDWKIEN are high." "0: Disabled,1: Enabled" bitfld.long 0x0 4. "PDWKDLY,Wake-Up Delay Counter Enable Control (Write Protect)\nWhen the chip wakes up from Power-down mode the clock control will delay certain clock cycles to wait system clock stable.\nThe delayed clock cycle is 4096 clock cycles when chip work at 4~24.." "0: Clock cycles delay Disabled,1: Clock cycles delay Enabled" newline bitfld.long 0x0 3. "LIRCEN,10 KHz Internal Low Speed RC Oscillator (LIRC) Enable Control (Write Protest)\n" "0: 10 kHz internal low speed RC oscillator (LIRC)..,1: 10 kHz internal low speed RC oscillator (LIRC).." bitfld.long 0x0 2. "HIRCEN,44.2368 MHz Internal High Speed RC Oscillator (HIRC) Enable Control (Write Protect)\nNote: The default of HIRCEN bit is 1." "0: HIRC Disabled,1: HIRC Enabled" newline bitfld.long 0x0 0.--1. "XTLEN,External HXT Or LXT Crystal Oscillator Enable Control (Write Protect)\nThe default clock source is from HIRC. These two bits are default set to '00' and the XTAL1 and XTAL2 pins are GPIO.\nNote: To enable external XTAL function P5_ALT[1:0] and.." "0: XTAL1 and XTAL2 are GPIO disable both LXT HXT..,1: HXT Enabled,?,?" line.long 0x4 "CLK_AHBCLK,AHB Devices Clock Enable Control Register" bitfld.long 0x4 4. "HDIVEN,Divider Clock Enable Control\n" "0: Divider clock Disabled,1: Divider clock Enabled" bitfld.long 0x4 2. "ISPCKEN,Flash ISP Controller Clock Enable Control\n" "0: Flash ISP peripheral clock Disabled,1: Flash ISP peripheral clock Enabled" line.long 0x8 "CLK_APBCLK,APB Devices Clock Enable Control Register" bitfld.long 0x8 30. "ACMPCKEN,Analog Comparator Clock Enable Control\n" "0: Analog Comparator clock Disabled,1: Analog Comparator clock Enabled" bitfld.long 0x8 28. "ADCCKEN,Analog-Digital-Converter (ADC) Clock Enable Control\n" "0: ADC peripheral clock Disabled,1: ADC peripheral clock Enabled" newline bitfld.long 0x8 22. "PWMCH45CKEN,PWM_45 Clock Enable Control\n" "0: PWM45 clock Disabled,1: PWM45 clock Enabled" bitfld.long 0x8 21. "PWMCH23CKEN,PWM_23 Clock Enable Control\n" "0: PWM23 clock Disabled,1: PWM23 clock Enabled" newline bitfld.long 0x8 20. "PWMCH01CKEN,PWM_01 Clock Enable Control\n" "0: PWM01 clock Disabled,1: PWM01 clock Enabled" bitfld.long 0x8 17. "UART1CKEN,UART1 Clock Enable Control\n" "0: UART1 clock Disabled,1: UART1 clock Enabled" newline bitfld.long 0x8 16. "UART0CKEN,UART0 Clock Enable Control\n" "0: UART0 clock Disabled,1: UART0 clock Enabled" bitfld.long 0x8 12. "SPICKEN,SPI Peripheral Clock Enable Control\n" "0: SPI peripheral clock Disabled,1: SPI peripheral clock Enabled" newline bitfld.long 0x8 8. "I2CCKEN,I2C Clock Enable Control\n" "0: I2C clock Disabled,1: I2C clock Enabled" bitfld.long 0x8 6. "CLKOCKEN,Frequency Divider Output Clock Enable Control\n" "0: FDIV clock Disabled,1: FDIV clock Enabled" newline bitfld.long 0x8 3. "TMR1CKEN,Timer1 Clock Enable Control\n" "0: Timer1 clock Disabled,1: Timer1 clock Enabled" bitfld.long 0x8 2. "TMR0CKEN,Timer0 Clock Enable Control\n" "0: Timer0 clock Disabled,1: Timer0 clock Enabled" newline bitfld.long 0x8 0. "WDTCKEN,Watchdog Timer Clock Enable Control (Write Protect)\nNote: This bit is the protected bit and programming it needs to write 0x59 0x16 and 0x88 to address 0x5000_0100 to disable register protection. Refer to the register REGWRPROT at address.." "0: Watchdog Timer clock Disabled,1: Watchdog Timer clock Enabled" line.long 0xC "CLK_STATUS,Clock Status Monitor Register" bitfld.long 0xC 7. "CLKSFAIL,Clock Switch Fail Flag\nNote1: This bit is updated when software switches system clock source. If switch target clock is stable this bit will be set to 0. If switch target clock is not stable this bit will be set to 1.\nNote2: This bit is read.." "0: Clock switching success,1: This bit is updated when software switches.." rbitfld.long 0xC 4. "HIRCSTB,HIRC Clock Source Stable Flag (Read Only)\n" "0: HIRC clock is not stable or disabled,1: HIRC clock is stable" newline rbitfld.long 0xC 3. "LIRCSTB,LIRC Clock Source Stable Flag (Read Only)\n" "0: LIRC clock is not stable or disabled,1: LIRC clock is stable" bitfld.long 0xC 0. "XTLSTB,HXT Or LXT Clock Source Stable Flag\n" "0: HXT or LXT clock is not stable or disabled,1: HXT or LXT clock is stable" line.long 0x10 "CLK_CLKSEL0,Clock Source Select Control Register 0" bitfld.long 0x10 3.--5. "STCLKSEL,Cortex-M0 SysTick Clock Source Selection From Reference Clock (Write Protect)\nNote3: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Reserved,?,3: To set CLK_PWRCTL[1:0],?,?,?,?" bitfld.long 0x10 0.--2. "HCLKSEL,HCLK Clock Source Selection (Write Protect)\nNote1: Before clock switching the related clock sources (both pre-select and new-select) must be turn-on and stable.\nNote2: These bits are protected bit and programming them needs to write 0x59 .." "0: Clock source is from HXT or LXT,1: Before clock switching,2: These bits are protected bit,3: To set CLK_PWRCTL[1:0] to select HXT or LXT..,?,?,?,?" line.long 0x14 "CLK_CLKSEL1,Clock Source Select Control Register 1" bitfld.long 0x14 26.--27. "UART1SEL,UART1 Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source from HXT or LXT crystal clock,1: Reserved,?,?" bitfld.long 0x14 24.--25. "UART0SEL,UART0 Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Reserved,?,?" newline bitfld.long 0x14 12.--14. "TMR1SEL,TIMER1 Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Clock source is from LIRC,?,?,?,?,?,?" bitfld.long 0x14 8.--10. "TMR0SEL,TIMER0 Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Clock source is from LIRC,?,?,?,?,?,?" newline bitfld.long 0x14 4. "SPISEL,SPI Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Clock source is from HCLK" bitfld.long 0x14 2.--3. "ADCSEL,ADC Peripheral Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Reserved,?,?" newline bitfld.long 0x14 0.--1. "WDTSEL,WDT CLK Clock Source Selection (Write Protect)\nNote1: These bits are the protected bit and programming them needs to write 0x59 0x16 and 0x88 to address 0x5000_0100 to disable register protection. Refer to the register REGWRPROT at address.." "0: Clock source is from HXT or LXT,1: These bits are the protected bit,2: To set CLK_PWRCTL[1:0],?" line.long 0x18 "CLK_CLKDIV,Clock Divider Number Register" hexmask.long.byte 0x18 16.--23. 1. "ADCDIV,ADC Peripheral Clock Divide Number From ADC Peripheral Clock Source\n" hexmask.long.byte 0x18 12.--15. 1. "UART1DIV,UART1 Clock Divide Number From UART1 Clock Source\n" newline hexmask.long.byte 0x18 8.--11. 1. "UART0DIV,UART0 Clock Divide Number From UART0 Clock Source\n" hexmask.long.byte 0x18 0.--3. 1. "HCLKDIV,HCLK Clock Divide Number From HCLK Clock Source\n" line.long 0x1C "CLK_CLKSEL2,Clock Source Select Control Register 2" bitfld.long 0x1C 2.--3. "FDIVSEL,Clock Divider Clock Source Selection\nNote: To set CLK_PWRCTL[1:0] select HXT or LXT crystal clock." "0: Clock source is from HXT or LXT,1: Reserved,?,?" group.long 0x24++0x3 line.long 0x0 "CLK_CLKOCTL,Frequency Divider Control Register" bitfld.long 0x0 5. "DIV1EN,Frequency Divider 1 Enable Control\n" "0: Divider output frequency is depended on FSEL value,1: Divider output frequency is the same as input.." bitfld.long 0x0 4. "CLKOEN,Frequency Divider Enable Control\n" "0: Frequency Divider Disabled,1: Frequency Divider Enabled" newline hexmask.long.byte 0x0 0.--3. 1. "FSEL,Divider Output Frequency Selection\nThe formula of output frequency is\nFin is the input clock frequency.\nFout is the frequency of divider output clock.\nN is the 4-bit value of FSEL[3:0]." tree.end tree "FMC (Flash Memory Controller)" base ad:0x5000C000 group.long 0x0++0x13 line.long 0x0 "FMC_ISPCTL,ISP Control Register" bitfld.long 0x0 6. "ISPFF,ISP Fail Flag (Write Protect)\nThis bit is set by hardware when a triggered ISP meets any of the following conditions:\n(1) APROM writes to itself if APUEN is set to 0.\n(2) LDROM writes to itself. \n(3) Destination address is illegal such as over.." "0,1" bitfld.long 0x0 5. "LDUEN,LDROM Update Enable Control (Write Protect)\n" "0: LDROM cannot be updated,1: LDROM can be updated when the MCU runs in APROM" newline bitfld.long 0x0 4. "CFGUEN,CONFIG Update Enable Control (Write Protect)\nWriting this bit to 1 enables software to update CONFIG value by ISP register control procedure regardless of program code is running in APROM or LDROM.\n" "0: ISP update User Configuration Disabled,1: ISP update User Configuration Enabled" bitfld.long 0x0 3. "APUEN,APROM Update Enable Control (Write Protect)\n" "0: APROM cannot be updated when chip runs in APROM,1: APROM can be updated when chip runs in APROM" newline bitfld.long 0x0 1. "BS,Boot Select (Write Protect)\nSet/clear this bit to select next booting from LDROM/APROM respectively. This bit also functions as chip booting status flag which can be used to check where chip booted from. This bit is initiated with the inversed.." "0: Boot from APROM,1: Boot from LDROM" bitfld.long 0x0 0. "ISPEN,ISP Enable Control (Write Protect)\nSet this bit to enable ISP function.\n" "0: ISP function Disabled,1: ISP function Enabled" line.long 0x4 "FMC_ISPADDR,ISP Address Register" hexmask.long 0x4 0.--31. 1. "ISPADR,ISP Address\nThe NuMicroTM NM1200/NM1100 series supports word program only. ISPADR[1:0] must be kept 00 for ISP operation." line.long 0x8 "FMC_ISPDAT,ISP Data Register" hexmask.long 0x8 0.--31. 1. "ISPDAT,ISP Data\nWrite data to this register before ISP program operation.\nRead data from this register after ISP read operation." line.long 0xC "FMC_ISPCMD,ISP Command Register" hexmask.long.byte 0xC 0.--5. 1. "CMD,ISP Command \nISP commands are shown below:\n" line.long 0x10 "FMC_ISPTRG,ISP Trigger Register" bitfld.long 0x10 0. "ISPGO,ISP Start Trigger (Write Protect)\nWrite 1 to start ISP operation and this bit will be cleared to 0 by hardware automatically when ISP operation is finished.\n" "0: ISP operation is finished,1: ISP operation is progressed" rgroup.long 0x14++0x3 line.long 0x0 "FMC_DFBA,Data Flash Start Address" hexmask.long 0x0 0.--31. 1. "DFBA,Data Flash Base Address\nThis register indicates data flash start address. It is a read only register.\nThe data flash start address is defined by user. Since on chip flash erase unit is 512 bytes it is mandatory to keep bit 8-0 as 0." group.long 0x40++0x3 line.long 0x0 "FMC_ISPSTS,ISP Status Register" hexmask.long.word 0x0 9.--20. 1. "VECMAP,Vector Page Mapping Address (Read Only)\nThe current flash address space 0x0000_0000~0x0000_01FF is mapping to address {VECMAP[11:0] 9'h000} ~ {VECMAP[11:0] 9'h1FF}." bitfld.long 0x0 6. "ISPFF,ISP Fail Flag (Write-Protection Bit)\nThis bit is set by hardware when a triggered ISP meets any of the following conditions:\n(1) APROM writes to itself if APUEN is set to 0.\n(2) LDROM writes to itself if LDUEN is set to 0.\n(3) CONFIG is.." "0,1" newline rbitfld.long 0x0 1.--2. "CBS,Config Boot Selection (Read Only)\nThis is a mirror of CBS in CONFIG0." "0,1,2,3" rbitfld.long 0x0 0. "ISPBUSY,ISP Start Trigger (Read Only)\nWrite 1 to start ISP operation and this bit will be cleared to 0 by hardware automatically when ISP operation is finished.\nNote: This bit is the same with FMC_ISPTRG bit 0." "0: ISP operation is finished,1: ISP operation is progressed" tree.end tree "GPIO (General Purpose I/O)" base ad:0x50004000 group.long 0x0++0xF line.long 0x0 "P0_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P0_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P0_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P0_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0x10++0x3 line.long 0x0 "P0_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0x14++0xF line.long 0x0 "P0_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P0_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P0_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P0_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0x40++0xF line.long 0x0 "P1_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P1_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P1_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P1_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0x50++0x3 line.long 0x0 "P1_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0x54++0xF line.long 0x0 "P1_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P1_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P1_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P1_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0x80++0xF line.long 0x0 "P2_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P2_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P2_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P2_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0x90++0x3 line.long 0x0 "P2_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0x94++0xF line.long 0x0 "P2_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P2_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P2_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P2_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0xC0++0xF line.long 0x0 "P3_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P3_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P3_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P3_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0xD0++0x3 line.long 0x0 "P3_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0xD4++0xF line.long 0x0 "P3_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P3_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P3_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P3_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0x100++0xF line.long 0x0 "P4_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P4_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P4_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P4_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0x110++0x3 line.long 0x0 "P4_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0x114++0xF line.long 0x0 "P4_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P4_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P4_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P4_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0x140++0xF line.long 0x0 "P5_MODE,P0 I/O Mode Control" bitfld.long 0x0 14.--15. "MODE7,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 12.--13. "MODE6,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 10.--11. "MODE5,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 8.--9. "MODE4,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 6.--7. "MODE3,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 4.--5. "MODE2,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" newline bitfld.long 0x0 2.--3. "MODE1,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" bitfld.long 0x0 0.--1. "MODE0,Port 0-5 I/O Pin [N] Mode Control\n" "0,1,2,3" line.long 0x4 "P5_DINOFF,P0 Digital Input Path Disable Control" hexmask.long.byte 0x4 16.--23. 1. "DINOFF,Port 0-5 Pin [N] Digital Input Path Disable Control\n" line.long 0x8 "P5_DOUT,P0 Data Output Value" hexmask.long.byte 0x8 0.--7. 1. "DOUT,Port 0-5 Pin [N] Output Value\nEach of these bits controls the status of a Px.n pin when the Px.n is configured as Push-pull output Open-drain output and Quasi-bidirectional mode.\n" line.long 0xC "P5_DATMSK,P0 Data Output Write Mask" hexmask.long.byte 0xC 0.--7. 1. "DATMSK,Port 0-5 Pin [N] Data Output Write Mask\nThese bits are used to protect the corresponding Px_DOUT[n] bit. When the DATMSK[n] bit is set to 1 the corresponding Px_DOUT[n] bit is protected. If the write signal is masked writing data to the protect.." rgroup.long 0x150++0x3 line.long 0x0 "P5_PIN,P0 Pin Value" hexmask.long.byte 0x0 0.--7. 1. "PIN,Port 0-5 Pin [N] Pin Value\nEach bit of the register reflects the actual status of the respective Px.n pin. If the bit is 1 it indicates the corresponding pin status is high; else the pin status is low.\n" group.long 0x154++0xF line.long 0x0 "P5_DBEN,P0 De-bounce Enable Control" hexmask.long.byte 0x0 0.--7. 1. "DBEN,Port 0-5 Pin [N] Input Signal De-Bounce Enable Control\nDBEN[n] bit is used to enable the de-bounce function for each corresponding bit. If the input signal pulse width cannot be sampled by continuous two de-bounce sample cycle the input signal.." line.long 0x4 "P5_INTTYPE,P0 Interrupt Mode Control" hexmask.long.byte 0x4 0.--7. 1. "INTTYPE,Port 0-5 Pin [N] Edge Or Level Detection Interrupt Mode Control\nINTTYPE[n] bit is used to control the triggered interrupt is by level trigger or by edge trigger. If the interrupt is by edge trigger the trigger source can be controlled by.." line.long 0x8 "P5_INTEN,P0 Interrupt Enable Control" hexmask.long.byte 0x8 16.--23. 1. "RHIEN,Port 0-5 Pin [N] Interrupt Enable By Input Rising Edge Or Input Level High\nRHIEN[n] bit is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the RHIEN[n] bit.." bitfld.long 0x8 0. "FLIEN,Port 0-5 Pin [N] Interrupt Enable By Input Falling Edge Or Input Level Low\nFLIEN[n] is used to enable the interrupt for each of the corresponding input Px.n pin. Set bit to 1 also enable the pin wake-up function.\nWhen setting the FLIEN[n] bit to.." "0: Px.n low level or high to low interrupt Disabled,1: Px.n low level or high to low interrupt Enabled" line.long 0xC "P5_INTSRC,P0 Interrupt Source Flag" hexmask.long.byte 0xC 0.--7. 1. "INTSRC,Port 0-5 Pin [N] Interrupt Source Flag\nWrite :\n" group.long 0x180++0x3 line.long 0x0 "DBNCECON,Interrupt De-bounce Control" bitfld.long 0x0 5. "ICLKON,Interrupt Clock On Mode\nNote: It is recommended to turn off this bit to save system power if no special application concern." "0: Edge detection circuit is active only if I/O pin..,1: All I/O pins edge detection circuit is always.." bitfld.long 0x0 4. "DBCLKSRC,De-Bounce Counter Clock Source Selection\n" "0: De-bounce counter clock source is the HCLK,1: De-bounce counter clock source is the 10 kHz.." hexmask.long.byte 0x0 0.--3. 1. "DBCLKSEL,De-Bounce Sampling Cycle Selection\n" group.long 0x200++0x7 line.long 0x0 "P00_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P01_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" group.long 0x210++0x13 line.long 0x0 "P04_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P05_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x8 "P06_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x8 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0xC "P07_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0xC 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x10 "P10_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x10 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" group.long 0x228++0x13 line.long 0x0 "P12_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P13_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x8 "P14_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x8 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0xC "P15_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0xC 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x10 "P16_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x10 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" group.long 0x248++0x23 line.long 0x0 "P22_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P23_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x8 "P24_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x8 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0xC "P25_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0xC 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x10 "P26_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x10 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x14 "P27_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x14 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x18 "P30_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x18 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x1C "P31_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x1C 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x20 "P32_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x20 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" group.long 0x270++0xF line.long 0x0 "P34_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P35_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x8 "P36_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x8 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0xC "P37_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0xC 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" group.long 0x298++0x1F line.long 0x0 "P46_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x0 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x4 "P47_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x4 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x8 "P50_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x8 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0xC "P51_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0xC 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x10 "P52_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x10 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x14 "P53_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x14 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x18 "P54_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x18 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" line.long 0x1C "P55_PDIO,GPIO P0.0 Pin Data Input/Output" bitfld.long 0x1C 0. "PDIO,GPIO Px.n Pin Data Input/Output\nWriting this bit can control one GPIO pin output value.\nFor example writing P01_PDIO will reflect the written value to bit P0_DOUT[1] reading P01_PDIO will return the value of P0_PIN[1].\nNote: The writing.." "0: GPIO pin set to LOW,1: GPIO pin set to HIGH" tree.end tree "HDIV (Hardware Divider)" base ad:0x50014000 group.long 0x0++0xF line.long 0x0 "HDIV_DIVIDEND,Dividend Source Register" hexmask.long 0x0 0.--31. 1. "DIVIDEND,Dividend Source\nThis register is given the dividend of divider before calculation starting." line.long 0x4 "HDIV_DIVISOR,Divisor Source Resister" hexmask.long.word 0x4 0.--15. 1. "DIVISOR,Divisor Source\nThis register is given the divisor of divider before calculation starts.\nNote: When this register is written hardware divider will start calculate." line.long 0x8 "HDIV_QUOTIENT,Quotient Result Resister" hexmask.long 0x8 0.--31. 1. "QUOTIENT,Quotient Result\nThis register holds the quotient result of divider after calculation complete." line.long 0xC "HDIV_REM,Remainder Result Register" hexmask.long 0xC 0.--31. 1. "REM,Remainder Result\nThe remainder of hardware divider is 16-bit sign integer (REM[15:0]) with sign extension (REM[31:16]) to 32-bit integer." rgroup.long 0x10++0x3 line.long 0x0 "HDIV_STATUS,Divider Status Register" bitfld.long 0x0 1. "DIVBYZERO,Divisor Zero Warning\nNote: The DIVBYZERO flag is used to indicate divide-by-zero situation and updated whenever HDIV_DIVISOR is written. This register is read only." "0: The divisor is not 0,1: The divisor is 0" tree.end tree "I2C (I2C Serial Interface Controller)" base ad:0x40020000 group.long 0x0++0xB line.long 0x0 "I2C_CTL,I2C Control Register" bitfld.long 0x0 7. "INTEN,Enable Interrupt\n" "0: I2C interrupt Disabled,1: I2C interrupt Enabled" bitfld.long 0x0 6. "I2CEN,I2C Controller Enable Bit\n" "0: I2C Controller Disabled,1: I2C Controller Enabled" newline bitfld.long 0x0 5. "STA,I2C START Control Bit\nSetting STA to logic 1 to enter Master mode. I2C hardware sends a START or repeats the START condition to bus when the bus is free." "0,1" bitfld.long 0x0 4. "STO,I2C STOP Control Bit\nIn Master mode setting STO to transmit a STOP condition to bus then I2C hardware will check the bus condition if a STOP condition is detected this bit will be cleared by hardware automatically. In Slave mode setting STO resets.." "0,1" newline bitfld.long 0x0 3. "SI,I2C Interrupt Flag\nWhen a new I2C state is present in the I2C_STATUS register the SI flag is set by hardware and if bit INTEN (I2C_CTL[7]) is set the I2C interrupt is requested. SI must be cleared by software. Software can write 1 to clear this bit." "0,1" bitfld.long 0x0 2. "AA,Assert Acknowledge Control Bit\n" "0,1" line.long 0x4 "I2C_ADDR0,I2C Slave Address Register 0" hexmask.long.byte 0x4 1.--7. 1. "ADDR,I2C Address Register\nThe content of this register is irrelevant when I2C is in Master mode. In Slave mode the seven most significant bits must be loaded with the MCU's own address. The I2C hardware will react if either of the address is matched." bitfld.long 0x4 0. "GC,General Call Function\n" "0: General Call Function Disabled,1: General Call Function Enabled" line.long 0x8 "I2C_DAT,I2C Data Register" hexmask.long.byte 0x8 0.--7. 1. "DAT,I2C Data Register\nBit [7:0] is located with the 8-bit transferred data of the I2C serial port." rgroup.long 0xC++0x3 line.long 0x0 "I2C_STATUS,I2C Status Register" hexmask.long.byte 0x0 0.--7. 1. "STATUS,I2C Status Register\n" group.long 0x10++0x23 line.long 0x0 "I2C_CLKDIV,I2C Clock Divided Register" hexmask.long.byte 0x0 0.--7. 1. "DIVIDER,I2C Clock Divided Register\nNote: The minimum value of DIVIDER is 4." line.long 0x4 "I2C_TOCTL,I2C Time-Out Counter Register" bitfld.long 0x4 2. "TOCEN,Time-Out Counter Enabled\nNote: When the 14-bit time-out counter is enabled it will start counting when SI is clear. Setting 1to the SI flag will reset counter and re-start up counting after SI is cleared." "0: Time-out counter Disabled,1: Time-out counter Enabled" bitfld.long 0x4 1. "TOCDIV4,Time-Out Counter Input Clock Divided By 4\nNote: When enabled the time-out period is extended 4 times." "0: Time-out counter input clock divided by 4 Disabled,1: Time-out counter input clock divided by 4 Enabled" newline bitfld.long 0x4 0. "TOIF,Time-Out Flag\nThis bit is set by hardware when I2C time-out happened and it can interrupt CPU if I2C interrupt enable bit (INTEN) is set to 1.\nNote: Software can write 1 to clear this bit." "0,1" line.long 0x8 "I2C_ADDR1,I2C Slave Address Register 0" hexmask.long.byte 0x8 1.--7. 1. "ADDR,I2C Address Register\nThe content of this register is irrelevant when I2C is in Master mode. In Slave mode the seven most significant bits must be loaded with the MCU's own address. The I2C hardware will react if either of the address is matched." bitfld.long 0x8 0. "GC,General Call Function\n" "0: General Call Function Disabled,1: General Call Function Enabled" line.long 0xC "I2C_ADDR2,I2C Slave Address Register 0" hexmask.long.byte 0xC 1.--7. 1. "ADDR,I2C Address Register\nThe content of this register is irrelevant when I2C is in Master mode. In Slave mode the seven most significant bits must be loaded with the MCU's own address. The I2C hardware will react if either of the address is matched." bitfld.long 0xC 0. "GC,General Call Function\n" "0: General Call Function Disabled,1: General Call Function Enabled" line.long 0x10 "I2C_ADDR3,I2C Slave Address Register 0" hexmask.long.byte 0x10 1.--7. 1. "ADDR,I2C Address Register\nThe content of this register is irrelevant when I2C is in Master mode. In Slave mode the seven most significant bits must be loaded with the MCU's own address. The I2C hardware will react if either of the address is matched." bitfld.long 0x10 0. "GC,General Call Function\n" "0: General Call Function Disabled,1: General Call Function Enabled" line.long 0x14 "I2C_ADDRMSK0,I2C Slave Address Mask Register 0" hexmask.long.byte 0x14 1.--7. 1. "ADDRMSK,I2C Address Mask Register\n" line.long 0x18 "I2C_ADDRMSK1,I2C Slave Address Mask Register 0" hexmask.long.byte 0x18 1.--7. 1. "ADDRMSK,I2C Address Mask Register\n" line.long 0x1C "I2C_ADDRMSK2,I2C Slave Address Mask Register 0" hexmask.long.byte 0x1C 1.--7. 1. "ADDRMSK,I2C Address Mask Register\n" line.long 0x20 "I2C_ADDRMSK3,I2C Slave Address Mask Register 0" hexmask.long.byte 0x20 1.--7. 1. "ADDRMSK,I2C Address Mask Register\n" group.long 0x3C++0x7 line.long 0x0 "I2C_CTL1,I2C Control Register 1" bitfld.long 0x0 4. "URIEN,I2C UNDER RUN Interrupt Control Bit\nSetting URIEN to enable will send a interrupt to system when the TWOFF bit is enabled and there is under run event happened in transmitted FIFO.\n" "0: Disabled,1: Enabled" bitfld.long 0x0 3. "OVIEN,I2C OVER RUN Interrupt Control Bit\nSetting OVIEN to enable will send a interrupt to system when the TWOFF bit is enabled and there is over run event in received FIFO.\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 2. "NSTRETCH,NO STRETCH The I2C BUS\n" "0: The I2C SCL bus is stretched by hardware if the..,1: The I2C SCL bus is not stretched by hardware if.." bitfld.long 0x0 1. "FIFOEN,FIFO Mode Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 0. "WKEN,Wake-Up Enable\nThe system can be wake up by I2C bus when the system is set into power mode and the received data matched one of the addresses in Address Register." "0: I2C wake up function Disabled,1: I2C wake up function Enabled" line.long 0x4 "I2C_STATUS1,I2C Status Register 1" bitfld.long 0x4 4. "URIF,I2C UNDER RUN Status Bit\n" "0,1" bitfld.long 0x4 3. "OVIF,I2C OVER RUN Status Bit\n" "0,1" newline bitfld.long 0x4 2. "EMPTY,I2C TWO LEVEL FIFO EMPTY\n" "0,1" bitfld.long 0x4 1. "FULL,I2C TWO LEVEL FIFO FULL\n" "0,1" newline bitfld.long 0x4 0. "WKIF,I2C Wake-Up Interrupt Flag\nWhen chip is woken up from Power-Down mode by I2C this bit is set to 1. Software can write 1 to clear this bit." "0,1" tree.end tree "INT (Interrupts)" base ad:0x50000300 rgroup.long 0x0++0x27 line.long 0x0 "IRQ0SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x0 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x4 "IRQ1SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x4 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x8 "IRQ2SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x8 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0xC "IRQ3SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0xC 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x10 "IRQ4SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x10 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x14 "IRQ5SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x14 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x18 "IRQ6SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x18 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x1C "IRQ7SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x1C 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x20 "IRQ8SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x20 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x24 "IRQ9SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x24 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" rgroup.long 0x30++0xB line.long 0x0 "IRQ12SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x0 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x4 "IRQ13SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x4 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x8 "IRQ14SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x8 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" rgroup.long 0x40++0xB line.long 0x0 "IRQ16SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x0 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x4 "IRQ17SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x4 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x8 "IRQ18SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x8 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" rgroup.long 0x64++0x3 line.long 0x0 "IRQ25SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x0 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" rgroup.long 0x70++0x7 line.long 0x0 "IRQ28SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x0 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" line.long 0x4 "IRQ29SRC,IRQ0 (BOD) Interrupt Source Identity" bitfld.long 0x4 0.--2. "INT_SRC,Interrupt Source\n" "0,1,2,3,4,5,6,7" group.long 0x80++0x7 line.long 0x0 "NMICTL,NMI Source Interrupt Select Control Register" bitfld.long 0x0 8. "NMISELEN,NMI Interrupt Enable Control (Write Protected)\nNote: This bit is the protected bit and programming it needs to write 0x59 0x16 and 0x88 to address 0x5000_0100 to disable register protection. Refer to the register REGWRPROT at address.." "0: NMI interrupt Disabled,1: NMI interrupt Enabled" hexmask.long.byte 0x0 0.--4. 1. "NMTSEL,NMI Interrupt Source Selection\nThe NMI interrupt to Cortex-M0 can be selected from one of the peripheral interrupt by setting NMTSEL." line.long 0x4 "IRQSTS,MCU IRQ Number Identity Register" hexmask.long 0x4 0.--31. 1. "IRQ,MCU IRQ Source Register\nThe IRQ collects all the interrupts from the peripherals and generates the synchronous interrupt to Cortex-M0 core. There are two modes to generate interrupt to Cortex-M0 - the normal mode and test mode.\nThe IRQ collects all.." tree.end tree "PWM (PWM Generator)" base ad:0x40040000 group.long 0x0++0x3B line.long 0x0 "PWM_CLKPSC,PWM Pre-scale Register" hexmask.long.byte 0x0 16.--23. 1. "CLKPSC45,Clock Prescaler 4 For PWM Counter 4 And 5\nClock input is divided by (CLKPSC45 + 1) before it is fed to the corresponding PWM counter.\n" hexmask.long.byte 0x0 8.--15. 1. "CLKPSC23,Clock Prescaler 2 For PWM Counter 2 And 3\nClock input is divided by (CLKPSC23 + 1) before it is fed to the corresponding PWM counter.\n" newline hexmask.long.byte 0x0 0.--7. 1. "CLKPSC01,Clock Prescaler 0 For PWM Counter 0 And 1\nClock input is divided by (CLKPSC01 + 1) before it is fed to the corresponding PWM counter.\n" line.long 0x4 "PWM_CLKDIV,PWM Clock Select Register" bitfld.long 0x4 20.--22. "CLKDIV5,Timer 5 Clock Source Selection\nSelect clock input for PWM timer.\n" "0: 2 clock input/CLKPSC45/2,1: 4 clock input/CLKPSC45/4,?,?,?,?,?,?" bitfld.long 0x4 16.--18. "CLKDIV4,Timer 4 Clock Source Selection\nSelect clock input for PWM timer.\n(Table is the same as CLKDIV5.)" "0,1,2,3,4,5,6,7" newline bitfld.long 0x4 12.--14. "CLKDIV3,Timer 3 Clock Source Selection\nSelect clock input for PWM timer.\n(Table is the same as CLKDIV5.)" "0,1,2,3,4,5,6,7" bitfld.long 0x4 8.--10. "CLKDIV2,Timer 2 Clock Source Selection\nSelect clock input for PWM timer.\n(Table is the same as CLKDIV5.)" "0,1,2,3,4,5,6,7" newline bitfld.long 0x4 4.--6. "CLKDIV1,Timer 1 Clock Source Selection\nSelect clock input for PWM timer.\n(Table is the same as CLKDIV5.)" "0,1,2,3,4,5,6,7" bitfld.long 0x4 0.--2. "CLKDIV0,Timer 0 Clock Source Selection\nSelect clock input for PWM timer.\n(Table is the same as CLKDIV5.)" "0,1,2,3,4,5,6,7" line.long 0x8 "PWM_CTL,PWM Control Register" bitfld.long 0x8 31. "CNTTYPE,PWM Aligned Type Selection Bit\n" "0: Edge-aligned type,1: Center-aligned type" bitfld.long 0x8 30. "GROUPEN,Group Bit\n" "0: The signals timing of all PWM channels are..,1: Unify the signals timing of PWM0 PWM2 and PWM4.." newline bitfld.long 0x8 28.--29. "MODE,PWM Operating Mode Selection\n" "0: Independent mode,1: Complementary mode,?,?" bitfld.long 0x8 27. "CNTCLR,Clear PWM Counter Control Bit\nNote: It is automatically cleared by hardware." "0: Do not clear PWM counter,1: All 16-bit PWM counters cleared to 0x0000" newline bitfld.long 0x8 26. "DTCNT45,Dead-Zone 4 Generator Enable/Disable (PWM4 And PWM5 Pair For PWM Group)\nNote: When the dead-zone generator is enabled the pair of PWM4 and PWM5 becomes a complementary pair for PWM group." "0: Disabled,1: Enabled" bitfld.long 0x8 25. "DTCNT23,Dead-Zone 2 Generator Enable/Disable (PWM2 And PWM3 Pair For PWM Group)\nNote: When the dead-zone generator is enabled the pair of PWM2 and PWM3 becomes a complementary pair for PWM group." "0: Disabled,1: Enabled" newline bitfld.long 0x8 24. "DTCNT01,Dead-Zone 0 Generator Enable/Disable (PWM0 And PWM1 Pair For PWM Group)\nNote: When the dead-zone generator is enabled the pair of PWM0 and PWM1 becomes a complementary pair for PWM group." "0: Disabled,1: Enabled" bitfld.long 0x8 23. "CNTMODE5,PWM-Timer 5 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD5 and PWM_CMPDAT5 cleared." "0: One-shot mode,1: Auto-reload mode" newline bitfld.long 0x8 22. "PINV5,PWM-Timer 5 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" bitfld.long 0x8 21. "ASYMEN,Asymmetric Mode In Center-Aligned Type \n" "0: symmetric mode in center-aligned type,1: asymmetric mode in center-aligned type" newline bitfld.long 0x8 20. "CNTEN5,PWM-Timer 5 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" bitfld.long 0x8 19. "CNTMODE4,PWM-Timer 4 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD4 and PWM_CMPDAT4 cleared." "0: One-shot mode,1: Auto-reload mode" newline bitfld.long 0x8 18. "PINV4,PWM-Timer 4 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" bitfld.long 0x8 16. "CNTEN4,PWM-Timer 4 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" newline bitfld.long 0x8 15. "CNTMODE3,PWM-Timer 3 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD3 and PWM_CMPDAT3 cleared." "0: One-shot mode,1: Auto-reload mode" bitfld.long 0x8 14. "PINV3,PWM-Timer 3 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" newline bitfld.long 0x8 12. "CNTEN3,PWM-Timer 3 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" bitfld.long 0x8 11. "CNTMODE2,PWM-Timer 2 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD2 and PWM_CMPDAT2 cleared." "0: One-shot mode,1: Auto-reload mode" newline bitfld.long 0x8 10. "PINV2,PWM-Timer 2 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" bitfld.long 0x8 8. "CNTEN2,PWM-Timer 2 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" newline bitfld.long 0x8 7. "CNTMODE1,PWM-Timer 1 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD1 and PWM_CMPDAT1 cleared." "0: One-shot mode,1: Auto-reload mode" bitfld.long 0x8 6. "PINV1,PWM-Timer 1 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" newline bitfld.long 0x8 5. "HCUPDT,Half Cycle Update Enable For Center-Aligned Type\n" "0: disable half cycle update PERIOD CMP,1: enable half cycle update PERIOD CMP" bitfld.long 0x8 4. "CNTEN1,PWM-Timer 1 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" newline bitfld.long 0x8 3. "CNTMODE0,PWM-Timer 0 Auto-Reload/One-Shot Mode\nNote: If there is a rising transition at this bit it will cause PWM_PERIOD0 and PWM_CMPDAT0 cleared." "0: One-shot mode,1: Auto-reload mode" bitfld.long 0x8 2. "PINV0,PWM-Timer 0 Output Inverter Enabled/Disabled\n" "0: Inverter Disabled,1: Inverter Enabled" newline bitfld.long 0x8 1. "DBGTRIOFF,PWM Debug Mode Configuration Bit (Available In DEBUG Mode Only)\n" "0: Safe mode: The timer is frozen and PWM outputs..,1: Normal mode: The timer continues to operate.." bitfld.long 0x8 0. "CNTEN0,PWM-Timer 0 Enable/Disable Start Run\n" "0: Corresponding PWM-timer running Stopped,1: Corresponding PWM-timer start run Enabled" line.long 0xC "PWM_PERIOD0,PWM Counter Register 0" hexmask.long.word 0xC 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x10 "PWM_PERIOD1,PWM Counter Register 0" hexmask.long.word 0x10 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x14 "PWM_PERIOD2,PWM Counter Register 0" hexmask.long.word 0x14 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x18 "PWM_PERIOD3,PWM Counter Register 0" hexmask.long.word 0x18 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x1C "PWM_PERIOD4,PWM Counter Register 0" hexmask.long.word 0x1C 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x20 "PWM_PERIOD5,PWM Counter Register 0" hexmask.long.word 0x20 0.--15. 1. "PERIOD,PWM Counter/Timer Loaded Value\nPERIOD determines the PWM period.\nEdge-aligned mode:\nNote: Any write to PERIOD will take effect in next PWM cycle." line.long 0x24 "PWM_CMPDAT0,PWM Comparator Register 0" hexmask.long.word 0x24 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x24 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." line.long 0x28 "PWM_CMPDAT1,PWM Comparator Register 0" hexmask.long.word 0x28 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x28 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." line.long 0x2C "PWM_CMPDAT2,PWM Comparator Register 0" hexmask.long.word 0x2C 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x2C 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." line.long 0x30 "PWM_CMPDAT3,PWM Comparator Register 0" hexmask.long.word 0x30 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x30 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." line.long 0x34 "PWM_CMPDAT4,PWM Comparator Register 0" hexmask.long.word 0x34 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x34 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." line.long 0x38 "PWM_CMPDAT5,PWM Comparator Register 0" hexmask.long.word 0x38 16.--31. 1. "CMPD,PWM Comparator Register For Down Counter In Center-Aligned Asymmetric Mode\nOthers: PWM output is always high" hexmask.long.word 0x38 0.--15. 1. "CMP,PWM Comparator Register\nCMP determines the PWM duty.\nEdge-aligned mode:\nNote: Any write to CMP will take effect in next PWM cycle." group.long 0x54++0x33 line.long 0x0 "PWM_INTEN,PWM Interrupt Enable Register" bitfld.long 0x0 29. "CMPUIEN5,PWM Channel 5 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 28. "CMPUIEN4,PWM Channel 4 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 27. "CMPUIEN3,PWM Channel 3 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 26. "CMPUIEN2,PWM Channel 2 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 25. "CMPUIEN1,PWM Channel 1 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 24. "CMPUIEN0,PWM Channel 0 Rising Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 23. "PIEN5,PWM Channel 5 Central Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 22. "PIEN4,PWM Channel 4 Central Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 21. "PIEN3,PWM Channel 3 Central Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 20. "PIEN2,PWM Channel 2 Central Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 19. "PIEN1,PWM Channel 1 Central Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 18. "PIEN0,PWM Channel 0 Central Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 17. "PINTTYPE,PWM Period Interrupt Type Selection\nNote: This bit is effective when PWM in central align mode only." "0: ZIFn will be set if PWM counter underflows,1: ZIFn will be set if PWM counter matches PERIODn.." bitfld.long 0x0 16. "BRKIEN,Enable Fault Brake0 And 1 Interrupt\n" "0: Disabling flags BRKIF0 and BRKIF1 to trigger PWM..,1: Enabling flags BRKIF0 and BRKIF1 can trigger PWM.." newline bitfld.long 0x0 13. "CMPDIEN5,PWM Channel 5 Duty Interrupt Enable\n" "0: Disabled. Rising for edge aligned mode. Falling..,1: Enabled" bitfld.long 0x0 12. "CMPDIEN4,PWM Channel 4 Duty Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 11. "CMPDIEN3,PWM Channel 3 Duty Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 10. "CMPDIEN2,PWM Channel 2 Duty Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 9. "CMPDIEN1,PWM Channel 1 Duty Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 8. "CMPDIEN0,PWM Channel 0 Duty Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 5. "ZIEN5,PWM Channel 5 Period Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 4. "ZIEN4,PWM Channel 4 Period Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 3. "ZIEN3,PWM Channel 3 Period Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 2. "ZIEN2,PWM Channel 2 Period Interrupt Enable\n" "0: Disabled,1: Enabled" newline bitfld.long 0x0 1. "ZIEN1,PWM Channel 1 Period Interrupt Enable\n" "0: Disabled,1: Enabled" bitfld.long 0x0 0. "ZIEN0,PWM Channel 0 Period Interrupt Enable\n" "0: Disabled,1: Enabled" line.long 0x4 "PWM_INTSTS,PWM Interrupt Indication Register" bitfld.long 0x4 29. "CMPUIF5,PWM Channel 5 Rise Interrupt Flag\nFlag is set by hardware when a channel 5 PWM rise counter reaches \nPWM_CNT0\n5. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 28. "CMPUIF4,PWM Channel 4 Rise Interrupt Flag\nFlag is set by hardware when a channel 4 PWM rise counter reaches PWM_CMPDAT4. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 27. "CMPUIF3,PWM Channel 3 Rise Interrupt Flag\nFlag is set by hardware when a channel 3 PWM rise counter reaches PWM_CMPDAT3. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 26. "CMPUIF2,PWM Channel 2 Rise Interrupt Flag\nFlag is set by hardware when a channel 2 PWM rise counter reaches PWM_CMPDAT2. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 25. "CMPUIF1,PWM Channel 1 Rise Interrupt Flag\nFlag is set by hardware when a channel 1 PWM rise counter reaches PWM_CMPDAT1. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 24. "CMPUIF0,PWM Channel 1 Rise Interrupt Flag\nFlag is set by hardware when a channel 0 PWM rise counter reaches PWM_CMPDAT0. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 23. "PIF5,PWM Channel 5 Center Interrupt Flag\nFlag is set by hardware when a channel 5 PWM rise counter reaches CNT5. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 22. "PIF4,PWM Channel 4 Center Interrupt Flag\nFlag is set by hardware when a channel 4 PWM rise counter reaches CNT4. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 21. "PIF3,PWM Channel 3 Center Interrupt Flag\nFlag is set by hardware when a channel 3 PWM rise counter reaches CNT3. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 20. "PIF2,PWM Channel 2 Center Interrupt Flag\nFlag is set by hardware when a channel 2 PWM rise counter reaches CNT2. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 19. "PIF1,PWM Channel 1 Center Interrupt Flag\nFlag is set by hardware when a channel 1 PWM rise counter reaches CNT1. Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 18. "PIF0,PWM Channel 0 Center Interrupt Flag\nFlag is set by hardware when a channel 0 PWM rise counter reaches CNT0. Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 17. "BRKIF1,PWM Brake1 Flag\nNote: Software can write 1 to clear this bit." "0: PWM Brake does not recognize a falling signal at..,1: When PWM Brake detects a falling signal at pin.." bitfld.long 0x4 16. "BRKIF0,PWM Brake0 Flag\nNote: Software can write 1 to clear this bit." "0: PWM Brake does not recognize a falling signal at..,1: When PWM Brake detects a falling signal at pin.." newline bitfld.long 0x4 13. "CMPDIF5,PWM Channel 5 Duty Interrupt Flag\nFlag is set by hardware when a channel 5 PWM counter reaches PWM_CMPDAT5 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 12. "CMPDIF4,PWM Channel 4 Duty Interrupt Flag\nFlag is set by hardware when a channel 4 PWM counter reaches PWM_CMPDAT4 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 11. "CMPDIF3,PWM Channel 3 Duty Interrupt Flag\nFlag is set by hardware when a channel 3 PWM counter reaches PWM_CMPDAT3 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 10. "CMPDIF2,PWM Channel 2 Duty Interrupt Flag\nFlag is set by hardware when a channel 2 PWM counter reaches PWM_CMPDAT2 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 9. "CMPDIF1,PWM Channel 1 Duty Interrupt Flag\nFlag is set by hardware when a channel 1 PWM counter reaches PWM_CMPDAT1 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 8. "CMPDIF0,PWM Channel 0 Duty Interrupt Flag\nFlag is set by hardware when a channel 0 PWM counter reaches PWM_CMPDAT0 in down-count direction. \nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 5. "ZIF5,PWM Channel 5 Period Interrupt Flag\nFlag is set by hardware when PWM5 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 4. "ZIF4,PWM Channel 4 Period Interrupt Flag\nFlag is set by hardware when PWM4 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 3. "ZIF3,PWM Channel 3 Period Interrupt Flag\nFlag is set by hardware when PWM3 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 2. "ZIF2,PWM Channel 2 Period Interrupt Flag\nFlag is set by hardware when PWM2 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x4 1. "ZIF1,PWM Channel 1 Period Interrupt Flag\nFlag is set by hardware when PWM1 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x4 0. "ZIF0,PWM Channel 0 Period Interrupt Flag\nFlag is set by hardware when PWM0 down counter reaches zero. \nNote: Software can write 1 to clear this bit." "0,1" line.long 0x8 "PWM_POEN,PWM Output Enable for Channel 0~5" bitfld.long 0x8 5. "POEN5,PWM Channel 5 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 5 output to pin Disabled,1: PWM channel 5 output to pin Enabled" bitfld.long 0x8 4. "POEN4,PWM Channel 4 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 4 output to pin Disabled,1: PWM channel 4 output to pin Enabled" newline bitfld.long 0x8 3. "POEN3,PWM Channel 3 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 3 output to pin Disabled,1: PWM channel 3 output to pin Enabled" bitfld.long 0x8 2. "POEN2,PWM Channel 2 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 2 output to pin Disabled,1: PWM channel 2 output to pin Enabled" newline bitfld.long 0x8 1. "POEN1,PWM Channel 1 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 1 output to pin Disabled,1: PWM channel 1 output to pin Enabled" bitfld.long 0x8 0. "POEN0,PWM Channel 0 Output Enable Register\nNote: The corresponding GPIO pin must be switched to PWM function." "0: PWM channel 0 output to pin Disabled,1: PWM channel 0 output to pin Enabled" line.long 0xC "PWM_BRKCTL,PWM Fault Brake Control Register" bitfld.long 0xC 31. "D7BKOD,D7 Brake Output Select Register\n" "0: D7 output low when fault brake conditions asserted,1: D7 output high when fault brake conditions.." bitfld.long 0xC 30. "D6BKOD,D6 Brake Output Select Register\n" "0: D6 output low when fault brake conditions asserted,1: D6 output high when fault brake conditions.." newline bitfld.long 0xC 29. "BKOD5,PWM Channel 5 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." bitfld.long 0xC 28. "BKOD4,PWM Channel 4 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." newline bitfld.long 0xC 27. "BKOD3,PWM Channel 3 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." bitfld.long 0xC 26. "BKOD2,PWM Channel 2 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." newline bitfld.long 0xC 25. "BKOD1,PWM Channel 1 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." bitfld.long 0xC 24. "BKOD0,PWM Channel 0 Brake Output Select Register\n" "0: PWM output low when fault brake conditions..,1: PWM output high when fault brake conditions.." newline bitfld.long 0xC 9. "SWBRK,Software Brake\n" "0: Disable PWM Software brake and back to normal..,1: Assert PWM Brake immediately" bitfld.long 0xC 8. "BRKACT,PWM Brake Type\n" "0: PWM counter stop when brake is asserted,1: PWM counter keep going when brake is asserted" newline bitfld.long 0xC 7. "BRKSTS,PWM Fault Brake Event Flag (Write 1 Clear)\nSoftware can write 1 to clear this bit and must clear this bit before restart PWM counter." "0: PWM output initial state when fault brake..,1: PWM output fault brake state when fault brake.." bitfld.long 0xC 3. "BRK1SEL,BKP0 Fault Brake Function Source Selection\n" "0: EINT0 as one brake source in BKP0,1: CPO1 as one brake source in BKP0" newline bitfld.long 0xC 2. "BRK0SEL,BKP1 Fault Brake Function Source Selection\n" "0: EINT1 as one brake source in BKP1,1: CPO0 as one brake source in BKP1" bitfld.long 0xC 1. "BRK1EN,Enable BKP1 Pin Trigger Fault Brake Function 1\n" "0: Disabling BKP1 pin can trigger brake function 1..,1: Enabling a falling at BKP1 pin can trigger brake.." newline bitfld.long 0xC 0. "BRK0EN,Enable BKP0 Pin Trigger Fault Brake Function 0\n" "0: Disabling BKP0 pin can trigger brake function 0..,1: Enabling a falling at BKP0 pin can trigger brake.." line.long 0x10 "PWM_DTCTL,PWM Dead-zone Interval Register" hexmask.long.byte 0x10 16.--23. 1. "DTCNT45,Dead-Zone Interval Register For Pair Of Channel4 And Channel5 (PWM4 And PWM5 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding CLKDIV bits." hexmask.long.byte 0x10 8.--15. 1. "DTCNT23,Dead-Zone Interval Register For Pair Of Channel2 And Channel3 (PWM2 And PWM3 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding CLKDIV bits." newline hexmask.long.byte 0x10 0.--7. 1. "DTCNT01,Dead-Zone Interval Register For Pair Of Channel0 And Channel1 (PWM0 And PWM1 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding CLKDIV bits." line.long 0x14 "PWM_ADCTCTL0,PWM Trigger Control Register 0" bitfld.long 0x14 27. "ZPTRGEN3,PWM Channel 3 Zero Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x14 26. "CDTRGEN3,PWM Channel 3 Compare Down Count Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x14 25. "CPTRGEN3,PWM Channel 3 Center Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" bitfld.long 0x14 24. "CUTRGEN3,PWM Channel 3 Compare Up Count Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" newline bitfld.long 0x14 19. "ZPTRGEN2,PWM Channel 2 Zero Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x14 18. "CDTRGEN2,PWM Channel 2 Compare Down Count Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x14 17. "CPTRGEN2,PWM Channel 2 Center Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" bitfld.long 0x14 16. "CUTRGEN2,PWM Channel 2 Compare Up Count Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" newline bitfld.long 0x14 11. "ZPTRGEN1,PWM Channel 1 Zero Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x14 10. "CDTRGEN1,PWM Channel 1 Compare Down Count Point Trigger ADC Enable Bit \nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x14 9. "CPTRGEN1,Note: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "?,1: Enabled" bitfld.long 0x14 8. "CUTRGEN1,PWM Channel 1 Compare Up Count Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" newline bitfld.long 0x14 3. "ZPTRGEN0,PWM Channel 0 Zero Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x14 2. "CDTRGEN0,PWM Channel 0 Compare Down Count Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x14 1. "CPTRGEN0,PWM Channel 0 Center Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" bitfld.long 0x14 0. "CUTRGEN0,PWM Channel 0 Compare Up Count Point Trigger ADC Enable Bit \nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" line.long 0x18 "PWM_ADCTCTL1,PWM Trigger Control Register 1" bitfld.long 0x18 11. "ZPTRGEN5,PWM Channel 5 Zero Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x18 10. "CDTRGEN5,PWM Channel 5 Compare Down Count Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x18 9. "CPTRGEN5,PWM Channel 5 Center Point Trigger ADC Enable Bit\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" bitfld.long 0x18 8. "CUTRGEN5,PWM Channel 5 Compare Up Count Point Trigger ADC Enable Bit\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" newline bitfld.long 0x18 3. "ZPTRGEN4,PWM Channel 4 Zero Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" bitfld.long 0x18 2. "CDTRGEN4,PWM Channel 4 Compare Down Count Point Trigger ADC Enable Bit\nNote: This bit is valid for both center aligned mode and edged aligned mode." "0: Disabled,1: Enabled" newline bitfld.long 0x18 1. "CPTRGEN4,PWM Channel 4 Center Point Trigger ADC Enable Bit\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" bitfld.long 0x18 0. "CUTRGEN4,PWM Channel 4 Compare Up Count Point Trigger ADC Enable Bit\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode setting this bit is meaningless and will not take any effect." "0: Disabled,1: Enabled" line.long 0x1C "PWM_ADCTSTS0,PWM Trigger Status Register 0" bitfld.long 0x1C 27. "ZPTRGF3,PWM Channel 3 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 26. "CDTRGF3,PWM Channel 3 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 25. "CPTRGF3,PWM Channel 3 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 24. "CUTRGF3,PWM Channel 3 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 19. "ZPTRGF2,PWM Channel 2 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 18. "CDTRGF2,PWM Channel 2 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 17. "CPTRGF2,PWM Channel 2 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 16. "CUTRGF2,PWM Channel 3 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 11. "ZPTRGF1,PWM Channel 1 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 10. "CDTRGF1,PWM Channel 1 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 9. "CPTRGF1,PWM Channel 1 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 8. "CUTRGF1,PWM Channel 1 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 3. "ZPTRGF0,PWM Channel 0 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 2. "CDTRGF0,PWM Channel 0 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x1C 1. "CPTRGF0,PWM Channel 0 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x1C 0. "CUTRGF0,PWM Channel 0 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" line.long 0x20 "PWM_ADCTSTS1,PWM Trigger Status Register 1" bitfld.long 0x20 11. "ZPTRGF5,PWM Channel 5 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x20 10. "CDTRGF5,PWM Channel 5 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x20 9. "CPTRGF5,PWM Channel 5 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x20 8. "CUTRGF5,PWM Channel 5 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x20 3. "ZPTRGF4,PWM Channel 4 Compare Up Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x20 2. "CDTRGF4,PWM Channel 4 Center Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" newline bitfld.long 0x20 1. "CPTRGF4,PWM Channel 4 Compare Down Count Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" bitfld.long 0x20 0. "CUTRGF4,PWM Channel 4 Zero Point Trigger ADC Flag\nNote: Software can write 1 to clear this bit." "0,1" line.long 0x24 "PWM_PHCHG,Phase Changed Register" bitfld.long 0x24 31. "ACMP0TEN,Enable ACMP0 Trigger Function\nNote: This bit will be auto cleared when ACMP0 trigger PWM if AUTOCLR0 is set." "0: Disabled,1: Enabled" bitfld.long 0x24 30. "T0,Enable Timer0 Trigger PWM Function\nWhen this bit is set timer0 time-out event will update PWM_PHCHG with PWM_PHCHG_NXT register." "0: Disabled,1: Enabled" newline bitfld.long 0x24 28.--29. "A0POSSEL,A0POSSEL\nSelect the positive input source of ACMP0.\n" "0: Select P1.5 as the input of ACMP0,1: Select P1.0 as the input of ACMP0,?,?" bitfld.long 0x24 27. "OFFEN30,Setting This Bit Will Force MSKEN3 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x24 26. "OFFEN20,Setting This Bit Will Force MSKEN2 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x24 25. "OFFEN10,Setting This Bit Will Force MSKEN1 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x24 24. "OFFEN00,Setting This Bit Will Force MSKEN0 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x24 23. "ACMP1TEN,Enable ACMP1 Trigger Function\nNote: This bit will be auto cleared when ACMP1 trigger PWM if AUTOCLR1 is set." "0: Disabled,1: Enabled" newline bitfld.long 0x24 22. "TMR1TEN,Enable Timer1 Trigger PWM Function\nWhen this bit is set timer1 time-out event will update PWM_PHCHG with PWM_PHCHG_NXT register." "0: Disabled,1: Enabled" bitfld.long 0x24 20.--21. "A1POSSEL,A1POSSEL\nSelect the positive input source of ACMP1.\n" "0: Select P3.1 as the input of ACMP1,1: Select P3.2 as the input of ACMP1,?,?" newline bitfld.long 0x24 19. "OFFEN31,Setting This Bit Will Force MSKEN3 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x24 18. "OFFEN21,Setting This Bit Will Force MSKEN2 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x24 17. "OFFEN11,Setting This Bit Will Force MSKEN1 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x24 16. "OFFEN01,Setting This Bit Will Force MSKEN0 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x24 15. "AUTOCLR1,Hardware Auto Clear ACMP1TEN When ACMP1 Trigger It\n" "0: Enabled,1: Disabled" bitfld.long 0x24 14. "AUTOCLR0,Hardware Auto Clear ACMP0TEN When ACMP0 Trigger It\n" "0: Enabled,1: Disabled" newline bitfld.long 0x24 13. "MSKEN5,MSKEN Channel 5 Output Enable Control\n" "0: Output MSKDAT5 specified in bit 5 of PWM_PHCHG..,1: Output the original channel 5 waveform" bitfld.long 0x24 12. "MSKEN4,MSKEN Channel 4 Output Enable Control\n" "0: Output MSKDAT4 specified in bit 4 of PWM_PHCHG..,1: Output the original channel 4 waveform" newline bitfld.long 0x24 11. "MSKEN3,MSKEN Channel 3 Output Enable Control\n" "0: Output MSKDAT3 specified in bit 3 of PWM_PHCHG..,1: Output the original channel 3 waveform" bitfld.long 0x24 10. "MSKEN2,MSKEN Channel 2 Output Enable Control\n" "0: Output MSKDAT2 specified in bit 2 of PWM_PHCHG..,1: Output the original channel 2 waveform" newline bitfld.long 0x24 9. "MSKEN1,MSKEN Channel 1 Output Enable Control\n" "0: Output MSKDAT1 specified in bit 1 of PWM_PHCHG..,1: Output the original channel 1 waveform" bitfld.long 0x24 8. "MSKEN0,MSKEN Channel 0 Output Enable Control\n" "0: Output MSKDAT0 specified in bit 0 of PWM_PHCHG..,1: Output the original channel 0 waveform" newline bitfld.long 0x24 7. "MSKDAT7,MSKDAT7: When MSKEN7 Is 1 Channel 7's Output Waveform Is MSKDAT7\n" "0: Output low,1: Output high" bitfld.long 0x24 6. "MSKDAT6,MSKDAT6: When MSKEN6 Is 1 Channel 6's Output Waveform Is MSKDAT6\n" "0: Output low,1: Output high" newline bitfld.long 0x24 5. "MSKDAT5,MSKDAT5: When MSKEN5 Is Zero Channel 5's Output Waveform Is MSKDAT5\n" "0: Output low,1: Output high" bitfld.long 0x24 4. "MSKDAT4,MSKDAT4: When MSKEN4is Zero Channel 4's Output Waveform Is MSKDAT4\n" "0: Output low,1: Output high" newline bitfld.long 0x24 3. "MSKDAT3,MSKDAT3: When MSKEN3 Is Zero Channel 3's Output Waveform Is MSKDAT3\n" "0: Output low,1: Output high" bitfld.long 0x24 2. "MSKDAT2,MSKDAT2: When MSKEN2 Is Zero Channel 2's Output Waveform Is MSKDAT2\n" "0: Output low,1: Output high" newline bitfld.long 0x24 1. "MSKDAT1,MSKDAT1: When MSKEN1is Zero Channel 1's Output Waveform Is MSKDAT1\n" "0: Output low,1: When MSKEN1is Zero" bitfld.long 0x24 0. "MSKDAT0,MSKDAT0: When MSKEN0 Is Zero Channel 0's Output Waveform Is MSKDAT0\n" "0: When MSKEN0 Is Zero,1: Output high" line.long 0x28 "PWM_PHCHGNXT,Next Phase Change Register" bitfld.long 0x28 31. "ACMP0TEN,Enable ACMP0 Trigger Function\nNote: This bit will be auto cleared when ACMP0 trigger PWM if AUTOCLR0 is set." "0: Disabled,1: Enabled" bitfld.long 0x28 30. "TMR0TEN,Enable Timer0 Trigger PWM Function\nWhen this bit is set timer0 time-out event will update PWM_PHCHG with PWM_PHCHG_NXT register." "0: Disabled,1: Enabled" newline bitfld.long 0x28 28.--29. "A0POSSEL,A0POSSEL\nSelect the positive input source of ACMP0.\n" "0: Select P1.5 as the input of ACMP0,1: Select P1.0 as the input of ACMP0,?,?" bitfld.long 0x28 27. "OFFEN30,Setting This Bit Will Force MSKEN3 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x28 26. "OFFEN20,Setting This Bit Will Force MSKEN2 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3.." "0: Disabled,1: Enabled" bitfld.long 0x28 25. "OFFEN10,Setting This Bit Will Force MSKEN1 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x28 24. "OFFEN00,Setting This Bit Will Force MSKEN0 To Output Low Lasting For At Most One Period Cycle As Long As ACMP0 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x28 23. "ACMP1TEN,Enable ACMP1 Trigger Function\nNote: This bit will be auto cleared when ACMP1 trigger PWM if AUTOCLR1 is set." "0: Disabled,1: Enabled" newline bitfld.long 0x28 22. "TMR1TEN,Enable Timer1 Trigger PWM Function\nWhen this bit is set timer1 time-out event will update PWM_PHCHG with PWM_PHCHG_NXT register." "0: Disabled,1: Enabled" bitfld.long 0x28 20.--21. "A1POSSEL,A1POSSEL\nSelect the positive input source of ACMP1.\n" "0: Select P3.1 as the input of ACMP1,1: Select P3.2 as the input of ACMP1,?,?" newline bitfld.long 0x28 19. "OFFEN31,Setting This Bit Will Force MSKEN3to Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x28 18. "OFFEN21,Setting This Bit Will Force MSKEN2 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x28 17. "OFFEN11,Setting This Bit Will Force MSKEN1 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: Only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" bitfld.long 0x28 16. "OFFEN01,Setting This Bit Will Force MSKEN0 To Output Low Lasting For At Most One Period Cycle As Long As ACMP1 Trigger It; This Feature Is Usually In Step Motor Application\nNote: only for MSKEN0 MSKEN3 MSKEN2 MSKEN3." "0: Disabled,1: Enabled" newline bitfld.long 0x28 15. "AUTOCLR1,Hardware Auto Clear ACMP1TEN When ACMP1 Trigger It\n" "0: Enabled,1: Disabled" bitfld.long 0x28 14. "AUTOCLR0,Hardware Auto Clear ACMP0TEN When ACMP0 Trigger It\n" "0: Enabled,1: Disabled" newline bitfld.long 0x28 13. "MSKEN5,MSKEN Channel 5 Output Enable Control\n" "0: Output MSKDAT5 specified in bit 5 of PWM_PHCHG..,1: Output the original channel 5 waveform" bitfld.long 0x28 12. "MSKEN4,MSKEN Channel 4 Output Enable Control\n" "0: Output MSKDAT4 specified in bit 4 of PWM_PHCHG..,1: Output the original channel 4 waveform" newline bitfld.long 0x28 11. "MSKEN3,MSKEN Channel 3 Output Enable Control\n" "0: Output MSKDAT3 specified in bit 3 of PWM_PHCHG..,1: Output the original channel 3 waveform" bitfld.long 0x28 10. "MSKEN2,MSKEN Channel 2 Output Enable Control\n" "0: Output MSKDAT2 specified in bit 2 of PWM_PHCHG..,1: Output the original channel 2 waveform" newline bitfld.long 0x28 9. "MSKEN1,MSKEN Channel 1 Output Enable Control\n" "0: Output MSKDAT1 specified in bit 1 of PWM_PHCHG..,1: Output the original channel 1 waveform" bitfld.long 0x28 8. "MSKEN0,MSKEN Channel 0 Output Enable Control\n" "0: Output MSKDAT0 specified in bit 0 of PWM_PHCHG..,1: Output the original channel 0 waveform" newline bitfld.long 0x28 7. "MSKDAT7,MSKDAT7: When MSKEN7 Is 1 Channel 7's Output Waveform Is MSKDAT7\n" "0: Output low,1: Output high" bitfld.long 0x28 6. "MSKDAT6,MSKDAT6: When MSKEN6 Is 1 Channel 6's Output Waveform Is MSKDAT6\n" "0: Output low,1: Output high" newline bitfld.long 0x28 5. "MSKDAT5,MSKDAT5: When MSKEN5 Is Zero Channel 5's Output Waveform Is MSKDAT5\n" "0: Output low,1: Output high" bitfld.long 0x28 4. "MSKDAT4,MSKDAT4: When MSKEN4is Zero Channel 4's Output Waveform Is MSKDAT4\n" "0: Output low,1: Output high" newline bitfld.long 0x28 3. "MSKDAT3,MSKDAT3: When MSKEN3 Is Zero Channel 3's Output Waveform Is MSKDAT3\n" "0: Output low,1: Output high" bitfld.long 0x28 2. "MSKDAT2,MSKDAT2: When MSKEN2 Is Zero Channel 2's Output Waveform Is MSKDAT2\n" "0: Output low,1: Output high" newline bitfld.long 0x28 1. "MSKDAT1,MSKDAT1: When MSKEN1is Zero Channel 1's Output Waveform Is MSKDAT1\n" "0: Output low,1: When MSKEN1is Zero" bitfld.long 0x28 0. "MSKDAT0,MSKDAT0: When MSKEN0 Is Zero Channel 0's Output Waveform Is MSKDAT0\n" "0: When MSKEN0 Is Zero,1: Output high" line.long 0x2C "PWM_PHCHGMSK,Phase Change MASK Register" bitfld.long 0x2C 9. "POSCTL1,ACMP1 Positive Input Selection Control\nNote: Register CMP1CR is describe in Comparator Controller chapter" "0: The input of ACMP1 is controlled by CMP1CR,1: The input of ACMP1 is controlled by A1POSSEL of.." bitfld.long 0x2C 8. "POSCTL0,ACMP0 Positive Input Selection Control \nNote: Register CMP0CR is describe in Comparator Controller chapter" "0: The input of ACMP0 is controlled by CMP0CR,1: The input of ACMP0 is controlled by A0POSSEL of.." newline bitfld.long 0x2C 7. "MASKEND7,MASK For D7 \n" "0: Original GPIO P0.0,1: D7" bitfld.long 0x2C 6. "MASKEND6,MASK For D6 \n" "0: Original GPIO P0.1,1: D6" line.long 0x30 "PWM_IFA,Period Interrupt Accumulation Control Register" hexmask.long.byte 0x30 4.--7. 1. "IFCNT,Interrupt Accumulation Count\nWhen IFCNT is set IFCNT will decrease when every ZIF0 flag is set and when IFCNT reach to zero the PWM0 interrupt will occurred and IFCNT will reload itself." bitfld.long 0x30 0. "IFAEN,Interrupt Accumulation Enable\n" "0: Disabled,1: Enabled" tree.end tree "SCS (System Control)" base ad:0xE000E000 group.long 0x10++0xB line.long 0x0 "SYST_CSR,SysTick Control and Status Register" bitfld.long 0x0 16. "COUNTFLAG,System Tick Counter Flag\nReturns 1 if timer counted to 0 since last time this register was read.\nCOUNTFLAG is set by a count transition from 1 to 0.\nCOUNTFLAG is cleared on read or by a write to the Current Value register." "0,1" bitfld.long 0x0 2. "CLKSRC,System Tick Clock Source Selection\n" "0: Clock source is optional refer to STCLK_S,1: Core clock used for SysTick timer" newline bitfld.long 0x0 1. "TICKINT,System Tick Interrupt Enabled\n" "0: Counting down to 0 does not cause the SysTick..,1: Counting down to 0 will cause the SysTick.." bitfld.long 0x0 0. "ENABLE,System Tick Counter Enabled\n" "0: Counter Disabled,1: Counter Enabled and will operate in a multi-shot.." line.long 0x4 "SYST_RVR,SysTick Reload Value Register" hexmask.long.tbyte 0x4 0.--23. 1. "RELOAD,System Tick Reload Value\nValue to load into the Current Value register when the counter reaches 0." line.long 0x8 "SYST_CVR,SysTick Current Value Register" hexmask.long.tbyte 0x8 0.--23. 1. "CURRENT,System Tick Current Value\nCurrent counter value. This is the value of the counter at the time it is sampled. The counter does not provide read-modify-write protection. The register is write-clear. A software write of any value will clear the.." group.long 0x100++0x3 line.long 0x0 "NVIC_ISER,IRQ0 ~ IRQ31 Set-Enable Control Register" hexmask.long 0x0 0.--31. 1. "SETENA,Interrupt Enable Register \nEnable one or more interrupts. Each bit represents an interrupt number from IRQ0 ~ IRQ31 (Vector number from 16 ~ 47).\nWrite:\nRead value indicates the current enable status." group.long 0x180++0x3 line.long 0x0 "NVIC_ICER,IRQ0 ~ IRQ31 Clear-Enable Control Register" hexmask.long 0x0 0.--31. 1. "CLRENA,Interrupt Disable Register\nDisable one or more interrupts. Each bit represents an interrupt number from IRQ0 ~ IRQ31 (Vector number from 16 ~ 47).\nWrite:\nRead value indicates the current enable status." group.long 0x200++0x3 line.long 0x0 "NVIC_ISPR,IRQ0 ~ IRQ31 Set-Pending Control Register" hexmask.long 0x0 0.--31. 1. "SETPEND,Set Interrupt Pending Register\nWrite:\nRead value indicates the current pending status." group.long 0x280++0x3 line.long 0x0 "NVIC_ICPR,IRQ0 ~ IRQ31 Clear-Pending Control Register" hexmask.long 0x0 0.--31. 1. "CLRPEND,Clear Interrupt Pending Register\nWrite:\nRead value indicates the current pending status." group.long 0x400++0x1F line.long 0x0 "NVIC_IPR0,IRQ0 ~ IRQ3 Interrupt Priority Control Register" bitfld.long 0x0 30.--31. "PRI_3,Priority Of IRQ3\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x0 22.--23. "PRI_2,Priority Of IRQ2\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x0 14.--15. "PRI_1,Priority Of IRQ1\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x0 6.--7. "PRI_0,Priority Of IRQ0\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x4 "NVIC_IPR1,IRQ4 ~ IRQ7 Interrupt Priority Control Register" bitfld.long 0x4 30.--31. "PRI_7,Priority Of IRQ7\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x4 22.--23. "PRI_6,Priority Of IRQ6\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x4 14.--15. "PRI_5,Priority Of IRQ5\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x4 6.--7. "PRI_4,Priority Of IRQ4\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x8 "NVIC_IPR2,IRQ8 ~ IRQ11 Interrupt Priority Control Register" bitfld.long 0x8 30.--31. "PRI_11,Priority Of IRQ11\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x8 22.--23. "PRI_10,Priority Of IRQ10\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x8 14.--15. "PRI_9,Priority Of IRQ9\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x8 6.--7. "PRI_8,Priority Of IRQ8\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0xC "NVIC_IPR3,IRQ12 ~ IRQ15 Interrupt Priority Control Register" bitfld.long 0xC 30.--31. "PRI_15,Priority Of IRQ15\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0xC 22.--23. "PRI_14,Priority Of IRQ14\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0xC 14.--15. "PRI_13,Priority Of IRQ13\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0xC 6.--7. "PRI_12,Priority Of IRQ12\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x10 "NVIC_IPR4,IRQ16 ~ IRQ19 Interrupt Priority Control Register" bitfld.long 0x10 30.--31. "PRI_19,Priority Of IRQ19\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x10 22.--23. "PRI_18,Priority Of IRQ18\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x10 14.--15. "PRI_17,Priority Of IRQ17\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x10 6.--7. "PRI_16,Priority Of IRQ16\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x14 "NVIC_IPR5,IRQ20 ~ IRQ23 Interrupt Priority Control Register" bitfld.long 0x14 30.--31. "PRI_23,Priority Of IRQ23\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x14 22.--23. "PRI_22,Priority Of IRQ22\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x14 14.--15. "PRI_21,Priority Of IRQ21\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x14 6.--7. "PRI_20,Priority Of IRQ20\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x18 "NVIC_IPR6,IRQ24 ~ IRQ27 Interrupt Priority Control Register" bitfld.long 0x18 30.--31. "PRI_27,Priority Of IRQ27\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x18 22.--23. "PRI_26,Priority Of IRQ26\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x18 14.--15. "PRI_25,Priority Of IRQ25\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x18 6.--7. "PRI_24,Priority Of IRQ24\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x1C "NVIC_IPR7,IRQ28 ~ IRQ31 Interrupt Priority Control Register" bitfld.long 0x1C 30.--31. "PRI_31,Priority Of IRQ31\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x1C 22.--23. "PRI_30,Priority Of IRQ30\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" newline bitfld.long 0x1C 14.--15. "PRI_29,Priority Of IRQ29\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x1C 6.--7. "PRI_28,Priority Of IRQ28\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" rgroup.long 0xD00++0x3 line.long 0x0 "CPUID,CPUID Register" hexmask.long.byte 0x0 24.--31. 1. "IMPLEMENTER,Implementer Code\n" hexmask.long.byte 0x0 16.--19. 1. "PART,Architecture Of The Processor\nRead as 0xC for ARMv6-M parts." newline hexmask.long.word 0x0 4.--15. 1. "PARTNO,Part Number Of The Processor\nRead as 0xC20." hexmask.long.byte 0x0 0.--3. 1. "REVISION,Revision Number\nRead as 0x0." group.long 0xD04++0x3 line.long 0x0 "ICSR,Interrupt Control State Register" bitfld.long 0x0 31. "NMIPENDSET,NMI Set-Pending Bit\nWrite:\nNote: Because NMI is the highest-priority exception normally the processor enters the NMI exception handler as soon as it detects a write of 1 to this bit. Entering the handler then clears this bit to 0. This.." "0: No effect.\nNMI exception not pending,1: Changes NMI exception state to pending.\nNMI.." bitfld.long 0x0 28. "PENDSVSET,PendSV Set-Pending Bit\nWrite:\nNote: Writing 1 to this bit is the only way to set the PendSV exception state to pending." "0: No effect.\nPendSV exception is not pending,1: Changes PendSV exception state to.." newline bitfld.long 0x0 27. "PENDSVCLR,PendSV Clear-Pending Bit\nWrite:\nNote: This bit is write-only. To clear the PENDSV bit you must 'write 0 to PENDSVSET and write 1 to PENDSVCLR' at the same time." "0: No effect,1: Removes the pending state from the PendSV.." bitfld.long 0x0 26. "PENDSTSET,SysTick Exception Set-Pending Bit\nWrite:\n" "0: No effect.\nSysTick exception is not pending,1: Changes SysTick exception state to.." newline bitfld.long 0x0 25. "PENDSTCLR,SysTick Exception Clear-Pending Bit\nWrite:\nNote: This bit is write-only. When you want to clear PENDST bit you must 'write 0 to PENDSTSET and write 1 to PENDSTCLR' at the same time." "0: No effect,1: Removes the pending state from the SysTick.." bitfld.long 0x0 23. "ISRPREEMPT,Interrupt Preemption Bit\nIf set a pending exception will be serviced on exit from the debug halt state.\nThis bit is read only." "0,1" newline bitfld.long 0x0 22. "ISRPENDING,Interrupt Pending Flag Excluding NMI And Faults\nThis bit is read only." "0: Interrupt not pending,1: Interrupt pending" hexmask.long.word 0x0 12.--20. 1. "VECTPENDING,Exception Number Of The Highest Priority Pending Enabled Exception\nThis bit is read only." newline hexmask.long.word 0x0 0.--8. 1. "VECTACTIVE,Contains The Active Exception Number\nThis bit is read only." group.long 0xD0C++0x7 line.long 0x0 "AIRCR,Application Interrupt and Reset Control Register" hexmask.long.word 0x0 16.--31. 1. "VECTORKEY,Register Access Key\nWrite:\nWhen writing to this register the VECTORKEY field need to be set to 0x05FA otherwise the write operation would be ignored. The VECTORKEY filed is used to prevent accidental write to this register from resetting.." bitfld.long 0x0 2. "SYSRESETREQ,System Reset Request\nWriting this bit 1 will cause a reset signal to be asserted to the chip to indicate a reset is requested.\nThe bit is a write only bit and self-clears as part of the reset sequence." "0,1" newline bitfld.long 0x0 1. "VECTCLRACTIVE,Exception Active Status Clear Bit\nReserved for debug use. When writing to the register user must write 0 to this bit otherwise behavior is unpredictable." "0,1" line.long 0x4 "SCR,System Control Register" bitfld.long 0x4 4. "SEVONPEND,Send Event On Pending Bit\nWhen an event or interrupt enters pending state the event signal wakes up the processor from WFE. If the processor is not waiting for an event the event is registered and affects next WFE.\nThe processor also wakes.." "0: Only enabled interrupts or events can wake up..,1: Enabled events and all interrupts including.." bitfld.long 0x4 2. "SLEEPDEEP,Processor Deep Sleep And Sleep Mode Selection\nControls whether the processor uses sleep or deep sleep as its low power mode:\n" "0: Sleep mode,1: Deep Sleep mode" newline bitfld.long 0x4 1. "SLEEPONEXIT,Sleep-On-Exit Enable\nThis bit indicates sleep-on-exit when returning from Handler mode to Thread mode:\nSetting this bit to 1 enables an interrupt driven application to avoid returning to an empty main application." "0: Do not sleep when returning to Thread mode,1: Enter Sleep or Deep Sleep on return from ISR to.." group.long 0xD1C++0x7 line.long 0x0 "SHPR2,System Handler Priority Register 2" bitfld.long 0x0 30.--31. "PRI_11,Priority Of System Handler 11 - SVCall\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" line.long 0x4 "SHPR3,System Handler Priority Register 3" bitfld.long 0x4 30.--31. "PRI_15,Priority Of System Handler 15 - SysTick\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" bitfld.long 0x4 22.--23. "PRI_14,Priority Of System Handler 14 - PendSV\n0 denotes the highest priority and 3 denotes the lowest priority." "0,1,2,3" tree.end tree "SPI (Serial Peripheral Interface)" base ad:0x40030000 group.long 0x0++0xB line.long 0x0 "SPI_CTL,SPI Control and Status Register" rbitfld.long 0x0 27. "TXFULL,Transmit FIFO Buffer Full Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_STATUS[27]." "0: The transmit FIFO buffer is not full,1: The transmit FIFO buffer is full" rbitfld.long 0x0 26. "TXEMPTY,Transmit FIFO Buffer Empty Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_STAUTS[26]." "0: The transmit FIFO buffer is not empty,1: The transmit FIFO buffer is empty" newline rbitfld.long 0x0 25. "RXFULL,Receive FIFO Buffer Full Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_STATUS[25]" "0: The receive FIFO buffer is not full,1: The receive FIFO buffer is full" rbitfld.long 0x0 24. "RXEMPTY,Receive FIFO Buffer Empty Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_CTL[24]." "0: The receive FIFO buffer is not empty,1: The receive FIFO buffer is empty" newline bitfld.long 0x0 21. "FIFOEN,FIFO Mode Enable Control\nNote 1: Before enabling FIFO mode the other related settings should be set in advance.\nNote 2: In Master mode if the FIFO mode is enabled the SPIEN bit will be set to 1 automatically after writing data into the.." "0: FIFO Mode Disabled,1: Before enabling FIFO mode" bitfld.long 0x0 19. "REORDER,Byte Reorder Function\nNote: This setting is only available if DWIDTH is defined as 16 24 and 32 bits." "0: Byte reorder function Disabled,1: Byte reorder function Enabled" newline bitfld.long 0x0 18. "SLAVE,Slave Mode Control\n" "0: Master mode,1: Slave mode" bitfld.long 0x0 17. "UNITIEN,Unit-Transfer Interrupt Enable Control\n" "0: SPI unit-transfer interrupt Disabled,1: SPI unit-transfer interrupt Enabled" newline bitfld.long 0x0 16. "UNITIF,Unit-Transfer Interrupt Flag\nNote 1: This bit will be cleared by writing 1 to itself.\nNote 2: . It's a mutual mirror bit of SPI_STATUS[16]." "0: The transfer does not finish yet,1: This bit will be cleared by writing 1 to itself" hexmask.long.byte 0x0 12.--15. 1. "SUSPITV,Suspend Interval (Master Only)\nThe four bits provide configurable suspend interval between two successive transactions in a transfer. The definition of the suspend interval is the interval between the last clock edge of the preceding.." newline bitfld.long 0x0 11. "CLKPOL,Clock Polarity\n" "0: SPICLK idle low,1: SPICLK idle high" bitfld.long 0x0 10. "LSB,LSB First\n" "0: The MSB is transmitted/received first,1: The LSB is transmitted/received first" newline hexmask.long.byte 0x0 3.--7. 1. "DWIDTH,Transmit Bit Length\nThis field specifies how many bits are transmitted in one transmit/receive. The minimum bit length is 8 bits and can up to 32 bits.\n" bitfld.long 0x0 2. "TXNEG,Transmit On Negative Edge\n" "0: The transmitted data output signal is driven on..,1: The transmitted data output signal is driven on.." newline bitfld.long 0x0 1. "RXNEG,Receive On Negative Edge\n" "0: The received data input signal latched on the..,1: The received data input signal latched on the.." bitfld.long 0x0 0. "SPIEN,SPI Transfer Control Bit And Busy Status\nIf FIFO mode is enabled this bit will be controlled by hardware and its Read only.\nIf FIFO mode is disabled during the data transfer this bit keeps the value of 1. As the transfer is finished this bit.." "0: Writing 0 to this bit to stop data transfer if..,1: When FIFO mode is disabled" line.long 0x4 "SPI_CLKDIV,SPI Divider Register" hexmask.long.byte 0x4 0.--7. 1. "DIVIDER,Clock Divider Register (Master Only)\nThe value in this field is the frequency divider to determine the SPI peripheral clock frequency fspi and the SPI master's bus clock frequency on the SPICLK output pin. The frequency is obtained according to.." line.long 0x8 "SPI_SSCTL,SPI Slave Select Register" rbitfld.long 0x8 5. "LTF,Level Trigger Flag (Read Only Slave Only)\nWhen the SSLTEN bit is set in Slave mode this bit can be read to indicate the received bit number is met the requirement or not.\n" "0: The transaction number or the transferred bit..,1: The transaction number and the transferred bit.." bitfld.long 0x8 4. "SSLTEN,Slave Select Level Trigger Enable Bit (Slave Only)\n" "0: The input slave select signal is edge-trigger,1: The input slave select signal is level-trigger" newline bitfld.long 0x8 3. "AUTOSS,Automatic Slave Selection Function Enable Bit (Master Only)\n" "0: SPISS pin signal will be asserted/de-asserted by..,1: SPISS pin signal will be generated automatically.." bitfld.long 0x8 2. "SSACTPOL,Slave Select Active Level (Slave Only)\nIt defines the active status of slave select signal (SPISS).\nIf SSLTEN bit is 1:\n" "0: The slave select signal SPISS is active at..,1: The slave select signal SPISS is active at.." newline bitfld.long 0x8 0. "SS,Slave Select Control Bits (Master Only)\nIf AUTOSS bit is 0 \n" "0: Set the SPISS line to inactive state.\nKeep the..,1: Set the proper SPISS line to active.." rgroup.long 0x10++0x3 line.long 0x0 "SPI_RX,SPI Data Receive Register" hexmask.long 0x0 0.--31. 1. "RX,Data Receive Register (Read Only)\nThe Data Receive Registers hold the value of received data of the last executed transfer. Valid bits depend on the transmit bit length field in the SPI_CTL register.\nFor example if DWIDTH is set to 0x08 bit.." wgroup.long 0x20++0x3 line.long 0x0 "SPI_TX,SPI Data Transmit Register" hexmask.long 0x0 0.--31. 1. "TX,Data Transmit Register\nThe Data Transmit Registers hold the data to be transmitted in the next transfer. Valid bits depend on the transmit bit length field in the CNTRL register.\nFor example if DWIDTH is set to 0x08 the bit TX0[7:0] will be.." group.long 0x3C++0xB line.long 0x0 "SPI_SLVCTL,SPI Slave Mode Control Register" bitfld.long 0x0 31. "DIVMOD,Clock Configuration Backward Compatible Option\nNote: Refer to the description of SPI_CLKDIV register for details." "0: The clock configuration is backward compatible,1: The clock configuration is not backward compatible" bitfld.long 0x0 16. "SSINAIEN,Slave Select Inactive Interrupt Option (Slave Only)\nNote: This setting is only available if the SPI controller is configured as level trigger in slave device." "0: As the slave select signal goes to inactive..,1: As the slave select signal goes to inactive.." newline bitfld.long 0x0 11. "SLVSTIF,Slave 3-Wire Mode Start Interrupt Status (Slave Only)\nThis bit dedicates if a transaction has started in Slave 3-wire mode. \nNote 1: It will be cleared automatically when a transaction is done or by writing 1 to this bit.\nNote 2: It is a.." "0: Slave does not detect any SPI bus clock transfer..,1: It will be cleared automatically when a.." bitfld.long 0x0 10. "SLVSTIEN,Slave 3-Wire Mode Start Interrupt Enable (Slave Only)\nIt is used to enable interrupt when the transfer has started in Slave 3-wire mode. If there is no transfer done interrupt over the time period which is defined by user after the transfer.." "0: Transaction start interrupt Disabled,1: It will be cleared to 0 as the current transfer.." newline bitfld.long 0x0 9. "SLVABT,Slave 3-Wire Mode Abort Control Bit (Slave Only)\nIn normal operation there is an interrupt event when the number of received bits meets the requirement which defined in DWIDTH.\nIf the number of received bits is less than the requirement and.." "0: No force the transfer done when the SLV3WIRE bit..,1: Force the transfer done when the SLV3WIRE bit is.." bitfld.long 0x0 8. "SLV3WIRE,Slave 3-Wire Mode Enable Bit (Slave Only)\nThe SPI controller work with 3-wire interface including SPICLK SPI_MISO and SPI_MOSI.\nNote: In Slave 3-wire mode the SSLTEN bit (SPI_SSCTL[4]) shall be set as 1." "0: The controller is 4-wire bi-direction interface,1: The controller is 3-wire bi-direction interface.." line.long 0x4 "SPI_FIFOCTL,SPI FIFO Control Register" bitfld.long 0x4 28.--29. "TXTH,Transmit FIFO Threshold\nIf the valid data count of the transmit FIFO buffer is less than or equal to the TXTH setting the TXTHIF bit will be set to 1 else the TXTHIF bit will be cleared to 0." "0,1,2,3" bitfld.long 0x4 24.--25. "RXTH,Received FIFO Threshold\nIf the valid data count of the receive FIFO buffer is larger than the RXTH setting the RXTHIF bit will be set to 1 else the RXTHIF bit will be cleared to 0." "0,1,2,3" newline bitfld.long 0x4 21. "RXTOIEN,Receive FIFO Time-Out Interrupt Enable Control\n" "0: Time-out interrupt Disabled,1: Time-out interrupt Enabled" bitfld.long 0x4 6. "RXOVIEN,Receive FIFO Overrun Interrupt Enable Control\n" "0: Receive FIFO overrun interrupt Disabled,1: Receive FIFO overrun interrupt Enabled" newline bitfld.long 0x4 3. "TXTHIEN,Transmit Threshold Interrupt Enable\n" "0: Transmit threshold interrupt Disabled,1: Transmit threshold interrupt Enabled" bitfld.long 0x4 2. "RXTHIEN,Receive Threshold Interrupt Enable Control\n" "0: Receive threshold interrupt Disabled,1: Receive threshold interrupt Enabled" newline bitfld.long 0x4 1. "TXRST,Clear Transmit FIFO Buffer\nNote: This bit will be cleared to 0 by hardware after software sets it to 1 and the transmit FIFO is cleared." "0: No effect,1: Clear transmit FIFO buffer" bitfld.long 0x4 0. "RXRST,Clear Receive FIFO Buffer\nNote: This bit will be cleared to 0 by hardware after software sets it to 1 and the receive FIFO is cleared." "0: No effect,1: Clear receive FIFO buffer" line.long 0x8 "SPI_STATUS,SPI Status Register" hexmask.long.byte 0x8 28.--31. 1. "TXCNT,Transmit FIFO Data Count (Read Only)\nIndicates the valid data count of transmit FIFO buffer." rbitfld.long 0x8 27. "TXFULL,Transmit FIFO Buffer Full Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_CTL[27]." "0: The transmit FIFO buffer is not full,1: The transmit FIFO buffer is full" newline rbitfld.long 0x8 26. "TXEMPTY,Transmit FIFO Buffer Empty Indicator (Read Only) \nNote: It's a mutual mirror bit of SPI_CTL[26]." "0: The transmit FIFO buffer is not empty,1: The transmit FIFO buffer is empty" rbitfld.long 0x8 25. "RXFULL,Receive FIFO Buffer Full Indicator (Read Only) \nNote: It's a mutual mirror bit of SPI_CTL[25]." "0: The receive FIFO buffer is not full,1: The receive FIFO buffer is full" newline rbitfld.long 0x8 24. "RXEMPTY,Receive FIFO Buffer Empty Indicator (Read Only)\nNote: It's a mutual mirror bit of SPI_CTL[24]." "0: The receive FIFO buffer is not empty,1: The receive FIFO buffer is empty" bitfld.long 0x8 20. "SLVTOIF,Time-Out Interrupt Flag\nNote: This bit will be cleared by writing 1 to itself." "0: No receive FIFO time-out event,1: The receive FIFO buffer is not empty and it does.." newline bitfld.long 0x8 16. "UNITIF,SPI Unit-Transfer Interrupt Flag\nNote 1: This bit will be cleared by writing 1 to itself.\nNote 2: It's a mutual mirror bit of SPI_CTL[16]." "0: The transfer does not finish yet,1: This bit will be cleared by writing 1 to itself" hexmask.long.byte 0x8 12.--15. 1. "RXCNT,Receive FIFO Data Count (Read Only)\nIndicates the valid data count of receive FIFO buffer." newline bitfld.long 0x8 11. "SLVSTIF,Slave Start Interrupt Status (Slave Only)\nIt is used to dedicate that the transfer has started in slave 3-wire mode. \nNote 1: It will be cleared as transfer done or by writing one to this bit.\nNote 2: It's a mutual mirror bit of SPI_SLVCTL[11]." "0: Slave does not detect any SPI bus clock transfer..,1: It will be cleared as transfer done or by.." rbitfld.long 0x8 4. "TXTHIF,Transmit FIFO Threshold Interrupt Status (Read Only)\n" "0: The valid data count within the transmit FIFO..,1: The valid data count within the transmit FIFO.." newline bitfld.long 0x8 2. "RXOVIF,Receive FIFO Overrun Status\nWhen the receive FIFO buffer is full the follow-up data will be dropped and this bit will be set to 1.\nNote: This bit will be cleared by writing 1 to itself." "0: No overrun in receive FIFO,1: Overrun in receive FIFO" rbitfld.long 0x8 0. "RXTHIF,Receive FIFO Threshold Interrupt Status (Read Only)\n" "0: The valid data count within the Rx FIFO buffer..,1: The valid data count within the receive FIFO.." tree.end tree "SYS (System Manager)" base ad:0x50000000 rgroup.long 0x0++0x3 line.long 0x0 "SYS_PDID,Part Device Identification Number Register" hexmask.long 0x0 0.--31. 1. "PDID,Product Device Identification Number\nThis register reflects the device part number code. Software can read this register to identify which device is used." group.long 0x4++0xB line.long 0x0 "SYS_RSTSTS,System Reset Source Register" bitfld.long 0x0 7. "CPURF,CPU Reset Flag\nThe CPURF flag is set by hardware if software writes CPURST (SYS_IPRST0[1]) 1 to reset Cortex-M0 core and Flash memory controller (FMC).\nNote: Software can write 1 to clear this bit to zero." "0: No reset from CPU,1: Cortex-M0 core and FMC are reset by software.." bitfld.long 0x0 5. "SYSRF,MCU Reset Flag\nThe SYSRF flag is set by the 'reset signal' from the Cortex-M0 core to indicate the previous reset source.\nNote: Software can write 1 to clear this bit to zero." "0: No reset from Cortex-M0,1: The Cortex-M0 had issued the reset signal to.." newline bitfld.long 0x0 4. "BODRF,Brown-Out Detector Reset Flag\nThe BODRF flag is set by the 'reset signal' from the Brown-out Detector to indicate the previous reset source.\nNote: Software can write 1 to clear this bit to zero." "0: No reset from BOD,1: The BOD had issued the reset signal to reset the.." bitfld.long 0x0 2. "WDTRF,Watchdog Reset Flag\nThe RSTS_WDT flag is set by the 'reset signal' from the Watchdog timer to indicate the previous reset source.\nNote: Software can write 1 to clear this bit to zero." "0: No reset from Watchdog timer,1: The Watchdog timer had issued the reset signal.." newline bitfld.long 0x0 1. "PINRF,Reset Pin Reset Flag\nThe PINRF flag is set by the 'reset signal' from the /RESET pin to indicate the previous reset source.\nNote: Software can write 1 to clear this bit to zero." "0: No reset from pin /RESET pin,1: The /RESET pin had issued the reset signal to.." bitfld.long 0x0 0. "PORF,Power-On Reset Flag\nThe PORF flag is set by the 'reset signal' which is from the Power-On Reset (POR) controller or bit CHIPRST (SYS_IPRST0[0]) to indicate the previous reset source.\nNote: Software can write 1 to clear this bit to zero." "0: No reset from POR or CHIPRST,1: The Power-on-Reset (POR) or CHIPRST had issued.." line.long 0x4 "SYS_IPRST0,Peripheral Reset Control Resister 1" bitfld.long 0x4 2. "CPUWS,CPU Wait-State Control For Flash Memory Access\n0: Insert one wait-state when access Flash\n1: Non-insert wait-state when access Flash\nNote: When HCLK frequency is faster than 44MHz insert one wait state is necessary." "0: Insert one wait-state when access Flash\n1:..,?" bitfld.long 0x4 1. "CPURST,CPU Kernel One Shot Reset\nSetting this bit will reset the CPU kernel and this bit will automatically return to 0 after the 2 clock cycles.\nNote: This bit is the protected bit and programming it needs to write 0x59 0x16 and 0x88 to address.." "0: Normal,1: Reset CPU" newline bitfld.long 0x4 0. "CHIPRST,CHIP One-Shot Reset (Write Protect)\nSetting this bit will reset the CHIP including CPU kernel and all peripherals and this bit will automatically return to 0 after the 2 clock cycles.\nThe CHIPRST is the same as the POR reset and all the chip.." "0: Chip normal operation,1: CHIP one-shot reset" line.long 0x8 "SYS_IPRST1,Peripheral Reset Control Resister 2" bitfld.long 0x8 28. "ADCRST,ADC Controller Reset\n" "0: ADC block normal operation,1: ADC block reset" bitfld.long 0x8 22. "ACMPRST,ACMP Controller Reset\n" "0: ACMP block normal operation,1: ACMP block reset" newline bitfld.long 0x8 20. "PWMRST,PWM Controller Reset\n" "0: PWM block normal operation,1: PWM block reset" bitfld.long 0x8 17. "UART1RST,UART1 Controller Reset\n" "0: UART1 normal operation,1: UART1 block reset" newline bitfld.long 0x8 16. "UART0RST,UART0 Controller Reset\n" "0: UART0 normal operation,1: UART0 block reset" bitfld.long 0x8 12. "SPIRST,SPI Controller Reset\n" "0: SPI block normal operation,1: SPI block reset" newline bitfld.long 0x8 8. "I2C_RST,I2C Controller Reset\n" "0: I2C normal operation,1: I2C block reset" bitfld.long 0x8 3. "TMR1RST,Timer1 Controller Reset\n" "0: Timer1 normal operation,1: Timer1 block reset" newline bitfld.long 0x8 2. "TMR0RST,Timer0 Controller Reset\n" "0: Timer0 normal operation,1: Timer0 block reset" bitfld.long 0x8 1. "GPIORST,GPIO (P0~P5) Controller Reset\n" "0: GPIO normal operation,1: GPIO reset" group.long 0x18++0x3 line.long 0x0 "SYS_BODCTL,Brown-out Detector Control Register" bitfld.long 0x0 8. "BOREN,Brown-Out Reset Enable\nThe bit will enable BOR reset function. When VDD5V lower than 1.7v BOR will reset whole chip.\n0: Disable\n1: Enable" "0: Disable\n1: Enable,?" bitfld.long 0x0 7. "BODVL2,Brown-Out Detector Threshold Voltage Selection (Initiated Write-Protected Bit)\nThe default value is set by flash controller user configuration register config0 bit[19]." "0,1" newline bitfld.long 0x0 6. "BODOUT,Brown-Out Detector Output State\n" "0: Brown-out Detector status output is 0 the..,1: Brown-out Detector status output is 1 the.." bitfld.long 0x0 5. "BODLPM,Brown-Out Detector Low Power Mode (Write-Protected)\nThe BOD consumes about 100uA in normal mode the low power mode can reduce the current to about 1/10 but slow the BOD response." "0: BOD operate in normal mode (default),1: Enable the BOD low power mode" newline bitfld.long 0x0 4. "BODIF,Brown-Out Detector Interrupt Flag\n" "0: Brown-out Detector does not detect any voltage..,1: When Brown-out Detector detects the VDD is.." bitfld.long 0x0 3. "BODRSTEN,Brown-Out Reset Enable (Initiated And Write-Protected Bit)\nThe default value is set by flash controller user configuration register config0 bit[20].\nWhen the BOREN is enabled and the interrupt is asserted the interrupt will be kept till the.." "0: Brown-out 'INTERRUPT' function Enabled; when the..,1: Brown-out 'RESET' function Enabled; when the.." newline bitfld.long 0x0 1.--2. "BODVL1_0,Brown-Out Detector Threshold Voltage Selection (Initiated Write-Protected Bit)\n" "0,1,2,3" bitfld.long 0x0 0. "BODVL_EXT,Brown-Out Detector Selection Extension (Initiated Write-Protected Bit)\n" "0: Brown-out detector threshold voltage is selected..,1: Brown-out detector threshold voltage is selected.." group.long 0x30++0x1B line.long 0x0 "SYS_P0_MFP,P0 Multiple Function and Input Type Control Register" hexmask.long.byte 0x0 24.--31. 1. "HS,P0[7:0] Slew Rate Control\n" hexmask.long.byte 0x0 16.--23. 1. "TYPE,P0[7:0] Input Schmitt Trigger Function Enable\n" newline bitfld.long 0x0 15. "ALT7,P0.7 Alternate Function Selection\n" "0,1" bitfld.long 0x0 14. "ALT6,P0.6 Alternate Function Selection\n" "0,1" newline bitfld.long 0x0 13. "ALT5,P0.5 Alternate Function Selection\n" "0,1" bitfld.long 0x0 12. "ALT4,P0.4 Alternate Function Selection\n" "0,1" newline bitfld.long 0x0 9. "ALT1,P0.1 Alternate Function Selection\n" "0,1" bitfld.long 0x0 8. "ALT0,P0.0 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0x0 0.--7. 1. "MFP,P0 Multiple Function Selection\nThe pin function of P0 depends on P0_MFP and ALT.\nRefer to ALT Description for details." line.long 0x4 "SYS_P1_MFP,P1 Multiple Function and Input Type Control Register" hexmask.long.byte 0x4 24.--31. 1. "HS,P1[7:0] Slew Rate Control\n" hexmask.long.byte 0x4 16.--23. 1. "TYPE,P1[7:0] Input Schmitt Trigger Function Enable\n" newline bitfld.long 0x4 14. "ALT6,P1.6 Alternate Function Selection\n" "0,1" bitfld.long 0x4 13. "ALT5,P1.5 Alternate Function Selection\n" "0,1" newline bitfld.long 0x4 12. "ALT4,P1.4 Alternate Function Selection\n" "0,1" bitfld.long 0x4 11. "ALT3,P1.3 Alternate Function Selection\n" "0,1" newline bitfld.long 0x4 10. "ALT2,P1.2 Alternate Function Selection\n" "0,1" bitfld.long 0x4 8. "ALT0,P1.0 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0x4 0.--7. 1. "MFP,P1 Multiple Function Selection\nThe pin function of P1 depends on MFP and ALT.\nRefer to P1_ALT Description for details." line.long 0x8 "SYS_P2_MFP,P2 Multiple Function and Input Type Control Register" hexmask.long.byte 0x8 24.--31. 1. "HS,P2[7:0] Slew Rate Control\n" hexmask.long.byte 0x8 16.--23. 1. "TYPE,P2[7:0] Input Schmitt Trigger Function Enable\n" newline bitfld.long 0x8 15. "ALT7,P2.7 Alternate Function Selection\n" "0,1" bitfld.long 0x8 14. "ALT6,P2.6 Alternate Function Selection\n" "0,1" newline bitfld.long 0x8 13. "ALT5,P2.5 Alternate Function Selection\n" "0,1" bitfld.long 0x8 12. "ALT4,P2.4 Alternate Function Selection\n" "0,1" newline bitfld.long 0x8 11. "ALT3,P2.3 Alternate Function Selection\n" "0,1" bitfld.long 0x8 10. "ALT2,P2.2 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0x8 0.--7. 1. "MFP,P2 Multiple Function Selection\nThe pin function of P2 depends on P2_MFP and ALT.\nRefer to ALT Description for details." line.long 0xC "SYS_P3_MFP,P3 Multiple Function and Input Type Control Register" hexmask.long.byte 0xC 25.--31. 1. "HS,P3[6:0] Slew Rate Control\n" bitfld.long 0xC 24. "P32CTL,P3.2 Alternate Function Selection Extension\n" "0: P3.2 is set by ALT[2] and MFP[2],1: P3.2 is set to CPP1 of ACMP1" newline hexmask.long.byte 0xC 16.--23. 1. "TYPE,P3[7:0] Input Schmitt Trigger Function Enable\n" bitfld.long 0xC 15. "ALT7,P3.7 Alternate Function Selection\n" "0,1" newline bitfld.long 0xC 14. "ALT6,P3.6 Alternate Function Selection\n" "0,1" bitfld.long 0xC 13. "ALT5,P3.5 Alternate Function Selection\n" "0,1" newline bitfld.long 0xC 12. "ALT4,P3.4 Alternate Function Selection\n" "0,1" bitfld.long 0xC 10. "ALT2,P3.2 Alternate Function Selection\n" "0,1" newline bitfld.long 0xC 9. "ALT1,P3.1 Alternate Function Selection\n" "0,1" bitfld.long 0xC 8. "ALT0,P3.0 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0xC 0.--7. 1. "MFP,P3 Multiple Function Selection\nThe pin function of P3 depends on MFP and ALT.\nRefer to ALT Description for details." line.long 0x10 "SYS_P4_MFP,P4 Multiple Function and Input Type Control Register" hexmask.long.byte 0x10 24.--31. 1. "HS,P4[7:0] Slew Rate Control\n" hexmask.long.byte 0x10 16.--23. 1. "TYPE,P4[7:0] Input Schmitt Trigger Function Enable\n" newline bitfld.long 0x10 15. "ALT7,P4.7 Alternate Function Selection\n" "0,1" bitfld.long 0x10 14. "ALT6,P4.6 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0x10 0.--7. 1. "MFP,P4 Multiple Function Selection\nThe pin function of P4 depends on MFP and P4_ALT.\nRefer to ALT Description for details." line.long 0x14 "SYS_P5_MFP,P5 Multiple Function and Input Type Control Register" hexmask.long.byte 0x14 24.--31. 1. "HS,P5[7:0] Slew Rate Control\n" hexmask.long.byte 0x14 16.--23. 1. "TYPE,P5[7:0] Input Schmitt Trigger Function Enable\n" newline bitfld.long 0x14 13. "ALT5,P5.5 Alternate Function Selection\n" "0,1" bitfld.long 0x14 12. "ALT4,P5.4 Alternate Function Selection\n" "0,1" newline bitfld.long 0x14 11. "ALT3,P5.3 Alternate Function Selection\n" "0,1" bitfld.long 0x14 10. "ALT2,P5.2 Alternate Function Selection\n" "0,1" newline bitfld.long 0x14 9. "ALT1,P5.1 Alternate Function Selection\n" "0,1" bitfld.long 0x14 8. "ALT0,P5.0 Alternate Function Selection\n" "0,1" newline hexmask.long.byte 0x14 0.--7. 1. "MFP,P5 Multiple Function Selection\nThe pin function of P5 depends on MFP and ALT.\nRefer to ALT Description for details." line.long 0x18 "SYS_EINT0SEL,PIN selection" bitfld.long 0x18 0. "SEL,INT0 SEL GPB3\n" "0: INT0 source is P3.2,1: INT0 source is P1.3" group.long 0x80++0xB line.long 0x0 "SYS_IRCTCTL,HFIRC Trim Control Register" bitfld.long 0x0 4.--5. "LOOPSEL,Trim Calculation Loop\nThis field defines trim value calculation based on the number of LXT clock.\nFor example if LOOPSEL is set as '00' auto trim circuit will calculate trim value based on the average frequency difference in 4 LXT.." "0: Trim value calculation is based on average..,1: Trim value calculation is based on average..,?,?" bitfld.long 0x0 0. "FREQSEL,Trim Frequency Selection\nThis bit is to enable the HFIRC auto trim.\nWhen setting this bit to 1 the HFIRC auto trim function will trim HFIRC to 22.1184 MHz automatically based on the LXT reference clock.\nDuring auto trim operation if LXT.." "0: HFIRC auto trim function Disabled,1: HFIRC auto trim function Enabled and HFIRC.." line.long 0x4 "SYS_IRCTIEN,HFIRC Trim Interrupt Enable Register" bitfld.long 0x4 2. "CLKEIEN,LXT Clock Error Interrupt Enable\nThis bit controls if CPU could get an interrupt while LXT clock is inaccurate during auto trim operation.\nIf this bit is high and CLKERRIF is set during auto trim operation an interrupt will be triggered to.." "0: CLKERRIF status Disabled to trigger an interrupt..,1: CLKERRIF status Enabled to trigger an interrupt.." bitfld.long 0x4 1. "TFAILIEN,Trim Failure Interrupt Enable\nThis bit controls if an interrupt will be triggered while HFIRC trim value update limitation count is reached and HFIRC frequency is still not locked on target frequency set by FREQSEL.\nIf this bit is high and.." "0: TFAILIF status Disabled to trigger an interrupt..,1: TFAILIF status Enabled to trigger an interrupt.." line.long 0x8 "SYS_IRCTISTS,HFIRC Trim Interrupt Status Register" bitfld.long 0x8 2. "CLKERRIF,LXT Clock Error Interrupt Status\nThis bit indicates that LXT clock frequency is inaccuracy. Once this bit is set the auto trim operation stopped and FREQSEL will be cleared to 0 by hardware automatically.\nIf this bit is set and CLKEIEN is.." "0: LXT clock frequency is accuracy,1: LXT clock frequency is inaccuracy" bitfld.long 0x8 1. "TFAILIF,Trim Failure Interrupt Status\nThis bit indicates that HFIRC trim value update limitation count reached and HFIRC clock frequency still doesn't lock. Once this bit is set the auto trim operation stopped and FREQSEL will be cleared to 0 by.." "0: Trim value update limitation count is not reached,1: Trim value update limitation count is reached.." newline bitfld.long 0x8 0. "FREQLOCK,HFIRC Frequency Lock Status\nThis bit indicates the HFIRC frequency locked in 22.1184 MHz.\nThis is a read only status bit and doesn't trigger any interrupt." "0,1" group.long 0x100++0x3 line.long 0x0 "SYS_REGLCTL,Register Write-Protection Control Register" rbitfld.long 0x0 0. "REGWRPROT,Register Write-Protection Disable Index (Read Only)\n" "0: Write-protection Enabled for writing protected..,1: Write-protection Disabled for writing protected.." hexmask.long.byte 0x0 0.--7. 1. "REGPROTDIS,Register Write-Protection Code (Write Only)\nSome registers have write-protection function. Writing these registers have to disable the protected function by writing the sequence value 0x59 0x16 0x88 to this field. After this sequence is.." tree.end tree "TMR (Timer Controller)" base ad:0x40010000 group.long 0x0++0xB line.long 0x0 "TIMER0_CTL,Timer0 Control and Status Register" bitfld.long 0x0 31. "ICEDEBUG,ICE Debug Mode Acknowledge Disable (Write Protect)\nTimer counter will keep going no matter CPU is held by ICE or not." "0: ICE debug mode acknowledgement effects TIMER..,1: ICE debug mode acknowledgement Disabled" bitfld.long 0x0 30. "CNTEN,Timer Enable Control\n" "0: Stops/Suspends counting,1: Starts counting" newline bitfld.long 0x0 29. "INTEN,Interrupt Enable Control\nIf this bit is enabled when the timer interrupt flag (TIF) is set to 1 the timer interrupt signal is generated and inform to CPU." "0: Timer Interrupt function Disabled,1: Timer Interrupt function Enabled" bitfld.long 0x0 27.--28. "OPMODE,Timer Operating Mode\n" "0: The timer is operating in the One-shot OPMODE.,1: The timer is operating in Periodic OPMODE. The..,?,?" newline bitfld.long 0x0 26. "RSTCNT,Timer Reset\n" "0: No effect,1: Reset 8-bit PSC counter 24-bit up counter value.." rbitfld.long 0x0 25. "ACTSTS,Timer Active Status (Read Only)\nThis bit indicates the 24-bit up counter status.\n" "0: 24-bit up counter is not active,1: 24-bit up counter is active" newline bitfld.long 0x0 24. "EXTCNTEN,Counter Mode Enable Control\nThis bit is for external counting pin function enabled. When timer is used as an event counter this bit should be set to 1 and select HCLK as timer clock source. Please refer to section 6.12.5.3 for detail.." "0: External event counter mode Disabled,1: External event counter mode Enabled" bitfld.long 0x0 23. "WKEN,Wake-Up Enable\nWhen WKEN is set and the TIF or CAPIF is set the timer controller will generator a wake-up trigger event to CPU.\n" "0: Wake-up trigger event Disabled,1: Wake-up trigger event Enabled" newline bitfld.long 0x0 19. "CAPPINSEL,Capture Pin Source Selection\n" "0: Capture Function source is from TxEX pin,1: Capture Function source is from ACMPx output.." bitfld.long 0x0 18. "TGLPINSEL,Toggle Out Pin Selection\nWhen Timer is set to toggle mode \n" "0: Time0/1 toggle output pin is T0/T1 pin,1: Time0/1 toggle output pin is T0EX/T1EX pin" newline bitfld.long 0x0 17. "CMPCTL,TIMERx_CMP Mode Control\n" "0: In One-shot or Periodic mode when write new..,1: In One-shot or Periodic mode when write new.." bitfld.long 0x0 16. "CNTDATEN,Data Load Enable Control\nWhen CNTDATEN is set CNT (TIMERx_CNT[23:0]) (Timer Data Register) will be updated continuously with the 24-bit up-timer value as the timer is counting.\n" "0: Timer Data Register update Disabled,1: Timer Data Register update Enabled while Timer.." newline hexmask.long.byte 0x0 0.--7. 1. "PSC,Prescale Counter\n" line.long 0x4 "TIMER0_CMP,Timer0 Compare Register" hexmask.long.tbyte 0x4 0.--23. 1. "CMPDAT,Timer Compared Value\nCMPDAT is a 24-bit compared value register. When the internal 24-bit up counter value is equal to CMPDAT value the TIF flag will set to 1.\nNote1: Never write 0x0 or 0x1 in CMPDAT field or the core will run into unknown.." line.long 0x8 "TIMER0_INTSTS,Timer0 Interrupt Status Register" bitfld.long 0x8 1. "TWKF,Timer Wake-Up Flag\nThis bit indicates the interrupt wake-up flag status of Time.\nNote: This bit is cleared by writing 1 to it." "0: Timer does not cause chip wake-up,1: Chip wake-up from Idle or Power-down mode if.." bitfld.long 0x8 0. "TIF,Timer Interrupt Flag\nThis bit indicates the interrupt flag status of Timer while CNT (TIMERx_CNT[23:0]) value reaches to CMPDAT value.\nNote: This bit is cleared by writing 1 to it." "0: No effect,1: CNT value matches the CMPDAT value" rgroup.long 0xC++0x7 line.long 0x0 "TIMER0_CNT,Timer0 Data Register" hexmask.long.tbyte 0x0 0.--23. 1. "CNT,Timer Data Register\nIf CNTDATEN is set to 1 CNT register value will be updated continuously to monitor 24-bit up counter value." line.long 0x4 "TIMER0_CAP,Timer0 Capture Data Register" hexmask.long.tbyte 0x4 0.--23. 1. "CAPDAT,Timer Capture Data Register\nWhen CAPIF flag is set to 1 the current CNT (TIMERx_CNT[23:0]) value will be auto-loaded into this TCAP filed immediately.\n" group.long 0x14++0x7 line.long 0x0 "TIMER0_EXTCTL,Timer0 External Control Register" bitfld.long 0x0 8. "CAPMODE,Capture Mode Selection\n" "0: Timer counter reset function or free-counting..,1: Trigger-counting mode of timer capture function" bitfld.long 0x0 7. "ECNTDBEN,Timer External Counter Input Pin De-Bounce Enable Control\n" "0: Tx (x = 0~1) pin de-bounce Disabled,1: Tx (x = 0~1) pin de-bounce Enabled" newline bitfld.long 0x0 6. "CAPDBEN,Timer External Capture Input Pin De-Bounce Enable Control\n" "0: TxEX (x = 0~1) pin de-bounce Disabled,1: TxEX (x = 0~1) pin de-bounce Enabled" bitfld.long 0x0 5. "CAPIEN,Timer External Capture Interrupt Enable Control\nIf CAPIEN enabled Timer will raise an external capture interrupt signal and inform to CPU while CAPIF flag is set to 1." "0: TxEX (x = 0~1) pin detection Interrupt Disabled,1: TxEX (x = 0~1) pin detection Interrupt Enabled" newline bitfld.long 0x0 4. "CAPFUNCS,Timer External Reset Counter / Timer External Capture Mode Selection\n" "0: Transition on TxEX (x = 0~1) pin is using to..,1: Transition on TxEX (x = 0~1) pin is using to.." bitfld.long 0x0 3. "CAPEN,Timer External Pin Function Enable\n" "0: CAPFUNCS function of TxEX (x = 0~1) pin will be..,1: CAPFUNCS function of TxEX (x = 0~1) pin is active" newline bitfld.long 0x0 1.--2. "CAPEDGE,Timer External Pin Edge Detection\n" "0: A 1 to 0 transition on TxEX (x = 0~1) will be..,1: A 0 to 1 transition on TxEX (x = 0~1) will be..,?,?" bitfld.long 0x0 0. "CNTPHASE,Timer External Count Pin Phase Detect Selection\n" "0: A falling edge of Tx (x = 0~1) pin will be counted,1: A rising edge of Tx (x = 0~1) pin will be counted" line.long 0x4 "TIMER0_EINTSTS,Timer0 External Interrupt Status Register" bitfld.long 0x4 0. "CAPIF,Timer External Interrupt Flag\nThis bit indicates the external capture interrupt flag status\nNote: This bit is cleared by writing 1 to it" "0: TxEX (x = 0~1) pin interrupt did not occur,1: TxEX (x = 0~1) pin interrupt occurred" group.long 0x20++0xB line.long 0x0 "TIMER1_CTL,Timer0 Control and Status Register" bitfld.long 0x0 31. "ICEDEBUG,ICE Debug Mode Acknowledge Disable (Write Protect)\nTimer counter will keep going no matter CPU is held by ICE or not." "0: ICE debug mode acknowledgement effects TIMER..,1: ICE debug mode acknowledgement Disabled" bitfld.long 0x0 30. "CNTEN,Timer Enable Control\n" "0: Stops/Suspends counting,1: Starts counting" newline bitfld.long 0x0 29. "INTEN,Interrupt Enable Control\nIf this bit is enabled when the timer interrupt flag (TIF) is set to 1 the timer interrupt signal is generated and inform to CPU." "0: Timer Interrupt function Disabled,1: Timer Interrupt function Enabled" bitfld.long 0x0 27.--28. "OPMODE,Timer Operating Mode\n" "0: The timer is operating in the One-shot OPMODE.,1: The timer is operating in Periodic OPMODE. The..,?,?" newline bitfld.long 0x0 26. "RSTCNT,Timer Reset\n" "0: No effect,1: Reset 8-bit PSC counter 24-bit up counter value.." rbitfld.long 0x0 25. "ACTSTS,Timer Active Status (Read Only)\nThis bit indicates the 24-bit up counter status.\n" "0: 24-bit up counter is not active,1: 24-bit up counter is active" newline bitfld.long 0x0 24. "EXTCNTEN,Counter Mode Enable Control\nThis bit is for external counting pin function enabled. When timer is used as an event counter this bit should be set to 1 and select HCLK as timer clock source. Please refer to section 6.12.5.3 for detail.." "0: External event counter mode Disabled,1: External event counter mode Enabled" bitfld.long 0x0 23. "WKEN,Wake-Up Enable\nWhen WKEN is set and the TIF or CAPIF is set the timer controller will generator a wake-up trigger event to CPU.\n" "0: Wake-up trigger event Disabled,1: Wake-up trigger event Enabled" newline bitfld.long 0x0 19. "CAPPINSEL,Capture Pin Source Selection\n" "0: Capture Function source is from TxEX pin,1: Capture Function source is from ACMPx output.." bitfld.long 0x0 18. "TGLPINSEL,Toggle Out Pin Selection\nWhen Timer is set to toggle mode \n" "0: Time0/1 toggle output pin is T0/T1 pin,1: Time0/1 toggle output pin is T0EX/T1EX pin" newline bitfld.long 0x0 17. "CMPCTL,TIMERx_CMP Mode Control\n" "0: In One-shot or Periodic mode when write new..,1: In One-shot or Periodic mode when write new.." bitfld.long 0x0 16. "CNTDATEN,Data Load Enable Control\nWhen CNTDATEN is set CNT (TIMERx_CNT[23:0]) (Timer Data Register) will be updated continuously with the 24-bit up-timer value as the timer is counting.\n" "0: Timer Data Register update Disabled,1: Timer Data Register update Enabled while Timer.." newline hexmask.long.byte 0x0 0.--7. 1. "PSC,Prescale Counter\n" line.long 0x4 "TIMER1_CMP,Timer0 Compare Register" hexmask.long.tbyte 0x4 0.--23. 1. "CMPDAT,Timer Compared Value\nCMPDAT is a 24-bit compared value register. When the internal 24-bit up counter value is equal to CMPDAT value the TIF flag will set to 1.\nNote1: Never write 0x0 or 0x1 in CMPDAT field or the core will run into unknown.." line.long 0x8 "TIMER1_INTSTS,Timer0 Interrupt Status Register" bitfld.long 0x8 1. "TWKF,Timer Wake-Up Flag\nThis bit indicates the interrupt wake-up flag status of Time.\nNote: This bit is cleared by writing 1 to it." "0: Timer does not cause chip wake-up,1: Chip wake-up from Idle or Power-down mode if.." bitfld.long 0x8 0. "TIF,Timer Interrupt Flag\nThis bit indicates the interrupt flag status of Timer while CNT (TIMERx_CNT[23:0]) value reaches to CMPDAT value.\nNote: This bit is cleared by writing 1 to it." "0: No effect,1: CNT value matches the CMPDAT value" rgroup.long 0x2C++0x7 line.long 0x0 "TIMER1_CNT,Timer0 Data Register" hexmask.long.tbyte 0x0 0.--23. 1. "CNT,Timer Data Register\nIf CNTDATEN is set to 1 CNT register value will be updated continuously to monitor 24-bit up counter value." line.long 0x4 "TIMER1_CAP,Timer0 Capture Data Register" hexmask.long.tbyte 0x4 0.--23. 1. "CAPDAT,Timer Capture Data Register\nWhen CAPIF flag is set to 1 the current CNT (TIMERx_CNT[23:0]) value will be auto-loaded into this TCAP filed immediately.\n" group.long 0x34++0x7 line.long 0x0 "TIMER1_EXTCTL,Timer0 External Control Register" bitfld.long 0x0 8. "CAPMODE,Capture Mode Selection\n" "0: Timer counter reset function or free-counting..,1: Trigger-counting mode of timer capture function" bitfld.long 0x0 7. "ECNTDBEN,Timer External Counter Input Pin De-Bounce Enable Control\n" "0: Tx (x = 0~1) pin de-bounce Disabled,1: Tx (x = 0~1) pin de-bounce Enabled" newline bitfld.long 0x0 6. "CAPDBEN,Timer External Capture Input Pin De-Bounce Enable Control\n" "0: TxEX (x = 0~1) pin de-bounce Disabled,1: TxEX (x = 0~1) pin de-bounce Enabled" bitfld.long 0x0 5. "CAPIEN,Timer External Capture Interrupt Enable Control\nIf CAPIEN enabled Timer will raise an external capture interrupt signal and inform to CPU while CAPIF flag is set to 1." "0: TxEX (x = 0~1) pin detection Interrupt Disabled,1: TxEX (x = 0~1) pin detection Interrupt Enabled" newline bitfld.long 0x0 4. "CAPFUNCS,Timer External Reset Counter / Timer External Capture Mode Selection\n" "0: Transition on TxEX (x = 0~1) pin is using to..,1: Transition on TxEX (x = 0~1) pin is using to.." bitfld.long 0x0 3. "CAPEN,Timer External Pin Function Enable\n" "0: CAPFUNCS function of TxEX (x = 0~1) pin will be..,1: CAPFUNCS function of TxEX (x = 0~1) pin is active" newline bitfld.long 0x0 1.--2. "CAPEDGE,Timer External Pin Edge Detection\n" "0: A 1 to 0 transition on TxEX (x = 0~1) will be..,1: A 0 to 1 transition on TxEX (x = 0~1) will be..,?,?" bitfld.long 0x0 0. "CNTPHASE,Timer External Count Pin Phase Detect Selection\n" "0: A falling edge of Tx (x = 0~1) pin will be counted,1: A rising edge of Tx (x = 0~1) pin will be counted" line.long 0x4 "TIMER1_EINTSTS,Timer0 External Interrupt Status Register" bitfld.long 0x4 0. "CAPIF,Timer External Interrupt Flag\nThis bit indicates the external capture interrupt flag status\nNote: This bit is cleared by writing 1 to it" "0: TxEX (x = 0~1) pin interrupt did not occur,1: TxEX (x = 0~1) pin interrupt occurred" group.long 0x40++0x3 line.long 0x0 "TIMER_CCAPCTL,Timer Continuous Capture Control Register" bitfld.long 0x0 11. "CAPF2F,Capture Falling Edge 2 Flag\nSecond falling edge already captured this bit will be set to 1.\nNote: This bit is cleared by H/W automatically when write CCAPEN to 1 or writing 1 to it" "0: None,1: TIMER0_CAP or TIMER1_CAP data is ready for read" bitfld.long 0x0 10. "CAPR2F,Capture Rising Edge 2 Flag\nSecond rising edge already captured this bit will be set to 1.\nNote: This bit is cleared by H/W automatically when write CCAPEN to 1 or writing 1 to it" "0: None,1: TIMER_CCAP2 data is ready for read" newline bitfld.long 0x0 9. "CAPF1F,Capture Falling Edge 1 Flag\nFirst falling edge already captured this bit will be set to 1.\nNote: This bit is cleared by H/W automatically when write CCAPEN to 1 or writing 1 to it" "0: None,1: TIMER_CCAP1 data is ready for read" bitfld.long 0x0 8. "CAPR1F,Capture Rising Edge 1 Flag\nFirst rising edge already captured this bit will be set to 1.\nNote: This bit is cleared by H/W automatically when write CCAPEN to 1 or writing 1 to it" "0: None,1: TIMER_CCAP0 data is ready for read" newline bitfld.long 0x0 3.--5. "CAPCHSEL,Capture Channel Selection\nSelect the input channel to be captured.\n" "0: P0.0,1: P0.4,?,?,?,?,?,?" bitfld.long 0x0 2. "TMRSEL,Capture Timer Selection\nSelect the timer to capture the input signal.\n" "0: Timer 0,1: Timer 1" newline bitfld.long 0x0 1. "INV,Input Signal Inverse\nInvert the input signal which be captured.\n" "0: None,1: Inverse" bitfld.long 0x0 0. "CCAPEN,Continuous Capture Enable\nThis bit enables the advanced capture function.\nNote: This bit is cleared by H/W automatically when capture operation finish or writing 0 to it" "0: Enable,1: Disable" rgroup.long 0x44++0xB line.long 0x0 "TIMER_CCAP0,Timer Continuous Capture Data Register 0" hexmask.long.tbyte 0x0 0.--23. 1. "CAPDAT,Timer Continuous Capture Data Register X\nTIMER_CCAP0 store the timer count value of first rising edge.\nTIMER_CCAP1 store the timer count value of first falling edge.\nTIMER_CCAP2 store the timer count value of second rising edge." line.long 0x4 "TIMER_CCAP1,Timer Continuous Capture Data Register 0" hexmask.long.tbyte 0x4 0.--23. 1. "CAPDAT,Timer Continuous Capture Data Register X\nTIMER_CCAP0 store the timer count value of first rising edge.\nTIMER_CCAP1 store the timer count value of first falling edge.\nTIMER_CCAP2 store the timer count value of second rising edge." line.long 0x8 "TIMER_CCAP2,Timer Continuous Capture Data Register 0" hexmask.long.tbyte 0x8 0.--23. 1. "CAPDAT,Timer Continuous Capture Data Register X\nTIMER_CCAP0 store the timer count value of first rising edge.\nTIMER_CCAP1 store the timer count value of first falling edge.\nTIMER_CCAP2 store the timer count value of second rising edge." tree.end tree "UART (Universal Asynchronous Receiver/Transmitter)" base ad:0x0 tree "UART0" base ad:0x40050000 group.long 0x0++0x1B line.long 0x0 "UART_DAT,UART Receive/Transmit Buffer Register" hexmask.long.byte 0x0 0.--7. 1. "DAT,Receiving/Transmit Buffer\nWrite Operation:\nBy writing to this register the UART sends out an 8-bit data through the TX pin (LSB first). \nBy reading this register the UART Controller will return an 8-bit data received from RX pin (LSB first)." line.long 0x4 "UART_INTEN,UART Interrupt Enable Register" bitfld.long 0x4 13. "ATOCTSEN,CTS Auto Flow Control Enable Control\nNote: When CTS auto-flow is enabled the UART will send data to external device when CTS input assert (UART will not send data to device until CTS is asserted)." "0: CTS auto flow control Disabled,1: CTS auto flow control Enabled" bitfld.long 0x4 12. "ATORTSEN,RTS Auto Flow Control Enable Control\nNote: When RTS auto-flow is enabled if the number of bytes in the RX FIFO equals the RTSTRGLV (UART_FIFO [19:16]) the UART will de-assert RTS signal." "0: RTS auto flow control Disabled,1: RTS auto flow control Enabled" newline bitfld.long 0x4 11. "TOCNTEN,Time-Out Counter Enable Control\n" "0: Time-out counter Disabled,1: Time-out counter Enabled" bitfld.long 0x4 6. "WKCTSIEN,Wake-Up CPU Function Enable Control\nNote: when the chip is in Power-down mode an external CTS change will wake-up chip from Power-down mode." "0: UART wake-up function Disabled,1: UART Wake-up function Enabled" newline bitfld.long 0x4 5. "BUFERRIEN,Buffer Error Interrupt Enable Control\n" "0: BUFERRINT Masked Disabled,1: BUFERRINT Enabled" bitfld.long 0x4 4. "RXTOIEN,RX Time-Out Interrupt Enable Control\n" "0: RXTOINT Masked off,1: RXTOINT Enabled" newline bitfld.long 0x4 3. "MODEMIEN,Modem Status Interrupt Enable Control\n" "0: MODEMINT Masked off,1: MODEMINT Enabled" bitfld.long 0x4 2. "RLSIEN,Receive Line Status Interrupt Enable Control\n" "0: RLSINT Masked off,1: RLSINT Enabled" newline bitfld.long 0x4 1. "THREIEN,Transmit Holding Register Empty Interrupt Enable Control\n" "0: THREINT Masked off,1: THREINT Enabled" bitfld.long 0x4 0. "RDAIEN,Receive Data Available Interrupt Enable Control\n" "0: RDAINT Masked off,1: RDAINT Enabled" line.long 0x8 "UART_FIFO,UART FIFO Control Register" hexmask.long.byte 0x8 16.--19. 1. "RTSTRGLV,RTS Trigger Level (for Auto-flow Control Use)\nNote: This field is used for RTS auto-flow control." bitfld.long 0x8 8. "RXOFF,Receiver Disable Register\nThe receiver is disabled or not (setting 1 to disable the receiver).\nNote: This field is used for RS-485 Normal Multi-drop mode. It should be programmed before RS-485_NMM (UART_ALTCTL [8]) is programmed." "0: Receiver Enabled,1: Receiver Disabled" newline hexmask.long.byte 0x8 4.--7. 1. "RFITL,RX FIFO Interrupt (RDAINT) Trigger Level\nWhen the number of bytes in the receive FIFO equals the RFITL then the RDAIF will be set (if RDAIEN in UART_INTEN register is enable an interrupt will generated).\n" bitfld.long 0x8 2. "TXRST,TX Field Software Reset\nWhen TX_RST is set all the byte in the transmit FIFO and TX internal state machine are cleared.\nNote: This bit will auto clear needs at least 3 UART Controller peripheral clock cycles." "0: No effect,1: The TX internal state machine and pointers reset" newline bitfld.long 0x8 1. "RXRST,RX Field Software Reset\nWhen RX_RST is set all the byte in the receiver FIFO and RX internal state machine are cleared.\nNote: This bit will auto clear needs at least 3 UART Controller peripheral clock cycles." "0: No effect,1: The RX internal state machine and pointers reset" line.long 0xC "UART_LINE,UART Line Control Register" bitfld.long 0xC 6. "BCB,Break Control Bit\nWhen this bit is set to logic 1 the serial data output (TX) is forced to the Spacing State (logic 0). This bit acts only on TX and has no effect on the transmitter logic.\n" "0: Break control Disabled,1: Break control Enabled" bitfld.long 0xC 5. "SPE,Stick Parity Enable Control\n" "0: Stick parity Disabled,1: If PBE (UART_LINE[3]) and EBE (UART_LINE[4]) are.." newline bitfld.long 0xC 4. "EPE,Even Parity Enable Control\nThis bit has effect only when PBE (UART_LINE[3]) is set." "0: Odd number of logic 1's is transmitted and..,1: Even number of logic 1's is transmitted and.." bitfld.long 0xC 3. "PBE,Parity Bit Enable Control\n" "0: No parity bit,1: Parity bit is generated on each outgoing.." newline bitfld.long 0xC 2. "NSB,Number Of 'STOP Bit'\n" "0: One 'STOP bit' is generated in the transmitted..,1: When select 5-bit word length 1.5 'STOP bit' is.." bitfld.long 0xC 0.--1. "WLS,Word Length Selection\n" "0: Word length is 5-bit,1: Word length is 6-bit,?,?" line.long 0x10 "UART_MODEM,UART Modem Control Register" rbitfld.long 0x10 13. "RTSSTS,RTS Pin State (Read Only)\nThis bit mirror from RTS pin output of voltage logic status.\n" "0: RTS pin output is low level voltage logic state,1: RTS pin output is high level voltage logic state" bitfld.long 0x10 9. "RTSACTLV,RTS Pin Active Level\nThis bit defines the active level state of RTS pin output.\n" "0: RTS pin output is high level active,1: RTS pin output is low level active" newline bitfld.long 0x10 1. "RTS,RTS (Request-To-Send) Signal Control\nThis bit is direct control internal RTS signal active or not and then drive the RTS pin output with RTSACTLV bit configuration.\nNote1: This RTS signal control bit is not effective when RTS auto-flow control is.." "0: RTS signal is active,1: This RTS signal control bit is not effective.." line.long 0x14 "UART_MODEMSTS,UART Modem Status Register" bitfld.long 0x14 8. "CTSACTLV,CTS Pin Active Level\nThis bit defines the active level state of CTS pin input.\nNote: Refer to Figure 6.1410" "0: CTS pin input is high level active,1: CTS pin input is low level active" rbitfld.long 0x14 4. "CTSSTS,CTS Pin Status (Read Only)\nThis bit mirror from CTS pin input of voltage logic status.\nNote: This bit echoes when UART Controller peripheral clock is enabled and CTS multi-function port is selected." "0: CTS pin input is low level voltage logic state,1: CTS pin input is high level voltage logic state" newline bitfld.long 0x14 0. "CTSDETF,Detect CTS State Change Flag\nThis bit is set whenever CTS input has change state and it will generate Modem interrupt to CPU when MODEMIEN (UART_INTEN [3]) is set to 1.\nNote: This bit is cleared by writing 1 to it." "0: CTS input has not change state,1: CTS input has change state" line.long 0x18 "UART_FIFOSTS,UART FIFO Status Register" rbitfld.long 0x18 28. "TXEMPTYF,Transmitter Empty Flag (Read Only)\nThis bit is set by hardware when TX FIFO (UART_DAT) is empty and the STOP bit of the last byte has been transmitted.\nNote: This bit is cleared automatically when TX FIFO is not empty or the last byte.." "0: TX FIFO is not empty,1: TX FIFO is empty" bitfld.long 0x18 24. "TXOVIF,TX Overflow Error Interrupt Flag\nIf TX FIFO (UART_DAT) is full an additional write to UART_DAT will cause this bit to logic 1.\nNote: This bit is cleared by writing 1 to it." "0: TX FIFO is not overflow,1: TX FIFO is overflow" newline rbitfld.long 0x18 23. "TXFULL,Transmitter FIFO Full (Read Only)\nThis bit indicates TX FIFO full or not.\nNote: This bit is set when the number of usage in TX FIFO Buffer is equal to 16 otherwise is cleared by hardware." "0: TX FIFO is not full,1: TX FIFO is full" rbitfld.long 0x18 22. "TXEMPTY,Transmitter FIFO Empty (Read Only)\nThis bit indicates TX FIFO empty or not.\nNote: When the last byte of TX FIFO has been transferred to Transmitter Shift Register hardware sets this bit high. It will be cleared when writing data into DAT (TX.." "0: TX FIFO is not empty,1: TX FIFO is empty" newline hexmask.long.byte 0x18 16.--21. 1. "TXPTR,TX FIFO Pointer (Read Only)\nThis field indicates the TX FIFO Buffer Pointer. When CPU writes one byte into UART_DAT TXPTR increases one. When one byte of TX FIFO is transferred to Transmitter Shift Register TXPTR decreases one.\nThe Maximum.." rbitfld.long 0x18 15. "RXFULL,Receiver FIFO Full (Read Only)\nThis bit initiates RX FIFO full or not.\nNote: This bit is set when the number of usage in RX FIFO Buffer is equal to 16 otherwise is cleared by hardware.." "0: RX FIFO is not full,1: RX FIFO is full" newline rbitfld.long 0x18 14. "RXEMPTY,Receiver FIFO Empty (Read Only)\nThis bit initiate RX FIFO empty or not.\nNote: When the last byte of RX FIFO has been read by CPU hardware sets this bit high. It will be cleared when UART receives any new data." "0: RX FIFO is not empty,1: RX FIFO is empty" hexmask.long.byte 0x18 8.--13. 1. "RXPTR,RX FIFO Pointer (Read Only)\nThis field indicates the RX FIFO Buffer Pointer. When UART receives one byte from external device RXPTR increases one. When one byte of RX FIFO is read by CPU RXPTR decreases one.\nThe Maximum value shown in RXPTR is.." newline rbitfld.long 0x18 6. "BIF,Break Interrupt Flag (Read Only)\nThis bit is set to logic 1 whenever the received data input (RX) is held in the 'spacing state' (logic 0) for longer than a full word transmission time (that is the total time of 'start bit' + data bits + parity +.." "0: No Break interrupt is generated,1: Break interrupt is generated" rbitfld.long 0x18 5. "FEF,Framing Error Flag (Read Only)\nNote: This bit is read only but can be cleared by writing '1' to it ." "?,1: Framing error is generated" newline rbitfld.long 0x18 4. "PEF,Parity Error Flag (Read Only)\nThis bit is set to logic 1 whenever the received character does not have a valid 'parity bit'.\n" "0: No parity error is generated,1: Parity error is generated.Note: This bit is read.." bitfld.long 0x18 3. "ADDRDETF,RS-485 Address Byte Detection Flag \nNote1: This field is used for RS-485 function mode.\nNote2: This bit is cleared by writing 1 to it." "?,1: This field is used for RS-485 function mode" newline bitfld.long 0x18 0. "RXOVIF,RX Overflow Error Interrupt Flag\nThis bit is set when RX FIFO overflow.\nIf the number of bytes of received data is greater than RX_FIFO (UART_DAT) size 16 bytes this bit will be set.\nNote: This bit is cleared by writing 1 to it." "0: RX FIFO is not overflow,1: RX FIFO is overflow" rgroup.long 0x1C++0x3 line.long 0x0 "UART_INTSTS,UART Interrupt Status Register" bitfld.long 0x0 13. "BUFERRINT,Buffer Error Interrupt Indicator (Read Only)\nThis bit is set if BUFERRIEN and BUFERRIF are both set to 1.\n" "0: No buffer error interrupt is generated,1: buffer error interrupt is generated" bitfld.long 0x0 12. "RXTOINT,Time-Out Interrupt Indicator (Read Only)\nThis bit is set if RXTOIEN and RXTOIF are both set to 1.\n" "0: No Time-out interrupt is generated,1: Time-out interrupt is generated" newline bitfld.long 0x0 11. "MODEMINT,MODEM Status Interrupt Indicator (Read Only)\nThis bit is set if MODEMIEN and MODENIF are both set to 1.\n" "0: No Modem interrupt is generated,1: Modem interrupt is generated" bitfld.long 0x0 10. "RLSINT,Receive Line Status Interrupt (Read Only)\nThis bit is set if RLSIEN and RLSIF are both set to 1.\n" "0: No RLS interrupt is generated,1: RLS interrupt is generated" newline bitfld.long 0x0 9. "THREINT,Transmit Holding Register Empty Interrupt Indicator (Read Only)\nThis bit is set if THREIEN and THREIF are both set to 1.\n" "0: No THRE interrupt is generated,1: THRE interrupt is generated" bitfld.long 0x0 8. "RDAINT,Receive Data Available Interrupt Indicator (Read Only)\nThis bit is set if RDAIEN and RDAIF are both set to 1.\nThis bit is set if RDAIEN and RDAIF are both set to 1.\n" "0: No RDA interrupt is generated,1: RDA interrupt is generated" newline bitfld.long 0x0 5. "BUFERRIF,Buffer Error Interrupt Flag (Read Only)\nThis bit is set when the TX/RX FIFO overflow flag (TXOVIF or RXOVIF) is set. \nWhen BUFERRIF is set the transfer is not correct. If BUFERRIEN (UART_INTEN [5]) is enabled the buffer error interrupt will.." "0: No buffer error interrupt flag is generated,1: Buffer error interrupt flag is generated" bitfld.long 0x0 4. "RXTOIF,Time-Out Interrupt Flag (Read Only)\nThis bit is set when the RX FIFO is not empty and no activities occurred in the RX FIFO and the time-out counter equal to TOIC. If RXTOIEN (UART_INTEN [4]) is enabled the Tout interrupt will be.." "0: No Time-out interrupt flag is generated,1: Time-out interrupt flag is generated" newline bitfld.long 0x0 3. "MODENIF,MODEM Interrupt Flag (Read Only)\nNote: This bit is read only and reset to 0 when bit CTSDETF is cleared by a write 1 on CTSDETF." "0: No Modem interrupt flag is generated,1: Modem interrupt flag is generated" bitfld.long 0x0 2. "RLSIF,Receive Line Interrupt Flag (Read Only)\nThis bit is set when the RX receive data have parity error framing error or break error (at least one of 3 bits BIF FEF and PEF is set). If RLSIEN (UART_INTEN [2]) is enabled the RLS interrupt will be.." "0: No RLS interrupt flag is generated,1: RLS interrupt flag is generated" newline bitfld.long 0x0 1. "THREIF,Transmit Holding Register Empty Interrupt Flag (Read Only)\nThis bit is set when the last data of TX FIFO is transferred to Transmitter Shift Register. If THREIEN (UART_INTEN [1]) is enabled the THRE interrupt will be generated.\nNote: This bit.." "0: No THRE interrupt flag is generated,1: THRE interrupt flag is generated" bitfld.long 0x0 0. "RDAIF,Receive Data Available Interrupt Flag (Read Only)\nWhen the number of bytes in the RX FIFO equals the RFITL then the RDAIF will be set. If RDAIEN (UART_INTEN [0]) is enabled the RDA interrupt will be generated. \nNote: This bit is read only and it.." "0: No RDA interrupt flag is generated,1: RDA interrupt flag is generated" group.long 0x20++0x13 line.long 0x0 "UART_TOUT,UART Time-out Register" hexmask.long.byte 0x0 8.--15. 1. "DLY,TX Delay Time Value\nThis field is used to program the transfer delay time between the last stop bit and next start bit." hexmask.long.byte 0x0 0.--7. 1. "TOIC,Time-Out Interrupt Comparator\n" line.long 0x4 "UART_BAUD,UART Baud Rate Divisor Register" bitfld.long 0x4 29. "BAUDM1,Divider X Enable\nRefer to the table below for more information.\nNote: When in IrDA mode this bit must be disabled." "0: Divider X Disabled (the equation of M = 16),1: Divider X Enabled (the equation of M = X+1 but.." bitfld.long 0x4 28. "BAUDM0,Divider X Equal 1\nUART Controller Baud Rate Generator\nRefer to section 'UART Controller Baud Rate Generator' for more information." "0: Divider M = X (the equation of M = X+1 but..,1: Divider M = 1 (the equation of M = 1 but BRD.." newline hexmask.long.byte 0x4 24.--27. 1. "EDIVM1,Divider X\n" hexmask.long.word 0x4 0.--15. 1. "BRD,Baud Rate Divider\nThe field indicates the baud rate divider." line.long 0x8 "UART_IRDA,UART IrDA Control Register" bitfld.long 0x8 6. "RXINV,RXINV\n" "0: No inversion,1: Inverse RX input signal" bitfld.long 0x8 5. "TXINV,TXINV\n" "0: No inversion,1: Inverse TX output signal" newline bitfld.long 0x8 1. "TXEN,TXEN\n" "0: IrDA receiver Enabled,1: IrDA transmitter Enabled" line.long 0xC "UART_ALTCTL,UART Alternate Control/Status Register" hexmask.long.byte 0xC 24.--31. 1. "ADDRMV,Address Match Value Register\nThis field contains the RS-485 address match values.\nNote: This field is used for RS-485 auto address detection mode." bitfld.long 0xC 15. "ADDRDEN,RS-485 Address Detection Enable Control\nThis bit is used to enable RS-485 Address Detection mode.\nNote: This field is used for RS-485 any operation mode." "0: RS-485 address detection mode Disabled,1: RS-485 address detection mode Enabled" newline bitfld.long 0xC 10. "RS485AUD,RS-485 Auto Direction Mode (AUD) Control\nNote: It can be active with RS485ADD or RS485NMM operation mode." "0: RS-485 Auto Direction Mode (AUD) Disabled,1: RS-485 Auto Direction Mode (AUD) Enabled" bitfld.long 0xC 9. "RS485AAD,RS-485 Auto Address Detection Operation Mode (AAD)\nNote: It cannot be active with RS485NMM operation mode." "0: RS-485 Auto Address Detection Operation Mode..,1: RS-485 Auto Address Detection Operation Mode.." newline bitfld.long 0xC 8. "RS485NMM,RS-485 Normal Multi-Drop Operation Mode (NMM) Control\nNote: It cannot be active with RS485AAD operation mode." "0: RS-485 Normal Multi-drop Operation Mode (NMM)..,1: RS-485 Normal Multi-drop Operation Mode (NMM).." line.long 0x10 "UART_FUNCSEL,UART Function Select Register" bitfld.long 0x10 0.--1. "FUNCSEL,Function Select \n" "0: UART function mode,1: Reserved,?,?" tree.end tree "UART1" base ad:0x40150000 group.long 0x0++0x1B line.long 0x0 "UART_DAT,UART Receive/Transmit Buffer Register" hexmask.long.byte 0x0 0.--7. 1. "DAT,Receiving/Transmit Buffer\nWrite Operation:\nBy writing to this register the UART sends out an 8-bit data through the TX pin (LSB first). \nBy reading this register the UART Controller will return an 8-bit data received from RX pin (LSB first)." line.long 0x4 "UART_INTEN,UART Interrupt Enable Register" bitfld.long 0x4 13. "ATOCTSEN,CTS Auto Flow Control Enable Control\nNote: When CTS auto-flow is enabled the UART will send data to external device when CTS input assert (UART will not send data to device until CTS is asserted)." "0: CTS auto flow control Disabled,1: CTS auto flow control Enabled" bitfld.long 0x4 12. "ATORTSEN,RTS Auto Flow Control Enable Control\nNote: When RTS auto-flow is enabled if the number of bytes in the RX FIFO equals the RTSTRGLV (UART_FIFO [19:16]) the UART will de-assert RTS signal." "0: RTS auto flow control Disabled,1: RTS auto flow control Enabled" newline bitfld.long 0x4 11. "TOCNTEN,Time-Out Counter Enable Control\n" "0: Time-out counter Disabled,1: Time-out counter Enabled" bitfld.long 0x4 6. "WKCTSIEN,Wake-Up CPU Function Enable Control\nNote: when the chip is in Power-down mode an external CTS change will wake-up chip from Power-down mode." "0: UART wake-up function Disabled,1: UART Wake-up function Enabled" newline bitfld.long 0x4 5. "BUFERRIEN,Buffer Error Interrupt Enable Control\n" "0: BUFERRINT Masked Disabled,1: BUFERRINT Enabled" bitfld.long 0x4 4. "RXTOIEN,RX Time-Out Interrupt Enable Control\n" "0: RXTOINT Masked off,1: RXTOINT Enabled" newline bitfld.long 0x4 3. "MODEMIEN,Modem Status Interrupt Enable Control\n" "0: MODEMINT Masked off,1: MODEMINT Enabled" bitfld.long 0x4 2. "RLSIEN,Receive Line Status Interrupt Enable Control\n" "0: RLSINT Masked off,1: RLSINT Enabled" newline bitfld.long 0x4 1. "THREIEN,Transmit Holding Register Empty Interrupt Enable Control\n" "0: THREINT Masked off,1: THREINT Enabled" bitfld.long 0x4 0. "RDAIEN,Receive Data Available Interrupt Enable Control\n" "0: RDAINT Masked off,1: RDAINT Enabled" line.long 0x8 "UART_FIFO,UART FIFO Control Register" hexmask.long.byte 0x8 16.--19. 1. "RTSTRGLV,RTS Trigger Level (for Auto-flow Control Use)\nNote: This field is used for RTS auto-flow control." bitfld.long 0x8 8. "RXOFF,Receiver Disable Register\nThe receiver is disabled or not (setting 1 to disable the receiver).\nNote: This field is used for RS-485 Normal Multi-drop mode. It should be programmed before RS-485_NMM (UART_ALTCTL [8]) is programmed." "0: Receiver Enabled,1: Receiver Disabled" newline hexmask.long.byte 0x8 4.--7. 1. "RFITL,RX FIFO Interrupt (RDAINT) Trigger Level\nWhen the number of bytes in the receive FIFO equals the RFITL then the RDAIF will be set (if RDAIEN in UART_INTEN register is enable an interrupt will generated).\n" bitfld.long 0x8 2. "TXRST,TX Field Software Reset\nWhen TX_RST is set all the byte in the transmit FIFO and TX internal state machine are cleared.\nNote: This bit will auto clear needs at least 3 UART Controller peripheral clock cycles." "0: No effect,1: The TX internal state machine and pointers reset" newline bitfld.long 0x8 1. "RXRST,RX Field Software Reset\nWhen RX_RST is set all the byte in the receiver FIFO and RX internal state machine are cleared.\nNote: This bit will auto clear needs at least 3 UART Controller peripheral clock cycles." "0: No effect,1: The RX internal state machine and pointers reset" line.long 0xC "UART_LINE,UART Line Control Register" bitfld.long 0xC 6. "BCB,Break Control Bit\nWhen this bit is set to logic 1 the serial data output (TX) is forced to the Spacing State (logic 0). This bit acts only on TX and has no effect on the transmitter logic.\n" "0: Break control Disabled,1: Break control Enabled" bitfld.long 0xC 5. "SPE,Stick Parity Enable Control\n" "0: Stick parity Disabled,1: If PBE (UART_LINE[3]) and EBE (UART_LINE[4]) are.." newline bitfld.long 0xC 4. "EPE,Even Parity Enable Control\nThis bit has effect only when PBE (UART_LINE[3]) is set." "0: Odd number of logic 1's is transmitted and..,1: Even number of logic 1's is transmitted and.." bitfld.long 0xC 3. "PBE,Parity Bit Enable Control\n" "0: No parity bit,1: Parity bit is generated on each outgoing.." newline bitfld.long 0xC 2. "NSB,Number Of 'STOP Bit'\n" "0: One 'STOP bit' is generated in the transmitted..,1: When select 5-bit word length 1.5 'STOP bit' is.." bitfld.long 0xC 0.--1. "WLS,Word Length Selection\n" "0: Word length is 5-bit,1: Word length is 6-bit,?,?" line.long 0x10 "UART_MODEM,UART Modem Control Register" rbitfld.long 0x10 13. "RTSSTS,RTS Pin State (Read Only)\nThis bit mirror from RTS pin output of voltage logic status.\n" "0: RTS pin output is low level voltage logic state,1: RTS pin output is high level voltage logic state" bitfld.long 0x10 9. "RTSACTLV,RTS Pin Active Level\nThis bit defines the active level state of RTS pin output.\n" "0: RTS pin output is high level active,1: RTS pin output is low level active" newline bitfld.long 0x10 1. "RTS,RTS (Request-To-Send) Signal Control\nThis bit is direct control internal RTS signal active or not and then drive the RTS pin output with RTSACTLV bit configuration.\nNote1: This RTS signal control bit is not effective when RTS auto-flow control is.." "0: RTS signal is active,1: This RTS signal control bit is not effective.." line.long 0x14 "UART_MODEMSTS,UART Modem Status Register" bitfld.long 0x14 8. "CTSACTLV,CTS Pin Active Level\nThis bit defines the active level state of CTS pin input.\nNote: Refer to Figure 6.1410" "0: CTS pin input is high level active,1: CTS pin input is low level active" rbitfld.long 0x14 4. "CTSSTS,CTS Pin Status (Read Only)\nThis bit mirror from CTS pin input of voltage logic status.\nNote: This bit echoes when UART Controller peripheral clock is enabled and CTS multi-function port is selected." "0: CTS pin input is low level voltage logic state,1: CTS pin input is high level voltage logic state" newline bitfld.long 0x14 0. "CTSDETF,Detect CTS State Change Flag\nThis bit is set whenever CTS input has change state and it will generate Modem interrupt to CPU when MODEMIEN (UART_INTEN [3]) is set to 1.\nNote: This bit is cleared by writing 1 to it." "0: CTS input has not change state,1: CTS input has change state" line.long 0x18 "UART_FIFOSTS,UART FIFO Status Register" rbitfld.long 0x18 28. "TXEMPTYF,Transmitter Empty Flag (Read Only)\nThis bit is set by hardware when TX FIFO (UART_DAT) is empty and the STOP bit of the last byte has been transmitted.\nNote: This bit is cleared automatically when TX FIFO is not empty or the last byte.." "0: TX FIFO is not empty,1: TX FIFO is empty" bitfld.long 0x18 24. "TXOVIF,TX Overflow Error Interrupt Flag\nIf TX FIFO (UART_DAT) is full an additional write to UART_DAT will cause this bit to logic 1.\nNote: This bit is cleared by writing 1 to it." "0: TX FIFO is not overflow,1: TX FIFO is overflow" newline rbitfld.long 0x18 23. "TXFULL,Transmitter FIFO Full (Read Only)\nThis bit indicates TX FIFO full or not.\nNote: This bit is set when the number of usage in TX FIFO Buffer is equal to 16 otherwise is cleared by hardware." "0: TX FIFO is not full,1: TX FIFO is full" rbitfld.long 0x18 22. "TXEMPTY,Transmitter FIFO Empty (Read Only)\nThis bit indicates TX FIFO empty or not.\nNote: When the last byte of TX FIFO has been transferred to Transmitter Shift Register hardware sets this bit high. It will be cleared when writing data into DAT (TX.." "0: TX FIFO is not empty,1: TX FIFO is empty" newline hexmask.long.byte 0x18 16.--21. 1. "TXPTR,TX FIFO Pointer (Read Only)\nThis field indicates the TX FIFO Buffer Pointer. When CPU writes one byte into UART_DAT TXPTR increases one. When one byte of TX FIFO is transferred to Transmitter Shift Register TXPTR decreases one.\nThe Maximum.." rbitfld.long 0x18 15. "RXFULL,Receiver FIFO Full (Read Only)\nThis bit initiates RX FIFO full or not.\nNote: This bit is set when the number of usage in RX FIFO Buffer is equal to 16 otherwise is cleared by hardware.." "0: RX FIFO is not full,1: RX FIFO is full" newline rbitfld.long 0x18 14. "RXEMPTY,Receiver FIFO Empty (Read Only)\nThis bit initiate RX FIFO empty or not.\nNote: When the last byte of RX FIFO has been read by CPU hardware sets this bit high. It will be cleared when UART receives any new data." "0: RX FIFO is not empty,1: RX FIFO is empty" hexmask.long.byte 0x18 8.--13. 1. "RXPTR,RX FIFO Pointer (Read Only)\nThis field indicates the RX FIFO Buffer Pointer. When UART receives one byte from external device RXPTR increases one. When one byte of RX FIFO is read by CPU RXPTR decreases one.\nThe Maximum value shown in RXPTR is.." newline rbitfld.long 0x18 6. "BIF,Break Interrupt Flag (Read Only)\nThis bit is set to logic 1 whenever the received data input (RX) is held in the 'spacing state' (logic 0) for longer than a full word transmission time (that is the total time of 'start bit' + data bits + parity +.." "0: No Break interrupt is generated,1: Break interrupt is generated" rbitfld.long 0x18 5. "FEF,Framing Error Flag (Read Only)\nNote: This bit is read only but can be cleared by writing '1' to it ." "?,1: Framing error is generated" newline rbitfld.long 0x18 4. "PEF,Parity Error Flag (Read Only)\nThis bit is set to logic 1 whenever the received character does not have a valid 'parity bit'.\n" "0: No parity error is generated,1: Parity error is generated.Note: This bit is read.." bitfld.long 0x18 3. "ADDRDETF,RS-485 Address Byte Detection Flag \nNote1: This field is used for RS-485 function mode.\nNote2: This bit is cleared by writing 1 to it." "?,1: This field is used for RS-485 function mode" newline bitfld.long 0x18 0. "RXOVIF,RX Overflow Error Interrupt Flag\nThis bit is set when RX FIFO overflow.\nIf the number of bytes of received data is greater than RX_FIFO (UART_DAT) size 16 bytes this bit will be set.\nNote: This bit is cleared by writing 1 to it." "0: RX FIFO is not overflow,1: RX FIFO is overflow" rgroup.long 0x1C++0x3 line.long 0x0 "UART_INTSTS,UART Interrupt Status Register" bitfld.long 0x0 13. "BUFERRINT,Buffer Error Interrupt Indicator (Read Only)\nThis bit is set if BUFERRIEN and BUFERRIF are both set to 1.\n" "0: No buffer error interrupt is generated,1: buffer error interrupt is generated" bitfld.long 0x0 12. "RXTOINT,Time-Out Interrupt Indicator (Read Only)\nThis bit is set if RXTOIEN and RXTOIF are both set to 1.\n" "0: No Time-out interrupt is generated,1: Time-out interrupt is generated" newline bitfld.long 0x0 11. "MODEMINT,MODEM Status Interrupt Indicator (Read Only)\nThis bit is set if MODEMIEN and MODENIF are both set to 1.\n" "0: No Modem interrupt is generated,1: Modem interrupt is generated" bitfld.long 0x0 10. "RLSINT,Receive Line Status Interrupt (Read Only)\nThis bit is set if RLSIEN and RLSIF are both set to 1.\n" "0: No RLS interrupt is generated,1: RLS interrupt is generated" newline bitfld.long 0x0 9. "THREINT,Transmit Holding Register Empty Interrupt Indicator (Read Only)\nThis bit is set if THREIEN and THREIF are both set to 1.\n" "0: No THRE interrupt is generated,1: THRE interrupt is generated" bitfld.long 0x0 8. "RDAINT,Receive Data Available Interrupt Indicator (Read Only)\nThis bit is set if RDAIEN and RDAIF are both set to 1.\nThis bit is set if RDAIEN and RDAIF are both set to 1.\n" "0: No RDA interrupt is generated,1: RDA interrupt is generated" newline bitfld.long 0x0 5. "BUFERRIF,Buffer Error Interrupt Flag (Read Only)\nThis bit is set when the TX/RX FIFO overflow flag (TXOVIF or RXOVIF) is set. \nWhen BUFERRIF is set the transfer is not correct. If BUFERRIEN (UART_INTEN [5]) is enabled the buffer error interrupt will.." "0: No buffer error interrupt flag is generated,1: Buffer error interrupt flag is generated" bitfld.long 0x0 4. "RXTOIF,Time-Out Interrupt Flag (Read Only)\nThis bit is set when the RX FIFO is not empty and no activities occurred in the RX FIFO and the time-out counter equal to TOIC. If RXTOIEN (UART_INTEN [4]) is enabled the Tout interrupt will be.." "0: No Time-out interrupt flag is generated,1: Time-out interrupt flag is generated" newline bitfld.long 0x0 3. "MODENIF,MODEM Interrupt Flag (Read Only)\nNote: This bit is read only and reset to 0 when bit CTSDETF is cleared by a write 1 on CTSDETF." "0: No Modem interrupt flag is generated,1: Modem interrupt flag is generated" bitfld.long 0x0 2. "RLSIF,Receive Line Interrupt Flag (Read Only)\nThis bit is set when the RX receive data have parity error framing error or break error (at least one of 3 bits BIF FEF and PEF is set). If RLSIEN (UART_INTEN [2]) is enabled the RLS interrupt will be.." "0: No RLS interrupt flag is generated,1: RLS interrupt flag is generated" newline bitfld.long 0x0 1. "THREIF,Transmit Holding Register Empty Interrupt Flag (Read Only)\nThis bit is set when the last data of TX FIFO is transferred to Transmitter Shift Register. If THREIEN (UART_INTEN [1]) is enabled the THRE interrupt will be generated.\nNote: This bit.." "0: No THRE interrupt flag is generated,1: THRE interrupt flag is generated" bitfld.long 0x0 0. "RDAIF,Receive Data Available Interrupt Flag (Read Only)\nWhen the number of bytes in the RX FIFO equals the RFITL then the RDAIF will be set. If RDAIEN (UART_INTEN [0]) is enabled the RDA interrupt will be generated. \nNote: This bit is read only and it.." "0: No RDA interrupt flag is generated,1: RDA interrupt flag is generated" group.long 0x20++0x13 line.long 0x0 "UART_TOUT,UART Time-out Register" hexmask.long.byte 0x0 8.--15. 1. "DLY,TX Delay Time Value\nThis field is used to program the transfer delay time between the last stop bit and next start bit." hexmask.long.byte 0x0 0.--7. 1. "TOIC,Time-Out Interrupt Comparator\n" line.long 0x4 "UART_BAUD,UART Baud Rate Divisor Register" bitfld.long 0x4 29. "BAUDM1,Divider X Enable\nRefer to the table below for more information.\nNote: When in IrDA mode this bit must be disabled." "0: Divider X Disabled (the equation of M = 16),1: Divider X Enabled (the equation of M = X+1 but.." bitfld.long 0x4 28. "BAUDM0,Divider X Equal 1\nUART Controller Baud Rate Generator\nRefer to section 'UART Controller Baud Rate Generator' for more information." "0: Divider M = X (the equation of M = X+1 but..,1: Divider M = 1 (the equation of M = 1 but BRD.." newline hexmask.long.byte 0x4 24.--27. 1. "EDIVM1,Divider X\n" hexmask.long.word 0x4 0.--15. 1. "BRD,Baud Rate Divider\nThe field indicates the baud rate divider." line.long 0x8 "UART_IRDA,UART IrDA Control Register" bitfld.long 0x8 6. "RXINV,RXINV\n" "0: No inversion,1: Inverse RX input signal" bitfld.long 0x8 5. "TXINV,TXINV\n" "0: No inversion,1: Inverse TX output signal" newline bitfld.long 0x8 1. "TXEN,TXEN\n" "0: IrDA receiver Enabled,1: IrDA transmitter Enabled" line.long 0xC "UART_ALTCTL,UART Alternate Control/Status Register" hexmask.long.byte 0xC 24.--31. 1. "ADDRMV,Address Match Value Register\nThis field contains the RS-485 address match values.\nNote: This field is used for RS-485 auto address detection mode." bitfld.long 0xC 15. "ADDRDEN,RS-485 Address Detection Enable Control\nThis bit is used to enable RS-485 Address Detection mode.\nNote: This field is used for RS-485 any operation mode." "0: RS-485 address detection mode Disabled,1: RS-485 address detection mode Enabled" newline bitfld.long 0xC 10. "RS485AUD,RS-485 Auto Direction Mode (AUD) Control\nNote: It can be active with RS485ADD or RS485NMM operation mode." "0: RS-485 Auto Direction Mode (AUD) Disabled,1: RS-485 Auto Direction Mode (AUD) Enabled" bitfld.long 0xC 9. "RS485AAD,RS-485 Auto Address Detection Operation Mode (AAD)\nNote: It cannot be active with RS485NMM operation mode." "0: RS-485 Auto Address Detection Operation Mode..,1: RS-485 Auto Address Detection Operation Mode.." newline bitfld.long 0xC 8. "RS485NMM,RS-485 Normal Multi-Drop Operation Mode (NMM) Control\nNote: It cannot be active with RS485AAD operation mode." "0: RS-485 Normal Multi-drop Operation Mode (NMM)..,1: RS-485 Normal Multi-drop Operation Mode (NMM).." line.long 0x10 "UART_FUNCSEL,UART Function Select Register" bitfld.long 0x10 0.--1. "FUNCSEL,Function Select \n" "0: UART function mode,1: Reserved,?,?" tree.end tree.end tree "WDT (Watchdog Timer)" base ad:0x40004000 group.long 0x0++0x3 line.long 0x0 "WDT_CTL,Watchdog Timer Control Register" bitfld.long 0x0 31. "ICEDEBUG,ICE Debug Mode Acknowledge Disable Control (Write Protect)\nWDT up counter will keep going no matter CPU is hanging by ICE or not." "0: ICE debug mode acknowledgement effects WDT..,1: ICE debug mode acknowledgement Disabled" bitfld.long 0x0 8.--10. "TOUTSEL,Watchdog Timer Interval Selection\nThese three bits select the time-out interval for the Watchdog Timer.\n" "0: 24 * TWDT,1: 26 * TWDT,?,?,?,?,?,?" newline bitfld.long 0x0 7. "WDTEN,Watchdog Timer Enable Control (Write Protect)\n" "0: WDT Disabled. (This action will reset the..,1: WDT Enabled" bitfld.long 0x0 6. "INTEN,Watchdog Timer Time-Out Interrupt Enable Control (Write Protect)\nIf this bit is enabled the WDT time-out interrupt signal is generated and inform to CPU.\n" "0: WDT time-out interrupt Disabled,1: WDT time-out interrupt Enabled" newline bitfld.long 0x0 5. "WKF,Watchdog Timer Time-Out Wake-Up Flag\nThis bit indicates the interrupt wake-up flag status of WDT.\nNote: This bit is cleared by writing 1 to it." "0: WDT does not cause chip wake-up,1: Chip wake-up from Idle or Power-down mode if WDT.." bitfld.long 0x0 4. "WKEN,Watchdog Timer Time-Out Wake-Up Function Control (Write Protect)\nIf this bit is set to 1 while IF is generated to 1 and INTEN enabled the WDT time-out interrupt signal will generate a wake-up trigger event to chip.\nNote: Chip can be woken-up by.." "0: Wake-up trigger event Disabled if WDT time-out..,1: Wake-up trigger event Enabled if WDT time-out.." newline bitfld.long 0x0 3. "IF,Watchdog Timer Time-Out Interrupt Flag\nThis bit will be set to 1 while WDT up counter value reaches the selected WDT time-out interval.\nNote: This bit is cleared by writing 1 to it." "0: WDT time-out interrupt did not occur,1: WDT time-out interrupt occurred" bitfld.long 0x0 2. "RSTF,Watchdog Timer Time-Out Reset Flag\nThis bit indicates the system has been reset by WDT time-out reset or not.\nNote: This bit is cleared by writing 1 to it." "0: WDT time-out reset did not occur,1: WDT time-out reset occurred" newline bitfld.long 0x0 1. "RSTEN,Watchdog Timer Time-Out Reset Enable Control (Write Protect)\nSetting this bit will enable the WDT time-out reset function if the WDT up counter value has not been cleared after the specific WDT reset delay period (1024 * TWDT) expires.\n" "0: WDT time-out reset function Disabled,1: WDT time-out reset function Enabled" bitfld.long 0x0 0. "RSTCNT,Reset Watchdog Timer Up Counter (Write Protect)\nNote: This bit will be automatically cleared by hardware." "0: No effect,1: Reset the internal 18-bit WDT up counter value" tree.end AUTOINDENT.OFF