Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / pic16c72.h
1 //
2 // Register Declarations for Microchip 16C72 Processor
3 //
4 //
5 // This header file was automatically generated by:
6 //
7 //      inc2h.pl V4783
8 //
9 //      Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
10 //
11 //      SDCC is licensed under the GNU Public license (GPL) v2.  Note that
12 //      this license covers the code to the compiler and other executables,
13 //      but explicitly does not cover any code or objects generated by sdcc.
14 //      We have not yet decided on a license for the run time libraries, but
15 //      it will not put any requirements on code linked against it. See:
16 // 
17 //      http://www.gnu.org/copyleft/gpl/html
18 //
19 //      See http://sdcc.sourceforge.net/ for the latest information on sdcc.
20 //
21 // 
22 #ifndef P16C72_H
23 #define P16C72_H
24
25 //
26 // Register addresses.
27 //
28 #define INDF_ADDR       0x0000
29 #define TMR0_ADDR       0x0001
30 #define PCL_ADDR        0x0002
31 #define STATUS_ADDR     0x0003
32 #define FSR_ADDR        0x0004
33 #define PORTA_ADDR      0x0005
34 #define PORTB_ADDR      0x0006
35 #define PORTC_ADDR      0x0007
36 #define PCLATH_ADDR     0x000A
37 #define INTCON_ADDR     0x000B
38 #define PIR1_ADDR       0x000C
39 #define TMR1L_ADDR      0x000E
40 #define TMR1H_ADDR      0x000F
41 #define T1CON_ADDR      0x0010
42 #define TMR2_ADDR       0x0011
43 #define T2CON_ADDR      0x0012
44 #define SSPBUF_ADDR     0x0013
45 #define SSPCON_ADDR     0x0014
46 #define CCPR1L_ADDR     0x0015
47 #define CCPR1H_ADDR     0x0016
48 #define CCP1CON_ADDR    0x0017
49 #define ADRES_ADDR      0x001E
50 #define ADCON0_ADDR     0x001F
51 #define OPTION_REG_ADDR 0x0081
52 #define TRISA_ADDR      0x0085
53 #define TRISB_ADDR      0x0086
54 #define TRISC_ADDR      0x0087
55 #define PIE1_ADDR       0x008C
56 #define PCON_ADDR       0x008E
57 #define PR2_ADDR        0x0092
58 #define SSPADD_ADDR     0x0093
59 #define SSPSTAT_ADDR    0x0094
60 #define ADCON1_ADDR     0x009F
61
62 //
63 // Memory organization.
64 //
65
66
67
68 //         LIST
69 // P16C72.INC  Standard Header File, Version 1.01    Microchip Technology, Inc.
70 //         NOLIST
71
72 // This header file defines configurations, registers, and other useful bits of
73 // information for the PIC16C72 microcontroller.  These names are taken to match 
74 // the data sheets as closely as possible.  
75
76 // Note that the processor must be selected before this file is 
77 // included.  The processor may be selected the following ways:
78
79 //       1. Command line switch:
80 //               C:\ MPASM MYFILE.ASM /PIC16C72
81 //       2. LIST directive in the source file
82 //               LIST   P=PIC16C72
83 //       3. Processor Type entry in the MPASM full-screen interface
84
85 //==========================================================================
86 //
87 //       Revision History
88 //
89 //==========================================================================
90
91 //Rev:   Date:    Reason:
92
93 //1.01   11/28/95 Added NOT_BOR to match revised datasheet
94 //1.00   10/31/95 Initial Release
95
96 //==========================================================================
97 //
98 //       Verify Processor
99 //
100 //==========================================================================
101
102 //        IFNDEF __16C72
103 //            MESSG "Processor-header file mismatch.  Verify selected processor."
104 //         ENDIF
105
106 //==========================================================================
107 //
108 //       Register Definitions
109 //
110 //==========================================================================
111
112 #define W                    0x0000
113 #define F                    0x0001
114
115 //----- Register Files------------------------------------------------------
116
117 extern __sfr  __at (INDF_ADDR)                    INDF;
118 extern __sfr  __at (TMR0_ADDR)                    TMR0;
119 extern __sfr  __at (PCL_ADDR)                     PCL;
120 extern __sfr  __at (STATUS_ADDR)                  STATUS;
121 extern __sfr  __at (FSR_ADDR)                     FSR;
122 extern __sfr  __at (PORTA_ADDR)                   PORTA;
123 extern __sfr  __at (PORTB_ADDR)                   PORTB;
124 extern __sfr  __at (PORTC_ADDR)                   PORTC;
125 extern __sfr  __at (PCLATH_ADDR)                  PCLATH;
126 extern __sfr  __at (INTCON_ADDR)                  INTCON;
127 extern __sfr  __at (PIR1_ADDR)                    PIR1;
128 extern __sfr  __at (TMR1L_ADDR)                   TMR1L;
129 extern __sfr  __at (TMR1H_ADDR)                   TMR1H;
130 extern __sfr  __at (T1CON_ADDR)                   T1CON;
131 extern __sfr  __at (TMR2_ADDR)                    TMR2;
132 extern __sfr  __at (T2CON_ADDR)                   T2CON;
133 extern __sfr  __at (SSPBUF_ADDR)                  SSPBUF;
134 extern __sfr  __at (SSPCON_ADDR)                  SSPCON;
135 extern __sfr  __at (CCPR1L_ADDR)                  CCPR1L;
136 extern __sfr  __at (CCPR1H_ADDR)                  CCPR1H;
137 extern __sfr  __at (CCP1CON_ADDR)                 CCP1CON;
138 extern __sfr  __at (ADRES_ADDR)                   ADRES;
139 extern __sfr  __at (ADCON0_ADDR)                  ADCON0;
140
141 extern __sfr  __at (OPTION_REG_ADDR)              OPTION_REG;
142 extern __sfr  __at (TRISA_ADDR)                   TRISA;
143 extern __sfr  __at (TRISB_ADDR)                   TRISB;
144 extern __sfr  __at (TRISC_ADDR)                   TRISC;
145 extern __sfr  __at (PIE1_ADDR)                    PIE1;
146 extern __sfr  __at (PCON_ADDR)                    PCON;
147 extern __sfr  __at (PR2_ADDR)                     PR2;
148 extern __sfr  __at (SSPADD_ADDR)                  SSPADD;
149 extern __sfr  __at (SSPSTAT_ADDR)                 SSPSTAT;
150 extern __sfr  __at (ADCON1_ADDR)                  ADCON1;
151
152 //----- STATUS Bits --------------------------------------------------------
153
154
155 //----- INTCON Bits --------------------------------------------------------
156
157
158 //----- PIR1 Bits ----------------------------------------------------------
159
160
161 //----- T1CON Bits ---------------------------------------------------------
162
163
164 //----- T2CON Bits ---------------------------------------------------------
165
166
167 //----- SSPCON Bits --------------------------------------------------------
168
169
170 //----- CCP1CON Bits -------------------------------------------------------
171
172
173 //----- ADCON0 Bits --------------------------------------------------------
174
175
176 //----- OPTION Bits --------------------------------------------------------
177
178
179 //----- PIE1 Bits ----------------------------------------------------------
180
181
182 //----- PCON Bits ----------------------------------------------------------
183
184
185 //----- SSPSTAT Bits -------------------------------------------------------
186
187
188 //----- ADCON1 Bits --------------------------------------------------------
189
190
191 //==========================================================================
192 //
193 //       RAM Definition
194 //
195 //==========================================================================
196
197 //         __MAXRAM H'BF'
198 //         __BADRAM H'08'-H'09', H'0D', H'18'-H'1D'
199 //         __BADRAM H'88'-H'89', H'8D', H'8F'-H'91', H'95'-H'9E'
200
201 //==========================================================================
202 //
203 //       Configuration Bits
204 //
205 //==========================================================================
206
207 #define _BODEN_ON            0x3FFF
208 #define _BODEN_OFF           0x3FBF
209 #define _CP_ALL              0x00CF
210 #define _CP_75               0x15DF
211 #define _CP_50               0x2AEF
212 #define _CP_OFF              0x3FFF
213 #define _PWRTE_OFF           0x3FFF
214 #define _PWRTE_ON            0x3FF7
215 #define _WDT_ON              0x3FFF
216 #define _WDT_OFF             0x3FFB
217 #define _LP_OSC              0x3FFC
218 #define _XT_OSC              0x3FFD
219 #define _HS_OSC              0x3FFE
220 #define _RC_OSC              0x3FFF
221
222 //         LIST
223
224 // ----- ADCON0 bits --------------------
225 typedef union {
226   struct {
227     unsigned char ADON:1;
228     unsigned char :1;
229     unsigned char GO:1;
230     unsigned char CHS0:1;
231     unsigned char CHS1:1;
232     unsigned char CHS2:1;
233     unsigned char ADCS0:1;
234     unsigned char ADCS1:1;
235   };
236   struct {
237     unsigned char :1;
238     unsigned char :1;
239     unsigned char NOT_DONE:1;
240     unsigned char :1;
241     unsigned char :1;
242     unsigned char :1;
243     unsigned char :1;
244     unsigned char :1;
245   };
246   struct {
247     unsigned char :1;
248     unsigned char :1;
249     unsigned char GO_DONE:1;
250     unsigned char :1;
251     unsigned char :1;
252     unsigned char :1;
253     unsigned char :1;
254     unsigned char :1;
255   };
256 } __ADCON0_bits_t;
257 extern volatile __ADCON0_bits_t __at(ADCON0_ADDR) ADCON0_bits;
258
259 #ifndef NO_BIT_DEFINES
260 #define ADON                 ADCON0_bits.ADON
261 #define GO                   ADCON0_bits.GO
262 #define NOT_DONE             ADCON0_bits.NOT_DONE
263 #define GO_DONE              ADCON0_bits.GO_DONE
264 #define CHS0                 ADCON0_bits.CHS0
265 #define CHS1                 ADCON0_bits.CHS1
266 #define CHS2                 ADCON0_bits.CHS2
267 #define ADCS0                ADCON0_bits.ADCS0
268 #define ADCS1                ADCON0_bits.ADCS1
269 #endif /* NO_BIT_DEFINES */
270
271 // ----- ADCON1 bits --------------------
272 typedef union {
273   struct {
274     unsigned char PCFG0:1;
275     unsigned char PCFG1:1;
276     unsigned char PCFG2:1;
277     unsigned char :1;
278     unsigned char :1;
279     unsigned char :1;
280     unsigned char :1;
281     unsigned char :1;
282   };
283 } __ADCON1_bits_t;
284 extern volatile __ADCON1_bits_t __at(ADCON1_ADDR) ADCON1_bits;
285
286 #ifndef NO_BIT_DEFINES
287 #define PCFG0                ADCON1_bits.PCFG0
288 #define PCFG1                ADCON1_bits.PCFG1
289 #define PCFG2                ADCON1_bits.PCFG2
290 #endif /* NO_BIT_DEFINES */
291
292 // ----- CCP1CON bits --------------------
293 typedef union {
294   struct {
295     unsigned char CCP1M0:1;
296     unsigned char CCP1M1:1;
297     unsigned char CCP1M2:1;
298     unsigned char CCP1M3:1;
299     unsigned char CCP1Y:1;
300     unsigned char CCP1X:1;
301     unsigned char :1;
302     unsigned char :1;
303   };
304 } __CCP1CON_bits_t;
305 extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
306
307 #ifndef NO_BIT_DEFINES
308 #define CCP1M0               CCP1CON_bits.CCP1M0
309 #define CCP1M1               CCP1CON_bits.CCP1M1
310 #define CCP1M2               CCP1CON_bits.CCP1M2
311 #define CCP1M3               CCP1CON_bits.CCP1M3
312 #define CCP1Y                CCP1CON_bits.CCP1Y
313 #define CCP1X                CCP1CON_bits.CCP1X
314 #endif /* NO_BIT_DEFINES */
315
316 // ----- INTCON bits --------------------
317 typedef union {
318   struct {
319     unsigned char RBIF:1;
320     unsigned char INTF:1;
321     unsigned char T0IF:1;
322     unsigned char RBIE:1;
323     unsigned char INTE:1;
324     unsigned char T0IE:1;
325     unsigned char PEIE:1;
326     unsigned char GIE:1;
327   };
328 } __INTCON_bits_t;
329 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
330
331 #ifndef NO_BIT_DEFINES
332 #define RBIF                 INTCON_bits.RBIF
333 #define INTF                 INTCON_bits.INTF
334 #define T0IF                 INTCON_bits.T0IF
335 #define RBIE                 INTCON_bits.RBIE
336 #define INTE                 INTCON_bits.INTE
337 #define T0IE                 INTCON_bits.T0IE
338 #define PEIE                 INTCON_bits.PEIE
339 #define GIE                  INTCON_bits.GIE
340 #endif /* NO_BIT_DEFINES */
341
342 // ----- OPTION_REG bits --------------------
343 typedef union {
344   struct {
345     unsigned char PS0:1;
346     unsigned char PS1:1;
347     unsigned char PS2:1;
348     unsigned char PSA:1;
349     unsigned char T0SE:1;
350     unsigned char T0CS:1;
351     unsigned char INTEDG:1;
352     unsigned char NOT_RBPU:1;
353   };
354 } __OPTION_REG_bits_t;
355 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
356
357 #ifndef NO_BIT_DEFINES
358 #define PS0                  OPTION_REG_bits.PS0
359 #define PS1                  OPTION_REG_bits.PS1
360 #define PS2                  OPTION_REG_bits.PS2
361 #define PSA                  OPTION_REG_bits.PSA
362 #define T0SE                 OPTION_REG_bits.T0SE
363 #define T0CS                 OPTION_REG_bits.T0CS
364 #define INTEDG               OPTION_REG_bits.INTEDG
365 #define NOT_RBPU             OPTION_REG_bits.NOT_RBPU
366 #endif /* NO_BIT_DEFINES */
367
368 // ----- PCON bits --------------------
369 typedef union {
370   struct {
371     unsigned char NOT_BO:1;
372     unsigned char NOT_POR:1;
373     unsigned char :1;
374     unsigned char :1;
375     unsigned char :1;
376     unsigned char :1;
377     unsigned char :1;
378     unsigned char :1;
379   };
380   struct {
381     unsigned char NOT_BOR:1;
382     unsigned char :1;
383     unsigned char :1;
384     unsigned char :1;
385     unsigned char :1;
386     unsigned char :1;
387     unsigned char :1;
388     unsigned char :1;
389   };
390 } __PCON_bits_t;
391 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
392
393 #ifndef NO_BIT_DEFINES
394 #define NOT_BO               PCON_bits.NOT_BO
395 #define NOT_BOR              PCON_bits.NOT_BOR
396 #define NOT_POR              PCON_bits.NOT_POR
397 #endif /* NO_BIT_DEFINES */
398
399 // ----- PIE1 bits --------------------
400 typedef union {
401   struct {
402     unsigned char TMR1IE:1;
403     unsigned char TMR2IE:1;
404     unsigned char CCP1IE:1;
405     unsigned char SSPIE:1;
406     unsigned char :1;
407     unsigned char :1;
408     unsigned char ADIE:1;
409     unsigned char :1;
410   };
411 } __PIE1_bits_t;
412 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
413
414 #ifndef NO_BIT_DEFINES
415 #define TMR1IE               PIE1_bits.TMR1IE
416 #define TMR2IE               PIE1_bits.TMR2IE
417 #define CCP1IE               PIE1_bits.CCP1IE
418 #define SSPIE                PIE1_bits.SSPIE
419 #define ADIE                 PIE1_bits.ADIE
420 #endif /* NO_BIT_DEFINES */
421
422 // ----- PIR1 bits --------------------
423 typedef union {
424   struct {
425     unsigned char TMR1IF:1;
426     unsigned char TMR2IF:1;
427     unsigned char CCP1IF:1;
428     unsigned char SSPIF:1;
429     unsigned char :1;
430     unsigned char :1;
431     unsigned char ADIF:1;
432     unsigned char :1;
433   };
434 } __PIR1_bits_t;
435 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
436
437 #ifndef NO_BIT_DEFINES
438 #define TMR1IF               PIR1_bits.TMR1IF
439 #define TMR2IF               PIR1_bits.TMR2IF
440 #define CCP1IF               PIR1_bits.CCP1IF
441 #define SSPIF                PIR1_bits.SSPIF
442 #define ADIF                 PIR1_bits.ADIF
443 #endif /* NO_BIT_DEFINES */
444
445 // ----- PORTA bits --------------------
446 typedef union {
447   struct {
448     unsigned char RA0:1;
449     unsigned char RA1:1;
450     unsigned char RA2:1;
451     unsigned char RA3:1;
452     unsigned char RA4:1;
453     unsigned char RA5:1;
454     unsigned char :1;
455     unsigned char :1;
456   };
457 } __PORTA_bits_t;
458 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
459
460 #ifndef NO_BIT_DEFINES
461 #define RA0                  PORTA_bits.RA0
462 #define RA1                  PORTA_bits.RA1
463 #define RA2                  PORTA_bits.RA2
464 #define RA3                  PORTA_bits.RA3
465 #define RA4                  PORTA_bits.RA4
466 #define RA5                  PORTA_bits.RA5
467 #endif /* NO_BIT_DEFINES */
468
469 // ----- PORTB bits --------------------
470 typedef union {
471   struct {
472     unsigned char RB0:1;
473     unsigned char RB1:1;
474     unsigned char RB2:1;
475     unsigned char RB3:1;
476     unsigned char RB4:1;
477     unsigned char RB5:1;
478     unsigned char RB6:1;
479     unsigned char RB7:1;
480   };
481 } __PORTB_bits_t;
482 extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
483
484 #ifndef NO_BIT_DEFINES
485 #define RB0                  PORTB_bits.RB0
486 #define RB1                  PORTB_bits.RB1
487 #define RB2                  PORTB_bits.RB2
488 #define RB3                  PORTB_bits.RB3
489 #define RB4                  PORTB_bits.RB4
490 #define RB5                  PORTB_bits.RB5
491 #define RB6                  PORTB_bits.RB6
492 #define RB7                  PORTB_bits.RB7
493 #endif /* NO_BIT_DEFINES */
494
495 // ----- PORTC bits --------------------
496 typedef union {
497   struct {
498     unsigned char RC0:1;
499     unsigned char RC1:1;
500     unsigned char RC2:1;
501     unsigned char RC3:1;
502     unsigned char RC4:1;
503     unsigned char RC5:1;
504     unsigned char RC6:1;
505     unsigned char RC7:1;
506   };
507 } __PORTC_bits_t;
508 extern volatile __PORTC_bits_t __at(PORTC_ADDR) PORTC_bits;
509
510 #ifndef NO_BIT_DEFINES
511 #define RC0                  PORTC_bits.RC0
512 #define RC1                  PORTC_bits.RC1
513 #define RC2                  PORTC_bits.RC2
514 #define RC3                  PORTC_bits.RC3
515 #define RC4                  PORTC_bits.RC4
516 #define RC5                  PORTC_bits.RC5
517 #define RC6                  PORTC_bits.RC6
518 #define RC7                  PORTC_bits.RC7
519 #endif /* NO_BIT_DEFINES */
520
521 // ----- SSPCON bits --------------------
522 typedef union {
523   struct {
524     unsigned char SSPM0:1;
525     unsigned char SSPM1:1;
526     unsigned char SSPM2:1;
527     unsigned char SSPM3:1;
528     unsigned char CKP:1;
529     unsigned char SSPEN:1;
530     unsigned char SSPOV:1;
531     unsigned char WCOL:1;
532   };
533 } __SSPCON_bits_t;
534 extern volatile __SSPCON_bits_t __at(SSPCON_ADDR) SSPCON_bits;
535
536 #ifndef NO_BIT_DEFINES
537 #define SSPM0                SSPCON_bits.SSPM0
538 #define SSPM1                SSPCON_bits.SSPM1
539 #define SSPM2                SSPCON_bits.SSPM2
540 #define SSPM3                SSPCON_bits.SSPM3
541 #define CKP                  SSPCON_bits.CKP
542 #define SSPEN                SSPCON_bits.SSPEN
543 #define SSPOV                SSPCON_bits.SSPOV
544 #define WCOL                 SSPCON_bits.WCOL
545 #endif /* NO_BIT_DEFINES */
546
547 // ----- SSPSTAT bits --------------------
548 typedef union {
549   struct {
550     unsigned char BF:1;
551     unsigned char UA:1;
552     unsigned char R:1;
553     unsigned char S:1;
554     unsigned char P:1;
555     unsigned char D:1;
556     unsigned char :1;
557     unsigned char :1;
558   };
559   struct {
560     unsigned char :1;
561     unsigned char :1;
562     unsigned char I2C_READ:1;
563     unsigned char I2C_START:1;
564     unsigned char I2C_STOP:1;
565     unsigned char I2C_DATA:1;
566     unsigned char :1;
567     unsigned char :1;
568   };
569   struct {
570     unsigned char :1;
571     unsigned char :1;
572     unsigned char NOT_W:1;
573     unsigned char :1;
574     unsigned char :1;
575     unsigned char NOT_A:1;
576     unsigned char :1;
577     unsigned char :1;
578   };
579   struct {
580     unsigned char :1;
581     unsigned char :1;
582     unsigned char NOT_WRITE:1;
583     unsigned char :1;
584     unsigned char :1;
585     unsigned char NOT_ADDRESS:1;
586     unsigned char :1;
587     unsigned char :1;
588   };
589   struct {
590     unsigned char :1;
591     unsigned char :1;
592     unsigned char R_W:1;
593     unsigned char :1;
594     unsigned char :1;
595     unsigned char D_A:1;
596     unsigned char :1;
597     unsigned char :1;
598   };
599   struct {
600     unsigned char :1;
601     unsigned char :1;
602     unsigned char READ_WRITE:1;
603     unsigned char :1;
604     unsigned char :1;
605     unsigned char DATA_ADDRESS:1;
606     unsigned char :1;
607     unsigned char :1;
608   };
609 } __SSPSTAT_bits_t;
610 extern volatile __SSPSTAT_bits_t __at(SSPSTAT_ADDR) SSPSTAT_bits;
611
612 #ifndef NO_BIT_DEFINES
613 #define BF                   SSPSTAT_bits.BF
614 #define UA                   SSPSTAT_bits.UA
615 #define R                    SSPSTAT_bits.R
616 #define I2C_READ             SSPSTAT_bits.I2C_READ
617 #define NOT_W                SSPSTAT_bits.NOT_W
618 #define NOT_WRITE            SSPSTAT_bits.NOT_WRITE
619 #define R_W                  SSPSTAT_bits.R_W
620 #define READ_WRITE           SSPSTAT_bits.READ_WRITE
621 #define S                    SSPSTAT_bits.S
622 #define I2C_START            SSPSTAT_bits.I2C_START
623 #define P                    SSPSTAT_bits.P
624 #define I2C_STOP             SSPSTAT_bits.I2C_STOP
625 #define D                    SSPSTAT_bits.D
626 #define I2C_DATA             SSPSTAT_bits.I2C_DATA
627 #define NOT_A                SSPSTAT_bits.NOT_A
628 #define NOT_ADDRESS          SSPSTAT_bits.NOT_ADDRESS
629 #define D_A                  SSPSTAT_bits.D_A
630 #define DATA_ADDRESS         SSPSTAT_bits.DATA_ADDRESS
631 #endif /* NO_BIT_DEFINES */
632
633 // ----- STATUS bits --------------------
634 typedef union {
635   struct {
636     unsigned char C:1;
637     unsigned char DC:1;
638     unsigned char Z:1;
639     unsigned char NOT_PD:1;
640     unsigned char NOT_TO:1;
641     unsigned char RP0:1;
642     unsigned char RP1:1;
643     unsigned char IRP:1;
644   };
645 } __STATUS_bits_t;
646 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
647
648 #ifndef NO_BIT_DEFINES
649 #define C                    STATUS_bits.C
650 #define DC                   STATUS_bits.DC
651 #define Z                    STATUS_bits.Z
652 #define NOT_PD               STATUS_bits.NOT_PD
653 #define NOT_TO               STATUS_bits.NOT_TO
654 #define RP0                  STATUS_bits.RP0
655 #define RP1                  STATUS_bits.RP1
656 #define IRP                  STATUS_bits.IRP
657 #endif /* NO_BIT_DEFINES */
658
659 // ----- T1CON bits --------------------
660 typedef union {
661   struct {
662     unsigned char TMR1ON:1;
663     unsigned char TMR1CS:1;
664     unsigned char NOT_T1SYNC:1;
665     unsigned char T1OSCEN:1;
666     unsigned char T1CKPS0:1;
667     unsigned char T1CKPS1:1;
668     unsigned char :1;
669     unsigned char :1;
670   };
671   struct {
672     unsigned char :1;
673     unsigned char :1;
674     unsigned char T1INSYNC:1;
675     unsigned char :1;
676     unsigned char :1;
677     unsigned char :1;
678     unsigned char :1;
679     unsigned char :1;
680   };
681 } __T1CON_bits_t;
682 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
683
684 #ifndef NO_BIT_DEFINES
685 #define TMR1ON               T1CON_bits.TMR1ON
686 #define TMR1CS               T1CON_bits.TMR1CS
687 #define NOT_T1SYNC           T1CON_bits.NOT_T1SYNC
688 #define T1INSYNC             T1CON_bits.T1INSYNC
689 #define T1OSCEN              T1CON_bits.T1OSCEN
690 #define T1CKPS0              T1CON_bits.T1CKPS0
691 #define T1CKPS1              T1CON_bits.T1CKPS1
692 #endif /* NO_BIT_DEFINES */
693
694 // ----- T2CON bits --------------------
695 typedef union {
696   struct {
697     unsigned char T2CKPS0:1;
698     unsigned char T2CKPS1:1;
699     unsigned char TMR2ON:1;
700     unsigned char TOUTPS0:1;
701     unsigned char TOUTPS1:1;
702     unsigned char TOUTPS2:1;
703     unsigned char TOUTPS3:1;
704     unsigned char :1;
705   };
706 } __T2CON_bits_t;
707 extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
708
709 #ifndef NO_BIT_DEFINES
710 #define T2CKPS0              T2CON_bits.T2CKPS0
711 #define T2CKPS1              T2CON_bits.T2CKPS1
712 #define TMR2ON               T2CON_bits.TMR2ON
713 #define TOUTPS0              T2CON_bits.TOUTPS0
714 #define TOUTPS1              T2CON_bits.TOUTPS1
715 #define TOUTPS2              T2CON_bits.TOUTPS2
716 #define TOUTPS3              T2CON_bits.TOUTPS3
717 #endif /* NO_BIT_DEFINES */
718
719 // ----- TRISA bits --------------------
720 typedef union {
721   struct {
722     unsigned char TRISA0:1;
723     unsigned char TRISA1:1;
724     unsigned char TRISA2:1;
725     unsigned char TRISA3:1;
726     unsigned char TRISA4:1;
727     unsigned char TRISA5:1;
728     unsigned char :1;
729     unsigned char :1;
730   };
731 } __TRISA_bits_t;
732 extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
733
734 #ifndef NO_BIT_DEFINES
735 #define TRISA0               TRISA_bits.TRISA0
736 #define TRISA1               TRISA_bits.TRISA1
737 #define TRISA2               TRISA_bits.TRISA2
738 #define TRISA3               TRISA_bits.TRISA3
739 #define TRISA4               TRISA_bits.TRISA4
740 #define TRISA5               TRISA_bits.TRISA5
741 #endif /* NO_BIT_DEFINES */
742
743 // ----- TRISB bits --------------------
744 typedef union {
745   struct {
746     unsigned char TRISB0:1;
747     unsigned char TRISB1:1;
748     unsigned char TRISB2:1;
749     unsigned char TRISB3:1;
750     unsigned char TRISB4:1;
751     unsigned char TRISB5:1;
752     unsigned char TRISB6:1;
753     unsigned char TRISB7:1;
754   };
755 } __TRISB_bits_t;
756 extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
757
758 #ifndef NO_BIT_DEFINES
759 #define TRISB0               TRISB_bits.TRISB0
760 #define TRISB1               TRISB_bits.TRISB1
761 #define TRISB2               TRISB_bits.TRISB2
762 #define TRISB3               TRISB_bits.TRISB3
763 #define TRISB4               TRISB_bits.TRISB4
764 #define TRISB5               TRISB_bits.TRISB5
765 #define TRISB6               TRISB_bits.TRISB6
766 #define TRISB7               TRISB_bits.TRISB7
767 #endif /* NO_BIT_DEFINES */
768
769 // ----- TRISC bits --------------------
770 typedef union {
771   struct {
772     unsigned char TRISC0:1;
773     unsigned char TRISC1:1;
774     unsigned char TRISC2:1;
775     unsigned char TRISC3:1;
776     unsigned char TRISC4:1;
777     unsigned char TRISC5:1;
778     unsigned char TRISC6:1;
779     unsigned char TRISC7:1;
780   };
781 } __TRISC_bits_t;
782 extern volatile __TRISC_bits_t __at(TRISC_ADDR) TRISC_bits;
783
784 #ifndef NO_BIT_DEFINES
785 #define TRISC0               TRISC_bits.TRISC0
786 #define TRISC1               TRISC_bits.TRISC1
787 #define TRISC2               TRISC_bits.TRISC2
788 #define TRISC3               TRISC_bits.TRISC3
789 #define TRISC4               TRISC_bits.TRISC4
790 #define TRISC5               TRISC_bits.TRISC5
791 #define TRISC6               TRISC_bits.TRISC6
792 #define TRISC7               TRISC_bits.TRISC7
793 #endif /* NO_BIT_DEFINES */
794
795 #endif