p24FJ256GB110 - HID Bootloader.gld 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287
  1. /*
  2. ** Linker script for PIC24FJ256GB110
  3. */
  4. OUTPUT_ARCH("24FJ256GB110")
  5. EXTERN(__resetPRI)
  6. EXTERN(__resetALT)
  7. /* OPTIONAL(-lpPIC24Fxxx) */
  8. /*
  9. ** Memory Regions
  10. */
  11. MEMORY
  12. {
  13. data (a!xr) : ORIGIN = 0x800, LENGTH = 0x4000
  14. reset : ORIGIN = 0x0, LENGTH = 0x4
  15. ivt : ORIGIN = 0x4, LENGTH = 0xFC
  16. aivt : ORIGIN = 0x104, LENGTH = 0xFC
  17. program (xr) : ORIGIN = 0x200, LENGTH = 0x2A9F8
  18. config4 : ORIGIN = 0x2ABF8, LENGTH = 0x2
  19. config3 : ORIGIN = 0x2ABFA, LENGTH = 0x2
  20. config2 : ORIGIN = 0x2ABFC, LENGTH = 0x2
  21. config1 : ORIGIN = 0x2ABFE, LENGTH = 0x2
  22. }
  23. __CONFIG3 = 0x2ABFA;
  24. __CONFIG2 = 0x2ABFC;
  25. __CONFIG1 = 0x2ABFE;
  26. __IVT_BASE = 0x4;
  27. __AIVT_BASE = 0x104;
  28. __DATA_BASE = 0x800;
  29. __CODE_BASE = 0x200;
  30. /*
  31. ** ==================== Section Map ======================
  32. */
  33. SECTIONS
  34. {
  35. /*
  36. ** ========== Program Memory ==========
  37. */
  38. /*
  39. ** Reset Instruction
  40. */
  41. .reset :
  42. {
  43. SHORT(ABSOLUTE(__reset));
  44. SHORT(0x04);
  45. SHORT((ABSOLUTE(__reset) >> 16) & 0x7F);
  46. SHORT(0);
  47. } >reset
  48. /*
  49. ** Interrupt Vector Tables
  50. **
  51. ** The primary and alternate tables are loaded
  52. ** here, between sections .reset and .text.
  53. ** Vector table source code appears below.
  54. */
  55. /*
  56. ** User Code and Library Code
  57. **
  58. ** This section must not be assigned to __CODE_BASE,
  59. ** because CodeGuard(tm) sections may be located there.
  60. **
  61. ** Note that input sections *(.text) are not mapped here.
  62. ** The best-fit allocator locates them, so that .text
  63. ** may flow around PSV sections as needed.
  64. */
  65. .text :
  66. {
  67. *(.init);
  68. *(.user_init);
  69. *(.handle);
  70. *(.libc) *(.libm) *(.libdsp); /* keep together in this order */
  71. *(.lib*);
  72. } >program
  73. /*
  74. ** Configuration Words
  75. */
  76. __CONFIG3 :
  77. { *(__CONFIG3.sec) } >config3
  78. __CONFIG2 :
  79. { *(__CONFIG2.sec) } >config2
  80. __CONFIG1 :
  81. { *(__CONFIG1.sec) } >config1
  82. /*
  83. ** =========== Data Memory ===========
  84. */
  85. /*
  86. ** ICD Debug Exec
  87. **
  88. ** This section provides optional storage for
  89. ** the ICD2 debugger. Define a global symbol
  90. ** named __ICD2RAM to enable ICD2. This section
  91. ** must be loaded at data address 0x800.
  92. */
  93. .icd __DATA_BASE (NOLOAD):
  94. {
  95. . += (DEFINED (__ICD2RAM) ? 0x50 : 0 );
  96. } > data
  97. /*
  98. ** Other sections in data memory are not explicitly mapped.
  99. ** Instead they are allocated according to their section
  100. ** attributes, which is most efficient.
  101. **
  102. ** If a specific arrangement of sections is required
  103. ** (other than what can be achieved using attributes)
  104. ** additional sections may be defined here. See chapter
  105. ** 10.5 in the MPLAB ASM30/LINK30 User's Guide (DS51317)
  106. ** for more information.
  107. */
  108. /*
  109. ** ========== Debug Info ==============
  110. */
  111. .comment 0 : { *(.comment) }
  112. /*
  113. ** DWARF-2
  114. */
  115. .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
  116. .debug_abbrev 0 : { *(.debug_abbrev) }
  117. .debug_line 0 : { *(.debug_line) }
  118. .debug_frame 0 : { *(.debug_frame) }
  119. .debug_str 0 : { *(.debug_str) }
  120. .debug_loc 0 : { *(.debug_loc) }
  121. .debug_macinfo 0 : { *(.debug_macinfo) }
  122. .debug_pubnames 0 : { *(.debug_pubnames) }
  123. .debug_ranges 0 : { *(.debug_ranges) }
  124. .debug_aranges 0 : { *(.debug_aranges) }
  125. } /* SECTIONS */
  126. /*
  127. ** ================= End of Section Map ================
  128. */
  129. /*
  130. ** Section Map for Interrupt Vector Tables
  131. */
  132. SECTIONS
  133. {
  134. /*
  135. ** Interrupt Vector Table
  136. */
  137. .ivt __IVT_BASE :
  138. {
  139. } >ivt
  140. /*
  141. ** Alternate Interrupt Vector Table
  142. */
  143. .aivt __AIVT_BASE :
  144. {
  145. } >aivt
  146. } /* SECTIONS */
  147. /*
  148. ** ============== Equates for SFR Addresses =============
  149. */
  150. WREG0 = 0x0;
  151. _WREG0 = 0x0;
  152. WREG1 = 0x2;
  153. _WREG1 = 0x2;
  154. WREG2 = 0x4;
  155. _WREG2 = 0x4;
  156. WREG3 = 0x6;
  157. _WREG3 = 0x6;
  158. WREG4 = 0x8;
  159. _WREG4 = 0x8;
  160. WREG5 = 0xA;
  161. _WREG5 = 0xA;
  162. WREG6 = 0xC;
  163. _WREG6 = 0xC;
  164. WREG7 = 0xE;
  165. _WREG7 = 0xE;
  166. WREG8 = 0x10;
  167. _WREG8 = 0x10;
  168. WREG9 = 0x12;
  169. _WREG9 = 0x12;
  170. WREG10 = 0x14;
  171. _WREG10 = 0x14;
  172. WREG11 = 0x16;
  173. _WREG11 = 0x16;
  174. WREG12 = 0x18;
  175. _WREG12 = 0x18;
  176. WREG13 = 0x1A;
  177. _WREG13 = 0x1A;
  178. WREG14 = 0x1C;
  179. _WREG14 = 0x1C;
  180. WREG15 = 0x1E;
  181. _WREG15 = 0x1E;
  182. SPLIM = 0x20;
  183. _SPLIM = 0x20;
  184. PCL = 0x2E;
  185. _PCL = 0x2E;
  186. PCH = 0x30;
  187. _PCH = 0x30;
  188. TBLPAG = 0x32;
  189. _TBLPAG = 0x32;
  190. PSVPAG = 0x34;
  191. _PSVPAG = 0x34;
  192. RCOUNT = 0x36;
  193. _RCOUNT = 0x36;
  194. SR = 0x42;
  195. _SR = 0x42;
  196. _SRbits = 0x42;
  197. CORCON = 0x44;
  198. _CORCON = 0x44;
  199. _CORCONbits = 0x44;
  200. DISICNT = 0x52;
  201. _DISICNT = 0x52;
  202. CNPD1 = 0x54;
  203. _CNPD1 = 0x54;
  204. _CNPD1bits = 0x54;
  205. CNPD2 = 0x56;
  206. _CNPD2 = 0x56;
  207. _CNPD2bits = 0x56;
  208. CNPD3 = 0x58;
  209. _CNPD3 = 0x58;
  210. _CNPD3bits = 0x58;
  211. CNPD4 = 0x5A;
  212. _CNPD4 = 0x5A;
  213. _CNPD4bits = 0x5A;
  214. CNPD5 = 0x5C;
  215. _CNPD5 = 0x5C;
  216. _CNPD5bits = 0x5C;
  217. CNPD6 = 0x5E;
  218. _CNPD6 = 0x5E;
  219. _CNPD6bits = 0x5E;
  220. CNEN1 = 0x60;
  221. _CNEN1 = 0x60;
  222. _CNEN1bits = 0x60;
  223. CNEN2 = 0x62;
  224. _CNEN2 = 0x62;
  225. _CNEN2bits = 0x62;
  226. CNEN3 = 0x64;
  227. _CNEN3 = 0x64;
  228. _CNEN3bits = 0x64;
  229. CNEN4 = 0x66;
  230. _CNEN4 = 0x66;
  231. _CNEN4bits = 0x66;
  232. CNEN5 = 0x68;
  233. _CNEN5 = 0x68;
  234. _CNEN5bits = 0x68;
  235. CNEN6 = 0x6A;
  236. _CNEN6 = 0x6A;
  237. _CNEN6bits = 0x6A;
  238. CNPU1 = 0x6C;
  239. _CNPU1 = 0x6C;
  240. _CNPU1bits = 0x6C;
  241. CNPU2 = 0x6E;
  242. _CNPU2 = 0x6E;
  243. _CNPU2bits = 0x6E;
  244. CNPU3 = 0x70;
  245. _CNPU3 = 0x70;
  246. _CNPU3bits = 0x70;
  247. CNPU4 = 0x72;
  248. _CNPU4 = 0x72;
  249. _CNPU4bits = 0x72;
  250. CNPU5 = 0x74;
  251. _CNPU5 = 0x74;
  252. _CNPU5bits = 0x74;
  253. CNPU6 = 0x76;
  254. _CNPU6 = 0x76;
  255. _CNPU6bits = 0x76;
  256. INTCON1 = 0x80;
  257. _INTCON1 = 0x80;
  258. _INTCON1bits = 0x80;
  259. INTCON2 = 0x82;
  260. _INTCON2 = 0x82;
  261. _INTCON2bits = 0x82;
  262. IFS0 = 0x84;
  263. _IFS0 = 0x84;
  264. _IFS0bits = 0x84;
  265. IFS1 = 0x86;
  266. _IFS1 = 0x86;
  267. _IFS1bits = 0x86;
  268. IFS2 = 0x88;
  269. _IFS2 = 0x88;
  270. _IFS2bits = 0x88;
  271. IFS3 = 0x8A;
  272. _IFS3 = 0x8A;
  273. _IFS3bits = 0x8A;
  274. IFS4 = 0x8C;
  275. _IFS4 = 0x8C;
  276. _IFS4bits = 0x8C;
  277. IFS5 = 0x8E;
  278. _IFS5 = 0x8E;
  279. _IFS5bits = 0x8E;
  280. IEC0 = 0x94;
  281. _IEC0 = 0x94;
  282. _IEC0bits = 0x94;
  283. IEC1 = 0x96;
  284. _IEC1 = 0x96;
  285. _IEC1bits = 0x96;
  286. IEC2 = 0x98;
  287. _IEC2 = 0x98;
  288. _IEC2bits = 0x98;
  289. IEC3 = 0x9A;
  290. _IEC3 = 0x9A;
  291. _IEC3bits = 0x9A;
  292. IEC4 = 0x9C;
  293. _IEC4 = 0x9C;
  294. _IEC4bits = 0x9C;
  295. IEC5 = 0x9E;
  296. _IEC5 = 0x9E;
  297. _IEC5bits = 0x9E;
  298. IPC0 = 0xA4;
  299. _IPC0 = 0xA4;
  300. _IPC0bits = 0xA4;
  301. IPC1 = 0xA6;
  302. _IPC1 = 0xA6;
  303. _IPC1bits = 0xA6;
  304. IPC2 = 0xA8;
  305. _IPC2 = 0xA8;
  306. _IPC2bits = 0xA8;
  307. IPC3 = 0xAA;
  308. _IPC3 = 0xAA;
  309. _IPC3bits = 0xAA;
  310. IPC4 = 0xAC;
  311. _IPC4 = 0xAC;
  312. _IPC4bits = 0xAC;
  313. IPC5 = 0xAE;
  314. _IPC5 = 0xAE;
  315. _IPC5bits = 0xAE;
  316. IPC6 = 0xB0;
  317. _IPC6 = 0xB0;
  318. _IPC6bits = 0xB0;
  319. IPC7 = 0xB2;
  320. _IPC7 = 0xB2;
  321. _IPC7bits = 0xB2;
  322. IPC8 = 0xB4;
  323. _IPC8 = 0xB4;
  324. _IPC8bits = 0xB4;
  325. IPC9 = 0xB6;
  326. _IPC9 = 0xB6;
  327. _IPC9bits = 0xB6;
  328. IPC10 = 0xB8;
  329. _IPC10 = 0xB8;
  330. _IPC10bits = 0xB8;
  331. IPC11 = 0xBA;
  332. _IPC11 = 0xBA;
  333. _IPC11bits = 0xBA;
  334. IPC12 = 0xBC;
  335. _IPC12 = 0xBC;
  336. _IPC12bits = 0xBC;
  337. IPC13 = 0xBE;
  338. _IPC13 = 0xBE;
  339. _IPC13bits = 0xBE;
  340. IPC15 = 0xC2;
  341. _IPC15 = 0xC2;
  342. _IPC15bits = 0xC2;
  343. IPC16 = 0xC4;
  344. _IPC16 = 0xC4;
  345. _IPC16bits = 0xC4;
  346. IPC18 = 0xC8;
  347. _IPC18 = 0xC8;
  348. _IPC18bits = 0xC8;
  349. IPC19 = 0xCA;
  350. _IPC19 = 0xCA;
  351. _IPC19bits = 0xCA;
  352. IPC20 = 0xCC;
  353. _IPC20 = 0xCC;
  354. _IPC20bits = 0xCC;
  355. IPC21 = 0xCE;
  356. _IPC21 = 0xCE;
  357. _IPC21bits = 0xCE;
  358. IPC22 = 0xD0;
  359. _IPC22 = 0xD0;
  360. _IPC22bits = 0xD0;
  361. IPC23 = 0xD2;
  362. _IPC23 = 0xD2;
  363. _IPC23bits = 0xD2;
  364. TMR1 = 0x100;
  365. _TMR1 = 0x100;
  366. PR1 = 0x102;
  367. _PR1 = 0x102;
  368. T1CON = 0x104;
  369. _T1CON = 0x104;
  370. _T1CONbits = 0x104;
  371. TMR2 = 0x106;
  372. _TMR2 = 0x106;
  373. TMR3HLD = 0x108;
  374. _TMR3HLD = 0x108;
  375. TMR3 = 0x10A;
  376. _TMR3 = 0x10A;
  377. PR2 = 0x10C;
  378. _PR2 = 0x10C;
  379. PR3 = 0x10E;
  380. _PR3 = 0x10E;
  381. T2CON = 0x110;
  382. _T2CON = 0x110;
  383. _T2CONbits = 0x110;
  384. T3CON = 0x112;
  385. _T3CON = 0x112;
  386. _T3CONbits = 0x112;
  387. TMR4 = 0x114;
  388. _TMR4 = 0x114;
  389. TMR5HLD = 0x116;
  390. _TMR5HLD = 0x116;
  391. TMR5 = 0x118;
  392. _TMR5 = 0x118;
  393. PR4 = 0x11A;
  394. _PR4 = 0x11A;
  395. PR5 = 0x11C;
  396. _PR5 = 0x11C;
  397. T4CON = 0x11E;
  398. _T4CON = 0x11E;
  399. _T4CONbits = 0x11E;
  400. T5CON = 0x120;
  401. _T5CON = 0x120;
  402. _T5CONbits = 0x120;
  403. IC1CON1 = 0x140;
  404. _IC1CON1 = 0x140;
  405. _IC1CON1bits = 0x140;
  406. IC1CON2 = 0x142;
  407. _IC1CON2 = 0x142;
  408. _IC1CON2bits = 0x142;
  409. IC1BUF = 0x144;
  410. _IC1BUF = 0x144;
  411. IC1TMR = 0x146;
  412. _IC1TMR = 0x146;
  413. IC2CON1 = 0x148;
  414. _IC2CON1 = 0x148;
  415. _IC2CON1bits = 0x148;
  416. IC2CON2 = 0x14A;
  417. _IC2CON2 = 0x14A;
  418. _IC2CON2bits = 0x14A;
  419. IC2BUF = 0x14C;
  420. _IC2BUF = 0x14C;
  421. IC2TMR = 0x14E;
  422. _IC2TMR = 0x14E;
  423. IC3CON1 = 0x150;
  424. _IC3CON1 = 0x150;
  425. _IC3CON1bits = 0x150;
  426. IC3CON2 = 0x152;
  427. _IC3CON2 = 0x152;
  428. _IC3CON2bits = 0x152;
  429. IC3BUF = 0x154;
  430. _IC3BUF = 0x154;
  431. IC3TMR = 0x156;
  432. _IC3TMR = 0x156;
  433. IC4CON1 = 0x158;
  434. _IC4CON1 = 0x158;
  435. _IC4CON1bits = 0x158;
  436. IC4CON2 = 0x15A;
  437. _IC4CON2 = 0x15A;
  438. _IC4CON2bits = 0x15A;
  439. IC4BUF = 0x15C;
  440. _IC4BUF = 0x15C;
  441. IC4TMR = 0x15E;
  442. _IC4TMR = 0x15E;
  443. IC5CON1 = 0x160;
  444. _IC5CON1 = 0x160;
  445. _IC5CON1bits = 0x160;
  446. IC5CON2 = 0x162;
  447. _IC5CON2 = 0x162;
  448. _IC5CON2bits = 0x162;
  449. IC5BUF = 0x164;
  450. _IC5BUF = 0x164;
  451. IC5TMR = 0x166;
  452. _IC5TMR = 0x166;
  453. IC6CON1 = 0x168;
  454. _IC6CON1 = 0x168;
  455. _IC6CON1bits = 0x168;
  456. IC6CON2 = 0x16A;
  457. _IC6CON2 = 0x16A;
  458. _IC6CON2bits = 0x16A;
  459. IC6BUF = 0x16C;
  460. _IC6BUF = 0x16C;
  461. IC6TMR = 0x16E;
  462. _IC6TMR = 0x16E;
  463. IC7CON1 = 0x170;
  464. _IC7CON1 = 0x170;
  465. _IC7CON1bits = 0x170;
  466. IC7CON2 = 0x172;
  467. _IC7CON2 = 0x172;
  468. _IC7CON2bits = 0x172;
  469. IC7BUF = 0x174;
  470. _IC7BUF = 0x174;
  471. IC7TMR = 0x176;
  472. _IC7TMR = 0x176;
  473. IC8CON1 = 0x178;
  474. _IC8CON1 = 0x178;
  475. _IC8CON1bits = 0x178;
  476. IC8CON2 = 0x17A;
  477. _IC8CON2 = 0x17A;
  478. _IC8CON2bits = 0x17A;
  479. IC8BUF = 0x17C;
  480. _IC8BUF = 0x17C;
  481. IC8TMR = 0x17E;
  482. _IC8TMR = 0x17E;
  483. IC9CON1 = 0x180;
  484. _IC9CON1 = 0x180;
  485. _IC9CON1bits = 0x180;
  486. IC9CON2 = 0x182;
  487. _IC9CON2 = 0x182;
  488. _IC9CON2bits = 0x182;
  489. IC9BUF = 0x184;
  490. _IC9BUF = 0x184;
  491. IC9TMR = 0x186;
  492. _IC9TMR = 0x186;
  493. OC1CON1 = 0x190;
  494. _OC1CON1 = 0x190;
  495. _OC1CON1bits = 0x190;
  496. OC1CON2 = 0x192;
  497. _OC1CON2 = 0x192;
  498. _OC1CON2bits = 0x192;
  499. OC1RS = 0x194;
  500. _OC1RS = 0x194;
  501. OC1R = 0x196;
  502. _OC1R = 0x196;
  503. OC1TMR = 0x198;
  504. _OC1TMR = 0x198;
  505. OC2CON1 = 0x19A;
  506. _OC2CON1 = 0x19A;
  507. _OC2CON1bits = 0x19A;
  508. OC2CON2 = 0x19C;
  509. _OC2CON2 = 0x19C;
  510. _OC2CON2bits = 0x19C;
  511. OC2RS = 0x19E;
  512. _OC2RS = 0x19E;
  513. OC2R = 0x1A0;
  514. _OC2R = 0x1A0;
  515. OC2TMR = 0x1A2;
  516. _OC2TMR = 0x1A2;
  517. OC3CON1 = 0x1A4;
  518. _OC3CON1 = 0x1A4;
  519. _OC3CON1bits = 0x1A4;
  520. OC3CON2 = 0x1A6;
  521. _OC3CON2 = 0x1A6;
  522. _OC3CON2bits = 0x1A6;
  523. OC3RS = 0x1A8;
  524. _OC3RS = 0x1A8;
  525. OC3R = 0x1AA;
  526. _OC3R = 0x1AA;
  527. OC3TMR = 0x1AC;
  528. _OC3TMR = 0x1AC;
  529. OC4CON1 = 0x1AE;
  530. _OC4CON1 = 0x1AE;
  531. _OC4CON1bits = 0x1AE;
  532. OC4CON2 = 0x1B0;
  533. _OC4CON2 = 0x1B0;
  534. _OC4CON2bits = 0x1B0;
  535. OC4RS = 0x1B2;
  536. _OC4RS = 0x1B2;
  537. OC4R = 0x1B4;
  538. _OC4R = 0x1B4;
  539. OC4TMR = 0x1B6;
  540. _OC4TMR = 0x1B6;
  541. OC5CON1 = 0x1B8;
  542. _OC5CON1 = 0x1B8;
  543. _OC5CON1bits = 0x1B8;
  544. OC5CON2 = 0x1BA;
  545. _OC5CON2 = 0x1BA;
  546. _OC5CON2bits = 0x1BA;
  547. OC5RS = 0x1BC;
  548. _OC5RS = 0x1BC;
  549. OC5R = 0x1BE;
  550. _OC5R = 0x1BE;
  551. OC5TMR = 0x1C0;
  552. _OC5TMR = 0x1C0;
  553. OC6CON1 = 0x1C2;
  554. _OC6CON1 = 0x1C2;
  555. _OC6CON1bits = 0x1C2;
  556. OC6CON2 = 0x1C4;
  557. _OC6CON2 = 0x1C4;
  558. _OC6CON2bits = 0x1C4;
  559. OC6RS = 0x1C6;
  560. _OC6RS = 0x1C6;
  561. OC6R = 0x1C8;
  562. _OC6R = 0x1C8;
  563. OC6TMR = 0x1CA;
  564. _OC6TMR = 0x1CA;
  565. OC7CON1 = 0x1CC;
  566. _OC7CON1 = 0x1CC;
  567. _OC7CON1bits = 0x1CC;
  568. OC7CON2 = 0x1CE;
  569. _OC7CON2 = 0x1CE;
  570. _OC7CON2bits = 0x1CE;
  571. OC7RS = 0x1D0;
  572. _OC7RS = 0x1D0;
  573. OC7R = 0x1D2;
  574. _OC7R = 0x1D2;
  575. OC7TMR = 0x1D4;
  576. _OC7TMR = 0x1D4;
  577. OC8CON1 = 0x1D6;
  578. _OC8CON1 = 0x1D6;
  579. _OC8CON1bits = 0x1D6;
  580. OC8CON2 = 0x1D8;
  581. _OC8CON2 = 0x1D8;
  582. _OC8CON2bits = 0x1D8;
  583. OC8RS = 0x1DA;
  584. _OC8RS = 0x1DA;
  585. OC8R = 0x1DC;
  586. _OC8R = 0x1DC;
  587. OC8TMR = 0x1DE;
  588. _OC8TMR = 0x1DE;
  589. OC9CON1 = 0x1E0;
  590. _OC9CON1 = 0x1E0;
  591. _OC9CON1bits = 0x1E0;
  592. OC9CON2 = 0x1E2;
  593. _OC9CON2 = 0x1E2;
  594. _OC9CON2bits = 0x1E2;
  595. OC9RS = 0x1E4;
  596. _OC9RS = 0x1E4;
  597. OC9R = 0x1E6;
  598. _OC9R = 0x1E6;
  599. OC9TMR = 0x1E8;
  600. _OC9TMR = 0x1E8;
  601. I2C1RCV = 0x200;
  602. _I2C1RCV = 0x200;
  603. I2C1TRN = 0x202;
  604. _I2C1TRN = 0x202;
  605. I2C1BRG = 0x204;
  606. _I2C1BRG = 0x204;
  607. I2C1CON = 0x206;
  608. _I2C1CON = 0x206;
  609. _I2C1CONbits = 0x206;
  610. I2C1STAT = 0x208;
  611. _I2C1STAT = 0x208;
  612. _I2C1STATbits = 0x208;
  613. I2C1ADD = 0x20A;
  614. _I2C1ADD = 0x20A;
  615. I2C1MSK = 0x20C;
  616. _I2C1MSK = 0x20C;
  617. I2C2RCV = 0x210;
  618. _I2C2RCV = 0x210;
  619. I2C2TRN = 0x212;
  620. _I2C2TRN = 0x212;
  621. I2C2BRG = 0x214;
  622. _I2C2BRG = 0x214;
  623. I2C2CON = 0x216;
  624. _I2C2CON = 0x216;
  625. _I2C2CONbits = 0x216;
  626. I2C2STAT = 0x218;
  627. _I2C2STAT = 0x218;
  628. _I2C2STATbits = 0x218;
  629. I2C2ADD = 0x21A;
  630. _I2C2ADD = 0x21A;
  631. I2C2MSK = 0x21C;
  632. _I2C2MSK = 0x21C;
  633. U1MODE = 0x220;
  634. _U1MODE = 0x220;
  635. _U1MODEbits = 0x220;
  636. U1STA = 0x222;
  637. _U1STA = 0x222;
  638. _U1STAbits = 0x222;
  639. U1TXREG = 0x224;
  640. _U1TXREG = 0x224;
  641. U1RXREG = 0x226;
  642. _U1RXREG = 0x226;
  643. U1BRG = 0x228;
  644. _U1BRG = 0x228;
  645. U2MODE = 0x230;
  646. _U2MODE = 0x230;
  647. _U2MODEbits = 0x230;
  648. U2STA = 0x232;
  649. _U2STA = 0x232;
  650. _U2STAbits = 0x232;
  651. U2TXREG = 0x234;
  652. _U2TXREG = 0x234;
  653. U2RXREG = 0x236;
  654. _U2RXREG = 0x236;
  655. U2BRG = 0x238;
  656. _U2BRG = 0x238;
  657. SPI1STAT = 0x240;
  658. _SPI1STAT = 0x240;
  659. _SPI1STATbits = 0x240;
  660. SPI1CON1 = 0x242;
  661. _SPI1CON1 = 0x242;
  662. _SPI1CON1bits = 0x242;
  663. SPI1CON2 = 0x244;
  664. _SPI1CON2 = 0x244;
  665. _SPI1CON2bits = 0x244;
  666. SPI1BUF = 0x248;
  667. _SPI1BUF = 0x248;
  668. U3MODE = 0x250;
  669. _U3MODE = 0x250;
  670. _U3MODEbits = 0x250;
  671. U3STA = 0x252;
  672. _U3STA = 0x252;
  673. _U3STAbits = 0x252;
  674. U3TXREG = 0x254;
  675. _U3TXREG = 0x254;
  676. U3RXREG = 0x256;
  677. _U3RXREG = 0x256;
  678. U3BRG = 0x258;
  679. _U3BRG = 0x258;
  680. SPI2STAT = 0x260;
  681. _SPI2STAT = 0x260;
  682. _SPI2STATbits = 0x260;
  683. SPI2CON1 = 0x262;
  684. _SPI2CON1 = 0x262;
  685. _SPI2CON1bits = 0x262;
  686. SPI2CON2 = 0x264;
  687. _SPI2CON2 = 0x264;
  688. _SPI2CON2bits = 0x264;
  689. SPI2BUF = 0x268;
  690. _SPI2BUF = 0x268;
  691. I2C3RCV = 0x270;
  692. _I2C3RCV = 0x270;
  693. I2C3TRN = 0x272;
  694. _I2C3TRN = 0x272;
  695. I2C3BRG = 0x274;
  696. _I2C3BRG = 0x274;
  697. I2C3CON = 0x276;
  698. _I2C3CON = 0x276;
  699. _I2C3CONbits = 0x276;
  700. I2C3STAT = 0x278;
  701. _I2C3STAT = 0x278;
  702. _I2C3STATbits = 0x278;
  703. I2C3ADD = 0x27A;
  704. _I2C3ADD = 0x27A;
  705. I2C3MSK = 0x27C;
  706. _I2C3MSK = 0x27C;
  707. SPI3STAT = 0x280;
  708. _SPI3STAT = 0x280;
  709. _SPI3STATbits = 0x280;
  710. SPI3CON1 = 0x282;
  711. _SPI3CON1 = 0x282;
  712. _SPI3CON1bits = 0x282;
  713. SPI3CON2 = 0x284;
  714. _SPI3CON2 = 0x284;
  715. _SPI3CON2bits = 0x284;
  716. SPI3BUF = 0x288;
  717. _SPI3BUF = 0x288;
  718. U4MODE = 0x2B0;
  719. _U4MODE = 0x2B0;
  720. _U4MODEbits = 0x2B0;
  721. U4STA = 0x2B2;
  722. _U4STA = 0x2B2;
  723. _U4STAbits = 0x2B2;
  724. U4TXREG = 0x2B4;
  725. _U4TXREG = 0x2B4;
  726. U4RXREG = 0x2B6;
  727. _U4RXREG = 0x2B6;
  728. U4BRG = 0x2B8;
  729. _U4BRG = 0x2B8;
  730. TRISA = 0x2C0;
  731. _TRISA = 0x2C0;
  732. _TRISAbits = 0x2C0;
  733. PORTA = 0x2C2;
  734. _PORTA = 0x2C2;
  735. _PORTAbits = 0x2C2;
  736. LATA = 0x2C4;
  737. _LATA = 0x2C4;
  738. _LATAbits = 0x2C4;
  739. ODCA = 0x2C6;
  740. _ODCA = 0x2C6;
  741. _ODCAbits = 0x2C6;
  742. TRISB = 0x2C8;
  743. _TRISB = 0x2C8;
  744. _TRISBbits = 0x2C8;
  745. PORTB = 0x2CA;
  746. _PORTB = 0x2CA;
  747. _PORTBbits = 0x2CA;
  748. LATB = 0x2CC;
  749. _LATB = 0x2CC;
  750. _LATBbits = 0x2CC;
  751. ODCB = 0x2CE;
  752. _ODCB = 0x2CE;
  753. _ODCBbits = 0x2CE;
  754. TRISC = 0x2D0;
  755. _TRISC = 0x2D0;
  756. _TRISCbits = 0x2D0;
  757. PORTC = 0x2D2;
  758. _PORTC = 0x2D2;
  759. _PORTCbits = 0x2D2;
  760. LATC = 0x2D4;
  761. _LATC = 0x2D4;
  762. _LATCbits = 0x2D4;
  763. ODCC = 0x2D6;
  764. _ODCC = 0x2D6;
  765. _ODCCbits = 0x2D6;
  766. TRISD = 0x2D8;
  767. _TRISD = 0x2D8;
  768. _TRISDbits = 0x2D8;
  769. PORTD = 0x2DA;
  770. _PORTD = 0x2DA;
  771. _PORTDbits = 0x2DA;
  772. LATD = 0x2DC;
  773. _LATD = 0x2DC;
  774. _LATDbits = 0x2DC;
  775. ODCD = 0x2DE;
  776. _ODCD = 0x2DE;
  777. _ODCDbits = 0x2DE;
  778. TRISE = 0x2E0;
  779. _TRISE = 0x2E0;
  780. _TRISEbits = 0x2E0;
  781. PORTE = 0x2E2;
  782. _PORTE = 0x2E2;
  783. _PORTEbits = 0x2E2;
  784. LATE = 0x2E4;
  785. _LATE = 0x2E4;
  786. _LATEbits = 0x2E4;
  787. ODCE = 0x2E6;
  788. _ODCE = 0x2E6;
  789. _ODCEbits = 0x2E6;
  790. TRISF = 0x2E8;
  791. _TRISF = 0x2E8;
  792. _TRISFbits = 0x2E8;
  793. PORTF = 0x2EA;
  794. _PORTF = 0x2EA;
  795. _PORTFbits = 0x2EA;
  796. LATF = 0x2EC;
  797. _LATF = 0x2EC;
  798. _LATFbits = 0x2EC;
  799. ODCF = 0x2EE;
  800. _ODCF = 0x2EE;
  801. _ODCFbits = 0x2EE;
  802. TRISG = 0x2F0;
  803. _TRISG = 0x2F0;
  804. _TRISGbits = 0x2F0;
  805. PORTG = 0x2F2;
  806. _PORTG = 0x2F2;
  807. _PORTGbits = 0x2F2;
  808. LATG = 0x2F4;
  809. _LATG = 0x2F4;
  810. _LATGbits = 0x2F4;
  811. ODCG = 0x2F6;
  812. _ODCG = 0x2F6;
  813. _ODCGbits = 0x2F6;
  814. PADCFG1 = 0x2FC;
  815. _PADCFG1 = 0x2FC;
  816. _PADCFG1bits = 0x2FC;
  817. ADC1BUF0 = 0x300;
  818. _ADC1BUF0 = 0x300;
  819. ADC1BUF1 = 0x302;
  820. _ADC1BUF1 = 0x302;
  821. ADC1BUF2 = 0x304;
  822. _ADC1BUF2 = 0x304;
  823. ADC1BUF3 = 0x306;
  824. _ADC1BUF3 = 0x306;
  825. ADC1BUF4 = 0x308;
  826. _ADC1BUF4 = 0x308;
  827. ADC1BUF5 = 0x30A;
  828. _ADC1BUF5 = 0x30A;
  829. ADC1BUF6 = 0x30C;
  830. _ADC1BUF6 = 0x30C;
  831. ADC1BUF7 = 0x30E;
  832. _ADC1BUF7 = 0x30E;
  833. ADC1BUF8 = 0x310;
  834. _ADC1BUF8 = 0x310;
  835. ADC1BUF9 = 0x312;
  836. _ADC1BUF9 = 0x312;
  837. ADC1BUFA = 0x314;
  838. _ADC1BUFA = 0x314;
  839. ADC1BUFB = 0x316;
  840. _ADC1BUFB = 0x316;
  841. ADC1BUFC = 0x318;
  842. _ADC1BUFC = 0x318;
  843. ADC1BUFD = 0x31A;
  844. _ADC1BUFD = 0x31A;
  845. ADC1BUFE = 0x31C;
  846. _ADC1BUFE = 0x31C;
  847. ADC1BUFF = 0x31E;
  848. _ADC1BUFF = 0x31E;
  849. AD1CON1 = 0x320;
  850. _AD1CON1 = 0x320;
  851. _AD1CON1bits = 0x320;
  852. AD1CON2 = 0x322;
  853. _AD1CON2 = 0x322;
  854. _AD1CON2bits = 0x322;
  855. AD1CON3 = 0x324;
  856. _AD1CON3 = 0x324;
  857. _AD1CON3bits = 0x324;
  858. AD1CHS = 0x328;
  859. _AD1CHS = 0x328;
  860. _AD1CHSbits = 0x328;
  861. AD1CHS0 = 0x328;
  862. _AD1CHS0 = 0x328;
  863. _AD1CHS0bits = 0x328;
  864. AD1PCFGH = 0x32A;
  865. _AD1PCFGH = 0x32A;
  866. _AD1PCFGHbits = 0x32A;
  867. AD1PCFG = 0x32C;
  868. _AD1PCFG = 0x32C;
  869. _AD1PCFGbits = 0x32C;
  870. AD1PCFGL = 0x32C;
  871. _AD1PCFGL = 0x32C;
  872. _AD1PCFGLbits = 0x32C;
  873. AD1CSSL = 0x330;
  874. _AD1CSSL = 0x330;
  875. _AD1CSSLbits = 0x330;
  876. AD1CSSH = 0x332;
  877. _AD1CSSH = 0x332;
  878. _AD1CSSHbits = 0x332;
  879. CTMUCON = 0x33C;
  880. _CTMUCON = 0x33C;
  881. _CTMUCONbits = 0x33C;
  882. CTMUICON = 0x33E;
  883. _CTMUICON = 0x33E;
  884. _CTMUICONbits = 0x33E;
  885. U1OTGIR = 0x480;
  886. _U1OTGIR = 0x480;
  887. _U1OTGIRbits = 0x480;
  888. U1OTGIE = 0x482;
  889. _U1OTGIE = 0x482;
  890. _U1OTGIEbits = 0x482;
  891. U1OTGSTAT = 0x484;
  892. _U1OTGSTAT = 0x484;
  893. _U1OTGSTATbits = 0x484;
  894. U1OTGCON = 0x486;
  895. _U1OTGCON = 0x486;
  896. _U1OTGCONbits = 0x486;
  897. U1PWRC = 0x488;
  898. _U1PWRC = 0x488;
  899. _U1PWRCbits = 0x488;
  900. U1IR = 0x48A;
  901. _U1IR = 0x48A;
  902. _U1IRbits = 0x48A;
  903. U1IE = 0x48C;
  904. _U1IE = 0x48C;
  905. _U1IEbits = 0x48C;
  906. U1EIR = 0x48E;
  907. _U1EIR = 0x48E;
  908. _U1EIRbits = 0x48E;
  909. U1EIE = 0x490;
  910. _U1EIE = 0x490;
  911. _U1EIEbits = 0x490;
  912. U1STAT = 0x492;
  913. _U1STAT = 0x492;
  914. _U1STATbits = 0x492;
  915. U1CON = 0x494;
  916. _U1CON = 0x494;
  917. _U1CONbits = 0x494;
  918. U1ADDR = 0x496;
  919. _U1ADDR = 0x496;
  920. _U1ADDRbits = 0x496;
  921. U1BDTP1 = 0x498;
  922. _U1BDTP1 = 0x498;
  923. _U1BDTP1bits = 0x498;
  924. U1FRML = 0x49A;
  925. _U1FRML = 0x49A;
  926. _U1FRMLbits = 0x49A;
  927. U1FRMH = 0x49C;
  928. _U1FRMH = 0x49C;
  929. _U1FRMHbits = 0x49C;
  930. U1TOK = 0x49E;
  931. _U1TOK = 0x49E;
  932. _U1TOKbits = 0x49E;
  933. U1SOF = 0x4A0;
  934. _U1SOF = 0x4A0;
  935. _U1SOFbits = 0x4A0;
  936. U1BDTP2 = 0x4A2;
  937. _U1BDTP2 = 0x4A2;
  938. _U1BDTP2bits = 0x4A2;
  939. U1BDTP3 = 0x4A4;
  940. _U1BDTP3 = 0x4A4;
  941. _U1BDTP3bits = 0x4A4;
  942. U1CNFG1 = 0x4A6;
  943. _U1CNFG1 = 0x4A6;
  944. _U1CNFG1bits = 0x4A6;
  945. U1CNFG2 = 0x4A8;
  946. _U1CNFG2 = 0x4A8;
  947. _U1CNFG2bits = 0x4A8;
  948. U1EP0 = 0x4AA;
  949. _U1EP0 = 0x4AA;
  950. _U1EP0bits = 0x4AA;
  951. U1EP1 = 0x4AC;
  952. _U1EP1 = 0x4AC;
  953. _U1EP1bits = 0x4AC;
  954. U1EP2 = 0x4AE;
  955. _U1EP2 = 0x4AE;
  956. _U1EP2bits = 0x4AE;
  957. U1EP3 = 0x4B0;
  958. _U1EP3 = 0x4B0;
  959. _U1EP3bits = 0x4B0;
  960. U1EP4 = 0x4B2;
  961. _U1EP4 = 0x4B2;
  962. _U1EP4bits = 0x4B2;
  963. U1EP5 = 0x4B4;
  964. _U1EP5 = 0x4B4;
  965. _U1EP5bits = 0x4B4;
  966. U1EP6 = 0x4B6;
  967. _U1EP6 = 0x4B6;
  968. _U1EP6bits = 0x4B6;
  969. U1EP7 = 0x4B8;
  970. _U1EP7 = 0x4B8;
  971. _U1EP7bits = 0x4B8;
  972. U1EP8 = 0x4BA;
  973. _U1EP8 = 0x4BA;
  974. _U1EP8bits = 0x4BA;
  975. U1EP9 = 0x4BC;
  976. _U1EP9 = 0x4BC;
  977. _U1EP9bits = 0x4BC;
  978. U1EP10 = 0x4BE;
  979. _U1EP10 = 0x4BE;
  980. _U1EP10bits = 0x4BE;
  981. U1EP11 = 0x4C0;
  982. _U1EP11 = 0x4C0;
  983. _U1EP11bits = 0x4C0;
  984. U1EP12 = 0x4C2;
  985. _U1EP12 = 0x4C2;
  986. _U1EP12bits = 0x4C2;
  987. U1EP13 = 0x4C4;
  988. _U1EP13 = 0x4C4;
  989. _U1EP13bits = 0x4C4;
  990. U1EP14 = 0x4C6;
  991. _U1EP14 = 0x4C6;
  992. _U1EP14bits = 0x4C6;
  993. U1EP15 = 0x4C8;
  994. _U1EP15 = 0x4C8;
  995. _U1EP15bits = 0x4C8;
  996. U1PWMRRS = 0x4CC;
  997. _U1PWMRRS = 0x4CC;
  998. _U1PWMRRSbits = 0x4CC;
  999. U1PWMCON = 0x4CE;
  1000. _U1PWMCON = 0x4CE;
  1001. _U1PWMCONbits = 0x4CE;
  1002. PMCON = 0x600;
  1003. _PMCON = 0x600;
  1004. _PMCONbits = 0x600;
  1005. PMMODE = 0x602;
  1006. _PMMODE = 0x602;
  1007. _PMMODEbits = 0x602;
  1008. PMADDR = 0x604;
  1009. _PMADDR = 0x604;
  1010. _PMADDRbits = 0x604;
  1011. PMDOUT1 = 0x604;
  1012. _PMDOUT1 = 0x604;
  1013. _PMDOUT1bits = 0x604;
  1014. PMDOUT2 = 0x606;
  1015. _PMDOUT2 = 0x606;
  1016. PMDIN1 = 0x608;
  1017. _PMDIN1 = 0x608;
  1018. PMDIN2 = 0x60A;
  1019. _PMDIN2 = 0x60A;
  1020. PMAEN = 0x60C;
  1021. _PMAEN = 0x60C;
  1022. _PMAENbits = 0x60C;
  1023. PMSTAT = 0x60E;
  1024. _PMSTAT = 0x60E;
  1025. _PMSTATbits = 0x60E;
  1026. ALRMVAL = 0x620;
  1027. _ALRMVAL = 0x620;
  1028. ALCFGRPT = 0x622;
  1029. _ALCFGRPT = 0x622;
  1030. _ALCFGRPTbits = 0x622;
  1031. RTCVAL = 0x624;
  1032. _RTCVAL = 0x624;
  1033. RCFGCAL = 0x626;
  1034. _RCFGCAL = 0x626;
  1035. _RCFGCALbits = 0x626;
  1036. CMSTAT = 0x630;
  1037. _CMSTAT = 0x630;
  1038. _CMSTATbits = 0x630;
  1039. CVRCON = 0x632;
  1040. _CVRCON = 0x632;
  1041. _CVRCONbits = 0x632;
  1042. CM1CON = 0x634;
  1043. _CM1CON = 0x634;
  1044. _CM1CONbits = 0x634;
  1045. CM2CON = 0x636;
  1046. _CM2CON = 0x636;
  1047. _CM2CONbits = 0x636;
  1048. CM3CON = 0x638;
  1049. _CM3CON = 0x638;
  1050. _CM3CONbits = 0x638;
  1051. CRCCON = 0x640;
  1052. _CRCCON = 0x640;
  1053. _CRCCONbits = 0x640;
  1054. CRCXOR = 0x642;
  1055. _CRCXOR = 0x642;
  1056. _CRCXORbits = 0x642;
  1057. CRCDAT = 0x644;
  1058. _CRCDAT = 0x644;
  1059. CRCWDAT = 0x646;
  1060. _CRCWDAT = 0x646;
  1061. RPINR0 = 0x680;
  1062. _RPINR0 = 0x680;
  1063. _RPINR0bits = 0x680;
  1064. RPINR1 = 0x682;
  1065. _RPINR1 = 0x682;
  1066. _RPINR1bits = 0x682;
  1067. RPINR2 = 0x684;
  1068. _RPINR2 = 0x684;
  1069. _RPINR2bits = 0x684;
  1070. RPINR3 = 0x686;
  1071. _RPINR3 = 0x686;
  1072. _RPINR3bits = 0x686;
  1073. RPINR4 = 0x688;
  1074. _RPINR4 = 0x688;
  1075. _RPINR4bits = 0x688;
  1076. RPINR7 = 0x68E;
  1077. _RPINR7 = 0x68E;
  1078. _RPINR7bits = 0x68E;
  1079. RPINR8 = 0x690;
  1080. _RPINR8 = 0x690;
  1081. _RPINR8bits = 0x690;
  1082. RPINR9 = 0x692;
  1083. _RPINR9 = 0x692;
  1084. _RPINR9bits = 0x692;
  1085. RPINR10 = 0x694;
  1086. _RPINR10 = 0x694;
  1087. _RPINR10bits = 0x694;
  1088. RPINR11 = 0x696;
  1089. _RPINR11 = 0x696;
  1090. _RPINR11bits = 0x696;
  1091. RPINR15 = 0x69E;
  1092. _RPINR15 = 0x69E;
  1093. _RPINR15bits = 0x69E;
  1094. RPINR17 = 0x6A2;
  1095. _RPINR17 = 0x6A2;
  1096. _RPINR17bits = 0x6A2;
  1097. RPINR18 = 0x6A4;
  1098. _RPINR18 = 0x6A4;
  1099. _RPINR18bits = 0x6A4;
  1100. RPINR19 = 0x6A6;
  1101. _RPINR19 = 0x6A6;
  1102. _RPINR19bits = 0x6A6;
  1103. RPINR20 = 0x6A8;
  1104. _RPINR20 = 0x6A8;
  1105. _RPINR20bits = 0x6A8;
  1106. RPINR21 = 0x6AA;
  1107. _RPINR21 = 0x6AA;
  1108. _RPINR21bits = 0x6AA;
  1109. RPINR22 = 0x6AC;
  1110. _RPINR22 = 0x6AC;
  1111. _RPINR22bits = 0x6AC;
  1112. RPINR23 = 0x6AE;
  1113. _RPINR23 = 0x6AE;
  1114. _RPINR23bits = 0x6AE;
  1115. RPINR27 = 0x6B6;
  1116. _RPINR27 = 0x6B6;
  1117. _RPINR27bits = 0x6B6;
  1118. RPINR28 = 0x6B8;
  1119. _RPINR28 = 0x6B8;
  1120. _RPINR28bits = 0x6B8;
  1121. RPINR29 = 0x6BA;
  1122. _RPINR29 = 0x6BA;
  1123. _RPINR29bits = 0x6BA;
  1124. RPOR0 = 0x6C0;
  1125. _RPOR0 = 0x6C0;
  1126. _RPOR0bits = 0x6C0;
  1127. RPOR1 = 0x6C2;
  1128. _RPOR1 = 0x6C2;
  1129. _RPOR1bits = 0x6C2;
  1130. RPOR2 = 0x6C4;
  1131. _RPOR2 = 0x6C4;
  1132. _RPOR2bits = 0x6C4;
  1133. RPOR3 = 0x6C6;
  1134. _RPOR3 = 0x6C6;
  1135. _RPOR3bits = 0x6C6;
  1136. RPOR4 = 0x6C8;
  1137. _RPOR4 = 0x6C8;
  1138. _RPOR4bits = 0x6C8;
  1139. RPOR5 = 0x6CA;
  1140. _RPOR5 = 0x6CA;
  1141. _RPOR5bits = 0x6CA;
  1142. RPOR6 = 0x6CC;
  1143. _RPOR6 = 0x6CC;
  1144. _RPOR6bits = 0x6CC;
  1145. RPOR7 = 0x6CE;
  1146. _RPOR7 = 0x6CE;
  1147. _RPOR7bits = 0x6CE;
  1148. RPOR8 = 0x6D0;
  1149. _RPOR8 = 0x6D0;
  1150. _RPOR8bits = 0x6D0;
  1151. RPOR9 = 0x6D2;
  1152. _RPOR9 = 0x6D2;
  1153. _RPOR9bits = 0x6D2;
  1154. RPOR10 = 0x6D4;
  1155. _RPOR10 = 0x6D4;
  1156. _RPOR10bits = 0x6D4;
  1157. RPOR11 = 0x6D6;
  1158. _RPOR11 = 0x6D6;
  1159. _RPOR11bits = 0x6D6;
  1160. RPOR12 = 0x6D8;
  1161. _RPOR12 = 0x6D8;
  1162. _RPOR12bits = 0x6D8;
  1163. RPOR13 = 0x6DA;
  1164. _RPOR13 = 0x6DA;
  1165. _RPOR13bits = 0x6DA;
  1166. RPOR14 = 0x6DC;
  1167. _RPOR14 = 0x6DC;
  1168. _RPOR14bits = 0x6DC;
  1169. RPOR15 = 0x6DE;
  1170. _RPOR15 = 0x6DE;
  1171. _RPOR15bits = 0x6DE;
  1172. RCON = 0x740;
  1173. _RCON = 0x740;
  1174. _RCONbits = 0x740;
  1175. OSCCON = 0x742;
  1176. _OSCCON = 0x742;
  1177. _OSCCONbits = 0x742;
  1178. CLKDIV = 0x744;
  1179. _CLKDIV = 0x744;
  1180. _CLKDIVbits = 0x744;
  1181. OSCTUN = 0x748;
  1182. _OSCTUN = 0x748;
  1183. _OSCTUNbits = 0x748;
  1184. REFOCON = 0x74E;
  1185. _REFOCON = 0x74E;
  1186. _REFOCONbits = 0x74E;
  1187. NVMCON = 0x760;
  1188. _NVMCON = 0x760;
  1189. _NVMCONbits = 0x760;
  1190. NVMKEY = 0x766;
  1191. _NVMKEY = 0x766;
  1192. PMD1 = 0x770;
  1193. _PMD1 = 0x770;
  1194. _PMD1bits = 0x770;
  1195. PMD2 = 0x772;
  1196. _PMD2 = 0x772;
  1197. _PMD2bits = 0x772;
  1198. PMD3 = 0x774;
  1199. _PMD3 = 0x774;
  1200. _PMD3bits = 0x774;
  1201. PMD4 = 0x776;
  1202. _PMD4 = 0x776;
  1203. _PMD4bits = 0x776;
  1204. PMD5 = 0x778;
  1205. _PMD5 = 0x778;
  1206. _PMD5bits = 0x778;
  1207. PMD6 = 0x77A;
  1208. _PMD6 = 0x77A;
  1209. _PMD6bits = 0x77A;
  1210. /*
  1211. ** ======= Base Addresses for Various Peripherals ======
  1212. */
  1213. IC1 = 0x144;
  1214. _IC1 = 0x144;
  1215. IC2 = 0x14C;
  1216. _IC2 = 0x14C;
  1217. IC3 = 0x154;
  1218. _IC3 = 0x154;
  1219. IC4 = 0x15C;
  1220. _IC4 = 0x15C;
  1221. IC5 = 0x164;
  1222. _IC5 = 0x164;
  1223. IC6 = 0x16C;
  1224. _IC6 = 0x16C;
  1225. IC7 = 0x174;
  1226. _IC7 = 0x174;
  1227. IC8 = 0x17C;
  1228. _IC8 = 0x17C;
  1229. OC1 = 0x194;
  1230. _OC1 = 0x194;
  1231. OC2 = 0x19E;
  1232. _OC2 = 0x19E;
  1233. OC3 = 0x1A8;
  1234. _OC3 = 0x1A8;
  1235. OC4 = 0x1B2;
  1236. _OC4 = 0x1B2;
  1237. OC5 = 0x1BC;
  1238. _OC5 = 0x1BC;
  1239. OC6 = 0x1C6;
  1240. _OC6 = 0x1C6;
  1241. OC7 = 0x1D0;
  1242. _OC7 = 0x1D0;
  1243. OC8 = 0x1DA;
  1244. _OC8 = 0x1DA;
  1245. SPI1 = 0x240;
  1246. _SPI1 = 0x240;
  1247. SPI2 = 0x260;
  1248. _SPI2 = 0x260;
  1249. UART1 = 0x220;
  1250. _UART1 = 0x220;
  1251. UART2 = 0x230;
  1252. _UART2 = 0x230;