2 * This declarations of the PIC12F635 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:04 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 __PIC12F635_H__
26 #define __PIC12F635_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 GPIO_ADDR 0x0005
42 #define PORTA_ADDR 0x0005
43 #define PCLATH_ADDR 0x000A
44 #define INTCON_ADDR 0x000B
45 #define PIR1_ADDR 0x000C
46 #define TMR1_ADDR 0x000E
47 #define TMR1L_ADDR 0x000E
48 #define TMR1H_ADDR 0x000F
49 #define T1CON_ADDR 0x0010
50 #define WDTCON_ADDR 0x0018
51 #define CMCON0_ADDR 0x0019
52 #define CMCON1_ADDR 0x001A
53 #define OPTION_REG_ADDR 0x0081
54 #define TRISA_ADDR 0x0085
55 #define TRISIO_ADDR 0x0085
56 #define PIE1_ADDR 0x008C
57 #define PCON_ADDR 0x008E
58 #define OSCCON_ADDR 0x008F
59 #define OSCTUNE_ADDR 0x0090
60 #define LVDCON_ADDR 0x0094
61 #define WPUDA_ADDR 0x0095
62 #define IOCA_ADDR 0x0096
63 #define WDA_ADDR 0x0097
64 #define VRCON_ADDR 0x0099
65 #define EEDAT_ADDR 0x009A
66 #define EEDATA_ADDR 0x009A
67 #define EEADR_ADDR 0x009B
68 #define EECON1_ADDR 0x009C
69 #define EECON2_ADDR 0x009D
70 #define CRCON_ADDR 0x0110
71 #define CRDAT0_ADDR 0x0111
72 #define CRDAT1_ADDR 0x0112
73 #define CRDAT2_ADDR 0x0113
74 #define CRDAT3_ADDR 0x0114
76 #endif // #ifndef NO_ADDR_DEFINES
78 //==============================================================================
80 // Register Definitions
82 //==============================================================================
84 extern __at(0x0000) __sfr INDF
;
85 extern __at(0x0001) __sfr TMR0
;
86 extern __at(0x0002) __sfr PCL
;
88 //==============================================================================
91 extern __at(0x0003) __sfr STATUS
;
115 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
126 //==============================================================================
128 extern __at(0x0004) __sfr FSR
;
130 //==============================================================================
133 extern __at(0x0005) __sfr GPIO
;
174 extern __at(0x0005) volatile __GPIObits_t GPIObits
;
189 //==============================================================================
192 //==============================================================================
195 extern __at(0x0005) __sfr PORTA
;
236 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
238 #define _PORTA_GP0 0x01
239 #define _PORTA_RA0 0x01
240 #define _PORTA_GP1 0x02
241 #define _PORTA_RA1 0x02
242 #define _PORTA_GP2 0x04
243 #define _PORTA_RA2 0x04
244 #define _PORTA_GP3 0x08
245 #define _PORTA_RA3 0x08
246 #define _PORTA_GP4 0x10
247 #define _PORTA_RA4 0x10
248 #define _PORTA_GP5 0x20
249 #define _PORTA_RA5 0x20
251 //==============================================================================
253 extern __at(0x000A) __sfr PCLATH
;
255 //==============================================================================
258 extern __at(0x000B) __sfr INTCON
;
272 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
283 //==============================================================================
286 //==============================================================================
289 extern __at(0x000C) __sfr PIR1
;
303 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
312 //==============================================================================
314 extern __at(0x000E) __sfr TMR1
;
315 extern __at(0x000E) __sfr TMR1L
;
316 extern __at(0x000F) __sfr TMR1H
;
318 //==============================================================================
321 extern __at(0x0010) __sfr T1CON
;
329 unsigned NOT_T1SYNC
: 1;
330 unsigned T1OSCEN
: 1;
331 unsigned T1CKPS0
: 1;
332 unsigned T1CKPS1
: 1;
345 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
349 #define _NOT_T1SYNC 0x04
350 #define _T1OSCEN 0x08
351 #define _T1CKPS0 0x10
352 #define _T1CKPS1 0x20
356 //==============================================================================
359 //==============================================================================
362 extern __at(0x0018) __sfr WDTCON
;
386 extern __at(0x0018) volatile __WDTCONbits_t WDTCONbits
;
394 //==============================================================================
397 //==============================================================================
400 extern __at(0x0019) __sfr CMCON0
;
435 extern __at(0x0019) volatile __CMCON0bits_t CMCON0bits
;
446 //==============================================================================
449 //==============================================================================
452 extern __at(0x001A) __sfr CMCON1
;
481 extern __at(0x001A) volatile __CMCON1bits_t CMCON1bits
;
487 //==============================================================================
490 //==============================================================================
493 extern __at(0x0081) __sfr OPTION_REG
;
506 unsigned NOT_RAPU
: 1;
514 } __OPTION_REGbits_t
;
516 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
525 #define _NOT_RAPU 0x80
527 //==============================================================================
530 //==============================================================================
533 extern __at(0x0085) __sfr TRISA
;
539 unsigned TRISIO0
: 1;
540 unsigned TRISIO1
: 1;
541 unsigned TRISIO2
: 1;
542 unsigned TRISIO3
: 1;
543 unsigned TRISIO4
: 1;
544 unsigned TRISIO5
: 1;
574 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
576 #define _TRISIO0 0x01
578 #define _TRISIO1 0x02
580 #define _TRISIO2 0x04
582 #define _TRISIO3 0x08
584 #define _TRISIO4 0x10
586 #define _TRISIO5 0x20
589 //==============================================================================
592 //==============================================================================
595 extern __at(0x0085) __sfr TRISIO
;
601 unsigned TRISIO0
: 1;
602 unsigned TRISIO1
: 1;
603 unsigned TRISIO2
: 1;
604 unsigned TRISIO3
: 1;
605 unsigned TRISIO4
: 1;
606 unsigned TRISIO5
: 1;
636 extern __at(0x0085) volatile __TRISIObits_t TRISIObits
;
638 #define _TRISIO_TRISIO0 0x01
639 #define _TRISIO_TRISA0 0x01
640 #define _TRISIO_TRISIO1 0x02
641 #define _TRISIO_TRISA1 0x02
642 #define _TRISIO_TRISIO2 0x04
643 #define _TRISIO_TRISA2 0x04
644 #define _TRISIO_TRISIO3 0x08
645 #define _TRISIO_TRISA3 0x08
646 #define _TRISIO_TRISIO4 0x10
647 #define _TRISIO_TRISA4 0x10
648 #define _TRISIO_TRISIO5 0x20
649 #define _TRISIO_TRISA5 0x20
651 //==============================================================================
654 //==============================================================================
657 extern __at(0x008C) __sfr PIE1
;
671 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
680 //==============================================================================
683 //==============================================================================
686 extern __at(0x008E) __sfr PCON
;
692 unsigned NOT_BOR
: 1;
693 unsigned NOT_POR
: 1;
695 unsigned NOT_WUR
: 1;
704 unsigned NOT_BOD
: 1;
715 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
717 #define _NOT_BOR 0x01
718 #define _NOT_BOD 0x01
719 #define _NOT_POR 0x02
720 #define _NOT_WUR 0x08
725 //==============================================================================
728 //==============================================================================
731 extern __at(0x008F) __sfr OSCCON
;
755 extern __at(0x008F) volatile __OSCCONbits_t OSCCONbits
;
765 //==============================================================================
768 //==============================================================================
771 extern __at(0x0090) __sfr OSCTUNE
;
794 extern __at(0x0090) volatile __OSCTUNEbits_t OSCTUNEbits
;
802 //==============================================================================
805 //==============================================================================
808 extern __at(0x0094) __sfr LVDCON
;
843 extern __at(0x0094) volatile __LVDCONbits_t LVDCONbits
;
852 //==============================================================================
855 //==============================================================================
858 extern __at(0x0095) __sfr WPUDA
;
872 extern __at(0x0095) volatile __WPUDAbits_t WPUDAbits
;
880 //==============================================================================
883 //==============================================================================
886 extern __at(0x0096) __sfr IOCA
;
909 extern __at(0x0096) volatile __IOCAbits_t IOCAbits
;
918 //==============================================================================
921 //==============================================================================
924 extern __at(0x0097) __sfr WDA
;
938 extern __at(0x0097) volatile __WDAbits_t WDAbits
;
946 //==============================================================================
949 //==============================================================================
952 extern __at(0x0099) __sfr VRCON
;
975 extern __at(0x0099) volatile __VRCONbits_t VRCONbits
;
984 //==============================================================================
986 extern __at(0x009A) __sfr EEDAT
;
987 extern __at(0x009A) __sfr EEDATA
;
988 extern __at(0x009B) __sfr EEADR
;
990 //==============================================================================
993 extern __at(0x009C) __sfr EECON1
;
1007 extern __at(0x009C) volatile __EECON1bits_t EECON1bits
;
1014 //==============================================================================
1016 extern __at(0x009D) __sfr EECON2
;
1018 //==============================================================================
1021 extern __at(0x0110) __sfr CRCON
;
1027 unsigned CRREG0
: 1;
1028 unsigned CRREG1
: 1;
1033 unsigned ENC_NOT_DEC
: 1;
1034 unsigned GO_NOT_DONE
: 1;
1045 unsigned ENC_DEC
: 1;
1056 extern __at(0x0110) volatile __CRCONbits_t CRCONbits
;
1058 #define _CRREG0 0x01
1059 #define _CRREG1 0x02
1060 #define _ENC_NOT_DEC 0x40
1061 #define _ENC_DEC 0x40
1062 #define _GO_NOT_DONE 0x80
1065 //==============================================================================
1067 extern __at(0x0111) __sfr CRDAT0
;
1068 extern __at(0x0112) __sfr CRDAT1
;
1069 extern __at(0x0113) __sfr CRDAT2
;
1070 extern __at(0x0114) __sfr CRDAT3
;
1072 //==============================================================================
1074 // Configuration Bits
1076 //==============================================================================
1078 #define _CONFIG 0x2007
1080 //----------------------------- CONFIG Options -------------------------------
1082 #define _FOSC_LP 0x3FF8 // LP oscillator: Low-power crystal on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1083 #define _LP_OSC 0x3FF8 // LP oscillator: Low-power crystal on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1084 #define _FOSC_XT 0x3FF9 // XT oscillator: Crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1085 #define _XT_OSC 0x3FF9 // XT oscillator: Crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1086 #define _FOSC_HS 0x3FFA // HS oscillator: High-speed crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1087 #define _HS_OSC 0x3FFA // HS oscillator: High-speed crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
1088 #define _FOSC_EC 0x3FFB // EC: I/O function on RA4/T1G/OSC2/CLKOUT, CLKIN on RA5/T1CKI/OSC1/CLKIN.
1089 #define _EC_OSC 0x3FFB // EC: I/O function on RA4/T1G/OSC2/CLKOUT, CLKIN on RA5/T1CKI/OSC1/CLKIN.
1090 #define _FOSC_INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
1091 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTOSCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
1092 #define _FOSC_INTOSCCLK 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
1093 #define _INTRC_OSC_CLKOUT 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
1094 #define _FOSC_EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
1095 #define _EXTRC_OSC_NOCLKOUT 0x3FFE // RCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
1096 #define _FOSC_EXTRCCLK 0x3FFF // RC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
1097 #define _EXTRC_OSC_CLKOUT 0x3FFF // RC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
1098 #define _WDTE_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
1099 #define _WDT_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
1100 #define _WDTE_ON 0x3FFF // WDT enabled.
1101 #define _WDT_ON 0x3FFF // WDT enabled.
1102 #define _PWRTE_ON 0x3FEF // PWRT enabled.
1103 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
1104 #define _MCLRE_OFF 0x3FDF // MCLR pin function is alternate function, MCLR function is internally disabled.
1105 #define _MCLRE_ON 0x3FFF // MCLR pin is MCLR function and weak internal pull-up is enabled.
1106 #define _CP_ON 0x3FBF // Program memory is external read and write-protected.
1107 #define _CP_OFF 0x3FFF // Program memory is not code protected.
1108 #define _CPD_ON 0x3F7F // Data memory is external read protected.
1109 #define _CPD_OFF 0x3FFF // Data memory is not code protected.
1110 #define _BOREN_OFF 0x3CFF // BOD and SBODEN disabled.
1111 #define _BOD_OFF 0x3CFF // BOD and SBODEN disabled.
1112 #define _BOREN_SBODEN 0x3DFF // SBODEN controls BOD function.
1113 #define _BOD_SBODEN 0x3DFF // SBODEN controls BOD function.
1114 #define _BOREN_NSLEEP 0x3EFF // BOD enabled while running and disabled in Sleep. SBODEN bit disabled.
1115 #define _BOD_NSLEEP 0x3EFF // BOD enabled while running and disabled in Sleep. SBODEN bit disabled.
1116 #define _BOREN_ON 0x3FFF // BOD enabled and SBOdEN bit disabled.
1117 #define _BOD_ON 0x3FFF // BOD enabled and SBOdEN bit disabled.
1118 #define _IESO_OFF 0x3BFF // Internal External Switchover mode disabled.
1119 #define _IESO_ON 0x3FFF // Internal External Switchover mode enabled.
1120 #define _FCMEN_OFF 0x37FF // Fail-Safe Clock Monitor disabled.
1121 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor enabled.
1122 #define _WURE_ON 0x2FFF // Wake-up and Reset enabled.
1123 #define _WUREN_ON 0x2FFF // Wake-up and Reset enabled.
1124 #define _WURE_OFF 0x3FFF // Standard wake-up and continue enabled.
1125 #define _WUREN_OFF 0x3FFF // Standard wake-up and continue enabled.
1127 //==============================================================================
1129 #define _DEVID1 0x2006
1131 #define _IDLOC0 0x2000
1132 #define _IDLOC1 0x2001
1133 #define _IDLOC2 0x2002
1134 #define _IDLOC3 0x2003
1136 //==============================================================================
1138 #ifndef NO_BIT_DEFINES
1140 #define CM0 CMCON0bits.CM0 // bit 0
1141 #define CM1 CMCON0bits.CM1 // bit 1
1142 #define CM2 CMCON0bits.CM2 // bit 2
1143 #define CIS CMCON0bits.CIS // bit 3
1144 #define CINV CMCON0bits.CINV // bit 4, shadows bit in CMCON0bits
1145 #define C1INV CMCON0bits.C1INV // bit 4, shadows bit in CMCON0bits
1146 #define COUT CMCON0bits.COUT // bit 6, shadows bit in CMCON0bits
1147 #define C1OUT CMCON0bits.C1OUT // bit 6, shadows bit in CMCON0bits
1149 #define CMSYNC CMCON1bits.CMSYNC // bit 0, shadows bit in CMCON1bits
1150 #define C1SYNC CMCON1bits.C1SYNC // bit 0, shadows bit in CMCON1bits
1151 #define T1GSS CMCON1bits.T1GSS // bit 1
1153 #define CRREG0 CRCONbits.CRREG0 // bit 0
1154 #define CRREG1 CRCONbits.CRREG1 // bit 1
1155 #define ENC_NOT_DEC CRCONbits.ENC_NOT_DEC // bit 6, shadows bit in CRCONbits
1156 #define ENC_DEC CRCONbits.ENC_DEC // bit 6, shadows bit in CRCONbits
1157 #define GO_NOT_DONE CRCONbits.GO_NOT_DONE // bit 7, shadows bit in CRCONbits
1158 #define GO CRCONbits.GO // bit 7, shadows bit in CRCONbits
1160 #define RD EECON1bits.RD // bit 0
1161 #define WR EECON1bits.WR // bit 1
1162 #define WREN EECON1bits.WREN // bit 2
1163 #define WRERR EECON1bits.WRERR // bit 3
1165 #define GP0 GPIObits.GP0 // bit 0, shadows bit in GPIObits
1166 #define RA0 GPIObits.RA0 // bit 0, shadows bit in GPIObits
1167 #define GP1 GPIObits.GP1 // bit 1, shadows bit in GPIObits
1168 #define RA1 GPIObits.RA1 // bit 1, shadows bit in GPIObits
1169 #define GP2 GPIObits.GP2 // bit 2, shadows bit in GPIObits
1170 #define RA2 GPIObits.RA2 // bit 2, shadows bit in GPIObits
1171 #define GP3 GPIObits.GP3 // bit 3, shadows bit in GPIObits
1172 #define RA3 GPIObits.RA3 // bit 3, shadows bit in GPIObits
1173 #define GP4 GPIObits.GP4 // bit 4, shadows bit in GPIObits
1174 #define RA4 GPIObits.RA4 // bit 4, shadows bit in GPIObits
1175 #define GP5 GPIObits.GP5 // bit 5, shadows bit in GPIObits
1176 #define RA5 GPIObits.RA5 // bit 5, shadows bit in GPIObits
1178 #define RAIF INTCONbits.RAIF // bit 0
1179 #define INTF INTCONbits.INTF // bit 1
1180 #define T0IF INTCONbits.T0IF // bit 2
1181 #define RAIE INTCONbits.RAIE // bit 3
1182 #define INTE INTCONbits.INTE // bit 4
1183 #define T0IE INTCONbits.T0IE // bit 5
1184 #define PEIE INTCONbits.PEIE // bit 6
1185 #define GIE INTCONbits.GIE // bit 7
1187 #define IOCA0 IOCAbits.IOCA0 // bit 0
1188 #define IOCA1 IOCAbits.IOCA1 // bit 1
1189 #define IOCA2 IOCAbits.IOCA2 // bit 2
1190 #define IOCA3 IOCAbits.IOCA3 // bit 3
1191 #define IOCA4 IOCAbits.IOCA4 // bit 4
1192 #define IOCA5 IOCAbits.IOCA5 // bit 5
1194 #define LVDL0 LVDCONbits.LVDL0 // bit 0
1195 #define LVDL1 LVDCONbits.LVDL1 // bit 1
1196 #define LVDL2 LVDCONbits.LVDL2 // bit 2
1197 #define LVDEN LVDCONbits.LVDEN // bit 4, shadows bit in LVDCONbits
1198 #define PLVDEN LVDCONbits.PLVDEN // bit 4, shadows bit in LVDCONbits
1199 #define IRVST LVDCONbits.IRVST // bit 5
1201 #define PS0 OPTION_REGbits.PS0 // bit 0
1202 #define PS1 OPTION_REGbits.PS1 // bit 1
1203 #define PS2 OPTION_REGbits.PS2 // bit 2
1204 #define PSA OPTION_REGbits.PSA // bit 3
1205 #define T0SE OPTION_REGbits.T0SE // bit 4
1206 #define T0CS OPTION_REGbits.T0CS // bit 5
1207 #define INTEDG OPTION_REGbits.INTEDG // bit 6
1208 #define NOT_RAPU OPTION_REGbits.NOT_RAPU // bit 7
1210 #define SCS OSCCONbits.SCS // bit 0
1211 #define LTS OSCCONbits.LTS // bit 1
1212 #define HTS OSCCONbits.HTS // bit 2
1213 #define OSTS OSCCONbits.OSTS // bit 3
1214 #define IRCF0 OSCCONbits.IRCF0 // bit 4
1215 #define IRCF1 OSCCONbits.IRCF1 // bit 5
1216 #define IRCF2 OSCCONbits.IRCF2 // bit 6
1218 #define TUN0 OSCTUNEbits.TUN0 // bit 0
1219 #define TUN1 OSCTUNEbits.TUN1 // bit 1
1220 #define TUN2 OSCTUNEbits.TUN2 // bit 2
1221 #define TUN3 OSCTUNEbits.TUN3 // bit 3
1222 #define TUN4 OSCTUNEbits.TUN4 // bit 4
1224 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
1225 #define NOT_BOD PCONbits.NOT_BOD // bit 0, shadows bit in PCONbits
1226 #define NOT_POR PCONbits.NOT_POR // bit 1
1227 #define NOT_WUR PCONbits.NOT_WUR // bit 3
1228 #define SBOREN PCONbits.SBOREN // bit 4, shadows bit in PCONbits
1229 #define SBODEN PCONbits.SBODEN // bit 4, shadows bit in PCONbits
1230 #define ULPWUE PCONbits.ULPWUE // bit 5
1232 #define TMR1IE PIE1bits.TMR1IE // bit 0
1233 #define OSFIE PIE1bits.OSFIE // bit 2
1234 #define C1IE PIE1bits.C1IE // bit 3
1235 #define CRIE PIE1bits.CRIE // bit 5
1236 #define LVDIE PIE1bits.LVDIE // bit 6
1237 #define EEIE PIE1bits.EEIE // bit 7
1239 #define TMR1IF PIR1bits.TMR1IF // bit 0
1240 #define OSFIF PIR1bits.OSFIF // bit 2
1241 #define C1IF PIR1bits.C1IF // bit 3
1242 #define CRIF PIR1bits.CRIF // bit 5
1243 #define LVDIF PIR1bits.LVDIF // bit 6
1244 #define EEIF PIR1bits.EEIF // bit 7
1246 #define C STATUSbits.C // bit 0
1247 #define DC STATUSbits.DC // bit 1
1248 #define Z STATUSbits.Z // bit 2
1249 #define NOT_PD STATUSbits.NOT_PD // bit 3
1250 #define NOT_TO STATUSbits.NOT_TO // bit 4
1251 #define RP0 STATUSbits.RP0 // bit 5
1252 #define RP1 STATUSbits.RP1 // bit 6
1253 #define IRP STATUSbits.IRP // bit 7
1255 #define TMR1ON T1CONbits.TMR1ON // bit 0
1256 #define TMR1CS T1CONbits.TMR1CS // bit 1
1257 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
1258 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
1259 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
1260 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
1261 #define TMR1GE T1CONbits.TMR1GE // bit 6
1262 #define T1GINV T1CONbits.T1GINV // bit 7
1264 #define TRISIO0 TRISAbits.TRISIO0 // bit 0, shadows bit in TRISAbits
1265 #define TRISA0 TRISAbits.TRISA0 // bit 0, shadows bit in TRISAbits
1266 #define TRISIO1 TRISAbits.TRISIO1 // bit 1, shadows bit in TRISAbits
1267 #define TRISA1 TRISAbits.TRISA1 // bit 1, shadows bit in TRISAbits
1268 #define TRISIO2 TRISAbits.TRISIO2 // bit 2, shadows bit in TRISAbits
1269 #define TRISA2 TRISAbits.TRISA2 // bit 2, shadows bit in TRISAbits
1270 #define TRISIO3 TRISAbits.TRISIO3 // bit 3, shadows bit in TRISAbits
1271 #define TRISA3 TRISAbits.TRISA3 // bit 3, shadows bit in TRISAbits
1272 #define TRISIO4 TRISAbits.TRISIO4 // bit 4, shadows bit in TRISAbits
1273 #define TRISA4 TRISAbits.TRISA4 // bit 4, shadows bit in TRISAbits
1274 #define TRISIO5 TRISAbits.TRISIO5 // bit 5, shadows bit in TRISAbits
1275 #define TRISA5 TRISAbits.TRISA5 // bit 5, shadows bit in TRISAbits
1277 #define VR0 VRCONbits.VR0 // bit 0
1278 #define VR1 VRCONbits.VR1 // bit 1
1279 #define VR2 VRCONbits.VR2 // bit 2
1280 #define VR3 VRCONbits.VR3 // bit 3
1281 #define VRR VRCONbits.VRR // bit 5
1282 #define VREN VRCONbits.VREN // bit 7
1284 #define WDA0 WDAbits.WDA0 // bit 0
1285 #define WDA1 WDAbits.WDA1 // bit 1
1286 #define WDA2 WDAbits.WDA2 // bit 2
1287 #define WDA4 WDAbits.WDA4 // bit 4
1288 #define WDA5 WDAbits.WDA5 // bit 5
1290 #define SWDTEN WDTCONbits.SWDTEN // bit 0
1291 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
1292 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
1293 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
1294 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
1296 #define WPUDA0 WPUDAbits.WPUDA0 // bit 0
1297 #define WPUDA1 WPUDAbits.WPUDA1 // bit 1
1298 #define WPUDA2 WPUDAbits.WPUDA2 // bit 2
1299 #define WPUDA4 WPUDAbits.WPUDA4 // bit 4
1300 #define WPUDA5 WPUDAbits.WPUDA5 // bit 5
1302 #endif // #ifndef NO_BIT_DEFINES
1304 #endif // #ifndef __PIC12F635_H__