; --------------------------------------------------------------------------------
; @Title: MPC866X On-Chip Peripherals
; @Props:
; @Author: -
; @Changelog: 
; @Manufacturer: 
; @Doc: 
; @Core: 
; @Chip: MPC852T, MPC859DSL, MPC859T, MPC866P, MPC866T
; @Copyright: (C) 1989-2020 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: per866.per 7375 2016-10-21 15:36:55Z rweiss $
config 16. 8.
width 0x7 
munging.le
base a:(data.long(spr:638.)&0x0ffff0000)
tree "Clocks and Power Control"
group 0x280--0x28b "System Clock"
line.long 0x00 "SCCR,Sysctem Clock and Reset Control Register"
bitfld.long 0x0 29.--30. "   COM ,Clock Output Mode" "1/1,1/2,res,dis"
bitfld.long 0x0 25. "   TBS ,Time Base Source" "OSC,SCLK"
bitfld.long 0x0 24. "  PTDIV ,Periodic interrupt timer clock divide" "4,512"
bitfld.long 0x0 23. "  PTSL ,Periodic interrupt timer select" "OSC,EXT"
bitfld.long 0x0 22. "  CRQEN ,CPM Request Enable" "LOW,HIG"
bitfld.long 0x0 17.--18. "    EBDF ,CLKOUT Frequency" "1/1,1/2,Res,Res"
textline "            "
bitfld.long 0x0 13.--14. "    DFSYNC ,Division Factor of SyncCLK" "1,4,16,64"
bitfld.long 0x0 11.--12. "  DFBRG ,Division Factor of BRGCLK" "1,4,16,64"
bitfld.long 0x0 8.--10. "     DFNL ,Division Factor of Low Frequency" "2,4,8,16,32,64,res,256"
bitfld.long 0x0 5.--7. "  DFNH ,Division Factor of High Frequency" "1,2,4,8,16,32,64,res"
bitfld.long 0x0 2.--4. "  DFUTP ,Division Factor for UTPCLK" "1,2,4,8,res,res,res,res"
bitfld.long 0x0 0.--1. "  DFAUTP ,Division Factor for UTPCLK" "1,3,5,7"
line.long 0x04 "PLPRCR,PLL Low Power and Reset Control Register"
hexmask.long 0x4 27.--31. 1. "  MFN ,Numerator of the fractional part of the multiplication factor in the formula for the output frequency of the DPLL and Interface."
hexmask.long 0x4 22.--26. 1. "  MFD ,Denominator minus 1 of the fractional part of the multiplication factor in the formula for the output frequency of the DPLL and Interface."
bitfld.long 0x4 20.--21.          "  S ,Selection Bits for the Divider after the Double Clock (fdck)" "1,2,4,res"
bitfld.long 0x4 16.--19.          "  MFI ,Integer part of the multiplication factor in the formula for the output frequency of the DPLL and Interface." "5,5,5,5,5,5,6,7,8,9,10,11,12,13,14,15"
eventfld.long 0x4 15.             "  SPLSS ,SPLL Lock Status Sticky Bit" "locked,lol"
eventfld.long 0x4 14.             "  TEXPS ,Timer expired status." "negated,asserted"
textline "              "
bitfld.long 0x4 10.               "   CSRC ,Clock Source Bit" "H,L"
bitfld.long 0x4 7.                "      CSR ,Checkstop Reset Enable" "dis,ena"
bitfld.long 0x4 6.                "      LOLRE ,Loss of Lock Reset Enable" "dis,ena"
bitfld.long 0x4 5.                " FIOP ,Force I/O Pull Down" "dis,ena"
bitfld.long 0x4 1.--4.            "   PDF ,Predivision factor minus 1 in the formula for the output frequency of the DPLL and Interface." "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x4 0.                "      DBRMO ,DPLL BRM Order bit" "first,second"
line.long 0x08 "RSR,Reset Status Register"
eventfld.long 0x8 31. " EHRS ,External Hard Reset Status" "no,yes"
eventfld.long 0x8 30. "   ESRS ,External Soft Reset Status" "no,yes"
eventfld.long 0x8 29. "  LLRS ,Loss of Lock Reset Status" "no,yes"
eventfld.long 0x8 28. "  SWRS ,Software Watchdog Reset Status" "no,yes"
eventfld.long 0x8 27. "  CSRS ,Checkstop Reset Status" "no,yes"
textline "              "
eventfld.long 0x8 26. "  DBHRS ,Debug Port Hard Reset Status" "no,yes"
eventfld.long 0x8 25. "  DBSRS ,Debug Port Soft Reset Status" "no,yes"
eventfld.long 0x8 24. "  JTRS ,JTAG Reset Status" "no,yes"
wgroup 0x380--0x38b "Clocks and Reset Keys"
hide.long 0x00 "SCCRK,System Clock Control Key"
hide.long 0x04 "PLPCK,PLL, Low Power and Reset Control Register Key"
hide.long 0x08 "RSRK,Rset Status Register Key"
tree.end

tree "System Interface Unit"
group spr:638.--638. "System Configuration and Protection"
line.long 0x00 "IMMR,Internal Memory Map Register"
hexmask.long 0x0 16.--31. 0x10000 "ADDR ,Base Address"
hexmask.long 0x0 8.--15. 1. "  PARTNUM ,Part Number"
hexmask.long 0x0 0.--0x7 1. "  MASKNUM ,Mask Number"
group 0x00--0x23
line.long 0x00 "SIUMCR,SIU Module Configuration"
bitfld.long 0x0 31. "EARB ,External Arbitration" "int,ext"
bitfld.long 0x0 28.--30. "  EARP ,Eyternal Arbitration Request Priority" "0,1,2,3,4,5,6,7"
bitfld.long 0x0  23. "  DSHW ,Data Showcycles" "dis,ena"
bitfld.long 0x0 21.--22. "  DBGC ,Debug Pin Configuration" "00,01,10,11"
bitfld.long 0x0 19.--20. "  DBPC ,Debug Port Configuration" "00,01,10,11"
bitfld.long 0x0  17. "  FRC ,Freeze Pin Configuration" "frz,irq"
bitfld.long 0x0  16. "  DLK ,Debug Register Lock" "free,lock"
textline "              "
bitfld.long 0x0  15. "  PNCS ,Parity Enable " "no,yes"
bitfld.long 0x0  14. "  OPAR ,Odd Parity" "no,yes"
bitfld.long 0x0  13. "  DPC ,Data Parity Pins Configuration" "IRQ,DP"
bitfld.long 0x0  12. "  MPRE ,Multi Processors Reservation Enable" "dis,ena"
bitfld.long 0x0 10.--11. "  MLRC ,Multi Level Reservation Control" "IRQ4,Tri,KR,SPKR"
bitfld.long 0x0  9. "  AEME ,Asynchronous External Master Enable" "no,yes"
bitfld.long 0x0  8. " SEME ,Synchronous External Master Enable" "no,yes"
textline "              "
bitfld.long 0x0  7. "  BSC ,Byte Select Configuration" "0,1"
bitfld.long 0x0  6. " GB5E ,GPL_B 5 Enable" "dis,ena"
bitfld.long 0x0  5. "  B2DD ,Bank 2 Double Drive" "nrm,dbl"
bitfld.long 0x0  4. "  B3DD ,Bank 3 Double Drive" "nrm,dbl"
line.long 0x04 "SYPCR,System Protection Control"
hexmask.word 0x4 0.--15. 1. "SWTC ,Software Watchdog Timer Count"
hexmask.byte 0x6 0.--7. 1. "  BMT ,Bus Monitor Timing"
bitfld.long 0x4 7. "  BME ,Bus Monitor Enable" "dis,ena"
bitfld.long 0x4 3. "  SWF ,Software Watchdog Freeze" "dis,ena"
bitfld.long 0x4 2. "  SWE ,Software Watchdog Enable" "dis,ena"
bitfld.long 0x4 1. "  SWRI ,Software Watchdog Reset/Interrupt Select" "int,res"
bitfld.long 0x4 0. "  SWP ,Software Watchdog Prescale" "no,yes"
line.word 0x08 "SWT,Software Watchdog Timer"
line.word 0x0e "SWSR,Software Service Register"
line.long 0x10 "SIPEND,Interrupt Pending Register"
bitfld.long 0x10 31. "IRQ0 ,Interrupt Request 0" "no,yes"
bitfld.long 0x10 30. " LVL0 ,Level Request 0" "no,yes"
bitfld.long 0x10 29. " IRQ1 ,Interrupt Request 1" "no,yes"
bitfld.long 0x10 28. " LVL1 ,Level Request 1" "no,yes"
bitfld.long 0x10 27. " IRQ2 ,Interrupt Request 2" "no,yes"
bitfld.long 0x10 26. " LVL2 ,Level Request 2" "no,yes"
bitfld.long 0x10 25. " IRQ3 ,Interrupt Request 3" "no,yes"
bitfld.long 0x10 24. " LVL3 ,Level Request 3" "no,yes"
textline "               "
bitfld.long 0x10 23. " IRQ4 ,Interrupt Request 4" "no,yes"
bitfld.long 0x10 22. " LVL4 ,Level Request 4" "no,yes"
bitfld.long 0x10 21. " IRQ5 ,Interrupt Request 5" "no,yes"
bitfld.long 0x10 20. " LVL5 ,Level Request 5" "no,yes"
bitfld.long 0x10 19. " IRQ6 ,Interrupt Request 6" "no,yes"
bitfld.long 0x10 18. " LVL6 ,Level Request 6" "no,yes"
bitfld.long 0x10 17. " IRQ7 ,Interrupt Request 7" "no,yes"
bitfld.long 0x10 16. " LVL7 ,Level Request 7" "no,yes"
line.long 0x14 "SIMASK,Interrupt Mask Register"
bitfld.long 0x14 31. "IRM0 ,Interrupt Mask 0" "dis,ena"
bitfld.long 0x14 30. " LVM0 ,Level Mask 0" "dis,ena"
bitfld.long 0x14 29. " IRM1 ,Interrupt Mask 1" "dis,ena"
bitfld.long 0x14 28. " LVM1 ,Level Mask 1" "dis,ena"
bitfld.long 0x14 27. " IRM2 ,Interrupt Mask 2" "dis,ena"
bitfld.long 0x14 26. " LVM2 ,Level Mask 2" "dis,ena"
bitfld.long 0x14 25. " IRM3 ,Interrupt Mask 3" "dis,ena"
bitfld.long 0x14 24. " LVM3 ,Level Mask 3" "dis,ena"
textline "               "
bitfld.long 0x14 23. " IRM4 ,Interrupt Mask 4" "dis,ena"
bitfld.long 0x14 22. " LVM4 ,Level Mask 4" "dis,ena"
bitfld.long 0x14 21. " IRM5 ,Interrupt Mask 5" "dis,ena"
bitfld.long 0x14 20. " LVM5 ,Level Mask 5" "dis,ena"
bitfld.long 0x14 19. " IRM6 ,Interrupt Mask 6" "dis,ena"
bitfld.long 0x14 18. " LVM6 ,Level Mask 6" "dis,ena"
bitfld.long 0x14 17. " IRM7 ,Interrupt Mask 7" "dis,ena"
bitfld.long 0x14 16. " LVM7 ,Level Mask 7" "dis,ena"
line.long 0x18 "SIEL,Interrupt Edge Level Mask Register"
bitfld.long 0x18 31. "ED0 ,Interrupt Edge 0" "lvl,edge"
bitfld.long 0x18 30. " WM0 ,Wake up 0" "dis,ena"
bitfld.long 0x18 29. "  ED1 ,Interrupt Edge 1" "lvl,edge"
bitfld.long 0x18 28. " WM1 ,Wake up 1" "dis,ena"
bitfld.long 0x18 27. "  ED2 ,Interrupt Edge 2" "lvl,edge"
bitfld.long 0x18 26. " WM2 ,Wake up 2" "dis,ena"
bitfld.long 0x18 25. "  ED3 ,Interrupt Edge 3" "lvl,edge"
bitfld.long 0x18 24. " WM3 ,Wake up 3" "dis,ena"
textline "               " 
bitfld.long 0x18 23. " ED4 ,Interrupt Edge 4" "lvl,edge"
bitfld.long 0x18 22. " WM4 ,Wake up 4" "dis,ena"
bitfld.long 0x18 21. "  ED5 ,Interrupt Edge 5" "lvl,edge"
bitfld.long 0x18 20. " WM5 ,Wake up 5" "dis,ena"
bitfld.long 0x18 19. "  ED6 ,Interrupt Edge 6" "lvl,edge"
bitfld.long 0x18 18. " WM6 ,Wake up 6" "dis,ena"
bitfld.long 0x18 17. "  ED7 ,Interrupt Edge 7" "lvl,edge"
bitfld.long 0x18 16. " WM7 ,Wake up 7" "dis,ena"
line.long 0x1c "SIVEC,Interrupt Vector"
line.long 0x20 "TESR,Transfer Error Status"
eventfld.long 0x20 13. "IEXT ,Instruction External Transfer Error Acknowledge" "ok,err"
eventfld.long 0x20 12. " IBM ,Instruction Transfer Monitor Time Out" "ok,err"
eventfld.long 0x20 11. " IPB0 ,Instruction Parity Error on Byte 0" "ok,err"
eventfld.long 0x20 10. " IPB1 ,Instruction Parity Error on Byte 1" "ok,err"
eventfld.long 0x20 9. " IPB2 ,Instruction Parity Error on Byte 2" "ok,err"
eventfld.long 0x20 8. " IPB3 ,Instruction Parity Error on Byte 3" "ok,err"
textline "               "
eventfld.long 0x20 5. " DEXT ,Data External Transfer Error Acknoledge" "ok,err"
eventfld.long 0x20 4. " DBM ,Data Transfer Monitor Time Out" "ok,err"
eventfld.long 0x20 3. " DPB0 ,Data Parity Error on Byte 0" "ok,err"
eventfld.long 0x20 2. " DPB1 ,Data Parity Error on Byte 1" "ok,err"
eventfld.long 0x20 1. " DPB2 ,Data Parity Error on Byte 2" "ok,err"
eventfld.long 0x20 0. " DPB3 ,Data Parity Error on Byte 3" "ok,err"
group 0x200--0x20b "Timebase"
line.word 0x00 "TBSCR,Time Base Status and Control Register"
hexmask.byte 0x0 0.--7. 1. "    TBIR ,Time Base Interrupt Request"
eventfld.word 0x0 7. "  REFA ,Reference Interrupt Status A" "no,yes"
eventfld.word 0x0 6. "  REFB ,Reference Interrupt Status B" "no,yes"
bitfld.word 0x0 3. "  RFAE ,Second Interrupt Enable A" "no,yes"
bitfld.word 0x0 2. "  RFBE ,Second Interrupt Enable B" "no,yes"
bitfld.word 0x0 1. "  TBF ,Time Base Freeze" "run,stop"
bitfld.word 0x0 0. "  TBE ,Time Base Enable" "no,yes"
line.long 0x04 "TBR0,Time Base Reference 0"
line.long 0x08 "TBR1,Time Base Reference 1"
wsgroup (spr:284.)++0. (spr:268.)
line.long 0x00 "TBL,TBL"
wsgroup (spr:285.)++0. (spr:269.)
line.long 0x00 "TBU,TBU"
group 0x220--0x22f "Real-Time Clock"
line.word 0x00 "RTCSCR,Real Time Clock Status and Control Register"
hexmask.byte 0x0 0.--7. 1. "    RTIR ,Real Time Clock Interrupt Request"
bitfld.word 0x0 7. "  SEC ,Once per Second Interrupt" "no,yes"
bitfld.word 0x0 6. "  ALR ,Alarm Interrupt" "no,yes"
bitfld.word 0x0 4. "  38K ,Real Time Clock Select" "32K,38K"
bitfld.word 0x0 3. "  SIE ,Second Interrupt Enable" "no,yes"
bitfld.word 0x0 2. "  ALE ,Alarm Interrupt Enable" "no,yes"
bitfld.word 0x0 1. "  RTF ,Real Time Clock Freeze" "run,stop"
bitfld.word 0x0 0. "  RTE ,Real Time Clock Enable" "no,yes"
line.long 0x04 "RTC,Real Time Clock"
line.long 0x08 "RTS,Real Time Clock Seconds"
line.long 0x0c "RTAL,Real Time Clock Alarm"
group 0x240--0x24b "Periodic Interrupt Timer"
line.long 0x00 "PISCR ,Periodic Interrupt Timer Status and Control Register"
hexmask.byte 0x0 0.--7. 1. "PIRQ ,Periodic Interrupt Request Level"
eventfld.word 0x0 7. "  PS ,Periodic Interrupt Status" "0,1"
bitfld.word 0x0 2. "  PIE ,Periodic Interrupt Enable" "dis,ena"
bitfld.word 0x0 1. "  PITF ,Periodic Interrupt Timer Freeze" "run,stp"
bitfld.word 0x0 0. "  PTE ,Periodic Timer Enable" "dis,ena"
line.long 0x04 "PITC,Periodic Interrupt Timer Count"
line.long 0x08 "PITR,Periodic Interrupt Timer"
wgroup 0x300--0x30f "System Integration Timers Keys"
hide.long 0x00 "TBSCRK,Time Base Status and Control Key"
hide.long 0x04 "TBR0K,Time Base Reference 0 Key"
hide.long 0x08 "TBR1K,Time Base Reference 1 Key"
hide.long 0x0c "TBK,Time Base and Decrementer Key"
wgroup 0x320--0x32f "System Integration Timers Keys"
hide.long 0x00 "RTCSCK,Real Time Clock Status & Control Key"
hide.long 0x04 "RTCK,Real Time Clock Key"
hide.long 0x08 "RTSECK,Real Time Alarm Seconds Key"
hide.long 0x0c "RTCLK,Real Time Alarm Key"
wgroup 0x340--0x343 "System Integration Timers Keys"
hide.long 0x00 "PISCRK,PIT Status and Control Key"
hide.long 0x04 "PITCK,PIT Count Key"
tree.end
tree "Memory Controller"
group 0x100--0x107 "CS0"
line.long 0x00 "BR,Base Register"
hexmask.long 0x0 15.--31. 0x8000 "BA ,Base Address"
bitfld.long 0x0 12.--14. " AT  ,Address Type" "000,001,010,011,100,101,110,111"
bitfld.long 0x0 10.--11. "  PS ,Port Size" "32,8,16,res"
bitfld.long 0x0 9. "  PARE ,Parity Enable" "dis,ena"
bitfld.long 0x0 8. "  WP ,Write Protect" "r/w,rd "
bitfld.long 0x0 6.--7. "  MS ,Machine Select" "GPCM,Res,UPMA,UPMB"
bitfld.long 0x0 0. "  V ,Valid Bit" "0,ok"
line.long 0x04 "OR,Option Register"
hexmask.long 0x4 15.--31. 0x8000 "AM ,Address Mask"
bitfld.long 0x4 12.--14. " ATM ,Address Type Mask" "000,001,010,011,100,101,110,111"
bitfld.long 0x4 11. " CSNT ,Chip Select Negation Time/Start Address Multiplex" "0,1"
bitfld.long  0x4 9.--10. " ACS ,Address to Chip Select Setup" "00,01,10,11"
bitfld.long 0x4 8. " BI ,Burst Inhibit" "no,yes"
bitfld.long 0x4 4.--7. " SCY ,Cycle Length in Clocks" "2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"
bitfld.long 0x4 3. " SETA ,External Transfer Acknowledge" "int,ext"
bitfld.long 0x4 2. " TRLX ,Timing relaxed" "no,yes"
bitfld.long 0x4 1. " EHTR ,Extended Hold Time on Read" "no,yes"
group 0x108--0x10f "CS1"
copy
group 0x110--0x117 "CS2"
copy
group 0x118--0x11f "CS3"
copy
group 0x120--0x127 "CS4"
copy
group 0x128--0x12f "CS5"
copy
group 0x130--0x137 "CS6"
copy
group 0x138--0x13f "CS7"
copy
group 0x170--0x17f "Memory Controller"
line.long 0x00 "MAMR,Machine A Mode"
hexmask.byte 0x0 0.--7. 1. "PT ,Periodic Timer"
bitfld.long 0x0 23. "  PTE ,Periodic Timer Enable" "dis,ena"
bitfld.long 0x0 20.--22. "  AM ,Adress Multiplex Size" "000,001,010,011,100,101,110,111"
bitfld.long 0x0 17.--18. "  DS ,Disable Timer Period" "1cyc,2cyc,3cyc,4cyc"
bitfld.long 0x0 13.--15. "  G0CL ,General Line 0 Control" "A12,A11,A10,A9,A8,A7,A6,A5"
bitfld.long 0x0 12. "  A4DIS ,GPL_A4 Line Disable" "ena,dis"
bitfld.long 0x0 8.--11. "  RLF ,Read Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline "              "
bitfld.long 0x0 4.--7. "  WRLF ,Write Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x0 0.--3. "  TLF ,Timer Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
line.long 0x04 "MBMR,Machine B Mode"
hexmask.byte 0x4 0.--7. 1. "PT ,Periodic Timer"
bitfld.long 0x4 23. "  PTE ,Periodic Timer Enable" "dis,ena"
bitfld.long 0x4 20.--22. "  AM ,Adress Multiplex Size" "000,001,010,011,100,101,110,111"
bitfld.long 0x4 17.--18. "  DS ,Disable Timer Period" "1cyc,2cyc,3cyc,4cyc"
bitfld.long 0x4 13.--15. "  G0CL ,General Line 0 Control" "A12,A11,A10,A9,A8,A7,A6,A5"
bitfld.long 0x4 12. "  B4DIS ,GPL_B4 Line Disable" "ena,dis"
bitfld.long 0x4 8.--11. "  RLF ,Read Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
textline "              "
bitfld.long 0x4 4.--7. "  WRLF ,Write Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x4 0.--3. "  TLF ,Timer Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
line.word 0x08 "MSTAT,Memory Status"
eventfld.word 0x8 15. "    PER0 ,Parity Error Bank 0" "ok,err"
eventfld.word 0x8 14. "  PER1 ,Parity Error Bank 1" "ok,err"
eventfld.word 0x8 13. "  PER2 ,Parity Error Bank 2" "ok,err"
eventfld.word 0x8 12. "  PER3 ,Parity Error Bank 3" "ok,err"
eventfld.word 0x8 11. "  PER4 ,Parity Error Bank 4" "ok,err"
textline "              "
eventfld.word 0x8 10. "  PER5 ,Parity Error Bank 5" "ok,err"
eventfld.word 0x8 9. "  PER6 ,Parity Error Bank 6" "ok,err"
eventfld.word 0x8 8. "  PER7 ,Parity Error Bank 7" "ok,err"
eventfld.word 0x8 7. "  WPER ,Write Protection Error" "ok,err"
line.word 0x0a "MPTPR,Memory Periodic Timer Prescaler"
line.long 0x0c "MDR,Memory Data"
group 0x164--0x16b
line.long 0x00 "MAR,Memory Address"
line.long 0x04 "MCR,Memory Command Register"
bitfld.long 0x4 30.--31. "OP ,Command Opcode" "wrt,rd,run,res"
bitfld.long 0x4 23. "  UM ,User Machine" "UPMA,UPMB"
bitfld.long 0x4 13.--15. "  MB ,Memory Bank" "CS0,CS1,CS2,CS3,CS4,CS5,CS6,CS7"
bitfld.long 0x4 8.--11. "  MCLK ,Memory Command Loop Field" "16,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x4 0.--5. "  MAD ,Machine Address" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"
tree.end

