2 * This declarations of the PIC16C771 MCU.
4 * This file is part of the GNU PIC library for SDCC, originally
5 * created by Molnar Karoly <molnarkaroly@users.sf.net> 2016.
7 * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:23:03 UTC.
9 * SDCC is licensed under the GNU Public license (GPL) v2. Note that
10 * this license covers the code to the compiler and other executables,
11 * but explicitly does not cover any code or objects generated by sdcc.
13 * For pic device libraries and header files which are derived from
14 * Microchip header (.inc) and linker script (.lkr) files Microchip
15 * requires that "The header files should state that they are only to be
16 * used with authentic Microchip devices" which makes them incompatible
17 * with the GPL. Pic device libraries and header files are located at
18 * non-free/lib and non-free/include directories respectively.
19 * Sdcc should be run with the --use-non-free command line option in
20 * order to include non-free header files and libraries.
22 * See http://sdcc.sourceforge.net/ for the latest information on sdcc.
25 #ifndef __PIC16C771_H__
26 #define __PIC16C771_H__
28 //==============================================================================
32 //==============================================================================
34 #ifndef NO_ADDR_DEFINES
36 #define INDF_ADDR 0x0000
37 #define TMR0_ADDR 0x0001
38 #define PCL_ADDR 0x0002
39 #define STATUS_ADDR 0x0003
40 #define FSR_ADDR 0x0004
41 #define PORTA_ADDR 0x0005
42 #define PORTB_ADDR 0x0006
43 #define PCLATH_ADDR 0x000A
44 #define INTCON_ADDR 0x000B
45 #define PIR1_ADDR 0x000C
46 #define PIR2_ADDR 0x000D
47 #define TMR1_ADDR 0x000E
48 #define TMR1L_ADDR 0x000E
49 #define TMR1H_ADDR 0x000F
50 #define T1CON_ADDR 0x0010
51 #define TMR2_ADDR 0x0011
52 #define T2CON_ADDR 0x0012
53 #define SSPBUF_ADDR 0x0013
54 #define SSPCON_ADDR 0x0014
55 #define CCPR1_ADDR 0x0015
56 #define CCPR1L_ADDR 0x0015
57 #define CCPR1H_ADDR 0x0016
58 #define CCP1CON_ADDR 0x0017
59 #define ADRESH_ADDR 0x001E
60 #define ADCON0_ADDR 0x001F
61 #define OPTION_REG_ADDR 0x0081
62 #define TRISA_ADDR 0x0085
63 #define TRISB_ADDR 0x0086
64 #define PIE1_ADDR 0x008C
65 #define PIE2_ADDR 0x008D
66 #define PCON_ADDR 0x008E
67 #define SSPCON2_ADDR 0x0091
68 #define PR2_ADDR 0x0092
69 #define SSPADD_ADDR 0x0093
70 #define SSPSTAT_ADDR 0x0094
71 #define WPUB_ADDR 0x0095
72 #define IOCB_ADDR 0x0096
73 #define P1DEL_ADDR 0x0097
74 #define REFCON_ADDR 0x009B
75 #define LVDCON_ADDR 0x009C
76 #define ANSEL_ADDR 0x009D
77 #define ADRESL_ADDR 0x009E
78 #define ADCON1_ADDR 0x009F
79 #define PMDATL_ADDR 0x010C
80 #define PMADRL_ADDR 0x010D
81 #define PMDATH_ADDR 0x010E
82 #define PMADRH_ADDR 0x010F
83 #define PMCON1_ADDR 0x018C
85 #endif // #ifndef NO_ADDR_DEFINES
87 //==============================================================================
89 // Register Definitions
91 //==============================================================================
93 extern __at(0x0000) __sfr INDF
;
94 extern __at(0x0001) __sfr TMR0
;
95 extern __at(0x0002) __sfr PCL
;
97 //==============================================================================
100 extern __at(0x0003) __sfr STATUS
;
124 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
135 //==============================================================================
137 extern __at(0x0004) __sfr FSR
;
139 //==============================================================================
142 extern __at(0x0005) __sfr PORTA
;
156 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
167 //==============================================================================
170 //==============================================================================
173 extern __at(0x0006) __sfr PORTB
;
187 extern __at(0x0006) volatile __PORTBbits_t PORTBbits
;
198 //==============================================================================
200 extern __at(0x000A) __sfr PCLATH
;
202 //==============================================================================
205 extern __at(0x000B) __sfr INTCON
;
234 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
247 //==============================================================================
250 //==============================================================================
253 extern __at(0x000C) __sfr PIR1
;
267 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
275 //==============================================================================
278 //==============================================================================
281 extern __at(0x000D) __sfr PIR2
;
295 extern __at(0x000D) volatile __PIR2bits_t PIR2bits
;
300 //==============================================================================
302 extern __at(0x000E) __sfr TMR1
;
303 extern __at(0x000E) __sfr TMR1L
;
304 extern __at(0x000F) __sfr TMR1H
;
306 //==============================================================================
309 extern __at(0x0010) __sfr T1CON
;
317 unsigned NOT_T1SYNC
: 1;
318 unsigned T1OSCEN
: 1;
319 unsigned T1CKPS0
: 1;
320 unsigned T1CKPS1
: 1;
329 unsigned T1INSYNC
: 1;
345 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
349 #define _NOT_T1SYNC 0x04
350 #define _T1INSYNC 0x04
351 #define _T1OSCEN 0x08
352 #define _T1CKPS0 0x10
353 #define _T1CKPS1 0x20
355 //==============================================================================
357 extern __at(0x0011) __sfr TMR2
;
359 //==============================================================================
362 extern __at(0x0012) __sfr T2CON
;
368 unsigned T2CKPS0
: 1;
369 unsigned T2CKPS1
: 1;
371 unsigned TOUTPS0
: 1;
372 unsigned TOUTPS1
: 1;
373 unsigned TOUTPS2
: 1;
374 unsigned TOUTPS3
: 1;
392 extern __at(0x0012) volatile __T2CONbits_t T2CONbits
;
394 #define _T2CKPS0 0x01
395 #define _T2CKPS1 0x02
397 #define _TOUTPS0 0x08
398 #define _TOUTPS1 0x10
399 #define _TOUTPS2 0x20
400 #define _TOUTPS3 0x40
402 //==============================================================================
404 extern __at(0x0013) __sfr SSPBUF
;
406 //==============================================================================
409 extern __at(0x0014) __sfr SSPCON
;
432 extern __at(0x0014) volatile __SSPCONbits_t SSPCONbits
;
443 //==============================================================================
445 extern __at(0x0015) __sfr CCPR1
;
446 extern __at(0x0015) __sfr CCPR1L
;
447 extern __at(0x0016) __sfr CCPR1H
;
449 //==============================================================================
452 extern __at(0x0017) __sfr CCP1CON
;
488 extern __at(0x0017) volatile __CCP1CONbits_t CCP1CONbits
;
499 //==============================================================================
501 extern __at(0x001E) __sfr ADRESH
;
503 //==============================================================================
506 extern __at(0x001F) __sfr ADCON0
;
514 unsigned GO_NOT_DONE
: 1;
538 unsigned NOT_DONE
: 1;
550 unsigned GO_DONE
: 1;
565 extern __at(0x001F) volatile __ADCON0bits_t ADCON0bits
;
569 #define _GO_NOT_DONE 0x04
571 #define _NOT_DONE 0x04
572 #define _GO_DONE 0x04
579 //==============================================================================
582 //==============================================================================
585 extern __at(0x0081) __sfr OPTION_REG
;
598 unsigned NOT_RBPU
: 1;
606 } __OPTION_REGbits_t
;
608 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
617 #define _NOT_RBPU 0x80
619 //==============================================================================
622 //==============================================================================
625 extern __at(0x0085) __sfr TRISA
;
639 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
650 //==============================================================================
653 //==============================================================================
656 extern __at(0x0086) __sfr TRISB
;
670 extern __at(0x0086) volatile __TRISBbits_t TRISBbits
;
681 //==============================================================================
684 //==============================================================================
687 extern __at(0x008C) __sfr PIE1
;
701 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
709 //==============================================================================
712 //==============================================================================
715 extern __at(0x008D) __sfr PIE2
;
729 extern __at(0x008D) volatile __PIE2bits_t PIE2bits
;
734 //==============================================================================
737 //==============================================================================
740 extern __at(0x008E) __sfr PCON
;
746 unsigned NOT_BOR
: 1;
747 unsigned NOT_POR
: 1;
769 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
771 #define _NOT_BOR 0x01
773 #define _NOT_POR 0x02
776 //==============================================================================
779 //==============================================================================
782 extern __at(0x0091) __sfr SSPCON2
;
792 unsigned ACKSTAT
: 1;
796 extern __at(0x0091) volatile __SSPCON2bits_t SSPCON2bits
;
804 #define _ACKSTAT 0x40
807 //==============================================================================
809 extern __at(0x0092) __sfr PR2
;
810 extern __at(0x0093) __sfr SSPADD
;
812 //==============================================================================
815 extern __at(0x0094) __sfr SSPSTAT
;
823 unsigned R_NOT_W
: 1;
826 unsigned D_NOT_A
: 1;
836 unsigned I2C_START
: 1;
837 unsigned I2C_STOP
: 1;
847 unsigned I2C_READ
: 1;
850 unsigned I2C_DATA
: 1;
871 unsigned READ_WRITE
: 1;
874 unsigned DATA_ADDRESS
: 1;
895 unsigned NOT_WRITE
: 1;
898 unsigned NOT_ADDRESS
: 1;
904 extern __at(0x0094) volatile __SSPSTATbits_t SSPSTATbits
;
908 #define _R_NOT_W 0x04
910 #define _I2C_READ 0x04
912 #define _READ_WRITE 0x04
914 #define _NOT_WRITE 0x04
916 #define _I2C_START 0x08
918 #define _I2C_STOP 0x10
919 #define _D_NOT_A 0x20
921 #define _I2C_DATA 0x20
923 #define _DATA_ADDRESS 0x20
925 #define _NOT_ADDRESS 0x20
929 //==============================================================================
932 //==============================================================================
935 extern __at(0x0095) __sfr WPUB
;
949 extern __at(0x0095) volatile __WPUBbits_t WPUBbits
;
960 //==============================================================================
963 //==============================================================================
966 extern __at(0x0096) __sfr IOCB
;
980 extern __at(0x0096) volatile __IOCBbits_t IOCBbits
;
991 //==============================================================================
993 extern __at(0x0097) __sfr P1DEL
;
995 //==============================================================================
998 extern __at(0x009B) __sfr REFCON
;
1006 unsigned VRLOEN
: 1;
1007 unsigned VRHOEN
: 1;
1012 extern __at(0x009B) volatile __REFCONbits_t REFCONbits
;
1014 #define _VRLOEN 0x10
1015 #define _VRHOEN 0x20
1019 //==============================================================================
1022 //==============================================================================
1025 extern __at(0x009C) __sfr LVDCON
;
1048 extern __at(0x009C) volatile __LVDCONbits_t LVDCONbits
;
1057 //==============================================================================
1060 //==============================================================================
1063 extern __at(0x009D) __sfr ANSEL
;
1086 extern __at(0x009D) volatile __ANSELbits_t ANSELbits
;
1095 //==============================================================================
1097 extern __at(0x009E) __sfr ADRESL
;
1099 //==============================================================================
1102 extern __at(0x009F) __sfr ADCON1
;
1126 extern __at(0x009F) volatile __ADCON1bits_t ADCON1bits
;
1133 //==============================================================================
1135 extern __at(0x010C) __sfr PMDATL
;
1136 extern __at(0x010D) __sfr PMADRL
;
1137 extern __at(0x010E) __sfr PMDATH
;
1138 extern __at(0x010F) __sfr PMADRH
;
1140 //==============================================================================
1143 extern __at(0x018C) __sfr PMCON1
;
1157 extern __at(0x018C) volatile __PMCON1bits_t PMCON1bits
;
1161 //==============================================================================
1164 //==============================================================================
1166 // Configuration Bits
1168 //==============================================================================
1170 #define _CONFIG1 0x2007
1172 //----------------------------- CONFIG1 Options -------------------------------
1174 #define _FOSC_LP 0x3FF8 // LP oscillator.
1175 #define _LP_OSC 0x3FF8 // LP oscillator.
1176 #define _FOSC_XT 0x3FF9 // XT oscillator.
1177 #define _XT_OSC 0x3FF9 // XT oscillator.
1178 #define _FOSC_HS 0x3FFA // HS oscillator.
1179 #define _HS_OSC 0x3FFA // HS oscillator.
1180 #define _FOSC_EXTCLK 0x3FFB // EC I/O.
1181 #define _EXTCLK_OSC 0x3FFB // EC I/O.
1182 #define _FOSC_INTRCIO 0x3FFC // INTRC, OSC2 is I/O.
1183 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTRC, OSC2 is I/O.
1184 #define _FOSC_INTRCCLK 0x3FFD // INTRC, clockout on OSC2.
1185 #define _INTRC_OSC_CLKOUT 0x3FFD // INTRC, clockout on OSC2.
1186 #define _FOSC_ER_NOCLKOUT 0x3FFE // ER I/O.
1187 #define _ER_OSC_NOCLKOUT 0x3FFE // ER I/O.
1188 #define _FOSC_ER_CLKOUT 0x3FFF // ER CLKOUT.
1189 #define _ER_OSC_CLKOUT 0x3FFF // ER CLKOUT.
1190 #define _WDTE_OFF 0x3FF7 // WDT disabled.
1191 #define _WDT_OFF 0x3FF7 // WDT disabled.
1192 #define _WDTE_ON 0x3FFF // WDT enabled.
1193 #define _WDT_ON 0x3FFF // WDT enabled.
1194 #define _PWRTE_ON 0x3FEF // PWRT enabled.
1195 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
1196 #define _MCLRE_OFF 0x3FDF // Internal.
1197 #define _MCLRE_ON 0x3FFF // External.
1198 #define _BOREN_OFF 0x3FBF // BOR disabled.
1199 #define _BODEN_OFF 0x3FBF // BOR disabled.
1200 #define _BOREN_ON 0x3FFF // BOR enabled.
1201 #define _BODEN_ON 0x3FFF // BOR enabled.
1202 #define _CP_ALL 0x0CFF // All memory is code protected.
1203 #define _CP_OFF 0x3FFF // Code protection off.
1204 #define _BODENV_45 0x33FF // VBOR set to 4.5V.
1205 #define _VBOR_45 0x33FF // VBOR set to 4.5V.
1206 #define _BODENV_42 0x37FF // VBOR set to 4.2V.
1207 #define _VBOR_42 0x37FF // VBOR set to 4.2V.
1208 #define _BODENV_27 0x3BFF // VBOR set to 2.7V.
1209 #define _VBOR_27 0x3BFF // VBOR set to 2.7V.
1210 #define _BODENV_25 0x3FFF // VBOR set to 2.5V.
1211 #define _VBOR_25 0x3FFF // VBOR set to 2.5V.
1213 //==============================================================================
1215 #define _IDLOC0 0x2000
1216 #define _IDLOC1 0x2001
1217 #define _IDLOC2 0x2002
1218 #define _IDLOC3 0x2003
1220 //==============================================================================
1222 #ifndef NO_BIT_DEFINES
1224 #define ADON ADCON0bits.ADON // bit 0
1225 #define CHS3 ADCON0bits.CHS3 // bit 1
1226 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 2, shadows bit in ADCON0bits
1227 #define GO ADCON0bits.GO // bit 2, shadows bit in ADCON0bits
1228 #define NOT_DONE ADCON0bits.NOT_DONE // bit 2, shadows bit in ADCON0bits
1229 #define GO_DONE ADCON0bits.GO_DONE // bit 2, shadows bit in ADCON0bits
1230 #define CHS0 ADCON0bits.CHS0 // bit 3
1231 #define CHS1 ADCON0bits.CHS1 // bit 4
1232 #define CHS2 ADCON0bits.CHS2 // bit 5
1233 #define ADCS0 ADCON0bits.ADCS0 // bit 6
1234 #define ADCS1 ADCON0bits.ADCS1 // bit 7
1236 #define VCFG0 ADCON1bits.VCFG0 // bit 4
1237 #define VCFG1 ADCON1bits.VCFG1 // bit 5
1238 #define VCFG2 ADCON1bits.VCFG2 // bit 6
1239 #define ADFM ADCON1bits.ADFM // bit 7
1241 #define ANS0 ANSELbits.ANS0 // bit 0
1242 #define ANS1 ANSELbits.ANS1 // bit 1
1243 #define ANS2 ANSELbits.ANS2 // bit 2
1244 #define ANS3 ANSELbits.ANS3 // bit 3
1245 #define ANS4 ANSELbits.ANS4 // bit 4
1246 #define ANS5 ANSELbits.ANS5 // bit 5
1248 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
1249 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
1250 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
1251 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
1252 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
1253 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
1254 #define PWM1M0 CCP1CONbits.PWM1M0 // bit 6
1255 #define PWM1M1 CCP1CONbits.PWM1M1 // bit 7
1257 #define RBIF INTCONbits.RBIF // bit 0
1258 #define INTF INTCONbits.INTF // bit 1
1259 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
1260 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
1261 #define RBIE INTCONbits.RBIE // bit 3
1262 #define INTE INTCONbits.INTE // bit 4
1263 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
1264 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
1265 #define PEIE INTCONbits.PEIE // bit 6
1266 #define GIE INTCONbits.GIE // bit 7
1268 #define IOCB0 IOCBbits.IOCB0 // bit 0
1269 #define IOCB1 IOCBbits.IOCB1 // bit 1
1270 #define IOCB2 IOCBbits.IOCB2 // bit 2
1271 #define IOCB3 IOCBbits.IOCB3 // bit 3
1272 #define IOCB4 IOCBbits.IOCB4 // bit 4
1273 #define IOCB5 IOCBbits.IOCB5 // bit 5
1274 #define IOCB6 IOCBbits.IOCB6 // bit 6
1275 #define IOCB7 IOCBbits.IOCB7 // bit 7
1277 #define LV0 LVDCONbits.LV0 // bit 0
1278 #define LV1 LVDCONbits.LV1 // bit 1
1279 #define LV2 LVDCONbits.LV2 // bit 2
1280 #define LV3 LVDCONbits.LV3 // bit 3
1281 #define LVDEN LVDCONbits.LVDEN // bit 4
1282 #define BGST LVDCONbits.BGST // bit 5
1284 #define PS0 OPTION_REGbits.PS0 // bit 0
1285 #define PS1 OPTION_REGbits.PS1 // bit 1
1286 #define PS2 OPTION_REGbits.PS2 // bit 2
1287 #define PSA OPTION_REGbits.PSA // bit 3
1288 #define T0SE OPTION_REGbits.T0SE // bit 4
1289 #define T0CS OPTION_REGbits.T0CS // bit 5
1290 #define INTEDG OPTION_REGbits.INTEDG // bit 6
1291 #define NOT_RBPU OPTION_REGbits.NOT_RBPU // bit 7
1293 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
1294 #define NOT_BO PCONbits.NOT_BO // bit 0, shadows bit in PCONbits
1295 #define NOT_POR PCONbits.NOT_POR // bit 1
1296 #define OSCF PCONbits.OSCF // bit 3
1298 #define TMR1IE PIE1bits.TMR1IE // bit 0
1299 #define TMR2IE PIE1bits.TMR2IE // bit 1
1300 #define CCP1IE PIE1bits.CCP1IE // bit 2
1301 #define SSPIE PIE1bits.SSPIE // bit 3
1302 #define ADIE PIE1bits.ADIE // bit 6
1304 #define BCLIE PIE2bits.BCLIE // bit 3
1305 #define LVDIE PIE2bits.LVDIE // bit 7
1307 #define TMR1IF PIR1bits.TMR1IF // bit 0
1308 #define TMR2IF PIR1bits.TMR2IF // bit 1
1309 #define CCP1IF PIR1bits.CCP1IF // bit 2
1310 #define SSPIF PIR1bits.SSPIF // bit 3
1311 #define ADIF PIR1bits.ADIF // bit 6
1313 #define BCLIF PIR2bits.BCLIF // bit 3
1314 #define LVDIF PIR2bits.LVDIF // bit 7
1316 #define RD PMCON1bits.RD // bit 0
1318 #define RA0 PORTAbits.RA0 // bit 0
1319 #define RA1 PORTAbits.RA1 // bit 1
1320 #define RA2 PORTAbits.RA2 // bit 2
1321 #define RA3 PORTAbits.RA3 // bit 3
1322 #define RA4 PORTAbits.RA4 // bit 4
1323 #define RA5 PORTAbits.RA5 // bit 5
1324 #define RA6 PORTAbits.RA6 // bit 6
1325 #define RA7 PORTAbits.RA7 // bit 7
1327 #define RB0 PORTBbits.RB0 // bit 0
1328 #define RB1 PORTBbits.RB1 // bit 1
1329 #define RB2 PORTBbits.RB2 // bit 2
1330 #define RB3 PORTBbits.RB3 // bit 3
1331 #define RB4 PORTBbits.RB4 // bit 4
1332 #define RB5 PORTBbits.RB5 // bit 5
1333 #define RB6 PORTBbits.RB6 // bit 6
1334 #define RB7 PORTBbits.RB7 // bit 7
1336 #define VRLOEN REFCONbits.VRLOEN // bit 4
1337 #define VRHOEN REFCONbits.VRHOEN // bit 5
1338 #define VRLEN REFCONbits.VRLEN // bit 6
1339 #define VRHEN REFCONbits.VRHEN // bit 7
1341 #define SSPM0 SSPCONbits.SSPM0 // bit 0
1342 #define SSPM1 SSPCONbits.SSPM1 // bit 1
1343 #define SSPM2 SSPCONbits.SSPM2 // bit 2
1344 #define SSPM3 SSPCONbits.SSPM3 // bit 3
1345 #define CKP SSPCONbits.CKP // bit 4
1346 #define SSPEN SSPCONbits.SSPEN // bit 5
1347 #define SSPOV SSPCONbits.SSPOV // bit 6
1348 #define WCOL SSPCONbits.WCOL // bit 7
1350 #define SEN SSPCON2bits.SEN // bit 0
1351 #define RSEN SSPCON2bits.RSEN // bit 1
1352 #define PEN SSPCON2bits.PEN // bit 2
1353 #define RCEN SSPCON2bits.RCEN // bit 3
1354 #define ACKEN SSPCON2bits.ACKEN // bit 4
1355 #define ACKDT SSPCON2bits.ACKDT // bit 5
1356 #define ACKSTAT SSPCON2bits.ACKSTAT // bit 6
1357 #define GCEN SSPCON2bits.GCEN // bit 7
1359 #define BF SSPSTATbits.BF // bit 0
1360 #define UA SSPSTATbits.UA // bit 1
1361 #define R_NOT_W SSPSTATbits.R_NOT_W // bit 2, shadows bit in SSPSTATbits
1362 #define R SSPSTATbits.R // bit 2, shadows bit in SSPSTATbits
1363 #define I2C_READ SSPSTATbits.I2C_READ // bit 2, shadows bit in SSPSTATbits
1364 #define R_W SSPSTATbits.R_W // bit 2, shadows bit in SSPSTATbits
1365 #define READ_WRITE SSPSTATbits.READ_WRITE // bit 2, shadows bit in SSPSTATbits
1366 #define NOT_W SSPSTATbits.NOT_W // bit 2, shadows bit in SSPSTATbits
1367 #define NOT_WRITE SSPSTATbits.NOT_WRITE // bit 2, shadows bit in SSPSTATbits
1368 #define S SSPSTATbits.S // bit 3, shadows bit in SSPSTATbits
1369 #define I2C_START SSPSTATbits.I2C_START // bit 3, shadows bit in SSPSTATbits
1370 #define P SSPSTATbits.P // bit 4, shadows bit in SSPSTATbits
1371 #define I2C_STOP SSPSTATbits.I2C_STOP // bit 4, shadows bit in SSPSTATbits
1372 #define D_NOT_A SSPSTATbits.D_NOT_A // bit 5, shadows bit in SSPSTATbits
1373 #define D SSPSTATbits.D // bit 5, shadows bit in SSPSTATbits
1374 #define I2C_DATA SSPSTATbits.I2C_DATA // bit 5, shadows bit in SSPSTATbits
1375 #define D_A SSPSTATbits.D_A // bit 5, shadows bit in SSPSTATbits
1376 #define DATA_ADDRESS SSPSTATbits.DATA_ADDRESS // bit 5, shadows bit in SSPSTATbits
1377 #define NOT_A SSPSTATbits.NOT_A // bit 5, shadows bit in SSPSTATbits
1378 #define NOT_ADDRESS SSPSTATbits.NOT_ADDRESS // bit 5, shadows bit in SSPSTATbits
1379 #define CKE SSPSTATbits.CKE // bit 6
1380 #define SMP SSPSTATbits.SMP // bit 7
1382 #define C STATUSbits.C // bit 0
1383 #define DC STATUSbits.DC // bit 1
1384 #define Z STATUSbits.Z // bit 2
1385 #define NOT_PD STATUSbits.NOT_PD // bit 3
1386 #define NOT_TO STATUSbits.NOT_TO // bit 4
1387 #define RP0 STATUSbits.RP0 // bit 5
1388 #define RP1 STATUSbits.RP1 // bit 6
1389 #define IRP STATUSbits.IRP // bit 7
1391 #define TMR1ON T1CONbits.TMR1ON // bit 0
1392 #define TMR1CS T1CONbits.TMR1CS // bit 1
1393 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2, shadows bit in T1CONbits
1394 #define T1INSYNC T1CONbits.T1INSYNC // bit 2, shadows bit in T1CONbits
1395 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
1396 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
1397 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
1399 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
1400 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
1401 #define TMR2ON T2CONbits.TMR2ON // bit 2
1402 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
1403 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
1404 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
1405 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
1407 #define TRISA0 TRISAbits.TRISA0 // bit 0
1408 #define TRISA1 TRISAbits.TRISA1 // bit 1
1409 #define TRISA2 TRISAbits.TRISA2 // bit 2
1410 #define TRISA3 TRISAbits.TRISA3 // bit 3
1411 #define TRISA4 TRISAbits.TRISA4 // bit 4
1412 #define TRISA5 TRISAbits.TRISA5 // bit 5
1413 #define TRISA6 TRISAbits.TRISA6 // bit 6
1414 #define TRISA7 TRISAbits.TRISA7 // bit 7
1416 #define TRISB0 TRISBbits.TRISB0 // bit 0
1417 #define TRISB1 TRISBbits.TRISB1 // bit 1
1418 #define TRISB2 TRISBbits.TRISB2 // bit 2
1419 #define TRISB3 TRISBbits.TRISB3 // bit 3
1420 #define TRISB4 TRISBbits.TRISB4 // bit 4
1421 #define TRISB5 TRISBbits.TRISB5 // bit 5
1422 #define TRISB6 TRISBbits.TRISB6 // bit 6
1423 #define TRISB7 TRISBbits.TRISB7 // bit 7
1425 #define WPUB0 WPUBbits.WPUB0 // bit 0
1426 #define WPUB1 WPUBbits.WPUB1 // bit 1
1427 #define WPUB2 WPUBbits.WPUB2 // bit 2
1428 #define WPUB3 WPUBbits.WPUB3 // bit 3
1429 #define WPUB4 WPUBbits.WPUB4 // bit 4
1430 #define WPUB5 WPUBbits.WPUB5 // bit 5
1431 #define WPUB6 WPUBbits.WPUB6 // bit 6
1432 #define WPUB7 WPUBbits.WPUB7 // bit 7
1434 #endif // #ifndef NO_BIT_DEFINES
1436 #endif // #ifndef __PIC16C771_H__