Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / pic16f627.h
1 //
2 // Register Declarations for Microchip 16F627 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 P16F627_H
23 #define P16F627_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 PCLATH_ADDR     0x000A
36 #define INTCON_ADDR     0x000B
37 #define PIR1_ADDR       0x000C
38 #define TMR1L_ADDR      0x000E
39 #define TMR1H_ADDR      0x000F
40 #define T1CON_ADDR      0x0010
41 #define TMR2_ADDR       0x0011
42 #define T2CON_ADDR      0x0012
43 #define CCPR1L_ADDR     0x0015
44 #define CCPR1H_ADDR     0x0016
45 #define CCP1CON_ADDR    0x0017
46 #define RCSTA_ADDR      0x0018
47 #define TXREG_ADDR      0x0019
48 #define RCREG_ADDR      0x001A
49 #define CMCON_ADDR      0x001F
50 #define OPTION_REG_ADDR 0x0081
51 #define TRISA_ADDR      0x0085
52 #define TRISB_ADDR      0x0086
53 #define PIE1_ADDR       0x008C
54 #define PCON_ADDR       0x008E
55 #define PR2_ADDR        0x0092
56 #define TXSTA_ADDR      0x0098
57 #define SPBRG_ADDR      0x0099
58 #define EEDATA_ADDR     0x009A
59 #define EEADR_ADDR      0x009B
60 #define EECON1_ADDR     0x009C
61 #define EECON2_ADDR     0x009D
62 #define VRCON_ADDR      0x009F
63
64 //
65 // Memory organization.
66 //
67
68
69
70 //         LIST
71 // P16F627.INC  Standard Header File, Version 1.01    Microchip Technology, Inc.
72 //         NOLIST
73
74 // This header file defines configurations, registers, and other useful bits of
75 // information for the PIC16F627 microcontroller.  These names are taken to match
76 // the data sheets as closely as possible.
77
78 // Note that the processor must be selected before this file is
79 // included.  The processor may be selected the following ways:
80
81 //       1. Command line switch:
82 //               C:\ MPASM MYFILE.ASM /PIC16F627
83 //       2. LIST directive in the source file
84 //               LIST   P=PIC16F627
85 //       3. Processor Type entry in the MPASM full-screen interface
86
87 //==========================================================================
88 //
89 //       Revision History
90 //
91 //==========================================================================
92
93 //Rev:   Date:    Reason:
94 //1.01   13 Sept 2001   Added _DATA_CP_ON and _DATA_CP_OFF
95 //1.00   10 Feb 1999 Initial Release
96
97 //==========================================================================
98 //
99 //       Verify Processor
100 //
101 //==========================================================================
102
103 //        IFNDEF __16F627
104 //            MESSG "Processor-header file mismatch.  Verify selected processor."
105 //         ENDIF
106
107 //==========================================================================
108 //
109 //       Register Definitions
110 //
111 //==========================================================================
112
113 #define W                    0x0000
114 #define F                    0x0001
115
116 //----- Register Files------------------------------------------------------
117
118 extern __sfr  __at (INDF_ADDR)                    INDF;
119 extern __sfr  __at (TMR0_ADDR)                    TMR0;
120 extern __sfr  __at (PCL_ADDR)                     PCL;
121 extern __sfr  __at (STATUS_ADDR)                  STATUS;
122 extern __sfr  __at (FSR_ADDR)                     FSR;
123 extern __sfr  __at (PORTA_ADDR)                   PORTA;
124 extern __sfr  __at (PORTB_ADDR)                   PORTB;
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 (CCPR1L_ADDR)                  CCPR1L;
134 extern __sfr  __at (CCPR1H_ADDR)                  CCPR1H;
135 extern __sfr  __at (CCP1CON_ADDR)                 CCP1CON;
136 extern __sfr  __at (RCSTA_ADDR)                   RCSTA;
137 extern __sfr  __at (TXREG_ADDR)                   TXREG;
138 extern __sfr  __at (RCREG_ADDR)                   RCREG;
139 extern __sfr  __at (CMCON_ADDR)                   CMCON;
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 (PIE1_ADDR)                    PIE1;
145 extern __sfr  __at (PCON_ADDR)                    PCON;
146 extern __sfr  __at (PR2_ADDR)                     PR2;
147 extern __sfr  __at (TXSTA_ADDR)                   TXSTA;
148 extern __sfr  __at (SPBRG_ADDR)                   SPBRG;
149 extern __sfr  __at (EEDATA_ADDR)                  EEDATA;
150 extern __sfr  __at (EEADR_ADDR)                   EEADR;
151 extern __sfr  __at (EECON1_ADDR)                  EECON1;
152 extern __sfr  __at (EECON2_ADDR)                  EECON2;
153 extern __sfr  __at (VRCON_ADDR)                   VRCON;
154
155 //----- STATUS Bits --------------------------------------------------------
156
157
158 //----- INTCON Bits --------------------------------------------------------
159
160
161 //----- PIR1 Bits ----------------------------------------------------------
162
163
164 //----- T1CON Bits ---------------------------------------------------------
165
166 //----- T2CON Bits ---------------------------------------------------------
167
168 //----- CCP1CON Bits ---------------------------------------------------------
169
170 //----- RCSTA Bits ---------------------------------------------------------
171
172 //----- CMCON Bits ---------------------------------------------------------
173
174
175 //----- OPTION Bits --------------------------------------------------------
176
177
178 //----- PIE1 Bits ----------------------------------------------------------
179
180
181 //----- PCON Bits ----------------------------------------------------------
182
183
184 //----- TXSTA Bits ----------------------------------------------------------
185
186 //----- EECON1 Bits ---------------------------------------------------------
187
188 //----- VRCON Bits ---------------------------------------------------------
189
190
191 //==========================================================================
192 //
193 //       RAM Definition
194 //
195 //==========================================================================
196
197 //     __MAXRAM H'01FF'
198 //     __BADRAM H'07'-H'09', H'0D', H'13'-H'14', H'1B'-H'1E'
199 //     __BADRAM H'87'-H'89', H'8D', H'8F'-H'91', H'93'-H'97', H'9E'
200 //     __BADRAM H'105', H'107'-H'109', H'10C'-H'11F', H'150'-H'16F'
201 //     __BADRAM H'185', H'187'-H'189', H'18C'-H'1EF'
202
203 //==========================================================================
204 //
205 //       Configuration Bits
206 //
207 //==========================================================================
208
209 #define _BODEN_ON            0x3FFF
210 #define _BODEN_OFF           0x3FBF
211 #define _CP_ALL              0x03FF
212 #define _CP_75               0x17FF
213 #define _CP_50               0x2BFF
214 #define _CP_OFF              0x3FFF
215 #define _DATA_CP_ON          0x3EFF
216 #define _DATA_CP_OFF         0x3FFF
217 #define _PWRTE_OFF           0x3FFF
218 #define _PWRTE_ON            0x3FF7
219 #define _WDT_ON              0x3FFF
220 #define _WDT_OFF             0x3FFB
221 #define _LVP_ON              0x3FFF
222 #define _LVP_OFF             0x3F7F
223 #define _MCLRE_ON            0x3FFF
224 #define _MCLRE_OFF           0x3FDF
225 #define _ER_OSC_CLKOUT       0x3FFF
226 #define _ER_OSC_NOCLKOUT     0x3FFE
227 #define _INTRC_OSC_CLKOUT    0x3FFD
228 #define _INTRC_OSC_NOCLKOUT  0x3FFC
229 #define _EXTCLK_OSC          0x3FEF
230 #define _LP_OSC              0x3FEC
231 #define _XT_OSC              0x3FED
232 #define _HS_OSC              0x3FEE
233
234 //         LIST
235
236 // ----- CCP1CON bits --------------------
237 typedef union {
238   struct {
239     unsigned char CCP1M0:1;
240     unsigned char CCP1M1:1;
241     unsigned char CCP1M2:1;
242     unsigned char CCP1M3:1;
243     unsigned char CCP1Y:1;
244     unsigned char CCP1X:1;
245     unsigned char :1;
246     unsigned char :1;
247   };
248 } __CCP1CON_bits_t;
249 extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
250
251 #ifndef NO_BIT_DEFINES
252 #define CCP1M0               CCP1CON_bits.CCP1M0
253 #define CCP1M1               CCP1CON_bits.CCP1M1
254 #define CCP1M2               CCP1CON_bits.CCP1M2
255 #define CCP1M3               CCP1CON_bits.CCP1M3
256 #define CCP1Y                CCP1CON_bits.CCP1Y
257 #define CCP1X                CCP1CON_bits.CCP1X
258 #endif /* NO_BIT_DEFINES */
259
260 // ----- CMCON bits --------------------
261 typedef union {
262   struct {
263     unsigned char CM0:1;
264     unsigned char CM1:1;
265     unsigned char CM2:1;
266     unsigned char CIS:1;
267     unsigned char C1INV:1;
268     unsigned char C2INV:1;
269     unsigned char C1OUT:1;
270     unsigned char C2OUT:1;
271   };
272 } __CMCON_bits_t;
273 extern volatile __CMCON_bits_t __at(CMCON_ADDR) CMCON_bits;
274
275 #ifndef NO_BIT_DEFINES
276 #define CM0                  CMCON_bits.CM0
277 #define CM1                  CMCON_bits.CM1
278 #define CM2                  CMCON_bits.CM2
279 #define CIS                  CMCON_bits.CIS
280 #define C1INV                CMCON_bits.C1INV
281 #define C2INV                CMCON_bits.C2INV
282 #define C1OUT                CMCON_bits.C1OUT
283 #define C2OUT                CMCON_bits.C2OUT
284 #endif /* NO_BIT_DEFINES */
285
286 // ----- EECON1 bits --------------------
287 typedef union {
288   struct {
289     unsigned char RD:1;
290     unsigned char WR:1;
291     unsigned char WREN:1;
292     unsigned char WRERR:1;
293     unsigned char :1;
294     unsigned char :1;
295     unsigned char :1;
296     unsigned char :1;
297   };
298 } __EECON1_bits_t;
299 extern volatile __EECON1_bits_t __at(EECON1_ADDR) EECON1_bits;
300
301 #ifndef NO_BIT_DEFINES
302 #define RD                   EECON1_bits.RD
303 #define WR                   EECON1_bits.WR
304 #define WREN                 EECON1_bits.WREN
305 #define WRERR                EECON1_bits.WRERR
306 #endif /* NO_BIT_DEFINES */
307
308 // ----- INTCON bits --------------------
309 typedef union {
310   struct {
311     unsigned char RBIF:1;
312     unsigned char INTF:1;
313     unsigned char T0IF:1;
314     unsigned char RBIE:1;
315     unsigned char INTE:1;
316     unsigned char T0IE:1;
317     unsigned char PEIE:1;
318     unsigned char GIE:1;
319   };
320 } __INTCON_bits_t;
321 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
322
323 #ifndef NO_BIT_DEFINES
324 #define RBIF                 INTCON_bits.RBIF
325 #define INTF                 INTCON_bits.INTF
326 #define T0IF                 INTCON_bits.T0IF
327 #define RBIE                 INTCON_bits.RBIE
328 #define INTE                 INTCON_bits.INTE
329 #define T0IE                 INTCON_bits.T0IE
330 #define PEIE                 INTCON_bits.PEIE
331 #define GIE                  INTCON_bits.GIE
332 #endif /* NO_BIT_DEFINES */
333
334 // ----- OPTION_REG bits --------------------
335 typedef union {
336   struct {
337     unsigned char PS0:1;
338     unsigned char PS1:1;
339     unsigned char PS2:1;
340     unsigned char PSA:1;
341     unsigned char T0SE:1;
342     unsigned char T0CS:1;
343     unsigned char INTEDG:1;
344     unsigned char NOT_RBPU:1;
345   };
346 } __OPTION_REG_bits_t;
347 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
348
349 #ifndef NO_BIT_DEFINES
350 #define PS0                  OPTION_REG_bits.PS0
351 #define PS1                  OPTION_REG_bits.PS1
352 #define PS2                  OPTION_REG_bits.PS2
353 #define PSA                  OPTION_REG_bits.PSA
354 #define T0SE                 OPTION_REG_bits.T0SE
355 #define T0CS                 OPTION_REG_bits.T0CS
356 #define INTEDG               OPTION_REG_bits.INTEDG
357 #define NOT_RBPU             OPTION_REG_bits.NOT_RBPU
358 #endif /* NO_BIT_DEFINES */
359
360 // ----- PCON bits --------------------
361 typedef union {
362   struct {
363     unsigned char NOT_BO:1;
364     unsigned char NOT_POR:1;
365     unsigned char :1;
366     unsigned char OSCF:1;
367     unsigned char :1;
368     unsigned char :1;
369     unsigned char :1;
370     unsigned char :1;
371   };
372   struct {
373     unsigned char NOT_BOR:1;
374     unsigned char :1;
375     unsigned char :1;
376     unsigned char :1;
377     unsigned char :1;
378     unsigned char :1;
379     unsigned char :1;
380     unsigned char :1;
381   };
382   struct {
383     unsigned char NOT_BOD:1;
384     unsigned char :1;
385     unsigned char :1;
386     unsigned char :1;
387     unsigned char :1;
388     unsigned char :1;
389     unsigned char :1;
390     unsigned char :1;
391   };
392 } __PCON_bits_t;
393 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
394
395 #ifndef NO_BIT_DEFINES
396 #define NOT_BO               PCON_bits.NOT_BO
397 #define NOT_BOR              PCON_bits.NOT_BOR
398 #define NOT_BOD              PCON_bits.NOT_BOD
399 #define NOT_POR              PCON_bits.NOT_POR
400 #define OSCF                 PCON_bits.OSCF
401 #endif /* NO_BIT_DEFINES */
402
403 // ----- PIE1 bits --------------------
404 typedef union {
405   struct {
406     unsigned char TMR1IE:1;
407     unsigned char TMR2IE:1;
408     unsigned char CCP1IE:1;
409     unsigned char :1;
410     unsigned char TXIE:1;
411     unsigned char RCIE:1;
412     unsigned char CMIE:1;
413     unsigned char EEIE:1;
414   };
415 } __PIE1_bits_t;
416 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
417
418 #ifndef NO_BIT_DEFINES
419 #define TMR1IE               PIE1_bits.TMR1IE
420 #define TMR2IE               PIE1_bits.TMR2IE
421 #define CCP1IE               PIE1_bits.CCP1IE
422 #define TXIE                 PIE1_bits.TXIE
423 #define RCIE                 PIE1_bits.RCIE
424 #define CMIE                 PIE1_bits.CMIE
425 #define EEIE                 PIE1_bits.EEIE
426 #endif /* NO_BIT_DEFINES */
427
428 // ----- PIR1 bits --------------------
429 typedef union {
430   struct {
431     unsigned char TMR1IF:1;
432     unsigned char TMR2IF:1;
433     unsigned char CCP1IF:1;
434     unsigned char :1;
435     unsigned char TXIF:1;
436     unsigned char RCIF:1;
437     unsigned char CMIF:1;
438     unsigned char EEIF:1;
439   };
440 } __PIR1_bits_t;
441 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
442
443 #ifndef NO_BIT_DEFINES
444 #define TMR1IF               PIR1_bits.TMR1IF
445 #define TMR2IF               PIR1_bits.TMR2IF
446 #define CCP1IF               PIR1_bits.CCP1IF
447 #define TXIF                 PIR1_bits.TXIF
448 #define RCIF                 PIR1_bits.RCIF
449 #define CMIF                 PIR1_bits.CMIF
450 #define EEIF                 PIR1_bits.EEIF
451 #endif /* NO_BIT_DEFINES */
452
453 // ----- PORTA bits --------------------
454 typedef union {
455   struct {
456     unsigned char RA0:1;
457     unsigned char RA1:1;
458     unsigned char RA2:1;
459     unsigned char RA3:1;
460     unsigned char RA4:1;
461     unsigned char RA5:1;
462     unsigned char :1;
463     unsigned char :1;
464   };
465 } __PORTA_bits_t;
466 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
467
468 #ifndef NO_BIT_DEFINES
469 #define RA0                  PORTA_bits.RA0
470 #define RA1                  PORTA_bits.RA1
471 #define RA2                  PORTA_bits.RA2
472 #define RA3                  PORTA_bits.RA3
473 #define RA4                  PORTA_bits.RA4
474 #define RA5                  PORTA_bits.RA5
475 #endif /* NO_BIT_DEFINES */
476
477 // ----- PORTB bits --------------------
478 typedef union {
479   struct {
480     unsigned char RB0:1;
481     unsigned char RB1:1;
482     unsigned char RB2:1;
483     unsigned char RB3:1;
484     unsigned char RB4:1;
485     unsigned char RB5:1;
486     unsigned char RB6:1;
487     unsigned char RB7:1;
488   };
489 } __PORTB_bits_t;
490 extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
491
492 #ifndef NO_BIT_DEFINES
493 #define RB0                  PORTB_bits.RB0
494 #define RB1                  PORTB_bits.RB1
495 #define RB2                  PORTB_bits.RB2
496 #define RB3                  PORTB_bits.RB3
497 #define RB4                  PORTB_bits.RB4
498 #define RB5                  PORTB_bits.RB5
499 #define RB6                  PORTB_bits.RB6
500 #define RB7                  PORTB_bits.RB7
501 #endif /* NO_BIT_DEFINES */
502
503 // ----- RCSTA bits --------------------
504 typedef union {
505   struct {
506     unsigned char RX9D:1;
507     unsigned char OERR:1;
508     unsigned char FERR:1;
509     unsigned char ADEN:1;
510     unsigned char CREN:1;
511     unsigned char SREN:1;
512     unsigned char RX9:1;
513     unsigned char SPEN:1;
514   };
515 } __RCSTA_bits_t;
516 extern volatile __RCSTA_bits_t __at(RCSTA_ADDR) RCSTA_bits;
517
518 #ifndef NO_BIT_DEFINES
519 #define RX9D                 RCSTA_bits.RX9D
520 #define OERR                 RCSTA_bits.OERR
521 #define FERR                 RCSTA_bits.FERR
522 #define ADEN                 RCSTA_bits.ADEN
523 #define CREN                 RCSTA_bits.CREN
524 #define SREN                 RCSTA_bits.SREN
525 #define RX9                  RCSTA_bits.RX9
526 #define SPEN                 RCSTA_bits.SPEN
527 #endif /* NO_BIT_DEFINES */
528
529 // ----- STATUS bits --------------------
530 typedef union {
531   struct {
532     unsigned char C:1;
533     unsigned char DC:1;
534     unsigned char Z:1;
535     unsigned char NOT_PD:1;
536     unsigned char NOT_TO:1;
537     unsigned char RP0:1;
538     unsigned char RP1:1;
539     unsigned char IRP:1;
540   };
541 } __STATUS_bits_t;
542 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
543
544 #ifndef NO_BIT_DEFINES
545 #define C                    STATUS_bits.C
546 #define DC                   STATUS_bits.DC
547 #define Z                    STATUS_bits.Z
548 #define NOT_PD               STATUS_bits.NOT_PD
549 #define NOT_TO               STATUS_bits.NOT_TO
550 #define RP0                  STATUS_bits.RP0
551 #define RP1                  STATUS_bits.RP1
552 #define IRP                  STATUS_bits.IRP
553 #endif /* NO_BIT_DEFINES */
554
555 // ----- T1CON bits --------------------
556 typedef union {
557   struct {
558     unsigned char TMR1ON:1;
559     unsigned char TMR1CS:1;
560     unsigned char NOT_T1SYNC:1;
561     unsigned char T1OSCEN:1;
562     unsigned char T1CKPS0:1;
563     unsigned char T1CKPS1:1;
564     unsigned char :1;
565     unsigned char :1;
566   };
567 } __T1CON_bits_t;
568 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
569
570 #ifndef NO_BIT_DEFINES
571 #define TMR1ON               T1CON_bits.TMR1ON
572 #define TMR1CS               T1CON_bits.TMR1CS
573 #define NOT_T1SYNC           T1CON_bits.NOT_T1SYNC
574 #define T1OSCEN              T1CON_bits.T1OSCEN
575 #define T1CKPS0              T1CON_bits.T1CKPS0
576 #define T1CKPS1              T1CON_bits.T1CKPS1
577 #endif /* NO_BIT_DEFINES */
578
579 // ----- T2CON bits --------------------
580 typedef union {
581   struct {
582     unsigned char T2CKPS0:1;
583     unsigned char T2CKPS1:1;
584     unsigned char TMR2ON:1;
585     unsigned char TOUTPS0:1;
586     unsigned char TOUTPS1:1;
587     unsigned char TOUTPS2:1;
588     unsigned char TOUTPS3:1;
589     unsigned char :1;
590   };
591 } __T2CON_bits_t;
592 extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
593
594 #ifndef NO_BIT_DEFINES
595 #define T2CKPS0              T2CON_bits.T2CKPS0
596 #define T2CKPS1              T2CON_bits.T2CKPS1
597 #define TMR2ON               T2CON_bits.TMR2ON
598 #define TOUTPS0              T2CON_bits.TOUTPS0
599 #define TOUTPS1              T2CON_bits.TOUTPS1
600 #define TOUTPS2              T2CON_bits.TOUTPS2
601 #define TOUTPS3              T2CON_bits.TOUTPS3
602 #endif /* NO_BIT_DEFINES */
603
604 // ----- TRISA bits --------------------
605 typedef union {
606   struct {
607     unsigned char TRISA0:1;
608     unsigned char TRISA1:1;
609     unsigned char TRISA2:1;
610     unsigned char TRISA3:1;
611     unsigned char TRISA4:1;
612     unsigned char TRISA5:1;
613     unsigned char :1;
614     unsigned char :1;
615   };
616 } __TRISA_bits_t;
617 extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
618
619 #ifndef NO_BIT_DEFINES
620 #define TRISA0               TRISA_bits.TRISA0
621 #define TRISA1               TRISA_bits.TRISA1
622 #define TRISA2               TRISA_bits.TRISA2
623 #define TRISA3               TRISA_bits.TRISA3
624 #define TRISA4               TRISA_bits.TRISA4
625 #define TRISA5               TRISA_bits.TRISA5
626 #endif /* NO_BIT_DEFINES */
627
628 // ----- TRISB bits --------------------
629 typedef union {
630   struct {
631     unsigned char TRISB0:1;
632     unsigned char TRISB1:1;
633     unsigned char TRISB2:1;
634     unsigned char TRISB3:1;
635     unsigned char TRISB4:1;
636     unsigned char TRISB5:1;
637     unsigned char TRISB6:1;
638     unsigned char TRISB7:1;
639   };
640 } __TRISB_bits_t;
641 extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
642
643 #ifndef NO_BIT_DEFINES
644 #define TRISB0               TRISB_bits.TRISB0
645 #define TRISB1               TRISB_bits.TRISB1
646 #define TRISB2               TRISB_bits.TRISB2
647 #define TRISB3               TRISB_bits.TRISB3
648 #define TRISB4               TRISB_bits.TRISB4
649 #define TRISB5               TRISB_bits.TRISB5
650 #define TRISB6               TRISB_bits.TRISB6
651 #define TRISB7               TRISB_bits.TRISB7
652 #endif /* NO_BIT_DEFINES */
653
654 // ----- TXSTA bits --------------------
655 typedef union {
656   struct {
657     unsigned char TX9D:1;
658     unsigned char TRMT:1;
659     unsigned char BRGH:1;
660     unsigned char :1;
661     unsigned char SYNC:1;
662     unsigned char TXEN:1;
663     unsigned char TX9:1;
664     unsigned char CSRC:1;
665   };
666 } __TXSTA_bits_t;
667 extern volatile __TXSTA_bits_t __at(TXSTA_ADDR) TXSTA_bits;
668
669 #ifndef NO_BIT_DEFINES
670 #define TX9D                 TXSTA_bits.TX9D
671 #define TRMT                 TXSTA_bits.TRMT
672 #define BRGH                 TXSTA_bits.BRGH
673 #define SYNC                 TXSTA_bits.SYNC
674 #define TXEN                 TXSTA_bits.TXEN
675 #define TX9                  TXSTA_bits.TX9
676 #define CSRC                 TXSTA_bits.CSRC
677 #endif /* NO_BIT_DEFINES */
678
679 // ----- VRCON bits --------------------
680 typedef union {
681   struct {
682     unsigned char VR0:1;
683     unsigned char VR1:1;
684     unsigned char VR2:1;
685     unsigned char VR3:1;
686     unsigned char :1;
687     unsigned char VRR:1;
688     unsigned char VROE:1;
689     unsigned char VREN:1;
690   };
691 } __VRCON_bits_t;
692 extern volatile __VRCON_bits_t __at(VRCON_ADDR) VRCON_bits;
693
694 #ifndef NO_BIT_DEFINES
695 #define VR0                  VRCON_bits.VR0
696 #define VR1                  VRCON_bits.VR1
697 #define VR2                  VRCON_bits.VR2
698 #define VR3                  VRCON_bits.VR3
699 #define VRR                  VRCON_bits.VRR
700 #define VROE                 VRCON_bits.VROE
701 #define VREN                 VRCON_bits.VREN
702 #endif /* NO_BIT_DEFINES */
703
704 #endif