tree.open "Communication Processor"
tree "CP"
group 0x9c0--0x9c7
line.word 0x00 "CPCR,CPM Command Register"
bitfld.word 0x0 15. "  RST ,Software Reset Command" "no,yes"
bitfld.word 0x0 8.--11. "  OPCOD ,OPCODE" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x0 4.--7. "  CHNUM ,Channel Number" "SCC1,I2C/IDMA1,0010,0011,SCC2,SPI/IDMA2/TIMERS,0110,0111,SCC3,SMC1/DSP1,1010,1011,SCC4,SMC2/DSP2,1110,1111"
bitfld.word 0x0 0. "  FLG ,Command Semaphore Flag" "0,1"
line.word 0x04 "RCCR,RISC Configuration Register"
bitfld.word 0x4 15. "  TIME ,Timer Enable" "dis,ena"
hexmask.byte 0x4 0.--5. 1. "  TIMEP ,Timer Period"
bitfld.word 0x4 7. "  DR1M ,DMA Request 1 Mode" "edge,lvl"
bitfld.word 0x4 6. " DR0M ,DMA Request 0 Mode" "edge,lvl"
bitfld.word 0x4 4.--5. " DRQP ,DMA Request Priority" "more,less,low,res"
bitfld.word 0x4 3. "  EIE ,External Interrupt Enable" "dis,ena"
bitfld.word 0x4 2. "  SCD ,Scheduler Configuration" "nrm,alt"
textline "            "
bitfld.word 0x4 0.--1. "  ERAM ,Enable Ram Microcode" "dis,512,1024,2048"
line.byte 0x07 "RMDS,RISC Development Support Status Register"
group 0x9c0--0x9db
line.long 0x00 "RMDR,RISC Microcode Development Support Control Register"
line.word 0x04 "RCTR1,RISC Controller Trap Register 1"
line.word 0x06 "RCTR2,RISC Controller Trap Register 2"
line.word 0x08 "RCTR3,RISC Controller Trap Register 3"
line.word 0x0a "RCTR4,RISC Controller Trap Register 4"
line.word 0x0c "RTER,RISC Timers Event Register"
line.word 0x0e "RTMR,RISC Timers Mask Register"
tree.end
tree "Timers"
group 0x980--0x983
line.word 0x00 "TGCR,Timer Global Configuration Register"
bitfld.word 0x0 15. "CAS4 ,Cascade Timers 3&4" "nrm,cas"
bitfld.word 0x0 14. "  FRZ4 ,Freeze Timer 4" "run,frz"
bitfld.word 0x0 13. "  STP4 ,Stop Timer 4" "nrm,lpw"
bitfld.word 0x0 12. "  RST4 ,Reset Timer 4" "rst,ena"
bitfld.word 0x0 11. "  GM2 ,Gate Mode for Pin 2" "rst,nrm"
bitfld.word 0x0 10. "  FRZ3 ,Freeze Timer 3" "run,frz"
bitfld.word 0x0 9. "  STP3 ,Stop Timer 3" "nrm,lpw"
textline "          "
bitfld.word 0x0 8. "  RST3 ,Reset Timer 3" "rst,ena"
bitfld.word 0x0 7. "  CAS2 ,Cascade Timers 1&2" "nrm,cas"
bitfld.word 0x0 6. "  FRZ2 ,Freeze Timer 2" "run,frz"
bitfld.word 0x0 5. "  STP2 ,Stop Timer 2" "nrm,lpw"
bitfld.word 0x0 4. "  RST2 ,Reset Timer 2" "rst,ena"
bitfld.word 0x0 3. "  GM1 ,Gate Mode for Pin 1" "rst,nrm"
bitfld.word 0x0 2. "  FRZ1 ,Freeze Timer 1" "run,frz"
textline "          "
bitfld.word 0x0 1. "  STP1 ,Stop Timer 1" "nrm,lpw"
bitfld.word 0x0 0. "  RST1 ,Reset Timer 1" "rst,ena"
group 0x990--0x9b7 "CPM Timer 1"
line.word 0x00 "TMR1,Timer1 Mode Register"
hexmask.word 0x0 8.--15. 1. "  PSF ,Prescaler Value"
bitfld.word 0x0 6.--7. "  CE ,Capture Edge and Enable Interrupt" "dis,ris,fal,any"
bitfld.word 0x0 5. "  OM ,Output Mode" "0,1"
bitfld.word 0x0 4. "  ORI ,Output Reference Interrupt Enable" "dis,ena"
bitfld.word 0x0 3. "  FRR ,Free Run/Restart" "0,1"
bitfld.word 0x0 1.--2. "  ICLK ,Input Clock Source for the Timer" "00,01,10,11"
bitfld.word 0x0 0. "  GE ,Gate Enable" "dis,ena"
line.word 0x04 "TRR1,Timer1 Reference Register"
line.word 0x08 "TCR1,Timer1 Capture Register"
line.word 0x0C "TCN1,Timer1 Counter"
line.word 0x20 "TER1,Timer1 Event Register"
bitfld.word 0x20 1. "  REF ,Output Reference Event" "0,1"
bitfld.word 0x20 0. "  CAP ,Capture Event" "0,1"
group 0x990--0x9b7 "CPM Timer 2"
line.word 0x02 "TMR2,Timer2 Mode Register"
hexmask.word 0x2 8.--15. 1. "  PSF ,Prescaler Value"
bitfld.word 0x2 6.--7. "  CE ,Capture Edge and Enable Interrupt" "dis,ris,fal,any"
bitfld.word 0x2 5. "  OM ,Output Mode" "0,1"
bitfld.word 0x2 4. "  ORI ,Output Reference Interrupt Enable" "dis,ena"
bitfld.word 0x2 3. "  FRR ,Free Run/Restart" "0,1"
bitfld.word 0x2 1.--2. "  ICLK ,Input Clock Source for the Timer" "00,01,10,11"
bitfld.word 0x2 0. "  GE ,Gate Enable" "dis,ena"
line.word 0x06 "TRR2,Timer2 Reference Register"
line.word 0x0A "TCR2,Timer2 Capture Register"
line.word 0x0E "TCN2,Timer2 Counter"
line.word 0x22 "TER2,Timer2 Event Register"
bitfld.word 0x22 1. "  REF ,Output Reference Event" "0,1"
bitfld.word 0x22 0. "  CAP ,Capture Event" "0,1"
group 0x990--0x9b7 "CPM Timer 3"
line.word 0x10 "TMR3,Timer3 Mode Register"
hexmask.word 0x10 8.--15. 1. "  PSF ,Prescaler Value"
bitfld.word 0x10 6.--7. "  CE ,Capture Edge and Enable Interrupt" "dis,ris,fal,any"
bitfld.word 0x10 5. "  OM ,Output Mode" "0,1"
bitfld.word 0x10 4. "  ORI ,Output Reference Interrupt Enable" "dis,ena"
bitfld.word 0x10 3. "  FRR ,Free Run/Restart" "0,1"
bitfld.word 0x10 1.--2. "  ICLK ,Input Clock Source for the Timer" "00,01,10,11"
bitfld.word 0x10 0. "  GE ,Gate Enable" "dis,ena"
line.word 0x14 "TRR3,Timer3 Reference Register"
line.word 0x18 "TCR3,Timer3 Capture Register"
line.word 0x1C "TCN3,Timer3 Counter"
line.word 0x24 "TER3,Timer3 Event Register"
bitfld.word 0x24 1. "  REF ,Output Reference Event" "0,1"
bitfld.word 0x24 0. "  CAP ,Capture Event" "0,1"
group 0x990--0x9b7 "CPM Timer 4"
line.word 0x12 "TMR4,Timer4 Mode Register"
hexmask.word 0x12 8.--15. 1. "  PSF ,Prescaler Value"
bitfld.word 0x12 6.--7. "  CE ,Capture Edge and Enable Interrupt" "dis,ris,fal,any"
bitfld.word 0x12 5. "  OM ,Output Mode" "0,1"
bitfld.word 0x12 4. "  ORI ,Output Reference Interrupt Enable" "dis,ena"
bitfld.word 0x12 3. "  FRR ,Free Run/Restart" "0,1"
bitfld.word 0x12 1.--2. "  ICLK ,Input Clock Source for the Timer" "00,01,10,11"
bitfld.word 0x12 0. "  GE ,Gate Enable" "dis,ena"
line.word 0x16 "TRR4,Timer4 Reference Register"
line.word 0x1A "TCR4,Timer4 Capture Register"
line.word 0x1E "TCN4,Timer4 Counter"
line.word 0x26 "TER4,Timer4 Event Register"
bitfld.word 0x26 1. "  REF ,Output Reference Event" "0,1"
bitfld.word 0x26 0. "  CAP ,Capture Event" "0,1"
tree.end
tree "SDMA"
group 0x30--0x33
line.long 0x00 "SDCR,SDMA Configuration Register"
bitfld.long 0x0 13.--14. "FRZ ,Freeze" "run,(1),stop,(3)"
bitfld.long 0x0 6. "  FAM ,Fast Ethernet Controller Aggressive Mode" "no,yes"
bitfld.long 0x0 2.--3. "  FAID ,Fast Ethernet Controller Arbitration ID" "6,5,2,1"
bitfld.long 0x0 0.--1. "  RAID ,RISC Controller Arbitration ID" "6,5,2,1"
group 0x908--0x90b
line.byte 0x00 "SDSR,SDMA Status Register"
eventfld.byte 0x0 7. "    SBER ,SDMA Channel Bus Error" "no,yes"
eventfld.byte 0x0 6. "  RINT ,Reserved Interrupt" "no,yes"
eventfld.byte 0x0 1. "  DSP2 ,DSP Chain 2 Interrupt" "no,yes"
eventfld.byte 0x0 0. "  DSP1 ,DSP Chain 1 Interrupt" "no,yes"
group 0x90c--0x90f
line.byte 0x00 "SDMR,SDMA Mask Register"
bitfld.byte 0x0 7. "    SBER ,SDMA Channel Bus Error Enable" "no,yes"
bitfld.byte 0x0 6. "  RINT ,Reserved Interrupt Enable" "no,yes"
bitfld.byte 0x0 1. "  DSP2 ,DSP Chain 2 Interrupt Enable" "no,yes"
bitfld.byte 0x0 0. "  DSP1 ,DSP Chain 1 Interrupt Enable" "no,yes"
group 0x904--0x907
line.long 0x00 "SDAR,SDMA Address Register"
tree.end
tree "IDMA"
group 0x910--0x913 "IDMA1"
line.byte 0x00 "IDSR,IDMA Status Register"
eventfld.byte 0x0 2. "  AD ,Auxiliary Done" "no,yes"
eventfld.byte 0x0 1. "  DONE ,IDMA Transfer Done" "no,yes"
eventfld.byte 0x0 0. "  OB ,Out Of Buffers" "no,yes"
group 0x914--0x917
line.byte 0x00 "IDMR,IDMA Mask Register"
bitfld.byte 0x0 2. "  AD ,Auxiliary Done" "no,yes"
bitfld.byte 0x0 1. "  DONE ,IDMA Transfer Done" "no,yes"
bitfld.byte 0x0 0. "  OB ,Out Of Buffers" "no,yes"
group 0x918--0x91b "IDMA2"
line.byte 0x00 "IDSR,IDMA Status Register"
eventfld.byte 0x0 2. "  AD ,Auxiliary Done" "no,yes"
eventfld.byte 0x0 1. "  DONE ,IDMA Transfer Done" "no,yes"
eventfld.byte 0x0 0. "  OB ,Out Of Buffers" "no,yes"
group 0x91c--0x91f
line.byte 0x00 "IDMR,IDMA Mask Register"
bitfld.byte 0x0 2. "  AD ,Auxiliary Done" "no,yes"
bitfld.byte 0x0 1. "  DONE ,IDMA Transfer Done" "no,yes"
bitfld.byte 0x0 0. "  OB ,Out Of Buffers" "no,yes"
tree.end
tree "SI"
group 0x0AE0--0x0AE7
line.long 0x00 "SIMODE,SI Mode Register"
bitfld.long 0x00 31. "SMC2 ,SMC2 Connection" "nmsi,tdm"
bitfld.long 0x00 28.--30. "  SMC2CS ,SMC2 Clock Source" "BRG1,BRG2,BRG3,BRG4,CLK5,CLK6,CLK7,CLK8"
bitfld.long 0x00 26.--27. "  SDMB ,SI DIagnostic Mode for TDMB" "nrm,echo,inlop,lopct"
bitfld.long 0x00 24.--25. "  RFSDB ,Receive Frame Snc Delay for TDMB" "0,1,2,3"
bitfld.long 0x00 23. "  DSCB ,Double Speed Clock for TDMB" "*1,*2"
bitfld.long 0x00 22. "  CRTB ,Common Receive and Transmit Pins for TDMB" "sep,com"
textline "              "
bitfld.long 0x00 21. "  STZB ,Set L1TXDB to Zero for TDMB" "nrm,zero"
bitfld.long 0x00 20. "  CEB ,Clock Edge for TDMB" "ris,fall"
bitfld.long 0x00 19. "  FEB ,Frame Sync Edge for TDMB" "fall,ris"
bitfld.long 0x00 18. "  GMB ,Grant Mode for TDMB" "GCI,IDL"
bitfld.long 0x00 16.--17. "  TFSDB ,Transmit Frame Sync Delay for TDMB" "0,1,2,3"
textline "              "
bitfld.long 0x00 15. "  SMC1 ,SMC1 Connection" "nmsi,tdm"
bitfld.long 0x00 12.--14. "  SMC1CS ,SMC1 Clock Source" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00 10.--11. "  SDMA ,SI DIagnostic Mode for TDMA" "nrm,echo,inlop,lopct"
bitfld.long 0x00   8.--9. "  RFSDA ,Receive Frame Snc Delay for TDMA" "0,1,2,3"
bitfld.long 0x00 7. "  DSCA ,Double Speed Clock for TDMA" "*1,*2"
bitfld.long 0x00 6. "  CRTA ,Common Receive and Transmit Pins for TDMA" "sep,com"
textline "              "
bitfld.long 0x00 5. "  STZA ,Set L1TXDB to Zero for TDMA" "nrm,zero"
bitfld.long 0x00 4. "  CEA ,Clock Edge for TDMA" "ris,fall"
bitfld.long 0x00 3. "  FEA ,Frame Sync Edge for TDMA" "fall,ris"
bitfld.long 0x00 2. "  GMA ,Grant Mode for TDMA" "GCI,IDL"
bitfld.long 0x00 0.--1. "  TFSDA ,Transmit Frame Sync Delay for TDMA" "0,1,2,3"
line.byte 0x04 "SIGMR,SI Global Mode Register"
bitfld.byte 0x04 3. "    ENB ,Enable Channel B" "dis,ena"
bitfld.byte 0x04 2. "  ENA ,Enable Channel A" "dis,ena"
bitfld.byte 0x04 0.--1. "  RDM ,Ram Division Mode" "1-64,1-32,2-32,2-16"
line.byte 0x06 "SISTR,SI Status Register"
bitfld.byte 0x06 7. "    CRORA ,Current Route of TDM A Receiver" "0,1"
bitfld.byte 0x06 6. "  CROTA ,Current Route of TDM A Transmitter" "0,1"
bitfld.byte 0x06 5. "  CRORB ,Current Route of TDM B Receiver" "0,1"
bitfld.byte 0x06 4. "  CROTB ,Current Route of TDM B Transmitter" "0,1"
line.byte 0x07 "SICMR,SI Command Register"
bitfld.byte 0x07 7. "    CSRRA ,Change Shadow RAM for TDM A Receiver" "no,yes"
bitfld.byte 0x07 6. "  CSRTA ,Change Shadow RAM for TDM A Transmitter" "no,yes"
bitfld.byte 0x07 5. "  CSRRB ,Change Shadow RAM for TDM B Receiver" "no,yes"
bitfld.byte 0x07 4. "  CSRTB ,Change Shadow RAM for TDM B Transmitter" "no,yes"
group 0x0AEC--0x0AF3
line.long 0x00 "SICR,SI Clock Route"
bitfld.long 0x00 31. "GR4 ,Grant Support for SCC4" "dis,ena"
bitfld.long 0x00 30. " SC4 ,SCC4 Connection" "nmsi,tdm"
bitfld.long 0x00 27.--29. " R4CS ,Receive Clock Source for SCC4" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00 24.--26. " T4CS ,Transmit Clock Source for SCC4" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00 23. " GR3 ,Grant Support for SCC3" "dis,ena"
bitfld.long 0x00 22. " SC3 ,SCC3 Connection" "nmsi,tdm"
bitfld.long 0x00 19.--21. " R3CS ,Receive Clock Source for SCC3" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00 16.--18. " T3CS ,Transmit Clock Source for SCC3" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
textline "               "
bitfld.long 0x00 15. " GR2 ,Grant Support for SCC2" "dis,ena"
bitfld.long 0x00 14. " SC2 ,SCC2 Connection" "nmsi,tdm"
bitfld.long 0x00 11.--13. " R2CS ,Receive Clock Source for SCC2" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00  8.--10. " T2CS ,Transmit Clock Source for SCC2" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00  7. " GR1 ,Grant Support for SCC1" "dis,ena"
bitfld.long 0x00  6. " SC1 ,SCC1 Connection" "nmsi,tdm"
bitfld.long 0x00  3.--5. " R1CS ,Receive Clock Source for SCC1" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
bitfld.long 0x00  0.--2. " T1CS ,Transmit Clock Source for SCC1" "BRG1,BRG2,BRG3,BRG4,CLK1,CLK2,CLK3,CLK4"
line.long 0x04 "SIRP,SI Ram Pointers"
tree.end
tree "BRG"
group 0x9F0--0x9F3 "BRGC1"
line.long 0x00 "BRGC,BRG Configuration Register"
bitfld.long 0x0 17. "RST ,Reset BRG" "ok,rst"
bitfld.long 0x0 16. "  EN ,Enable BRG Count" "stp,ena"
bitfld.long 0x0 14.--15. "  EXT ,External Clock Source" "BRG,CLK2,CLK6,res"
bitfld.long 0x0 13. "  ATB ,Autobaud" "nrm,aut"
hexmask.word 0x0 1.--12. 1. "  CD ,Clock Divider"
bitfld.long 0x0 0. "  D16 ,BRG Clock Prescaler Divide by 16" "/1,/16"
group 0x9F4--0x9F7 "BRGC2"
copy
group 0x9F8--0x9Fb "BRGC3"
copy
group 0x9FC--0x9FF "BRGC4"
copy
tree.end

