; -------------------------------------------------------------------------------- ; @Title: M05/16LAN/2LAN/2ZAN/4LAN/4ZAN/8LAN/8ZAN/16ZAN On-Chip Peripherals ; @Props: Released ; @Author: TAT ; @Changelog: 2011-08-12 TAT ; @Manufacturer: NUVOTON - Nuvoton Technology Corp. ; @Doc: rm.pdf (2010-09-08) ; @Core: Cortex-M0 ; @Copyright: (C) 1989-2016 Lauterbach GmbH, licensed for use with TRACE32(R) only ; -------------------------------------------------------------------------------- ; $Id: perm05xx.per 12762 2021-01-18 10:40:58Z pegold $ config 16. 8. width 0xB 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.open "System Manager" tree "Control Registers" base ad:0x50000000 width 11. rgroup.long 0x00++0x3 line.long 0x00 "PDID,Part device identification number register" group.long 0x04++0xB line.long 0x00 "RSTSRC,System reset source register" eventfld.long 0x00 7. " RSTS_CPU ,CPU software reset" "No reset,Reset" eventfld.long 0x00 5. " RSTS_MCU ,System software reset" "No reset,Reset" eventfld.long 0x00 4. " RSTS_BOD ,Brown-Out-Detector reset" "No reset,Reset" textline " " eventfld.long 0x00 3. " RSTS_LVR ,Low-Voltage-Reset controller reset" "No reset,Reset" eventfld.long 0x00 2. " RSTS_WDT ,Watchdog timer reset" "No reset,Reset" eventfld.long 0x00 1. " RSTS_RESET ,Pin /RESET reset" "No reset,Reset" textline " " eventfld.long 0x00 0. " RSTS_POR ,Power-On Reset reset" "No reset,Reset" line.long 0x04 "IPRSTC1,Peripheral Reset Control Resister 1" sif (cpuis("M05?LAN")||cpuis("M0516LAN")) bitfld.long 0x04 3. " EBI_RST ,EBI Controller Reset" "No reset,Reset" textline " " endif bitfld.long 0x04 1. " CPU_RST ,CPU kernel one shot reset" "No reset,Reset" bitfld.long 0x04 0. " CHIP_RST ,CHIP one shot reset" "No reset,Reset" line.long 0x08 "IPRSTC2,Peripheral Reset Control Resister 2" bitfld.long 0x08 28. " ADC_RST ,ADC Controller Reset" "No reset,Reset" bitfld.long 0x08 21. " PWM47_RST ,PWM47 controller Reset" "No reset,Reset" bitfld.long 0x08 20. " PWM03_RST ,PWM03 controller Reset" "No reset,Reset" textline " " bitfld.long 0x08 17. " UART1_RST ,UART1 controller Reset" "No reset,Reset" bitfld.long 0x08 16. " UART0_RST ,UART0 controller Reset" "No reset,Reset" textline " " sif (cpuis("M05?LAN")||cpuis("M0516LAN")) bitfld.long 0x08 13. " SPI1_RST ,SPI1 controller Reset" "No reset,Reset" textline " " endif bitfld.long 0x08 12. " SPI0_RST ,SPI0 controller Reset" "No reset,Reset" bitfld.long 0x08 8. " I2C0_RST ,I2C0 controller Reset" "No reset,Reset" bitfld.long 0x08 5. " TMR3_RST ,Timer3 controller Reset" "No reset,Reset" textline " " bitfld.long 0x08 4. " TMR2_RST ,Timer2 controller Reset" "No reset,Reset" bitfld.long 0x08 3. " TMR1_RST ,Timer1 controller Reset" "No reset,Reset" bitfld.long 0x08 2. " TMR0_RST ,Timer0 controller Reset" "No reset,Reset" textline " " bitfld.long 0x08 1. " GPIO_RST ,GPIO controller Reset" "No reset,Reset" group.long 0x18++0x3 line.long 0x00 "BODCR,Brown-out detector control register" bitfld.long 0x00 7. " LVR_EN ,Low Voltage Reset Enable" "Disabled,Enabled" bitfld.long 0x00 6. " BOD_OUT ,Brown-Out Detector output status" ">BOD_VL,= CMPD" textline " " bitfld.long 0x08 1. " CMPIE ,Compare Interrupt Enable" "Disabled,Enabled" bitfld.long 0x08 0. " CMPEN ,Compare Enable" "Disabled,Enabled" line.long 0x0C " ADCMPR1,A/D Compare Register 1" hexmask.long.word 0x0C 16.--27. 1. " CMPD ,Comparison Data" bitfld.long 0x0C 8.--11. " CMPMATCNT ,Compare Match Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" textline " " bitfld.long 0x0C 3.--5. " CMPCH ,Compare Channel Selection" "CH0,CH1,CH2,CH3,CH4,CH5,CH6,CH7" textline " " bitfld.long 0x0C 2. " CMPCOND ,Compare Condition" "RSLT < CMPD,RSLT >= CMPD" bitfld.long 0x0C 1. " CMPIE ,Compare Interrupt Enable" "Disabled,Enabled" textline " " bitfld.long 0x0C 0. " CMPEN ,Compare Enable" "Disabled,Enabled" line.long 0x10 " ADSR,A/D Status Register" hexmask.long.byte 0x10 16.--23. 1. " OVERRUN ,Over Run flag" hexmask.long.byte 0x10 8.--15. 1. " VALID ,Data Valid flag" textline " " bitfld.long 0x10 4.--6. " CHANNEL ,Current Conversion Channel" "CH0,CH1,CH2,CH3,CH4,CH5,CH6,CH7" textline " " bitfld.long 0x10 3. " BUSY ,BUSY/IDLE" "Idle,Busy" eventfld.long 0x10 2. " CMPF1 ,Compare Flag" "Not occurred,Occurred" textline " " eventfld.long 0x10 1. " CMPF0 ,Compare Flag" "Not occurred,Occurred" eventfld.long 0x10 0. " ADF ,A/D Conversion End Flag" "Not occurred,Occurred" line.long 0x14 " ADCALR,A/D Calibration Register" bitfld.long 0x14 1. " CALDONE ,Calibration is Done" "Not calibrated,Calibrated" bitfld.long 0x14 0. " CALEN ,Self Calibration Enable" "Disabled,Enabled" sif (!cpuis("M05*")) rgroup.long 0x40++0x3 line.long 0x00 " ADPDMA,ADC PDMA current transfer data" hexmask.long.word 0x00 0.--11. 1. " AD_PDMA ,ADC PDMA current transfer data register" endif width 0xb elif (cpuis("M05?ZAN")||cpuis("M0516ZAN")) width 9. hgroup.long 0x00++0x1F hide.long 0x0 " ADDR0,A/D Data Register 0" in hide.long 0x4 " ADDR1,A/D Data Register 1" in hide.long 0x8 " ADDR2,A/D Data Register 2" in hide.long 0xC " ADDR3,A/D Data Register 3" in hide.long 0x10 " ADDR4,A/D Data Register 4" in group.long 0x20++0x17 line.long 0x00 " ADCR,A/D Control Register" sif (cpuis("NUC1?0???BN")||cpuis("NUC1?0???CN")) bitfld.long 0x00 31. " DMOF ,A/D differential input Mode Output Format" "Unsigned,Complement" textline " " endif bitfld.long 0x00 11. " ADST ,A/D Conversion Start" "Stopped,Started" bitfld.long 0x00 10. " DIFFEN ,Differential Input Mode Enable" "Single-end,Differential" textline " " sif (!cpuis("M05*")) bitfld.long 0x00 9. " PTEN ,PDMA Transfer Enable" "Disabled,Enabled" textline " " endif bitfld.long 0x00 8. " TRGEN ,External Trigger Enable" "Disabled,Enabled" bitfld.long 0x00 6.--7. " TRGCOND ,External Trigger Condition" "Low level,High level,Falling edge,Rising edge" textline " " bitfld.long 0x00 4.--5. " TRGS ,Hardware Trigger Source" "STADC pin,?..." textline " " sif (cpuis("M05*")) bitfld.long 0x00 2.--3. " ADMD ,A/D Converter Operation Mode" "Single conversion,Burst conversion,Single-cycle scan,Continuous scan" else bitfld.long 0x00 2.--3. " ADMD ,A/D Converter Operation Mode" "Single conversion,Reserved,Single-cycle scan,Continuous scan" endif textline " " bitfld.long 0x00 1. " ADIE ,A/D Interrupt Enable" "Disabled,Enabled" bitfld.long 0x00 0. " ADEN ,A/D Converter Enable" "Disabled,Enabled" line.long 0x04 " ADCHER,A/D Channel Enable Register" bitfld.long 0x04 4. " CHEN4 ,Analog Input Channel 4 Enable" "Disabled,Enabled" bitfld.long 0x04 3. " CHEN3 ,Analog Input Channel 3 Enable" "Disabled,Enabled" textline " " bitfld.long 0x04 2. " CHEN2 ,Analog Input Channel 2 Enable" "Disabled,Enabled" bitfld.long 0x04 1. " CHEN1 ,Analog Input Channel 1 Enable" "Disabled,Enabled" textline " " bitfld.long 0x04 0. " CHEN0 ,Analog Input Channel 0 Enable" "Disabled,Enabled" line.long 0x08 " ADCMPR0,A/D Compare Register 0" hexmask.long.word 0x08 16.--27. 1. " CMPD ,Comparison Data" bitfld.long 0x08 8.--11. " CMPMATCNT ,Compare Match Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" textline " " bitfld.long 0x08 3.--5. " CMPCH ,Compare Channel Selection" "CH0,CH1,CH2,CH3,CH4,?..." textline " " bitfld.long 0x08 2. " CMPCOND ,Compare Condition" "RSLT < CMPD,RSLT >= CMPD" textline " " bitfld.long 0x08 1. " CMPIE ,Compare Interrupt Enable" "Disabled,Enabled" bitfld.long 0x08 0. " CMPEN ,Compare Enable" "Disabled,Enabled" line.long 0x0C " ADCMPR1,A/D Compare Register 1" hexmask.long.word 0x0C 16.--27. 1. " CMPD ,Comparison Data" bitfld.long 0x0C 8.--11. " CMPMATCNT ,Compare Match Count" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" textline " " bitfld.long 0x0C 3.--5. " CMPCH ,Compare Channel Selection" "CH0,CH1,CH2,CH3,CH4,?..." textline " " bitfld.long 0x0C 2. " CMPCOND ,Compare Condition" "RSLT < CMPD,RSLT >= CMPD" bitfld.long 0x0C 1. " CMPIE ,Compare Interrupt Enable" "Disabled,Enabled" textline " " bitfld.long 0x0C 0. " CMPEN ,Compare Enable" "Disabled,Enabled" line.long 0x10 " ADSR,A/D Status Register" hexmask.long.byte 0x10 16.--23. 1. " OVERRUN ,Over Run flag" hexmask.long.byte 0x10 8.--15. 1. " VALID ,Data Valid flag" textline " " bitfld.long 0x10 4.--6. " CHANNEL ,Current Conversion Channel" "CH0,CH1,CH2,CH3,CH4,?..." textline " " bitfld.long 0x10 3. " BUSY ,BUSY/IDLE" "Idle,Busy" eventfld.long 0x10 2. " CMPF1 ,Compare Flag" "Not occurred,Occurred" textline " " eventfld.long 0x10 1. " CMPF0 ,Compare Flag" "Not occurred,Occurred" eventfld.long 0x10 0. " ADF ,A/D Conversion End Flag" "Not occurred,Occurred" line.long 0x14 " ADCALR,A/D Calibration Register" bitfld.long 0x14 1. " CALDONE ,Calibration is Done" "Not calibrated,Calibrated" bitfld.long 0x14 0. " CALEN ,Self Calibration Enable" "Disabled,Enabled" sif (!cpuis("M05*")) rgroup.long 0x40++0x3 line.long 0x00 " ADPDMA,ADC PDMA current transfer data" hexmask.long.word 0x00 0.--11. 1. " AD_PDMA ,ADC PDMA current transfer data register" endif width 0xb endif tree.end tree "EBI (External Bus Interface)" sif (cpuis("M05?LAN")||cpuis("M0516LAN")) base ad:0x50010000 width 8. group.long 0x00++0x7 line.long 0x00 "EBICON,External Bus Interface General Control Register" bitfld.long 0x00 16.--18. " EXTTALE ,Expand Time of ALE" "MCLK,2*MCLK,3*MCLK,4*MCLK,5*MCLK,6*MCLK,7*MCLK,8*MCLK" bitfld.long 0x00 8.--10. " MCLKDIV ,External Output Clock Divider" "HCLK,HCLK/2,HCLK/4,HCLK/8,HCLK/16,HCLK/32,HCLK,HCLK" textline " " bitfld.long 0x00 1. " EXTBW16 ,EBI data width 16-bit" "8-bit,16-bit" bitfld.long 0x00 0. " EXTEN ,EBI Enable" "Disabled,Enabled" line.long 0x04 "EXTIME,External Bus Interface Timing Control Register" bitfld.long 0x04 24.--27. " EXTIR2R ,Idle State Cycle Between Read-Read" "Disabled,MCLK,2*MCLK,3*MCLK,4*MCLK,5*MCLK,6*MCLK,7*MCLK,8*MCLK,9*MCLK,10*MCLK,11*MCLK,12*MCLK,13*MCLK,14*MCLK,15*MCLK" bitfld.long 0x04 12.--15. " EXTIW2X ,Idle State Cycle After Write" "Disabled,MCLK,2*MCLK,3*MCLK,4*MCLK,5*MCLK,6*MCLK,7*MCLK,8*MCLK,9*MCLK,10*MCLK,11*MCLK,12*MCLK,13*MCLK,14*MCLK,15*MCLK" textline " " bitfld.long 0x04 8.--10. " EXTTAHD ,EBI Data Access Hold Time" "MCLK,2*MCLK,3*MCLK,4*MCLK,5*MCLK,6*MCLK,7*MCLK,8*MCLK" bitfld.long 0x04 3.--7. " EXTTACC ,EBI Data Access Time" "MCLK,2*MCLK,3*MCLK,4*MCLK,5*MCLK,6*MCLK,7*MCLK,8*MCLK,9*MCLK,10*MCLK,11*MCLK,12*MCLK,13*MCLK,14*MCLK,15*MCLK,16*MCLK,17*MCLK,18*MCLK,19*MCLK,20*MCLK,21*MCLK,22*MCLK,23*MCLK,24*MCLK,25*MCLK,26*MCLK,27*MCLK,28*MCLK,29*MCLK,30*MCLK,31*MCLK,32*MCLK" width 0xB endif tree.end tree.open "FMC (Flash Memory Controller)" tree "User Configuration" base ad:0x00300000 width 9. group.long 0x00++0x3 line.long 0x00 "CONFIG0,User Configuration Register 0" bitfld.long 0x00 28. " CKF ,XT1 Clock Filter Enable" "Disabled,Enabled" sif (cpuis("M05*")) bitfld.long 0x00 24.--26. " CFOSC ,CPU Clock Source Selection After Reset" "External 12 MHz crystal,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Internal RC 22.1184 MHz oscillator" else bitfld.long 0x00 24.--26. " CFOSC ,CPU Clock Source Selection After Reset" "External 4~24 MHz crystal,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Internal RC 22.1184 MHz oscillator" endif textline " " bitfld.long 0x00 23. " CBODEN ,Brown-Out Detector Enable" "Enabled,Disabled" bitfld.long 0x00 21.--22. " CBOV1-0 ,Brown-Out Voltage Selection" "2.2 V,2.7 V,3.8 V,4.5 V" textline " " bitfld.long 0x00 20. " CBORST ,Brown-Out Reset Enable" "Enabled,Disabled" bitfld.long 0x00 7. " CBS ,Chip Boot Selection" "LDROM,APROM" textline " " bitfld.long 0x00 1. " LOCK ,Security Lock" "Locked,Not locked" sif (cpuis("NUC1???E*")) bitfld.long 0x00 0. " DFEN ,Data Flash Enable" "Enabled,Disabled" group.long 0x04++0x3 line.long 0x00 "CONFIG1,User Configuration Register 1" hexmask.long.tbyte 0x00 0.--19. 1. " DFBADR ,Data Flash Base Address" endif tree.end tree "Flash Control Registers" base ad:0x5000C000 width 8. group.long 0x00++0x13 line.long 0x00 "ISPCON,ISP Control Register" bitfld.long 0x00 12.--14. " ET ,Flash Erase Time" "20ms,25ms,30ms,35ms,3ms,5ms,10ms,15ms" bitfld.long 0x00 8.--10. " PT ,Flash Program Time" "40us,45us,50us,55us,20us,25us,30us,35us" textline " " sif (cpuis("M05*")) bitfld.long 0x00 7. " SWRST ,Software Reset" "No reset,Reset" textline " " endif eventfld.long 0x00 6. " ISPFF ,ISP Fail Flag" "Not occurred,Occurred" bitfld.long 0x00 5. " LDUEN ,LDROM Update Enable" "Disabled,Enabled" textline " " bitfld.long 0x00 4. " CFGUEN ,Config Update Enable" "Disabled,Enabled" sif (cpuis("NUC130*")||cpuis("NUC140*")) bitfld.long 0x00 3. " APUEN ,APROM Update Enable" "Disabled,Enabled" endif textline " " bitfld.long 0x00 1. " BS ,Boot Select" "APROM,LDROM" bitfld.long 0x00 0. " ISPEN ,ISP Enable" "Disabled,Enabled" line.long 0x04 "ISPADR,ISP Address Register" line.long 0x08 "ISPDAT,ISP Data Register" line.long 0x0C "ISPCMD,ISP Command Register" sif (cpuis("M05*")) bitfld.long 0x0C 0.--5. " FOEN ,ISP Command" "Read,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Program,Page Erase,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Standby,?..." else bitfld.long 0x0C 0.--5. " FOEN ,ISP Command" "Read,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Reserved,Program,Page Erase,?..." endif line.long 0x10 "ISPTRG,ISP Trigger Register" bitfld.long 0x10 0. " ISPGO ,ISP start trigger" "Stopped,Started" rgroup.long 0x14++0x3 line.long 0x00 "DFBADR,Data Flash Start Address" group.long 0x18++0x3 line.long 0x00 "FATCON,Flash Access Window Control Register" sif (cpuis("NUC130*")||cpuis("NUC140*")) bitfld.long 0x00 4. " LFOM ,Low Frequency Optimization Mode" "Disabled,Enabled" elif (cpuis("M05*")) bitfld.long 0x00 4. " L_SPEED ,Flash Low Speed Mode Enable" "Disabled,Enabled" endif textline " " bitfld.long 0x00 1.--3. " FATS ,Flash Access Time Window Select" "40ns,50ns,60ns,70ns,80ns,90ns,100ns,?..." bitfld.long 0x00 0. " FPSEN ,Flash Power Save Enable" "Disabled,Enabled" tree.end width 0xB tree.end textline ""