2 // Register Declarations for Microchip 16F819 Processor
5 // This header file was automatically generated by:
9 // Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
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:
17 // http://www.gnu.org/copyleft/gpl/html
19 // See http://sdcc.sourceforge.net/ for the latest information on sdcc.
26 // Register addresses.
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 PIR2_ADDR 0x000D
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 ADRESH_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 PIE1_ADDR 0x008C
55 #define PIE2_ADDR 0x008D
56 #define PCON_ADDR 0x008E
57 #define OSCCON_ADDR 0x008F
58 #define OSCTUNE_ADDR 0x0090
59 #define PR2_ADDR 0x0092
60 #define SSPADD_ADDR 0x0093
61 #define SSPSTAT_ADDR 0x0094
62 #define ADRESL_ADDR 0x009E
63 #define ADCON1_ADDR 0x009F
64 #define EEDATA_ADDR 0x010C
65 #define EEADR_ADDR 0x010D
66 #define EEDATH_ADDR 0x010E
67 #define EEADRH_ADDR 0x010F
68 #define EECON1_ADDR 0x018C
69 #define EECON2_ADDR 0x018D
72 // Memory organization.
78 // P16F819.INC Standard Header File, Version 1.00 Microchip Technology, Inc.
81 // This header file defines configurations, registers, and other useful bits of
82 // information for the PIC16F819 microcontroller. These names are taken to match
83 // the data sheets as closely as possible.
85 // Note that the processor must be selected before this file is
86 // included. The processor may be selected the following ways:
88 // 1. Command line switch:
89 // C:\ MPASM MYFILE.ASM /PIC16F819
90 // 2. LIST directive in the source file
92 // 3. Processor Type entry in the MPASM full-screen interface
94 //==========================================================================
98 //==========================================================================
102 //1.00 06/15/02 Initial Release
103 //1.01 09/18/02 Changed name of bit-2 in the OSCCON register to IOFS
105 //==========================================================================
109 //==========================================================================
112 // MESSG "Processor-header file mismatch. Verify selected processor."
115 //==========================================================================
117 // Register Definitions
119 //==========================================================================
124 //----- Register Files------------------------------------------------------
126 extern __sfr __at (INDF_ADDR) INDF;
127 extern __sfr __at (TMR0_ADDR) TMR0;
128 extern __sfr __at (PCL_ADDR) PCL;
129 extern __sfr __at (STATUS_ADDR) STATUS;
130 extern __sfr __at (FSR_ADDR) FSR;
131 extern __sfr __at (PORTA_ADDR) PORTA;
132 extern __sfr __at (PORTB_ADDR) PORTB;
133 extern __sfr __at (PCLATH_ADDR) PCLATH;
134 extern __sfr __at (INTCON_ADDR) INTCON;
135 extern __sfr __at (PIR1_ADDR) PIR1;
136 extern __sfr __at (PIR2_ADDR) PIR2;
137 extern __sfr __at (TMR1L_ADDR) TMR1L;
138 extern __sfr __at (TMR1H_ADDR) TMR1H;
139 extern __sfr __at (T1CON_ADDR) T1CON;
140 extern __sfr __at (TMR2_ADDR) TMR2;
141 extern __sfr __at (T2CON_ADDR) T2CON;
142 extern __sfr __at (SSPBUF_ADDR) SSPBUF;
143 extern __sfr __at (SSPCON_ADDR) SSPCON;
144 extern __sfr __at (CCPR1L_ADDR) CCPR1L;
145 extern __sfr __at (CCPR1H_ADDR) CCPR1H;
146 extern __sfr __at (CCP1CON_ADDR) CCP1CON;
147 extern __sfr __at (ADRESH_ADDR) ADRESH;
148 extern __sfr __at (ADCON0_ADDR) ADCON0;
150 extern __sfr __at (OPTION_REG_ADDR) OPTION_REG;
151 extern __sfr __at (TRISA_ADDR) TRISA;
152 extern __sfr __at (TRISB_ADDR) TRISB;
153 extern __sfr __at (PIE1_ADDR) PIE1;
154 extern __sfr __at (PIE2_ADDR) PIE2;
155 extern __sfr __at (PCON_ADDR) PCON;
156 extern __sfr __at (OSCCON_ADDR) OSCCON;
157 extern __sfr __at (OSCTUNE_ADDR) OSCTUNE;
158 extern __sfr __at (PR2_ADDR) PR2;
159 extern __sfr __at (SSPADD_ADDR) SSPADD;
160 extern __sfr __at (SSPSTAT_ADDR) SSPSTAT;
161 extern __sfr __at (ADRESL_ADDR) ADRESL;
162 extern __sfr __at (ADCON1_ADDR) ADCON1;
164 extern __sfr __at (EEDATA_ADDR) EEDATA;
165 extern __sfr __at (EEADR_ADDR) EEADR;
166 extern __sfr __at (EEDATH_ADDR) EEDATH;
167 extern __sfr __at (EEADRH_ADDR) EEADRH;
169 extern __sfr __at (EECON1_ADDR) EECON1;
170 extern __sfr __at (EECON2_ADDR) EECON2;
172 //----- STATUS Bits --------------------------------------------------------
175 //----- INTCON Bits --------------------------------------------------------
178 //----- PIR1 Bits ----------------------------------------------------------
181 //----- PIR2 Bits ----------------------------------------------------------
184 //----- T1CON Bits ---------------------------------------------------------
187 //----- T2CON Bits ---------------------------------------------------------
190 //----- SSPCON Bits --------------------------------------------------------
193 //----- CCP1CON Bits -------------------------------------------------------
196 //----- ADCON0 Bits --------------------------------------------------------
199 //----- OPTION_REG Bits -----------------------------------------------------
202 //----- PIE1 Bits ----------------------------------------------------------
205 //----- PIE2 Bits ----------------------------------------------------------
208 //----- PCON Bits ----------------------------------------------------------
211 //----- OSCCON Bits -------------------------------------------------------
214 //----- OSCTUNE Bits -------------------------------------------------------
217 //----- SSPSTAT Bits -------------------------------------------------------
220 //----- ADCON1 Bits --------------------------------------------------------
223 //----- EECON1 Bits --------------------------------------------------------
226 //==========================================================================
230 //==========================================================================
233 // __BADRAM H'07'-H'09', H'18'-H'1D'
234 // __BADRAM H'87'-H'89', H'91', H'95'-H'9D'
235 // __BADRAM H'105', H'107'-H'109', H'110'-H'11F'
236 // __BADRAM H'185', H'187'-H'189', H'18E'-H'19F'
238 //==========================================================================
240 // Configuration Bits
242 //==========================================================================
244 #define _CP_ALL 0x1FFF
245 #define _CP_OFF 0x3FFF
246 #define _CCP1_RB2 0x3FFF
247 #define _CCP1_RB3 0x2FFF
248 #define _DEBUG_OFF 0x3FFF
249 #define _DEBUG_ON 0x37FF
250 #define _WRT_ENABLE_OFF 0x3FFF
251 #define _WRT_ENABLE_512 0x3DFF
252 #define _WRT_ENABLE_1024 0x3BFF
253 #define _WRT_ENABLE_1536 0x39FF
254 #define _CPD_ON 0x3EFF
255 #define _CPD_OFF 0x3FFF
256 #define _LVP_ON 0x3FFF
257 #define _LVP_OFF 0x3F7F
258 #define _BODEN_ON 0x3FFF
259 #define _BODEN_OFF 0x3FBF
260 #define _MCLR_ON 0x3FFF
261 #define _MCLR_OFF 0x3FDF
262 #define _PWRTE_OFF 0x3FFF
263 #define _PWRTE_ON 0x3FF7
264 #define _WDT_ON 0x3FFF
265 #define _WDT_OFF 0x3FFB
266 #define _EXTRC_CLKOUT 0x3FFF
267 #define _EXTRC_IO 0x3FFE
268 #define _INTRC_CLKOUT 0x3FFD
269 #define _INTRC_IO 0x3FFC
270 #define _EXTCLK 0x3FEF
271 #define _HS_OSC 0x3FEE
272 #define _XT_OSC 0x3FED
273 #define _LP_OSC 0x3FEC
277 // ----- ADCON0 bits --------------------
280 unsigned char ADON:1;
283 unsigned char CHS0:1;
284 unsigned char CHS1:1;
285 unsigned char CHS2:1;
286 unsigned char ADCS0:1;
287 unsigned char ADCS1:1;
292 unsigned char NOT_DONE:1;
302 unsigned char GO_DONE:1;
310 extern volatile __ADCON0_bits_t __at(ADCON0_ADDR) ADCON0_bits;
312 #ifndef NO_BIT_DEFINES
313 #define ADON ADCON0_bits.ADON
314 #define GO ADCON0_bits.GO
315 #define NOT_DONE ADCON0_bits.NOT_DONE
316 #define GO_DONE ADCON0_bits.GO_DONE
317 #define CHS0 ADCON0_bits.CHS0
318 #define CHS1 ADCON0_bits.CHS1
319 #define CHS2 ADCON0_bits.CHS2
320 #define ADCS0 ADCON0_bits.ADCS0
321 #define ADCS1 ADCON0_bits.ADCS1
322 #endif /* NO_BIT_DEFINES */
324 // ----- ADCON1 bits --------------------
327 unsigned char PCFG0:1;
328 unsigned char PCFG1:1;
329 unsigned char PCFG2:1;
330 unsigned char PCFG3:1;
333 unsigned char ADCS2:1;
334 unsigned char ADFM:1;
337 extern volatile __ADCON1_bits_t __at(ADCON1_ADDR) ADCON1_bits;
339 #ifndef NO_BIT_DEFINES
340 #define PCFG0 ADCON1_bits.PCFG0
341 #define PCFG1 ADCON1_bits.PCFG1
342 #define PCFG2 ADCON1_bits.PCFG2
343 #define PCFG3 ADCON1_bits.PCFG3
344 #define ADCS2 ADCON1_bits.ADCS2
345 #define ADFM ADCON1_bits.ADFM
346 #endif /* NO_BIT_DEFINES */
348 // ----- CCP1CON bits --------------------
351 unsigned char CCP1M0:1;
352 unsigned char CCP1M1:1;
353 unsigned char CCP1M2:1;
354 unsigned char CCP1M3:1;
355 unsigned char CCP1Y:1;
356 unsigned char CCP1X:1;
361 extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
363 #ifndef NO_BIT_DEFINES
364 #define CCP1M0 CCP1CON_bits.CCP1M0
365 #define CCP1M1 CCP1CON_bits.CCP1M1
366 #define CCP1M2 CCP1CON_bits.CCP1M2
367 #define CCP1M3 CCP1CON_bits.CCP1M3
368 #define CCP1Y CCP1CON_bits.CCP1Y
369 #define CCP1X CCP1CON_bits.CCP1X
370 #endif /* NO_BIT_DEFINES */
372 // ----- EECON1 bits --------------------
377 unsigned char WREN:1;
378 unsigned char WRERR:1;
379 unsigned char FREE:1;
382 unsigned char EEPGD:1;
385 extern volatile __EECON1_bits_t __at(EECON1_ADDR) EECON1_bits;
387 #ifndef NO_BIT_DEFINES
388 #define RD EECON1_bits.RD
389 #define WR EECON1_bits.WR
390 #define WREN EECON1_bits.WREN
391 #define WRERR EECON1_bits.WRERR
392 #define FREE EECON1_bits.FREE
393 #define EEPGD EECON1_bits.EEPGD
394 #endif /* NO_BIT_DEFINES */
396 // ----- INTCON bits --------------------
399 unsigned char RBIF:1;
400 unsigned char INTF:1;
401 unsigned char TMR0IF:1;
402 unsigned char RBIE:1;
403 unsigned char INTE:1;
404 unsigned char TMR0IE:1;
405 unsigned char PEIE:1;
409 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
411 #ifndef NO_BIT_DEFINES
412 #define RBIF INTCON_bits.RBIF
413 #define INTF INTCON_bits.INTF
414 #define TMR0IF INTCON_bits.TMR0IF
415 #define RBIE INTCON_bits.RBIE
416 #define INTE INTCON_bits.INTE
417 #define TMR0IE INTCON_bits.TMR0IE
418 #define PEIE INTCON_bits.PEIE
419 #define GIE INTCON_bits.GIE
420 #endif /* NO_BIT_DEFINES */
422 // ----- OPTION_REG bits --------------------
429 unsigned char T0SE:1;
430 unsigned char T0CS:1;
431 unsigned char INTEDG:1;
432 unsigned char NOT_RBPU:1;
434 } __OPTION_REG_bits_t;
435 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
437 #ifndef NO_BIT_DEFINES
438 #define PS0 OPTION_REG_bits.PS0
439 #define PS1 OPTION_REG_bits.PS1
440 #define PS2 OPTION_REG_bits.PS2
441 #define PSA OPTION_REG_bits.PSA
442 #define T0SE OPTION_REG_bits.T0SE
443 #define T0CS OPTION_REG_bits.T0CS
444 #define INTEDG OPTION_REG_bits.INTEDG
445 #define NOT_RBPU OPTION_REG_bits.NOT_RBPU
446 #endif /* NO_BIT_DEFINES */
448 // ----- OSCCON bits --------------------
453 unsigned char IOFS:1;
455 unsigned char IRCF0:1;
456 unsigned char IRCF1:1;
457 unsigned char IRCF2:1;
461 extern volatile __OSCCON_bits_t __at(OSCCON_ADDR) OSCCON_bits;
463 #ifndef NO_BIT_DEFINES
464 #define IOFS OSCCON_bits.IOFS
465 #define IRCF0 OSCCON_bits.IRCF0
466 #define IRCF1 OSCCON_bits.IRCF1
467 #define IRCF2 OSCCON_bits.IRCF2
468 #endif /* NO_BIT_DEFINES */
470 // ----- OSCTUNE bits --------------------
473 unsigned char TUN0:1;
474 unsigned char TUN1:1;
475 unsigned char TUN2:1;
476 unsigned char TUN3:1;
477 unsigned char TUN4:1;
478 unsigned char TUN5:1;
483 extern volatile __OSCTUNE_bits_t __at(OSCTUNE_ADDR) OSCTUNE_bits;
485 #ifndef NO_BIT_DEFINES
486 #define TUN0 OSCTUNE_bits.TUN0
487 #define TUN1 OSCTUNE_bits.TUN1
488 #define TUN2 OSCTUNE_bits.TUN2
489 #define TUN3 OSCTUNE_bits.TUN3
490 #define TUN4 OSCTUNE_bits.TUN4
491 #define TUN5 OSCTUNE_bits.TUN5
492 #endif /* NO_BIT_DEFINES */
494 // ----- PCON bits --------------------
497 unsigned char NOT_BO:1;
498 unsigned char NOT_POR:1;
507 unsigned char NOT_BOR:1;
517 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
519 #ifndef NO_BIT_DEFINES
520 #define NOT_BO PCON_bits.NOT_BO
521 #define NOT_BOR PCON_bits.NOT_BOR
522 #define NOT_POR PCON_bits.NOT_POR
523 #endif /* NO_BIT_DEFINES */
525 // ----- PIE1 bits --------------------
528 unsigned char TMR1IE:1;
529 unsigned char TMR2IE:1;
530 unsigned char CCP1IE:1;
531 unsigned char SSPIE:1;
534 unsigned char ADIE:1;
538 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
540 #ifndef NO_BIT_DEFINES
541 #define TMR1IE PIE1_bits.TMR1IE
542 #define TMR2IE PIE1_bits.TMR2IE
543 #define CCP1IE PIE1_bits.CCP1IE
544 #define SSPIE PIE1_bits.SSPIE
545 #define ADIE PIE1_bits.ADIE
546 #endif /* NO_BIT_DEFINES */
548 // ----- PIE2 bits --------------------
555 unsigned char EEIE:1;
561 extern volatile __PIE2_bits_t __at(PIE2_ADDR) PIE2_bits;
563 #ifndef NO_BIT_DEFINES
564 #define EEIE PIE2_bits.EEIE
565 #endif /* NO_BIT_DEFINES */
567 // ----- PIR1 bits --------------------
570 unsigned char TMR1IF:1;
571 unsigned char TMR2IF:1;
572 unsigned char CCP1IF:1;
573 unsigned char SSPIF:1;
576 unsigned char ADIF:1;
580 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
582 #ifndef NO_BIT_DEFINES
583 #define TMR1IF PIR1_bits.TMR1IF
584 #define TMR2IF PIR1_bits.TMR2IF
585 #define CCP1IF PIR1_bits.CCP1IF
586 #define SSPIF PIR1_bits.SSPIF
587 #define ADIF PIR1_bits.ADIF
588 #endif /* NO_BIT_DEFINES */
590 // ----- PIR2 bits --------------------
597 unsigned char EEIF:1;
603 extern volatile __PIR2_bits_t __at(PIR2_ADDR) PIR2_bits;
605 #ifndef NO_BIT_DEFINES
606 #define EEIF PIR2_bits.EEIF
607 #endif /* NO_BIT_DEFINES */
609 // ----- PORTA bits --------------------
622 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
624 #ifndef NO_BIT_DEFINES
625 #define RA0 PORTA_bits.RA0
626 #define RA1 PORTA_bits.RA1
627 #define RA2 PORTA_bits.RA2
628 #define RA3 PORTA_bits.RA3
629 #define RA4 PORTA_bits.RA4
630 #define RA5 PORTA_bits.RA5
631 #endif /* NO_BIT_DEFINES */
633 // ----- PORTB bits --------------------
646 extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
648 #ifndef NO_BIT_DEFINES
649 #define RB0 PORTB_bits.RB0
650 #define RB1 PORTB_bits.RB1
651 #define RB2 PORTB_bits.RB2
652 #define RB3 PORTB_bits.RB3
653 #define RB4 PORTB_bits.RB4
654 #define RB5 PORTB_bits.RB5
655 #define RB6 PORTB_bits.RB6
656 #define RB7 PORTB_bits.RB7
657 #endif /* NO_BIT_DEFINES */
659 // ----- SSPCON bits --------------------
662 unsigned char SSPM0:1;
663 unsigned char SSPM1:1;
664 unsigned char SSPM2:1;
665 unsigned char SSPM3:1;
667 unsigned char SSPEN:1;
668 unsigned char SSPOV:1;
669 unsigned char WCOL:1;
672 extern volatile __SSPCON_bits_t __at(SSPCON_ADDR) SSPCON_bits;
674 #ifndef NO_BIT_DEFINES
675 #define SSPM0 SSPCON_bits.SSPM0
676 #define SSPM1 SSPCON_bits.SSPM1
677 #define SSPM2 SSPCON_bits.SSPM2
678 #define SSPM3 SSPCON_bits.SSPM3
679 #define CKP SSPCON_bits.CKP
680 #define SSPEN SSPCON_bits.SSPEN
681 #define SSPOV SSPCON_bits.SSPOV
682 #define WCOL SSPCON_bits.WCOL
683 #endif /* NO_BIT_DEFINES */
685 // ----- SSPSTAT bits --------------------
700 unsigned char I2C_READ:1;
701 unsigned char I2C_START:1;
702 unsigned char I2C_STOP:1;
703 unsigned char I2C_DATA:1;
710 unsigned char NOT_W:1;
713 unsigned char NOT_A:1;
720 unsigned char NOT_WRITE:1;
723 unsigned char NOT_ADDRESS:1;
740 unsigned char READ_WRITE:1;
743 unsigned char DATA_ADDRESS:1;
748 extern volatile __SSPSTAT_bits_t __at(SSPSTAT_ADDR) SSPSTAT_bits;
750 #ifndef NO_BIT_DEFINES
751 #define BF SSPSTAT_bits.BF
752 #define UA SSPSTAT_bits.UA
753 #define R SSPSTAT_bits.R
754 #define I2C_READ SSPSTAT_bits.I2C_READ
755 #define NOT_W SSPSTAT_bits.NOT_W
756 #define NOT_WRITE SSPSTAT_bits.NOT_WRITE
757 #define R_W SSPSTAT_bits.R_W
758 #define READ_WRITE SSPSTAT_bits.READ_WRITE
759 #define S SSPSTAT_bits.S
760 #define I2C_START SSPSTAT_bits.I2C_START
761 #define P SSPSTAT_bits.P
762 #define I2C_STOP SSPSTAT_bits.I2C_STOP
763 #define D SSPSTAT_bits.D
764 #define I2C_DATA SSPSTAT_bits.I2C_DATA
765 #define NOT_A SSPSTAT_bits.NOT_A
766 #define NOT_ADDRESS SSPSTAT_bits.NOT_ADDRESS
767 #define D_A SSPSTAT_bits.D_A
768 #define DATA_ADDRESS SSPSTAT_bits.DATA_ADDRESS
769 #define CKE SSPSTAT_bits.CKE
770 #define SMP SSPSTAT_bits.SMP
771 #endif /* NO_BIT_DEFINES */
773 // ----- STATUS bits --------------------
779 unsigned char NOT_PD:1;
780 unsigned char NOT_TO:1;
786 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
788 #ifndef NO_BIT_DEFINES
789 #define C STATUS_bits.C
790 #define DC STATUS_bits.DC
791 #define Z STATUS_bits.Z
792 #define NOT_PD STATUS_bits.NOT_PD
793 #define NOT_TO STATUS_bits.NOT_TO
794 #define RP0 STATUS_bits.RP0
795 #define RP1 STATUS_bits.RP1
796 #define IRP STATUS_bits.IRP
797 #endif /* NO_BIT_DEFINES */
799 // ----- T1CON bits --------------------
802 unsigned char TMR1ON:1;
803 unsigned char TMR1CS:1;
804 unsigned char NOT_T1SYNC:1;
805 unsigned char T1OSCEN:1;
806 unsigned char T1CKPS0:1;
807 unsigned char T1CKPS1:1;
814 unsigned char T1INSYNC:1;
822 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
824 #ifndef NO_BIT_DEFINES
825 #define TMR1ON T1CON_bits.TMR1ON
826 #define TMR1CS T1CON_bits.TMR1CS
827 #define NOT_T1SYNC T1CON_bits.NOT_T1SYNC
828 #define T1INSYNC T1CON_bits.T1INSYNC
829 #define T1OSCEN T1CON_bits.T1OSCEN
830 #define T1CKPS0 T1CON_bits.T1CKPS0
831 #define T1CKPS1 T1CON_bits.T1CKPS1
832 #endif /* NO_BIT_DEFINES */
834 // ----- T2CON bits --------------------
837 unsigned char T2CKPS0:1;
838 unsigned char T2CKPS1:1;
839 unsigned char TMR2ON:1;
840 unsigned char TOUTPS0:1;
841 unsigned char TOUTPS1:1;
842 unsigned char TOUTPS2:1;
843 unsigned char TOUTPS3:1;
847 extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
849 #ifndef NO_BIT_DEFINES
850 #define T2CKPS0 T2CON_bits.T2CKPS0
851 #define T2CKPS1 T2CON_bits.T2CKPS1
852 #define TMR2ON T2CON_bits.TMR2ON
853 #define TOUTPS0 T2CON_bits.TOUTPS0
854 #define TOUTPS1 T2CON_bits.TOUTPS1
855 #define TOUTPS2 T2CON_bits.TOUTPS2
856 #define TOUTPS3 T2CON_bits.TOUTPS3
857 #endif /* NO_BIT_DEFINES */
859 // ----- TRISA bits --------------------
862 unsigned char TRISA0:1;
863 unsigned char TRISA1:1;
864 unsigned char TRISA2:1;
865 unsigned char TRISA3:1;
866 unsigned char TRISA4:1;
867 unsigned char TRISA5:1;
872 extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
874 #ifndef NO_BIT_DEFINES
875 #define TRISA0 TRISA_bits.TRISA0
876 #define TRISA1 TRISA_bits.TRISA1
877 #define TRISA2 TRISA_bits.TRISA2
878 #define TRISA3 TRISA_bits.TRISA3
879 #define TRISA4 TRISA_bits.TRISA4
880 #define TRISA5 TRISA_bits.TRISA5
881 #endif /* NO_BIT_DEFINES */
883 // ----- TRISB bits --------------------
886 unsigned char TRISB0:1;
887 unsigned char TRISB1:1;
888 unsigned char TRISB2:1;
889 unsigned char TRISB3:1;
890 unsigned char TRISB4:1;
891 unsigned char TRISB5:1;
892 unsigned char TRISB6:1;
893 unsigned char TRISB7:1;
896 extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
898 #ifndef NO_BIT_DEFINES
899 #define TRISB0 TRISB_bits.TRISB0
900 #define TRISB1 TRISB_bits.TRISB1
901 #define TRISB2 TRISB_bits.TRISB2
902 #define TRISB3 TRISB_bits.TRISB3
903 #define TRISB4 TRISB_bits.TRISB4
904 #define TRISB5 TRISB_bits.TRISB5
905 #define TRISB6 TRISB_bits.TRISB6
906 #define TRISB7 TRISB_bits.TRISB7
907 #endif /* NO_BIT_DEFINES */