tree "SCC1 (Serial Communications Controller 1)"
group 0x0a00++0x17
line.long 0x04 "GSMRH,SCC General Mode Register"
bitfld.long 0x4 18. "IRP ,InfraRed Rx Polarity" "high,low"
bitfld.long 0x4 16. " GDE ,Glitch Detect Enable" "no,yes"
bitfld.long 0x4 14.--15. " TCRC ,Transparent CRC" "00,01,10,11"
bitfld.long 0x4 13. " REVD ,Reverse Data " "norm,rev"
bitfld.long 0x4 12. " TRX ,Transparent Receiver" "norm,trans"
bitfld.long 0x4 11. " TTX ,Transparent Transmitter" "norm,trans"
bitfld.long 0x4 10. " CDP ,CD Pulse" "norm,puls"
bitfld.long 0x4 9. " CTSP ,CTS Pulse" "norm,puls"
textline "              "
bitfld.long 0x4 8. "  CDS ,CD Sampling" "asy,syn"
bitfld.long 0x4 7. " CTSS ,CTS Sampling" "asy,syn"
bitfld.long 0x4 6. " TFL ,Transmit Fifo Length" "norm,1B"
bitfld.long 0x4 5. " RFW ,Rx Fifo Width" "32B,8B"
bitfld.long 0x4 4. " TXSY ,Transmitter Synchronized to the Tranceiver" "no,yes"
bitfld.long 0x4 2.--3. "  SYNL ," "00,01,10,11"
bitfld.long 0x4 1. "  RTSM ,RTS Mode" "idl,flg"
bitfld.long 0x4 0. "  RSYN ,Receive Synchronization Timing" "norm,lat"
line.long 0x00 "GSMRL,SCC General Mode Register"
bitfld.long 0x0 31. "SIR ,Serial Infrared Encoding" "dis,ena"
bitfld.long 0x0 29.--30. "  EDGE ,Clock Edge" "both,pos,neg,no"
bitfld.long 0x0 28. " TCI ,Transmit Clock Invert" "nrm,inv"
bitfld.long 0x0 26.--27. "  TSNC ,Transmit Sense" "00,01,10,11"
bitfld.long 0x0 25. " RINV ,Receive Input Invert Data" "no,yes"
bitfld.long 0x0 24. " TINV ,Transmit Input Invert Data" "no,yes"
textline "              "
bitfld.long 0x0 21.--23. "  TPL ,Tx Preamble Length" "0,8B,16B,32B,48B,64B,128,res"
bitfld.long 0x0 19.--20. " TPP ,Tx Preamble Pattern" "00,01,10,11"
bitfld.long 0x0 18. " TEND ,Transmitter Frame Ending" "def,enc"
bitfld.long 0x0 16.--17. "  TDCR ,Transmit Divide Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 14.--15. "  RDCR ,Receive DPLL Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 11.--13. "  RENC ,Receiver Decoding Mode" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
bitfld.long 0x0 8.--10. "  TENC ,Transmitter Encoding Method" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
textline "              "
bitfld.long 0x0 6.--7. "  DIA ,Diagnostic Mode" "normal,loopback,echo,loopback+echo"
bitfld.long 0x0 5. "  ENR ,Enable Receive" "no,yes"
bitfld.long 0x0 4. "  ENT ,Enable Transmit" "no,yes"
bitfld.long 0x0 0.--3. "  MODE ,Channel Protocol Mode" "hdlc,(1),apple talk,ss7,uart,profibus,async hdlc,V.14,bisync,ddcmp,(10),(11),ethernet,(13),(14),(15)"
line.word 0x0C "TODR,SCC Transmit on Demand"
bitfld.word 0x0C 15. "    TOD ,Transmit on Demand" "no,yes"
if (d.l(per.eval(0x0)+0x0a00)&0x0f)==0x4
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (UART)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
bitfld.word 0x8 14. "  SL ,Stop Length" "1B,2B"
bitfld.word 0x8 12.--13. "  CL ,Character Length" "5B,6B,7B,8B"
bitfld.word 0x8 10.--11. "  UM ,Uart Mode" "00,01,10,11"
bitfld.word 0x8 9. "  FRZ ,Freeze Transmission" "nrm,FIF"
bitfld.word 0x8 8. "  RZS ,Receive Zero Stop Bits" "no,yes"
bitfld.word 0x8 7. "  SYN ,Synchronous Mode" "asy,syn"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "no,yes"
textline "              "
bitfld.word 0x8 4. "  PEN ,Parity Enable" "no,yes"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "Odd,Low,Even,High"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "Odd,Low,Even,High"
line.word 0x0E "DSR,SCC Data Sync Register"
bitfld.word 14. 11.--14. "    FSB ,Fractional Stop Bits" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
line.word 0x10 "SCCE,SCC Event Register (UART)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 9. "  AB ,Auto Baud" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
textline "              "
eventfld.word 0x10 3. "  CCR ,Control Character Received" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TX ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RX ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (UART)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 9. "  AB ,Auto Baud" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
textline "              "
bitfld.word 0x14 3. "  CCR ,Control Character Received" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TX ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RX ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (UART)"
bitfld.byte 0x17 0. "    ID  ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a00)&0x0f)==0x8
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (BISYNC)"
bitfld.word 0x8 12.--15. "    NOS ,Minimum Number of Syncs Between or Before Messages" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,CRC16,res,LRC"
bitfld.word 0x8 9. "  RBCS ,Receive Block Check Sequence" "dis,ena"
bitfld.word 0x8 8. "  RTR ,Receiver Transparent Mode" "nrm,trs"
bitfld.word 0x8 7. "  RVD ,Reverse Data" "nrm,bis"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "dis,ena"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "odd,low,eve,hig"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "odd,low,eve,hig"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (BISYNC)"
eventfld.word 0x10 12. "    GLR ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLT ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (BISYNC)"
bitfld.word 0x14 12. "    GLR ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLT ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (BISYNC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a00)&0x0d)==0x0
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (HDLC)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 9. "  FLG ,Flag status" "dis,ena"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 9. "  FLG ,Flag status" "dis,ena"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 2. "    FG ,Flags" "no,yes"
bitfld.byte 0x17 1. "   CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a00)&0x0f)==0x6
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (ASYNC HDLC)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (ASYNC HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (ASYNC HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (ASYNC HDLC)"
elif (d.l(per.eval(0x0)+0x0a00)&0x0f)==12.
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Ethernet)"
bitfld.word 0x8 15. "    HBC ,Heartbeat Checking" "no,yes"
bitfld.word 0x8 14. "  FC ,Force Collision" "nrm,frc"
bitfld.word 0x8 13. "   RSH ,Receive Short Frames" "no,yes"
bitfld.word 0x8 12. "  IAM ,Individual Address Mode" "dis,ena"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,res,32B,res"
bitfld.word 0x8 9. "  PRO ,Promiscious" "chk,rec"
bitfld.word 0x8 8. "  BRO ,Broadcast Address" "rec,rej"
textline "              "
bitfld.word 0x8 7. "  SBT ,Stop Backoff Timer" "nrm,stp"
bitfld.word 0x8 6. "  LPB ,Loopback Operation" "nrm,lop"
bitfld.word 0x8 5. "  SIP ,Sample Input Pins" "nrm,spl"
bitfld.word 0x8 4. "  LCW ,Late Collision Window" "64,56"
bitfld.word 0x8 1.--3. "   NIB ,Number of Ignored Bits" "13B,14B,15B,16B,21B,22B,23B,24B"
bitfld.word 0x8 0. "  FDE ,Full Duplex Ethernet" "dis,ena"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Ethernet)"
eventfld.word 0x10 7. "    GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx Error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx Frame" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Ethernet)"
bitfld.word 0x14 7. "    GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx Error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx Frame" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
else
group 0x0a00++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Transparent)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Transparent)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive Character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Transparent)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive Character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
endif
tree "PRAM"
group 0x3c00++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3c00) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3c00+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SCC2 (Serial Communications Controller 2)"
group 0x0a20++0x17
line.long 0x04 "GSMRH,SCC General Mode Register"
bitfld.long 0x4 18. "IRP ,InfraRed Rx Polarity" "high,low"
bitfld.long 0x4 16. " GDE ,Glitch Detect Enable" "no,yes"
bitfld.long 0x4 14.--15. " TCRC ,Transparent CRC" "00,01,10,11"
bitfld.long 0x4 13. " REVD ,Reverse Data " "norm,rev"
bitfld.long 0x4 12. " TRX ,Transparent Receiver" "norm,trans"
bitfld.long 0x4 11. " TTX ,Transparent Transmitter" "norm,trans"
bitfld.long 0x4 10. " CDP ,CD Pulse" "norm,puls"
bitfld.long 0x4 9. " CTSP ,CTS Pulse" "norm,puls"
textline "              "
bitfld.long 0x4 8. "  CDS ,CD Sampling" "asy,syn"
bitfld.long 0x4 7. " CTSS ,CTS Sampling" "asy,syn"
bitfld.long 0x4 6. " TFL ,Transmit Fifo Length" "norm,1B"
bitfld.long 0x4 5. " RFW ,Rx Fifo Width" "32B,8B"
bitfld.long 0x4 4. " TXSY ,Transmitter Synchronized to the Tranceiver" "no,yes"
bitfld.long 0x4 2.--3. "  SYNL ," "00,01,10,11"
bitfld.long 0x4 1. "  RTSM ,RTS Mode" "idl,flg"
bitfld.long 0x4 0. "  RSYN ,Receive Synchronization Timing" "norm,lat"
line.long 0x00 "GSMRL,SCC General Mode Register"
bitfld.long 0x0 31. "SIR ,Serial Infrared Encoding" "dis,ena"
bitfld.long 0x0 29.--30. "  EDGE ,Clock Edge" "both,pos,neg,no"
bitfld.long 0x0 28. " TCI ,Transmit Clock Invert" "nrm,inv"
bitfld.long 0x0 26.--27. "  TSNC ,Transmit Sense" "00,01,10,11"
bitfld.long 0x0 25. " RINV ,Receive Input Invert Data" "no,yes"
bitfld.long 0x0 24. " TINV ,Transmit Input Invert Data" "no,yes"
textline "              "
bitfld.long 0x0 21.--23. "  TPL ,Tx Preamble Length" "0,8B,16B,32B,48B,64B,128,res"
bitfld.long 0x0 19.--20. " TPP ,Tx Preamble Pattern" "00,01,10,11"
bitfld.long 0x0 18. " TEND ,Transmitter Frame Ending" "def,enc"
bitfld.long 0x0 16.--17. "  TDCR ,Transmit Divide Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 14.--15. "  RDCR ,Receive DPLL Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 11.--13. "  RENC ,Receiver Decoding Mode" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
bitfld.long 0x0 8.--10. "  TENC ,Transmitter Encoding Method" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
textline "              "
bitfld.long 0x0 6.--7. "  DIA ,Diagnostic Mode" "normal,loopback,echo,loopback+echo"
bitfld.long 0x0 5. "  ENR ,Enable Receive" "no,yes"
bitfld.long 0x0 4. "  ENT ,Enable Transmit" "no,yes"
bitfld.long 0x0 0.--3. "  MODE ,Channel Protocol Mode" "hdlc,(1),apple talk,ss7,uart,profibus,async hdlc,V.14,bisync,ddcmp,(10),(11),ethernet,(13),(14),(15)"
line.word 0x0C "TODR,SCC Transmit on Demand"
bitfld.word 0x0C 15. "    TOD ,Transmit on Demand" "no,yes"
if (d.l(per.eval(0x0)+0x0a20)&0x0f)==0x4
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (UART)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
bitfld.word 0x8 14. "  SL ,Stop Length" "1B,2B"
bitfld.word 0x8 12.--13. "  CL ,Character Length" "5B,6B,7B,8B"
bitfld.word 0x8 10.--11. "  UM ,Uart Mode" "00,01,10,11"
bitfld.word 0x8 9. "  FRZ ,Freeze Transmission" "nrm,FIF"
bitfld.word 0x8 8. "  RZS ,Receive Zero Stop Bits" "no,yes"
bitfld.word 0x8 7. "  SYN ,Synchronous Mode" "asy,syn"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "no,yes"
textline "              "
bitfld.word 0x8 4. "  PEN ,Parity Enable" "no,yes"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "Odd,Low,Even,High"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "Odd,Low,Even,High"
line.word 0x0E "DSR,SCC Data Sync Register"
bitfld.word 14. 11.--14. "    FSB ,Fractional Stop Bits" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
line.word 0x10 "SCCE,SCC Event Register (UART)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 9. "  AB ,Auto Baud" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
textline "              "
eventfld.word 0x10 3. "  CCR ,Control Character Received" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TX ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RX ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (UART)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 9. "  AB ,Auto Baud" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
textline "              "
bitfld.word 0x14 3. "  CCR ,Control Character Received" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TX ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RX ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (UART)"
bitfld.byte 0x17 0. "    ID  ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a20)&0x0f)==0x8
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (BISYNC)"
bitfld.word 0x8 12.--15. "    NOS ,Minimum Number of Syncs Between or Before Messages" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,CRC16,res,LRC"
bitfld.word 0x8 9. "  RBCS ,Receive Block Check Sequence" "dis,ena"
bitfld.word 0x8 8. "  RTR ,Receiver Transparent Mode" "nrm,trs"
bitfld.word 0x8 7. "  RVD ,Reverse Data" "nrm,bis"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "dis,ena"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "odd,low,eve,hig"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "odd,low,eve,hig"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (BISYNC)"
eventfld.word 0x10 12. "    GLR ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLT ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (BISYNC)"
bitfld.word 0x14 12. "    GLR ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLT ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (BISYNC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a20)&0x0d)==0x0
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (HDLC)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 9. "  FLG ,Flag status" "dis,ena"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 9. "  FLG ,Flag status" "dis,ena"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 2. "    FG ,Flags" "no,yes"
bitfld.byte 0x17 1. "   CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a20)&0x0f)==0x6
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (ASYNC HDLC)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (ASYNC HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (ASYNC HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (ASYNC HDLC)"
elif (d.l(per.eval(0x0)+0x0a20)&0x0f)==12.
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Ethernet)"
bitfld.word 0x8 15. "    HBC ,Heartbeat Checking" "no,yes"
bitfld.word 0x8 14. "  FC ,Force Collision" "nrm,frc"
bitfld.word 0x8 13. "   RSH ,Receive Short Frames" "no,yes"
bitfld.word 0x8 12. "  IAM ,Individual Address Mode" "dis,ena"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,res,32B,res"
bitfld.word 0x8 9. "  PRO ,Promiscious" "chk,rec"
bitfld.word 0x8 8. "  BRO ,Broadcast Address" "rec,rej"
textline "              "
bitfld.word 0x8 7. "  SBT ,Stop Backoff Timer" "nrm,stp"
bitfld.word 0x8 6. "  LPB ,Loopback Operation" "nrm,lop"
bitfld.word 0x8 5. "  SIP ,Sample Input Pins" "nrm,spl"
bitfld.word 0x8 4. "  LCW ,Late Collision Window" "64,56"
bitfld.word 0x8 1.--3. "   NIB ,Number of Ignored Bits" "13B,14B,15B,16B,21B,22B,23B,24B"
bitfld.word 0x8 0. "  FDE ,Full Duplex Ethernet" "dis,ena"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Ethernet)"
eventfld.word 0x10 7. "    GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx Error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx Frame" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Ethernet)"
bitfld.word 0x14 7. "    GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx Error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx Frame" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
else
group 0x0a20++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Transparent)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Transparent)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive Character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Transparent)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive Character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
endif
tree "PRAM"
group 0x3d00++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3d00) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3d00+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SCC3 (Serial Communications Controller 3)"
group 0x0a40++0x17
line.long 0x04 "GSMRH,SCC General Mode Register"
bitfld.long 0x4 18. "IRP ,InfraRed Rx Polarity" "high,low"
bitfld.long 0x4 16. " GDE ,Glitch Detect Enable" "no,yes"
bitfld.long 0x4 14.--15. " TCRC ,Transparent CRC" "00,01,10,11"
bitfld.long 0x4 13. " REVD ,Reverse Data " "norm,rev"
bitfld.long 0x4 12. " TRX ,Transparent Receiver" "norm,trans"
bitfld.long 0x4 11. " TTX ,Transparent Transmitter" "norm,trans"
bitfld.long 0x4 10. " CDP ,CD Pulse" "norm,puls"
bitfld.long 0x4 9. " CTSP ,CTS Pulse" "norm,puls"
textline "              "
bitfld.long 0x4 8. "  CDS ,CD Sampling" "asy,syn"
bitfld.long 0x4 7. " CTSS ,CTS Sampling" "asy,syn"
bitfld.long 0x4 6. " TFL ,Transmit Fifo Length" "norm,1B"
bitfld.long 0x4 5. " RFW ,Rx Fifo Width" "32B,8B"
bitfld.long 0x4 4. " TXSY ,Transmitter Synchronized to the Tranceiver" "no,yes"
bitfld.long 0x4 2.--3. "  SYNL ," "00,01,10,11"
bitfld.long 0x4 1. "  RTSM ,RTS Mode" "idl,flg"
bitfld.long 0x4 0. "  RSYN ,Receive Synchronization Timing" "norm,lat"
line.long 0x00 "GSMRL,SCC General Mode Register"
bitfld.long 0x0 31. "SIR ,Serial Infrared Encoding" "dis,ena"
bitfld.long 0x0 29.--30. "  EDGE ,Clock Edge" "both,pos,neg,no"
bitfld.long 0x0 28. " TCI ,Transmit Clock Invert" "nrm,inv"
bitfld.long 0x0 26.--27. "  TSNC ,Transmit Sense" "00,01,10,11"
bitfld.long 0x0 25. " RINV ,Receive Input Invert Data" "no,yes"
bitfld.long 0x0 24. " TINV ,Transmit Input Invert Data" "no,yes"
textline "              "
bitfld.long 0x0 21.--23. "  TPL ,Tx Preamble Length" "0,8B,16B,32B,48B,64B,128,res"
bitfld.long 0x0 19.--20. " TPP ,Tx Preamble Pattern" "00,01,10,11"
bitfld.long 0x0 18. " TEND ,Transmitter Frame Ending" "def,enc"
bitfld.long 0x0 16.--17. "  TDCR ,Transmit Divide Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 14.--15. "  RDCR ,Receive DPLL Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 11.--13. "  RENC ,Receiver Decoding Mode" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
bitfld.long 0x0 8.--10. "  TENC ,Transmitter Encoding Method" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
textline "              "
bitfld.long 0x0 6.--7. "  DIA ,Diagnostic Mode" "normal,loopback,echo,loopback+echo"
bitfld.long 0x0 5. "  ENR ,Enable Receive" "no,yes"
bitfld.long 0x0 4. "  ENT ,Enable Transmit" "no,yes"
bitfld.long 0x0 0.--3. "  MODE ,Channel Protocol Mode" "hdlc,(1),apple talk,ss7,uart,profibus,async hdlc,V.14,bisync,ddcmp,(10),(11),ethernet,(13),(14),(15)"
line.word 0x0C "TODR,SCC Transmit on Demand"
bitfld.word 0x0C 15. "    TOD ,Transmit on Demand" "no,yes"
if (d.l(per.eval(0x0)+0x0a40)&0x0f)==0x4
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (UART)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
bitfld.word 0x8 14. "  SL ,Stop Length" "1B,2B"
bitfld.word 0x8 12.--13. "  CL ,Character Length" "5B,6B,7B,8B"
bitfld.word 0x8 10.--11. "  UM ,Uart Mode" "00,01,10,11"
bitfld.word 0x8 9. "  FRZ ,Freeze Transmission" "nrm,FIF"
bitfld.word 0x8 8. "  RZS ,Receive Zero Stop Bits" "no,yes"
bitfld.word 0x8 7. "  SYN ,Synchronous Mode" "asy,syn"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "no,yes"
textline "              "
bitfld.word 0x8 4. "  PEN ,Parity Enable" "no,yes"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "Odd,Low,Even,High"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "Odd,Low,Even,High"
line.word 0x0E "DSR,SCC Data Sync Register"
bitfld.word 14. 11.--14. "    FSB ,Fractional Stop Bits" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
line.word 0x10 "SCCE,SCC Event Register (UART)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 9. "  AB ,Auto Baud" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
textline "              "
eventfld.word 0x10 3. "  CCR ,Control Character Received" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TX ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RX ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (UART)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 9. "  AB ,Auto Baud" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
textline "              "
bitfld.word 0x14 3. "  CCR ,Control Character Received" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TX ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RX ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (UART)"
bitfld.byte 0x17 0. "    ID  ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a40)&0x0f)==0x8
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (BISYNC)"
bitfld.word 0x8 12.--15. "    NOS ,Minimum Number of Syncs Between or Before Messages" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,CRC16,res,LRC"
bitfld.word 0x8 9. "  RBCS ,Receive Block Check Sequence" "dis,ena"
bitfld.word 0x8 8. "  RTR ,Receiver Transparent Mode" "nrm,trs"
bitfld.word 0x8 7. "  RVD ,Reverse Data" "nrm,bis"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "dis,ena"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "odd,low,eve,hig"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "odd,low,eve,hig"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (BISYNC)"
eventfld.word 0x10 12. "    GLR ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLT ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (BISYNC)"
bitfld.word 0x14 12. "    GLR ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLT ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (BISYNC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a40)&0x0d)==0x0
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (HDLC)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 9. "  FLG ,Flag status" "dis,ena"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 9. "  FLG ,Flag status" "dis,ena"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 2. "    FG ,Flags" "no,yes"
bitfld.byte 0x17 1. "   CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a40)&0x0f)==0x6
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (ASYNC HDLC)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (ASYNC HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (ASYNC HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (ASYNC HDLC)"
elif (d.l(per.eval(0x0)+0x0a40)&0x0f)==12.
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Ethernet)"
bitfld.word 0x8 15. "    HBC ,Heartbeat Checking" "no,yes"
bitfld.word 0x8 14. "  FC ,Force Collision" "nrm,frc"
bitfld.word 0x8 13. "   RSH ,Receive Short Frames" "no,yes"
bitfld.word 0x8 12. "  IAM ,Individual Address Mode" "dis,ena"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,res,32B,res"
bitfld.word 0x8 9. "  PRO ,Promiscious" "chk,rec"
bitfld.word 0x8 8. "  BRO ,Broadcast Address" "rec,rej"
textline "              "
bitfld.word 0x8 7. "  SBT ,Stop Backoff Timer" "nrm,stp"
bitfld.word 0x8 6. "  LPB ,Loopback Operation" "nrm,lop"
bitfld.word 0x8 5. "  SIP ,Sample Input Pins" "nrm,spl"
bitfld.word 0x8 4. "  LCW ,Late Collision Window" "64,56"
bitfld.word 0x8 1.--3. "   NIB ,Number of Ignored Bits" "13B,14B,15B,16B,21B,22B,23B,24B"
bitfld.word 0x8 0. "  FDE ,Full Duplex Ethernet" "dis,ena"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Ethernet)"
eventfld.word 0x10 7. "    GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx Error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx Frame" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Ethernet)"
bitfld.word 0x14 7. "    GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx Error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx Frame" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
else
group 0x0a40++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Transparent)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Transparent)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive Character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Transparent)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive Character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
endif
tree "PRAM"
group 0x3e00++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3e00) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3e00+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SCC4 (Serial Communications Controller 4)"
group 0x0a60++0x17
line.long 0x04 "GSMRH,SCC General Mode Register"
bitfld.long 0x4 18. "IRP ,InfraRed Rx Polarity" "high,low"
bitfld.long 0x4 16. " GDE ,Glitch Detect Enable" "no,yes"
bitfld.long 0x4 14.--15. " TCRC ,Transparent CRC" "00,01,10,11"
bitfld.long 0x4 13. " REVD ,Reverse Data " "norm,rev"
bitfld.long 0x4 12. " TRX ,Transparent Receiver" "norm,trans"
bitfld.long 0x4 11. " TTX ,Transparent Transmitter" "norm,trans"
bitfld.long 0x4 10. " CDP ,CD Pulse" "norm,puls"
bitfld.long 0x4 9. " CTSP ,CTS Pulse" "norm,puls"
textline "              "
bitfld.long 0x4 8. "  CDS ,CD Sampling" "asy,syn"
bitfld.long 0x4 7. " CTSS ,CTS Sampling" "asy,syn"
bitfld.long 0x4 6. " TFL ,Transmit Fifo Length" "norm,1B"
bitfld.long 0x4 5. " RFW ,Rx Fifo Width" "32B,8B"
bitfld.long 0x4 4. " TXSY ,Transmitter Synchronized to the Tranceiver" "no,yes"
bitfld.long 0x4 2.--3. "  SYNL ," "00,01,10,11"
bitfld.long 0x4 1. "  RTSM ,RTS Mode" "idl,flg"
bitfld.long 0x4 0. "  RSYN ,Receive Synchronization Timing" "norm,lat"
line.long 0x00 "GSMRL,SCC General Mode Register"
bitfld.long 0x0 31. "SIR ,Serial Infrared Encoding" "dis,ena"
bitfld.long 0x0 29.--30. "  EDGE ,Clock Edge" "both,pos,neg,no"
bitfld.long 0x0 28. " TCI ,Transmit Clock Invert" "nrm,inv"
bitfld.long 0x0 26.--27. "  TSNC ,Transmit Sense" "00,01,10,11"
bitfld.long 0x0 25. " RINV ,Receive Input Invert Data" "no,yes"
bitfld.long 0x0 24. " TINV ,Transmit Input Invert Data" "no,yes"
textline "              "
bitfld.long 0x0 21.--23. "  TPL ,Tx Preamble Length" "0,8B,16B,32B,48B,64B,128,res"
bitfld.long 0x0 19.--20. " TPP ,Tx Preamble Pattern" "00,01,10,11"
bitfld.long 0x0 18. " TEND ,Transmitter Frame Ending" "def,enc"
bitfld.long 0x0 16.--17. "  TDCR ,Transmit Divide Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 14.--15. "  RDCR ,Receive DPLL Clock Rate" "1X,8X,16X,32X"
bitfld.long 0x0 11.--13. "  RENC ,Receiver Decoding Mode" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
bitfld.long 0x0 8.--10. "  TENC ,Transmitter Encoding Method" "nrz,nrzi,fm0,(3),manch,(5),mdff,(7)"
textline "              "
bitfld.long 0x0 6.--7. "  DIA ,Diagnostic Mode" "normal,loopback,echo,loopback+echo"
bitfld.long 0x0 5. "  ENR ,Enable Receive" "no,yes"
bitfld.long 0x0 4. "  ENT ,Enable Transmit" "no,yes"
bitfld.long 0x0 0.--3. "  MODE ,Channel Protocol Mode" "hdlc,(1),apple talk,ss7,uart,profibus,async hdlc,V.14,bisync,ddcmp,(10),(11),ethernet,(13),(14),(15)"
line.word 0x0C "TODR,SCC Transmit on Demand"
bitfld.word 0x0C 15. "    TOD ,Transmit on Demand" "no,yes"
if (d.l(per.eval(0x0)+0x0a60)&0x0f)==0x4
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (UART)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
bitfld.word 0x8 14. "  SL ,Stop Length" "1B,2B"
bitfld.word 0x8 12.--13. "  CL ,Character Length" "5B,6B,7B,8B"
bitfld.word 0x8 10.--11. "  UM ,Uart Mode" "00,01,10,11"
bitfld.word 0x8 9. "  FRZ ,Freeze Transmission" "nrm,FIF"
bitfld.word 0x8 8. "  RZS ,Receive Zero Stop Bits" "no,yes"
bitfld.word 0x8 7. "  SYN ,Synchronous Mode" "asy,syn"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "no,yes"
textline "              "
bitfld.word 0x8 4. "  PEN ,Parity Enable" "no,yes"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "Odd,Low,Even,High"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "Odd,Low,Even,High"
line.word 0x0E "DSR,SCC Data Sync Register"
bitfld.word 14. 11.--14. "    FSB ,Fractional Stop Bits" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
line.word 0x10 "SCCE,SCC Event Register (UART)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 9. "  AB ,Auto Baud" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
textline "              "
eventfld.word 0x10 3. "  CCR ,Control Character Received" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TX ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RX ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (UART)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 9. "  AB ,Auto Baud" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
textline "              "
bitfld.word 0x14 3. "  CCR ,Control Character Received" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TX ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RX ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (UART)"
bitfld.byte 0x17 0. "    ID  ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a60)&0x0f)==0x8
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (BISYNC)"
bitfld.word 0x8 12.--15. "    NOS ,Minimum Number of Syncs Between or Before Messages" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,CRC16,res,LRC"
bitfld.word 0x8 9. "  RBCS ,Receive Block Check Sequence" "dis,ena"
bitfld.word 0x8 8. "  RTR ,Receiver Transparent Mode" "nrm,trs"
bitfld.word 0x8 7. "  RVD ,Reverse Data" "nrm,bis"
bitfld.word 0x8 6. "  DRT ,Disable Receiver while Transmitting" "dis,ena"
bitfld.word 0x8 2.--3. "  RPM ,Receiver Parity Mode" "odd,low,eve,hig"
bitfld.word 0x8 0.--1. "  TPM ,Transmitter Parity Mode" "odd,low,eve,hig"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (BISYNC)"
eventfld.word 0x10 12. "    GLR ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLT ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (BISYNC)"
bitfld.word 0x14 12. "    GLR ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLT ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (BISYNC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a60)&0x0d)==0x0
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (HDLC)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 9. "  FLG ,Flag status" "dis,ena"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 9. "  FLG ,Flag status" "dis,ena"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 2. "    FG ,Flags" "no,yes"
bitfld.byte 0x17 1. "   CS ,Carrier Sense" "no,yes"
bitfld.byte 0x17 0. "  ID ,Idle Status" "no,yes"
elif (d.l(per.eval(0x0)+0x0a60)&0x0f)==0x6
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (ASYNC HDLC)"
bitfld.word 0x8 15. "    FLC ,Flow Control" "nrm,asn"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (ASYNC HDLC)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
eventfld.word 0x10 6. "  BRKe ,Break End" "no,yes"
eventfld.word 0x10 5. "  BRKs ,Break Start" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx frame" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (ASYNC HDLC)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 8. "  IDL ,Idle Sequence Status Changed" "no,yes"
bitfld.word 0x14 6. "  BRKe ,Break End" "no,yes"
bitfld.word 0x14 5. "  BRKs ,Break Start" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx frame" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (ASYNC HDLC)"
elif (d.l(per.eval(0x0)+0x0a60)&0x0f)==12.
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Ethernet)"
bitfld.word 0x8 15. "    HBC ,Heartbeat Checking" "no,yes"
bitfld.word 0x8 14. "  FC ,Force Collision" "nrm,frc"
bitfld.word 0x8 13. "   RSH ,Receive Short Frames" "no,yes"
bitfld.word 0x8 12. "  IAM ,Individual Address Mode" "dis,ena"
bitfld.word 0x8 10.--11. "  CRC ,CRC Selection" "res,res,32B,res"
bitfld.word 0x8 9. "  PRO ,Promiscious" "chk,rec"
bitfld.word 0x8 8. "  BRO ,Broadcast Address" "rec,rej"
textline "              "
bitfld.word 0x8 7. "  SBT ,Stop Backoff Timer" "nrm,stp"
bitfld.word 0x8 6. "  LPB ,Loopback Operation" "nrm,lop"
bitfld.word 0x8 5. "  SIP ,Sample Input Pins" "nrm,spl"
bitfld.word 0x8 4. "  LCW ,Late Collision Window" "64,56"
bitfld.word 0x8 1.--3. "   NIB ,Number of Ignored Bits" "13B,14B,15B,16B,21B,22B,23B,24B"
bitfld.word 0x8 0. "  FDE ,Full Duplex Ethernet" "dis,ena"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Ethernet)"
eventfld.word 0x10 7. "    GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx Error" "no,yes"
eventfld.word 0x10 3. "  RXF ,Rx Frame" "no,yes"
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Ethernet)"
bitfld.word 0x14 7. "    GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx Error" "no,yes"
bitfld.word 0x14 3. "  RXF ,Rx Frame" "no,yes"
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
else
group 0x0a60++0x17
line.word 0x08 "PSMR,SCC Protocol Specific Mode Register (Transparent)"
bitfld.word 0x8 12.--15. "    NOF ,Number of Flags" "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.word 0x8 10.--11. "   CRC ,CRC Selection" "16B,res,32B,res"
bitfld.word 0x8 9. "  RTE ,Retransmit Enable" "no,aut"
bitfld.word 0x8 7. "  FSE ,Flag Sharing Enable" "nrm,sng"
bitfld.word 0x8 6. "  DRT ,Disable Receiver While Transmitting" "nrm,dis"
bitfld.word 0x8 5. "  BUS ,HDLC Bus Mode" "no,yes"
bitfld.word 0x8 4. "  BRM ,HDLC Bus RTS Mode" "no,yes"
bitfld.word 0x8 3. "  MFF ,Multiple Frames in FIFO" "no,yes"
line.word 0x0E "DSR,SCC Data Sync Register"
line.word 0x10 "SCCE,SCC Event Register (Transparent)"
eventfld.word 0x10 12. "    GLr ,Glitch on Rx" "no,yes"
eventfld.word 0x10 11. "  GLt ,Glitch on Tx" "no,yes"
eventfld.word 0x10 10. "  DCC ,DPLL carrier Changed" "no,yes"
eventfld.word 0x10 7. "  GRA ,Graceful Stop Complete" "no,yes"
eventfld.word 0x10 4. "  TXE ,Tx error" "no,yes"
eventfld.word 0x10 3. "  RCH ,Receive Character" "no,yes"
textline "              "
eventfld.word 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.word 0x10 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.word 0x10 0. "  RXB ,Rx Buffer" "no,yes"
line.word 0x14 "SCCM,SCC Mask Register (Transparent)"
bitfld.word 0x14 12. "    GLr ,Glitch on Rx" "no,yes"
bitfld.word 0x14 11. "  GLt ,Glitch on Tx" "no,yes"
bitfld.word 0x14 10. "  DCC ,DPLL carrier Changed" "no,yes"
bitfld.word 0x14 7. "  GRA ,Graceful Stop Complete" "no,yes"
bitfld.word 0x14 4. "  TXE ,Tx error" "no,yes"
bitfld.word 0x14 3. "  RCH ,Receive Character" "no,yes"
textline "              "
bitfld.word 0x14 2. "  BSY ,Busy Condition" "no,yes"
bitfld.word 0x14 1. "  TXB ,Tx Buffer" "no,yes"
bitfld.word 0x14 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x17 "SCCS,SCC Status Register (HDLC)"
bitfld.byte 0x17 1. "    CS ,Carrier Sense" "no,yes"
endif
tree "PRAM"
group 0x3f00++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3f00) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3f00+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SMC1"
group 0x0a80++0x0b
line.word 0x02 "SMCMR1,SMC1 Mode Register"
bitfld.word 0x2 11.--14. "CLEN ,Character Length" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x2 10. "  ME ,Monitor Enable" "no,yes"
bitfld.word 0x2 9. "  MP ,Monitor Protocol" "tspt,intn"
bitfld.word 0x2 8. "  C# ,SCIT Channel Number" "0,1"
bitfld.word 0x2 4.--5. "  SM ,SMC Mode" "GCI/SCIT,res,UART,transp"
bitfld.word 0x2 2.--3. "  DM ,Diagnostic Mode" "nrm,loop,echo,res"
bitfld.word 0x2 1. "  TEN ,SMC Transmit Enable" "no,yes"
bitfld.word 0x2 0. "  REN ,SMC Receive Enable" "no,yes"
line.byte 0x06 "SMCE1,SMC1 Event Register"
eventfld.byte 0x6 3. "CTXB ,C/I Channel Buffer Transmitted" "no,yes"
eventfld.byte 0x6 2. "  CRXB ,C/I Channel Buffer Received" "no,yes"
eventfld.byte 0x6 1. "  MTXB ,Monitor Channel Buffer Transmitted" "no,yes"
eventfld.byte 0x6 0. "  MRXB ,Monitor Channel Buffer Received" "no,yes"
line.byte 0x0a "SMCM1,SMC1 Mask Register"
bitfld.byte 0x0a 3. "CTXB ,C/I Channel Buffer Transmitted Interrupt" "dis,ena"
bitfld.byte 0x0a 2. "  CRXB ,C/I Channel Buffer Received Interrupt" "dis,ena"
bitfld.byte 0x0a 1. "  MTXB ,Monitor Channel Buffer Transmitted Interrupt" "dis,ena"
bitfld.byte 0x0a 0. "  MRXB ,Monitor Channel Buffer Received Interrupt" "dis,ena"
tree "PRAM"
group 0x3e80++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3e80) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3e80+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SMC2"
group 0x0a90++0x0b
line.word 0x02 "SMCMR2,SMC2 Mode Register"
bitfld.word 0x2 11.--14. "CLEN ,Character Length" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"
bitfld.word 0x2 10. "  ME ,Monitor Enable" "no,yes"
bitfld.word 0x2 9. "  MP ,Monitor Protocol" "tspt,intn"
bitfld.word 0x2 8. "  C# ,SCIT Channel Number" "0,1"
bitfld.word 0x2 4.--5. "  SM ,SMC Mode" "GCI/SCIT,res,UART,transp"
bitfld.word 0x2 2.--3. "  DM ,Diagnostic Mode" "nrm,loop,echo,res"
bitfld.word 0x2 1. "  TEN ,SMC Transmit Enable" "no,yes"
bitfld.word 0x2 0. "  REN ,SMC Receive Enable" "no,yes"
line.byte 0x06 "SMCE2,SMC2 Event Register"
eventfld.byte 0x6 3. "CTXB ,C/I Channel Buffer Transmitted" "no,yes"
eventfld.byte 0x6 2. "  CRXB ,C/I Channel Buffer Received" "no,yes"
eventfld.byte 0x6 1. "  MTXB ,Monitor Channel Buffer Transmitted" "no,yes"
eventfld.byte 0x6 0. "  MRXB ,Monitor Channel Buffer Received" "no,yes"
line.byte 0x0a "SMCM2,SMC2 Mask Register"
bitfld.byte 0x0a 3. "CTXB ,C/I Channel Buffer Transmitted Interrupt" "dis,ena"
bitfld.byte 0x0a 2. "  CRXB ,C/I Channel Buffer Received Interrupt" "dis,ena"
bitfld.byte 0x0a 1. "  MTXB ,Monitor Channel Buffer Transmitted Interrupt" "dis,ena"
bitfld.byte 0x0a 0. "  MRXB ,Monitor Channel Buffer Received Interrupt" "dis,ena"
tree "PRAM"
group 0x3f80++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3f80) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3f80+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "SPI (Serial Peripheral Interface)"
group 0x0AA0--0x0AAF
line.word 0x00 "SPMODE,SPI Mode Register"
bitfld.word 0x0 14. "LOOP ,Loop Mode" "norm,loop"
bitfld.word 0x0 13. "  CI ,Clock Invert" "low,high"
bitfld.word 0x0 12. "  CP ,Clock Phase" "mid,begin"
bitfld.word 0x0 11. "  DV16 ,Divide by 16" "1/1,1/16"
bitfld.word 0x0 10. "  REV ,Reverse Data" "rev,norm"
bitfld.word 0x0 9. "  M/S ,Master Slave" "slv,mas"
bitfld.word 0x0 8. "  EN ,Enable SPI" "no,yes"
textline "          "
bitfld.word 0x0 4.--7. "  LEN ,Character Length" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
bitfld.word 0x0 0.--3. "  PM ,Prescaler Modulus Select" "0000,0001,0010,0011,0100,0101,0110,0111,1000,1001,1010,1011,1100,1101,1110,1111"
line.byte 0x06 "SPIE,SPI Event Register"
eventfld.byte 0x6 5. "MME ,Multi Master Error" "no,yes"
eventfld.byte 0x6 4. "  TXE ,Tx Error" "no,yes"
eventfld.byte 0x6 2. "  BSY ,Busy Condition" "no,yes"
eventfld.byte 0x6 1. "  TXB ,Tx Buffer" "no,yes"
eventfld.byte 0x6 0. "  RXB ,Rx Buffer" "no,yes"
line.byte 0x0a "SPIM,SPI Mask Register"
bitfld.byte 0x0a 5. "MME ,Multi Master Error" "dis,ena"
bitfld.byte 0x0a 4. "  TXE ,Tx Error" "dis,ena"
bitfld.byte 0x0a 2. "  BSY ,Busy Condition" "dis,ena"
bitfld.byte 0x0a 1. "  TXB ,Tx Buffer" "dis,ena"
bitfld.byte 0x0a 0. "  RXB ,Rx Buffer" "dis,ena"
line.byte 0x0D "SPCOM,SPI Command Register"
tree "PRAM"
group 0x3d80++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3d80) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3d80+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "I2C Controller"
group 0x860--0x877
line.byte 0x00 "I2MOD,I2C Mode Register"
bitfld.byte 0x0 6. "LOOP ,Loop Mode" "no,yes"
bitfld.byte 0x0 5. "  REVD ,Reverse Data" "nrm,rev"
bitfld.byte 0x0 4. "  GCD ,General Call Disable" "ena,dis"
bitfld.byte 0x0 3. "  FLT ,Clock Filter" "dis,ena"
bitfld.byte 0x0 1.--2. "  PRE ,Pre Divider" "32,16,8,4"
bitfld.byte 0x0 0. "  EN ,Enable I2C" "no,yes"
line.byte 0x04 "I2ADD,I2C Address Register"
line.byte 0x08 "I2BRG,I2C BRG Register"
line.byte 0x0c "I2COM,I2C Command Register"
bitfld.byte 0x0c 7. "STR ,Start Transmit" "no,yes"
bitfld.byte 0x0c 0. "  M/S ,Master Slave" "slv,mas"
line.byte 0x10 "I2CER,I2C Event Register"
eventfld.byte 0x10 4. "TXE ,TX Error" "no,yes"
eventfld.byte 0x10 2. "  BSY ,Busy Condition" "no,yes"
eventfld.byte 0x10 1. "  TXB ,TX Buffer" "no,yes"
eventfld.byte 0x10 0. "  RXB ,RX Buffer" "no,yes"
line.byte 0x14 "I2CMR,I2C Mask Register"
bitfld.byte 0x14 4. "TXE ,TX Error Interrupt" "no,yes"
bitfld.byte 0x14 2. "  BSY ,Busy Condition Interrupt" "no,yes"
bitfld.byte 0x14 1. "  TXB ,TX Buffer Interrupt" "no,yes"
bitfld.byte 0x14 0. "  RXB ,RX Buffer Interrupt" "no,yes"
tree "PRAM"
group 0x3c80++0x23
line.word 0x00 "RBASE,RxBD Base Address"
button "RxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3c80) 8"
line.word 0x02 "TBASE,TxBD Base Address"
button "TxBUFFER" "d.bdtab iobase()+0x2000+d.w(d:iobase()+0x3c80+2) 8"
line.byte 0x04 "RFCR,Rx Function Code"
line.byte 0x05 "TFCR,Tx Function Code"
line.word 0x06 "MRBLR,Maximum Receive Buffer Length"
line.word 0x08 "RSTATE,Rx Internal State"
line.word 0x10 "RBPTR,Rx BD Pointer"
line.word 0x18 "TSTATE,Tx Internal State"
line.word 0x20 "TBPTR,Tx BD Pointer"
tree.end
tree.end
tree "Parallel Interface Port"
group 0x0ab0--0x0ab7 "PIP"
line.word 0x02 "PIPC,PIP Configuration Register"
bitfld.word 0x2 15. "STR ,Start" "no,yes"
bitfld.word 0x2 11. "  SACK ,Set Acknowledge" "no,yes"
bitfld.word 0x2 10. "  CBSY ,Clear Busy" "no,yes"
bitfld.word 0x2 9. "  SBSY ,Set Busy" "no,yes"
bitfld.word 0x2 8. "  EBSY ,Enably Busy" "no,yes"
textline "          "
bitfld.word 0x2 6.--7. "  TMOD ,Timing Mode" "mod0,mod1,mod2,mod3"
bitfld.word 0x2 4.--5. "  MODL ,Mode Low" "I/O,thshk,modh,modh"
bitfld.word 0x2 2.--3. "  MODH ,Mode Low" "I/O,thshk,ihshk,phshk"
bitfld.word 0x2 1. "  HSC ,Host Control" "CPM,CPU"
bitfld.word 0x2 0. "  T/R ,Transmit,Receive Select" "receive,transmit"
line.word 0x06 "PTPR,PIP Timing Parameters Register"
hexmask.byte 0x6 0.--7. 1. "TPAR1 ,Timing Parameter 1"
hexmask.byte 0x7 0.--7. 1. "  TPAR2 ,Timing Parameter 2"
group 0x950--0x957 "Port A"
line.word 0x00 "PADIR,Port A Direction Register"
bit 15. "DR0,Data Direction 0" "in,out"
bit 14. "DR1,Data Direction 1" "in,out"
bit 13. "DR2,Data Direction 2" "in,out"
bit 12. "DR3,Data Direction 3" "in,out"
bit 11. "DR4,Data Direction 4" "in,out"
bit 10. "DR5,Data Direction 5" "in,out"
bit 9. "DR6,Data Direction 6" "in,out"
bit 8. "DR7,Data Direction 7" "in,out"
bit 7. "DR8,Data Direction 8" "in,out"
bit 6. "DR9,Data Direction 9" "in,out"
bit 5. "DR10,Data Direction 10" "in,out"
bit 4. "DR11,Data Direction 11" "in,out"
bit 3. "DR12,Data Direction 12" "in,out"
bit 2. "DR13,Data Direction 13" "in,out"
bit 1. "DR14,Data Direction 14" "in,out"
bit 0. "DR15,Data Direction 15" "in,out"
line.word 0x02 "PAPAR,Port A Pin Assignment Register"
bit 15. "DD0,Pin Assignment 0" "gp,ded"
bit 14. "DD1,Pin Assignment 1" "gp,ded"
bit 13. "DD2,Pin Assignment 2" "gp,ded"
bit 12. "DD3,Pin Assignment 3" "gp,ded"
bit 11. "DD4,Pin Assignment 4" "gp,ded"
bit 10. "DD5,Pin Assignment 5" "gp,ded"
bit 9. "DD6,Pin Assignment 6" "gp,ded"
bit 8. "DD7,Pin Assignment 7" "gp,ded"
bit 7. "DD8,Pin Assignment 8" "gp,ded"
bit 6. "DD9,Pin Assignment 9" "gp,ded"
bit 5. "DD10,Pin Assignment 10" "gp,ded"
bit 4. "DD11,Pin Assignment 11" "gp,ded"
bit 3. "DD12,Pin Assignment 12" "gp,ded"
bit 2. "DD13,Pin Assignment 13" "gp,ded"
bit 1. "DD14,Pin Assignment 14" "gp,ded"
bit 0. "DD15,Pin Assignment 15" "gp,ded"
line.word 0x04 "PAODR,Port A Open Drain Register"
bit 7. "OD8,Open Drain 8" "reg,odr"
bit 6. "OD9,Open Drain 9" "reg,odr"
bit 5. "OD10,Open Drain 10" "reg,odr"
bit 4. "OD11,Open Drain 11" "reg,odr"
bit 3. "OD12,Open Drain 12" "reg,odr"
bit 1. "OD14,Open Drain 14" "reg,odr"
line.word 0x06 "PADAT,Port A Data Register"
bit 15. "D0,Port A D0" "low,high"
bit 14. "D1,Port A D1" "low,high"
bit 13. "D2,Port A D2" "low,high"
bit 12. "D3,Port A D3" "low,high"
bit 11. "D4,Port A D4" "low,high"
bit 10. "D5,Port A D5" "low,high"
bit 9. "D6,Port A D6" "low,high"
bit 8. "D7,Port A D7" "low,high"
bit 7. "D8,Port A D8" "low,high"
bit 6. "D9,Port A D9" "low,high"
bit 5. "D10,Port A D10" "low,high"
bit 4. "D11,Port A D11" "low,high"
bit 3. "D12,Port A D12" "low,high"
bit 2. "D13,Port A D13" "low,high"
bit 1. "D14,Port A D14" "low,high"
bit 0. "D15,Port A D15" "low,high"
group 0x0AB8--0x00AC7 "Port B"
line.long 0x00 "PBDIR,Port B Direction Register"
textline "                                                                     "
bitfld.long 0x00 17. " DR14 ,Data Direction 14" "in,out"
bitfld.long 0x00 16. " DR15 ,Data Direction 15" "in,out"
textline "               "
bitfld.long 0x00 15. " DR16 ,Data Direction 16" "in,out"
bitfld.long 0x00 14. " DR17 ,Data Direction 17" "in,out"
bitfld.long 0x00 13. " DR18 ,Data Direction 18" "in,out"
bitfld.long 0x00 12. " DR19 ,Data Direction 19" "in,out"
bitfld.long 0x00 11. " DR20 ,Data Direction 20" "in,out"
bitfld.long 0x00 10. " DR21 ,Data Direction 21" "in,out"
bitfld.long 0x00 9. " DR22 ,Data Direction 22" "in,out"
bitfld.long 0x00 8. " DR23 ,Data Direction 23" "in,out"
textline "               "
bitfld.long 0x00 7. " DR24 ,Data Direction 24" "in,out"
bitfld.long 0x00 6. " DR25 ,Data Direction 25" "in,out"
bitfld.long 0x00 5. " DR26 ,Data Direction 26" "in,out"
bitfld.long 0x00 4. " DR27 ,Data Direction 27" "in,out"
bitfld.long 0x00 3. " DR28 ,Data Direction 28" "in,out"
bitfld.long 0x00 2. " DR29 ,Data Direction 29" "in,out"
bitfld.long 0x00 1. " DR30 ,Data Direction 30" "in,out"
bitfld.long 0x00 0. " DR31 ,Data Direction 31" "in,out"
line.long 0x04 "PBPAR,Port B Pin Assignment Register"
textline "                                                                     "
bitfld.long 0x04 17. " DD14 ,Pin Assignment 14" "gp,ded"
bitfld.long 0x04 16. " DD15 ,Pin Assignment 15" "gp,ded"
textline "               "
bitfld.long 0x04 15. " DD16 ,Pin Assignment 16" "gp,ded"
bitfld.long 0x04 14. " DD17 ,Pin Assignment 17" "gp,ded"
bitfld.long 0x04 13. " DD18 ,Pin Assignment 18" "gp,ded"
bitfld.long 0x04 12. " DD19 ,Pin Assignment 19" "gp,ded"
bitfld.long 0x04 11. " DD20 ,Pin Assignment 20" "gp,ded"
bitfld.long 0x04 10. " DD21 ,Pin Assignment 21" "gp,ded"
bitfld.long 0x04 9. " DD22 ,Pin Assignment 22" "gp,ded"
bitfld.long 0x04 8. " DD23 ,Pin Assignment 23" "gp,ded"
textline "               "
bitfld.long 0x04 7. " DD24 ,Pin Assignment 24" "gp,ded"
bitfld.long 0x04 6. " DD25 ,Pin Assignment 25" "gp,ded"
bitfld.long 0x04 5. " DD26 ,Pin Assignment 26" "gp,ded"
bitfld.long 0x04 4. " DD27 ,Pin Assignment 27" "gp,ded"
bitfld.long 0x04 3. " DD28 ,Pin Assignment 28" "gp,ded"
bitfld.long 0x04 2. " DD29 ,Pin Assignment 29" "gp,ded"
bitfld.long 0x04 1. " DD30 ,Pin Assignment 30" "gp,ded"
bitfld.long 0x04 0. " DD31 ,Pin Assignment 31" "gp,ded"
line.long 0x08 "PBODR,Port B Open Drain Register"
bitfld.long 0x08 15. "OD16 ,Open Drain 16" "reg,odr"
bitfld.long 0x08 14. " OD17 ,Open Drain 17" "reg,odr"
bitfld.long 0x08 13. " OD18 ,Open Drain 18" "reg,odr"
bitfld.long 0x08 12. " OD19 ,Open Drain 19" "reg,odr"
bitfld.long 0x08 11. " OD20 ,Open Drain 20" "reg,odr"
bitfld.long 0x08 10. " OD21 ,Open Drain 21" "reg,odr"
bitfld.long 0x08 9. " OD22 ,Open Drain 22" "reg,odr"
bitfld.long 0x08 8. " OD23 ,Open Drain 23" "reg,odr"
textline "               "
bitfld.long 0x08 7. " OD24 ,Open Drain 24" "reg,odr"
bitfld.long 0x08 6. " OD25 ,Open Drain 25" "reg,odr"
bitfld.long 0x08 5. " OD26 ,Open Drain 26" "reg,odr"
bitfld.long 0x08 4. " OD27 ,Open Drain 27" "reg,odr"
bitfld.long 0x08 3. " OD28 ,Open Drain 28" "reg,odr"
bitfld.long 0x08 2. " OD29 ,Open Drain 29" "reg,odr"
bitfld.long 0x08 1. " OD30 ,Open Drain 30" "reg,odr"
bitfld.long 0x08 0. " OD31 ,Open Drain 31" "reg,odr"
line.long 0x0C "PBDAT,Port B Data Register"
textline "                                                                     "
bitfld.long 0x0C 17. " D14 ,Port B 14" "low,high"
bitfld.long 0x0C 16. " D15 ,Port B 15" "low,high"
textline "               "
bitfld.long 0x0C 15. " D16 ,Port B 16" "low,high"
bitfld.long 0x0C 14. " D17 ,Port B 17" "low,high"
bitfld.long 0x0C 13. " D18 ,Port B 18" "low,high"
bitfld.long 0x0C 12. " D19 ,Port B 19" "low,high"
bitfld.long 0x0C 11. " D20 ,Port B 20" "low,high"
bitfld.long 0x0C 10. " D21 ,Port B 21" "low,high"
bitfld.long 0x0C 9. " D22 ,Port B 22" "low,high"
bitfld.long 0x0C 8. " D23 ,Port B 23" "low,high"
textline "               "
bitfld.long 0x0C 7. " D24 ,Port B 24" "low,high"
bitfld.long 0x0C 6. " D25 ,Port B 25" "low,high"
bitfld.long 0x0C 5. " D26 ,Port B 26" "low,high"
bitfld.long 0x0C 4. " D27 ,Port B 27" "low,high"
bitfld.long 0x0C 3. " D28 ,Port B 28" "low,high"
bitfld.long 0x0C 2. " D29 ,Port B 29" "low,high"
bitfld.long 0x0C 1. " D30 ,Port B 30" "low,high"
bitfld.long 0x0C 0. " D31 ,Port B 31" "low,high"
group 0x960--0x96b "Port C"
line.word 0x00 "PCDIR,Port C Direction Register"
bit 11. "DR4,Data Direction 4" "in,out"
bit 10. "DR5,Data Direction 5" "in,out"
bit 9. "DR6,Data Direction 6" "in,out"
bit 8. "DR7,Data Direction 7" "in,out"
bit 7. "DR8,Data Direction 8" "in,out"
bit 6. "DR9,Data Direction 9" "in,out"
bit 5. "DR10,Data Direction 10" "in,out"
bit 4. "DR11,Data Direction 11" "in,out"
bit 3. "DR12,Data Direction 12" "in,out"
bit 2. "DR13,Data Direction 13" "in,out"
bit 1. "DR14,Data Direction 14" "in,out"
bit 0. "DR15,Data Direction 15" "in,out"
line.word 0x02 "PCPAR,Port C Pin Assignment Register"
bit 11. "DD4,Pin Assignment 4" "gp,ded"
bit 10. "DD5,Pin Assignment 5" "gp,ded"
bit 9. "DD6,Pin Assignment 6" "gp,ded"
bit 8. "DD7,Pin Assignment 7" "gp,ded"
bit 7. "DD8,Pin Assignment 8" "gp,ded"
bit 6. "DD9,Pin Assignment 9" "gp,ded"
bit 5. "DD10,Pin Assignment 10" "gp,ded"
bit 4. "DD11,Pin Assignment 11" "gp,ded"
bit 3. "DD12,Pin Assignment 12" "gp,ded"
bit 2. "DD13,Pin Assignment 13" "gp,ded"
bit 1. "DD14,Pin Assignment 14" "gp,ded"
bit 0. "DD15,Pin Assignment 15" "gp,ded"
line.word 0x04 "PCSOR,Port C Special Options Register"
bit 11. "CD4,Carrier Detect 4" "no,yes"
bit 10. "CTS4,Clear To Send 4" "no,yes"
bit 9. "CD3,Carrier Detect 3" "no,yes"
bit 8. "CTS3,Clear To Send 3" "no,yes"
bit 7. "CD2,Carrier Detect 2" "no,yes"
bit 6. "CTS2,Clear To Send 2" "no,yes"
bit 5. "CD1,Carrier Detect 1" "no,yes"
bit 4. "CTS1,Clear To Send 1" "no,yes"
bit 1. "EXT1,External Request To DMA 1 or IRQ" "no,yes"
bit 0. "EXT0,External Request To DMA 0 or IRQ" "no,yes"
line.word 0x06 "PCDAT,Port C Data Register"
bit 11. "D4,Port C D4" "low,high"
bit 10. "D5,Port C D5" "low,high"
bit 9. "D6,Port C D6" "low,high"
bit 8. "D7,Port C D7" "low,high"
bit 7. "D8,Port C D8" "low,high"
bit 6. "D9,Port C D9" "low,high"
bit 5. "D10,Port C D10" "low,high"
bit 4. "D11,Port C D11" "low,high"
bit 3. "D12,Port C D12" "low,high"
bit 2. "D13,Port C D13" "low,high"
bit 1. "D14,Port C D14" "low,high"
bit 0. "D15,Port C D15" "low,high"
line.word 0x08 "PCINT,Port C Interrupt Control Register"
bit 11. "ED4,Edge Detect Mode 4" "any,fall"
bit 10. "ED5,Edge Detect Mode 5" "any,fall"
bit 9. "ED6,Edge Detect Mode 6" "any,fall"
bit 8. "ED7,Edge Detect Mode 7" "any,fall"
bit 7. "ED8,Edge Detect Mode 8" "any,fall"
bit 6. "ED9,Edge Detect Mode 9" "any,fall"
bit 5. "ED10,Edge Detect Mode 10" "any,fall"
bit 4. "ED11,Edge Detect Mode 11" "any,fall"
bit 3. "ED12,Edge Detect Mode 12" "any,fall"
bit 2. "ED13,Edge Detect Mode 13" "any,fall"
bit 1. "ED14,Edge Detect Mode 14" "any,fall"
bit 0. "ED15,Edge Detect Mode 15" "any,fall"
group 0x970--0x973 "Port D"
line.word 0x00 "PDDIR,Port D Direction Register"
bit 12. "DR3,Data Direction 3" "in,out"
bit 11. "DR4,Data Direction 4" "in,out"
bit 10. "DR5,Data Direction 5" "in,out"
bit 9. "DR6,Data Direction 6" "in,out"
bit 8. "DR7,Data Direction 7" "in,out"
bit 7. "DR8,Data Direction 8" "in,out"
bit 6. "DR9,Data Direction 9" "in,out"
bit 5. "DR10,Data Direction 10" "in,out"
bit 4. "DR11,Data Direction 11" "in,out"
bit 3. "DR12,Data Direction 12" "in,out"
bit 2. "DR13,Data Direction 13" "in,out"
bit 1. "DR14,Data Direction 14" "in,out"
bit 0. "DR15,Data Direction 15" "in,out"
line.word 0x02 "PDPAR,Port D Pin Assignment Register"
bit 12. "DD3,Pin Assignment 3" "gp,ded"
bit 11. "DD4,Pin Assignment 4" "gp,ded"
bit 10. "DD5,Pin Assignment 5" "gp,ded"
bit 9. "DD6,Pin Assignment 6" "gp,ded"
bit 8. "DD7,Pin Assignment 7" "gp,ded"
bit 7. "DD8,Pin Assignment 8" "gp,ded"
bit 6. "DD9,Pin Assignment 9" "gp,ded"
bit 5. "DD10,Pin Assignment 10" "gp,ded"
bit 4. "DD11,Pin Assignment 11" "gp,ded"
bit 3. "DD12,Pin Assignment 12" "gp,ded"
bit 2. "DD13,Pin Assignment 13" "gp,ded"
bit 1. "DD14,Pin Assignment 14" "gp,ded"
bit 0. "DD15,Pin Assignment 15" "gp,ded"
group 0x974--0x977
line.word 0x02 "PDDAT,Port D Data Register"
bit 12. "D3,Port D D3" "low,high"
bit 11. "D4,Port D D4" "low,high"
bit 10. "D5,Port D D5" "low,high"
bit 9. "D6,Port D D6" "low,high"
bit 8. "D7,Port D D7" "low,high"
bit 7. "D8,Port D D8" "low,high"
bit 6. "D9,Port D D9" "low,high"
bit 5. "D10,Port D D10" "low,high"
bit 4. "D11,Port D D11" "low,high"
bit 3. "D12,Port D D12" "low,high"
bit 2. "D13,Port D D13" "low,high"
bit 1. "D14,Port D D14" "low,high"
bit 0. "D15,Port D D15" "low,high"
tree.end
tree "CPM Interrupt Controller"
group 0x940--0x94f
line.long 0x00 "CICR,CP Interrupt Configuration Register"
bitfld.long 0x00 22.--23. "SCdP ,SCCd Priority Order" "SCC1,SCC2,SCC3,SCC4"
bitfld.long 0x00 20.--21. "  SCcP ,SCCc Priority Order" "SCC1,SCC2,SCC3,SCC4"
bitfld.long 0x00 18.--19. "  SCbP ,SCCb Priority Order" "SCC1,SCC2,SCC3,SCC4"
bitfld.long 0x00 16.--17. "  SCaP ,SCCa Priority Order" "SCC1,SCC2,SCC3,SCC4"
bitfld.long 0x00 13.--15. "  IRL ,Interrupt Request Level" "0,1,2,3,4,5,6,7"
textline "              "
bitfld.long 0x00 8.--12. "  HP ,Highest Priority" "00000,00001,00010,00011,00100,00101,00110,00111,01000,01001,01010,001011,01100,01101,01110,01111,10000,10001,10010,10011,10100,10101,10110,10111,11000,11001,11010,11011,11100,11101,11110,11111"
bitfld.long 0x00 7. "  IEN ,Interrupt Enable" "no,yes"
bitfld.long 0x00 0. "  SPS ,Spread Priority Scheme" "grp,sprd"
line.long 0x04 "CIPR,CP Interrupt Pending Register"
bitfld.long 0x04 31. "PC15 ,PC15 Pending" "no,yes"
bitfld.long 0x04 30. "  SCC1 ,SCC1 Pending" "no,yes"
bitfld.long 0x04 29. "  SCC2 ,SCC2 Pending" "no,yes"
bitfld.long 0x04 28. "  SCC3 ,SCC3 Pending" "no,yes"
bitfld.long 0x04 27. "  SCC4 ,SCC4 Pending" "no,yes"
bitfld.long 0x04 26. "  PC14 ,PC14 Pending" "no,yes"
bitfld.long 0x04 25. " TIMER1 ,TIMER1 Pending" "no,yes"
textline "               "
bitfld.long 0x04 24. " PC13 ,PC13 Pending" "no,yes"
bitfld.long 0x04 23. "  PC12 ,PC12 Pending" "no,yes"
bitfld.long 0x04 22. "  SDMA ,SDMA Pending" "no,yes"
bitfld.long 0x04 21. "  IDMA1 ,IDMA1 Pending" "no,yes"
bitfld.long 0x04 20. " IDMA2 ,IDMA2 Pending" "no,yes"
bitfld.long 0x04 18. " TIMER2 ,TIMER2 Pending" "no,yes"
bitfld.long 0x04 17. "  RTT ,R-TT Pending" "no,yes"
textline "               "
bitfld.long 0x04 16. " I2C ,I2C Pending" "no,yes"
bitfld.long 0x04 15. "   PC11 ,PC11 Pending" "no,yes"
bitfld.long 0x04 14. "  PC10 ,PC10 Pending" "no,yes"
bitfld.long 0x04 12. " TIMER3 ,TIMER3 Pending" "no,yes"
bitfld.long 0x04 11. " PC9 ,PC9 Pending" "no,yes"
bitfld.long 0x04 10. "   PC8 ,PC8 Pending" "no,yes"
bitfld.long 0x04 9.  "     PC7 ,PC7 Pending" "no,yes"
textline "               "
bitfld.long 0x04 7. " TIMER4 ,TIMER4 Pending" "no,yes"
bitfld.long 0x04 6. " PC6 ,PC6 Pending" "no,yes"
bitfld.long 0x04 5. "  SPI ,SPI Pending" "no,yes"
bitfld.long 0x04 4. "   SMC1 ,SMC1 Pending" "no,yes"
bitfld.long 0x04 3. "  SMC2 ,SMC2/PIP Pending" "no,yes"
bitfld.long 0x04 2. "  PC5 ,PC5 Pending" "no,yes"
bitfld.long 0x04 1. "     PC4 ,PC4 Pending" "no,yes"
line.long 0x0C "CISR,CP Interrupt Service Register"
eventfld.long 0x0c 31. "PC15 ,PC15 In Service" "no,yes"
eventfld.long 0x0c 30. "  SCC1 ,SCC1 In Service" "no,yes"
eventfld.long 0x0c 29. "  SCC2 ,SCC2 In Service" "no,yes"
eventfld.long 0x0c 28. "  SCC3 ,SCC3 In Service" "no,yes"
eventfld.long 0x0c 27. "  SCC4 ,SCC4 In Service" "no,yes"
eventfld.long 0x0c 26. "  PC14 ,PC14 In Service" "no,yes"
eventfld.long 0x0c 25. " TIMER1 ,TIMER1 In Service" "no,yes"
textline "               "
eventfld.long 0x0c 24. " PC13 ,PC13 In Service" "no,yes"
eventfld.long 0x0c 23. "  PC12 ,PC12 In Service" "no,yes"
eventfld.long 0x0c 22. "  SDMA ,SDMA In Service" "no,yes"
eventfld.long 0x0c 21. "  IDMA1 ,IDMA1 In Service" "no,yes"
eventfld.long 0x0c 20. " IDMA2 ,IDMA2 In Service" "no,yes"
eventfld.long 0x0c 18. " TIMER2 ,TIMER2 In Service" "no,yes"
eventfld.long 0x0c 17. "  RTT ,R-TT In Service" "no,yes"
textline "               "
eventfld.long 0x0c 16. " I2C ,I2C In Service" "no,yes"
eventfld.long 0x0c 15. "   PC11 ,PC11 In Service" "no,yes"
eventfld.long 0x0c 14. "  PC10 ,PC10 In Service" "no,yes"
eventfld.long 0x0c 12. " TIMER3 ,TIMER3 In Service" "no,yes"
eventfld.long 0x0c 11. " PC9 ,PC9 In Service" "no,yes"
eventfld.long 0x0c 10. "   PC8 ,PC8 In Service" "no,yes"
eventfld.long 0x0c 9.  "     PC7 ,PC7 In Service" "no,yes"
textline "               "
eventfld.long 0x0c 7. " TIMER4 ,TIMER4 In Service" "no,yes"
eventfld.long 0x0c 6. " PC6 ,PC6 In Service" "no,yes"
eventfld.long 0x0c 5. "  SPI ,SPI In Service" "no,yes"
eventfld.long 0x0c 4. "   SMC1 ,SMC1 In Service" "no,yes"
eventfld.long 0x0c 3. "  SMC2 ,SMC2/PIP In Service" "no,yes"
eventfld.long 0x0c 2. "  PC5 ,PC5 In Service" "no,yes"
eventfld.long 0x0c 1. "     PC4 ,PC4 In Service" "no,yes"
line.long 0x08 "CIMR,CP Interrupt Mask Register"
bitfld.long 0x08 31. "PC15 ,PC15 Mask" "no,yes"
bitfld.long 0x08 30. "  SCC1 ,SCC1 Mask" "no,yes"
bitfld.long 0x08 29. "  SCC2 ,SCC2 Mask" "no,yes"
bitfld.long 0x08 28. "  SCC3 ,SCC3 Mask" "no,yes"
bitfld.long 0x08 27. "  SCC4 ,SCC4 Mask" "no,yes"
bitfld.long 0x08 26. "  PC14 ,PC14 Mask" "no,yes"
bitfld.long 0x08 25. " TIMER1 ,TIMER1 Mask" "no,yes"
textline "               "
bitfld.long 0x08 24. " PC13 ,PC13 Mask" "no,yes"
bitfld.long 0x08 23. "  PC12 ,PC12 Mask" "no,yes"
bitfld.long 0x08 22. "  SDMA ,SDMA Mask" "no,yes"
bitfld.long 0x08 21. "  IDMA1 ,IDMA1 Mask" "no,yes"
bitfld.long 0x08 20. " IDMA2 ,IDMA2 Mask" "no,yes"
bitfld.long 0x08 18. " TIMER2 ,TIMER2 Mask" "no,yes"
bitfld.long 0x08 17. "  RTT ,R-TT Mask" "no,yes"
textline "               "
bitfld.long 0x08 16. " I2C ,I2C Mask" "no,yes"
bitfld.long 0x08 15. "   PC11 ,PC11 Mask" "no,yes"
bitfld.long 0x08 14. "  PC10 ,PC10 Mask" "no,yes"
bitfld.long 0x08 12. " TIMER3 ,TIMER3 Mask" "no,yes"
bitfld.long 0x08 11. " PC9 ,PC9 Mask" "no,yes"
bitfld.long 0x08 10. "   PC8 ,PC8 Mask" "no,yes"
bitfld.long 0x08 9.  "     PC7 ,PC7 Mask" "no,yes"
textline "               "
bitfld.long 0x08 7. " TIMER4 ,TIMER4 Mask" "no,yes"
bitfld.long 0x08 6. " PC6 ,PC6 Mask" "no,yes"
bitfld.long 0x08 5. "  SPI ,SPI Mask" "no,yes"
bitfld.long 0x08 4. "   SMC1 ,SMC1 Mask" "no,yes"
bitfld.long 0x08 3. "  SMC2 ,SMC2/PIP Mask" "no,yes"
bitfld.long 0x08 2. "  PC5 ,PC5 Mask" "no,yes"
bitfld.long 0x08 1. "     PC4 ,PC4 Mask" "no,yes"
group 0x930--0x933
line.word 0x00 "CIVR,CP Interrupt Vector Register"
bitfld.word 0x00 11.--15. "    Vector ,Vector Number" "00000,00001,00010,00011,00100,00101,00110,00111,01000,01001,01010,001011,01100,01101,01110,01111,10000,10001,10010,10011,10100,10101,10110,10111,11000,11001,11010,11011,11100,11101,11110,11111"
bitfld.word 0x0 0. "  IACK ,Interrupt Acknowledge" "0,1"
tree.end
tree.end
tree "Fast Ethernet Controller"
group 0x0e00--0x0e1b
line.long 0x00 "ADDR_L,Lower 32-bits of our address"
line.long 0x04 "ADDR_H,Upper 32-bits of our address"
line.long 0x08 "HASH_H,Upper 32-bits of hash table"
line.long 0x0c "HASH_L,Lower 32-bits of hash table"
line.long 0x10 "R_DESS,Beginning of Recv descriptor ring"
button "RxBUFFER" "d.bdtab d.l(d:iobase()+0xe10) 8"
line.long 0x14 "X_DESS,Pointer to beginning of xmit ring"
button "TxBUFFER" "d.bdtab d.l(d:iobase()+0xe14) 8"
line.long 0x18 "R_BUFS,Receive buffer size"
group 0x0e40--0x0e57
line.long 0x00 "ECNTRL,Ethernet Control Register"
bitfld.long 0x0 2. "FEC_MUX ,FEC Pin Multiplexing" "no,yes"
bitfld.long 0x0 1. "  ETHER_EN ,Ethernet Enable" "no,yes"
bitfld.long 0x0 0. "  RESET ,Ethernet Controller Reset" "no,yes"
line.long 0x04 "IEVENT,Interrupt Event Register"
eventfld.long 0x4 31. "HBERR ,Heartbeat Error" "no,yes"
eventfld.long 0x4 30. "  BABR ,Babbling Receive Error" "no,yes"
eventfld.long 0x4 29. "  BABT ,Babbling Transmit Error" "no,yes"
eventfld.long 0x4 28. "  GRA ,Graceful Stop Complete" "no,yes"
textline "              "
eventfld.long 0x4 27. "  TFINT ,Transmit Frame Interrupt" "no,yes"
eventfld.long 0x4 26. "  TXB ,Transmit Buffer Interrupt" "no,yes"
eventfld.long 0x4 25. "    RFINT ,Receive Frame Interrupt" "no,yes"
eventfld.long 0x4 24. "    RXB ,Receive Buffer Interrupt" "no,yes"
eventfld.long 0x4 23. "    MII ,MII Interrupt" "no,yes"
eventfld.long 0x4 22. "    EBERR ,Ethernet Bus Error" "no,yes"
line.long 0x08 "IMASK,Interrupt Mask Register"
bitfld.long 0x8 31. "HBEEN ,Heartbeat Error Interrupt Enable" "no,yes"
bitfld.long 0x8 30. "  BREN ,Babbling Receive Error Interrupt Enable" "no,yes"
bitfld.long 0x8 29. "  BTEN ,Babbling Transmit Error Interrupt Enable" "no,yes"
bitfld.long 0x8 28. "  GRAEN ,Graceful Stop Complete Interrupt Enable" "no,yes"
textline "              "
bitfld.long 0x8 27. "  TFIEN ,Transmit Frame Interrupt Enable" "no,yes"
bitfld.long 0x8 26. "  TBIEN ,Transmit Buffer Interrupt Interrupt Enable" "no,yes"
bitfld.long 0x8 25. "  RFIEN ,Receive Frame Interrupt Enable" "no,yes"
bitfld.long 0x8 24. "  RBIEN ,Receive Buffer Interrupt Enable" "no,yes"
bitfld.long 0x8 23. "  MIIEN ,MII Interrupt Enable" "no,yes"
bitfld.long 0x8 22. "  EBERREN ,Ethernet Bus Error Interrupt Enable" "no,yes"
line.long 0x0c "IVEC,Interrupt Vector Register"
bitfld.long 0x0c 29.--31. "ILEVEL ,Interrupt Level" "0,1,2,3,4,5,6,7"
bitfld.long 0x0c 2.--3. "  IVEC ,Interrupt Vector" "none,no-critial,transmit,receive"
line.long 0x10 "R_DESA,Receive ring updated flag"
line.long 0x14 "X_DESA,Transmit ring updated flag"
group 0x0e80--0x0e87
line.long 0x00 "MII_D,MII Data Register"
line.long 0x04 "MII_S,MII Speed Register"
group 0x0ecc--0x0ed3
line.long 0x00 "R_BND,End of Ram"
line.long 0x04 "R_FS,Receive FIFO start address"
group 0x0eec--0x0eef
line.long 0x00 "X_FS,Transmit FIFO start address"
group 0x0f34--0x0f47
line.long 0x00 "F_COD,Function code to SDMA"
bitfld.long 0x0 29.--30. "DATA_BO ,Data Byte Order" "0,1,2,3"
bitfld.long 0x0 27.--28. "  DESC_BO ,Descriptor Byte Order" "0,1,2,3"
bitfld.long 0x0 24.--26. "  FC ,Function code" "0,1,2,3,4,5,6,7"
group 0x0f44--0x0f4b
line.long 0x00 "R_CTRL,Receive Control Register"
bitfld.long 0x0 3. "PROM ,Promiscuous Mode" "no,yes"
bitfld.long 0x0 2. "  MII_MODE ,MII interface Mode" "no,yes"
bitfld.long 0x0 1. "  DRT ,Disable Receive on Transmit" "no,yes"
bitfld.long 0x0 0. "  LOOP ,Internal Loopback" "no,yes"
line.long 0x04 "R_HASH,Receive Hash Register"
group 0x0f84--0x0f87
line.long 0x00 "X_CTRL,Transmit Control Register"
bitfld.long 0x0 2. "FDEN ,Full Duplex Enable" "no,yes"
bitfld.long 0x0 1. "  HBC ,Heartbeat Control" "no,yes"
bitfld.long 0x0 0. "  GTS ,Graceful Transmit Stop" "no,yes"
tree.end
tree "PCMCIA Interface"
group 0x0E0--0x0EB
line.long 0x00 "PGCRA,PCMCIA Slot A Control"
hexmask.byte 0x0 0.--7. 1. "AIRL ,Interrupt Level for IREQ For Card A"
hexmask.byte 0x1 1.--7. 1. "  ASTL ,Interrupt Level for STSCHG For Card A"
bitfld.long 0x0 14.--15. "  ADRQ ,Card A DMA Request Pin" "dis,dis,ioi,spk"
bitfld.long 0x0 7. "  CAOE ,Card A Output Enable" "no,yes"
bitfld.long 0x0 6. "  ARES ,Card A Reset" "no,yes"
line.long 0x04 "PGCRB,PCMCIA Slot B Control"
hexmask.byte 0x4 0.--7. 1. "BIRL ,Interrupt Level for IREQ For Card B"
hexmask.byte 0x5 0.--7. 1. "  BSTL ,Interrupt Level for STSCHG For Card B"
bitfld.long 0x4 14.--15. "  BDRQ ,Card B DMA Request Pin" "dis,dis,ioi,spk"
bitfld.long 0x4 7. "  CBOE ,Card B Output Enable" "no,yes"
bitfld.long 0x4 6. "  BRES ,Card B Reset" "no,yes"
line.long 0x08 "PSCR,PCMCIA Status"
eventfld.long 0x8 31. "AD1C ,Voltage Sense 1 for Card A changed" "no,yes"
eventfld.long 0x8 30. " AD2C ,Voltage Sense 2 for Card A changed" "no,yes"
eventfld.long 0x8 29. " AWPC ,Write Protect for Card A changed" "no,yes"
eventfld.long 0x8 28. " AC1C ,Card Detect 1 for Card A changed" "no,yes"
eventfld.long 0x8 27. " AC2C ,Card Detect 2 for Card A changed" "no,yes"
eventfld.long 0x8 26. " AV2C ,Battery Voltage/SPKR in for Card B changed" "no,yes"
eventfld.long 0x8 25. " AV1C ,Battery Voltage/STSCHG in for Card B changed" "no,yes"
textline "              "
eventfld.long 0x8 23. "  ARDH ,RDY/IRQ Card A Pin is High" "no,yes"
eventfld.long 0x8 22. " ARDL ,RDY/IRQ Card A Pin is Low" "no,yes"
eventfld.long 0x8 21. " ARDR ,RDY/IRQ Card A Pin Rising Edge detected" "no,yes"
eventfld.long 0x8 20. " ARDF ,RDY/IRQ Card A Pin Falling Edge detected" "no,yes"
eventfld.long 0x8 15. " BD1C ,Voltage Sense 1 for Card B changed" "no,yes"
eventfld.long 0x8 14. " BD2C ,Voltage Sense 2 for Card B changed" "no,yes"
eventfld.long 0x8 13. " BWPC ,Write Protect for Card B changed" "no,yes"
textline "              "
eventfld.long 0x8 12. "  BC1C ,Card Detect 1 for Card B changed" "no,yes"
eventfld.long 0x8 11. " BC2C ,Card Detect 2 for Card B changed" "no,yes"
eventfld.long 0x8 10. " BV2C ,Battery Voltage/SPKR in for Card B changed" "no,yes"
eventfld.long 0x8 9. " BV1C ,Battery Voltage/STSCHG in for Card B changed" "no,yes"
eventfld.long 0x8 7. " BRDH ,RDY/IRQ Card B Pin is High" "no,yes"
eventfld.long 0x8 6. " BRDL ,RDY/IRQ Card B Pin is Low" "no,yes"
eventfld.long 0x8 5. " BRDR ,RDY/IRQ Card B Pin Rising Edge detected" "no,yes"
eventfld.long 0x8 4. " BRDF ,RDY/IRQ Card B Pin Falling Edge detected" "no,yes"
group 0x0F8--0x0FB
line.long 0x00 "PER,PCMCIA Enable"
bitfld.long 0x0 31. "AED1 ,Enable for Voltage Sense 1 for Card A changed" "dis,ena"
bitfld.long 0x0 30. " AED2 ,Enable for Voltage Sense 2 for Card A changed" "dis,ena"
bitfld.long 0x0 29. " AEWP ,Enable for Write Protect for Card A changed" "dis,ena"
bitfld.long 0x0 28. " AEC1 ,Enable for Card Detect 1 for Card A changed" "dis,ena"
bitfld.long 0x0 27. " AEC2 ,Enable for Card Detect 2 for Card A changed" "dis,ena"
bitfld.long 0x0 26. " AEV2 ,Enable for Battery Voltage/SPKR in for Card B changed" "dis,ena"
bitfld.long 0x0 25. " AEV1 ,Enable for Battery Voltage/STSCHG in for Card B changed" "dis,ena"
textline "              "
bitfld.long 0x0 23. "  AERH ,Enable for RDY/IRQ Card A Pin is High" "dis,ena"
bitfld.long 0x0 22. " AERL ,Enable for RDY/IRQ Card A Pin is Low" "dis,ena"
bitfld.long 0x0 21. " AERR ,Enable for RDY/IRQ Card A Pin Rising Edge detected" "dis,ena"
bitfld.long 0x0 20. " AERF ,Enable for RDY/IRQ Card A Pin Falling Edge detected" "dis,ena"
bitfld.long 0x0 15. " BED1 ,Enable for Voltage Sense 1 for Card B changed" "dis,ena"
bitfld.long 0x0 14. " BED2 ,Enable for Voltage Sense 2 for Card B changed" "dis,ena"
bitfld.long 0x0 13. " BEWP ,Enable for Write Protect for Card B changed" "dis,ena"
textline "              "
bitfld.long 0x0 12. "  BEC1 ,Enable for Card Detect 1 for Card B changed" "dis,ena"
bitfld.long 0x0 11. " BEC2 ,Enable for Card Detect 2 for Card B changed" "dis,ena"
bitfld.long 0x0 10. " BEV2 ,Enable for Battery Voltage/SPKR in for Card B changed" "dis,ena"
bitfld.long 0x0 9. " BEV1 ,Enable for Battery Voltage/STSCHG in for Card B changed" "dis,ena"
bitfld.long 0x0 7. " BERH ,Enable for RDY/IRQ Card B Pin is High" "dis,ena"
bitfld.long 0x0 6. " BERL ,Enable for RDY/IRQ Card B Pin is Low" "dis,ena"
bitfld.long 0x0 5. " BERR ,Enable for RDY/IRQ Card B Pin Rising Edge detected" "dis,ena"
bitfld.long 0x0 4. " BERF ,Enable for RDY/IRQ Card B Pin Falling Edge detected" "dis,ena"
group 0x0F0--0x0F3
line.long 0x00 "PIPR,PCMCIA Pins Value"
bitfld.long 0x0 31. "AVS1 ,Voltage Sense 1 for Card A" "no,yes"
bitfld.long 0x0 30. " AVS2 ,Voltage Sense 2 for Card A" "no,yes"
bitfld.long 0x0 29. " CAWP ,Write Protect for Card A" "no,yes"
bitfld.long 0x0 28. " ACD1 ,Card Detect 1 for Card A" "no,yes"
bitfld.long 0x0 27. " ACD2 ,Card Detect 2 for Card A" "no,yes"
bitfld.long 0x0 26. " AVD2 ,Battery Voltage/SPKR in for Card A" "no,yes"
bitfld.long 0x0 25. " AVD1 ,Battery Voltage/STSCHG in for Card A" "no,yes"
bitfld.long 0x0 24. " ARDY ,RDY/IRQ of Card A Pin" "no,yes"
textline "              " 
bitfld.long 0x0 15. "                                      BVS1 ,Voltage Sense 1 for Card B" "no,yes"
bitfld.long 0x0 14. " BVS2 ,Voltage Sense 2 for Card B" "no,yes"
bitfld.long 0x0 13. " CBWP ,Write Protect for Card B" "no,yes"
textline "              " 
bitfld.long 0x0 12. "  BCD1 ,Card Detect 1 for Card B" "no,yes"
bitfld.long 0x0 11. " BCD2 ,Card Detect 2 for Card B" "no,yes"
bitfld.long 0x0 10. " BVD2 ,Battery Voltage/SPKR in for Card B" "no,yes"
bitfld.long 0x0 9. " BVD1 ,Battery Voltage/STSCHG in for Card B" "no,yes"
bitfld.long 0x0 8. " BRDY ,RDY/IRQ of Card B Pin" "no,yes"
group 0x80--0x087 "PCMCIA Option-Base 0"
line.long 0x00 "PBR,PCMCIA Base"
line.long 0x04 "POR,PCMCIA Option"
bitfld.long 0x4 27.--31. "BSIZ ,PCMCIA Bank Size" "1B,2B,8B,4B,128B,64B,16B,32B,32K,16K,4K,8K,256B,512B,2K,1K,res,res,res,res,16M,res,32M,64M,64K,128K,512K,256K,8M,4M,1M,2M"
bitfld.long 0x4 16.--19. " PSHT ,PCMCIA Strobe Hold Time" "no,yes,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x4 12.--15. " PSST ,PCMCIA Strobe Setup Time" "res,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
bitfld.long 0x4 7.--11. " PSL ,PCMCIA Strobe Length" "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32"
bitfld.long 0x4 6. " PPS ,PCMCIA Port Size" "8,16"
bitfld.long 0x4 3.--5. " RSEL ,PCMCIA Region select" "comm,res,attr,i/o,norm,last,res,res"
bitfld.long 0x4 2. " SLOT ,PCMCIA Slot identifier" "A,B"
bitfld.long 0x4 1. " WP ,Write Protect" "no,yes"
bitfld.long 0x4 0. " PVS ,PCMCIA Valid Bit" "no,yes"
group 0x88--0x08f "PCMCIA Option-Base 1"
copy
group 0x90--0x097 "PCMCIA Option-Base 2"
copy
group 0x98--0x09f "PCMCIA Option-Base 3"
copy
group 0x0a0--0x0a7 "PCMCIA Option-Base 4"
copy
group 0x0a8--0x0af "PCMCIA Option-Base 5"
copy
group 0x0b0--0x0b7 "PCMCIA Option-Base 6"
copy
group 0x0b8--0x0bf "PCMCIA Option-Base 7"
copy
tree.end
tree "Development Port"
group spr:149.--149.
hide.long -0x04 "ECR,Exception Cause Register"
in
line.long 0x00 "DER,Debug Enable Register"
bitfld.long 0x0 30. "RSTE   ,Reset" "-,ena"
bitfld.long 0x0 29. "  CHSTPE ,Checkstop" "-,ena"
bitfld.long 0x0 28. "  MCIE   ,Machine Check Interrupt" "-,ena"
bitfld.long 0x0 27. "  DSIE  ,Data Storage Interrupt" "-,ena"
bitfld.long 0x0 26. "  ISIE   ,Instruction Storage Interrupt" "-,ena"
bitfld.long 0x0 25. "  EXTIE ,External Interrupt" "-,ena"
bitfld.long 0x0 24. "  ALIE   ,Alignment Interupt" "-,ena"
bitfld.long 0x0 23. "  PRIE ,Program Interrupt" "-,ena"
textline "              "
bitfld.long 0x0 22. "  FPUVIE ,Folating Point unavailable Interrupt" "-,ena"
bitfld.long 0x0 21. "  DECIE  ,Decrementer Interrupt" "-,ena"
bitfld.long 0x0 18. "  SYSIE  ,System Call Interrupt" "-,ena"
bitfld.long 0x0 17. "  TRE   ,Trace" "-,ena"
bitfld.long 0x0 16. "  FPASIE ,Floating Point assist Interrupt" "-,ena"
bitfld.long 0x0 14. "  SEIE  ,Software Emulation Interrupt" "-,ena"
bitfld.long 0x0 13. "  ITLBMS ,Instruction TLB Miss" "-,ena"
textline "              "
bitfld.long 0x0 12. "  DTLBMS ,Data TLB Miss" "-,ena"
bitfld.long 0x0 11. "  ITLBER ,Instruction TLB Error" "-,ena"
bitfld.long 0x0 10. "  DTLBER ,Data TLB Error" "-,ena"
bitfld.long 0x0 03. "  LBRKE ,L-Bus Breakpoint" "-,ena"
bitfld.long 0x0 02. "  IBRKE  ,I-Bus Breakpoint" "-,ena"
bitfld.long 0x0 01. "  EBRKE ,External Breakpoint" "-,ena"
bitfld.long 0x0 00. "  DPIE   ,Development Port Interrupt" "-,ena"
group spr:158.--158. "I-Bus Control"
line.long 0x00 "ICTL,I-BUS Support Control Register"
bitfld.long 0x0 29.--31. "CTA ,Compare Type A" "not active,lt (cm),gt (cm),ne (cm),equal,less than,greater than,not equal"
bitfld.long 0x0 26.--28. "  CTB ,Compare Type B" "not active,lt (cm),gt (cm),ne (cm),equal,less than,greater than,not equal"
bitfld.long 0x0 23.--25. "  CTC ,Compare Type C" "not active,lt (cm),gt (cm),ne (cm),equal,less than,greater than,not equal"
bitfld.long 0x0 20.--22. "  CTD ,Compare Type D" "not active,lt (cm),gt (cm),ne (cm),equal,less than,greater than,not equal"
textline "              "
bitfld.long 0x0 18.--19. "  IW0 ,I-bus 1st watchpoint" "not active,(1),comp A,comp A&B"
bitfld.long 0x0 16.--17. "    IW1 ,I-bus 2nd watchpoint" "not active,(1),comp B,comp A|B"
bitfld.long 0x0 14.--15. "    IW2 ,I-bus 3rd watchpoint" "not active,(1),comp C,comp C&D"
bitfld.long 0x0 12.--13. "    IW3 ,I-bus 4th watchpoint" "not active,(1),comp D,comp C|D"
textline "              "
bitfld.long 0x0 11. "  DIW0EN ,Development port Trap enable 1st I-bus watchpoint" "no,yes"
bitfld.long 0x0 10. "        DIW1EN ,Development port Trap enable 2nd I-bus watchpoint" "no,yes"
bitfld.long 0x0 9. "        DIW2EN ,Development port Trap enable 3rd I-bus watchpoint" "no,yes"
bitfld.long 0x0 8. "        DIW3EN ,Development port Trap enable 4th I-bus watchpoint" "no,yes"
textline "              "
bitfld.long 0x0 7. "  SIW0EN ,Software Trap enable 1st I-bus watchpoint" "no,yes"
bitfld.long 0x0 6. "        SIW1EN ,Software Trap enable 2nd I-bus watchpoint" "no,yes"
bitfld.long 0x0 5. "        SIW2EN ,Software Trap enable 3rd I-bus watchpoint" "no,yes"
bitfld.long 0x0 4. "        SIW3EN ,Software Trap enable 4th I-bus watchpoint" "no,yes"
textline "              "
bitfld.long 0x0 3. "  IFM ,Ignore first match" "no,yes"
bitfld.long 0x0 0.--2. "  ISCT_SER ,Instruction fetch show cycle and core serialize control" "serialized-all fetches,serialized-all changes,serialized-ind changes,serialized-none,illegal,all changes,ind changes,none"
group spr:144.--147.
line.long 0x00 "CMPA,Comparator A Value Register"
line.long 0x04 "CMPB,Comparator B Value Register"
line.long 0x08 "CMPC,Comparator C Value Register"
line.long 0x0C "CMPD,Comparator D Value Register"
group spr:156.--157. "L-Bus Control"
line.long 0x00 "LCTL1,L-Bus Support Comparators Control"
bitfld.long 0x0 29.--31. "CTE ,Compare Type E" "not active,(1),(2),(3),equal,less than,greater than,not equal"
bitfld.long 0x0 26.--28. "  CTF ,Compare Type F" "not active,(1),(2),(3),equal,less than,greater than,not equal"
bitfld.long 0x0 23.--25. "  CTG ,Compare Type G" "not active,(1),(2),(3),equal,less than,greater than,not equal"
bitfld.long 0x0 20.--22. "  CTH ,Compare Type H" "not active,(1),(2),(3),equal,less than,greater than,not equal"
textline "              "
bitfld.long 0x0 18.--19. "  CRWE ,Select match on read/write E" "don't care,(1),read,write"
bitfld.long 0x0 16.--17. "   CRWF ,Select match on read/write F" "don't care,(1),read,write"
bitfld.long 0x0 14.--15. "   CSG ,Compare size G" "res,word,half word,byte"
bitfld.long 0x0 12.--13. "     CSH ,Compare size H" "res,word,half word,byte"
textline "              "
bitfld.long 0x0 11. "  SUSG ,Signed/Unsigned mode G" "unsigned,signed"
bitfld.long 0x0 10. "     SUSH ,Signed/Unsigned mode H" "unsigned,signed"
bitfld.long 0x0 6.--9. "     CGBMSK ,Byte mask for 1st L-bus comparator" "VVVV,VVVX,VVXV,VVXX,VXVV,VXVX,VXXV,VXXX,XVVV,XVVX,XVXV,XVXX,XXVV,XXVX,XXXV,XXXX"
bitfld.long 0x0 2.--5. "       CHBMSK ,Byte mask for 2nd L-bus comparator" "VVVV,VVVX,VVXV,VVXX,VXVV,VXVX,VXXV,VXXX,XVVV,XVVX,XVXV,XVXX,XXVV,XXVX,XXXV,XXXX"
line.long 0x04 "LCTL2,L-Bus Support Comparators Control"
bitfld.long 0x4 31. "LW0EN ,1st L-bus watchpoint enable" "no,yes"
bitfld.long 0x4 29.--30. "  LW0IA ,1st L-bus watchpoint I-addr selection" "first,second,third,fourth"
bitfld.long 0x4 28. "  LW0IADC ,1st L-bus watchpoint I-addr event compare" "no,yes"
textline "              "
bitfld.long 0x4 26.--27. "  LW0LA ,1st L-bus watchpoint L-addr selection" "comp E,comp F,comp E&F,comp E|F"
bitfld.long 0x4 25. "  LW0LADC ,1st L-bus watchpoint L-addr event compare" "no,yes"
bitfld.long 0x4 23.--24. "  LW0LD ,1st L-bus watchpoint L-data selection" "comp G,comp H,comp G&H,comp G|H"
bitfld.long 0x4 22. "  LW0LDDC ,1st L-bus watchpoint L-data event compare" "no,yes"
textline "              "
bitfld.long 0x4 21. "  LW1EN ,2nd L-bus watchpoint enable" "no,yes"
bitfld.long 0x4 19.--20. "  LW1IA ,2nd L-bus watchpoint I-addr selection" "first,second,third,fourth"
bitfld.long 0x4 18. "  LW1IADC ,2nd L-bus watchpoint I-addr event compare" "no,yes"
textline "              "
bitfld.long 0x4 16.--17. "  LW1LA ,2nd L-bus watchpoint L-addr selection" "comp E,comp F,comp E&F,comp E|F"
bitfld.long 0x4 15. "  LW1LADC ,2nd L-bus watchpoint L-addr event compare" "no,yes"
bitfld.long 0x4 13.--14. "  LW1LD ,2nd L-bus watchpoint L-data selection" "comp G,comp H,comp G&H,comp G|H"
bitfld.long 0x4 12. "  LW1LDDC ,2nd L-bus watchpoint L-data event compare" "no,yes"
textline "              "
bitfld.long 0x4 11. "  BRKNOMSK ,Internal breakpoints non-mask bit" "masked,non-masked"
bitfld.long 0x4 3. "  SLW0EN ,Software trap enable 1st L-bus watchpoint" "no,yes"
bitfld.long 0x4 2. "  SLW1EN ,Software trap enable 2nd L-bus watchpoint" "no,yes"
bitfld.long 0x4 1. "  DLW0EN ,Development port trap enable 1st L-bus watchpoint" "no,yes"
bitfld.long 0x4 0. "  DLW1EN ,Development port trap enable 2nd L-bus watchpoint" "no,yes"
group spr:152.--155.
line.long 0x00 "CMPE,Comparator E Value Register"
line.long 0x04 "CMPF,Comparator F Value Register"
line.long 0x08 "CMPG,Comparator G Value Register"
line.long 0x0C "CMPH,Comparator H Value Register" 
group spr:150.--151. "Breakpoint Control"
line.long 0x00 "CNTA,Breakpoint Counter A Value and Control"
hexmask.long 0x0 16.--31. 1. "CNTV ,Counter preset value"
bitfld.long 0x0 0.--1. "  CNTC ,Counter source select" "no active,I-bus,L-bus,res"
line.long 0x04 "CNTB,Breakpoint Counter B Value and Control"
hexmask.long 0x4 16.--31. 1. "CNTV ,Counter preset value"
bitfld.long 0x4 0.--1. "  CNTC ,Counter source select" "no active,I-bus,L-bus,res"
group spr:159.--159.
line.long 0x00 "BAR,Breakpoint Address Register"
tree.end
