2 * This declarations of the PIC16F913 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:01 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 __PIC16F913_H__
26 #define __PIC16F913_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 ADRESH_ADDR 0x001E
65 #define ADCON0_ADDR 0x001F
66 #define OPTION_REG_ADDR 0x0081
67 #define TRISA_ADDR 0x0085
68 #define TRISB_ADDR 0x0086
69 #define TRISC_ADDR 0x0087
70 #define TRISE_ADDR 0x0089
71 #define PIE1_ADDR 0x008C
72 #define PIE2_ADDR 0x008D
73 #define PCON_ADDR 0x008E
74 #define OSCCON_ADDR 0x008F
75 #define OSCTUNE_ADDR 0x0090
76 #define ANSEL_ADDR 0x0091
77 #define PR2_ADDR 0x0092
78 #define SSPADD_ADDR 0x0093
79 #define SSPSTAT_ADDR 0x0094
80 #define WPU_ADDR 0x0095
81 #define WPUB_ADDR 0x0095
82 #define IOC_ADDR 0x0096
83 #define IOCB_ADDR 0x0096
84 #define CMCON1_ADDR 0x0097
85 #define TXSTA_ADDR 0x0098
86 #define SPBRG_ADDR 0x0099
87 #define CMCON0_ADDR 0x009C
88 #define VRCON_ADDR 0x009D
89 #define ADRESL_ADDR 0x009E
90 #define ADCON1_ADDR 0x009F
91 #define WDTCON_ADDR 0x0105
92 #define LCDCON_ADDR 0x0107
93 #define LCDPS_ADDR 0x0108
94 #define LVDCON_ADDR 0x0109
95 #define EEDATA_ADDR 0x010C
96 #define EEDATL_ADDR 0x010C
97 #define EEADR_ADDR 0x010D
98 #define EEADRL_ADDR 0x010D
99 #define EEDATH_ADDR 0x010E
100 #define EEADRH_ADDR 0x010F
101 #define LCDDATA0_ADDR 0x0110
102 #define LCDDATA1_ADDR 0x0111
103 #define LCDDATA3_ADDR 0x0113
104 #define LCDDATA4_ADDR 0x0114
105 #define LCDDATA6_ADDR 0x0116
106 #define LCDDATA7_ADDR 0x0117
107 #define LCDDATA9_ADDR 0x0119
108 #define LCDDATA10_ADDR 0x011A
109 #define LCDSE0_ADDR 0x011C
110 #define LCDSE1_ADDR 0x011D
111 #define EECON1_ADDR 0x018C
112 #define EECON2_ADDR 0x018D
114 #endif // #ifndef NO_ADDR_DEFINES
116 //==============================================================================
118 // Register Definitions
120 //==============================================================================
122 extern __at(0x0000) __sfr INDF
;
123 extern __at(0x0001) __sfr TMR0
;
124 extern __at(0x0002) __sfr PCL
;
126 //==============================================================================
129 extern __at(0x0003) __sfr STATUS
;
153 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
164 //==============================================================================
166 extern __at(0x0004) __sfr FSR
;
168 //==============================================================================
171 extern __at(0x0005) __sfr PORTA
;
185 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
196 //==============================================================================
199 //==============================================================================
202 extern __at(0x0006) __sfr PORTB
;
216 extern __at(0x0006) volatile __PORTBbits_t PORTBbits
;
227 //==============================================================================
230 //==============================================================================
233 extern __at(0x0007) __sfr PORTC
;
247 extern __at(0x0007) volatile __PORTCbits_t PORTCbits
;
258 //==============================================================================
261 //==============================================================================
264 extern __at(0x0009) __sfr PORTE
;
278 extern __at(0x0009) volatile __PORTEbits_t PORTEbits
;
282 //==============================================================================
284 extern __at(0x000A) __sfr PCLATH
;
286 //==============================================================================
289 extern __at(0x000B) __sfr INTCON
;
318 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
331 //==============================================================================
334 //==============================================================================
337 extern __at(0x000C) __sfr PIR1
;
351 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
362 //==============================================================================
365 //==============================================================================
368 extern __at(0x000D) __sfr PIR2
;
382 extern __at(0x000D) volatile __PIR2bits_t PIR2bits
;
390 //==============================================================================
392 extern __at(0x000E) __sfr TMR1
;
393 extern __at(0x000E) __sfr TMR1L
;
394 extern __at(0x000F) __sfr TMR1H
;
396 //==============================================================================
399 extern __at(0x0010) __sfr T1CON
;
407 unsigned NOT_T1SYNC
: 1;
408 unsigned T1OSCEN
: 1;
409 unsigned T1CKPS0
: 1;
410 unsigned T1CKPS1
: 1;
431 unsigned T1INSYNC
: 1;
447 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
451 #define _NOT_T1SYNC 0x04
453 #define _T1INSYNC 0x04
454 #define _T1OSCEN 0x08
455 #define _T1CKPS0 0x10
456 #define _T1CKPS1 0x20
461 //==============================================================================
463 extern __at(0x0011) __sfr TMR2
;
465 //==============================================================================
468 extern __at(0x0012) __sfr T2CON
;
474 unsigned T2CKPS0
: 1;
475 unsigned T2CKPS1
: 1;
477 unsigned TOUTPS0
: 1;
478 unsigned TOUTPS1
: 1;
479 unsigned TOUTPS2
: 1;
480 unsigned TOUTPS3
: 1;
498 extern __at(0x0012) volatile __T2CONbits_t T2CONbits
;
500 #define _T2CKPS0 0x01
501 #define _T2CKPS1 0x02
503 #define _TOUTPS0 0x08
504 #define _TOUTPS1 0x10
505 #define _TOUTPS2 0x20
506 #define _TOUTPS3 0x40
508 //==============================================================================
510 extern __at(0x0013) __sfr SSPBUF
;
512 //==============================================================================
515 extern __at(0x0014) __sfr SSPCON
;
538 extern __at(0x0014) volatile __SSPCONbits_t SSPCONbits
;
549 //==============================================================================
551 extern __at(0x0015) __sfr CCPR1
;
552 extern __at(0x0015) __sfr CCPR1L
;
553 extern __at(0x0016) __sfr CCPR1H
;
555 //==============================================================================
558 extern __at(0x0017) __sfr CCP1CON
;
581 extern __at(0x0017) volatile __CCP1CONbits_t CCP1CONbits
;
590 //==============================================================================
593 //==============================================================================
596 extern __at(0x0018) __sfr RCSTA
;
632 unsigned NOT_RC8
: 1;
649 extern __at(0x0018) volatile __RCSTAbits_t RCSTAbits
;
660 #define _NOT_RC8 0x40
664 //==============================================================================
666 extern __at(0x0019) __sfr TXREG
;
667 extern __at(0x001A) __sfr RCREG
;
668 extern __at(0x001E) __sfr ADRESH
;
670 //==============================================================================
673 extern __at(0x001F) __sfr ADCON0
;
680 unsigned GO_NOT_DONE
: 1;
692 unsigned NOT_DONE
: 1;
704 unsigned GO_DONE
: 1;
740 extern __at(0x001F) volatile __ADCON0bits_t ADCON0bits
;
743 #define _GO_NOT_DONE 0x02
744 #define _NOT_DONE 0x02
745 #define _GO_DONE 0x02
754 //==============================================================================
757 //==============================================================================
760 extern __at(0x0081) __sfr OPTION_REG
;
773 unsigned NOT_RBPU
: 1;
781 } __OPTION_REGbits_t
;
783 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
792 #define _NOT_RBPU 0x80
794 //==============================================================================
797 //==============================================================================
800 extern __at(0x0085) __sfr TRISA
;
814 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
825 //==============================================================================
828 //==============================================================================
831 extern __at(0x0086) __sfr TRISB
;
845 extern __at(0x0086) volatile __TRISBbits_t TRISBbits
;
856 //==============================================================================
859 //==============================================================================
862 extern __at(0x0087) __sfr TRISC
;
876 extern __at(0x0087) volatile __TRISCbits_t TRISCbits
;
887 //==============================================================================
890 //==============================================================================
893 extern __at(0x0089) __sfr TRISE
;
907 extern __at(0x0089) volatile __TRISEbits_t TRISEbits
;
911 //==============================================================================
914 //==============================================================================
917 extern __at(0x008C) __sfr PIE1
;
931 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
942 //==============================================================================
945 //==============================================================================
948 extern __at(0x008D) __sfr PIE2
;
962 extern __at(0x008D) volatile __PIE2bits_t PIE2bits
;
970 //==============================================================================
973 //==============================================================================
976 extern __at(0x008E) __sfr PCON
;
982 unsigned NOT_BOR
: 1;
983 unsigned NOT_POR
: 1;
1005 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
1007 #define _NOT_BOR 0x01
1008 #define _NOT_BO 0x01
1009 #define _NOT_POR 0x02
1010 #define _SBOREN 0x10
1012 //==============================================================================
1015 //==============================================================================
1018 extern __at(0x008F) __sfr OSCCON
;
1042 extern __at(0x008F) volatile __OSCCONbits_t OSCCONbits
;
1052 //==============================================================================
1055 //==============================================================================
1058 extern __at(0x0090) __sfr OSCTUNE
;
1081 extern __at(0x0090) volatile __OSCTUNEbits_t OSCTUNEbits
;
1089 //==============================================================================
1092 //==============================================================================
1095 extern __at(0x0091) __sfr ANSEL
;
1136 extern __at(0x0091) volatile __ANSELbits_t ANSELbits
;
1149 //==============================================================================
1151 extern __at(0x0092) __sfr PR2
;
1152 extern __at(0x0093) __sfr SSPADD
;
1154 //==============================================================================
1157 extern __at(0x0094) __sfr SSPSTAT
;
1165 unsigned R_NOT_W
: 1;
1168 unsigned D_NOT_A
: 1;
1178 unsigned I2C_START
: 1;
1179 unsigned I2C_STOP
: 1;
1189 unsigned I2C_READ
: 1;
1192 unsigned I2C_DATA
: 1;
1213 unsigned NOT_WRITE
: 1;
1216 unsigned NOT_ADDRESS
: 1;
1237 unsigned READ_WRITE
: 1;
1240 unsigned DATA_ADDRESS
: 1;
1246 extern __at(0x0094) volatile __SSPSTATbits_t SSPSTATbits
;
1250 #define _R_NOT_W 0x04
1252 #define _I2C_READ 0x04
1254 #define _NOT_WRITE 0x04
1256 #define _READ_WRITE 0x04
1258 #define _I2C_START 0x08
1260 #define _I2C_STOP 0x10
1261 #define _D_NOT_A 0x20
1263 #define _I2C_DATA 0x20
1265 #define _NOT_ADDRESS 0x20
1267 #define _DATA_ADDRESS 0x20
1271 //==============================================================================
1274 //==============================================================================
1277 extern __at(0x0095) __sfr WPU
;
1306 extern __at(0x0095) volatile __WPUbits_t WPUbits
;
1325 //==============================================================================
1328 //==============================================================================
1331 extern __at(0x0095) __sfr WPUB
;
1360 extern __at(0x0095) volatile __WPUBbits_t WPUBbits
;
1362 #define _WPUB_WPUB0 0x01
1363 #define _WPUB_WPU0 0x01
1364 #define _WPUB_WPUB1 0x02
1365 #define _WPUB_WPU1 0x02
1366 #define _WPUB_WPUB2 0x04
1367 #define _WPUB_WPU2 0x04
1368 #define _WPUB_WPUB3 0x08
1369 #define _WPUB_WPU3 0x08
1370 #define _WPUB_WPUB4 0x10
1371 #define _WPUB_WPU4 0x10
1372 #define _WPUB_WPUB5 0x20
1373 #define _WPUB_WPU5 0x20
1374 #define _WPUB_WPUB6 0x40
1375 #define _WPUB_WPU6 0x40
1376 #define _WPUB_WPUB7 0x80
1377 #define _WPUB_WPU7 0x80
1379 //==============================================================================
1382 //==============================================================================
1385 extern __at(0x0096) __sfr IOC
;
1414 extern __at(0x0096) volatile __IOCbits_t IOCbits
;
1425 //==============================================================================
1428 //==============================================================================
1431 extern __at(0x0096) __sfr IOCB
;
1460 extern __at(0x0096) volatile __IOCBbits_t IOCBbits
;
1462 #define _IOCB_IOCB4 0x10
1463 #define _IOCB_IOC4 0x10
1464 #define _IOCB_IOCB5 0x20
1465 #define _IOCB_IOC5 0x20
1466 #define _IOCB_IOCB6 0x40
1467 #define _IOCB_IOC6 0x40
1468 #define _IOCB_IOCB7 0x80
1469 #define _IOCB_IOC7 0x80
1471 //==============================================================================
1474 //==============================================================================
1477 extern __at(0x0097) __sfr CMCON1
;
1481 unsigned C2SYNC
: 1;
1491 extern __at(0x0097) volatile __CMCON1bits_t CMCON1bits
;
1493 #define _C2SYNC 0x01
1496 //==============================================================================
1499 //==============================================================================
1502 extern __at(0x0098) __sfr TXSTA
;
1526 unsigned NOT_TX8
: 1;
1543 extern __at(0x0098) volatile __TXSTAbits_t TXSTAbits
;
1552 #define _NOT_TX8 0x40
1556 //==============================================================================
1558 extern __at(0x0099) __sfr SPBRG
;
1560 //==============================================================================
1563 extern __at(0x009C) __sfr CMCON0
;
1586 extern __at(0x009C) volatile __CMCON0bits_t CMCON0bits
;
1597 //==============================================================================
1600 //==============================================================================
1603 extern __at(0x009D) __sfr VRCON
;
1626 extern __at(0x009D) volatile __VRCONbits_t VRCONbits
;
1635 //==============================================================================
1637 extern __at(0x009E) __sfr ADRESL
;
1639 //==============================================================================
1642 extern __at(0x009F) __sfr ADCON1
;
1666 extern __at(0x009F) volatile __ADCON1bits_t ADCON1bits
;
1672 //==============================================================================
1675 //==============================================================================
1678 extern __at(0x0105) __sfr WDTCON
;
1684 unsigned SWDTEN
: 1;
1685 unsigned WDTPS0
: 1;
1686 unsigned WDTPS1
: 1;
1687 unsigned WDTPS2
: 1;
1688 unsigned WDTPS3
: 1;
1714 extern __at(0x0105) volatile __WDTCONbits_t WDTCONbits
;
1716 #define _SWDTEN 0x01
1718 #define _WDTPS0 0x02
1719 #define _WDTPS1 0x04
1720 #define _WDTPS2 0x08
1721 #define _WDTPS3 0x10
1723 //==============================================================================
1726 //==============================================================================
1729 extern __at(0x0107) __sfr LCDCON
;
1739 unsigned VLCDEN
: 1;
1759 extern __at(0x0107) volatile __LCDCONbits_t LCDCONbits
;
1765 #define _VLCDEN 0x10
1770 //==============================================================================
1773 //==============================================================================
1776 extern __at(0x0108) __sfr LCDPS
;
1788 unsigned BIASMD
: 1;
1799 extern __at(0x0108) volatile __LCDPSbits_t LCDPSbits
;
1807 #define _BIASMD 0x40
1810 //==============================================================================
1813 //==============================================================================
1816 extern __at(0x0109) __sfr LVDCON
;
1839 extern __at(0x0109) volatile __LVDCONbits_t LVDCONbits
;
1847 //==============================================================================
1850 //==============================================================================
1853 extern __at(0x010C) __sfr EEDATA
;
1857 unsigned EEDATL0
: 1;
1858 unsigned EEDATL1
: 1;
1859 unsigned EEDATL2
: 1;
1860 unsigned EEDATL3
: 1;
1861 unsigned EEDATL4
: 1;
1862 unsigned EEDATL5
: 1;
1863 unsigned EEDATL6
: 1;
1864 unsigned EEDATL7
: 1;
1867 extern __at(0x010C) volatile __EEDATAbits_t EEDATAbits
;
1869 #define _EEDATL0 0x01
1870 #define _EEDATL1 0x02
1871 #define _EEDATL2 0x04
1872 #define _EEDATL3 0x08
1873 #define _EEDATL4 0x10
1874 #define _EEDATL5 0x20
1875 #define _EEDATL6 0x40
1876 #define _EEDATL7 0x80
1878 //==============================================================================
1881 //==============================================================================
1884 extern __at(0x010C) __sfr EEDATL
;
1888 unsigned EEDATL0
: 1;
1889 unsigned EEDATL1
: 1;
1890 unsigned EEDATL2
: 1;
1891 unsigned EEDATL3
: 1;
1892 unsigned EEDATL4
: 1;
1893 unsigned EEDATL5
: 1;
1894 unsigned EEDATL6
: 1;
1895 unsigned EEDATL7
: 1;
1898 extern __at(0x010C) volatile __EEDATLbits_t EEDATLbits
;
1900 #define _EEDATL_EEDATL0 0x01
1901 #define _EEDATL_EEDATL1 0x02
1902 #define _EEDATL_EEDATL2 0x04
1903 #define _EEDATL_EEDATL3 0x08
1904 #define _EEDATL_EEDATL4 0x10
1905 #define _EEDATL_EEDATL5 0x20
1906 #define _EEDATL_EEDATL6 0x40
1907 #define _EEDATL_EEDATL7 0x80
1909 //==============================================================================
1912 //==============================================================================
1915 extern __at(0x010D) __sfr EEADR
;
1919 unsigned EEADRL0
: 1;
1920 unsigned EEADRL1
: 1;
1921 unsigned EEADRL2
: 1;
1922 unsigned EEADRL3
: 1;
1923 unsigned EEADRL4
: 1;
1924 unsigned EEADRL5
: 1;
1925 unsigned EEADRL6
: 1;
1926 unsigned EEADRL7
: 1;
1929 extern __at(0x010D) volatile __EEADRbits_t EEADRbits
;
1931 #define _EEADRL0 0x01
1932 #define _EEADRL1 0x02
1933 #define _EEADRL2 0x04
1934 #define _EEADRL3 0x08
1935 #define _EEADRL4 0x10
1936 #define _EEADRL5 0x20
1937 #define _EEADRL6 0x40
1938 #define _EEADRL7 0x80
1940 //==============================================================================
1943 //==============================================================================
1946 extern __at(0x010D) __sfr EEADRL
;
1950 unsigned EEADRL0
: 1;
1951 unsigned EEADRL1
: 1;
1952 unsigned EEADRL2
: 1;
1953 unsigned EEADRL3
: 1;
1954 unsigned EEADRL4
: 1;
1955 unsigned EEADRL5
: 1;
1956 unsigned EEADRL6
: 1;
1957 unsigned EEADRL7
: 1;
1960 extern __at(0x010D) volatile __EEADRLbits_t EEADRLbits
;
1962 #define _EEADRL_EEADRL0 0x01
1963 #define _EEADRL_EEADRL1 0x02
1964 #define _EEADRL_EEADRL2 0x04
1965 #define _EEADRL_EEADRL3 0x08
1966 #define _EEADRL_EEADRL4 0x10
1967 #define _EEADRL_EEADRL5 0x20
1968 #define _EEADRL_EEADRL6 0x40
1969 #define _EEADRL_EEADRL7 0x80
1971 //==============================================================================
1974 //==============================================================================
1977 extern __at(0x010E) __sfr EEDATH
;
1983 unsigned EEDATH0
: 1;
1984 unsigned EEDATH1
: 1;
1985 unsigned EEDATH2
: 1;
1986 unsigned EEDATH3
: 1;
1987 unsigned EEDATH4
: 1;
1988 unsigned EEDATH5
: 1;
1995 unsigned EEDATH
: 6;
2000 extern __at(0x010E) volatile __EEDATHbits_t EEDATHbits
;
2002 #define _EEDATH0 0x01
2003 #define _EEDATH1 0x02
2004 #define _EEDATH2 0x04
2005 #define _EEDATH3 0x08
2006 #define _EEDATH4 0x10
2007 #define _EEDATH5 0x20
2009 //==============================================================================
2012 //==============================================================================
2015 extern __at(0x010F) __sfr EEADRH
;
2021 unsigned EEADRH0
: 1;
2022 unsigned EEADRH1
: 1;
2023 unsigned EEADRH2
: 1;
2024 unsigned EEADRH3
: 1;
2025 unsigned EEADRH4
: 1;
2033 unsigned EEADRH
: 5;
2038 extern __at(0x010F) volatile __EEADRHbits_t EEADRHbits
;
2040 #define _EEADRH0 0x01
2041 #define _EEADRH1 0x02
2042 #define _EEADRH2 0x04
2043 #define _EEADRH3 0x08
2044 #define _EEADRH4 0x10
2046 //==============================================================================
2049 //==============================================================================
2052 extern __at(0x0110) __sfr LCDDATA0
;
2070 unsigned SEG0COM0
: 1;
2071 unsigned SEG1COM0
: 1;
2072 unsigned SEG2COM0
: 1;
2073 unsigned SEG3COM0
: 1;
2074 unsigned SEG4COM0
: 1;
2075 unsigned SEG5COM0
: 1;
2076 unsigned SEG6COM0
: 1;
2077 unsigned SEG7COM0
: 1;
2093 extern __at(0x0110) volatile __LCDDATA0bits_t LCDDATA0bits
;
2096 #define _SEG0COM0 0x01
2099 #define _SEG1COM0 0x02
2102 #define _SEG2COM0 0x04
2105 #define _SEG3COM0 0x08
2108 #define _SEG4COM0 0x10
2111 #define _SEG5COM0 0x20
2114 #define _SEG6COM0 0x40
2117 #define _SEG7COM0 0x80
2120 //==============================================================================
2123 //==============================================================================
2126 extern __at(0x0111) __sfr LCDDATA1
;
2144 unsigned SEG8COM0
: 1;
2145 unsigned SEG9COM0
: 1;
2146 unsigned SEG10COM0
: 1;
2147 unsigned SEG11COM0
: 1;
2148 unsigned SEG12COM0
: 1;
2149 unsigned SEG13COM0
: 1;
2150 unsigned SEG14COM0
: 1;
2151 unsigned SEG15COM0
: 1;
2167 extern __at(0x0111) volatile __LCDDATA1bits_t LCDDATA1bits
;
2170 #define _SEG8COM0 0x01
2173 #define _SEG9COM0 0x02
2176 #define _SEG10COM0 0x04
2179 #define _SEG11COM0 0x08
2182 #define _SEG12COM0 0x10
2185 #define _SEG13COM0 0x20
2188 #define _SEG14COM0 0x40
2191 #define _SEG15COM0 0x80
2194 //==============================================================================
2197 //==============================================================================
2200 extern __at(0x0113) __sfr LCDDATA3
;
2218 unsigned SEG0COM1
: 1;
2219 unsigned SEG1COM1
: 1;
2220 unsigned SEG2COM1
: 1;
2221 unsigned SEG3COM1
: 1;
2222 unsigned SEG4COM1
: 1;
2223 unsigned SEG5COM1
: 1;
2224 unsigned SEG6COM1
: 1;
2225 unsigned SEG7COM1
: 1;
2241 extern __at(0x0113) volatile __LCDDATA3bits_t LCDDATA3bits
;
2243 #define _LCDDATA3_SEG0 0x01
2244 #define _LCDDATA3_SEG0COM1 0x01
2245 #define _LCDDATA3_S0C1 0x01
2246 #define _LCDDATA3_SEG1 0x02
2247 #define _LCDDATA3_SEG1COM1 0x02
2248 #define _LCDDATA3_S1C1 0x02
2249 #define _LCDDATA3_SEG2 0x04
2250 #define _LCDDATA3_SEG2COM1 0x04
2251 #define _LCDDATA3_S2C1 0x04
2252 #define _LCDDATA3_SEG3 0x08
2253 #define _LCDDATA3_SEG3COM1 0x08
2254 #define _LCDDATA3_S3C1 0x08
2255 #define _LCDDATA3_SEG4 0x10
2256 #define _LCDDATA3_SEG4COM1 0x10
2257 #define _LCDDATA3_S4C1 0x10
2258 #define _LCDDATA3_SEG5 0x20
2259 #define _LCDDATA3_SEG5COM1 0x20
2260 #define _LCDDATA3_S5C1 0x20
2261 #define _LCDDATA3_SEG6 0x40
2262 #define _LCDDATA3_SEG6COM1 0x40
2263 #define _LCDDATA3_S6C1 0x40
2264 #define _LCDDATA3_SEG7 0x80
2265 #define _LCDDATA3_SEG7COM1 0x80
2266 #define _LCDDATA3_S7C1 0x80
2268 //==============================================================================
2271 //==============================================================================
2274 extern __at(0x0114) __sfr LCDDATA4
;
2292 unsigned SEG8COM1
: 1;
2293 unsigned SEG9COM1
: 1;
2294 unsigned SEG10COM1
: 1;
2295 unsigned SEG11COM1
: 1;
2296 unsigned SEG12COM1
: 1;
2297 unsigned SEG13COM1
: 1;
2298 unsigned SEG14COM1
: 1;
2299 unsigned SEG15COM1
: 1;
2315 extern __at(0x0114) volatile __LCDDATA4bits_t LCDDATA4bits
;
2317 #define _LCDDATA4_SEG8 0x01
2318 #define _LCDDATA4_SEG8COM1 0x01
2319 #define _LCDDATA4_S8C1 0x01
2320 #define _LCDDATA4_SEG9 0x02
2321 #define _LCDDATA4_SEG9COM1 0x02
2322 #define _LCDDATA4_S9C1 0x02
2323 #define _LCDDATA4_SEG10 0x04
2324 #define _LCDDATA4_SEG10COM1 0x04
2325 #define _LCDDATA4_S10C1 0x04
2326 #define _LCDDATA4_SEG11 0x08
2327 #define _LCDDATA4_SEG11COM1 0x08
2328 #define _LCDDATA4_S11C1 0x08
2329 #define _LCDDATA4_SEG12 0x10
2330 #define _LCDDATA4_SEG12COM1 0x10
2331 #define _LCDDATA4_S12C1 0x10
2332 #define _LCDDATA4_SEG13 0x20
2333 #define _LCDDATA4_SEG13COM1 0x20
2334 #define _LCDDATA4_S13C1 0x20
2335 #define _LCDDATA4_SEG14 0x40
2336 #define _LCDDATA4_SEG14COM1 0x40
2337 #define _LCDDATA4_S14C1 0x40
2338 #define _LCDDATA4_SEG15 0x80
2339 #define _LCDDATA4_SEG15COM1 0x80
2340 #define _LCDDATA4_S15C1 0x80
2342 //==============================================================================
2345 //==============================================================================
2348 extern __at(0x0116) __sfr LCDDATA6
;
2366 unsigned SEG0COM2
: 1;
2367 unsigned SEG1COM2
: 1;
2368 unsigned SEG2COM2
: 1;
2369 unsigned SEG3COM2
: 1;
2370 unsigned SEG4COM2
: 1;
2371 unsigned SEG5COM2
: 1;
2372 unsigned SEG6COM2
: 1;
2373 unsigned SEG7COM2
: 1;
2389 extern __at(0x0116) volatile __LCDDATA6bits_t LCDDATA6bits
;
2391 #define _LCDDATA6_SEG0 0x01
2392 #define _LCDDATA6_SEG0COM2 0x01
2393 #define _LCDDATA6_S0C2 0x01
2394 #define _LCDDATA6_SEG1 0x02
2395 #define _LCDDATA6_SEG1COM2 0x02
2396 #define _LCDDATA6_S1C2 0x02
2397 #define _LCDDATA6_SEG2 0x04
2398 #define _LCDDATA6_SEG2COM2 0x04
2399 #define _LCDDATA6_S2C2 0x04
2400 #define _LCDDATA6_SEG3 0x08
2401 #define _LCDDATA6_SEG3COM2 0x08
2402 #define _LCDDATA6_S3C2 0x08
2403 #define _LCDDATA6_SEG4 0x10
2404 #define _LCDDATA6_SEG4COM2 0x10
2405 #define _LCDDATA6_S4C2 0x10
2406 #define _LCDDATA6_SEG5 0x20
2407 #define _LCDDATA6_SEG5COM2 0x20
2408 #define _LCDDATA6_S5C2 0x20
2409 #define _LCDDATA6_SEG6 0x40
2410 #define _LCDDATA6_SEG6COM2 0x40
2411 #define _LCDDATA6_S6C2 0x40
2412 #define _LCDDATA6_SEG7 0x80
2413 #define _LCDDATA6_SEG7COM2 0x80
2414 #define _LCDDATA6_S7C2 0x80
2416 //==============================================================================
2419 //==============================================================================
2422 extern __at(0x0117) __sfr LCDDATA7
;
2440 unsigned SEG8COM2
: 1;
2441 unsigned SEG9COM2
: 1;
2442 unsigned SEG10COM2
: 1;
2443 unsigned SEG11COM2
: 1;
2444 unsigned SEG12COM2
: 1;
2445 unsigned SEG13COM2
: 1;
2446 unsigned SEG14COM2
: 1;
2447 unsigned SEG15COM2
: 1;
2463 extern __at(0x0117) volatile __LCDDATA7bits_t LCDDATA7bits
;
2465 #define _LCDDATA7_SEG8 0x01
2466 #define _LCDDATA7_SEG8COM2 0x01
2467 #define _LCDDATA7_S8C2 0x01
2468 #define _LCDDATA7_SEG9 0x02
2469 #define _LCDDATA7_SEG9COM2 0x02
2470 #define _LCDDATA7_S9C2 0x02
2471 #define _LCDDATA7_SEG10 0x04
2472 #define _LCDDATA7_SEG10COM2 0x04
2473 #define _LCDDATA7_S10C2 0x04
2474 #define _LCDDATA7_SEG11 0x08
2475 #define _LCDDATA7_SEG11COM2 0x08
2476 #define _LCDDATA7_S11C2 0x08
2477 #define _LCDDATA7_SEG12 0x10
2478 #define _LCDDATA7_SEG12COM2 0x10
2479 #define _LCDDATA7_S12C2 0x10
2480 #define _LCDDATA7_SEG13 0x20
2481 #define _LCDDATA7_SEG13COM2 0x20
2482 #define _LCDDATA7_S13C2 0x20
2483 #define _LCDDATA7_SEG14 0x40
2484 #define _LCDDATA7_SEG14COM2 0x40
2485 #define _LCDDATA7_S14C2 0x40
2486 #define _LCDDATA7_SEG15 0x80
2487 #define _LCDDATA7_SEG15COM2 0x80
2488 #define _LCDDATA7_S15C2 0x80
2490 //==============================================================================
2493 //==============================================================================
2496 extern __at(0x0119) __sfr LCDDATA9
;
2514 unsigned SEG0COM3
: 1;
2515 unsigned SEG1COM3
: 1;
2516 unsigned SEG2COM3
: 1;
2517 unsigned SEG3COM3
: 1;
2518 unsigned SEG4COM3
: 1;
2519 unsigned SEG5COM3
: 1;
2520 unsigned SEG6COM3
: 1;
2521 unsigned SEG7COM3
: 1;
2537 extern __at(0x0119) volatile __LCDDATA9bits_t LCDDATA9bits
;
2539 #define _LCDDATA9_SEG0 0x01
2540 #define _LCDDATA9_SEG0COM3 0x01
2541 #define _LCDDATA9_S0C3 0x01
2542 #define _LCDDATA9_SEG1 0x02
2543 #define _LCDDATA9_SEG1COM3 0x02
2544 #define _LCDDATA9_S1C3 0x02
2545 #define _LCDDATA9_SEG2 0x04
2546 #define _LCDDATA9_SEG2COM3 0x04
2547 #define _LCDDATA9_S2C3 0x04
2548 #define _LCDDATA9_SEG3 0x08
2549 #define _LCDDATA9_SEG3COM3 0x08
2550 #define _LCDDATA9_S3C3 0x08
2551 #define _LCDDATA9_SEG4 0x10
2552 #define _LCDDATA9_SEG4COM3 0x10
2553 #define _LCDDATA9_S4C3 0x10
2554 #define _LCDDATA9_SEG5 0x20
2555 #define _LCDDATA9_SEG5COM3 0x20
2556 #define _LCDDATA9_S5C3 0x20
2557 #define _LCDDATA9_SEG6 0x40
2558 #define _LCDDATA9_SEG6COM3 0x40
2559 #define _LCDDATA9_S6C3 0x40
2560 #define _LCDDATA9_SEG7 0x80
2561 #define _LCDDATA9_SEG7COM3 0x80
2562 #define _LCDDATA9_S7C3 0x80
2564 //==============================================================================
2567 //==============================================================================
2570 extern __at(0x011A) __sfr LCDDATA10
;
2588 unsigned SEG8COM3
: 1;
2589 unsigned SEG9COM3
: 1;
2590 unsigned SEG10COM3
: 1;
2591 unsigned SEG11COM3
: 1;
2592 unsigned SEG12COM3
: 1;
2593 unsigned SEG13COM3
: 1;
2594 unsigned SEG14COM3
: 1;
2595 unsigned SEG15COM3
: 1;
2609 } __LCDDATA10bits_t
;
2611 extern __at(0x011A) volatile __LCDDATA10bits_t LCDDATA10bits
;
2613 #define _LCDDATA10_SEG8 0x01
2614 #define _LCDDATA10_SEG8COM3 0x01
2615 #define _LCDDATA10_S8C3 0x01
2616 #define _LCDDATA10_SEG9 0x02
2617 #define _LCDDATA10_SEG9COM3 0x02
2618 #define _LCDDATA10_S9C3 0x02
2619 #define _LCDDATA10_SEG10 0x04
2620 #define _LCDDATA10_SEG10COM3 0x04
2621 #define _LCDDATA10_S10C3 0x04
2622 #define _LCDDATA10_SEG11 0x08
2623 #define _LCDDATA10_SEG11COM3 0x08
2624 #define _LCDDATA10_S11C3 0x08
2625 #define _LCDDATA10_SEG12 0x10
2626 #define _LCDDATA10_SEG12COM3 0x10
2627 #define _LCDDATA10_S12C3 0x10
2628 #define _LCDDATA10_SEG13 0x20
2629 #define _LCDDATA10_SEG13COM3 0x20
2630 #define _LCDDATA10_S13C3 0x20
2631 #define _LCDDATA10_SEG14 0x40
2632 #define _LCDDATA10_SEG14COM3 0x40
2633 #define _LCDDATA10_S14C3 0x40
2634 #define _LCDDATA10_SEG15 0x80
2635 #define _LCDDATA10_SEG15COM3 0x80
2636 #define _LCDDATA10_S15C3 0x80
2638 //==============================================================================
2641 //==============================================================================
2644 extern __at(0x011C) __sfr LCDSE0
;
2674 unsigned SEGEN0
: 1;
2675 unsigned SEGEN1
: 1;
2676 unsigned SEGEN2
: 1;
2677 unsigned SEGEN3
: 1;
2678 unsigned SEGEN4
: 1;
2679 unsigned SEGEN5
: 1;
2680 unsigned SEGEN6
: 1;
2681 unsigned SEGEN7
: 1;
2685 extern __at(0x011C) volatile __LCDSE0bits_t LCDSE0bits
;
2687 #define _LCDSE0_SEG0 0x01
2688 #define _LCDSE0_SE0 0x01
2689 #define _LCDSE0_SEGEN0 0x01
2690 #define _LCDSE0_SEG1 0x02
2691 #define _LCDSE0_SE1 0x02
2692 #define _LCDSE0_SEGEN1 0x02
2693 #define _LCDSE0_SEG2 0x04
2694 #define _LCDSE0_SE2 0x04
2695 #define _LCDSE0_SEGEN2 0x04
2696 #define _LCDSE0_SEG3 0x08
2697 #define _LCDSE0_SE3 0x08
2698 #define _LCDSE0_SEGEN3 0x08
2699 #define _LCDSE0_SEG4 0x10
2700 #define _LCDSE0_SE4 0x10
2701 #define _LCDSE0_SEGEN4 0x10
2702 #define _LCDSE0_SEG5 0x20
2703 #define _LCDSE0_SE5 0x20
2704 #define _LCDSE0_SEGEN5 0x20
2705 #define _LCDSE0_SEG6 0x40
2706 #define _LCDSE0_SE6 0x40
2707 #define _LCDSE0_SEGEN6 0x40
2708 #define _LCDSE0_SEG7 0x80
2709 #define _LCDSE0_SE7 0x80
2710 #define _LCDSE0_SEGEN7 0x80
2712 //==============================================================================
2715 //==============================================================================
2718 extern __at(0x011D) __sfr LCDSE1
;
2748 unsigned SEGEN8
: 1;
2749 unsigned SEGEN9
: 1;
2750 unsigned SEGEN10
: 1;
2751 unsigned SEGEN11
: 1;
2752 unsigned SEGEN12
: 1;
2753 unsigned SEGEN13
: 1;
2754 unsigned SEGEN14
: 1;
2755 unsigned SEGEN15
: 1;
2759 extern __at(0x011D) volatile __LCDSE1bits_t LCDSE1bits
;
2761 #define _LCDSE1_SEG8 0x01
2762 #define _LCDSE1_SE8 0x01
2763 #define _LCDSE1_SEGEN8 0x01
2764 #define _LCDSE1_SEG9 0x02
2765 #define _LCDSE1_SE9 0x02
2766 #define _LCDSE1_SEGEN9 0x02
2767 #define _LCDSE1_SEG10 0x04
2768 #define _LCDSE1_SE10 0x04
2769 #define _LCDSE1_SEGEN10 0x04
2770 #define _LCDSE1_SEG11 0x08
2771 #define _LCDSE1_SE11 0x08
2772 #define _LCDSE1_SEGEN11 0x08
2773 #define _LCDSE1_SEG12 0x10
2774 #define _LCDSE1_SE12 0x10
2775 #define _LCDSE1_SEGEN12 0x10
2776 #define _LCDSE1_SEG13 0x20
2777 #define _LCDSE1_SE13 0x20
2778 #define _LCDSE1_SEGEN13 0x20
2779 #define _LCDSE1_SEG14 0x40
2780 #define _LCDSE1_SE14 0x40
2781 #define _LCDSE1_SEGEN14 0x40
2782 #define _LCDSE1_SEG15 0x80
2783 #define _LCDSE1_SE15 0x80
2784 #define _LCDSE1_SEGEN15 0x80
2786 //==============================================================================
2789 //==============================================================================
2792 extern __at(0x018C) __sfr EECON1
;
2821 extern __at(0x018C) volatile __EECON1bits_t EECON1bits
;
2831 //==============================================================================
2833 extern __at(0x018D) __sfr EECON2
;
2835 //==============================================================================
2837 // Configuration Bits
2839 //==============================================================================
2841 #define _CONFIG 0x2007
2843 //----------------------------- CONFIG Options -------------------------------
2845 #define _FOSC_LP 0x3FF8 // LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2846 #define _LP_OSC 0x3FF8 // LP oscillator: Low-power crystal on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2847 #define _FOSC_XT 0x3FF9 // XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2848 #define _XT_OSC 0x3FF9 // XT oscillator: Crystal/resonator on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2849 #define _FOSC_HS 0x3FFA // HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2850 #define _HS_OSC 0x3FFA // HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT/T1OSO and RA7/OSC1/CLKIN/T1OSI.
2851 #define _FOSC_EC 0x3FFB // EC: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, CLKIN on RA7/OSC1/CLKIN/T1OSI.
2852 #define _EC_OSC 0x3FFB // EC: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, CLKIN on RA7/OSC1/CLKIN/T1OSI.
2853 #define _FOSC_INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2854 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2855 #define _INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2856 #define _FOSC_INTOSCCLK 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2857 #define _INTRC_OSC_CLKOUT 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2858 #define _INTOSC 0x3FFD // INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, I/O function on RA7/OSC1/CLKIN/T1OSI.
2859 #define _FOSC_EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2860 #define _EXTRC_OSC_NOCLKOUT 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2861 #define _EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2862 #define _FOSC_EXTRCCLK 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2863 #define _EXTRC_OSC_CLKOUT 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2864 #define _EXTRC 0x3FFF // RC oscillator: CLKOUT function on RA6/OSC2/CLKOUT/T1OSO pin, RC on RA7/OSC1/CLKIN/T1OSI.
2865 #define _WDTE_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
2866 #define _WDT_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
2867 #define _WDTE_ON 0x3FFF // WDT enabled.
2868 #define _WDT_ON 0x3FFF // WDT enabled.
2869 #define _PWRTE_ON 0x3FEF // PWRT enabled.
2870 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
2871 #define _MCLRE_OFF 0x3FDF // RE3/MCLR pin function is digital input, MCLR internally tied to VDD.
2872 #define _MCLRE_ON 0x3FFF // RE3/MCLR pin function is MCLR.
2873 #define _CP_ON 0x3FBF // Program memory code protection is enabled.
2874 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
2875 #define _CPD_ON 0x3F7F // Data memory code protection is enabled.
2876 #define _CPD_OFF 0x3FFF // Data memory code protection is disabled.
2877 #define _BOREN_OFF 0x3CFF // BOR disabled.
2878 #define _BOD_OFF 0x3CFF // BOR disabled.
2879 #define _BOREN_SBODEN 0x3DFF // BOR controlled by SBOREN bit of the PCON register.
2880 #define _BOD_SBODEN 0x3DFF // BOR controlled by SBOREN bit of the PCON register.
2881 #define _BOREN_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
2882 #define _BOD_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
2883 #define _BOREN_ON 0x3FFF // BOR enabled.
2884 #define _BOD_ON 0x3FFF // BOR enabled.
2885 #define _IESO_OFF 0x3BFF // Internal/External Switchover mode is disabled.
2886 #define _IESO_ON 0x3FFF // Internal/External Switchover mode is enabled.
2887 #define _FCMEN_OFF 0x37FF // Fail-Safe Clock Monitor is disabled.
2888 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor is enabled.
2889 #define _DEBUG_ON 0x2FFF // In-Circuit Debugger enabled, RB6/ICSPCLK and RB7/ICSPDAT are dedicated to the debugger.
2890 #define _DEBUG_OFF 0x3FFF // In-Circuit Debugger disabled, RB6/ISCPCLK and RB7/ICSPDAT are general purpose I/O pins.
2892 //==============================================================================
2894 #define _DEVID1 0x2006
2896 #define _IDLOC0 0x2000
2897 #define _IDLOC1 0x2001
2898 #define _IDLOC2 0x2002
2899 #define _IDLOC3 0x2003
2901 //==============================================================================
2903 #ifndef NO_BIT_DEFINES
2905 #define ADON ADCON0bits.ADON // bit 0
2906 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
2907 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
2908 #define GO_DONE ADCON0bits.GO_DONE // bit 1, shadows bit in ADCON0bits
2909 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
2910 #define CHS0 ADCON0bits.CHS0 // bit 2
2911 #define CHS1 ADCON0bits.CHS1 // bit 3
2912 #define CHS2 ADCON0bits.CHS2 // bit 4
2913 #define VCFG0 ADCON0bits.VCFG0 // bit 5
2914 #define VCFG1 ADCON0bits.VCFG1 // bit 6
2915 #define ADFM ADCON0bits.ADFM // bit 7
2917 #define ADCS0 ADCON1bits.ADCS0 // bit 4
2918 #define ADCS1 ADCON1bits.ADCS1 // bit 5
2919 #define ADCS2 ADCON1bits.ADCS2 // bit 6
2921 #define ANS0 ANSELbits.ANS0 // bit 0, shadows bit in ANSELbits
2922 #define AN0 ANSELbits.AN0 // bit 0, shadows bit in ANSELbits
2923 #define ANS1 ANSELbits.ANS1 // bit 1, shadows bit in ANSELbits
2924 #define AN1 ANSELbits.AN1 // bit 1, shadows bit in ANSELbits
2925 #define ANS2 ANSELbits.ANS2 // bit 2, shadows bit in ANSELbits
2926 #define AN2 ANSELbits.AN2 // bit 2, shadows bit in ANSELbits
2927 #define ANS3 ANSELbits.ANS3 // bit 3, shadows bit in ANSELbits
2928 #define AN3 ANSELbits.AN3 // bit 3, shadows bit in ANSELbits
2929 #define ANS4 ANSELbits.ANS4 // bit 4, shadows bit in ANSELbits
2930 #define AN4 ANSELbits.AN4 // bit 4, shadows bit in ANSELbits
2932 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
2933 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
2934 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
2935 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
2936 #define CCP1Y CCP1CONbits.CCP1Y // bit 4
2937 #define CCP1X CCP1CONbits.CCP1X // bit 5
2939 #define CM0 CMCON0bits.CM0 // bit 0
2940 #define CM1 CMCON0bits.CM1 // bit 1
2941 #define CM2 CMCON0bits.CM2 // bit 2
2942 #define CIS CMCON0bits.CIS // bit 3
2943 #define C1INV CMCON0bits.C1INV // bit 4
2944 #define C2INV CMCON0bits.C2INV // bit 5
2945 #define C1OUT CMCON0bits.C1OUT // bit 6
2946 #define C2OUT CMCON0bits.C2OUT // bit 7
2948 #define C2SYNC CMCON1bits.C2SYNC // bit 0
2949 #define T1GSS CMCON1bits.T1GSS // bit 1
2951 #define EEADRL0 EEADRbits.EEADRL0 // bit 0
2952 #define EEADRL1 EEADRbits.EEADRL1 // bit 1
2953 #define EEADRL2 EEADRbits.EEADRL2 // bit 2
2954 #define EEADRL3 EEADRbits.EEADRL3 // bit 3
2955 #define EEADRL4 EEADRbits.EEADRL4 // bit 4
2956 #define EEADRL5 EEADRbits.EEADRL5 // bit 5
2957 #define EEADRL6 EEADRbits.EEADRL6 // bit 6
2958 #define EEADRL7 EEADRbits.EEADRL7 // bit 7
2960 #define EEADRH0 EEADRHbits.EEADRH0 // bit 0
2961 #define EEADRH1 EEADRHbits.EEADRH1 // bit 1
2962 #define EEADRH2 EEADRHbits.EEADRH2 // bit 2
2963 #define EEADRH3 EEADRHbits.EEADRH3 // bit 3
2964 #define EEADRH4 EEADRHbits.EEADRH4 // bit 4
2966 #define RD EECON1bits.RD // bit 0, shadows bit in EECON1bits
2967 #define EERD EECON1bits.EERD // bit 0, shadows bit in EECON1bits
2968 #define WR EECON1bits.WR // bit 1, shadows bit in EECON1bits
2969 #define EEWR EECON1bits.EEWR // bit 1, shadows bit in EECON1bits
2970 #define WREN EECON1bits.WREN // bit 2
2971 #define WRERR EECON1bits.WRERR // bit 3
2972 #define EEPGD EECON1bits.EEPGD // bit 7
2974 #define EEDATL0 EEDATAbits.EEDATL0 // bit 0
2975 #define EEDATL1 EEDATAbits.EEDATL1 // bit 1
2976 #define EEDATL2 EEDATAbits.EEDATL2 // bit 2
2977 #define EEDATL3 EEDATAbits.EEDATL3 // bit 3
2978 #define EEDATL4 EEDATAbits.EEDATL4 // bit 4
2979 #define EEDATL5 EEDATAbits.EEDATL5 // bit 5
2980 #define EEDATL6 EEDATAbits.EEDATL6 // bit 6
2981 #define EEDATL7 EEDATAbits.EEDATL7 // bit 7
2983 #define EEDATH0 EEDATHbits.EEDATH0 // bit 0
2984 #define EEDATH1 EEDATHbits.EEDATH1 // bit 1
2985 #define EEDATH2 EEDATHbits.EEDATH2 // bit 2
2986 #define EEDATH3 EEDATHbits.EEDATH3 // bit 3
2987 #define EEDATH4 EEDATHbits.EEDATH4 // bit 4
2988 #define EEDATH5 EEDATHbits.EEDATH5 // bit 5
2990 #define RBIF INTCONbits.RBIF // bit 0
2991 #define INTF INTCONbits.INTF // bit 1
2992 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
2993 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
2994 #define RBIE INTCONbits.RBIE // bit 3
2995 #define INTE INTCONbits.INTE // bit 4
2996 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
2997 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
2998 #define PEIE INTCONbits.PEIE // bit 6
2999 #define GIE INTCONbits.GIE // bit 7
3001 #define IOCB4 IOCbits.IOCB4 // bit 4, shadows bit in IOCbits
3002 #define IOC4 IOCbits.IOC4 // bit 4, shadows bit in IOCbits
3003 #define IOCB5 IOCbits.IOCB5 // bit 5, shadows bit in IOCbits
3004 #define IOC5 IOCbits.IOC5 // bit 5, shadows bit in IOCbits
3005 #define IOCB6 IOCbits.IOCB6 // bit 6, shadows bit in IOCbits
3006 #define IOC6 IOCbits.IOC6 // bit 6, shadows bit in IOCbits
3007 #define IOCB7 IOCbits.IOCB7 // bit 7, shadows bit in IOCbits
3008 #define IOC7 IOCbits.IOC7 // bit 7, shadows bit in IOCbits
3010 #define LMUX0 LCDCONbits.LMUX0 // bit 0
3011 #define LMUX1 LCDCONbits.LMUX1 // bit 1
3012 #define CS0 LCDCONbits.CS0 // bit 2
3013 #define CS1 LCDCONbits.CS1 // bit 3
3014 #define VLCDEN LCDCONbits.VLCDEN // bit 4
3015 #define WERR LCDCONbits.WERR // bit 5
3016 #define SLPEN LCDCONbits.SLPEN // bit 6
3017 #define LCDEN LCDCONbits.LCDEN // bit 7
3019 #define SEG0 LCDDATA0bits.SEG0 // bit 0, shadows bit in LCDDATA0bits
3020 #define SEG0COM0 LCDDATA0bits.SEG0COM0 // bit 0, shadows bit in LCDDATA0bits
3021 #define S0C0 LCDDATA0bits.S0C0 // bit 0, shadows bit in LCDDATA0bits
3022 #define SEG1 LCDDATA0bits.SEG1 // bit 1, shadows bit in LCDDATA0bits
3023 #define SEG1COM0 LCDDATA0bits.SEG1COM0 // bit 1, shadows bit in LCDDATA0bits
3024 #define S1C0 LCDDATA0bits.S1C0 // bit 1, shadows bit in LCDDATA0bits
3025 #define SEG2 LCDDATA0bits.SEG2 // bit 2, shadows bit in LCDDATA0bits
3026 #define SEG2COM0 LCDDATA0bits.SEG2COM0 // bit 2, shadows bit in LCDDATA0bits
3027 #define S2C0 LCDDATA0bits.S2C0 // bit 2, shadows bit in LCDDATA0bits
3028 #define SEG3 LCDDATA0bits.SEG3 // bit 3, shadows bit in LCDDATA0bits
3029 #define SEG3COM0 LCDDATA0bits.SEG3COM0 // bit 3, shadows bit in LCDDATA0bits
3030 #define S3C0 LCDDATA0bits.S3C0 // bit 3, shadows bit in LCDDATA0bits
3031 #define SEG4 LCDDATA0bits.SEG4 // bit 4, shadows bit in LCDDATA0bits
3032 #define SEG4COM0 LCDDATA0bits.SEG4COM0 // bit 4, shadows bit in LCDDATA0bits
3033 #define S4C0 LCDDATA0bits.S4C0 // bit 4, shadows bit in LCDDATA0bits
3034 #define SEG5 LCDDATA0bits.SEG5 // bit 5, shadows bit in LCDDATA0bits
3035 #define SEG5COM0 LCDDATA0bits.SEG5COM0 // bit 5, shadows bit in LCDDATA0bits
3036 #define S5C0 LCDDATA0bits.S5C0 // bit 5, shadows bit in LCDDATA0bits
3037 #define SEG6 LCDDATA0bits.SEG6 // bit 6, shadows bit in LCDDATA0bits
3038 #define SEG6COM0 LCDDATA0bits.SEG6COM0 // bit 6, shadows bit in LCDDATA0bits
3039 #define S6C0 LCDDATA0bits.S6C0 // bit 6, shadows bit in LCDDATA0bits
3040 #define SEG7 LCDDATA0bits.SEG7 // bit 7, shadows bit in LCDDATA0bits
3041 #define SEG7COM0 LCDDATA0bits.SEG7COM0 // bit 7, shadows bit in LCDDATA0bits
3042 #define S7C0 LCDDATA0bits.S7C0 // bit 7, shadows bit in LCDDATA0bits
3044 #define SEG8 LCDDATA1bits.SEG8 // bit 0, shadows bit in LCDDATA1bits
3045 #define SEG8COM0 LCDDATA1bits.SEG8COM0 // bit 0, shadows bit in LCDDATA1bits
3046 #define S8C0 LCDDATA1bits.S8C0 // bit 0, shadows bit in LCDDATA1bits
3047 #define SEG9 LCDDATA1bits.SEG9 // bit 1, shadows bit in LCDDATA1bits
3048 #define SEG9COM0 LCDDATA1bits.SEG9COM0 // bit 1, shadows bit in LCDDATA1bits
3049 #define S9C0 LCDDATA1bits.S9C0 // bit 1, shadows bit in LCDDATA1bits
3050 #define SEG10 LCDDATA1bits.SEG10 // bit 2, shadows bit in LCDDATA1bits
3051 #define SEG10COM0 LCDDATA1bits.SEG10COM0 // bit 2, shadows bit in LCDDATA1bits
3052 #define S10C0 LCDDATA1bits.S10C0 // bit 2, shadows bit in LCDDATA1bits
3053 #define SEG11 LCDDATA1bits.SEG11 // bit 3, shadows bit in LCDDATA1bits
3054 #define SEG11COM0 LCDDATA1bits.SEG11COM0 // bit 3, shadows bit in LCDDATA1bits
3055 #define S11C0 LCDDATA1bits.S11C0 // bit 3, shadows bit in LCDDATA1bits
3056 #define SEG12 LCDDATA1bits.SEG12 // bit 4, shadows bit in LCDDATA1bits
3057 #define SEG12COM0 LCDDATA1bits.SEG12COM0 // bit 4, shadows bit in LCDDATA1bits
3058 #define S12C0 LCDDATA1bits.S12C0 // bit 4, shadows bit in LCDDATA1bits
3059 #define SEG13 LCDDATA1bits.SEG13 // bit 5, shadows bit in LCDDATA1bits
3060 #define SEG13COM0 LCDDATA1bits.SEG13COM0 // bit 5, shadows bit in LCDDATA1bits
3061 #define S13C0 LCDDATA1bits.S13C0 // bit 5, shadows bit in LCDDATA1bits
3062 #define SEG14 LCDDATA1bits.SEG14 // bit 6, shadows bit in LCDDATA1bits
3063 #define SEG14COM0 LCDDATA1bits.SEG14COM0 // bit 6, shadows bit in LCDDATA1bits
3064 #define S14C0 LCDDATA1bits.S14C0 // bit 6, shadows bit in LCDDATA1bits
3065 #define SEG15 LCDDATA1bits.SEG15 // bit 7, shadows bit in LCDDATA1bits
3066 #define SEG15COM0 LCDDATA1bits.SEG15COM0 // bit 7, shadows bit in LCDDATA1bits
3067 #define S15C0 LCDDATA1bits.S15C0 // bit 7, shadows bit in LCDDATA1bits
3069 #define LP0 LCDPSbits.LP0 // bit 0
3070 #define LP1 LCDPSbits.LP1 // bit 1
3071 #define LP2 LCDPSbits.LP2 // bit 2
3072 #define LP3 LCDPSbits.LP3 // bit 3
3073 #define WA LCDPSbits.WA // bit 4
3074 #define LCDA LCDPSbits.LCDA // bit 5
3075 #define BIASMD LCDPSbits.BIASMD // bit 6
3076 #define WFT LCDPSbits.WFT // bit 7
3078 #define LVDL0 LVDCONbits.LVDL0 // bit 0
3079 #define LVDL1 LVDCONbits.LVDL1 // bit 1
3080 #define LVDL2 LVDCONbits.LVDL2 // bit 2
3081 #define LVDEN LVDCONbits.LVDEN // bit 4
3082 #define IRVST LVDCONbits.IRVST // bit 5
3084 #define PS0 OPTION_REGbits.PS0 // bit 0
3085 #define PS1 OPTION_REGbits.PS1 // bit 1
3086 #define PS2 OPTION_REGbits.PS2 // bit 2
3087 #define PSA OPTION_REGbits.PSA // bit 3
3088 #define T0SE OPTION_REGbits.T0SE // bit 4
3089 #define T0CS OPTION_REGbits.T0CS // bit 5
3090 #define INTEDG OPTION_REGbits.INTEDG // bit 6
3091 #define NOT_RBPU OPTION_REGbits.NOT_RBPU // bit 7
3093 #define SCS OSCCONbits.SCS // bit 0
3094 #define LTS OSCCONbits.LTS // bit 1
3095 #define HTS OSCCONbits.HTS // bit 2
3096 #define OSTS OSCCONbits.OSTS // bit 3
3097 #define IRCF0 OSCCONbits.IRCF0 // bit 4
3098 #define IRCF1 OSCCONbits.IRCF1 // bit 5
3099 #define IRCF2 OSCCONbits.IRCF2 // bit 6
3101 #define TUN0 OSCTUNEbits.TUN0 // bit 0
3102 #define TUN1 OSCTUNEbits.TUN1 // bit 1
3103 #define TUN2 OSCTUNEbits.TUN2 // bit 2
3104 #define TUN3 OSCTUNEbits.TUN3 // bit 3
3105 #define TUN4 OSCTUNEbits.TUN4 // bit 4
3107 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
3108 #define NOT_BO PCONbits.NOT_BO // bit 0, shadows bit in PCONbits
3109 #define NOT_POR PCONbits.NOT_POR // bit 1
3110 #define SBOREN PCONbits.SBOREN // bit 4
3112 #define TMR1IE PIE1bits.TMR1IE // bit 0
3113 #define TMR2IE PIE1bits.TMR2IE // bit 1
3114 #define CCP1IE PIE1bits.CCP1IE // bit 2
3115 #define SSPIE PIE1bits.SSPIE // bit 3
3116 #define TXIE PIE1bits.TXIE // bit 4
3117 #define RCIE PIE1bits.RCIE // bit 5
3118 #define ADIE PIE1bits.ADIE // bit 6
3119 #define EEIE PIE1bits.EEIE // bit 7
3121 #define LVDIE PIE2bits.LVDIE // bit 2
3122 #define LCDIE PIE2bits.LCDIE // bit 4
3123 #define C1IE PIE2bits.C1IE // bit 5
3124 #define C2IE PIE2bits.C2IE // bit 6
3125 #define OSFIE PIE2bits.OSFIE // bit 7
3127 #define TMR1IF PIR1bits.TMR1IF // bit 0
3128 #define TMR2IF PIR1bits.TMR2IF // bit 1
3129 #define CCP1IF PIR1bits.CCP1IF // bit 2
3130 #define SSPIF PIR1bits.SSPIF // bit 3
3131 #define TXIF PIR1bits.TXIF // bit 4
3132 #define RCIF PIR1bits.RCIF // bit 5
3133 #define ADIF PIR1bits.ADIF // bit 6
3134 #define EEIF PIR1bits.EEIF // bit 7
3136 #define LVDIF PIR2bits.LVDIF // bit 2
3137 #define LCDIF PIR2bits.LCDIF // bit 4
3138 #define C1IF PIR2bits.C1IF // bit 5
3139 #define C2IF PIR2bits.C2IF // bit 6
3140 #define OSFIF PIR2bits.OSFIF // bit 7
3142 #define RA0 PORTAbits.RA0 // bit 0
3143 #define RA1 PORTAbits.RA1 // bit 1
3144 #define RA2 PORTAbits.RA2 // bit 2
3145 #define RA3 PORTAbits.RA3 // bit 3
3146 #define RA4 PORTAbits.RA4 // bit 4
3147 #define RA5 PORTAbits.RA5 // bit 5
3148 #define RA6 PORTAbits.RA6 // bit 6
3149 #define RA7 PORTAbits.RA7 // bit 7
3151 #define RB0 PORTBbits.RB0 // bit 0
3152 #define RB1 PORTBbits.RB1 // bit 1
3153 #define RB2 PORTBbits.RB2 // bit 2
3154 #define RB3 PORTBbits.RB3 // bit 3
3155 #define RB4 PORTBbits.RB4 // bit 4
3156 #define RB5 PORTBbits.RB5 // bit 5
3157 #define RB6 PORTBbits.RB6 // bit 6
3158 #define RB7 PORTBbits.RB7 // bit 7
3160 #define RC0 PORTCbits.RC0 // bit 0
3161 #define RC1 PORTCbits.RC1 // bit 1
3162 #define RC2 PORTCbits.RC2 // bit 2
3163 #define RC3 PORTCbits.RC3 // bit 3
3164 #define RC4 PORTCbits.RC4 // bit 4
3165 #define RC5 PORTCbits.RC5 // bit 5
3166 #define RC6 PORTCbits.RC6 // bit 6
3167 #define RC7 PORTCbits.RC7 // bit 7
3169 #define RE3 PORTEbits.RE3 // bit 3
3171 #define RX9D RCSTAbits.RX9D // bit 0, shadows bit in RCSTAbits
3172 #define RCD8 RCSTAbits.RCD8 // bit 0, shadows bit in RCSTAbits
3173 #define OERR RCSTAbits.OERR // bit 1
3174 #define FERR RCSTAbits.FERR // bit 2
3175 #define ADDEN RCSTAbits.ADDEN // bit 3
3176 #define CREN RCSTAbits.CREN // bit 4
3177 #define SREN RCSTAbits.SREN // bit 5
3178 #define RX9 RCSTAbits.RX9 // bit 6, shadows bit in RCSTAbits
3179 #define RC9 RCSTAbits.RC9 // bit 6, shadows bit in RCSTAbits
3180 #define NOT_RC8 RCSTAbits.NOT_RC8 // bit 6, shadows bit in RCSTAbits
3181 #define RC8_9 RCSTAbits.RC8_9 // bit 6, shadows bit in RCSTAbits
3182 #define SPEN RCSTAbits.SPEN // bit 7
3184 #define SSPM0 SSPCONbits.SSPM0 // bit 0
3185 #define SSPM1 SSPCONbits.SSPM1 // bit 1
3186 #define SSPM2 SSPCONbits.SSPM2 // bit 2
3187 #define SSPM3 SSPCONbits.SSPM3 // bit 3
3188 #define CKP SSPCONbits.CKP // bit 4
3189 #define SSPEN SSPCONbits.SSPEN // bit 5
3190 #define SSPOV SSPCONbits.SSPOV // bit 6
3191 #define WCOL SSPCONbits.WCOL // bit 7
3193 #define BF SSPSTATbits.BF // bit 0
3194 #define UA SSPSTATbits.UA // bit 1
3195 #define R_NOT_W SSPSTATbits.R_NOT_W // bit 2, shadows bit in SSPSTATbits
3196 #define R SSPSTATbits.R // bit 2, shadows bit in SSPSTATbits
3197 #define I2C_READ SSPSTATbits.I2C_READ // bit 2, shadows bit in SSPSTATbits
3198 #define NOT_W SSPSTATbits.NOT_W // bit 2, shadows bit in SSPSTATbits
3199 #define NOT_WRITE SSPSTATbits.NOT_WRITE // bit 2, shadows bit in SSPSTATbits
3200 #define R_W SSPSTATbits.R_W // bit 2, shadows bit in SSPSTATbits
3201 #define READ_WRITE SSPSTATbits.READ_WRITE // bit 2, shadows bit in SSPSTATbits
3202 #define S SSPSTATbits.S // bit 3, shadows bit in SSPSTATbits
3203 #define I2C_START SSPSTATbits.I2C_START // bit 3, shadows bit in SSPSTATbits
3204 #define P SSPSTATbits.P // bit 4, shadows bit in SSPSTATbits
3205 #define I2C_STOP SSPSTATbits.I2C_STOP // bit 4, shadows bit in SSPSTATbits
3206 #define D_NOT_A SSPSTATbits.D_NOT_A // bit 5, shadows bit in SSPSTATbits
3207 #define D SSPSTATbits.D // bit 5, shadows bit in SSPSTATbits
3208 #define I2C_DATA SSPSTATbits.I2C_DATA // bit 5, shadows bit in SSPSTATbits
3209 #define NOT_A SSPSTATbits.NOT_A // bit 5, shadows bit in SSPSTATbits
3210 #define NOT_ADDRESS SSPSTATbits.NOT_ADDRESS // bit 5, shadows bit in SSPSTATbits
3211 #define D_A SSPSTATbits.D_A // bit 5, shadows bit in SSPSTATbits
3212 #define DATA_ADDRESS SSPSTATbits.DATA_ADDRESS // bit 5, shadows bit in SSPSTATbits
3213 #define CKE SSPSTATbits.CKE // bit 6
3214 #define SMP SSPSTATbits.SMP // bit 7
3216 #define C STATUSbits.C // bit 0
3217 #define DC STATUSbits.DC // bit 1
3218 #define Z STATUSbits.Z // bit 2
3219 #define NOT_PD STATUSbits.NOT_PD // bit 3
3220 #define NOT_TO STATUSbits.NOT_TO // bit 4
3221 #define RP0 STATUSbits.RP0 // bit 5
3222 #define RP1 STATUSbits.RP1 // bit 6
3223 #define IRP STATUSbits.IRP // bit 7
3225 #define TMR1ON T1CONbits.TMR1ON // bit 0
3226 #define TMR1CS T1CONbits.TMR1CS // bit 1
3227 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2, shadows bit in T1CONbits
3228 #define T1SYNC T1CONbits.T1SYNC // bit 2, shadows bit in T1CONbits
3229 #define T1INSYNC T1CONbits.T1INSYNC // bit 2, shadows bit in T1CONbits
3230 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
3231 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
3232 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
3233 #define TMR1GE T1CONbits.TMR1GE // bit 6, shadows bit in T1CONbits
3234 #define T1GE T1CONbits.T1GE // bit 6, shadows bit in T1CONbits
3235 #define T1GINV T1CONbits.T1GINV // bit 7
3237 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
3238 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
3239 #define TMR2ON T2CONbits.TMR2ON // bit 2
3240 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
3241 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
3242 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
3243 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
3245 #define TRISA0 TRISAbits.TRISA0 // bit 0
3246 #define TRISA1 TRISAbits.TRISA1 // bit 1
3247 #define TRISA2 TRISAbits.TRISA2 // bit 2
3248 #define TRISA3 TRISAbits.TRISA3 // bit 3
3249 #define TRISA4 TRISAbits.TRISA4 // bit 4
3250 #define TRISA5 TRISAbits.TRISA5 // bit 5
3251 #define TRISA6 TRISAbits.TRISA6 // bit 6
3252 #define TRISA7 TRISAbits.TRISA7 // bit 7
3254 #define TRISB0 TRISBbits.TRISB0 // bit 0
3255 #define TRISB1 TRISBbits.TRISB1 // bit 1
3256 #define TRISB2 TRISBbits.TRISB2 // bit 2
3257 #define TRISB3 TRISBbits.TRISB3 // bit 3
3258 #define TRISB4 TRISBbits.TRISB4 // bit 4
3259 #define TRISB5 TRISBbits.TRISB5 // bit 5
3260 #define TRISB6 TRISBbits.TRISB6 // bit 6
3261 #define TRISB7 TRISBbits.TRISB7 // bit 7
3263 #define TRISC0 TRISCbits.TRISC0 // bit 0
3264 #define TRISC1 TRISCbits.TRISC1 // bit 1
3265 #define TRISC2 TRISCbits.TRISC2 // bit 2
3266 #define TRISC3 TRISCbits.TRISC3 // bit 3
3267 #define TRISC4 TRISCbits.TRISC4 // bit 4
3268 #define TRISC5 TRISCbits.TRISC5 // bit 5
3269 #define TRISC6 TRISCbits.TRISC6 // bit 6
3270 #define TRISC7 TRISCbits.TRISC7 // bit 7
3272 #define TRISE3 TRISEbits.TRISE3 // bit 3
3274 #define TX9D TXSTAbits.TX9D // bit 0, shadows bit in TXSTAbits
3275 #define TXD8 TXSTAbits.TXD8 // bit 0, shadows bit in TXSTAbits
3276 #define TRMT TXSTAbits.TRMT // bit 1
3277 #define BRGH TXSTAbits.BRGH // bit 2
3278 #define SYNC TXSTAbits.SYNC // bit 4
3279 #define TXEN TXSTAbits.TXEN // bit 5
3280 #define TX9 TXSTAbits.TX9 // bit 6, shadows bit in TXSTAbits
3281 #define NOT_TX8 TXSTAbits.NOT_TX8 // bit 6, shadows bit in TXSTAbits
3282 #define TX8_9 TXSTAbits.TX8_9 // bit 6, shadows bit in TXSTAbits
3283 #define CSRC TXSTAbits.CSRC // bit 7
3285 #define VR0 VRCONbits.VR0 // bit 0
3286 #define VR1 VRCONbits.VR1 // bit 1
3287 #define VR2 VRCONbits.VR2 // bit 2
3288 #define VR3 VRCONbits.VR3 // bit 3
3289 #define VRR VRCONbits.VRR // bit 5
3290 #define VREN VRCONbits.VREN // bit 7
3292 #define SWDTEN WDTCONbits.SWDTEN // bit 0, shadows bit in WDTCONbits
3293 #define SWDTE WDTCONbits.SWDTE // bit 0, shadows bit in WDTCONbits
3294 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
3295 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
3296 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
3297 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
3299 #define WPUB0 WPUbits.WPUB0 // bit 0, shadows bit in WPUbits
3300 #define WPU0 WPUbits.WPU0 // bit 0, shadows bit in WPUbits
3301 #define WPUB1 WPUbits.WPUB1 // bit 1, shadows bit in WPUbits
3302 #define WPU1 WPUbits.WPU1 // bit 1, shadows bit in WPUbits
3303 #define WPUB2 WPUbits.WPUB2 // bit 2, shadows bit in WPUbits
3304 #define WPU2 WPUbits.WPU2 // bit 2, shadows bit in WPUbits
3305 #define WPUB3 WPUbits.WPUB3 // bit 3, shadows bit in WPUbits
3306 #define WPU3 WPUbits.WPU3 // bit 3, shadows bit in WPUbits
3307 #define WPUB4 WPUbits.WPUB4 // bit 4, shadows bit in WPUbits
3308 #define WPU4 WPUbits.WPU4 // bit 4, shadows bit in WPUbits
3309 #define WPUB5 WPUbits.WPUB5 // bit 5, shadows bit in WPUbits
3310 #define WPU5 WPUbits.WPU5 // bit 5, shadows bit in WPUbits
3311 #define WPUB6 WPUbits.WPUB6 // bit 6, shadows bit in WPUbits
3312 #define WPU6 WPUbits.WPU6 // bit 6, shadows bit in WPUbits
3313 #define WPUB7 WPUbits.WPUB7 // bit 7, shadows bit in WPUbits
3314 #define WPU7 WPUbits.WPU7 // bit 7, shadows bit in WPUbits
3316 #endif // #ifndef NO_BIT_DEFINES
3318 #endif // #ifndef __PIC16F913_H__