You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

298 lines
16 KiB

  1. ;------------------------------------------------------------------------------
  2. ; C8051F390_defs.inc
  3. ;------------------------------------------------------------------------------
  4. ; Copyright 2011 Silicon Laboratories, Inc.
  5. ; http:; www.silabs.com
  6. ;
  7. ; Program Description:
  8. ;
  9. ; Register/bit definitions for the C8051F39x/37x family.
  10. ;
  11. ;
  12. ; Target: C8051F39x, C8051F37x
  13. ; Tool chain: Generic
  14. ; Command Line: None
  15. ;
  16. ; Release 0.1
  17. ; -28 NOV 2011 (BD)
  18. ; -Initial revision (beta)
  19. ;-----------------------------------------------------------------------------
  20. ; Byte Registers
  21. ;-----------------------------------------------------------------------------
  22. ACC DATA 0E0H ; Accumulator
  23. ADC0CF DATA 0BCH ; ADC0 Configuration
  24. ADC0CN DATA 0E8H ; ADC0 Control
  25. ADC0GTH DATA 0C4H ; ADC0 Greater-Than Compare High
  26. ADC0GTL DATA 0C3H ; ADC0 Greater-Than Compare Low
  27. ADC0H DATA 0BEH ; ADC0 High
  28. ADC0L DATA 0BDH ; ADC0 Low
  29. ADC0LTH DATA 0C6H ; ADC0 Less-Than Compare Word High
  30. ADC0LTL DATA 0C5H ; ADC0 Less-Than Compare Word Low
  31. AMX0N DATA 0BAH ; AMUX0 Negative Channel Select
  32. AMX0P DATA 0BBH ; AMUX0 Positive Channel Select
  33. B DATA 0F0H ; B Register
  34. CKCON DATA 08EH ; Clock Control
  35. CKCON1 DATA 0F4H ; Clock Control 1
  36. CLKSEL DATA 0A9H ; Clock Select
  37. CPT0CN DATA 09BH ; Comparator0 Control
  38. CPT0MD DATA 09DH ; Comparator0 Mode Selection
  39. CPT0MX DATA 09FH ; Comparator0 MUX Selection
  40. CRC0AUTO DATA 0DDH ;
  41. CRC0CN DATA 0DFH ;
  42. CRC0CNT DATA 0DEH ;
  43. CRC0DAT DATA 09EH ;
  44. CRC0FLIP DATA 09AH ;
  45. CRC0IN DATA 09CH ;
  46. DERIVID DATA 0ABH ; Derivative ID
  47. DPH DATA 083H ; Data Pointer High
  48. DPL DATA 082H ; Data Pointer Low
  49. EIE1 DATA 0E6H ; Extended Interrupt Enable 1
  50. EIE2 DATA 0AFH ; Extended Interrupt Enable 2
  51. EIP1 DATA 0F6H ; Extended Interrupt Priority 1
  52. EIP1H DATA 085H ; Extended Interrupt Priority High 1
  53. EIP2 DATA 0BFH ; Extended Interrupt Priority 2
  54. EIP2H DATA 086H ; Extended Interrupt Priority High 2
  55. EMI0CN DATA 0AAH ; External Memory Interface Control
  56. FLKEY DATA 0B7H ; Flash Lock and Key
  57. FLSCL DATA 0B6H ; Flash Scale
  58. IDA0CN DATA 0B9H ; IDAC0 Control
  59. IDA0H DATA 097H ; IDAC0 High Byte
  60. IDA0L DATA 096H ; IDAC0 Low Byte
  61. IDA1CN DATA 0B9H ; IDAC1 Control
  62. IDA1H DATA 097H ; IDAC1 High Byte
  63. IDA1L DATA 096H ; IDAC1 Low Byte
  64. IE DATA 0A8H ; Interrupt Enable
  65. IP DATA 0B8H ; Interrupt Priority
  66. IPH DATA 084H ; Interrupt Priority High
  67. IT01CF DATA 0E4H ; INT0/INT1 Configuration
  68. OSCICL DATA 0B3H ; Internal Oscillator Calibration
  69. OSCICN DATA 0B2H ; Internal Oscillator Control
  70. OSCLCN DATA 0E3H ; Internal Low-Frequency Osc Control
  71. OSCXCN DATA 0B1H ; External Oscillator Control
  72. P0 DATA 080H ; Port 0 Latch
  73. P0MASK DATA 0FEH ; Port 0 Mask Register
  74. P0MAT DATA 0FDH ; Port 0 Match Register
  75. P0MDIN DATA 0F1H ; Port 0 Input Mode Configuration
  76. P0MDOUT DATA 0A4H ; Port 0 Output Mode Configuration
  77. P0SKIP DATA 0D4H ; Port 0 Skip
  78. P1 DATA 090H ; Port 1 Latch
  79. P1MASK DATA 0EEH ; Port 1 Mask Register
  80. P1MAT DATA 0EDH ; Port 1 Match Register
  81. P1MDIN DATA 0F2H ; Port 1 Input Mode Configuration
  82. P1MDOUT DATA 0A5H ; Port 1 Output Mode Configuration
  83. P1SKIP DATA 0D5H ; Port 1 Skip
  84. P2 DATA 0A0H ; Port 2 Latch
  85. P2MDIN DATA 0F3H ; Port 2 Input Mode Configuration
  86. P2MDOUT DATA 0A6H ; Port 2 Output Mode Configuration
  87. P2SKIP DATA 0D6H ; Port 2 Skip
  88. PCA0CLR DATA 0CEH ; PCA Comparator Clear Control
  89. PCA0CN DATA 0D8H ; PCA Control
  90. PCA0CPH0 DATA 0FCH ; PCA Capture 0 High
  91. PCA0CPH1 DATA 0EAH ; PCA Capture 1 High
  92. PCA0CPH2 DATA 0ECH ; PCA Capture 2 High
  93. PCA0CPL0 DATA 0FBH ; PCA Capture 0 Low
  94. PCA0CPL1 DATA 0E9H ; PCA Capture 1 Low
  95. PCA0CPL2 DATA 0EBH ; PCA Capture 2 Low
  96. PCA0CPM0 DATA 0DAH ; PCA Module 0 Mode Register
  97. PCA0CPM1 DATA 0DBH ; PCA Module 1 Mode Register
  98. PCA0CPM2 DATA 0DCH ; PCA Module 2 Mode Register
  99. PCA0H DATA 0FAH ; PCA Counter High
  100. PCA0L DATA 0F9H ; PCA Counter Low
  101. PCA0MD DATA 0D9H ; PCA Mode
  102. PCA0PWM DATA 0F7H ; PCA0 PWM Control
  103. PCON DATA 087H ; Power Control
  104. PFE0CN DATA 0B5H ; Prefetch Engine Control
  105. PSCTL DATA 08FH ; Program Store R/W Control
  106. PSW DATA 0D0H ; Program Status Word
  107. REF0CN DATA 0D1H ; Voltage Reference Control
  108. REG0CN DATA 0C9H ; Voltage Regulator Control
  109. REVISION DATA 0ACH ; Revision
  110. RSTSRC DATA 0EFH ; Reset Source Configuration/Status
  111. SBUF0 DATA 099H ; UART0 Data Buffer
  112. SCON0 DATA 098H ; UART0 Control
  113. SFRPAGE DATA 0A7H ; SFR Page Select
  114. SFRPGCN DATA 0CFH ; SFR Page Control
  115. SFRSTACK DATA 0D3H ; SFR Page Stack
  116. SMB0ADM DATA 0E7H ; SMBus0 Slave Address Mask
  117. SMB0ADR DATA 0D7H ; SMBus0 Slave Address
  118. SMB0CF DATA 0C1H ; SMBus0 Configuration
  119. SMB0CN DATA 0C0H ; SMBus0 Control
  120. SMB0DAT DATA 0C2H ; SMBus0 Data
  121. SMB1ADM DATA 0E7H ; SMBus1 Slave Address Mask
  122. SMB1ADR DATA 0D7H ; SMBus1 Slave Address
  123. SMB1CF DATA 0C1H ; SMBus1 Configuration
  124. SMB1CN DATA 0C0H ; SMBus1 Control
  125. SMB1DAT DATA 0C2H ; SMBus1 Data
  126. SMBTC DATA 0C7H ; SMBus Timing Control
  127. SN0 DATA 0ABH ; Serial Number 0
  128. SN1 DATA 0ACH ; Serial Number 1
  129. SN2 DATA 0ADH ; Serial Number 2
  130. SN3 DATA 0AEH ; Serial Number 3
  131. SP DATA 081H ; Stack Pointer
  132. SPI0CFG DATA 0A1H ; SPI Configuration
  133. SPI0CKR DATA 0A2H ; SPI Clock Rate Control
  134. SPI0CN DATA 0F8H ; SPI Control
  135. SPI0DAT DATA 0A3H ; SPI Data
  136. TCON DATA 088H ; Timer/Counter Control
  137. TH0 DATA 08CH ; Timer/Counter 0 High
  138. TH1 DATA 08DH ; Timer/Counter 1 High
  139. TL0 DATA 08AH ; Timer/Counter 0 Low
  140. TL1 DATA 08BH ; Timer/Counter 1 Low
  141. TMOD DATA 089H ; Timer/Counter Mode
  142. TMR2CN DATA 0C8H ; Timer/Counter 2 Control
  143. TMR2H DATA 0CDH ; Timer/Counter 2 High
  144. TMR2L DATA 0CCH ; Timer/Counter 2 Low
  145. TMR2RLH DATA 0CBH ; Timer/Counter 2 Reload High
  146. TMR2RLL DATA 0CAH ; Timer/Counter 2 Reload Low
  147. TMR3CN DATA 091H ; Timer/Counter 3 Control
  148. TMR3H DATA 095H ; Timer/Counter 3 High
  149. TMR3L DATA 094H ; Timer/Counter 3 Low
  150. TMR3RLH DATA 093H ; Timer/Counter 3 Reload High
  151. TMR3RLL DATA 092H ; Timer/Counter 3 Reload Low
  152. TMR4CN DATA 091H ; Timer/Counter 4 Control
  153. TMR4H DATA 095H ; Timer/Counter 4 High
  154. TMR4L DATA 094H ; Timer/Counter 4 Low
  155. TMR4RLH DATA 093H ; Timer/Counter 4 Reload High
  156. TMR4RLL DATA 092H ; Timer/Counter 4 Reload Low
  157. TMR5CN DATA 0C8H ; Timer/Counter 5 Control
  158. TMR5H DATA 0CDH ; Timer/Counter 5 High
  159. TMR5L DATA 0CCH ; Timer/Counter 5 Low
  160. TMR5RLH DATA 0CBH ; Timer/Counter 5 Reload High
  161. TMR5RLL DATA 0CAH ; Timer/Counter 5 Reload Low
  162. TS0CN DATA 0D2H ; Temperature Sensor Control
  163. TS0DATL DATA 0D2H ; Temperature Sensor Data Low
  164. TS0DATH DATA 0D3H ; Temperature Sensor Data High
  165. VDM0CN DATA 0FFH ; VDD Monitor Control
  166. XBR0 DATA 0E1H ; Port I/O Crossbar Control 0
  167. XBR1 DATA 0E2H ; Port I/O Crossbar Control 1
  168. ; -----------------------------------------------------------------------------
  169. ; Bit Definitions
  170. ; -----------------------------------------------------------------------------
  171. ; TCON 088H
  172. TF1 BIT 08FH ; Timer 1 Overflow Flag
  173. TR1 BIT 08EH ; Timer 1 On/Off Control
  174. TF0 BIT 08DH ; Timer 0 Overflow Flag
  175. TR0 BIT 08CH ; Timer 0 On/Off Control
  176. IE1 BIT 08BH ; Ext. Interrupt 1 Edge Flag
  177. IT1 BIT 08AH ; Ext. Interrupt 1 Type
  178. IE0 BIT 089H ; Ext. Interrupt 0 Edge Flag
  179. IT0 BIT 088H ; Ext. Interrupt 0 Type
  180. ; SCON0 098H
  181. S0MODE BIT 09FH ; UART0 Mode
  182. ; Bit6 UNUSED
  183. MCE0 BIT 09DH ; UART0 MCE
  184. REN0 BIT 09CH ; UART0 RX Enable
  185. TB80 BIT 09BH ; UART0 TX Bit 8
  186. RB80 BIT 09AH ; UART0 RX Bit 8
  187. TI0 BIT 099H ; UART0 TX Interrupt Flag
  188. RI0 BIT 098H ; UART0 RX Interrupt Flag
  189. ; IE 0A8H
  190. EA BIT 0AFH ; Global Interrupt Enable
  191. ESPI0 BIT 0AEH ; SPI0 Interrupt Enable
  192. ET2 BIT 0ADH ; Timer 2 Interrupt Enable
  193. ES0 BIT 0ACH ; UART0 Interrupt Enable
  194. ET1 BIT 0ABH ; Timer 1 Interrupt Enable
  195. EX1 BIT 0AAH ; External Interrupt 1 Enable
  196. ET0 BIT 0A9H ; Timer 0 Interrupt Enable
  197. EX0 BIT 0A8H ; External Interrupt 0 Enable
  198. ; IP 0B8H
  199. ; Bit7 UNUSED
  200. PSPI0 BIT 0BEH ; SPI0 Priority
  201. PT2 BIT 0BDH ; Timer 2 Priority
  202. PS0 BIT 0BCH ; UART0 Priority
  203. PT1 BIT 0BBH ; Timer 1 Priority
  204. PX1 BIT 0BAH ; External Interrupt 1 Priority
  205. PT0 BIT 0B9H ; Timer 0 Priority
  206. PX0 BIT 0B8H ; External Interrupt 0 Priority
  207. ; SMB0CN 0C0H
  208. MASTER0 BIT 0C7H ; SMBus0 Master/Slave
  209. TXMODE0 BIT 0C6H ; SMBus0 Transmit Mode
  210. STA0 BIT 0C5H ; SMBus0 Start Flag
  211. STO0 BIT 0C4H ; SMBus0 Stop Flag
  212. ACKRQ0 BIT 0C3H ; SMBus0 Acknowledge Request
  213. ARBLOST0 BIT 0C2H ; SMBus0 Arbitration Lost
  214. ACK0 BIT 0C1H ; SMBus0 Acknowledge Flag
  215. SI0 BIT 0C0H ; SMBus0 Interrupt Pending Flag
  216. ; SMB1CN 0C0H
  217. MASTER1 BIT 0C7H ; SMBus1 Master/Slave
  218. TXMODE1 BIT 0C6H ; SMBus1 Transmit Mode
  219. STA1 BIT 0C5H ; SMBus1 Start Flag
  220. STO1 BIT 0C4H ; SMBus1 Stop Flag
  221. ACKRQ1 BIT 0C3H ; SMBus1 Acknowledge Request
  222. ARBLOST1 BIT 0C2H ; SMBus1 Arbitration Lost
  223. ACK1 BIT 0C1H ; SMBus1 Acknowledge Flag
  224. SI1 BIT 0C0H ; SMBus1 Interrupt Pending Flag
  225. ; TMR2CN 0C8H
  226. TF2H BIT 0CFH ; Timer 2 High Byte Overflow Flag
  227. TF2L BIT 0CEH ; Timer 2 Low Byte Overflow Flag
  228. TF2LEN BIT 0CDH ; Timer 2 Low Byte Interrupt Enable
  229. TF2CEN BIT 0CCH ; Timer 2 Lfo Capture Enable
  230. T2SPLIT BIT 0CBH ; Timer 2 Split Mode Enable
  231. TR2 BIT 0CAH ; Timer 2 On/Off Control
  232. ; Bit6 UNUSED
  233. T2XCLK BIT 0C8H ; Timer 2 External Clock Select
  234. ; TMR5CN 0C8H
  235. TF5H BIT 0CFH ; Timer 5 High Byte Overflow Flag
  236. TF5L BIT 0CEH ; Timer 5 Low Byte Overflow Flag
  237. TF5LEN BIT 0CDH ; Timer 5 Low Byte Interrupt Enable
  238. ; Bit4 UNUSED
  239. T5SPLIT BIT 0CBH ; Timer 5 Split Mode Enable
  240. TR5 BIT 0CAH ; Timer 5 On/Off Control
  241. ; Bit1 UNUSED
  242. T5XCLK BIT 0C8H ; Timer 5 External Clock Select
  243. ; PSW 0D0H
  244. CY BIT 0D7H ; Carry Flag
  245. AC BIT 0D6H ; Auxiliary Carry Flag
  246. F0 BIT 0D5H ; User Flag 0
  247. RS1 BIT 0D4H ; Register Bank Select 1
  248. RS0 BIT 0D3H ; Register Bank Select 0
  249. OV BIT 0D2H ; Overflow Flag
  250. F1 BIT 0D1H ; User Flag 1
  251. P BIT 0D0H ; Accumulator Parity Flag
  252. ; PCA0CN 0D8H
  253. CF BIT 0DFH ; PCA0 Counter Overflow Flag
  254. CR BIT 0DEH ; PCA0 Counter Run Control Bit
  255. ; Bit5 UNUSED
  256. ; Bit4 UNUSED
  257. ; Bit3 UNUSED
  258. CCF2 BIT 0DAH ; PCA0 Module 2 Interrupt Flag
  259. CCF1 BIT 0D9H ; PCA0 Module 1 Interrupt Flag
  260. CCF0 BIT 0D8H ; PCA0 Module 0 Interrupt Flag
  261. ; ADC0CN 0E8H
  262. AD0EN BIT 0EFH ; ADC0 Enable
  263. AD0TM BIT 0EEH ; ADC0 Track Mode
  264. AD0INT BIT 0EDH ; ADC0 EOC Interrupt Flag
  265. AD0BUSY BIT 0ECH ; ADC0 Busy Flag
  266. AD0WINT BIT 0EBH ; ADC0 Window Interrupt Flag
  267. AD0CM2 BIT 0EAH ; ADC0 Convert Start Mode Bit 2
  268. AD0CM1 BIT 0E9H ; ADC0 Convert Start Mode Bit 1
  269. AD0CM0 BIT 0E8H ; ADC0 Convert Start Mode Bit 0
  270. ; SPI0CN 0F8H
  271. SPIF BIT 0FFH ; SPI0 Interrupt Flag
  272. WCOL BIT 0FEH ; SPI0 Write Collision Flag
  273. MODF BIT 0FDH ; SPI0 Mode Fault Flag
  274. RXOVRN BIT 0FCH ; SPI0 RX Overrun Flag
  275. NSSMD1 BIT 0FBH ; SPI0 Slave Select Mode 1
  276. NSSMD0 BIT 0FAH ; SPI0 Slave Select Mode 0
  277. TXBMT BIT 0F9H ; SPI0 TX Buffer Empty Flag
  278. SPIEN BIT 0F8H ; SPI0 SPI0 Enable
  279. ; -----------------------------------------------------------------------------
  280. ; End Of File
  281. ; -----------------------------------------------------------------------------