Imported Upstream version 2.9.0
[debian/cc1111] / device / include / pic / pic12f635.h
1 //
2 // Register Declarations for Microchip 12F635 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 P12F635_H
23 #define P12F635_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 GPIO_ADDR       0x0005
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 WDTCON_ADDR     0x0018
42 #define CMCON0_ADDR     0x0019
43 #define CMCON1_ADDR     0x001A
44 #define OPTION_REG_ADDR 0x0081
45 #define TRISA_ADDR      0x0085
46 #define TRISIO_ADDR     0x0085
47 #define PIE1_ADDR       0x008C
48 #define PCON_ADDR       0x008E
49 #define OSCCON_ADDR     0x008F
50 #define OSCTUNE_ADDR    0x0090
51 #define LVDCON_ADDR     0x0094
52 #define WPUDA_ADDR      0x0095
53 #define IOCA_ADDR       0x0096
54 #define WDA_ADDR        0x0097
55 #define VRCON_ADDR      0x0099
56 #define EEDAT_ADDR      0x009A
57 #define EEDATA_ADDR     0x009A
58 #define EEADR_ADDR      0x009B
59 #define EECON1_ADDR     0x009C
60 #define EECON2_ADDR     0x009D
61 #define CRCON_ADDR      0x0110
62 #define CRDAT0_ADDR     0x0111
63 #define CRDAT1_ADDR     0x0112
64 #define CRDAT2_ADDR     0x0113
65 #define CRDAT3_ADDR     0x0114
66
67 //
68 // Memory organization.
69 //
70
71
72
73 //         LIST
74 // P12F635.INC  Standard Header File, Version 1.00    Microchip Technology, Inc.
75 //         NOLIST
76
77 // This header file defines configurations, registers, and other useful bits of
78 // information for the PIC12F635 microcontroller.  These names are taken to match 
79 // the data sheets as closely as possible.  
80
81 // Note that the processor must be selected before this file is 
82 // included.  The processor may be selected the following ways:
83
84 //       1. Command line switch:
85 //               C:\ MPASM MYFILE.ASM /PIC12F635
86 //       2. LIST directive in the source file
87 //               LIST   P=PIC12F635
88 //       3. Processor Type entry in the MPASM full-screen interface
89
90 //==========================================================================
91 //
92 //       Revision History
93 //
94 //==========================================================================
95 //1.00   12/07/03 Original
96 //1.10   04/19/04 Release to match first revision datasheet --kjd
97 //1.20  06/07/04 Update and correct badram definitions  --kjd
98 //==========================================================================
99 //
100 //       Verify Processor
101 //
102 //==========================================================================
103
104 //        IFNDEF __12F635
105 //            MESSG "Processor-header file mismatch.  Verify selected processor."
106 //         ENDIF
107
108 //==========================================================================
109 //
110 //       Register Definitions
111 //
112 //==========================================================================
113
114 #define W                    0x0000
115 #define F                    0x0001
116
117 //----- Register Files------------------------------------------------------
118 //Bank 0
119 extern __sfr  __at (INDF_ADDR)                    INDF;
120 extern __sfr  __at (TMR0_ADDR)                    TMR0;
121 extern __sfr  __at (PCL_ADDR)                     PCL;
122 extern __sfr  __at (STATUS_ADDR)                  STATUS;
123 extern __sfr  __at (FSR_ADDR)                     FSR;
124 extern __sfr  __at (PORTA_ADDR)                   PORTA;
125 extern __sfr  __at (GPIO_ADDR)                    GPIO;
126
127 extern __sfr  __at (PCLATH_ADDR)                  PCLATH;
128 extern __sfr  __at (INTCON_ADDR)                  INTCON;
129 extern __sfr  __at (PIR1_ADDR)                    PIR1;
130
131 extern __sfr  __at (TMR1L_ADDR)                   TMR1L;                
132 extern __sfr  __at (TMR1H_ADDR)                   TMR1H;                
133 extern __sfr  __at (T1CON_ADDR)                   T1CON;                
134
135 extern __sfr  __at (WDTCON_ADDR)                  WDTCON;
136 extern __sfr  __at (CMCON0_ADDR)                  CMCON0;               
137 extern __sfr  __at (CMCON1_ADDR)                  CMCON1;               
138
139 //Bank 1
140 extern __sfr  __at (OPTION_REG_ADDR)              OPTION_REG;
141
142 extern __sfr  __at (TRISA_ADDR)                   TRISA;
143 extern __sfr  __at (TRISIO_ADDR)                  TRISIO;
144
145 extern __sfr  __at (PIE1_ADDR)                    PIE1;
146
147 extern __sfr  __at (PCON_ADDR)                    PCON;
148 extern __sfr  __at (OSCCON_ADDR)                  OSCCON;
149 extern __sfr  __at (OSCTUNE_ADDR)                 OSCTUNE;
150
151 extern __sfr  __at (LVDCON_ADDR)                  LVDCON;
152 extern __sfr  __at (WPUDA_ADDR)                   WPUDA;
153 extern __sfr  __at (IOCA_ADDR)                    IOCA;
154 extern __sfr  __at (WDA_ADDR)                     WDA;
155
156 extern __sfr  __at (VRCON_ADDR)                   VRCON;
157 extern __sfr  __at (EEDAT_ADDR)                   EEDAT;        
158 extern __sfr  __at (EEDATA_ADDR)                  EEDATA;       
159 extern __sfr  __at (EEADR_ADDR)                   EEADR;        
160 extern __sfr  __at (EECON1_ADDR)                  EECON1;
161 extern __sfr  __at (EECON2_ADDR)                  EECON2;
162
163 //Bank 2
164 extern __sfr  __at (CRCON_ADDR)                   CRCON;
165 extern __sfr  __at (CRDAT0_ADDR)                  CRDAT0;
166 extern __sfr  __at (CRDAT1_ADDR)                  CRDAT1;
167 extern __sfr  __at (CRDAT2_ADDR)                  CRDAT2;
168 extern __sfr  __at (CRDAT3_ADDR)                  CRDAT3;
169
170 //----- STATUS Bits --------------------------------------------------------
171
172
173 //----- INTCON Bits --------------------------------------------------------
174
175
176 //----- PIR1 Bits ----------------------------------------------------------
177
178
179 //----- T1CON Bits ---------------------------------------------------------
180
181
182 //----- WDTCON Bits --------------------------------------------------------
183
184
185 //----- CMCON0 Bits -------------------------------------------------------
186
187
188 //----- CMCON1 Bits -------------------------------------------------------
189
190
191 //----- OPTION Bits --------------------------------------------------------
192
193
194 //----- PIE1 Bits ----------------------------------------------------------
195
196
197 //----- PCON Bits ----------------------------------------------------------
198
199
200 //----- OSCCON Bits --------------------------------------------------------
201
202
203 //----- OSCTUNE Bits -------------------------------------------------------
204
205
206 //----- IOCA --------------------------------------------------------------
207
208
209 //----- EECON1 -------------------------------------------------------------
210
211
212 //----- VRCON ---------------------------------------------------------
213
214
215
216 //-----  CRCON -------------------------------------------------------------
217
218
219 //-----  LVDCON -------------------------------------------------------------
220
221
222 //----- WDA    -------------------------------------------------------------
223
224
225 //----- WPUDA    -------------------------------------------------------------
226
227
228 //----- PORTA    -------------------------------------------------------------
229
230
231 //----- GPIO    -------------------------------------------------------------
232
233
234 //==========================================================================
235 //
236 //       RAM Definition
237 //
238 //==========================================================================
239
240 //         __MAXRAM H'1FF'
241 //         __BADRAM H'06'-H'09', H'0D', H'11'-H'17', H'1B'-H'1F', H'20'-H'3F'
242 //         __BADRAM H'86'-H'89', H'8D', H'91'-H'93', H'98', H'9E'-H'9F', H'A0'-H'EF'
243 //              __BADRAM H'10C'-H'10F', H'115'-H'16F', H'106'-H'109', H'186'-H'189'
244 //              __BADRAM H'18C'-H'1EF'
245
246 //==========================================================================
247 //
248 //       Configuration Bits
249 //
250 //==========================================================================
251 #define _WUREN_ON            0x2FFF
252 #define _WUREN_OFF           0x3FFF
253 #define _FCMEN_ON            0x3FFF
254 #define _FCMEN_OFF           0x37FF
255 #define _IESO_ON             0x3FFF
256 #define _IESO_OFF            0x3BFF
257 #define _BOD_ON              0x3FFF
258 #define _BOD_NSLEEP          0x3EFF
259 #define _BOD_SBODEN          0x3DFF
260 #define _BOD_OFF             0x3CFF
261 #define _CPD_ON              0x3F7F
262 #define _CPD_OFF             0x3FFF
263 #define _CP_ON               0x3FBF
264 #define _CP_OFF              0x3FFF
265 #define _MCLRE_ON            0x3FFF
266 #define _MCLRE_OFF           0x3FDF
267 #define _PWRTE_OFF           0x3FFF
268 #define _PWRTE_ON            0x3FEF
269 #define _WDT_ON              0x3FFF
270 #define _WDT_OFF             0x3FF7
271 #define _LP_OSC              0x3FF8
272 #define _XT_OSC              0x3FF9
273 #define _HS_OSC              0x3FFA
274 #define _EC_OSC              0x3FFB
275 #define _INTRC_OSC_NOCLKOUT  0x3FFC
276 #define _INTRC_OSC_CLKOUT    0x3FFD
277 #define _EXTRC_OSC_NOCLKOUT  0x3FFE
278 #define _EXTRC_OSC_CLKOUT    0x3FFF
279
280 //         LIST
281
282 // ----- CMCON0 bits --------------------
283 typedef union {
284   struct {
285     unsigned char CM0:1;
286     unsigned char CM1:1;
287     unsigned char CM2:1;
288     unsigned char CIS:1;
289     unsigned char C1INV:1;
290     unsigned char :1;
291     unsigned char C1OUT:1;
292     unsigned char :1;
293   };
294 } __CMCON0_bits_t;
295 extern volatile __CMCON0_bits_t __at(CMCON0_ADDR) CMCON0_bits;
296
297 #ifndef NO_BIT_DEFINES
298 #define CM0                  CMCON0_bits.CM0
299 #define CM1                  CMCON0_bits.CM1
300 #define CM2                  CMCON0_bits.CM2
301 #define CIS                  CMCON0_bits.CIS
302 #define C1INV                CMCON0_bits.C1INV
303 #define C1OUT                CMCON0_bits.C1OUT
304 #endif /* NO_BIT_DEFINES */
305
306 // ----- CMCON1 bits --------------------
307 typedef union {
308   struct {
309     unsigned char C1SYNC:1;
310     unsigned char T1GSS:1;
311     unsigned char :1;
312     unsigned char :1;
313     unsigned char :1;
314     unsigned char :1;
315     unsigned char :1;
316     unsigned char :1;
317   };
318 } __CMCON1_bits_t;
319 extern volatile __CMCON1_bits_t __at(CMCON1_ADDR) CMCON1_bits;
320
321 #ifndef NO_BIT_DEFINES
322 #define C1SYNC               CMCON1_bits.C1SYNC
323 #define T1GSS                CMCON1_bits.T1GSS
324 #endif /* NO_BIT_DEFINES */
325
326 // ----- CRCON bits --------------------
327 typedef union {
328   struct {
329     unsigned char CRREG0:1;
330     unsigned char CRREG1:1;
331     unsigned char :1;
332     unsigned char :1;
333     unsigned char :1;
334     unsigned char :1;
335     unsigned char ENC_DEC:1;
336     unsigned char GO:1;
337   };
338 } __CRCON_bits_t;
339 extern volatile __CRCON_bits_t __at(CRCON_ADDR) CRCON_bits;
340
341 #ifndef NO_BIT_DEFINES
342 #define CRREG0               CRCON_bits.CRREG0
343 #define CRREG1               CRCON_bits.CRREG1
344 #define ENC_DEC              CRCON_bits.ENC_DEC
345 #define GO                   CRCON_bits.GO
346 #endif /* NO_BIT_DEFINES */
347
348 // ----- EECON1 bits --------------------
349 typedef union {
350   struct {
351     unsigned char RD:1;
352     unsigned char WR:1;
353     unsigned char WREN:1;
354     unsigned char WRERR:1;
355     unsigned char :1;
356     unsigned char :1;
357     unsigned char :1;
358     unsigned char :1;
359   };
360 } __EECON1_bits_t;
361 extern volatile __EECON1_bits_t __at(EECON1_ADDR) EECON1_bits;
362
363 #ifndef NO_BIT_DEFINES
364 #define RD                   EECON1_bits.RD
365 #define WR                   EECON1_bits.WR
366 #define WREN                 EECON1_bits.WREN
367 #define WRERR                EECON1_bits.WRERR
368 #endif /* NO_BIT_DEFINES */
369
370 // ----- GPIO bits --------------------
371 typedef union {
372   struct {
373     unsigned char GP0:1;
374     unsigned char GP1:1;
375     unsigned char GP2:1;
376     unsigned char GP3:1;
377     unsigned char GP4:1;
378     unsigned char GP5:1;
379     unsigned char :1;
380     unsigned char :1;
381   };
382 } __GPIO_bits_t;
383 extern volatile __GPIO_bits_t __at(GPIO_ADDR) GPIO_bits;
384
385 #ifndef NO_BIT_DEFINES
386 #define GP0                  GPIO_bits.GP0
387 #define GP1                  GPIO_bits.GP1
388 #define GP2                  GPIO_bits.GP2
389 #define GP3                  GPIO_bits.GP3
390 #define GP4                  GPIO_bits.GP4
391 #define GP5                  GPIO_bits.GP5
392 #endif /* NO_BIT_DEFINES */
393
394 // ----- INTCON bits --------------------
395 typedef union {
396   struct {
397     unsigned char RAIF:1;
398     unsigned char INTF:1;
399     unsigned char T0IF:1;
400     unsigned char RAIE:1;
401     unsigned char INTE:1;
402     unsigned char T0IE:1;
403     unsigned char PEIE:1;
404     unsigned char GIE:1;
405   };
406 } __INTCON_bits_t;
407 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
408
409 #ifndef NO_BIT_DEFINES
410 #define RAIF                 INTCON_bits.RAIF
411 #define INTF                 INTCON_bits.INTF
412 #define T0IF                 INTCON_bits.T0IF
413 #define RAIE                 INTCON_bits.RAIE
414 #define INTE                 INTCON_bits.INTE
415 #define T0IE                 INTCON_bits.T0IE
416 #define PEIE                 INTCON_bits.PEIE
417 #define GIE                  INTCON_bits.GIE
418 #endif /* NO_BIT_DEFINES */
419
420 // ----- IOCA bits --------------------
421 typedef union {
422   struct {
423     unsigned char IOCA0:1;
424     unsigned char IOCA1:1;
425     unsigned char IOCA2:1;
426     unsigned char IOCA3:1;
427     unsigned char IOCA4:1;
428     unsigned char IOCA5:1;
429     unsigned char :1;
430     unsigned char :1;
431   };
432 } __IOCA_bits_t;
433 extern volatile __IOCA_bits_t __at(IOCA_ADDR) IOCA_bits;
434
435 #ifndef NO_BIT_DEFINES
436 #define IOCA0                IOCA_bits.IOCA0
437 #define IOCA1                IOCA_bits.IOCA1
438 #define IOCA2                IOCA_bits.IOCA2
439 #define IOCA3                IOCA_bits.IOCA3
440 #define IOCA4                IOCA_bits.IOCA4
441 #define IOCA5                IOCA_bits.IOCA5
442 #endif /* NO_BIT_DEFINES */
443
444 // ----- LVDCON bits --------------------
445 typedef union {
446   struct {
447     unsigned char LVDL0:1;
448     unsigned char LVDL1:1;
449     unsigned char LVDL2:1;
450     unsigned char :1;
451     unsigned char PLVDEN:1;
452     unsigned char IRVST:1;
453     unsigned char :1;
454     unsigned char :1;
455   };
456 } __LVDCON_bits_t;
457 extern volatile __LVDCON_bits_t __at(LVDCON_ADDR) LVDCON_bits;
458
459 #ifndef NO_BIT_DEFINES
460 #define LVDL0                LVDCON_bits.LVDL0
461 #define LVDL1                LVDCON_bits.LVDL1
462 #define LVDL2                LVDCON_bits.LVDL2
463 #define PLVDEN               LVDCON_bits.PLVDEN
464 #define IRVST                LVDCON_bits.IRVST
465 #endif /* NO_BIT_DEFINES */
466
467 // ----- OPTION_REG bits --------------------
468 typedef union {
469   struct {
470     unsigned char PS0:1;
471     unsigned char PS1:1;
472     unsigned char PS2:1;
473     unsigned char PSA:1;
474     unsigned char T0SE:1;
475     unsigned char T0CS:1;
476     unsigned char INTEDG:1;
477     unsigned char NOT_RAPU:1;
478   };
479 } __OPTION_REG_bits_t;
480 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
481
482 #ifndef NO_BIT_DEFINES
483 #define PS0                  OPTION_REG_bits.PS0
484 #define PS1                  OPTION_REG_bits.PS1
485 #define PS2                  OPTION_REG_bits.PS2
486 #define PSA                  OPTION_REG_bits.PSA
487 #define T0SE                 OPTION_REG_bits.T0SE
488 #define T0CS                 OPTION_REG_bits.T0CS
489 #define INTEDG               OPTION_REG_bits.INTEDG
490 #define NOT_RAPU             OPTION_REG_bits.NOT_RAPU
491 #endif /* NO_BIT_DEFINES */
492
493 // ----- OSCCON bits --------------------
494 typedef union {
495   struct {
496     unsigned char SCS:1;
497     unsigned char LTS:1;
498     unsigned char HTS:1;
499     unsigned char OSTS:1;
500     unsigned char IRCF0:1;
501     unsigned char IRCF1:1;
502     unsigned char IRCF2:1;
503     unsigned char :1;
504   };
505 } __OSCCON_bits_t;
506 extern volatile __OSCCON_bits_t __at(OSCCON_ADDR) OSCCON_bits;
507
508 #ifndef NO_BIT_DEFINES
509 #define SCS                  OSCCON_bits.SCS
510 #define LTS                  OSCCON_bits.LTS
511 #define HTS                  OSCCON_bits.HTS
512 #define OSTS                 OSCCON_bits.OSTS
513 #define IRCF0                OSCCON_bits.IRCF0
514 #define IRCF1                OSCCON_bits.IRCF1
515 #define IRCF2                OSCCON_bits.IRCF2
516 #endif /* NO_BIT_DEFINES */
517
518 // ----- OSCTUNE bits --------------------
519 typedef union {
520   struct {
521     unsigned char TUN0:1;
522     unsigned char TUN1:1;
523     unsigned char TUN2:1;
524     unsigned char TUN3:1;
525     unsigned char TUN4:1;
526     unsigned char :1;
527     unsigned char :1;
528     unsigned char :1;
529   };
530 } __OSCTUNE_bits_t;
531 extern volatile __OSCTUNE_bits_t __at(OSCTUNE_ADDR) OSCTUNE_bits;
532
533 #ifndef NO_BIT_DEFINES
534 #define TUN0                 OSCTUNE_bits.TUN0
535 #define TUN1                 OSCTUNE_bits.TUN1
536 #define TUN2                 OSCTUNE_bits.TUN2
537 #define TUN3                 OSCTUNE_bits.TUN3
538 #define TUN4                 OSCTUNE_bits.TUN4
539 #endif /* NO_BIT_DEFINES */
540
541 // ----- PCON bits --------------------
542 typedef union {
543   struct {
544     unsigned char NOT_BOD:1;
545     unsigned char NOT_POR:1;
546     unsigned char :1;
547     unsigned char NOT_WUR:1;
548     unsigned char SBODEN:1;
549     unsigned char ULPWUE:1;
550     unsigned char :1;
551     unsigned char :1;
552   };
553 } __PCON_bits_t;
554 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
555
556 #ifndef NO_BIT_DEFINES
557 #define NOT_BOD              PCON_bits.NOT_BOD
558 #define NOT_POR              PCON_bits.NOT_POR
559 #define NOT_WUR              PCON_bits.NOT_WUR
560 #define SBODEN               PCON_bits.SBODEN
561 #define ULPWUE               PCON_bits.ULPWUE
562 #endif /* NO_BIT_DEFINES */
563
564 // ----- PIE1 bits --------------------
565 typedef union {
566   struct {
567     unsigned char TMR1IE:1;
568     unsigned char :1;
569     unsigned char OSFIE:1;
570     unsigned char C1IE:1;
571     unsigned char :1;
572     unsigned char CRIE:1;
573     unsigned char LVDIE:1;
574     unsigned char EEIE:1;
575   };
576 } __PIE1_bits_t;
577 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
578
579 #ifndef NO_BIT_DEFINES
580 #define TMR1IE               PIE1_bits.TMR1IE
581 #define OSFIE                PIE1_bits.OSFIE
582 #define C1IE                 PIE1_bits.C1IE
583 #define CRIE                 PIE1_bits.CRIE
584 #define LVDIE                PIE1_bits.LVDIE
585 #define EEIE                 PIE1_bits.EEIE
586 #endif /* NO_BIT_DEFINES */
587
588 // ----- PIR1 bits --------------------
589 typedef union {
590   struct {
591     unsigned char TMR1IF:1;
592     unsigned char :1;
593     unsigned char OSFIF:1;
594     unsigned char C1IF:1;
595     unsigned char :1;
596     unsigned char CRIF:1;
597     unsigned char LVDIF:1;
598     unsigned char EEIF:1;
599   };
600 } __PIR1_bits_t;
601 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
602
603 #ifndef NO_BIT_DEFINES
604 #define TMR1IF               PIR1_bits.TMR1IF
605 #define OSFIF                PIR1_bits.OSFIF
606 #define C1IF                 PIR1_bits.C1IF
607 #define CRIF                 PIR1_bits.CRIF
608 #define LVDIF                PIR1_bits.LVDIF
609 #define EEIF                 PIR1_bits.EEIF
610 #endif /* NO_BIT_DEFINES */
611
612 // ----- PORTA bits --------------------
613 typedef union {
614   struct {
615     unsigned char RA0:1;
616     unsigned char RA1:1;
617     unsigned char RA2:1;
618     unsigned char RA3:1;
619     unsigned char RA4:1;
620     unsigned char RA5:1;
621     unsigned char :1;
622     unsigned char :1;
623   };
624 } __PORTA_bits_t;
625 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
626
627 #ifndef NO_BIT_DEFINES
628 #define RA0                  PORTA_bits.RA0
629 #define RA1                  PORTA_bits.RA1
630 #define RA2                  PORTA_bits.RA2
631 #define RA3                  PORTA_bits.RA3
632 #define RA4                  PORTA_bits.RA4
633 #define RA5                  PORTA_bits.RA5
634 #endif /* NO_BIT_DEFINES */
635
636 // ----- STATUS bits --------------------
637 typedef union {
638   struct {
639     unsigned char C:1;
640     unsigned char DC:1;
641     unsigned char Z:1;
642     unsigned char NOT_PD:1;
643     unsigned char NOT_TO:1;
644     unsigned char RP0:1;
645     unsigned char RP1:1;
646     unsigned char IRP:1;
647   };
648 } __STATUS_bits_t;
649 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
650
651 #ifndef NO_BIT_DEFINES
652 #define C                    STATUS_bits.C
653 #define DC                   STATUS_bits.DC
654 #define Z                    STATUS_bits.Z
655 #define NOT_PD               STATUS_bits.NOT_PD
656 #define NOT_TO               STATUS_bits.NOT_TO
657 #define RP0                  STATUS_bits.RP0
658 #define RP1                  STATUS_bits.RP1
659 #define IRP                  STATUS_bits.IRP
660 #endif /* NO_BIT_DEFINES */
661
662 // ----- T1CON bits --------------------
663 typedef union {
664   struct {
665     unsigned char TMR1ON:1;
666     unsigned char TMR1CS:1;
667     unsigned char NOT_T1SYNC:1;
668     unsigned char T1OSCEN:1;
669     unsigned char T1CKPS0:1;
670     unsigned char T1CKPS1:1;
671     unsigned char TMR1GE:1;
672     unsigned char T1GINV:1;
673   };
674 } __T1CON_bits_t;
675 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
676
677 #ifndef NO_BIT_DEFINES
678 #define TMR1ON               T1CON_bits.TMR1ON
679 #define TMR1CS               T1CON_bits.TMR1CS
680 #define NOT_T1SYNC           T1CON_bits.NOT_T1SYNC
681 #define T1OSCEN              T1CON_bits.T1OSCEN
682 #define T1CKPS0              T1CON_bits.T1CKPS0
683 #define T1CKPS1              T1CON_bits.T1CKPS1
684 #define TMR1GE               T1CON_bits.TMR1GE
685 #define T1GINV               T1CON_bits.T1GINV
686 #endif /* NO_BIT_DEFINES */
687
688 // ----- VRCON bits --------------------
689 typedef union {
690   struct {
691     unsigned char VR0:1;
692     unsigned char VR1:1;
693     unsigned char VR2:1;
694     unsigned char VR3:1;
695     unsigned char :1;
696     unsigned char VRR:1;
697     unsigned char :1;
698     unsigned char VREN:1;
699   };
700 } __VRCON_bits_t;
701 extern volatile __VRCON_bits_t __at(VRCON_ADDR) VRCON_bits;
702
703 #ifndef NO_BIT_DEFINES
704 #define VR0                  VRCON_bits.VR0
705 #define VR1                  VRCON_bits.VR1
706 #define VR2                  VRCON_bits.VR2
707 #define VR3                  VRCON_bits.VR3
708 #define VRR                  VRCON_bits.VRR
709 #define VREN                 VRCON_bits.VREN
710 #endif /* NO_BIT_DEFINES */
711
712 // ----- WDA bits --------------------
713 typedef union {
714   struct {
715     unsigned char WDA0:1;
716     unsigned char WDA1:1;
717     unsigned char WDA2:1;
718     unsigned char :1;
719     unsigned char WDA4:1;
720     unsigned char WDA5:1;
721     unsigned char :1;
722     unsigned char :1;
723   };
724 } __WDA_bits_t;
725 extern volatile __WDA_bits_t __at(WDA_ADDR) WDA_bits;
726
727 #ifndef NO_BIT_DEFINES
728 #define WDA0                 WDA_bits.WDA0
729 #define WDA1                 WDA_bits.WDA1
730 #define WDA2                 WDA_bits.WDA2
731 #define WDA4                 WDA_bits.WDA4
732 #define WDA5                 WDA_bits.WDA5
733 #endif /* NO_BIT_DEFINES */
734
735 // ----- WDTCON bits --------------------
736 typedef union {
737   struct {
738     unsigned char SWDTEN:1;
739     unsigned char WDTPS0:1;
740     unsigned char WDTPS1:1;
741     unsigned char WDTPS2:1;
742     unsigned char WDTPS3:1;
743     unsigned char :1;
744     unsigned char :1;
745     unsigned char :1;
746   };
747 } __WDTCON_bits_t;
748 extern volatile __WDTCON_bits_t __at(WDTCON_ADDR) WDTCON_bits;
749
750 #ifndef NO_BIT_DEFINES
751 #define SWDTEN               WDTCON_bits.SWDTEN
752 #define WDTPS0               WDTCON_bits.WDTPS0
753 #define WDTPS1               WDTCON_bits.WDTPS1
754 #define WDTPS2               WDTCON_bits.WDTPS2
755 #define WDTPS3               WDTCON_bits.WDTPS3
756 #endif /* NO_BIT_DEFINES */
757
758 // ----- WPUDA bits --------------------
759 typedef union {
760   struct {
761     unsigned char WPUDA0:1;
762     unsigned char WPUDA1:1;
763     unsigned char WPUDA2:1;
764     unsigned char :1;
765     unsigned char WPUDA4:1;
766     unsigned char WPUDA5:1;
767     unsigned char :1;
768     unsigned char :1;
769   };
770 } __WPUDA_bits_t;
771 extern volatile __WPUDA_bits_t __at(WPUDA_ADDR) WPUDA_bits;
772
773 #ifndef NO_BIT_DEFINES
774 #define WPUDA0               WPUDA_bits.WPUDA0
775 #define WPUDA1               WPUDA_bits.WPUDA1
776 #define WPUDA2               WPUDA_bits.WPUDA2
777 #define WPUDA4               WPUDA_bits.WPUDA4
778 #define WPUDA5               WPUDA_bits.WPUDA5
779 #endif /* NO_BIT_DEFINES */
780
781 #endif