hw_adc.h 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  1. //###########################################################################
  2. //
  3. // FILE: hw_adc.h
  4. //
  5. // TITLE: Definitions for the C28x ADC registers.
  6. //
  7. //###########################################################################
  8. // $TI Release: F2837xD Support Library v3.05.00.00 $
  9. // $Release Date: Tue Jun 26 03:15:23 CDT 2018 $
  10. // $Copyright:
  11. // Copyright (C) 2013-2018 Texas Instruments Incorporated - http://www.ti.com/
  12. //
  13. // Redistribution and use in source and binary forms, with or without
  14. // modification, are permitted provided that the following conditions
  15. // are met:
  16. //
  17. // Redistributions of source code must retain the above copyright
  18. // notice, this list of conditions and the following disclaimer.
  19. //
  20. // Redistributions in binary form must reproduce the above copyright
  21. // notice, this list of conditions and the following disclaimer in the
  22. // documentation and/or other materials provided with the
  23. // distribution.
  24. //
  25. // Neither the name of Texas Instruments Incorporated nor the names of
  26. // its contributors may be used to endorse or promote products derived
  27. // from this software without specific prior written permission.
  28. //
  29. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  30. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  31. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  32. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  33. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  34. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  35. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  36. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  37. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  38. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  39. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  40. // $
  41. //###########################################################################
  42. #ifndef __HW_ADC_H__
  43. #define __HW_ADC_H__
  44. //*****************************************************************************
  45. //
  46. // The following are defines for the ADC register offsets
  47. //
  48. //*****************************************************************************
  49. #define ADC_O_CTL1 0x0 // ADC Control 1 Register
  50. #define ADC_O_CTL2 0x1 // ADC Control 2 Register
  51. #define ADC_O_BURSTCTL 0x2 // ADC Burst Control Register
  52. #define ADC_O_INTFLG 0x3 // ADC Interrupt Flag Register
  53. #define ADC_O_INTFLGCLR 0x4 // ADC Interrupt Flag Clear
  54. // Register
  55. #define ADC_O_INTOVF 0x5 // ADC Interrupt Overflow Register
  56. #define ADC_O_INTOVFCLR 0x6 // ADC Interrupt Overflow Clear
  57. // Register
  58. #define ADC_O_INTSEL1N2 0x7 // ADC Interrupt 1 and 2 Selection
  59. // Register
  60. #define ADC_O_INTSEL3N4 0x8 // ADC Interrupt 3 and 4 Selection
  61. // Register
  62. #define ADC_O_SOCPRICTL 0x9 // ADC SOC Priority Control
  63. // Register
  64. #define ADC_O_INTSOCSEL1 0xA // ADC Interrupt SOC Selection 1
  65. // Register
  66. #define ADC_O_INTSOCSEL2 0xB // ADC Interrupt SOC Selection 2
  67. // Register
  68. #define ADC_O_SOCFLG1 0xC // ADC SOC Flag 1 Register
  69. #define ADC_O_SOCFRC1 0xD // ADC SOC Force 1 Register
  70. #define ADC_O_SOCOVF1 0xE // ADC SOC Overflow 1 Register
  71. #define ADC_O_SOCOVFCLR1 0xF // ADC SOC Overflow Clear 1
  72. // Register
  73. #define ADC_O_SOC0CTL 0x10 // ADC SOC0 Control Register
  74. #define ADC_O_SOC1CTL 0x12 // ADC SOC1 Control Register
  75. #define ADC_O_SOC2CTL 0x14 // ADC SOC2 Control Register
  76. #define ADC_O_SOC3CTL 0x16 // ADC SOC3 Control Register
  77. #define ADC_O_SOC4CTL 0x18 // ADC SOC4 Control Register
  78. #define ADC_O_SOC5CTL 0x1A // ADC SOC5 Control Register
  79. #define ADC_O_SOC6CTL 0x1C // ADC SOC6 Control Register
  80. #define ADC_O_SOC7CTL 0x1E // ADC SOC7 Control Register
  81. #define ADC_O_SOC8CTL 0x20 // ADC SOC8 Control Register
  82. #define ADC_O_SOC9CTL 0x22 // ADC SOC9 Control Register
  83. #define ADC_O_SOC10CTL 0x24 // ADC SOC10 Control Register
  84. #define ADC_O_SOC11CTL 0x26 // ADC SOC11 Control Register
  85. #define ADC_O_SOC12CTL 0x28 // ADC SOC12 Control Register
  86. #define ADC_O_SOC13CTL 0x2A // ADC SOC13 Control Register
  87. #define ADC_O_SOC14CTL 0x2C // ADC SOC14 Control Register
  88. #define ADC_O_SOC15CTL 0x2E // ADC SOC15 Control Register
  89. #define ADC_O_EVTSTAT 0x30 // ADC Event Status Register
  90. #define ADC_O_EVTCLR 0x32 // ADC Event Clear Register
  91. #define ADC_O_EVTSEL 0x34 // ADC Event Selection Register
  92. #define ADC_O_EVTINTSEL 0x36 // ADC Event Interrupt Selection
  93. // Register
  94. #define ADC_O_COUNTER 0x39 // ADC Counter Register
  95. #define ADC_O_REV 0x3A // ADC Revision Register
  96. #define ADC_O_OFFTRIM 0x3B // ADC Offset Trim Register
  97. #define ADC_O_PPB1CONFIG 0x40 // ADC PPB1 Config Register
  98. #define ADC_O_PPB1STAMP 0x41 // ADC PPB1 Sample Delay Time
  99. // Stamp Register
  100. #define ADC_O_PPB1OFFCAL 0x42 // ADC PPB1 Offset Calibration
  101. // Register
  102. #define ADC_O_PPB1OFFREF 0x43 // ADC PPB1 Offset Reference
  103. // Register
  104. #define ADC_O_PPB1TRIPHI 0x44 // ADC PPB1 Trip High Register
  105. #define ADC_O_PPB1TRIPLO 0x46 // ADC PPB1 Trip Low/Trigger Time
  106. // Stamp Register
  107. #define ADC_O_PPB2CONFIG 0x48 // ADC PPB2 Config Register
  108. #define ADC_O_PPB2STAMP 0x49 // ADC PPB2 Sample Delay Time
  109. // Stamp Register
  110. #define ADC_O_PPB2OFFCAL 0x4A // ADC PPB2 Offset Calibration
  111. // Register
  112. #define ADC_O_PPB2OFFREF 0x4B // ADC PPB2 Offset Reference
  113. // Register
  114. #define ADC_O_PPB2TRIPHI 0x4C // ADC PPB2 Trip High Register
  115. #define ADC_O_PPB2TRIPLO 0x4E // ADC PPB2 Trip Low/Trigger Time
  116. // Stamp Register
  117. #define ADC_O_PPB3CONFIG 0x50 // ADC PPB3 Config Register
  118. #define ADC_O_PPB3STAMP 0x51 // ADC PPB3 Sample Delay Time
  119. // Stamp Register
  120. #define ADC_O_PPB3OFFCAL 0x52 // ADC PPB3 Offset Calibration
  121. // Register
  122. #define ADC_O_PPB3OFFREF 0x53 // ADC PPB3 Offset Reference
  123. // Register
  124. #define ADC_O_PPB3TRIPHI 0x54 // ADC PPB3 Trip High Register
  125. #define ADC_O_PPB3TRIPLO 0x56 // ADC PPB3 Trip Low/Trigger Time
  126. // Stamp Register
  127. #define ADC_O_PPB4CONFIG 0x58 // ADC PPB4 Config Register
  128. #define ADC_O_PPB4STAMP 0x59 // ADC PPB4 Sample Delay Time
  129. // Stamp Register
  130. #define ADC_O_PPB4OFFCAL 0x5A // ADC PPB4 Offset Calibration
  131. // Register
  132. #define ADC_O_PPB4OFFREF 0x5B // ADC PPB4 Offset Reference
  133. // Register
  134. #define ADC_O_PPB4TRIPHI 0x5C // ADC PPB4 Trip High Register
  135. #define ADC_O_PPB4TRIPLO 0x5E // ADC PPB4 Trip Low/Trigger Time
  136. // Stamp Register
  137. #define ADC_O_RESULT0 0x0 // ADC Result 0 Register
  138. #define ADC_O_RESULT1 0x1 // ADC Result 1 Register
  139. #define ADC_O_RESULT2 0x2 // ADC Result 2 Register
  140. #define ADC_O_RESULT3 0x3 // ADC Result 3 Register
  141. #define ADC_O_RESULT4 0x4 // ADC Result 4 Register
  142. #define ADC_O_RESULT5 0x5 // ADC Result 5 Register
  143. #define ADC_O_RESULT6 0x6 // ADC Result 6 Register
  144. #define ADC_O_RESULT7 0x7 // ADC Result 7 Register
  145. #define ADC_O_RESULT8 0x8 // ADC Result 8 Register
  146. #define ADC_O_RESULT9 0x9 // ADC Result 9 Register
  147. #define ADC_O_RESULT10 0xA // ADC Result 10 Register
  148. #define ADC_O_RESULT11 0xB // ADC Result 11 Register
  149. #define ADC_O_RESULT12 0xC // ADC Result 12 Register
  150. #define ADC_O_RESULT13 0xD // ADC Result 13 Register
  151. #define ADC_O_RESULT14 0xE // ADC Result 14 Register
  152. #define ADC_O_RESULT15 0xF // ADC Result 15 Register
  153. #define ADC_O_PPB1RESULT 0x10 // ADC Post Processing Block 1
  154. // Result Register
  155. #define ADC_O_PPB2RESULT 0x12 // ADC Post Processing Block 2
  156. // Result Register
  157. #define ADC_O_PPB3RESULT 0x14 // ADC Post Processing Block 3
  158. // Result Register
  159. #define ADC_O_PPB4RESULT 0x16 // ADC Post Processing Block 4
  160. // Result Register
  161. //*****************************************************************************
  162. //
  163. // The following are defines for the bit fields in the ADCCTL1 register
  164. //
  165. //*****************************************************************************
  166. #define ADC_CTL1_INTPULSEPOS 0x4 // ADC Interrupt Pulse Position
  167. #define ADC_CTL1_ADCPWDNZ 0x80 // ADC Power Down
  168. #define ADC_CTL1_ADCBSYCHN_S 8
  169. #define ADC_CTL1_ADCBSYCHN_M 0xF00 // ADC Busy Channel
  170. #define ADC_CTL1_ADCBSY 0x2000 // ADC Busy
  171. //*****************************************************************************
  172. //
  173. // The following are defines for the bit fields in the ADCCTL2 register
  174. //
  175. //*****************************************************************************
  176. #define ADC_CTL2_PRESCALE_S 0
  177. #define ADC_CTL2_PRESCALE_M 0xF // ADC Clock Prescaler
  178. #define ADC_CTL2_RESOLUTION 0x40 // SOC Conversion Resolution
  179. #define ADC_CTL2_SIGNALMODE 0x80 // SOC Signaling Mode
  180. //*****************************************************************************
  181. //
  182. // The following are defines for the bit fields in the ADCBURSTCTL register
  183. //
  184. //*****************************************************************************
  185. #define ADC_BURSTCTL_BURSTTRIGSEL_S 0
  186. #define ADC_BURSTCTL_BURSTTRIGSEL_M 0x3F // SOC Burst Trigger Source Select
  187. #define ADC_BURSTCTL_BURSTSIZE_S 8
  188. #define ADC_BURSTCTL_BURSTSIZE_M 0xF00 // SOC Burst Size Select
  189. #define ADC_BURSTCTL_BURSTEN 0x8000 // SOC Burst Mode Enable
  190. //*****************************************************************************
  191. //
  192. // The following are defines for the bit fields in the ADCINTFLG register
  193. //
  194. //*****************************************************************************
  195. #define ADC_INTFLG_ADCINT1 0x1 // ADC Interrupt 1 Flag
  196. #define ADC_INTFLG_ADCINT2 0x2 // ADC Interrupt 2 Flag
  197. #define ADC_INTFLG_ADCINT3 0x4 // ADC Interrupt 3 Flag
  198. #define ADC_INTFLG_ADCINT4 0x8 // ADC Interrupt 4 Flag
  199. //*****************************************************************************
  200. //
  201. // The following are defines for the bit fields in the ADCINTFLGCLR register
  202. //
  203. //*****************************************************************************
  204. #define ADC_INTFLGCLR_ADCINT1 0x1 // ADC Interrupt 1 Flag Clear
  205. #define ADC_INTFLGCLR_ADCINT2 0x2 // ADC Interrupt 2 Flag Clear
  206. #define ADC_INTFLGCLR_ADCINT3 0x4 // ADC Interrupt 3 Flag Clear
  207. #define ADC_INTFLGCLR_ADCINT4 0x8 // ADC Interrupt 4 Flag Clear
  208. //*****************************************************************************
  209. //
  210. // The following are defines for the bit fields in the ADCINTOVF register
  211. //
  212. //*****************************************************************************
  213. #define ADC_INTOVF_ADCINT1 0x1 // ADC Interrupt 1 Overflow Flags
  214. #define ADC_INTOVF_ADCINT2 0x2 // ADC Interrupt 2 Overflow Flags
  215. #define ADC_INTOVF_ADCINT3 0x4 // ADC Interrupt 3 Overflow Flags
  216. #define ADC_INTOVF_ADCINT4 0x8 // ADC Interrupt 4 Overflow Flags
  217. //*****************************************************************************
  218. //
  219. // The following are defines for the bit fields in the ADCINTOVFCLR register
  220. //
  221. //*****************************************************************************
  222. #define ADC_INTOVFCLR_ADCINT1 0x1 // ADC Interrupt 1 Overflow Clear
  223. // Bits
  224. #define ADC_INTOVFCLR_ADCINT2 0x2 // ADC Interrupt 2 Overflow Clear
  225. // Bits
  226. #define ADC_INTOVFCLR_ADCINT3 0x4 // ADC Interrupt 3 Overflow Clear
  227. // Bits
  228. #define ADC_INTOVFCLR_ADCINT4 0x8 // ADC Interrupt 4 Overflow Clear
  229. // Bits
  230. //*****************************************************************************
  231. //
  232. // The following are defines for the bit fields in the ADCINTSEL1N2 register
  233. //
  234. //*****************************************************************************
  235. #define ADC_INTSEL1N2_INT1SEL_S 0
  236. #define ADC_INTSEL1N2_INT1SEL_M 0xF // ADCINT1 EOC Source Select
  237. #define ADC_INTSEL1N2_INT1E 0x20 // ADCINT1 Interrupt Enable
  238. #define ADC_INTSEL1N2_INT1CONT 0x40 // ADCINT1 Continuous Mode Enable
  239. #define ADC_INTSEL1N2_INT2SEL_S 8
  240. #define ADC_INTSEL1N2_INT2SEL_M 0xF00 // ADCINT2 EOC Source Select
  241. #define ADC_INTSEL1N2_INT2E 0x2000 // ADCINT2 Interrupt Enable
  242. #define ADC_INTSEL1N2_INT2CONT 0x4000 // ADCINT2 Continuous Mode Enable
  243. //*****************************************************************************
  244. //
  245. // The following are defines for the bit fields in the ADCINTSEL3N4 register
  246. //
  247. //*****************************************************************************
  248. #define ADC_INTSEL3N4_INT3SEL_S 0
  249. #define ADC_INTSEL3N4_INT3SEL_M 0xF // ADCINT3 EOC Source Select
  250. #define ADC_INTSEL3N4_INT3E 0x20 // ADCINT3 Interrupt Enable
  251. #define ADC_INTSEL3N4_INT3CONT 0x40 // ADCINT3 Continuous Mode Enable
  252. #define ADC_INTSEL3N4_INT4SEL_S 8
  253. #define ADC_INTSEL3N4_INT4SEL_M 0xF00 // ADCINT4 EOC Source Select
  254. #define ADC_INTSEL3N4_INT4E 0x2000 // ADCINT4 Interrupt Enable
  255. #define ADC_INTSEL3N4_INT4CONT 0x4000 // ADCINT4 Continuous Mode Enable
  256. //*****************************************************************************
  257. //
  258. // The following are defines for the bit fields in the ADCSOCPRICTL register
  259. //
  260. //*****************************************************************************
  261. #define ADC_SOCPRICTL_SOCPRIORITY_S 0
  262. #define ADC_SOCPRICTL_SOCPRIORITY_M 0x1F // SOC Priority
  263. #define ADC_SOCPRICTL_RRPOINTER_S 5
  264. #define ADC_SOCPRICTL_RRPOINTER_M 0x3E0 // Round Robin Pointer
  265. //*****************************************************************************
  266. //
  267. // The following are defines for the bit fields in the ADCINTSOCSEL1 register
  268. //
  269. //*****************************************************************************
  270. #define ADC_INTSOCSEL1_SOC0_S 0
  271. #define ADC_INTSOCSEL1_SOC0_M 0x3 // SOC0 ADC Interrupt Trigger
  272. // Select
  273. #define ADC_INTSOCSEL1_SOC1_S 2
  274. #define ADC_INTSOCSEL1_SOC1_M 0xC // SOC1 ADC Interrupt Trigger
  275. // Select
  276. #define ADC_INTSOCSEL1_SOC2_S 4
  277. #define ADC_INTSOCSEL1_SOC2_M 0x30 // SOC2 ADC Interrupt Trigger
  278. // Select
  279. #define ADC_INTSOCSEL1_SOC3_S 6
  280. #define ADC_INTSOCSEL1_SOC3_M 0xC0 // SOC3 ADC Interrupt Trigger
  281. // Select
  282. #define ADC_INTSOCSEL1_SOC4_S 8
  283. #define ADC_INTSOCSEL1_SOC4_M 0x300 // SOC4 ADC Interrupt Trigger
  284. // Select
  285. #define ADC_INTSOCSEL1_SOC5_S 10
  286. #define ADC_INTSOCSEL1_SOC5_M 0xC00 // SOC5 ADC Interrupt Trigger
  287. // Select
  288. #define ADC_INTSOCSEL1_SOC6_S 12
  289. #define ADC_INTSOCSEL1_SOC6_M 0x3000 // SOC6 ADC Interrupt Trigger
  290. // Select
  291. #define ADC_INTSOCSEL1_SOC7_S 14
  292. #define ADC_INTSOCSEL1_SOC7_M 0xC000 // SOC7 ADC Interrupt Trigger
  293. // Select
  294. //*****************************************************************************
  295. //
  296. // The following are defines for the bit fields in the ADCINTSOCSEL2 register
  297. //
  298. //*****************************************************************************
  299. #define ADC_INTSOCSEL2_SOC8_S 0
  300. #define ADC_INTSOCSEL2_SOC8_M 0x3 // SOC8 ADC Interrupt Trigger
  301. // Select
  302. #define ADC_INTSOCSEL2_SOC9_S 2
  303. #define ADC_INTSOCSEL2_SOC9_M 0xC // SOC9 ADC Interrupt Trigger
  304. // Select
  305. #define ADC_INTSOCSEL2_SOC10_S 4
  306. #define ADC_INTSOCSEL2_SOC10_M 0x30 // SOC10 ADC Interrupt Trigger
  307. // Select
  308. #define ADC_INTSOCSEL2_SOC11_S 6
  309. #define ADC_INTSOCSEL2_SOC11_M 0xC0 // SOC11 ADC Interrupt Trigger
  310. // Select
  311. #define ADC_INTSOCSEL2_SOC12_S 8
  312. #define ADC_INTSOCSEL2_SOC12_M 0x300 // SOC12 ADC Interrupt Trigger
  313. // Select
  314. #define ADC_INTSOCSEL2_SOC13_S 10
  315. #define ADC_INTSOCSEL2_SOC13_M 0xC00 // SOC13 ADC Interrupt Trigger
  316. // Select
  317. #define ADC_INTSOCSEL2_SOC14_S 12
  318. #define ADC_INTSOCSEL2_SOC14_M 0x3000 // SOC14 ADC Interrupt Trigger
  319. // Select
  320. #define ADC_INTSOCSEL2_SOC15_S 14
  321. #define ADC_INTSOCSEL2_SOC15_M 0xC000 // SOC15 ADC Interrupt Trigger
  322. // Select
  323. //*****************************************************************************
  324. //
  325. // The following are defines for the bit fields in the ADCSOCFLG1 register
  326. //
  327. //*****************************************************************************
  328. #define ADC_SOCFLG1_SOC0 0x1 // SOC0 Start of Conversion Flag
  329. #define ADC_SOCFLG1_SOC1 0x2 // SOC1 Start of Conversion Flag
  330. #define ADC_SOCFLG1_SOC2 0x4 // SOC2 Start of Conversion Flag
  331. #define ADC_SOCFLG1_SOC3 0x8 // SOC3 Start of Conversion Flag
  332. #define ADC_SOCFLG1_SOC4 0x10 // SOC4 Start of Conversion Flag
  333. #define ADC_SOCFLG1_SOC5 0x20 // SOC5 Start of Conversion Flag
  334. #define ADC_SOCFLG1_SOC6 0x40 // SOC6 Start of Conversion Flag
  335. #define ADC_SOCFLG1_SOC7 0x80 // SOC7 Start of Conversion Flag
  336. #define ADC_SOCFLG1_SOC8 0x100 // SOC8 Start of Conversion Flag
  337. #define ADC_SOCFLG1_SOC9 0x200 // SOC9 Start of Conversion Flag
  338. #define ADC_SOCFLG1_SOC10 0x400 // SOC10 Start of Conversion Flag
  339. #define ADC_SOCFLG1_SOC11 0x800 // SOC11 Start of Conversion Flag
  340. #define ADC_SOCFLG1_SOC12 0x1000 // SOC12 Start of Conversion Flag
  341. #define ADC_SOCFLG1_SOC13 0x2000 // SOC13 Start of Conversion Flag
  342. #define ADC_SOCFLG1_SOC14 0x4000 // SOC14 Start of Conversion Flag
  343. #define ADC_SOCFLG1_SOC15 0x8000 // SOC15 Start of Conversion Flag
  344. //*****************************************************************************
  345. //
  346. // The following are defines for the bit fields in the ADCSOCFRC1 register
  347. //
  348. //*****************************************************************************
  349. #define ADC_SOCFRC1_SOC0 0x1 // SOC0 Force Start of Conversion
  350. // Bit
  351. #define ADC_SOCFRC1_SOC1 0x2 // SOC1 Force Start of Conversion
  352. // Bit
  353. #define ADC_SOCFRC1_SOC2 0x4 // SOC2 Force Start of Conversion
  354. // Bit
  355. #define ADC_SOCFRC1_SOC3 0x8 // SOC3 Force Start of Conversion
  356. // Bit
  357. #define ADC_SOCFRC1_SOC4 0x10 // SOC4 Force Start of Conversion
  358. // Bit
  359. #define ADC_SOCFRC1_SOC5 0x20 // SOC5 Force Start of Conversion
  360. // Bit
  361. #define ADC_SOCFRC1_SOC6 0x40 // SOC6 Force Start of Conversion
  362. // Bit
  363. #define ADC_SOCFRC1_SOC7 0x80 // SOC7 Force Start of Conversion
  364. // Bit
  365. #define ADC_SOCFRC1_SOC8 0x100 // SOC8 Force Start of Conversion
  366. // Bit
  367. #define ADC_SOCFRC1_SOC9 0x200 // SOC9 Force Start of Conversion
  368. // Bit
  369. #define ADC_SOCFRC1_SOC10 0x400 // SOC10 Force Start of Conversion
  370. // Bit
  371. #define ADC_SOCFRC1_SOC11 0x800 // SOC11 Force Start of Conversion
  372. // Bit
  373. #define ADC_SOCFRC1_SOC12 0x1000 // SOC12 Force Start of Conversion
  374. // Bit
  375. #define ADC_SOCFRC1_SOC13 0x2000 // SOC13 Force Start of Conversion
  376. // Bit
  377. #define ADC_SOCFRC1_SOC14 0x4000 // SOC14 Force Start of Conversion
  378. // Bit
  379. #define ADC_SOCFRC1_SOC15 0x8000 // SOC15 Force Start of Conversion
  380. // Bit
  381. //*****************************************************************************
  382. //
  383. // The following are defines for the bit fields in the ADCSOCOVF1 register
  384. //
  385. //*****************************************************************************
  386. #define ADC_SOCOVF1_SOC0 0x1 // SOC0 Start of Conversion
  387. // Overflow Flag
  388. #define ADC_SOCOVF1_SOC1 0x2 // SOC1 Start of Conversion
  389. // Overflow Flag
  390. #define ADC_SOCOVF1_SOC2 0x4 // SOC2 Start of Conversion
  391. // Overflow Flag
  392. #define ADC_SOCOVF1_SOC3 0x8 // SOC3 Start of Conversion
  393. // Overflow Flag
  394. #define ADC_SOCOVF1_SOC4 0x10 // SOC4 Start of Conversion
  395. // Overflow Flag
  396. #define ADC_SOCOVF1_SOC5 0x20 // SOC5 Start of Conversion
  397. // Overflow Flag
  398. #define ADC_SOCOVF1_SOC6 0x40 // SOC6 Start of Conversion
  399. // Overflow Flag
  400. #define ADC_SOCOVF1_SOC7 0x80 // SOC7 Start of Conversion
  401. // Overflow Flag
  402. #define ADC_SOCOVF1_SOC8 0x100 // SOC8 Start of Conversion
  403. // Overflow Flag
  404. #define ADC_SOCOVF1_SOC9 0x200 // SOC9 Start of Conversion
  405. // Overflow Flag
  406. #define ADC_SOCOVF1_SOC10 0x400 // SOC10 Start of Conversion
  407. // Overflow Flag
  408. #define ADC_SOCOVF1_SOC11 0x800 // SOC11 Start of Conversion
  409. // Overflow Flag
  410. #define ADC_SOCOVF1_SOC12 0x1000 // SOC12 Start of Conversion
  411. // Overflow Flag
  412. #define ADC_SOCOVF1_SOC13 0x2000 // SOC13 Start of Conversion
  413. // Overflow Flag
  414. #define ADC_SOCOVF1_SOC14 0x4000 // SOC14 Start of Conversion
  415. // Overflow Flag
  416. #define ADC_SOCOVF1_SOC15 0x8000 // SOC15 Start of Conversion
  417. // Overflow Flag
  418. //*****************************************************************************
  419. //
  420. // The following are defines for the bit fields in the ADCSOCOVFCLR1 register
  421. //
  422. //*****************************************************************************
  423. #define ADC_SOCOVFCLR1_SOC0 0x1 // SOC0 Clear Start of Conversion
  424. // Overflow Bit
  425. #define ADC_SOCOVFCLR1_SOC1 0x2 // SOC1 Clear Start of Conversion
  426. // Overflow Bit
  427. #define ADC_SOCOVFCLR1_SOC2 0x4 // SOC2 Clear Start of Conversion
  428. // Overflow Bit
  429. #define ADC_SOCOVFCLR1_SOC3 0x8 // SOC3 Clear Start of Conversion
  430. // Overflow Bit
  431. #define ADC_SOCOVFCLR1_SOC4 0x10 // SOC4 Clear Start of Conversion
  432. // Overflow Bit
  433. #define ADC_SOCOVFCLR1_SOC5 0x20 // SOC5 Clear Start of Conversion
  434. // Overflow Bit
  435. #define ADC_SOCOVFCLR1_SOC6 0x40 // SOC6 Clear Start of Conversion
  436. // Overflow Bit
  437. #define ADC_SOCOVFCLR1_SOC7 0x80 // SOC7 Clear Start of Conversion
  438. // Overflow Bit
  439. #define ADC_SOCOVFCLR1_SOC8 0x100 // SOC8 Clear Start of Conversion
  440. // Overflow Bit
  441. #define ADC_SOCOVFCLR1_SOC9 0x200 // SOC9 Clear Start of Conversion
  442. // Overflow Bit
  443. #define ADC_SOCOVFCLR1_SOC10 0x400 // SOC10 Clear Start of Conversion
  444. // Overflow Bit
  445. #define ADC_SOCOVFCLR1_SOC11 0x800 // SOC11 Clear Start of Conversion
  446. // Overflow Bit
  447. #define ADC_SOCOVFCLR1_SOC12 0x1000 // SOC12 Clear Start of Conversion
  448. // Overflow Bit
  449. #define ADC_SOCOVFCLR1_SOC13 0x2000 // SOC13 Clear Start of Conversion
  450. // Overflow Bit
  451. #define ADC_SOCOVFCLR1_SOC14 0x4000 // SOC14 Clear Start of Conversion
  452. // Overflow Bit
  453. #define ADC_SOCOVFCLR1_SOC15 0x8000 // SOC15 Clear Start of Conversion
  454. // Overflow Bit
  455. //*****************************************************************************
  456. //
  457. // The following are defines for the bit fields in the ADCSOC0CTL register
  458. //
  459. //*****************************************************************************
  460. #define ADC_SOC0CTL_ACQPS_S 0
  461. #define ADC_SOC0CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  462. #define ADC_SOC0CTL_CHSEL_S 15
  463. #define ADC_SOC0CTL_CHSEL_M 0x78000 // SOC Channel Select
  464. #define ADC_SOC0CTL_TRIGSEL_S 20
  465. #define ADC_SOC0CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  466. //*****************************************************************************
  467. //
  468. // The following are defines for the bit fields in the ADCSOC1CTL register
  469. //
  470. //*****************************************************************************
  471. #define ADC_SOC1CTL_ACQPS_S 0
  472. #define ADC_SOC1CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  473. #define ADC_SOC1CTL_CHSEL_S 15
  474. #define ADC_SOC1CTL_CHSEL_M 0x78000 // SOC Channel Select
  475. #define ADC_SOC1CTL_TRIGSEL_S 20
  476. #define ADC_SOC1CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  477. //*****************************************************************************
  478. //
  479. // The following are defines for the bit fields in the ADCSOC2CTL register
  480. //
  481. //*****************************************************************************
  482. #define ADC_SOC2CTL_ACQPS_S 0
  483. #define ADC_SOC2CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  484. #define ADC_SOC2CTL_CHSEL_S 15
  485. #define ADC_SOC2CTL_CHSEL_M 0x78000 // SOC Channel Select
  486. #define ADC_SOC2CTL_TRIGSEL_S 20
  487. #define ADC_SOC2CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  488. //*****************************************************************************
  489. //
  490. // The following are defines for the bit fields in the ADCSOC3CTL register
  491. //
  492. //*****************************************************************************
  493. #define ADC_SOC3CTL_ACQPS_S 0
  494. #define ADC_SOC3CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  495. #define ADC_SOC3CTL_CHSEL_S 15
  496. #define ADC_SOC3CTL_CHSEL_M 0x78000 // SOC Channel Select
  497. #define ADC_SOC3CTL_TRIGSEL_S 20
  498. #define ADC_SOC3CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  499. //*****************************************************************************
  500. //
  501. // The following are defines for the bit fields in the ADCSOC4CTL register
  502. //
  503. //*****************************************************************************
  504. #define ADC_SOC4CTL_ACQPS_S 0
  505. #define ADC_SOC4CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  506. #define ADC_SOC4CTL_CHSEL_S 15
  507. #define ADC_SOC4CTL_CHSEL_M 0x78000 // SOC Channel Select
  508. #define ADC_SOC4CTL_TRIGSEL_S 20
  509. #define ADC_SOC4CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  510. //*****************************************************************************
  511. //
  512. // The following are defines for the bit fields in the ADCSOC5CTL register
  513. //
  514. //*****************************************************************************
  515. #define ADC_SOC5CTL_ACQPS_S 0
  516. #define ADC_SOC5CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  517. #define ADC_SOC5CTL_CHSEL_S 15
  518. #define ADC_SOC5CTL_CHSEL_M 0x78000 // SOC Channel Select
  519. #define ADC_SOC5CTL_TRIGSEL_S 20
  520. #define ADC_SOC5CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  521. //*****************************************************************************
  522. //
  523. // The following are defines for the bit fields in the ADCSOC6CTL register
  524. //
  525. //*****************************************************************************
  526. #define ADC_SOC6CTL_ACQPS_S 0
  527. #define ADC_SOC6CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  528. #define ADC_SOC6CTL_CHSEL_S 15
  529. #define ADC_SOC6CTL_CHSEL_M 0x78000 // SOC Channel Select
  530. #define ADC_SOC6CTL_TRIGSEL_S 20
  531. #define ADC_SOC6CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  532. //*****************************************************************************
  533. //
  534. // The following are defines for the bit fields in the ADCSOC7CTL register
  535. //
  536. //*****************************************************************************
  537. #define ADC_SOC7CTL_ACQPS_S 0
  538. #define ADC_SOC7CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  539. #define ADC_SOC7CTL_CHSEL_S 15
  540. #define ADC_SOC7CTL_CHSEL_M 0x78000 // SOC Channel Select
  541. #define ADC_SOC7CTL_TRIGSEL_S 20
  542. #define ADC_SOC7CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  543. //*****************************************************************************
  544. //
  545. // The following are defines for the bit fields in the ADCSOC8CTL register
  546. //
  547. //*****************************************************************************
  548. #define ADC_SOC8CTL_ACQPS_S 0
  549. #define ADC_SOC8CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  550. #define ADC_SOC8CTL_CHSEL_S 15
  551. #define ADC_SOC8CTL_CHSEL_M 0x78000 // SOC Channel Select
  552. #define ADC_SOC8CTL_TRIGSEL_S 20
  553. #define ADC_SOC8CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  554. //*****************************************************************************
  555. //
  556. // The following are defines for the bit fields in the ADCSOC9CTL register
  557. //
  558. //*****************************************************************************
  559. #define ADC_SOC9CTL_ACQPS_S 0
  560. #define ADC_SOC9CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  561. #define ADC_SOC9CTL_CHSEL_S 15
  562. #define ADC_SOC9CTL_CHSEL_M 0x78000 // SOC Channel Select
  563. #define ADC_SOC9CTL_TRIGSEL_S 20
  564. #define ADC_SOC9CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  565. //*****************************************************************************
  566. //
  567. // The following are defines for the bit fields in the ADCSOC10CTL register
  568. //
  569. //*****************************************************************************
  570. #define ADC_SOC10CTL_ACQPS_S 0
  571. #define ADC_SOC10CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  572. #define ADC_SOC10CTL_CHSEL_S 15
  573. #define ADC_SOC10CTL_CHSEL_M 0x78000 // SOC Channel Select
  574. #define ADC_SOC10CTL_TRIGSEL_S 20
  575. #define ADC_SOC10CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  576. //*****************************************************************************
  577. //
  578. // The following are defines for the bit fields in the ADCSOC11CTL register
  579. //
  580. //*****************************************************************************
  581. #define ADC_SOC11CTL_ACQPS_S 0
  582. #define ADC_SOC11CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  583. #define ADC_SOC11CTL_CHSEL_S 15
  584. #define ADC_SOC11CTL_CHSEL_M 0x78000 // SOC Channel Select
  585. #define ADC_SOC11CTL_TRIGSEL_S 20
  586. #define ADC_SOC11CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  587. //*****************************************************************************
  588. //
  589. // The following are defines for the bit fields in the ADCSOC12CTL register
  590. //
  591. //*****************************************************************************
  592. #define ADC_SOC12CTL_ACQPS_S 0
  593. #define ADC_SOC12CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  594. #define ADC_SOC12CTL_CHSEL_S 15
  595. #define ADC_SOC12CTL_CHSEL_M 0x78000 // SOC Channel Select
  596. #define ADC_SOC12CTL_TRIGSEL_S 20
  597. #define ADC_SOC12CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  598. //*****************************************************************************
  599. //
  600. // The following are defines for the bit fields in the ADCSOC13CTL register
  601. //
  602. //*****************************************************************************
  603. #define ADC_SOC13CTL_ACQPS_S 0
  604. #define ADC_SOC13CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  605. #define ADC_SOC13CTL_CHSEL_S 15
  606. #define ADC_SOC13CTL_CHSEL_M 0x78000 // SOC Channel Select
  607. #define ADC_SOC13CTL_TRIGSEL_S 20
  608. #define ADC_SOC13CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  609. //*****************************************************************************
  610. //
  611. // The following are defines for the bit fields in the ADCSOC14CTL register
  612. //
  613. //*****************************************************************************
  614. #define ADC_SOC14CTL_ACQPS_S 0
  615. #define ADC_SOC14CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  616. #define ADC_SOC14CTL_CHSEL_S 15
  617. #define ADC_SOC14CTL_CHSEL_M 0x78000 // SOC Channel Select
  618. #define ADC_SOC14CTL_TRIGSEL_S 20
  619. #define ADC_SOC14CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  620. //*****************************************************************************
  621. //
  622. // The following are defines for the bit fields in the ADCSOC15CTL register
  623. //
  624. //*****************************************************************************
  625. #define ADC_SOC15CTL_ACQPS_S 0
  626. #define ADC_SOC15CTL_ACQPS_M 0x1FF // SOC Acquisition Prescale
  627. #define ADC_SOC15CTL_CHSEL_S 15
  628. #define ADC_SOC15CTL_CHSEL_M 0x78000 // SOC Channel Select
  629. #define ADC_SOC15CTL_TRIGSEL_S 20
  630. #define ADC_SOC15CTL_TRIGSEL_M 0x1F00000 // SOC Trigger Source Select
  631. //*****************************************************************************
  632. //
  633. // The following are defines for the bit fields in the ADCEVTSTAT register
  634. //
  635. //*****************************************************************************
  636. #define ADC_EVTSTAT_PPB1TRIPHI 0x1 // Post Processing Block 1 Trip
  637. // High Flag
  638. #define ADC_EVTSTAT_PPB1TRIPLO 0x2 // Post Processing Block 1 Trip
  639. // Low Flag
  640. #define ADC_EVTSTAT_PPB1ZERO 0x4 // Post Processing Block 1 Zero
  641. // Crossing Flag
  642. #define ADC_EVTSTAT_PPB2TRIPHI 0x10 // Post Processing Block 2 Trip
  643. // High Flag
  644. #define ADC_EVTSTAT_PPB2TRIPLO 0x20 // Post Processing Block 2 Trip
  645. // Low Flag
  646. #define ADC_EVTSTAT_PPB2ZERO 0x40 // Post Processing Block 2 Zero
  647. // Crossing Flag
  648. #define ADC_EVTSTAT_PPB3TRIPHI 0x100 // Post Processing Block 3 Trip
  649. // High Flag
  650. #define ADC_EVTSTAT_PPB3TRIPLO 0x200 // Post Processing Block 3 Trip
  651. // Low Flag
  652. #define ADC_EVTSTAT_PPB3ZERO 0x400 // Post Processing Block 3 Zero
  653. // Crossing Flag
  654. #define ADC_EVTSTAT_PPB4TRIPHI 0x1000 // Post Processing Block 4 Trip
  655. // High Flag
  656. #define ADC_EVTSTAT_PPB4TRIPLO 0x2000 // Post Processing Block 4 Trip
  657. // Low Flag
  658. #define ADC_EVTSTAT_PPB4ZERO 0x4000 // Post Processing Block 4 Zero
  659. // Crossing Flag
  660. //*****************************************************************************
  661. //
  662. // The following are defines for the bit fields in the ADCEVTCLR register
  663. //
  664. //*****************************************************************************
  665. #define ADC_EVTCLR_PPB1TRIPHI 0x1 // Post Processing Block 1 Trip
  666. // High Clear
  667. #define ADC_EVTCLR_PPB1TRIPLO 0x2 // Post Processing Block 1 Trip
  668. // Low Clear
  669. #define ADC_EVTCLR_PPB1ZERO 0x4 // Post Processing Block 1 Zero
  670. // Crossing Clear
  671. #define ADC_EVTCLR_PPB2TRIPHI 0x10 // Post Processing Block 2 Trip
  672. // High Clear
  673. #define ADC_EVTCLR_PPB2TRIPLO 0x20 // Post Processing Block 2 Trip
  674. // Low Clear
  675. #define ADC_EVTCLR_PPB2ZERO 0x40 // Post Processing Block 2 Zero
  676. // Crossing Clear
  677. #define ADC_EVTCLR_PPB3TRIPHI 0x100 // Post Processing Block 3 Trip
  678. // High Clear
  679. #define ADC_EVTCLR_PPB3TRIPLO 0x200 // Post Processing Block 3 Trip
  680. // Low Clear
  681. #define ADC_EVTCLR_PPB3ZERO 0x400 // Post Processing Block 3 Zero
  682. // Crossing Clear
  683. #define ADC_EVTCLR_PPB4TRIPHI 0x1000 // Post Processing Block 4 Trip
  684. // High Clear
  685. #define ADC_EVTCLR_PPB4TRIPLO 0x2000 // Post Processing Block 4 Trip
  686. // Low Clear
  687. #define ADC_EVTCLR_PPB4ZERO 0x4000 // Post Processing Block 4 Zero
  688. // Crossing Clear
  689. //*****************************************************************************
  690. //
  691. // The following are defines for the bit fields in the ADCEVTSEL register
  692. //
  693. //*****************************************************************************
  694. #define ADC_EVTSEL_PPB1TRIPHI 0x1 // Post Processing Block 1 Trip
  695. // High Event Enable
  696. #define ADC_EVTSEL_PPB1TRIPLO 0x2 // Post Processing Block 1 Trip
  697. // Low Event Enable
  698. #define ADC_EVTSEL_PPB1ZERO 0x4 // Post Processing Block 1 Zero
  699. // Crossing Event Enable
  700. #define ADC_EVTSEL_PPB2TRIPHI 0x10 // Post Processing Block 2 Trip
  701. // High Event Enable
  702. #define ADC_EVTSEL_PPB2TRIPLO 0x20 // Post Processing Block 2 Trip
  703. // Low Event Enable
  704. #define ADC_EVTSEL_PPB2ZERO 0x40 // Post Processing Block 2 Zero
  705. // Crossing Event Enable
  706. #define ADC_EVTSEL_PPB3TRIPHI 0x100 // Post Processing Block 3 Trip
  707. // High Event Enable
  708. #define ADC_EVTSEL_PPB3TRIPLO 0x200 // Post Processing Block 3 Trip
  709. // Low Event Enable
  710. #define ADC_EVTSEL_PPB3ZERO 0x400 // Post Processing Block 3 Zero
  711. // Crossing Event Enable
  712. #define ADC_EVTSEL_PPB4TRIPHI 0x1000 // Post Processing Block 4 Trip
  713. // High Event Enable
  714. #define ADC_EVTSEL_PPB4TRIPLO 0x2000 // Post Processing Block 4 Trip
  715. // Low Event Enable
  716. #define ADC_EVTSEL_PPB4ZERO 0x4000 // Post Processing Block 4 Zero
  717. // Crossing Event Enable
  718. //*****************************************************************************
  719. //
  720. // The following are defines for the bit fields in the ADCEVTINTSEL register
  721. //
  722. //*****************************************************************************
  723. #define ADC_EVTINTSEL_PPB1TRIPHI 0x1 // Post Processing Block 1 Trip
  724. // High Interrupt Enable
  725. #define ADC_EVTINTSEL_PPB1TRIPLO 0x2 // Post Processing Block 1 Trip
  726. // Low Interrupt Enable
  727. #define ADC_EVTINTSEL_PPB1ZERO 0x4 // Post Processing Block 1 Zero
  728. // Crossing Interrupt Enable
  729. #define ADC_EVTINTSEL_PPB2TRIPHI 0x10 // Post Processing Block 2 Trip
  730. // High Interrupt Enable
  731. #define ADC_EVTINTSEL_PPB2TRIPLO 0x20 // Post Processing Block 2 Trip
  732. // Low Interrupt Enable
  733. #define ADC_EVTINTSEL_PPB2ZERO 0x40 // Post Processing Block 2 Zero
  734. // Crossing Interrupt Enable
  735. #define ADC_EVTINTSEL_PPB3TRIPHI 0x100 // Post Processing Block 3 Trip
  736. // High Interrupt Enable
  737. #define ADC_EVTINTSEL_PPB3TRIPLO 0x200 // Post Processing Block 3 Trip
  738. // Low Interrupt Enable
  739. #define ADC_EVTINTSEL_PPB3ZERO 0x400 // Post Processing Block 3 Zero
  740. // Crossing Interrupt Enable
  741. #define ADC_EVTINTSEL_PPB4TRIPHI 0x1000 // Post Processing Block 4 Trip
  742. // High Interrupt Enable
  743. #define ADC_EVTINTSEL_PPB4TRIPLO 0x2000 // Post Processing Block 4 Trip
  744. // Low Interrupt Enable
  745. #define ADC_EVTINTSEL_PPB4ZERO 0x4000 // Post Processing Block 4 Zero
  746. // Crossing Interrupt Enable
  747. //*****************************************************************************
  748. //
  749. // The following are defines for the bit fields in the ADCCOUNTER register
  750. //
  751. //*****************************************************************************
  752. #define ADC_COUNTER_FREECOUNT_S 0
  753. #define ADC_COUNTER_FREECOUNT_M 0xFFF // ADC Free Running Counter Value
  754. //*****************************************************************************
  755. //
  756. // The following are defines for the bit fields in the ADCREV register
  757. //
  758. //*****************************************************************************
  759. #define ADC_REV_TYPE_S 0
  760. #define ADC_REV_TYPE_M 0xFF // ADC Type
  761. #define ADC_REV_REV_S 8
  762. #define ADC_REV_REV_M 0xFF00 // ADC Revision
  763. //*****************************************************************************
  764. //
  765. // The following are defines for the bit fields in the ADCOFFTRIM register
  766. //
  767. //*****************************************************************************
  768. #define ADC_OFFTRIM_OFFTRIM_S 0
  769. #define ADC_OFFTRIM_OFFTRIM_M 0xFF // ADC Offset Trim
  770. //*****************************************************************************
  771. //
  772. // The following are defines for the bit fields in the ADCPPB1CONFIG register
  773. //
  774. //*****************************************************************************
  775. #define ADC_PPB1CONFIG_CONFIG_S 0
  776. #define ADC_PPB1CONFIG_CONFIG_M 0xF // ADC Post Processing Block
  777. // Configuration
  778. #define ADC_PPB1CONFIG_TWOSCOMPEN 0x10 // ADC Post Processing Block Two's
  779. // Complement Enable
  780. //*****************************************************************************
  781. //
  782. // The following are defines for the bit fields in the ADCPPB1STAMP register
  783. //
  784. //*****************************************************************************
  785. #define ADC_PPB1STAMP_DLYSTAMP_S 0
  786. #define ADC_PPB1STAMP_DLYSTAMP_M 0xFFF // ADC Post Processing Block Delay
  787. // Time Stamp
  788. //*****************************************************************************
  789. //
  790. // The following are defines for the bit fields in the ADCPPB1OFFCAL register
  791. //
  792. //*****************************************************************************
  793. #define ADC_PPB1OFFCAL_OFFCAL_S 0
  794. #define ADC_PPB1OFFCAL_OFFCAL_M 0x3FF // ADC Post Processing Block
  795. // Offset Correction
  796. //*****************************************************************************
  797. //
  798. // The following are defines for the bit fields in the ADCPPB1OFFREF register
  799. //
  800. //*****************************************************************************
  801. #define ADC_PPB1OFFREF_OFFREF_S 0
  802. #define ADC_PPB1OFFREF_OFFREF_M 0xFFFF // ADC Post Processing Block
  803. // Offset Reference
  804. //*****************************************************************************
  805. //
  806. // The following are defines for the bit fields in the ADCPPB1TRIPHI register
  807. //
  808. //*****************************************************************************
  809. #define ADC_PPB1TRIPHI_LIMITHI_S 0
  810. #define ADC_PPB1TRIPHI_LIMITHI_M 0xFFFF // ADC Post Processing Block Trip
  811. // High Limit
  812. #define ADC_PPB1TRIPHI_HSIGN 0x10000 // High Limit Sign Bit
  813. //*****************************************************************************
  814. //
  815. // The following are defines for the bit fields in the ADCPPB1TRIPLO register
  816. //
  817. //*****************************************************************************
  818. #define ADC_PPB1TRIPLO_LIMITLO_S 0
  819. #define ADC_PPB1TRIPLO_LIMITLO_M 0xFFFF // ADC Post Processing Block Trip
  820. // Low Limit
  821. #define ADC_PPB1TRIPLO_LSIGN 0x10000 // Low Limit Sign Bit
  822. #define ADC_PPB1TRIPLO_REQSTAMP_S 20
  823. #define ADC_PPB1TRIPLO_REQSTAMP_M 0xFFF00000 // ADC Post Processing Block
  824. // Request Time Stamp
  825. //*****************************************************************************
  826. //
  827. // The following are defines for the bit fields in the ADCPPB2CONFIG register
  828. //
  829. //*****************************************************************************
  830. #define ADC_PPB2CONFIG_CONFIG_S 0
  831. #define ADC_PPB2CONFIG_CONFIG_M 0xF // ADC Post Processing Block
  832. // Configuration
  833. #define ADC_PPB2CONFIG_TWOSCOMPEN 0x10 // ADC Post Processing Block Two's
  834. // Complement Enable
  835. //*****************************************************************************
  836. //
  837. // The following are defines for the bit fields in the ADCPPB2STAMP register
  838. //
  839. //*****************************************************************************
  840. #define ADC_PPB2STAMP_DLYSTAMP_S 0
  841. #define ADC_PPB2STAMP_DLYSTAMP_M 0xFFF // ADC Post Processing Block Delay
  842. // Time Stamp
  843. //*****************************************************************************
  844. //
  845. // The following are defines for the bit fields in the ADCPPB2OFFCAL register
  846. //
  847. //*****************************************************************************
  848. #define ADC_PPB2OFFCAL_OFFCAL_S 0
  849. #define ADC_PPB2OFFCAL_OFFCAL_M 0x3FF // ADC Post Processing Block
  850. // Offset Correction
  851. //*****************************************************************************
  852. //
  853. // The following are defines for the bit fields in the ADCPPB2OFFREF register
  854. //
  855. //*****************************************************************************
  856. #define ADC_PPB2OFFREF_OFFREF_S 0
  857. #define ADC_PPB2OFFREF_OFFREF_M 0xFFFF // ADC Post Processing Block
  858. // Offset Reference
  859. //*****************************************************************************
  860. //
  861. // The following are defines for the bit fields in the ADCPPB2TRIPHI register
  862. //
  863. //*****************************************************************************
  864. #define ADC_PPB2TRIPHI_LIMITHI_S 0
  865. #define ADC_PPB2TRIPHI_LIMITHI_M 0xFFFF // ADC Post Processing Block Trip
  866. // High Limit
  867. #define ADC_PPB2TRIPHI_HSIGN 0x10000 // High Limit Sign Bit
  868. //*****************************************************************************
  869. //
  870. // The following are defines for the bit fields in the ADCPPB2TRIPLO register
  871. //
  872. //*****************************************************************************
  873. #define ADC_PPB2TRIPLO_LIMITLO_S 0
  874. #define ADC_PPB2TRIPLO_LIMITLO_M 0xFFFF // ADC Post Processing Block Trip
  875. // Low Limit
  876. #define ADC_PPB2TRIPLO_LSIGN 0x10000 // Low Limit Sign Bit
  877. #define ADC_PPB2TRIPLO_REQSTAMP_S 20
  878. #define ADC_PPB2TRIPLO_REQSTAMP_M 0xFFF00000 // ADC Post Processing Block
  879. // Request Time Stamp
  880. //*****************************************************************************
  881. //
  882. // The following are defines for the bit fields in the ADCPPB3CONFIG register
  883. //
  884. //*****************************************************************************
  885. #define ADC_PPB3CONFIG_CONFIG_S 0
  886. #define ADC_PPB3CONFIG_CONFIG_M 0xF // ADC Post Processing Block
  887. // Configuration
  888. #define ADC_PPB3CONFIG_TWOSCOMPEN 0x10 // ADC Post Processing Block Two's
  889. // Complement Enable
  890. //*****************************************************************************
  891. //
  892. // The following are defines for the bit fields in the ADCPPB3STAMP register
  893. //
  894. //*****************************************************************************
  895. #define ADC_PPB3STAMP_DLYSTAMP_S 0
  896. #define ADC_PPB3STAMP_DLYSTAMP_M 0xFFF // ADC Post Processing Block Delay
  897. // Time Stamp
  898. //*****************************************************************************
  899. //
  900. // The following are defines for the bit fields in the ADCPPB3OFFCAL register
  901. //
  902. //*****************************************************************************
  903. #define ADC_PPB3OFFCAL_OFFCAL_S 0
  904. #define ADC_PPB3OFFCAL_OFFCAL_M 0x3FF // ADC Post Processing Block
  905. // Offset Correction
  906. //*****************************************************************************
  907. //
  908. // The following are defines for the bit fields in the ADCPPB3OFFREF register
  909. //
  910. //*****************************************************************************
  911. #define ADC_PPB3OFFREF_OFFREF_S 0
  912. #define ADC_PPB3OFFREF_OFFREF_M 0xFFFF // ADC Post Processing Block
  913. // Offset Reference
  914. //*****************************************************************************
  915. //
  916. // The following are defines for the bit fields in the ADCPPB3TRIPHI register
  917. //
  918. //*****************************************************************************
  919. #define ADC_PPB3TRIPHI_LIMITHI_S 0
  920. #define ADC_PPB3TRIPHI_LIMITHI_M 0xFFFF // ADC Post Processing Block Trip
  921. // High Limit
  922. #define ADC_PPB3TRIPHI_HSIGN 0x10000 // High Limit Sign Bit
  923. //*****************************************************************************
  924. //
  925. // The following are defines for the bit fields in the ADCPPB3TRIPLO register
  926. //
  927. //*****************************************************************************
  928. #define ADC_PPB3TRIPLO_LIMITLO_S 0
  929. #define ADC_PPB3TRIPLO_LIMITLO_M 0xFFFF // ADC Post Processing Block Trip
  930. // Low Limit
  931. #define ADC_PPB3TRIPLO_LSIGN 0x10000 // Low Limit Sign Bit
  932. #define ADC_PPB3TRIPLO_REQSTAMP_S 20
  933. #define ADC_PPB3TRIPLO_REQSTAMP_M 0xFFF00000 // ADC Post Processing Block
  934. // Request Time Stamp
  935. //*****************************************************************************
  936. //
  937. // The following are defines for the bit fields in the ADCPPB4CONFIG register
  938. //
  939. //*****************************************************************************
  940. #define ADC_PPB4CONFIG_CONFIG_S 0
  941. #define ADC_PPB4CONFIG_CONFIG_M 0xF // ADC Post Processing Block
  942. // Configuration
  943. #define ADC_PPB4CONFIG_TWOSCOMPEN 0x10 // ADC Post Processing Block Two's
  944. // Complement Enable
  945. //*****************************************************************************
  946. //
  947. // The following are defines for the bit fields in the ADCPPB4STAMP register
  948. //
  949. //*****************************************************************************
  950. #define ADC_PPB4STAMP_DLYSTAMP_S 0
  951. #define ADC_PPB4STAMP_DLYSTAMP_M 0xFFF // ADC Post Processing Block Delay
  952. // Time Stamp
  953. //*****************************************************************************
  954. //
  955. // The following are defines for the bit fields in the ADCPPB4OFFCAL register
  956. //
  957. //*****************************************************************************
  958. #define ADC_PPB4OFFCAL_OFFCAL_S 0
  959. #define ADC_PPB4OFFCAL_OFFCAL_M 0x3FF // ADC Post Processing Block
  960. // Offset Correction
  961. //*****************************************************************************
  962. //
  963. // The following are defines for the bit fields in the ADCPPB4OFFREF register
  964. //
  965. //*****************************************************************************
  966. #define ADC_PPB4OFFREF_OFFREF_S 0
  967. #define ADC_PPB4OFFREF_OFFREF_M 0xFFFF // ADC Post Processing Block
  968. // Offset Reference
  969. //*****************************************************************************
  970. //
  971. // The following are defines for the bit fields in the ADCPPB4TRIPHI register
  972. //
  973. //*****************************************************************************
  974. #define ADC_PPB4TRIPHI_LIMITHI_S 0
  975. #define ADC_PPB4TRIPHI_LIMITHI_M 0xFFFF // ADC Post Processing Block Trip
  976. // High Limit
  977. #define ADC_PPB4TRIPHI_HSIGN 0x10000 // High Limit Sign Bit
  978. //*****************************************************************************
  979. //
  980. // The following are defines for the bit fields in the ADCPPB4TRIPLO register
  981. //
  982. //*****************************************************************************
  983. #define ADC_PPB4TRIPLO_LIMITLO_S 0
  984. #define ADC_PPB4TRIPLO_LIMITLO_M 0xFFFF // ADC Post Processing Block Trip
  985. // Low Limit
  986. #define ADC_PPB4TRIPLO_LSIGN 0x10000 // Low Limit Sign Bit
  987. #define ADC_PPB4TRIPLO_REQSTAMP_S 20
  988. #define ADC_PPB4TRIPLO_REQSTAMP_M 0xFFF00000 // ADC Post Processing Block
  989. // Request Time Stamp
  990. //*****************************************************************************
  991. //
  992. // The following are defines for the bit fields in the ADCRESULT0 register
  993. //
  994. //*****************************************************************************
  995. #define ADC_RESULT0_RESULT_S 0
  996. #define ADC_RESULT0_RESULT_M 0xFFFF // ADC Result
  997. //*****************************************************************************
  998. //
  999. // The following are defines for the bit fields in the ADCRESULT1 register
  1000. //
  1001. //*****************************************************************************
  1002. #define ADC_RESULT1_RESULT_S 0
  1003. #define ADC_RESULT1_RESULT_M 0xFFFF // ADC Result
  1004. //*****************************************************************************
  1005. //
  1006. // The following are defines for the bit fields in the ADCRESULT2 register
  1007. //
  1008. //*****************************************************************************
  1009. #define ADC_RESULT2_RESULT_S 0
  1010. #define ADC_RESULT2_RESULT_M 0xFFFF // ADC Result
  1011. //*****************************************************************************
  1012. //
  1013. // The following are defines for the bit fields in the ADCRESULT3 register
  1014. //
  1015. //*****************************************************************************
  1016. #define ADC_RESULT3_RESULT_S 0
  1017. #define ADC_RESULT3_RESULT_M 0xFFFF // ADC Result
  1018. //*****************************************************************************
  1019. //
  1020. // The following are defines for the bit fields in the ADCRESULT4 register
  1021. //
  1022. //*****************************************************************************
  1023. #define ADC_RESULT4_RESULT_S 0
  1024. #define ADC_RESULT4_RESULT_M 0xFFFF // ADC Result
  1025. //*****************************************************************************
  1026. //
  1027. // The following are defines for the bit fields in the ADCRESULT5 register
  1028. //
  1029. //*****************************************************************************
  1030. #define ADC_RESULT5_RESULT_S 0
  1031. #define ADC_RESULT5_RESULT_M 0xFFFF // ADC Result
  1032. //*****************************************************************************
  1033. //
  1034. // The following are defines for the bit fields in the ADCRESULT6 register
  1035. //
  1036. //*****************************************************************************
  1037. #define ADC_RESULT6_RESULT_S 0
  1038. #define ADC_RESULT6_RESULT_M 0xFFFF // ADC Result
  1039. //*****************************************************************************
  1040. //
  1041. // The following are defines for the bit fields in the ADCRESULT7 register
  1042. //
  1043. //*****************************************************************************
  1044. #define ADC_RESULT7_RESULT_S 0
  1045. #define ADC_RESULT7_RESULT_M 0xFFFF // ADC Result
  1046. //*****************************************************************************
  1047. //
  1048. // The following are defines for the bit fields in the ADCRESULT8 register
  1049. //
  1050. //*****************************************************************************
  1051. #define ADC_RESULT8_RESULT_S 0
  1052. #define ADC_RESULT8_RESULT_M 0xFFFF // ADC Result
  1053. //*****************************************************************************
  1054. //
  1055. // The following are defines for the bit fields in the ADCRESULT9 register
  1056. //
  1057. //*****************************************************************************
  1058. #define ADC_RESULT9_RESULT_S 0
  1059. #define ADC_RESULT9_RESULT_M 0xFFFF // ADC Result
  1060. //*****************************************************************************
  1061. //
  1062. // The following are defines for the bit fields in the ADCRESULT10 register
  1063. //
  1064. //*****************************************************************************
  1065. #define ADC_RESULT10_RESULT_S 0
  1066. #define ADC_RESULT10_RESULT_M 0xFFFF // ADC Result
  1067. //*****************************************************************************
  1068. //
  1069. // The following are defines for the bit fields in the ADCRESULT11 register
  1070. //
  1071. //*****************************************************************************
  1072. #define ADC_RESULT11_RESULT_S 0
  1073. #define ADC_RESULT11_RESULT_M 0xFFFF // ADC Result
  1074. //*****************************************************************************
  1075. //
  1076. // The following are defines for the bit fields in the ADCRESULT12 register
  1077. //
  1078. //*****************************************************************************
  1079. #define ADC_RESULT12_RESULT_S 0
  1080. #define ADC_RESULT12_RESULT_M 0xFFFF // ADC Result
  1081. //*****************************************************************************
  1082. //
  1083. // The following are defines for the bit fields in the ADCRESULT13 register
  1084. //
  1085. //*****************************************************************************
  1086. #define ADC_RESULT13_RESULT_S 0
  1087. #define ADC_RESULT13_RESULT_M 0xFFFF // ADC Result
  1088. //*****************************************************************************
  1089. //
  1090. // The following are defines for the bit fields in the ADCRESULT14 register
  1091. //
  1092. //*****************************************************************************
  1093. #define ADC_RESULT14_RESULT_S 0
  1094. #define ADC_RESULT14_RESULT_M 0xFFFF // ADC Result
  1095. //*****************************************************************************
  1096. //
  1097. // The following are defines for the bit fields in the ADCRESULT15 register
  1098. //
  1099. //*****************************************************************************
  1100. #define ADC_RESULT15_RESULT_S 0
  1101. #define ADC_RESULT15_RESULT_M 0xFFFF // ADC Result
  1102. //*****************************************************************************
  1103. //
  1104. // The following are defines for the bit fields in the ADCPPB1RESULT register
  1105. //
  1106. //*****************************************************************************
  1107. #define ADC_PPB1RESULT_PPBRESULT_S 0
  1108. #define ADC_PPB1RESULT_PPBRESULT_M 0xFFFF // ADC Post Processing Block
  1109. // Result
  1110. #define ADC_PPB1RESULT_SIGN_S 16
  1111. #define ADC_PPB1RESULT_SIGN_M 0xFFFF0000 // Sign Extended Bits
  1112. //*****************************************************************************
  1113. //
  1114. // The following are defines for the bit fields in the ADCPPB2RESULT register
  1115. //
  1116. //*****************************************************************************
  1117. #define ADC_PPB2RESULT_PPBRESULT_S 0
  1118. #define ADC_PPB2RESULT_PPBRESULT_M 0xFFFF // ADC Post Processing Block
  1119. // Result
  1120. #define ADC_PPB2RESULT_SIGN_S 16
  1121. #define ADC_PPB2RESULT_SIGN_M 0xFFFF0000 // Sign Extended Bits
  1122. //*****************************************************************************
  1123. //
  1124. // The following are defines for the bit fields in the ADCPPB3RESULT register
  1125. //
  1126. //*****************************************************************************
  1127. #define ADC_PPB3RESULT_PPBRESULT_S 0
  1128. #define ADC_PPB3RESULT_PPBRESULT_M 0xFFFF // ADC Post Processing Block
  1129. // Result
  1130. #define ADC_PPB3RESULT_SIGN_S 16
  1131. #define ADC_PPB3RESULT_SIGN_M 0xFFFF0000 // Sign Extended Bits
  1132. //*****************************************************************************
  1133. //
  1134. // The following are defines for the bit fields in the ADCPPB4RESULT register
  1135. //
  1136. //*****************************************************************************
  1137. #define ADC_PPB4RESULT_PPBRESULT_S 0
  1138. #define ADC_PPB4RESULT_PPBRESULT_M 0xFFFF // ADC Post Processing Block
  1139. // Result
  1140. #define ADC_PPB4RESULT_SIGN_S 16
  1141. #define ADC_PPB4RESULT_SIGN_M 0xFFFF0000 // Sign Extended Bits
  1142. #endif