2 // Register Declarations for Microchip 16C770 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 SSPCON2_ADDR 0x0091
58 #define PR2_ADDR 0x0092
59 #define SSPADD_ADDR 0x0093
60 #define SSPSTAT_ADDR 0x0094
61 #define WPUB_ADDR 0x0095
62 #define IOCB_ADDR 0x0096
63 #define P1DEL_ADDR 0x0097
64 #define REFCON_ADDR 0x009B
65 #define LVDCON_ADDR 0x009C
66 #define ANSEL_ADDR 0x009D
67 #define ADRESL_ADDR 0x009E
68 #define ADCON1_ADDR 0x009F
69 #define PMDATL_ADDR 0x010C
70 #define PMADRL_ADDR 0x010D
71 #define PMDATH_ADDR 0x010E
72 #define PMADRH_ADDR 0x010F
73 #define PMCON1_ADDR 0x018C
76 // Memory organization.
82 // P16C770.INC Standard Header File, Version 1.00 Microchip Technology, Inc.
85 // This header file defines configurations, registers, and other useful bits of
86 // information for the PIC16C770 microcontroller. These names are taken to match
87 // the data sheets as closely as possible.
89 // Note that the processor must be selected before this file is
90 // included. The processor may be selected the following ways:
92 // 1. Command line switch:
93 // C:\ MPASM MYFILE.ASM /PIC16C770
94 // 2. LIST directive in the source file
96 // 3. Processor Type entry in the MPASM full-screen interface
98 //==========================================================================
102 //==========================================================================
106 //1.00 14Sep1999 Initial Release
108 //==========================================================================
112 //==========================================================================
115 // MESSG "Processor-header file mismatch. Verify selected processor."
118 //==========================================================================
120 // Register Definitions
122 //==========================================================================
127 //----- Register Files------------------------------------------------------
129 extern __sfr __at (INDF_ADDR) INDF;
130 extern __sfr __at (TMR0_ADDR) TMR0;
131 extern __sfr __at (PCL_ADDR) PCL;
132 extern __sfr __at (STATUS_ADDR) STATUS;
133 extern __sfr __at (FSR_ADDR) FSR;
134 extern __sfr __at (PORTA_ADDR) PORTA;
135 extern __sfr __at (PORTB_ADDR) PORTB;
136 extern __sfr __at (PCLATH_ADDR) PCLATH;
137 extern __sfr __at (INTCON_ADDR) INTCON;
138 extern __sfr __at (PIR1_ADDR) PIR1;
139 extern __sfr __at (PIR2_ADDR) PIR2;
140 extern __sfr __at (TMR1L_ADDR) TMR1L;
141 extern __sfr __at (TMR1H_ADDR) TMR1H;
142 extern __sfr __at (T1CON_ADDR) T1CON;
143 extern __sfr __at (TMR2_ADDR) TMR2;
144 extern __sfr __at (T2CON_ADDR) T2CON;
145 extern __sfr __at (SSPBUF_ADDR) SSPBUF;
146 extern __sfr __at (SSPCON_ADDR) SSPCON;
147 extern __sfr __at (CCPR1L_ADDR) CCPR1L;
148 extern __sfr __at (CCPR1H_ADDR) CCPR1H;
149 extern __sfr __at (CCP1CON_ADDR) CCP1CON;
150 extern __sfr __at (ADRESH_ADDR) ADRESH;
151 extern __sfr __at (ADCON0_ADDR) ADCON0;
153 extern __sfr __at (OPTION_REG_ADDR) OPTION_REG;
154 extern __sfr __at (TRISA_ADDR) TRISA;
155 extern __sfr __at (TRISB_ADDR) TRISB;
156 extern __sfr __at (PIE1_ADDR) PIE1;
157 extern __sfr __at (PIE2_ADDR) PIE2;
158 extern __sfr __at (PCON_ADDR) PCON;
159 extern __sfr __at (SSPCON2_ADDR) SSPCON2;
160 extern __sfr __at (PR2_ADDR) PR2;
161 extern __sfr __at (SSPADD_ADDR) SSPADD;
162 extern __sfr __at (SSPSTAT_ADDR) SSPSTAT;
163 extern __sfr __at (WPUB_ADDR) WPUB;
164 extern __sfr __at (IOCB_ADDR) IOCB;
165 extern __sfr __at (P1DEL_ADDR) P1DEL;
166 extern __sfr __at (REFCON_ADDR) REFCON;
167 extern __sfr __at (LVDCON_ADDR) LVDCON;
168 extern __sfr __at (ANSEL_ADDR) ANSEL;
169 extern __sfr __at (ADRESL_ADDR) ADRESL;
170 extern __sfr __at (ADCON1_ADDR) ADCON1;
172 extern __sfr __at (PMDATL_ADDR) PMDATL;
173 extern __sfr __at (PMADRL_ADDR) PMADRL;
174 extern __sfr __at (PMDATH_ADDR) PMDATH;
175 extern __sfr __at (PMADRH_ADDR) PMADRH;
177 extern __sfr __at (PMCON1_ADDR) PMCON1;
179 //----- STATUS Bits --------------------------------------------------------
182 //----- INTCON Bits --------------------------------------------------------
185 //----- PIR1 Bits ----------------------------------------------------------
188 //----- PIR2 Bits ----------------------------------------------------------
191 //----- T1CON Bits ---------------------------------------------------------
194 //----- T2CON Bits ---------------------------------------------------------
197 //----- SSPCON Bits --------------------------------------------------------
200 //----- CCP1CON Bits -------------------------------------------------------
203 //----- ADCON0 Bits --------------------------------------------------------
206 //----- OPTION_REG Bits ----------------------------------------------------
210 //----- PIE1 Bits ----------------------------------------------------------
213 //----- PIE2 Bits ----------------------------------------------------------
216 //----- PCON Bits ----------------------------------------------------------
219 //----- SSPCON2 Bits --------------------------------------------------------
222 //----- SSPSTAT Bits -------------------------------------------------------
225 //----- REFCON Bits --------------------------------------------------------
228 //----- LVDCON Bits --------------------------------------------------------
231 //----- ADCON1 Bits --------------------------------------------------------
234 //----- PMCON1 Bits --------------------------------------------------------
237 //==========================================================================
241 //==========================================================================
244 // __BADRAM H'07'-H'09', H'18'-H'1D'
245 // __BADRAM H'87'-H'89'
246 // __BADRAM H'8F'-H'90', H'98'-H'9A'
247 // __BADRAM H'105', H'107'-H'109', H'110'-H'11F'
248 // __BADRAM H'185', H'187'-H'189', H'18D'-H'1EF'
250 //==========================================================================
252 // Configuration Bits
254 //==========================================================================
256 #define _BODEN_ON 0x3FFF
257 #define _BODEN_OFF 0x3FBF
258 #define _CP_ALL 0x0CFF
259 #define _CP_OFF 0x3FFF
260 #define _VBOR_25 0x3FFF
261 #define _VBOR_27 0x3BFF
262 #define _VBOR_42 0x37FF
263 #define _VBOR_45 0x33FF
264 #define _PWRTE_OFF 0x3FFF
265 #define _PWRTE_ON 0x3FEF
266 #define _MCLRE_OFF 0x3FDF
267 #define _MCLRE_ON 0x3FFF
268 #define _WDT_ON 0x3FFF
269 #define _WDT_OFF 0x3FF7
270 #define _ER_OSC_CLKOUT 0x3FFF
271 #define _ER_OSC_NOCLKOUT 0x3FFE
272 #define _INTRC_OSC_CLKOUT 0x3FFD
273 #define _INTRC_OSC_NOCLKOUT 0x3FFC
274 #define _EXTCLK_OSC 0x3FFB
275 #define _HS_OSC 0x3FFA
276 #define _XT_OSC 0x3FF9
277 #define _LP_OSC 0x3FF8
281 // ----- ADCON0 bits --------------------
284 unsigned char ADON:1;
285 unsigned char CHS3:1;
287 unsigned char CHS0:1;
288 unsigned char CHS1:1;
289 unsigned char CHS2:1;
290 unsigned char ADCS0:1;
291 unsigned char ADCS1:1;
296 unsigned char NOT_DONE:1;
306 unsigned char GO_DONE:1;
314 extern volatile __ADCON0_bits_t __at(ADCON0_ADDR) ADCON0_bits;
316 #ifndef NO_BIT_DEFINES
317 #define ADON ADCON0_bits.ADON
318 #define CHS3 ADCON0_bits.CHS3
319 #define GO ADCON0_bits.GO
320 #define NOT_DONE ADCON0_bits.NOT_DONE
321 #define GO_DONE ADCON0_bits.GO_DONE
322 #define CHS0 ADCON0_bits.CHS0
323 #define CHS1 ADCON0_bits.CHS1
324 #define CHS2 ADCON0_bits.CHS2
325 #define ADCS0 ADCON0_bits.ADCS0
326 #define ADCS1 ADCON0_bits.ADCS1
327 #endif /* NO_BIT_DEFINES */
329 // ----- ADCON1 bits --------------------
336 unsigned char VCFG0:1;
337 unsigned char VCFG1:1;
338 unsigned char VCFG2:1;
339 unsigned char ADFM:1;
342 extern volatile __ADCON1_bits_t __at(ADCON1_ADDR) ADCON1_bits;
344 #ifndef NO_BIT_DEFINES
345 #define VCFG0 ADCON1_bits.VCFG0
346 #define VCFG1 ADCON1_bits.VCFG1
347 #define VCFG2 ADCON1_bits.VCFG2
348 #define ADFM ADCON1_bits.ADFM
349 #endif /* NO_BIT_DEFINES */
351 // ----- CCP1CON bits --------------------
354 unsigned char CCP1M0:1;
355 unsigned char CCP1M1:1;
356 unsigned char CCP1M2:1;
357 unsigned char CCP1M3:1;
358 unsigned char DC1B0:1;
359 unsigned char DC1B1:1;
360 unsigned char PWM1M0:1;
361 unsigned char PWM1M1:1;
364 extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
366 #ifndef NO_BIT_DEFINES
367 #define CCP1M0 CCP1CON_bits.CCP1M0
368 #define CCP1M1 CCP1CON_bits.CCP1M1
369 #define CCP1M2 CCP1CON_bits.CCP1M2
370 #define CCP1M3 CCP1CON_bits.CCP1M3
371 #define DC1B0 CCP1CON_bits.DC1B0
372 #define DC1B1 CCP1CON_bits.DC1B1
373 #define PWM1M0 CCP1CON_bits.PWM1M0
374 #define PWM1M1 CCP1CON_bits.PWM1M1
375 #endif /* NO_BIT_DEFINES */
377 // ----- INTCON bits --------------------
380 unsigned char RBIF:1;
381 unsigned char INTF:1;
382 unsigned char T0IF:1;
383 unsigned char RBIE:1;
384 unsigned char INTE:1;
385 unsigned char T0IE:1;
386 unsigned char PEIE:1;
390 extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
392 #ifndef NO_BIT_DEFINES
393 #define RBIF INTCON_bits.RBIF
394 #define INTF INTCON_bits.INTF
395 #define T0IF INTCON_bits.T0IF
396 #define RBIE INTCON_bits.RBIE
397 #define INTE INTCON_bits.INTE
398 #define T0IE INTCON_bits.T0IE
399 #define PEIE INTCON_bits.PEIE
400 #define GIE INTCON_bits.GIE
401 #endif /* NO_BIT_DEFINES */
403 // ----- LVDCON bits --------------------
410 unsigned char LVDEN:1;
411 unsigned char BGST:1;
416 extern volatile __LVDCON_bits_t __at(LVDCON_ADDR) LVDCON_bits;
418 #ifndef NO_BIT_DEFINES
419 #define LV0 LVDCON_bits.LV0
420 #define LV1 LVDCON_bits.LV1
421 #define LV2 LVDCON_bits.LV2
422 #define LV3 LVDCON_bits.LV3
423 #define LVDEN LVDCON_bits.LVDEN
424 #define BGST LVDCON_bits.BGST
425 #endif /* NO_BIT_DEFINES */
427 // ----- OPTION_REG bits --------------------
434 unsigned char T0SE:1;
435 unsigned char T0CS:1;
436 unsigned char INTEDG:1;
437 unsigned char NOT_RBPU:1;
439 } __OPTION_REG_bits_t;
440 extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
442 #ifndef NO_BIT_DEFINES
443 #define PS0 OPTION_REG_bits.PS0
444 #define PS1 OPTION_REG_bits.PS1
445 #define PS2 OPTION_REG_bits.PS2
446 #define PSA OPTION_REG_bits.PSA
447 #define T0SE OPTION_REG_bits.T0SE
448 #define T0CS OPTION_REG_bits.T0CS
449 #define INTEDG OPTION_REG_bits.INTEDG
450 #define NOT_RBPU OPTION_REG_bits.NOT_RBPU
451 #endif /* NO_BIT_DEFINES */
453 // ----- PCON bits --------------------
456 unsigned char NOT_BO:1;
457 unsigned char NOT_POR:1;
459 unsigned char OSCF:1;
466 unsigned char NOT_BOR:1;
476 extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
478 #ifndef NO_BIT_DEFINES
479 #define NOT_BO PCON_bits.NOT_BO
480 #define NOT_BOR PCON_bits.NOT_BOR
481 #define NOT_POR PCON_bits.NOT_POR
482 #define OSCF PCON_bits.OSCF
483 #endif /* NO_BIT_DEFINES */
485 // ----- PIE1 bits --------------------
488 unsigned char TMR1IE:1;
489 unsigned char TMR2IE:1;
490 unsigned char CCP1IE:1;
491 unsigned char SSPIE:1;
494 unsigned char ADIE:1;
498 extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
500 #ifndef NO_BIT_DEFINES
501 #define TMR1IE PIE1_bits.TMR1IE
502 #define TMR2IE PIE1_bits.TMR2IE
503 #define CCP1IE PIE1_bits.CCP1IE
504 #define SSPIE PIE1_bits.SSPIE
505 #define ADIE PIE1_bits.ADIE
506 #endif /* NO_BIT_DEFINES */
508 // ----- PIE2 bits --------------------
514 unsigned char BCLIE:1;
518 unsigned char LVDIE:1;
521 extern volatile __PIE2_bits_t __at(PIE2_ADDR) PIE2_bits;
523 #ifndef NO_BIT_DEFINES
524 #define BCLIE PIE2_bits.BCLIE
525 #define LVDIE PIE2_bits.LVDIE
526 #endif /* NO_BIT_DEFINES */
528 // ----- PIR1 bits --------------------
531 unsigned char TMR1IF:1;
532 unsigned char TMR2IF:1;
533 unsigned char CCP1IF:1;
534 unsigned char SSPIF:1;
537 unsigned char ADIF:1;
541 extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
543 #ifndef NO_BIT_DEFINES
544 #define TMR1IF PIR1_bits.TMR1IF
545 #define TMR2IF PIR1_bits.TMR2IF
546 #define CCP1IF PIR1_bits.CCP1IF
547 #define SSPIF PIR1_bits.SSPIF
548 #define ADIF PIR1_bits.ADIF
549 #endif /* NO_BIT_DEFINES */
551 // ----- PIR2 bits --------------------
557 unsigned char BCLIF:1;
561 unsigned char LVDIF:1;
564 extern volatile __PIR2_bits_t __at(PIR2_ADDR) PIR2_bits;
566 #ifndef NO_BIT_DEFINES
567 #define BCLIF PIR2_bits.BCLIF
568 #define LVDIF PIR2_bits.LVDIF
569 #endif /* NO_BIT_DEFINES */
571 // ----- PMCON1 bits --------------------
584 extern volatile __PMCON1_bits_t __at(PMCON1_ADDR) PMCON1_bits;
586 #ifndef NO_BIT_DEFINES
587 #define RD PMCON1_bits.RD
588 #endif /* NO_BIT_DEFINES */
590 // ----- PORTA bits --------------------
603 extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
605 #ifndef NO_BIT_DEFINES
606 #define RA0 PORTA_bits.RA0
607 #define RA1 PORTA_bits.RA1
608 #define RA2 PORTA_bits.RA2
609 #define RA3 PORTA_bits.RA3
610 #define RA4 PORTA_bits.RA4
611 #define RA5 PORTA_bits.RA5
612 #endif /* NO_BIT_DEFINES */
614 // ----- PORTB bits --------------------
627 extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
629 #ifndef NO_BIT_DEFINES
630 #define RB0 PORTB_bits.RB0
631 #define RB1 PORTB_bits.RB1
632 #define RB2 PORTB_bits.RB2
633 #define RB3 PORTB_bits.RB3
634 #define RB4 PORTB_bits.RB4
635 #define RB5 PORTB_bits.RB5
636 #define RB6 PORTB_bits.RB6
637 #define RB7 PORTB_bits.RB7
638 #endif /* NO_BIT_DEFINES */
640 // ----- REFCON bits --------------------
647 unsigned char VRLOEN:1;
648 unsigned char VRHOEN:1;
649 unsigned char VRLEN:1;
650 unsigned char VRHEN:1;
653 extern volatile __REFCON_bits_t __at(REFCON_ADDR) REFCON_bits;
655 #ifndef NO_BIT_DEFINES
656 #define VRLOEN REFCON_bits.VRLOEN
657 #define VRHOEN REFCON_bits.VRHOEN
658 #define VRLEN REFCON_bits.VRLEN
659 #define VRHEN REFCON_bits.VRHEN
660 #endif /* NO_BIT_DEFINES */
662 // ----- SSPCON bits --------------------
665 unsigned char SSPM0:1;
666 unsigned char SSPM1:1;
667 unsigned char SSPM2:1;
668 unsigned char SSPM3:1;
670 unsigned char SSPEN:1;
671 unsigned char SSPOV:1;
672 unsigned char WCOL:1;
675 extern volatile __SSPCON_bits_t __at(SSPCON_ADDR) SSPCON_bits;
677 #ifndef NO_BIT_DEFINES
678 #define SSPM0 SSPCON_bits.SSPM0
679 #define SSPM1 SSPCON_bits.SSPM1
680 #define SSPM2 SSPCON_bits.SSPM2
681 #define SSPM3 SSPCON_bits.SSPM3
682 #define CKP SSPCON_bits.CKP
683 #define SSPEN SSPCON_bits.SSPEN
684 #define SSPOV SSPCON_bits.SSPOV
685 #define WCOL SSPCON_bits.WCOL
686 #endif /* NO_BIT_DEFINES */
688 // ----- SSPCON2 bits --------------------
692 unsigned char RSEN:1;
694 unsigned char RCEN:1;
695 unsigned char ACKEN:1;
696 unsigned char ACKDT:1;
697 unsigned char ACKSTAT:1;
698 unsigned char GCEN:1;
701 extern volatile __SSPCON2_bits_t __at(SSPCON2_ADDR) SSPCON2_bits;
703 #ifndef NO_BIT_DEFINES
704 #define SEN SSPCON2_bits.SEN
705 #define RSEN SSPCON2_bits.RSEN
706 #define PEN SSPCON2_bits.PEN
707 #define RCEN SSPCON2_bits.RCEN
708 #define ACKEN SSPCON2_bits.ACKEN
709 #define ACKDT SSPCON2_bits.ACKDT
710 #define ACKSTAT SSPCON2_bits.ACKSTAT
711 #define GCEN SSPCON2_bits.GCEN
712 #endif /* NO_BIT_DEFINES */
714 // ----- SSPSTAT bits --------------------
729 unsigned char I2C_READ:1;
730 unsigned char I2C_START:1;
731 unsigned char I2C_STOP:1;
732 unsigned char I2C_DATA:1;
739 unsigned char NOT_W:1;
742 unsigned char NOT_A:1;
749 unsigned char NOT_WRITE:1;
752 unsigned char NOT_ADDRESS:1;
769 unsigned char READ_WRITE:1;
772 unsigned char DATA_ADDRESS:1;
777 extern volatile __SSPSTAT_bits_t __at(SSPSTAT_ADDR) SSPSTAT_bits;
779 #ifndef NO_BIT_DEFINES
780 #define BF SSPSTAT_bits.BF
781 #define UA SSPSTAT_bits.UA
782 #define R SSPSTAT_bits.R
783 #define I2C_READ SSPSTAT_bits.I2C_READ
784 #define NOT_W SSPSTAT_bits.NOT_W
785 #define NOT_WRITE SSPSTAT_bits.NOT_WRITE
786 #define R_W SSPSTAT_bits.R_W
787 #define READ_WRITE SSPSTAT_bits.READ_WRITE
788 #define S SSPSTAT_bits.S
789 #define I2C_START SSPSTAT_bits.I2C_START
790 #define P SSPSTAT_bits.P
791 #define I2C_STOP SSPSTAT_bits.I2C_STOP
792 #define D SSPSTAT_bits.D
793 #define I2C_DATA SSPSTAT_bits.I2C_DATA
794 #define NOT_A SSPSTAT_bits.NOT_A
795 #define NOT_ADDRESS SSPSTAT_bits.NOT_ADDRESS
796 #define D_A SSPSTAT_bits.D_A
797 #define DATA_ADDRESS SSPSTAT_bits.DATA_ADDRESS
798 #define CKE SSPSTAT_bits.CKE
799 #define SMP SSPSTAT_bits.SMP
800 #endif /* NO_BIT_DEFINES */
802 // ----- STATUS bits --------------------
808 unsigned char NOT_PD:1;
809 unsigned char NOT_TO:1;
815 extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
817 #ifndef NO_BIT_DEFINES
818 #define C STATUS_bits.C
819 #define DC STATUS_bits.DC
820 #define Z STATUS_bits.Z
821 #define NOT_PD STATUS_bits.NOT_PD
822 #define NOT_TO STATUS_bits.NOT_TO
823 #define RP0 STATUS_bits.RP0
824 #define RP1 STATUS_bits.RP1
825 #define IRP STATUS_bits.IRP
826 #endif /* NO_BIT_DEFINES */
828 // ----- T1CON bits --------------------
831 unsigned char TMR1ON:1;
832 unsigned char TMR1CS:1;
833 unsigned char NOT_T1SYNC:1;
834 unsigned char T1OSCEN:1;
835 unsigned char T1CKPS0:1;
836 unsigned char T1CKPS1:1;
843 unsigned char T1INSYNC:1;
851 extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
853 #ifndef NO_BIT_DEFINES
854 #define TMR1ON T1CON_bits.TMR1ON
855 #define TMR1CS T1CON_bits.TMR1CS
856 #define NOT_T1SYNC T1CON_bits.NOT_T1SYNC
857 #define T1INSYNC T1CON_bits.T1INSYNC
858 #define T1OSCEN T1CON_bits.T1OSCEN
859 #define T1CKPS0 T1CON_bits.T1CKPS0
860 #define T1CKPS1 T1CON_bits.T1CKPS1
861 #endif /* NO_BIT_DEFINES */
863 // ----- T2CON bits --------------------
866 unsigned char T2CKPS0:1;
867 unsigned char T2CKPS1:1;
868 unsigned char TMR2ON:1;
869 unsigned char TOUTPS0:1;
870 unsigned char TOUTPS1:1;
871 unsigned char TOUTPS2:1;
872 unsigned char TOUTPS3:1;
876 extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
878 #ifndef NO_BIT_DEFINES
879 #define T2CKPS0 T2CON_bits.T2CKPS0
880 #define T2CKPS1 T2CON_bits.T2CKPS1
881 #define TMR2ON T2CON_bits.TMR2ON
882 #define TOUTPS0 T2CON_bits.TOUTPS0
883 #define TOUTPS1 T2CON_bits.TOUTPS1
884 #define TOUTPS2 T2CON_bits.TOUTPS2
885 #define TOUTPS3 T2CON_bits.TOUTPS3
886 #endif /* NO_BIT_DEFINES */
888 // ----- TRISA bits --------------------
891 unsigned char TRISA0:1;
892 unsigned char TRISA1:1;
893 unsigned char TRISA2:1;
894 unsigned char TRISA3:1;
895 unsigned char TRISA4:1;
896 unsigned char TRISA5:1;
901 extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
903 #ifndef NO_BIT_DEFINES
904 #define TRISA0 TRISA_bits.TRISA0
905 #define TRISA1 TRISA_bits.TRISA1
906 #define TRISA2 TRISA_bits.TRISA2
907 #define TRISA3 TRISA_bits.TRISA3
908 #define TRISA4 TRISA_bits.TRISA4
909 #define TRISA5 TRISA_bits.TRISA5
910 #endif /* NO_BIT_DEFINES */
912 // ----- TRISB bits --------------------
915 unsigned char TRISB0:1;
916 unsigned char TRISB1:1;
917 unsigned char TRISB2:1;
918 unsigned char TRISB3:1;
919 unsigned char TRISB4:1;
920 unsigned char TRISB5:1;
921 unsigned char TRISB6:1;
922 unsigned char TRISB7:1;
925 extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
927 #ifndef NO_BIT_DEFINES
928 #define TRISB0 TRISB_bits.TRISB0
929 #define TRISB1 TRISB_bits.TRISB1
930 #define TRISB2 TRISB_bits.TRISB2
931 #define TRISB3 TRISB_bits.TRISB3
932 #define TRISB4 TRISB_bits.TRISB4
933 #define TRISB5 TRISB_bits.TRISB5
934 #define TRISB6 TRISB_bits.TRISB6
935 #define TRISB7 TRISB_bits.TRISB7
936 #endif /* NO_BIT_DEFINES */