2 * This declarations of the PIC16LF723A 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:22:58 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 __PIC16LF723A_H__
26 #define __PIC16LF723A_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 PORTC_ADDR 0x0007
44 #define PORTE_ADDR 0x0009
45 #define PCLATH_ADDR 0x000A
46 #define INTCON_ADDR 0x000B
47 #define PIR1_ADDR 0x000C
48 #define PIR2_ADDR 0x000D
49 #define TMR1_ADDR 0x000E
50 #define TMR1L_ADDR 0x000E
51 #define TMR1H_ADDR 0x000F
52 #define T1CON_ADDR 0x0010
53 #define TMR2_ADDR 0x0011
54 #define T2CON_ADDR 0x0012
55 #define SSPBUF_ADDR 0x0013
56 #define SSPCON_ADDR 0x0014
57 #define CCPR1_ADDR 0x0015
58 #define CCPR1L_ADDR 0x0015
59 #define CCPR1H_ADDR 0x0016
60 #define CCP1CON_ADDR 0x0017
61 #define RCSTA_ADDR 0x0018
62 #define TXREG_ADDR 0x0019
63 #define RCREG_ADDR 0x001A
64 #define CCPR2_ADDR 0x001B
65 #define CCPR2L_ADDR 0x001B
66 #define CCPR2H_ADDR 0x001C
67 #define CCP2CON_ADDR 0x001D
68 #define ADRES_ADDR 0x001E
69 #define ADCON0_ADDR 0x001F
70 #define OPTION_REG_ADDR 0x0081
71 #define TRISA_ADDR 0x0085
72 #define TRISB_ADDR 0x0086
73 #define TRISC_ADDR 0x0087
74 #define TRISE_ADDR 0x0089
75 #define PIE1_ADDR 0x008C
76 #define PIE2_ADDR 0x008D
77 #define PCON_ADDR 0x008E
78 #define T1GCON_ADDR 0x008F
79 #define OSCCON_ADDR 0x0090
80 #define OSCTUNE_ADDR 0x0091
81 #define PR2_ADDR 0x0092
82 #define SSPADD_ADDR 0x0093
83 #define SSPMSK_ADDR 0x0093
84 #define SSPSTAT_ADDR 0x0094
85 #define WPU_ADDR 0x0095
86 #define WPUB_ADDR 0x0095
87 #define IOC_ADDR 0x0096
88 #define IOCB_ADDR 0x0096
89 #define TXSTA_ADDR 0x0098
90 #define SPBRG_ADDR 0x0099
91 #define APFCON_ADDR 0x009C
92 #define FVRCON_ADDR 0x009D
93 #define ADCON1_ADDR 0x009F
94 #define CPSCON0_ADDR 0x0108
95 #define CPSCON1_ADDR 0x0109
96 #define PMDATA_ADDR 0x010C
97 #define PMDATL_ADDR 0x010C
98 #define PMADR_ADDR 0x010D
99 #define PMADRL_ADDR 0x010D
100 #define PMDATH_ADDR 0x010E
101 #define PMADRH_ADDR 0x010F
102 #define ANSELA_ADDR 0x0185
103 #define ANSELB_ADDR 0x0186
104 #define PMCON1_ADDR 0x018C
106 #endif // #ifndef NO_ADDR_DEFINES
108 //==============================================================================
110 // Register Definitions
112 //==============================================================================
114 extern __at(0x0000) __sfr INDF
;
115 extern __at(0x0001) __sfr TMR0
;
116 extern __at(0x0002) __sfr PCL
;
118 //==============================================================================
121 extern __at(0x0003) __sfr STATUS
;
145 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
156 //==============================================================================
158 extern __at(0x0004) __sfr FSR
;
160 //==============================================================================
163 extern __at(0x0005) __sfr PORTA
;
177 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
188 //==============================================================================
191 //==============================================================================
194 extern __at(0x0006) __sfr PORTB
;
208 extern __at(0x0006) volatile __PORTBbits_t PORTBbits
;
219 //==============================================================================
222 //==============================================================================
225 extern __at(0x0007) __sfr PORTC
;
239 extern __at(0x0007) volatile __PORTCbits_t PORTCbits
;
250 //==============================================================================
253 //==============================================================================
256 extern __at(0x0009) __sfr PORTE
;
270 extern __at(0x0009) volatile __PORTEbits_t PORTEbits
;
274 //==============================================================================
276 extern __at(0x000A) __sfr PCLATH
;
278 //==============================================================================
281 extern __at(0x000B) __sfr INTCON
;
310 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
325 //==============================================================================
328 //==============================================================================
331 extern __at(0x000C) __sfr PIR1
;
342 unsigned TMR1GIF
: 1;
345 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
354 #define _TMR1GIF 0x80
356 //==============================================================================
359 //==============================================================================
362 extern __at(0x000D) __sfr PIR2
;
376 extern __at(0x000D) volatile __PIR2bits_t PIR2bits
;
380 //==============================================================================
382 extern __at(0x000E) __sfr TMR1
;
383 extern __at(0x000E) __sfr TMR1L
;
384 extern __at(0x000F) __sfr TMR1H
;
386 //==============================================================================
389 extern __at(0x0010) __sfr T1CON
;
398 unsigned T1OSCEN
: 1;
399 unsigned T1CKPS0
: 1;
400 unsigned T1CKPS1
: 1;
401 unsigned TMR1CS0
: 1;
402 unsigned TMR1CS1
: 1;
409 unsigned NOT_T1SYNC
: 1;
421 unsigned T1INSYNC
: 1;
443 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
447 #define _NOT_T1SYNC 0x04
448 #define _T1INSYNC 0x04
449 #define _T1OSCEN 0x08
450 #define _T1CKPS0 0x10
451 #define _T1CKPS1 0x20
452 #define _TMR1CS0 0x40
453 #define _TMR1CS1 0x80
455 //==============================================================================
457 extern __at(0x0011) __sfr TMR2
;
459 //==============================================================================
462 extern __at(0x0012) __sfr T2CON
;
468 unsigned T2CKPS0
: 1;
469 unsigned T2CKPS1
: 1;
471 unsigned TOUTPS0
: 1;
472 unsigned TOUTPS1
: 1;
473 unsigned TOUTPS2
: 1;
474 unsigned TOUTPS3
: 1;
492 extern __at(0x0012) volatile __T2CONbits_t T2CONbits
;
494 #define _T2CKPS0 0x01
495 #define _T2CKPS1 0x02
497 #define _TOUTPS0 0x08
498 #define _TOUTPS1 0x10
499 #define _TOUTPS2 0x20
500 #define _TOUTPS3 0x40
502 //==============================================================================
504 extern __at(0x0013) __sfr SSPBUF
;
506 //==============================================================================
509 extern __at(0x0014) __sfr SSPCON
;
532 extern __at(0x0014) volatile __SSPCONbits_t SSPCONbits
;
543 //==============================================================================
545 extern __at(0x0015) __sfr CCPR1
;
546 extern __at(0x0015) __sfr CCPR1L
;
547 extern __at(0x0016) __sfr CCPR1H
;
549 //==============================================================================
552 extern __at(0x0017) __sfr CCP1CON
;
594 extern __at(0x0017) volatile __CCP1CONbits_t CCP1CONbits
;
605 //==============================================================================
608 //==============================================================================
611 extern __at(0x0018) __sfr RCSTA
;
647 unsigned NOT_RC8
: 1;
664 extern __at(0x0018) volatile __RCSTAbits_t RCSTAbits
;
675 #define _NOT_RC8 0x40
679 //==============================================================================
681 extern __at(0x0019) __sfr TXREG
;
682 extern __at(0x001A) __sfr RCREG
;
683 extern __at(0x001B) __sfr CCPR2
;
684 extern __at(0x001B) __sfr CCPR2L
;
685 extern __at(0x001C) __sfr CCPR2H
;
687 //==============================================================================
690 extern __at(0x001D) __sfr CCP2CON
;
732 extern __at(0x001D) volatile __CCP2CONbits_t CCP2CONbits
;
743 //==============================================================================
745 extern __at(0x001E) __sfr ADRES
;
747 //==============================================================================
750 extern __at(0x001F) __sfr ADCON0
;
757 unsigned GO_NOT_DONE
: 1;
781 unsigned NOT_DONE
: 1;
793 unsigned GO_DONE
: 1;
810 extern __at(0x001F) volatile __ADCON0bits_t ADCON0bits
;
813 #define _GO_NOT_DONE 0x02
815 #define _NOT_DONE 0x02
816 #define _GO_DONE 0x02
822 //==============================================================================
825 //==============================================================================
828 extern __at(0x0081) __sfr OPTION_REG
;
841 unsigned NOT_RBPU
: 1;
849 } __OPTION_REGbits_t
;
851 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
860 #define _NOT_RBPU 0x80
862 //==============================================================================
865 //==============================================================================
868 extern __at(0x0085) __sfr TRISA
;
882 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
893 //==============================================================================
896 //==============================================================================
899 extern __at(0x0086) __sfr TRISB
;
913 extern __at(0x0086) volatile __TRISBbits_t TRISBbits
;
924 //==============================================================================
927 //==============================================================================
930 extern __at(0x0087) __sfr TRISC
;
944 extern __at(0x0087) volatile __TRISCbits_t TRISCbits
;
955 //==============================================================================
958 //==============================================================================
961 extern __at(0x0089) __sfr TRISE
;
975 extern __at(0x0089) volatile __TRISEbits_t TRISEbits
;
979 //==============================================================================
982 //==============================================================================
985 extern __at(0x008C) __sfr PIE1
;
996 unsigned TMR1GIE
: 1;
999 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
1001 #define _TMR1IE 0x01
1002 #define _TMR2IE 0x02
1003 #define _CCP1IE 0x04
1008 #define _TMR1GIE 0x80
1010 //==============================================================================
1013 //==============================================================================
1016 extern __at(0x008D) __sfr PIE2
;
1020 unsigned CCP2IE
: 1;
1030 extern __at(0x008D) volatile __PIE2bits_t PIE2bits
;
1032 #define _CCP2IE 0x01
1034 //==============================================================================
1037 //==============================================================================
1040 extern __at(0x008E) __sfr PCON
;
1046 unsigned NOT_BOR
: 1;
1047 unsigned NOT_POR
: 1;
1058 unsigned NOT_BO
: 1;
1069 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
1071 #define _NOT_BOR 0x01
1072 #define _NOT_BO 0x01
1073 #define _NOT_POR 0x02
1075 //==============================================================================
1078 //==============================================================================
1081 extern __at(0x008F) __sfr T1GCON
;
1087 unsigned T1GSS0
: 1;
1088 unsigned T1GSS1
: 1;
1089 unsigned T1GVAL
: 1;
1090 unsigned T1GGO_NOT_DONE
: 1;
1091 unsigned T1GSPM
: 1;
1093 unsigned T1GPOL
: 1;
1094 unsigned TMR1GE
: 1;
1102 unsigned T1G_NOT_DONE
: 1;
1114 unsigned T1GGO_DONE
: 1;
1140 extern __at(0x008F) volatile __T1GCONbits_t T1GCONbits
;
1142 #define _T1GSS0 0x01
1143 #define _T1GSS1 0x02
1144 #define _T1GVAL 0x04
1145 #define _T1GGO_NOT_DONE 0x08
1146 #define _T1G_NOT_DONE 0x08
1147 #define _T1GGO_DONE 0x08
1149 #define _T1GSPM 0x10
1151 #define _T1GPOL 0x40
1152 #define _TMR1GE 0x80
1154 //==============================================================================
1157 //==============================================================================
1160 extern __at(0x0090) __sfr OSCCON
;
1184 extern __at(0x0090) volatile __OSCCONbits_t OSCCONbits
;
1191 //==============================================================================
1194 //==============================================================================
1197 extern __at(0x0091) __sfr OSCTUNE
;
1220 extern __at(0x0091) volatile __OSCTUNEbits_t OSCTUNEbits
;
1229 //==============================================================================
1231 extern __at(0x0092) __sfr PR2
;
1232 extern __at(0x0093) __sfr SSPADD
;
1233 extern __at(0x0093) __sfr SSPMSK
;
1235 //==============================================================================
1238 extern __at(0x0094) __sfr SSPSTAT
;
1246 unsigned R_NOT_W
: 1;
1249 unsigned D_NOT_A
: 1;
1259 unsigned I2C_START
: 1;
1260 unsigned I2C_STOP
: 1;
1270 unsigned I2C_READ
: 1;
1273 unsigned I2C_DATA
: 1;
1294 unsigned NOT_WRITE
: 1;
1297 unsigned NOT_ADDRESS
: 1;
1318 unsigned READ_WRITE
: 1;
1321 unsigned DATA_ADDRESS
: 1;
1327 extern __at(0x0094) volatile __SSPSTATbits_t SSPSTATbits
;
1331 #define _R_NOT_W 0x04
1333 #define _I2C_READ 0x04
1335 #define _NOT_WRITE 0x04
1337 #define _READ_WRITE 0x04
1339 #define _I2C_START 0x08
1341 #define _I2C_STOP 0x10
1342 #define _D_NOT_A 0x20
1344 #define _I2C_DATA 0x20
1346 #define _NOT_ADDRESS 0x20
1348 #define _DATA_ADDRESS 0x20
1352 //==============================================================================
1355 //==============================================================================
1358 extern __at(0x0095) __sfr WPU
;
1387 extern __at(0x0095) volatile __WPUbits_t WPUbits
;
1406 //==============================================================================
1409 //==============================================================================
1412 extern __at(0x0095) __sfr WPUB
;
1441 extern __at(0x0095) volatile __WPUBbits_t WPUBbits
;
1443 #define _WPUB_WPUB0 0x01
1444 #define _WPUB_WPU0 0x01
1445 #define _WPUB_WPUB1 0x02
1446 #define _WPUB_WPU1 0x02
1447 #define _WPUB_WPUB2 0x04
1448 #define _WPUB_WPU2 0x04
1449 #define _WPUB_WPUB3 0x08
1450 #define _WPUB_WPU3 0x08
1451 #define _WPUB_WPUB4 0x10
1452 #define _WPUB_WPU4 0x10
1453 #define _WPUB_WPUB5 0x20
1454 #define _WPUB_WPU5 0x20
1455 #define _WPUB_WPUB6 0x40
1456 #define _WPUB_WPU6 0x40
1457 #define _WPUB_WPUB7 0x80
1458 #define _WPUB_WPU7 0x80
1460 //==============================================================================
1463 //==============================================================================
1466 extern __at(0x0096) __sfr IOC
;
1495 extern __at(0x0096) volatile __IOCbits_t IOCbits
;
1514 //==============================================================================
1517 //==============================================================================
1520 extern __at(0x0096) __sfr IOCB
;
1549 extern __at(0x0096) volatile __IOCBbits_t IOCBbits
;
1551 #define _IOCB_IOCB0 0x01
1552 #define _IOCB_IOC0 0x01
1553 #define _IOCB_IOCB1 0x02
1554 #define _IOCB_IOC1 0x02
1555 #define _IOCB_IOCB2 0x04
1556 #define _IOCB_IOC2 0x04
1557 #define _IOCB_IOCB3 0x08
1558 #define _IOCB_IOC3 0x08
1559 #define _IOCB_IOCB4 0x10
1560 #define _IOCB_IOC4 0x10
1561 #define _IOCB_IOCB5 0x20
1562 #define _IOCB_IOC5 0x20
1563 #define _IOCB_IOCB6 0x40
1564 #define _IOCB_IOC6 0x40
1565 #define _IOCB_IOCB7 0x80
1566 #define _IOCB_IOC7 0x80
1568 //==============================================================================
1571 //==============================================================================
1574 extern __at(0x0098) __sfr TXSTA
;
1598 unsigned NOT_TX8
: 1;
1615 extern __at(0x0098) volatile __TXSTAbits_t TXSTAbits
;
1624 #define _NOT_TX8 0x40
1628 //==============================================================================
1631 //==============================================================================
1634 extern __at(0x0099) __sfr SPBRG
;
1648 extern __at(0x0099) volatile __SPBRGbits_t SPBRGbits
;
1659 //==============================================================================
1662 //==============================================================================
1665 extern __at(0x009C) __sfr APFCON
;
1669 unsigned CCP2SEL
: 1;
1679 extern __at(0x009C) volatile __APFCONbits_t APFCONbits
;
1681 #define _CCP2SEL 0x01
1684 //==============================================================================
1687 //==============================================================================
1690 extern __at(0x009D) __sfr FVRCON
;
1696 unsigned ADFVR0
: 1;
1697 unsigned ADFVR1
: 1;
1703 unsigned FVRRDY
: 1;
1725 extern __at(0x009D) volatile __FVRCONbits_t FVRCONbits
;
1727 #define _ADFVR0 0x01
1728 #define _ADFVR1 0x02
1730 #define _FVRRDY 0x80
1733 //==============================================================================
1736 //==============================================================================
1739 extern __at(0x009F) __sfr ADCON1
;
1745 unsigned ADREF0
: 1;
1746 unsigned ADREF1
: 1;
1769 extern __at(0x009F) volatile __ADCON1bits_t ADCON1bits
;
1771 #define _ADREF0 0x01
1772 #define _ADREF1 0x02
1777 //==============================================================================
1780 //==============================================================================
1783 extern __at(0x0108) __sfr CPSCON0
;
1790 unsigned CPSOUT
: 1;
1791 unsigned CPSRNG0
: 1;
1792 unsigned CPSRNG1
: 1;
1802 unsigned CPSRNG
: 2;
1807 extern __at(0x0108) volatile __CPSCON0bits_t CPSCON0bits
;
1810 #define _CPSOUT 0x02
1811 #define _CPSRNG0 0x04
1812 #define _CPSRNG1 0x08
1815 //==============================================================================
1818 //==============================================================================
1821 extern __at(0x0109) __sfr CPSCON1
;
1827 unsigned CPSCH0
: 1;
1828 unsigned CPSCH1
: 1;
1829 unsigned CPSCH2
: 1;
1830 unsigned CPSCH3
: 1;
1844 extern __at(0x0109) volatile __CPSCON1bits_t CPSCON1bits
;
1846 #define _CPSCH0 0x01
1847 #define _CPSCH1 0x02
1848 #define _CPSCH2 0x04
1849 #define _CPSCH3 0x08
1851 //==============================================================================
1853 extern __at(0x010C) __sfr PMDATA
;
1854 extern __at(0x010C) __sfr PMDATL
;
1855 extern __at(0x010D) __sfr PMADR
;
1856 extern __at(0x010D) __sfr PMADRL
;
1857 extern __at(0x010E) __sfr PMDATH
;
1858 extern __at(0x010F) __sfr PMADRH
;
1860 //==============================================================================
1863 extern __at(0x0185) __sfr ANSELA
;
1886 extern __at(0x0185) volatile __ANSELAbits_t ANSELAbits
;
1895 //==============================================================================
1898 //==============================================================================
1901 extern __at(0x0186) __sfr ANSELB
;
1924 extern __at(0x0186) volatile __ANSELBbits_t ANSELBbits
;
1933 //==============================================================================
1936 //==============================================================================
1939 extern __at(0x018C) __sfr PMCON1
;
1968 extern __at(0x018C) volatile __PMCON1bits_t PMCON1bits
;
1973 //==============================================================================
1976 //==============================================================================
1978 // Configuration Bits
1980 //==============================================================================
1982 #define _CONFIG1 0x2007
1983 #define _CONFIG2 0x2008
1985 //----------------------------- CONFIG1 Options -------------------------------
1987 #define _FOSC_LP 0x3FF8 // LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1988 #define _LP_OSC 0x3FF8 // LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1989 #define _FOSC_XT 0x3FF9 // XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1990 #define _XT_OSC 0x3FF9 // XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1991 #define _FOSC_HS 0x3FFA // HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1992 #define _HS_OSC 0x3FFA // HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN.
1993 #define _FOSC_EC 0x3FFB // EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN.
1994 #define _EC_OSC 0x3FFB // EC: I/O function on RA6/OSC2/CLKOUT pin, CLKIN on RA7/OSC1/CLKIN.
1995 #define _FOSC_INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
1996 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
1997 #define _INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
1998 #define _FOSC_INTOSCCLK 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
1999 #define _INTRC_OSC_CLKOUT 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
2000 #define _INTOSC 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN.
2001 #define _FOSC_EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2002 #define _EXTRC_OSC_NOCLKOUT 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2003 #define _EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2004 #define _FOSC_EXTRCCLK 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2005 #define _EXTRC_OSC_CLKOUT 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2006 #define _EXTRC 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, RC on RA7/OSC1/CLKIN.
2007 #define _WDTE_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
2008 #define _WDT_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
2009 #define _WDTE_ON 0x3FFF // WDT enabled.
2010 #define _WDT_ON 0x3FFF // WDT enabled.
2011 #define _PWRTE_ON 0x3FEF // PWRT enabled.
2012 #define _PWRT_EN 0x3FEF // PWRT enabled.
2013 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
2014 #define _PWRT_DIS 0x3FFF // PWRT disabled.
2015 #define _MCLRE_OFF 0x3FDF // RE3/MCLR pin function is digital input, MCLR internally tied to VDD.
2016 #define _MCLR_DIS 0x3FDF // RE3/MCLR pin function is digital input, MCLR internally tied to VDD.
2017 #define _MCLRE_ON 0x3FFF // RE3/MCLR pin function is MCLR.
2018 #define _MCLR_EN 0x3FFF // RE3/MCLR pin function is MCLR.
2019 #define _CP_ON 0x3FBF // Program memory code protection is enabled.
2020 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
2021 #define _BOREN_OFF 0x3CFF // BOR disabled.
2022 #define _BOR_OFF 0x3CFF // BOR disabled.
2023 #define _BOREN_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
2024 #define _BOR_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
2025 #define _BOREN_ON 0x3FFF // BOR enabled.
2026 #define _BOR_ON 0x3FFF // BOR enabled.
2027 #define _BORV_25 0x3BFF // Brown-out Reset Voltage (VBOR) set to 2.5 V nominal.
2028 #define _BORV_2_5 0x3BFF // Brown-out Reset Voltage (VBOR) set to 2.5 V nominal.
2029 #define _BORV_19 0x3FFF // Brown-out Reset Voltage (VBOR) set to 1.9 V nominal.
2030 #define _BORV_1_9 0x3FFF // Brown-out Reset Voltage (VBOR) set to 1.9 V nominal.
2031 #define _PLLEN_OFF 0x2FFF // INTOSC Frequency is 500 kHz.
2032 #define _PLL_DIS 0x2FFF // INTOSC Frequency is 500 kHz.
2033 #define _PLLEN_ON 0x3FFF // INTOSC Frequency is 16MHz (32x).
2034 #define _PLL_EN 0x3FFF // INTOSC Frequency is 16MHz (32x).
2035 #define _DEBUG_ON 0x1FFF // In-circuit debugger enabled, RB6/ICSPCLK and RB7/ICSPDAT are dedicated to the debugger.
2036 #define _DEBUG_OFF 0x3FFF // In-circuit debugger disabled, RB6/ICSPCLK and RB7/ICSPDAT are general purpose I/O pins.
2038 //==============================================================================
2040 #define _DEVID1 0x2006
2042 #define _IDLOC0 0x2000
2043 #define _IDLOC1 0x2001
2044 #define _IDLOC2 0x2002
2045 #define _IDLOC3 0x2003
2047 //==============================================================================
2049 #ifndef NO_BIT_DEFINES
2051 #define ADON ADCON0bits.ADON // bit 0
2052 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
2053 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
2054 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
2055 #define GO_DONE ADCON0bits.GO_DONE // bit 1, shadows bit in ADCON0bits
2056 #define CHS0 ADCON0bits.CHS0 // bit 2
2057 #define CHS1 ADCON0bits.CHS1 // bit 3
2058 #define CHS2 ADCON0bits.CHS2 // bit 4
2059 #define CHS3 ADCON0bits.CHS3 // bit 5
2061 #define ADREF0 ADCON1bits.ADREF0 // bit 0
2062 #define ADREF1 ADCON1bits.ADREF1 // bit 1
2063 #define ADCS0 ADCON1bits.ADCS0 // bit 4
2064 #define ADCS1 ADCON1bits.ADCS1 // bit 5
2065 #define ADCS2 ADCON1bits.ADCS2 // bit 6
2067 #define ANSA0 ANSELAbits.ANSA0 // bit 0
2068 #define ANSA1 ANSELAbits.ANSA1 // bit 1
2069 #define ANSA2 ANSELAbits.ANSA2 // bit 2
2070 #define ANSA3 ANSELAbits.ANSA3 // bit 3
2071 #define ANSA4 ANSELAbits.ANSA4 // bit 4
2072 #define ANSA5 ANSELAbits.ANSA5 // bit 5
2074 #define ANSB0 ANSELBbits.ANSB0 // bit 0
2075 #define ANSB1 ANSELBbits.ANSB1 // bit 1
2076 #define ANSB2 ANSELBbits.ANSB2 // bit 2
2077 #define ANSB3 ANSELBbits.ANSB3 // bit 3
2078 #define ANSB4 ANSELBbits.ANSB4 // bit 4
2079 #define ANSB5 ANSELBbits.ANSB5 // bit 5
2081 #define CCP2SEL APFCONbits.CCP2SEL // bit 0
2082 #define SSSEL APFCONbits.SSSEL // bit 1
2084 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
2085 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
2086 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
2087 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
2088 #define DC1B0 CCP1CONbits.DC1B0 // bit 4, shadows bit in CCP1CONbits
2089 #define CCP1Y CCP1CONbits.CCP1Y // bit 4, shadows bit in CCP1CONbits
2090 #define DC1B1 CCP1CONbits.DC1B1 // bit 5, shadows bit in CCP1CONbits
2091 #define CCP1X CCP1CONbits.CCP1X // bit 5, shadows bit in CCP1CONbits
2093 #define CCP2M0 CCP2CONbits.CCP2M0 // bit 0
2094 #define CCP2M1 CCP2CONbits.CCP2M1 // bit 1
2095 #define CCP2M2 CCP2CONbits.CCP2M2 // bit 2
2096 #define CCP2M3 CCP2CONbits.CCP2M3 // bit 3
2097 #define DC2B0 CCP2CONbits.DC2B0 // bit 4, shadows bit in CCP2CONbits
2098 #define CCP2Y CCP2CONbits.CCP2Y // bit 4, shadows bit in CCP2CONbits
2099 #define DC2B1 CCP2CONbits.DC2B1 // bit 5, shadows bit in CCP2CONbits
2100 #define CCP2X CCP2CONbits.CCP2X // bit 5, shadows bit in CCP2CONbits
2102 #define T0XCS CPSCON0bits.T0XCS // bit 0
2103 #define CPSOUT CPSCON0bits.CPSOUT // bit 1
2104 #define CPSRNG0 CPSCON0bits.CPSRNG0 // bit 2
2105 #define CPSRNG1 CPSCON0bits.CPSRNG1 // bit 3
2106 #define CPSON CPSCON0bits.CPSON // bit 7
2108 #define CPSCH0 CPSCON1bits.CPSCH0 // bit 0
2109 #define CPSCH1 CPSCON1bits.CPSCH1 // bit 1
2110 #define CPSCH2 CPSCON1bits.CPSCH2 // bit 2
2111 #define CPSCH3 CPSCON1bits.CPSCH3 // bit 3
2113 #define ADFVR0 FVRCONbits.ADFVR0 // bit 0
2114 #define ADFVR1 FVRCONbits.ADFVR1 // bit 1
2115 #define FVREN FVRCONbits.FVREN // bit 6
2116 #define FVRRDY FVRCONbits.FVRRDY // bit 7, shadows bit in FVRCONbits
2117 #define FVRST FVRCONbits.FVRST // bit 7, shadows bit in FVRCONbits
2119 #define RBIF INTCONbits.RBIF // bit 0, shadows bit in INTCONbits
2120 #define IOCIF INTCONbits.IOCIF // bit 0, shadows bit in INTCONbits
2121 #define INTF INTCONbits.INTF // bit 1
2122 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
2123 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
2124 #define RBIE INTCONbits.RBIE // bit 3, shadows bit in INTCONbits
2125 #define IOCIE INTCONbits.IOCIE // bit 3, shadows bit in INTCONbits
2126 #define INTE INTCONbits.INTE // bit 4
2127 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
2128 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
2129 #define PEIE INTCONbits.PEIE // bit 6
2130 #define GIE INTCONbits.GIE // bit 7
2132 #define IOCB0 IOCbits.IOCB0 // bit 0, shadows bit in IOCbits
2133 #define IOC0 IOCbits.IOC0 // bit 0, shadows bit in IOCbits
2134 #define IOCB1 IOCbits.IOCB1 // bit 1, shadows bit in IOCbits
2135 #define IOC1 IOCbits.IOC1 // bit 1, shadows bit in IOCbits
2136 #define IOCB2 IOCbits.IOCB2 // bit 2, shadows bit in IOCbits
2137 #define IOC2 IOCbits.IOC2 // bit 2, shadows bit in IOCbits
2138 #define IOCB3 IOCbits.IOCB3 // bit 3, shadows bit in IOCbits
2139 #define IOC3 IOCbits.IOC3 // bit 3, shadows bit in IOCbits
2140 #define IOCB4 IOCbits.IOCB4 // bit 4, shadows bit in IOCbits
2141 #define IOC4 IOCbits.IOC4 // bit 4, shadows bit in IOCbits
2142 #define IOCB5 IOCbits.IOCB5 // bit 5, shadows bit in IOCbits
2143 #define IOC5 IOCbits.IOC5 // bit 5, shadows bit in IOCbits
2144 #define IOCB6 IOCbits.IOCB6 // bit 6, shadows bit in IOCbits
2145 #define IOC6 IOCbits.IOC6 // bit 6, shadows bit in IOCbits
2146 #define IOCB7 IOCbits.IOCB7 // bit 7, shadows bit in IOCbits
2147 #define IOC7 IOCbits.IOC7 // bit 7, shadows bit in IOCbits
2149 #define PS0 OPTION_REGbits.PS0 // bit 0
2150 #define PS1 OPTION_REGbits.PS1 // bit 1
2151 #define PS2 OPTION_REGbits.PS2 // bit 2
2152 #define PSA OPTION_REGbits.PSA // bit 3
2153 #define T0SE OPTION_REGbits.T0SE // bit 4
2154 #define T0CS OPTION_REGbits.T0CS // bit 5
2155 #define INTEDG OPTION_REGbits.INTEDG // bit 6
2156 #define NOT_RBPU OPTION_REGbits.NOT_RBPU // bit 7
2158 #define ICSS OSCCONbits.ICSS // bit 2
2159 #define ICSL OSCCONbits.ICSL // bit 3
2160 #define IRCF0 OSCCONbits.IRCF0 // bit 4
2161 #define IRCF1 OSCCONbits.IRCF1 // bit 5
2163 #define TUN0 OSCTUNEbits.TUN0 // bit 0
2164 #define TUN1 OSCTUNEbits.TUN1 // bit 1
2165 #define TUN2 OSCTUNEbits.TUN2 // bit 2
2166 #define TUN3 OSCTUNEbits.TUN3 // bit 3
2167 #define TUN4 OSCTUNEbits.TUN4 // bit 4
2168 #define TUN5 OSCTUNEbits.TUN5 // bit 5
2170 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
2171 #define NOT_BO PCONbits.NOT_BO // bit 0, shadows bit in PCONbits
2172 #define NOT_POR PCONbits.NOT_POR // bit 1
2174 #define TMR1IE PIE1bits.TMR1IE // bit 0
2175 #define TMR2IE PIE1bits.TMR2IE // bit 1
2176 #define CCP1IE PIE1bits.CCP1IE // bit 2
2177 #define SSPIE PIE1bits.SSPIE // bit 3
2178 #define TXIE PIE1bits.TXIE // bit 4
2179 #define RCIE PIE1bits.RCIE // bit 5
2180 #define ADIE PIE1bits.ADIE // bit 6
2181 #define TMR1GIE PIE1bits.TMR1GIE // bit 7
2183 #define CCP2IE PIE2bits.CCP2IE // bit 0
2185 #define TMR1IF PIR1bits.TMR1IF // bit 0
2186 #define TMR2IF PIR1bits.TMR2IF // bit 1
2187 #define CCP1IF PIR1bits.CCP1IF // bit 2
2188 #define SSPIF PIR1bits.SSPIF // bit 3
2189 #define TXIF PIR1bits.TXIF // bit 4
2190 #define RCIF PIR1bits.RCIF // bit 5
2191 #define ADIF PIR1bits.ADIF // bit 6
2192 #define TMR1GIF PIR1bits.TMR1GIF // bit 7
2194 #define CCP2IF PIR2bits.CCP2IF // bit 0
2196 #define RD PMCON1bits.RD // bit 0, shadows bit in PMCON1bits
2197 #define PMRD PMCON1bits.PMRD // bit 0, shadows bit in PMCON1bits
2199 #define RA0 PORTAbits.RA0 // bit 0
2200 #define RA1 PORTAbits.RA1 // bit 1
2201 #define RA2 PORTAbits.RA2 // bit 2
2202 #define RA3 PORTAbits.RA3 // bit 3
2203 #define RA4 PORTAbits.RA4 // bit 4
2204 #define RA5 PORTAbits.RA5 // bit 5
2205 #define RA6 PORTAbits.RA6 // bit 6
2206 #define RA7 PORTAbits.RA7 // bit 7
2208 #define RB0 PORTBbits.RB0 // bit 0
2209 #define RB1 PORTBbits.RB1 // bit 1
2210 #define RB2 PORTBbits.RB2 // bit 2
2211 #define RB3 PORTBbits.RB3 // bit 3
2212 #define RB4 PORTBbits.RB4 // bit 4
2213 #define RB5 PORTBbits.RB5 // bit 5
2214 #define RB6 PORTBbits.RB6 // bit 6
2215 #define RB7 PORTBbits.RB7 // bit 7
2217 #define RC0 PORTCbits.RC0 // bit 0
2218 #define RC1 PORTCbits.RC1 // bit 1
2219 #define RC2 PORTCbits.RC2 // bit 2
2220 #define RC3 PORTCbits.RC3 // bit 3
2221 #define RC4 PORTCbits.RC4 // bit 4
2222 #define RC5 PORTCbits.RC5 // bit 5
2223 #define RC6 PORTCbits.RC6 // bit 6
2224 #define RC7 PORTCbits.RC7 // bit 7
2226 #define RE3 PORTEbits.RE3 // bit 3
2228 #define RX9D RCSTAbits.RX9D // bit 0, shadows bit in RCSTAbits
2229 #define RCD8 RCSTAbits.RCD8 // bit 0, shadows bit in RCSTAbits
2230 #define OERR RCSTAbits.OERR // bit 1
2231 #define FERR RCSTAbits.FERR // bit 2
2232 #define ADDEN RCSTAbits.ADDEN // bit 3
2233 #define CREN RCSTAbits.CREN // bit 4
2234 #define SREN RCSTAbits.SREN // bit 5
2235 #define RX9 RCSTAbits.RX9 // bit 6, shadows bit in RCSTAbits
2236 #define RC9 RCSTAbits.RC9 // bit 6, shadows bit in RCSTAbits
2237 #define NOT_RC8 RCSTAbits.NOT_RC8 // bit 6, shadows bit in RCSTAbits
2238 #define RC8_9 RCSTAbits.RC8_9 // bit 6, shadows bit in RCSTAbits
2239 #define SPEN RCSTAbits.SPEN // bit 7
2241 #define BRG0 SPBRGbits.BRG0 // bit 0
2242 #define BRG1 SPBRGbits.BRG1 // bit 1
2243 #define BRG2 SPBRGbits.BRG2 // bit 2
2244 #define BRG3 SPBRGbits.BRG3 // bit 3
2245 #define BRG4 SPBRGbits.BRG4 // bit 4
2246 #define BRG5 SPBRGbits.BRG5 // bit 5
2247 #define BRG6 SPBRGbits.BRG6 // bit 6
2248 #define BRG7 SPBRGbits.BRG7 // bit 7
2250 #define SSPM0 SSPCONbits.SSPM0 // bit 0
2251 #define SSPM1 SSPCONbits.SSPM1 // bit 1
2252 #define SSPM2 SSPCONbits.SSPM2 // bit 2
2253 #define SSPM3 SSPCONbits.SSPM3 // bit 3
2254 #define CKP SSPCONbits.CKP // bit 4
2255 #define SSPEN SSPCONbits.SSPEN // bit 5
2256 #define SSPOV SSPCONbits.SSPOV // bit 6
2257 #define WCOL SSPCONbits.WCOL // bit 7
2259 #define BF SSPSTATbits.BF // bit 0
2260 #define UA SSPSTATbits.UA // bit 1
2261 #define R_NOT_W SSPSTATbits.R_NOT_W // bit 2, shadows bit in SSPSTATbits
2262 #define R SSPSTATbits.R // bit 2, shadows bit in SSPSTATbits
2263 #define I2C_READ SSPSTATbits.I2C_READ // bit 2, shadows bit in SSPSTATbits
2264 #define NOT_W SSPSTATbits.NOT_W // bit 2, shadows bit in SSPSTATbits
2265 #define NOT_WRITE SSPSTATbits.NOT_WRITE // bit 2, shadows bit in SSPSTATbits
2266 #define R_W SSPSTATbits.R_W // bit 2, shadows bit in SSPSTATbits
2267 #define READ_WRITE SSPSTATbits.READ_WRITE // bit 2, shadows bit in SSPSTATbits
2268 #define S SSPSTATbits.S // bit 3, shadows bit in SSPSTATbits
2269 #define I2C_START SSPSTATbits.I2C_START // bit 3, shadows bit in SSPSTATbits
2270 #define P SSPSTATbits.P // bit 4, shadows bit in SSPSTATbits
2271 #define I2C_STOP SSPSTATbits.I2C_STOP // bit 4, shadows bit in SSPSTATbits
2272 #define D_NOT_A SSPSTATbits.D_NOT_A // bit 5, shadows bit in SSPSTATbits
2273 #define D SSPSTATbits.D // bit 5, shadows bit in SSPSTATbits
2274 #define I2C_DATA SSPSTATbits.I2C_DATA // bit 5, shadows bit in SSPSTATbits
2275 #define NOT_A SSPSTATbits.NOT_A // bit 5, shadows bit in SSPSTATbits
2276 #define NOT_ADDRESS SSPSTATbits.NOT_ADDRESS // bit 5, shadows bit in SSPSTATbits
2277 #define D_A SSPSTATbits.D_A // bit 5, shadows bit in SSPSTATbits
2278 #define DATA_ADDRESS SSPSTATbits.DATA_ADDRESS // bit 5, shadows bit in SSPSTATbits
2279 #define CKE SSPSTATbits.CKE // bit 6
2280 #define SMP SSPSTATbits.SMP // bit 7
2282 #define C STATUSbits.C // bit 0
2283 #define DC STATUSbits.DC // bit 1
2284 #define Z STATUSbits.Z // bit 2
2285 #define NOT_PD STATUSbits.NOT_PD // bit 3
2286 #define NOT_TO STATUSbits.NOT_TO // bit 4
2287 #define RP0 STATUSbits.RP0 // bit 5
2288 #define RP1 STATUSbits.RP1 // bit 6
2289 #define IRP STATUSbits.IRP // bit 7
2291 #define TMR1ON T1CONbits.TMR1ON // bit 0
2292 #define T1SYNC T1CONbits.T1SYNC // bit 2, shadows bit in T1CONbits
2293 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2, shadows bit in T1CONbits
2294 #define T1INSYNC T1CONbits.T1INSYNC // bit 2, shadows bit in T1CONbits
2295 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
2296 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
2297 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
2298 #define TMR1CS0 T1CONbits.TMR1CS0 // bit 6
2299 #define TMR1CS1 T1CONbits.TMR1CS1 // bit 7
2301 #define T1GSS0 T1GCONbits.T1GSS0 // bit 0
2302 #define T1GSS1 T1GCONbits.T1GSS1 // bit 1
2303 #define T1GVAL T1GCONbits.T1GVAL // bit 2
2304 #define T1GGO_NOT_DONE T1GCONbits.T1GGO_NOT_DONE // bit 3, shadows bit in T1GCONbits
2305 #define T1G_NOT_DONE T1GCONbits.T1G_NOT_DONE // bit 3, shadows bit in T1GCONbits
2306 #define T1GGO_DONE T1GCONbits.T1GGO_DONE // bit 3, shadows bit in T1GCONbits
2307 #define T1GGO T1GCONbits.T1GGO // bit 3, shadows bit in T1GCONbits
2308 #define T1GSPM T1GCONbits.T1GSPM // bit 4
2309 #define T1GTM T1GCONbits.T1GTM // bit 5
2310 #define T1GPOL T1GCONbits.T1GPOL // bit 6
2311 #define TMR1GE T1GCONbits.TMR1GE // bit 7
2313 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
2314 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
2315 #define TMR2ON T2CONbits.TMR2ON // bit 2
2316 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
2317 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
2318 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
2319 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
2321 #define TRISA0 TRISAbits.TRISA0 // bit 0
2322 #define TRISA1 TRISAbits.TRISA1 // bit 1
2323 #define TRISA2 TRISAbits.TRISA2 // bit 2
2324 #define TRISA3 TRISAbits.TRISA3 // bit 3
2325 #define TRISA4 TRISAbits.TRISA4 // bit 4
2326 #define TRISA5 TRISAbits.TRISA5 // bit 5
2327 #define TRISA6 TRISAbits.TRISA6 // bit 6
2328 #define TRISA7 TRISAbits.TRISA7 // bit 7
2330 #define TRISB0 TRISBbits.TRISB0 // bit 0
2331 #define TRISB1 TRISBbits.TRISB1 // bit 1
2332 #define TRISB2 TRISBbits.TRISB2 // bit 2
2333 #define TRISB3 TRISBbits.TRISB3 // bit 3
2334 #define TRISB4 TRISBbits.TRISB4 // bit 4
2335 #define TRISB5 TRISBbits.TRISB5 // bit 5
2336 #define TRISB6 TRISBbits.TRISB6 // bit 6
2337 #define TRISB7 TRISBbits.TRISB7 // bit 7
2339 #define TRISC0 TRISCbits.TRISC0 // bit 0
2340 #define TRISC1 TRISCbits.TRISC1 // bit 1
2341 #define TRISC2 TRISCbits.TRISC2 // bit 2
2342 #define TRISC3 TRISCbits.TRISC3 // bit 3
2343 #define TRISC4 TRISCbits.TRISC4 // bit 4
2344 #define TRISC5 TRISCbits.TRISC5 // bit 5
2345 #define TRISC6 TRISCbits.TRISC6 // bit 6
2346 #define TRISC7 TRISCbits.TRISC7 // bit 7
2348 #define TRISE3 TRISEbits.TRISE3 // bit 3
2350 #define TX9D TXSTAbits.TX9D // bit 0, shadows bit in TXSTAbits
2351 #define TXD8 TXSTAbits.TXD8 // bit 0, shadows bit in TXSTAbits
2352 #define TRMT TXSTAbits.TRMT // bit 1
2353 #define BRGH TXSTAbits.BRGH // bit 2
2354 #define SYNC TXSTAbits.SYNC // bit 4
2355 #define TXEN TXSTAbits.TXEN // bit 5
2356 #define TX9 TXSTAbits.TX9 // bit 6, shadows bit in TXSTAbits
2357 #define NOT_TX8 TXSTAbits.NOT_TX8 // bit 6, shadows bit in TXSTAbits
2358 #define TX8_9 TXSTAbits.TX8_9 // bit 6, shadows bit in TXSTAbits
2359 #define CSRC TXSTAbits.CSRC // bit 7
2361 #define WPUB0 WPUbits.WPUB0 // bit 0, shadows bit in WPUbits
2362 #define WPU0 WPUbits.WPU0 // bit 0, shadows bit in WPUbits
2363 #define WPUB1 WPUbits.WPUB1 // bit 1, shadows bit in WPUbits
2364 #define WPU1 WPUbits.WPU1 // bit 1, shadows bit in WPUbits
2365 #define WPUB2 WPUbits.WPUB2 // bit 2, shadows bit in WPUbits
2366 #define WPU2 WPUbits.WPU2 // bit 2, shadows bit in WPUbits
2367 #define WPUB3 WPUbits.WPUB3 // bit 3, shadows bit in WPUbits
2368 #define WPU3 WPUbits.WPU3 // bit 3, shadows bit in WPUbits
2369 #define WPUB4 WPUbits.WPUB4 // bit 4, shadows bit in WPUbits
2370 #define WPU4 WPUbits.WPU4 // bit 4, shadows bit in WPUbits
2371 #define WPUB5 WPUbits.WPUB5 // bit 5, shadows bit in WPUbits
2372 #define WPU5 WPUbits.WPU5 // bit 5, shadows bit in WPUbits
2373 #define WPUB6 WPUbits.WPUB6 // bit 6, shadows bit in WPUbits
2374 #define WPU6 WPUbits.WPU6 // bit 6, shadows bit in WPUbits
2375 #define WPUB7 WPUbits.WPUB7 // bit 7, shadows bit in WPUbits
2376 #define WPU7 WPUbits.WPU7 // bit 7, shadows bit in WPUbits
2378 #endif // #ifndef NO_BIT_DEFINES
2380 #endif // #ifndef __PIC16LF723A_H__