2 * This declarations of the PIC16F639 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:57 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 __PIC16F639_H__
26 #define __PIC16F639_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 PORTC_ADDR 0x0007
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 TRISC_ADDR 0x0087
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 PORTA
;
156 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
165 //==============================================================================
168 //==============================================================================
171 extern __at(0x0007) __sfr PORTC
;
194 extern __at(0x0007) volatile __PORTCbits_t PORTCbits
;
203 //==============================================================================
205 extern __at(0x000A) __sfr PCLATH
;
207 //==============================================================================
210 extern __at(0x000B) __sfr INTCON
;
224 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
235 //==============================================================================
238 //==============================================================================
241 extern __at(0x000C) __sfr PIR1
;
255 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
265 //==============================================================================
267 extern __at(0x000E) __sfr TMR1
;
268 extern __at(0x000E) __sfr TMR1L
;
269 extern __at(0x000F) __sfr TMR1H
;
271 //==============================================================================
274 extern __at(0x0010) __sfr T1CON
;
282 unsigned NOT_T1SYNC
: 1;
283 unsigned T1OSCEN
: 1;
284 unsigned T1CKPS0
: 1;
285 unsigned T1CKPS1
: 1;
298 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
302 #define _NOT_T1SYNC 0x04
303 #define _T1OSCEN 0x08
304 #define _T1CKPS0 0x10
305 #define _T1CKPS1 0x20
309 //==============================================================================
312 //==============================================================================
315 extern __at(0x0018) __sfr WDTCON
;
339 extern __at(0x0018) volatile __WDTCONbits_t WDTCONbits
;
347 //==============================================================================
350 //==============================================================================
353 extern __at(0x0019) __sfr CMCON0
;
376 extern __at(0x0019) volatile __CMCON0bits_t CMCON0bits
;
387 //==============================================================================
390 //==============================================================================
393 extern __at(0x001A) __sfr CMCON1
;
407 extern __at(0x001A) volatile __CMCON1bits_t CMCON1bits
;
412 //==============================================================================
415 //==============================================================================
418 extern __at(0x0081) __sfr OPTION_REG
;
431 unsigned NOT_RAPU
: 1;
439 } __OPTION_REGbits_t
;
441 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
450 #define _NOT_RAPU 0x80
452 //==============================================================================
455 //==============================================================================
458 extern __at(0x0085) __sfr TRISA
;
481 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
490 //==============================================================================
493 //==============================================================================
496 extern __at(0x0087) __sfr TRISC
;
519 extern __at(0x0087) volatile __TRISCbits_t TRISCbits
;
528 //==============================================================================
531 //==============================================================================
534 extern __at(0x008C) __sfr PIE1
;
548 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
558 //==============================================================================
561 //==============================================================================
564 extern __at(0x008E) __sfr PCON
;
570 unsigned NOT_BOR
: 1;
571 unsigned NOT_POR
: 1;
573 unsigned NOT_WUR
: 1;
582 unsigned NOT_BOD
: 1;
593 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
595 #define _NOT_BOR 0x01
596 #define _NOT_BOD 0x01
597 #define _NOT_POR 0x02
598 #define _NOT_WUR 0x08
603 //==============================================================================
606 //==============================================================================
609 extern __at(0x008F) __sfr OSCCON
;
633 extern __at(0x008F) volatile __OSCCONbits_t OSCCONbits
;
643 //==============================================================================
646 //==============================================================================
649 extern __at(0x0090) __sfr OSCTUNE
;
672 extern __at(0x0090) volatile __OSCTUNEbits_t OSCTUNEbits
;
680 //==============================================================================
683 //==============================================================================
686 extern __at(0x0094) __sfr LVDCON
;
709 extern __at(0x0094) volatile __LVDCONbits_t LVDCONbits
;
717 //==============================================================================
720 //==============================================================================
723 extern __at(0x0095) __sfr WPUDA
;
737 extern __at(0x0095) volatile __WPUDAbits_t WPUDAbits
;
745 //==============================================================================
748 //==============================================================================
751 extern __at(0x0096) __sfr IOCA
;
774 extern __at(0x0096) volatile __IOCAbits_t IOCAbits
;
783 //==============================================================================
786 //==============================================================================
789 extern __at(0x0097) __sfr WDA
;
803 extern __at(0x0097) volatile __WDAbits_t WDAbits
;
811 //==============================================================================
814 //==============================================================================
817 extern __at(0x0099) __sfr VRCON
;
840 extern __at(0x0099) volatile __VRCONbits_t VRCONbits
;
849 //==============================================================================
851 extern __at(0x009A) __sfr EEDAT
;
852 extern __at(0x009A) __sfr EEDATA
;
853 extern __at(0x009B) __sfr EEADR
;
855 //==============================================================================
858 extern __at(0x009C) __sfr EECON1
;
872 extern __at(0x009C) volatile __EECON1bits_t EECON1bits
;
879 //==============================================================================
881 extern __at(0x009D) __sfr EECON2
;
883 //==============================================================================
886 extern __at(0x0110) __sfr CRCON
;
898 unsigned ENC_NOT_DEC
: 1;
899 unsigned GO_NOT_DONE
: 1;
910 unsigned ENC_DEC
: 1;
921 extern __at(0x0110) volatile __CRCONbits_t CRCONbits
;
925 #define _ENC_NOT_DEC 0x40
926 #define _ENC_DEC 0x40
927 #define _GO_NOT_DONE 0x80
930 //==============================================================================
932 extern __at(0x0111) __sfr CRDAT0
;
933 extern __at(0x0112) __sfr CRDAT1
;
934 extern __at(0x0113) __sfr CRDAT2
;
935 extern __at(0x0114) __sfr CRDAT3
;
937 //==============================================================================
939 // Configuration Bits
941 //==============================================================================
943 #define _CONFIG 0x2007
945 //----------------------------- CONFIG Options -------------------------------
947 #define _FOSC_LP 0x3FF8 // LP oscillator: Low-power crystal on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
948 #define _LP_OSC 0x3FF8 // LP oscillator: Low-power crystal on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
949 #define _FOSC_XT 0x3FF9 // XT oscillator: Crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
950 #define _XT_OSC 0x3FF9 // XT oscillator: Crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
951 #define _FOSC_HS 0x3FFA // HS oscillator: High-speed crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
952 #define _HS_OSC 0x3FFA // HS oscillator: High-speed crystal/resonator on RA5/T1CKI/OSC1/CLKIN and RA4/T1G/OSC2/CLKOUT.
953 #define _FOSC_EC 0x3FFB // EC: I/O function on RA4/T1G/OSC2/CLKOUT, CLKIN on RA5/T1CKI/OSC1/CLKIN.
954 #define _EC_OSC 0x3FFB // EC: I/O function on RA4/T1G/OSC2/CLKOUT, CLKIN on RA5/T1CKI/OSC1/CLKIN.
955 #define _FOSC_INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
956 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTOSCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
957 #define _FOSC_INTOSCCLK 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
958 #define _INTRC_OSC_CLKOUT 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, I/O function on RA5/T1CKI/OSC1/CLKIN.
959 #define _FOSC_EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
960 #define _EXTRC_OSC_NOCLKOUT 0x3FFE // RCIO oscillator: I/O function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
961 #define _FOSC_EXTRCCLK 0x3FFF // RC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
962 #define _EXTRC_OSC_CLKOUT 0x3FFF // RC oscillator: CLKOUT function on RA4/T1G/OSC2/CLKOUT pin, RC on RA5/T1CKI/OSC1/CLKIN.
963 #define _WDTE_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
964 #define _WDT_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
965 #define _WDTE_ON 0x3FFF // WDT enabled.
966 #define _WDT_ON 0x3FFF // WDT enabled.
967 #define _PWRTE_ON 0x3FEF // PWRT enabled.
968 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
969 #define _MCLRE_OFF 0x3FDF // MCLR pin function is alternate function, MCLR function is internally disabled.
970 #define _MCLRE_ON 0x3FFF // MCLR pin is MCLR function and weak internal pull-up is enabled.
971 #define _CP_ON 0x3FBF // Program memory is external read and write-protected.
972 #define _CP_OFF 0x3FFF // Program memory is not code protected.
973 #define _CPD_ON 0x3F7F // Data memory is external read protected.
974 #define _CPD_OFF 0x3FFF // Data memory is not code protected.
975 #define _BOREN_OFF 0x3CFF // BOD and SBODEN disabled.
976 #define _BOD_OFF 0x3CFF // BOD and SBODEN disabled.
977 #define _BOREN_SBODEN 0x3DFF // SBODEN controls BOD function.
978 #define _BOD_SBODEN 0x3DFF // SBODEN controls BOD function.
979 #define _BOREN_NSLEEP 0x3EFF // BOD enabled while running and disabled in Sleep. SBODEN bit disabled.
980 #define _BOD_NSLEEP 0x3EFF // BOD enabled while running and disabled in Sleep. SBODEN bit disabled.
981 #define _BOREN_ON 0x3FFF // BOD enabled and SBOdEN bit disabled.
982 #define _BOD_ON 0x3FFF // BOD enabled and SBOdEN bit disabled.
983 #define _IESO_OFF 0x3BFF // Internal External Switchover mode disabled.
984 #define _IESO_ON 0x3FFF // Internal External Switchover mode enabled.
985 #define _FCMEN_OFF 0x37FF // Fail-Safe Clock Monitor disabled.
986 #define _FCMEN_ON 0x3FFF // Fail-Safe Clock Monitor enabled.
987 #define _WURE_ON 0x2FFF // Wake-up and Reset enabled.
988 #define _WUREN_ON 0x2FFF // Wake-up and Reset enabled.
989 #define _WURE_OFF 0x3FFF // Standard wake-up and continue enabled.
990 #define _WUREN_OFF 0x3FFF // Standard wake-up and continue enabled.
992 //==============================================================================
994 #define _DEVID1 0x2006
996 #define _IDLOC0 0x2000
997 #define _IDLOC1 0x2001
998 #define _IDLOC2 0x2002
999 #define _IDLOC3 0x2003
1001 //==============================================================================
1003 #ifndef NO_BIT_DEFINES
1005 #define CM0 CMCON0bits.CM0 // bit 0
1006 #define CM1 CMCON0bits.CM1 // bit 1
1007 #define CM2 CMCON0bits.CM2 // bit 2
1008 #define CIS CMCON0bits.CIS // bit 3
1009 #define C1INV CMCON0bits.C1INV // bit 4
1010 #define C2INV CMCON0bits.C2INV // bit 5
1011 #define C1OUT CMCON0bits.C1OUT // bit 6
1012 #define C2OUT CMCON0bits.C2OUT // bit 7
1014 #define C2SYNC CMCON1bits.C2SYNC // bit 0
1015 #define T1GSS CMCON1bits.T1GSS // bit 1
1017 #define CRREG0 CRCONbits.CRREG0 // bit 0
1018 #define CRREG1 CRCONbits.CRREG1 // bit 1
1019 #define ENC_NOT_DEC CRCONbits.ENC_NOT_DEC // bit 6, shadows bit in CRCONbits
1020 #define ENC_DEC CRCONbits.ENC_DEC // bit 6, shadows bit in CRCONbits
1021 #define GO_NOT_DONE CRCONbits.GO_NOT_DONE // bit 7, shadows bit in CRCONbits
1022 #define GO CRCONbits.GO // bit 7, shadows bit in CRCONbits
1024 #define RD EECON1bits.RD // bit 0
1025 #define WR EECON1bits.WR // bit 1
1026 #define WREN EECON1bits.WREN // bit 2
1027 #define WRERR EECON1bits.WRERR // bit 3
1029 #define RAIF INTCONbits.RAIF // bit 0
1030 #define INTF INTCONbits.INTF // bit 1
1031 #define T0IF INTCONbits.T0IF // bit 2
1032 #define RAIE INTCONbits.RAIE // bit 3
1033 #define INTE INTCONbits.INTE // bit 4
1034 #define T0IE INTCONbits.T0IE // bit 5
1035 #define PEIE INTCONbits.PEIE // bit 6
1036 #define GIE INTCONbits.GIE // bit 7
1038 #define IOCA0 IOCAbits.IOCA0 // bit 0
1039 #define IOCA1 IOCAbits.IOCA1 // bit 1
1040 #define IOCA2 IOCAbits.IOCA2 // bit 2
1041 #define IOCA3 IOCAbits.IOCA3 // bit 3
1042 #define IOCA4 IOCAbits.IOCA4 // bit 4
1043 #define IOCA5 IOCAbits.IOCA5 // bit 5
1045 #define LVDL0 LVDCONbits.LVDL0 // bit 0
1046 #define LVDL1 LVDCONbits.LVDL1 // bit 1
1047 #define LVDL2 LVDCONbits.LVDL2 // bit 2
1048 #define LVDEN LVDCONbits.LVDEN // bit 4
1049 #define IRVST LVDCONbits.IRVST // bit 5
1051 #define PS0 OPTION_REGbits.PS0 // bit 0
1052 #define PS1 OPTION_REGbits.PS1 // bit 1
1053 #define PS2 OPTION_REGbits.PS2 // bit 2
1054 #define PSA OPTION_REGbits.PSA // bit 3
1055 #define T0SE OPTION_REGbits.T0SE // bit 4
1056 #define T0CS OPTION_REGbits.T0CS // bit 5
1057 #define INTEDG OPTION_REGbits.INTEDG // bit 6
1058 #define NOT_RAPU OPTION_REGbits.NOT_RAPU // bit 7
1060 #define SCS OSCCONbits.SCS // bit 0
1061 #define LTS OSCCONbits.LTS // bit 1
1062 #define HTS OSCCONbits.HTS // bit 2
1063 #define OSTS OSCCONbits.OSTS // bit 3
1064 #define IRCF0 OSCCONbits.IRCF0 // bit 4
1065 #define IRCF1 OSCCONbits.IRCF1 // bit 5
1066 #define IRCF2 OSCCONbits.IRCF2 // bit 6
1068 #define TUN0 OSCTUNEbits.TUN0 // bit 0
1069 #define TUN1 OSCTUNEbits.TUN1 // bit 1
1070 #define TUN2 OSCTUNEbits.TUN2 // bit 2
1071 #define TUN3 OSCTUNEbits.TUN3 // bit 3
1072 #define TUN4 OSCTUNEbits.TUN4 // bit 4
1074 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
1075 #define NOT_BOD PCONbits.NOT_BOD // bit 0, shadows bit in PCONbits
1076 #define NOT_POR PCONbits.NOT_POR // bit 1
1077 #define NOT_WUR PCONbits.NOT_WUR // bit 3
1078 #define SBOREN PCONbits.SBOREN // bit 4, shadows bit in PCONbits
1079 #define SBODEN PCONbits.SBODEN // bit 4, shadows bit in PCONbits
1080 #define ULPWUE PCONbits.ULPWUE // bit 5
1082 #define TMR1IE PIE1bits.TMR1IE // bit 0
1083 #define OSFIE PIE1bits.OSFIE // bit 2
1084 #define C1IE PIE1bits.C1IE // bit 3
1085 #define C2IE PIE1bits.C2IE // bit 4
1086 #define CRIE PIE1bits.CRIE // bit 5
1087 #define LVDIE PIE1bits.LVDIE // bit 6
1088 #define EEIE PIE1bits.EEIE // bit 7
1090 #define TMR1IF PIR1bits.TMR1IF // bit 0
1091 #define OSFIF PIR1bits.OSFIF // bit 2
1092 #define C1IF PIR1bits.C1IF // bit 3
1093 #define C2IF PIR1bits.C2IF // bit 4
1094 #define CRIF PIR1bits.CRIF // bit 5
1095 #define LVDIF PIR1bits.LVDIF // bit 6
1096 #define EEIF PIR1bits.EEIF // bit 7
1098 #define RA0 PORTAbits.RA0 // bit 0
1099 #define RA1 PORTAbits.RA1 // bit 1
1100 #define RA2 PORTAbits.RA2 // bit 2
1101 #define RA3 PORTAbits.RA3 // bit 3
1102 #define RA4 PORTAbits.RA4 // bit 4
1103 #define RA5 PORTAbits.RA5 // bit 5
1105 #define RC0 PORTCbits.RC0 // bit 0
1106 #define RC1 PORTCbits.RC1 // bit 1
1107 #define RC2 PORTCbits.RC2 // bit 2
1108 #define RC3 PORTCbits.RC3 // bit 3
1109 #define RC4 PORTCbits.RC4 // bit 4
1110 #define RC5 PORTCbits.RC5 // bit 5
1112 #define C STATUSbits.C // bit 0
1113 #define DC STATUSbits.DC // bit 1
1114 #define Z STATUSbits.Z // bit 2
1115 #define NOT_PD STATUSbits.NOT_PD // bit 3
1116 #define NOT_TO STATUSbits.NOT_TO // bit 4
1117 #define RP0 STATUSbits.RP0 // bit 5
1118 #define RP1 STATUSbits.RP1 // bit 6
1119 #define IRP STATUSbits.IRP // bit 7
1121 #define TMR1ON T1CONbits.TMR1ON // bit 0
1122 #define TMR1CS T1CONbits.TMR1CS // bit 1
1123 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
1124 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
1125 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
1126 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
1127 #define TMR1GE T1CONbits.TMR1GE // bit 6
1128 #define T1GINV T1CONbits.T1GINV // bit 7
1130 #define TRISA0 TRISAbits.TRISA0 // bit 0
1131 #define TRISA1 TRISAbits.TRISA1 // bit 1
1132 #define TRISA2 TRISAbits.TRISA2 // bit 2
1133 #define TRISA3 TRISAbits.TRISA3 // bit 3
1134 #define TRISA4 TRISAbits.TRISA4 // bit 4
1135 #define TRISA5 TRISAbits.TRISA5 // bit 5
1137 #define TRISC0 TRISCbits.TRISC0 // bit 0
1138 #define TRISC1 TRISCbits.TRISC1 // bit 1
1139 #define TRISC2 TRISCbits.TRISC2 // bit 2
1140 #define TRISC3 TRISCbits.TRISC3 // bit 3
1141 #define TRISC4 TRISCbits.TRISC4 // bit 4
1142 #define TRISC5 TRISCbits.TRISC5 // bit 5
1144 #define VR0 VRCONbits.VR0 // bit 0
1145 #define VR1 VRCONbits.VR1 // bit 1
1146 #define VR2 VRCONbits.VR2 // bit 2
1147 #define VR3 VRCONbits.VR3 // bit 3
1148 #define VRR VRCONbits.VRR // bit 5
1149 #define VREN VRCONbits.VREN // bit 7
1151 #define WDA0 WDAbits.WDA0 // bit 0
1152 #define WDA1 WDAbits.WDA1 // bit 1
1153 #define WDA2 WDAbits.WDA2 // bit 2
1154 #define WDA4 WDAbits.WDA4 // bit 4
1155 #define WDA5 WDAbits.WDA5 // bit 5
1157 #define SWDTEN WDTCONbits.SWDTEN // bit 0
1158 #define WDTPS0 WDTCONbits.WDTPS0 // bit 1
1159 #define WDTPS1 WDTCONbits.WDTPS1 // bit 2
1160 #define WDTPS2 WDTCONbits.WDTPS2 // bit 3
1161 #define WDTPS3 WDTCONbits.WDTPS3 // bit 4
1163 #define WPUDA0 WPUDAbits.WPUDA0 // bit 0
1164 #define WPUDA1 WPUDAbits.WPUDA1 // bit 1
1165 #define WPUDA2 WPUDAbits.WPUDA2 // bit 2
1166 #define WPUDA4 WPUDAbits.WPUDA4 // bit 4
1167 #define WPUDA5 WPUDAbits.WPUDA5 // bit 5
1169 #endif // #ifndef NO_BIT_DEFINES
1171 #endif // #ifndef __PIC16F639_H__