Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / pic16f648a.h
1 //
2 // Register Declarations for Microchip 16F648A 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 P16F648A_H
23 #define P16F648A_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 // P16F648A.INC  Standard Header File, Version 1.00    Microchip Technology, Inc.
72 //         NOLIST
73
74 // This header file defines configurations, registers, and other useful bits of
75 // information for the PIC16F648A 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 /PIC16F648A
83 //       2. LIST directive in the source file
84 //               LIST   P=PIC16F648A
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.00   14 Nov 2002 Initial Release
95
96 //==========================================================================
97 //
98 //       Verify Processor
99 //
100 //==========================================================================
101
102 //        IFNDEF __16F648A
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 (PCLATH_ADDR)                  PCLATH;
125 extern __sfr  __at (INTCON_ADDR)                  INTCON;
126 extern __sfr  __at (PIR1_ADDR)                    PIR1;
127 extern __sfr  __at (TMR1L_ADDR)                   TMR1L;
128 extern __sfr  __at (TMR1H_ADDR)                   TMR1H;
129 extern __sfr  __at (T1CON_ADDR)                   T1CON;
130 extern __sfr  __at (TMR2_ADDR)                    TMR2;
131 extern __sfr  __at (T2CON_ADDR)                   T2CON;
132 extern __sfr  __at (CCPR1L_ADDR)                  CCPR1L;
133 extern __sfr  __at (CCPR1H_ADDR)                  CCPR1H;
134 extern __sfr  __at (CCP1CON_ADDR)                 CCP1CON;
135 extern __sfr  __at (RCSTA_ADDR)                   RCSTA;
136 extern __sfr  __at (TXREG_ADDR)                   TXREG;
137 extern __sfr  __at (RCREG_ADDR)                   RCREG;
138 extern __sfr  __at (CMCON_ADDR)                   CMCON;
139
140 extern __sfr  __at (OPTION_REG_ADDR)              OPTION_REG;
141 extern __sfr  __at (TRISA_ADDR)                   TRISA;
142 extern __sfr  __at (TRISB_ADDR)                   TRISB;
143 extern __sfr  __at (PIE1_ADDR)                    PIE1;
144 extern __sfr  __at (PCON_ADDR)                    PCON;
145 extern __sfr  __at (PR2_ADDR)                     PR2;
146 extern __sfr  __at (TXSTA_ADDR)                   TXSTA;
147 extern __sfr  __at (SPBRG_ADDR)                   SPBRG;
148 extern __sfr  __at (EEDATA_ADDR)                  EEDATA;
149 extern __sfr  __at (EEADR_ADDR)                   EEADR;
150 extern __sfr  __at (EECON1_ADDR)                  EECON1;
151 extern __sfr  __at (EECON2_ADDR)                  EECON2;
152 extern __sfr  __at (VRCON_ADDR)                   VRCON;
153
154 //==========================================================================
155 //
156 //       RAM Definition
157 //
158 //==========================================================================
159
160 //     __MAXRAM H'01FF'
161 //     __BADRAM H'07'-H'09', H'0D', H'13'-H'14', H'1B'-H'1E'
162 //     __BADRAM H'87'-H'89', H'8D', H'8F'-H'91', H'93'-H'97', H'9E'
163 //     __BADRAM H'105', H'107'-H'109', H'10C'-H'11F'
164 //     __BADRAM H'185', H'187'-H'189', H'18C'-H'1EF'
165
166 //==========================================================================
167 //
168 //       Configuration Bits
169 //
170 //==========================================================================
171
172 #define _BODEN_ON            0x3FFF //Backwards compatability to 16F62X
173 #define _BODEN_OFF           0x3FBF //Backwards compatability to 16F62X
174 #define _BOREN_ON            0x3FFF
175 #define _BOREN_OFF           0x3FBF
176 #define _CP_ON               0x1FFF
177 #define _CP_OFF              0x3FFF
178 #define _DATA_CP_ON          0x3EFF
179 #define _DATA_CP_OFF         0x3FFF
180 #define _PWRTE_OFF           0x3FFF
181 #define _PWRTE_ON            0x3FF7
182 #define _WDT_ON              0x3FFF
183 #define _WDT_OFF             0x3FFB
184 #define _LVP_ON              0x3FFF
185 #define _LVP_OFF             0x3F7F
186 #define _MCLRE_ON            0x3FFF
187 #define _MCLRE_OFF           0x3FDF
188 #define _RC_OSC_CLKOUT       0x3FFF
189 #define _RC_OSC_NOCLKOUT     0x3FFE
190 #define _ER_OSC_CLKOUT       0x3FFF //Backwards compatability to 16F62X
191 #define _ER_OSC_NOCLKOUT     0x3FFE //Backwards compatability to 16F62X
192 #define _INTOSC_OSC_CLKOUT   0x3FFD
193 #define _INTOSC_OSC_NOCLKOUT 0x3FFC    
194 #define _INTRC_OSC_CLKOUT    0x3FFD //Backwards compatability to 16F62X
195 #define _INTRC_OSC_NOCLKOUT  0x3FFC //Backwards compatability to 16F62X
196 #define _EXTCLK_OSC          0x3FEF
197 #define _HS_OSC              0x3FEE
198 #define _XT_OSC              0x3FED
199 #define _LP_OSC              0x3FEC
200
201 //         LIST
202
203 // ----- CCP1CON bits --------------------
204 typedef union {
205   struct {
206     unsigned char CCP1M0:1;
207     unsigned char CCP1M1:1;
208     unsigned char CCP1M2:1;
209     unsigned char CCP1M3:1;
210     unsigned char CCP1Y:1;
211     unsigned char CCP1X:1;
212     unsigned char :1;
213     unsigned char :1;
214   };
215 } __CCP1CON_bits_t;
216 extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
217
218 #ifndef NO_BIT_DEFINES
219 #define CCP1M0               CCP1CON_bits.CCP1M0
220 #define CCP1M1               CCP1CON_bits.CCP1M1
221 #define CCP1M2               CCP1CON_bits.CCP1M2
222 #define CCP1M3               CCP1CON_bits.CCP1M3
223 #define CCP1Y                CCP1CON_bits.CCP1Y
224 #define CCP1X                CCP1CON_bits.CCP1X
225 #endif /* NO_BIT_DEFINES */
226
227 // ----- CMCON bits --------------------
228 typedef union {
229   struct {
230     unsigned char CM0:1;
231     unsigned char CM1:1;
232     unsigned char CM2:1;
233     unsigned char CIS:1;
234     unsigned char C1INV:1;
235     unsigned char C2INV:1;
236     unsigned char C1OUT:1;
237     unsigned char C2OUT:1;
238   };
239 } __CMCON_bits_t;
240 extern volatile __CMCON_bits_t __at(CMCON_ADDR) CMCON_bits;
241
242 #ifndef NO_BIT_DEFINES
243 #define CM0                  CMCON_bits.CM0
244 #define CM1                  CMCON_bits.CM1
245 #define CM2                  CMCON_bits.CM2
246 #define CIS                  CMCON_bits.CIS
247 #define C1INV                CMCON_bits.C1INV
248 #define C2INV                CMCON_bits.C2INV
249 #define C1OUT                CMCON_bits.C1OUT
250 #define C2OUT                CMCON_bits.C2OUT
251 #endif /* NO_BIT_DEFINES */
252
253 // ----- EECON1 bits --------------------
254 typedef union {
255   struct {
256     unsigned char RD:1;
257     unsigned char WR:1;
258     unsigned char WREN:1;
259     unsigned char WRERR:1;
260     unsigned char :1;
261     unsigned char :1;
262     unsigned char :1;
263     unsigned char :1;
264   };
265 } __EECON1_bits_t;
266 extern volatile __EECON1_bits_t __at(EECON1_ADDR) EECON1_bits;
267
268 #ifndef NO_BIT_DEFINES
269 #define RD                   EECON1_bits.RD
270 #define WR                   EECON1_bits.WR
271 #define WREN                 EECON1_bits.WREN
272 #define WRERR                EECON1_bits.WRERR
273 #endif /* NO_BIT_DEFINES */
274
275 // ----- INTCON bits --------------------
276 typedef union {
277   struct {
278     unsigned char RBIF:1;
279     unsigned char INTF:1;
280     unsigned char T0IF:1;
281     unsigned char RBIE:1;
282     unsigned char INTE:1;
283     unsigned char T0IE:1;
284     unsigned char PEIE:1;
285     unsigned char GIE:1;
286   };
287 } __INTCON_bits_t;
288 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
289
290 #ifndef NO_BIT_DEFINES
291 #define RBIF                 INTCON_bits.RBIF
292 #define INTF                 INTCON_bits.INTF
293 #define T0IF                 INTCON_bits.T0IF
294 #define RBIE                 INTCON_bits.RBIE
295 #define INTE                 INTCON_bits.INTE
296 #define T0IE                 INTCON_bits.T0IE
297 #define PEIE                 INTCON_bits.PEIE
298 #define GIE                  INTCON_bits.GIE
299 #endif /* NO_BIT_DEFINES */
300
301 // ----- OPTION_REG bits --------------------
302 typedef union {
303   struct {
304     unsigned char PS0:1;
305     unsigned char PS1:1;
306     unsigned char PS2:1;
307     unsigned char PSA:1;
308     unsigned char T0SE:1;
309     unsigned char T0CS:1;
310     unsigned char INTEDG:1;
311     unsigned char NOT_RBPU:1;
312   };
313 } __OPTION_REG_bits_t;
314 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
315
316 #ifndef NO_BIT_DEFINES
317 #define PS0                  OPTION_REG_bits.PS0
318 #define PS1                  OPTION_REG_bits.PS1
319 #define PS2                  OPTION_REG_bits.PS2
320 #define PSA                  OPTION_REG_bits.PSA
321 #define T0SE                 OPTION_REG_bits.T0SE
322 #define T0CS                 OPTION_REG_bits.T0CS
323 #define INTEDG               OPTION_REG_bits.INTEDG
324 #define NOT_RBPU             OPTION_REG_bits.NOT_RBPU
325 #endif /* NO_BIT_DEFINES */
326
327 // ----- PCON bits --------------------
328 typedef union {
329   struct {
330     unsigned char NOT_BO:1;
331     unsigned char NOT_POR:1;
332     unsigned char :1;
333     unsigned char OSCF:1;
334     unsigned char :1;
335     unsigned char :1;
336     unsigned char :1;
337     unsigned char :1;
338   };
339   struct {
340     unsigned char NOT_BOR:1;
341     unsigned char :1;
342     unsigned char :1;
343     unsigned char :1;
344     unsigned char :1;
345     unsigned char :1;
346     unsigned char :1;
347     unsigned char :1;
348   };
349   struct {
350     unsigned char NOT_BOD:1;
351     unsigned char :1;
352     unsigned char :1;
353     unsigned char :1;
354     unsigned char :1;
355     unsigned char :1;
356     unsigned char :1;
357     unsigned char :1;
358   };
359 } __PCON_bits_t;
360 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
361
362 #ifndef NO_BIT_DEFINES
363 #define NOT_BO               PCON_bits.NOT_BO
364 #define NOT_BOR              PCON_bits.NOT_BOR
365 #define NOT_BOD              PCON_bits.NOT_BOD
366 #define NOT_POR              PCON_bits.NOT_POR
367 #define OSCF                 PCON_bits.OSCF
368 #endif /* NO_BIT_DEFINES */
369
370 // ----- PIE1 bits --------------------
371 typedef union {
372   struct {
373     unsigned char TMR1IE:1;
374     unsigned char TMR2IE:1;
375     unsigned char CCP1IE:1;
376     unsigned char :1;
377     unsigned char TXIE:1;
378     unsigned char RCIE:1;
379     unsigned char CMIE:1;
380     unsigned char EEIE:1;
381   };
382 } __PIE1_bits_t;
383 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
384
385 #ifndef NO_BIT_DEFINES
386 #define TMR1IE               PIE1_bits.TMR1IE
387 #define TMR2IE               PIE1_bits.TMR2IE
388 #define CCP1IE               PIE1_bits.CCP1IE
389 #define TXIE                 PIE1_bits.TXIE
390 #define RCIE                 PIE1_bits.RCIE
391 #define CMIE                 PIE1_bits.CMIE
392 #define EEIE                 PIE1_bits.EEIE
393 #endif /* NO_BIT_DEFINES */
394
395 // ----- PIR1 bits --------------------
396 typedef union {
397   struct {
398     unsigned char TMR1IF:1;
399     unsigned char TMR2IF:1;
400     unsigned char CCP1IF:1;
401     unsigned char :1;
402     unsigned char TXIF:1;
403     unsigned char RCIF:1;
404     unsigned char CMIF:1;
405     unsigned char EEIF:1;
406   };
407 } __PIR1_bits_t;
408 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
409
410 #ifndef NO_BIT_DEFINES
411 #define TMR1IF               PIR1_bits.TMR1IF
412 #define TMR2IF               PIR1_bits.TMR2IF
413 #define CCP1IF               PIR1_bits.CCP1IF
414 #define TXIF                 PIR1_bits.TXIF
415 #define RCIF                 PIR1_bits.RCIF
416 #define CMIF                 PIR1_bits.CMIF
417 #define EEIF                 PIR1_bits.EEIF
418 #endif /* NO_BIT_DEFINES */
419
420 // ----- PORTA bits --------------------
421 typedef union {
422   struct {
423     unsigned char RA0:1;
424     unsigned char RA1:1;
425     unsigned char RA2:1;
426     unsigned char RA3:1;
427     unsigned char RA4:1;
428     unsigned char RA5:1;
429     unsigned char RA6:1;
430     unsigned char RA7:1;
431   };
432 } __PORTA_bits_t;
433 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
434
435 #ifndef NO_BIT_DEFINES
436 #define RA0                  PORTA_bits.RA0
437 #define RA1                  PORTA_bits.RA1
438 #define RA2                  PORTA_bits.RA2
439 #define RA3                  PORTA_bits.RA3
440 #define RA4                  PORTA_bits.RA4
441 #define RA5                  PORTA_bits.RA5
442 #define RA6                  PORTA_bits.RA6
443 #define RA7                  PORTA_bits.RA7
444 #endif /* NO_BIT_DEFINES */
445
446 // ----- PORTB bits --------------------
447 typedef union {
448   struct {
449     unsigned char RB0:1;
450     unsigned char RB1:1;
451     unsigned char RB2:1;
452     unsigned char RB3:1;
453     unsigned char RB4:1;
454     unsigned char RB5:1;
455     unsigned char RB6:1;
456     unsigned char RB7:1;
457   };
458 } __PORTB_bits_t;
459 extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
460
461 #ifndef NO_BIT_DEFINES
462 #define RB0                  PORTB_bits.RB0
463 #define RB1                  PORTB_bits.RB1
464 #define RB2                  PORTB_bits.RB2
465 #define RB3                  PORTB_bits.RB3
466 #define RB4                  PORTB_bits.RB4
467 #define RB5                  PORTB_bits.RB5
468 #define RB6                  PORTB_bits.RB6
469 #define RB7                  PORTB_bits.RB7
470 #endif /* NO_BIT_DEFINES */
471
472 // ----- RCSTA bits --------------------
473 typedef union {
474   struct {
475     unsigned char RX9D:1;
476     unsigned char OERR:1;
477     unsigned char FERR:1;
478     unsigned char ADEN:1;
479     unsigned char CREN:1;
480     unsigned char SREN:1;
481     unsigned char RX9:1;
482     unsigned char SPEN:1;
483   };
484 } __RCSTA_bits_t;
485 extern volatile __RCSTA_bits_t __at(RCSTA_ADDR) RCSTA_bits;
486
487 #ifndef NO_BIT_DEFINES
488 #define RX9D                 RCSTA_bits.RX9D
489 #define OERR                 RCSTA_bits.OERR
490 #define FERR                 RCSTA_bits.FERR
491 #define ADEN                 RCSTA_bits.ADEN
492 #define CREN                 RCSTA_bits.CREN
493 #define SREN                 RCSTA_bits.SREN
494 #define RX9                  RCSTA_bits.RX9
495 #define SPEN                 RCSTA_bits.SPEN
496 #endif /* NO_BIT_DEFINES */
497
498 // ----- STATUS bits --------------------
499 typedef union {
500   struct {
501     unsigned char C:1;
502     unsigned char DC:1;
503     unsigned char Z:1;
504     unsigned char NOT_PD:1;
505     unsigned char NOT_TO:1;
506     unsigned char RP0:1;
507     unsigned char RP1:1;
508     unsigned char IRP:1;
509   };
510 } __STATUS_bits_t;
511 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
512
513 #ifndef NO_BIT_DEFINES
514 #define C                    STATUS_bits.C
515 #define DC                   STATUS_bits.DC
516 #define Z                    STATUS_bits.Z
517 #define NOT_PD               STATUS_bits.NOT_PD
518 #define NOT_TO               STATUS_bits.NOT_TO
519 #define RP0                  STATUS_bits.RP0
520 #define RP1                  STATUS_bits.RP1
521 #define IRP                  STATUS_bits.IRP
522 #endif /* NO_BIT_DEFINES */
523
524 // ----- T1CON bits --------------------
525 typedef union {
526   struct {
527     unsigned char TMR1ON:1;
528     unsigned char TMR1CS:1;
529     unsigned char NOT_T1SYNC:1;
530     unsigned char T1OSCEN:1;
531     unsigned char T1CKPS0:1;
532     unsigned char T1CKPS1:1;
533     unsigned char :1;
534     unsigned char :1;
535   };
536 } __T1CON_bits_t;
537 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
538
539 #ifndef NO_BIT_DEFINES
540 #define TMR1ON               T1CON_bits.TMR1ON
541 #define TMR1CS               T1CON_bits.TMR1CS
542 #define NOT_T1SYNC           T1CON_bits.NOT_T1SYNC
543 #define T1OSCEN              T1CON_bits.T1OSCEN
544 #define T1CKPS0              T1CON_bits.T1CKPS0
545 #define T1CKPS1              T1CON_bits.T1CKPS1
546 #endif /* NO_BIT_DEFINES */
547
548 // ----- T2CON bits --------------------
549 typedef union {
550   struct {
551     unsigned char T2CKPS0:1;
552     unsigned char T2CKPS1:1;
553     unsigned char TMR2ON:1;
554     unsigned char TOUTPS0:1;
555     unsigned char TOUTPS1:1;
556     unsigned char TOUTPS2:1;
557     unsigned char TOUTPS3:1;
558     unsigned char :1;
559   };
560 } __T2CON_bits_t;
561 extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
562
563 #ifndef NO_BIT_DEFINES
564 #define T2CKPS0              T2CON_bits.T2CKPS0
565 #define T2CKPS1              T2CON_bits.T2CKPS1
566 #define TMR2ON               T2CON_bits.TMR2ON
567 #define TOUTPS0              T2CON_bits.TOUTPS0
568 #define TOUTPS1              T2CON_bits.TOUTPS1
569 #define TOUTPS2              T2CON_bits.TOUTPS2
570 #define TOUTPS3              T2CON_bits.TOUTPS3
571 #endif /* NO_BIT_DEFINES */
572
573 // ----- TRISA bits --------------------
574 typedef union {
575   struct {
576     unsigned char TRISA0:1;
577     unsigned char TRISA1:1;
578     unsigned char TRISA2:1;
579     unsigned char TRISA3:1;
580     unsigned char TRISA4:1;
581     unsigned char TRISA5:1;
582     unsigned char TRISA6:1;
583     unsigned char TRISA7:1;
584   };
585 } __TRISA_bits_t;
586 extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
587
588 #ifndef NO_BIT_DEFINES
589 #define TRISA0               TRISA_bits.TRISA0
590 #define TRISA1               TRISA_bits.TRISA1
591 #define TRISA2               TRISA_bits.TRISA2
592 #define TRISA3               TRISA_bits.TRISA3
593 #define TRISA4               TRISA_bits.TRISA4
594 #define TRISA5               TRISA_bits.TRISA5
595 #define TRISA6               TRISA_bits.TRISA6
596 #define TRISA7               TRISA_bits.TRISA7
597 #endif /* NO_BIT_DEFINES */
598
599 // ----- TRISB bits --------------------
600 typedef union {
601   struct {
602     unsigned char TRISB0:1;
603     unsigned char TRISB1:1;
604     unsigned char TRISB2:1;
605     unsigned char TRISB3:1;
606     unsigned char TRISB4:1;
607     unsigned char TRISB5:1;
608     unsigned char TRISB6:1;
609     unsigned char TRISB7:1;
610   };
611 } __TRISB_bits_t;
612 extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
613
614 #ifndef NO_BIT_DEFINES
615 #define TRISB0               TRISB_bits.TRISB0
616 #define TRISB1               TRISB_bits.TRISB1
617 #define TRISB2               TRISB_bits.TRISB2
618 #define TRISB3               TRISB_bits.TRISB3
619 #define TRISB4               TRISB_bits.TRISB4
620 #define TRISB5               TRISB_bits.TRISB5
621 #define TRISB6               TRISB_bits.TRISB6
622 #define TRISB7               TRISB_bits.TRISB7
623 #endif /* NO_BIT_DEFINES */
624
625 // ----- TXSTA bits --------------------
626 typedef union {
627   struct {
628     unsigned char TX9D:1;
629     unsigned char TRMT:1;
630     unsigned char BRGH:1;
631     unsigned char :1;
632     unsigned char SYNC:1;
633     unsigned char TXEN:1;
634     unsigned char TX9:1;
635     unsigned char CSRC:1;
636   };
637 } __TXSTA_bits_t;
638 extern volatile __TXSTA_bits_t __at(TXSTA_ADDR) TXSTA_bits;
639
640 #ifndef NO_BIT_DEFINES
641 #define TX9D                 TXSTA_bits.TX9D
642 #define TRMT                 TXSTA_bits.TRMT
643 #define BRGH                 TXSTA_bits.BRGH
644 #define SYNC                 TXSTA_bits.SYNC
645 #define TXEN                 TXSTA_bits.TXEN
646 #define TX9                  TXSTA_bits.TX9
647 #define CSRC                 TXSTA_bits.CSRC
648 #endif /* NO_BIT_DEFINES */
649
650 // ----- VRCON bits --------------------
651 typedef union {
652   struct {
653     unsigned char VR0:1;
654     unsigned char VR1:1;
655     unsigned char VR2:1;
656     unsigned char VR3:1;
657     unsigned char :1;
658     unsigned char VRR:1;
659     unsigned char VROE:1;
660     unsigned char VREN:1;
661   };
662 } __VRCON_bits_t;
663 extern volatile __VRCON_bits_t __at(VRCON_ADDR) VRCON_bits;
664
665 #ifndef NO_BIT_DEFINES
666 #define VR0                  VRCON_bits.VR0
667 #define VR1                  VRCON_bits.VR1
668 #define VR2                  VRCON_bits.VR2
669 #define VR3                  VRCON_bits.VR3
670 #define VRR                  VRCON_bits.VRR
671 #define VROE                 VRCON_bits.VROE
672 #define VREN                 VRCON_bits.VREN
673 #endif /* NO_BIT_DEFINES */
674
675 #endif