2 * This declarations of the PIC16HV616 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:56 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 __PIC16HV616_H__
26 #define __PIC16HV616_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 TMR2_ADDR 0x0011
51 #define T2CON_ADDR 0x0012
52 #define CCPR1_ADDR 0x0013
53 #define CCPR1L_ADDR 0x0013
54 #define CCPR1H_ADDR 0x0014
55 #define CCP1CON_ADDR 0x0015
56 #define PWM1CON_ADDR 0x0016
57 #define ECCPAS_ADDR 0x0017
58 #define VRCON_ADDR 0x0019
59 #define CM1CON0_ADDR 0x001A
60 #define CM2CON0_ADDR 0x001B
61 #define CM2CON1_ADDR 0x001C
62 #define ADRESH_ADDR 0x001E
63 #define ADCON0_ADDR 0x001F
64 #define OPTION_REG_ADDR 0x0081
65 #define TRISA_ADDR 0x0085
66 #define TRISC_ADDR 0x0087
67 #define PIE1_ADDR 0x008C
68 #define PCON_ADDR 0x008E
69 #define OSCTUNE_ADDR 0x0090
70 #define ANSEL_ADDR 0x0091
71 #define PR2_ADDR 0x0092
72 #define WPU_ADDR 0x0095
73 #define WPUA_ADDR 0x0095
74 #define IOC_ADDR 0x0096
75 #define IOCA_ADDR 0x0096
76 #define SRCON_ADDR 0x0099
77 #define SRCON0_ADDR 0x0099
78 #define SRCON1_ADDR 0x009A
79 #define ADRESL_ADDR 0x009E
80 #define ADCON1_ADDR 0x009F
82 #endif // #ifndef NO_ADDR_DEFINES
84 //==============================================================================
86 // Register Definitions
88 //==============================================================================
90 extern __at(0x0000) __sfr INDF
;
91 extern __at(0x0001) __sfr TMR0
;
92 extern __at(0x0002) __sfr PCL
;
94 //==============================================================================
97 extern __at(0x0003) __sfr STATUS
;
121 extern __at(0x0003) volatile __STATUSbits_t STATUSbits
;
132 //==============================================================================
134 extern __at(0x0004) __sfr FSR
;
136 //==============================================================================
139 extern __at(0x0005) __sfr PORTA
;
162 extern __at(0x0005) volatile __PORTAbits_t PORTAbits
;
171 //==============================================================================
174 //==============================================================================
177 extern __at(0x0007) __sfr PORTC
;
200 extern __at(0x0007) volatile __PORTCbits_t PORTCbits
;
209 //==============================================================================
211 extern __at(0x000A) __sfr PCLATH
;
213 //==============================================================================
216 extern __at(0x000B) __sfr INTCON
;
245 extern __at(0x000B) volatile __INTCONbits_t INTCONbits
;
258 //==============================================================================
261 //==============================================================================
264 extern __at(0x000C) __sfr PIR1
;
293 extern __at(0x000C) volatile __PIR1bits_t PIR1bits
;
305 //==============================================================================
307 extern __at(0x000E) __sfr TMR1
;
308 extern __at(0x000E) __sfr TMR1L
;
309 extern __at(0x000F) __sfr TMR1H
;
311 //==============================================================================
314 extern __at(0x0010) __sfr T1CON
;
322 unsigned NOT_T1SYNC
: 1;
323 unsigned T1OSCEN
: 1;
324 unsigned T1CKPS0
: 1;
325 unsigned T1CKPS1
: 1;
338 extern __at(0x0010) volatile __T1CONbits_t T1CONbits
;
342 #define _NOT_T1SYNC 0x04
343 #define _T1OSCEN 0x08
344 #define _T1CKPS0 0x10
345 #define _T1CKPS1 0x20
349 //==============================================================================
351 extern __at(0x0011) __sfr TMR2
;
353 //==============================================================================
356 extern __at(0x0012) __sfr T2CON
;
362 unsigned T2CKPS0
: 1;
363 unsigned T2CKPS1
: 1;
365 unsigned TOUTPS0
: 1;
366 unsigned TOUTPS1
: 1;
367 unsigned TOUTPS2
: 1;
368 unsigned TOUTPS3
: 1;
386 extern __at(0x0012) volatile __T2CONbits_t T2CONbits
;
388 #define _T2CKPS0 0x01
389 #define _T2CKPS1 0x02
391 #define _TOUTPS0 0x08
392 #define _TOUTPS1 0x10
393 #define _TOUTPS2 0x20
394 #define _TOUTPS3 0x40
396 //==============================================================================
398 extern __at(0x0013) __sfr CCPR1
;
399 extern __at(0x0013) __sfr CCPR1L
;
400 extern __at(0x0014) __sfr CCPR1H
;
402 //==============================================================================
405 extern __at(0x0015) __sfr CCP1CON
;
441 extern __at(0x0015) volatile __CCP1CONbits_t CCP1CONbits
;
452 //==============================================================================
455 //==============================================================================
458 extern __at(0x0016) __sfr PWM1CON
;
481 extern __at(0x0016) volatile __PWM1CONbits_t PWM1CONbits
;
492 //==============================================================================
495 //==============================================================================
498 extern __at(0x0017) __sfr ECCPAS
;
508 unsigned ECCPAS0
: 1;
509 unsigned ECCPAS1
: 1;
510 unsigned ECCPAS2
: 1;
511 unsigned ECCPASE
: 1;
535 extern __at(0x0017) volatile __ECCPASbits_t ECCPASbits
;
541 #define _ECCPAS0 0x10
542 #define _ECCPAS1 0x20
543 #define _ECCPAS2 0x40
544 #define _ECCPASE 0x80
546 //==============================================================================
549 //==============================================================================
552 extern __at(0x0019) __sfr VRCON
;
587 extern __at(0x0019) volatile __VRCONbits_t VRCONbits
;
599 //==============================================================================
602 //==============================================================================
605 extern __at(0x001A) __sfr CM1CON0
;
628 extern __at(0x001A) volatile __CM1CON0bits_t CM1CON0bits
;
638 //==============================================================================
641 //==============================================================================
644 extern __at(0x001B) __sfr CM2CON0
;
667 extern __at(0x001B) volatile __CM2CON0bits_t CM2CON0bits
;
677 //==============================================================================
680 //==============================================================================
683 extern __at(0x001C) __sfr CM2CON1
;
697 extern __at(0x001C) volatile __CM2CON1bits_t CM2CON1bits
;
707 //==============================================================================
709 extern __at(0x001E) __sfr ADRESH
;
711 //==============================================================================
714 extern __at(0x001F) __sfr ADCON0
;
721 unsigned GO_NOT_DONE
: 1;
745 unsigned NOT_DONE
: 1;
757 unsigned GO_DONE
: 1;
774 extern __at(0x001F) volatile __ADCON0bits_t ADCON0bits
;
777 #define _GO_NOT_DONE 0x02
779 #define _NOT_DONE 0x02
780 #define _GO_DONE 0x02
788 //==============================================================================
791 //==============================================================================
794 extern __at(0x0081) __sfr OPTION_REG
;
807 unsigned NOT_RAPU
: 1;
815 } __OPTION_REGbits_t
;
817 extern __at(0x0081) volatile __OPTION_REGbits_t OPTION_REGbits
;
826 #define _NOT_RAPU 0x80
828 //==============================================================================
831 //==============================================================================
834 extern __at(0x0085) __sfr TRISA
;
857 extern __at(0x0085) volatile __TRISAbits_t TRISAbits
;
866 //==============================================================================
869 //==============================================================================
872 extern __at(0x0087) __sfr TRISC
;
895 extern __at(0x0087) volatile __TRISCbits_t TRISCbits
;
904 //==============================================================================
907 //==============================================================================
910 extern __at(0x008C) __sfr PIE1
;
939 extern __at(0x008C) volatile __PIE1bits_t PIE1bits
;
951 //==============================================================================
954 //==============================================================================
957 extern __at(0x008E) __sfr PCON
;
963 unsigned NOT_BOR
: 1;
964 unsigned NOT_POR
: 1;
975 unsigned NOT_BOD
: 1;
986 extern __at(0x008E) volatile __PCONbits_t PCONbits
;
988 #define _NOT_BOR 0x01
989 #define _NOT_BOD 0x01
990 #define _NOT_POR 0x02
992 //==============================================================================
995 //==============================================================================
998 extern __at(0x0090) __sfr OSCTUNE
;
1021 extern __at(0x0090) volatile __OSCTUNEbits_t OSCTUNEbits
;
1029 //==============================================================================
1032 //==============================================================================
1035 extern __at(0x0091) __sfr ANSEL
;
1049 extern __at(0x0091) volatile __ANSELbits_t ANSELbits
;
1060 //==============================================================================
1062 extern __at(0x0092) __sfr PR2
;
1064 //==============================================================================
1067 extern __at(0x0095) __sfr WPU
;
1096 extern __at(0x0095) volatile __WPUbits_t WPUbits
;
1109 //==============================================================================
1112 //==============================================================================
1115 extern __at(0x0095) __sfr WPUA
;
1144 extern __at(0x0095) volatile __WPUAbits_t WPUAbits
;
1146 #define _WPUA_WPUA0 0x01
1147 #define _WPUA_WPU0 0x01
1148 #define _WPUA_WPUA1 0x02
1149 #define _WPUA_WPU1 0x02
1150 #define _WPUA_WPUA2 0x04
1151 #define _WPUA_WPU2 0x04
1152 #define _WPUA_WPUA4 0x10
1153 #define _WPUA_WPU4 0x10
1154 #define _WPUA_WPUA5 0x20
1155 #define _WPUA_WPU5 0x20
1157 //==============================================================================
1160 //==============================================================================
1163 extern __at(0x0096) __sfr IOC
;
1204 extern __at(0x0096) volatile __IOCbits_t IOCbits
;
1219 //==============================================================================
1222 //==============================================================================
1225 extern __at(0x0096) __sfr IOCA
;
1266 extern __at(0x0096) volatile __IOCAbits_t IOCAbits
;
1268 #define _IOCA_IOCA0 0x01
1269 #define _IOCA_IOC0 0x01
1270 #define _IOCA_IOCA1 0x02
1271 #define _IOCA_IOC1 0x02
1272 #define _IOCA_IOCA2 0x04
1273 #define _IOCA_IOC2 0x04
1274 #define _IOCA_IOCA3 0x08
1275 #define _IOCA_IOC3 0x08
1276 #define _IOCA_IOCA4 0x10
1277 #define _IOCA_IOC4 0x10
1278 #define _IOCA_IOCA5 0x20
1279 #define _IOCA_IOC5 0x20
1281 //==============================================================================
1284 //==============================================================================
1287 extern __at(0x0099) __sfr SRCON
;
1293 unsigned SRCLKEN
: 1;
1310 extern __at(0x0099) volatile __SRCONbits_t SRCONbits
;
1312 #define _SRCLKEN 0x01
1320 //==============================================================================
1323 //==============================================================================
1326 extern __at(0x0099) __sfr SRCON0
;
1332 unsigned SRCLKEN
: 1;
1349 extern __at(0x0099) volatile __SRCON0bits_t SRCON0bits
;
1351 #define _SRCON0_SRCLKEN 0x01
1352 #define _SRCON0_PULSR 0x04
1353 #define _SRCON0_PULSS 0x08
1354 #define _SRCON0_C2REN 0x10
1355 #define _SRCON0_C1SEN 0x20
1356 #define _SRCON0_SR0 0x40
1357 #define _SRCON0_SR1 0x80
1359 //==============================================================================
1362 //==============================================================================
1365 extern __at(0x009A) __sfr SRCON1
;
1388 extern __at(0x009A) volatile __SRCON1bits_t SRCON1bits
;
1393 //==============================================================================
1395 extern __at(0x009E) __sfr ADRESL
;
1397 //==============================================================================
1400 extern __at(0x009F) __sfr ADCON1
;
1424 extern __at(0x009F) volatile __ADCON1bits_t ADCON1bits
;
1430 //==============================================================================
1433 //==============================================================================
1435 // Configuration Bits
1437 //==============================================================================
1439 #define _CONFIG 0x2007
1441 //----------------------------- CONFIG Options -------------------------------
1443 #define _FOSC_LP 0x3FF8 // LP oscillator: Low-power crystal on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1444 #define _LP_OSC 0x3FF8 // LP oscillator: Low-power crystal on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1445 #define _FOSC_XT 0x3FF9 // XT oscillator: Crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1446 #define _XT_OSC 0x3FF9 // XT oscillator: Crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1447 #define _FOSC_HS 0x3FFA // HS oscillator: High-speed crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1448 #define _HS_OSC 0x3FFA // HS oscillator: High-speed crystal/resonator on RA4/OSC2/CLKOUT and RA5/OSC1/CLKIN.
1449 #define _FOSC_EC 0x3FFB // EC: I/O function on RA4/OSC2/CLKOUT pin, CLKIN on RA5/OSC1/CLKIN.
1450 #define _EC_OSC 0x3FFB // EC: I/O function on RA4/OSC2/CLKOUT pin, CLKIN on RA5/OSC1/CLKIN.
1451 #define _FOSC_INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1452 #define _INTRC_OSC_NOCLKOUT 0x3FFC // INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1453 #define _INTOSCIO 0x3FFC // INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1454 #define _FOSC_INTOSCCLK 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1455 #define _INTRC_OSC_CLKOUT 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1456 #define _INTOSC 0x3FFD // INTOSC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN.
1457 #define _FOSC_EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1458 #define _EXTRC_OSC_NOCLKOUT 0x3FFE // RCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1459 #define _EXTRCIO 0x3FFE // RCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1460 #define _FOSC_EXTRCCLK 0x3FFF // RC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1461 #define _EXTRC_OSC_CLKOUT 0x3FFF // RC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1462 #define _EXTRC 0x3FFF // RC oscillator: CLKOUT function on RA4/OSC2/CLKOUT pin, RC on RA5/OSC1/CLKIN.
1463 #define _WDTE_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
1464 #define _WDT_OFF 0x3FF7 // WDT disabled and can be enabled by SWDTEN bit of the WDTCON register.
1465 #define _WDTE_ON 0x3FFF // WDT enabled.
1466 #define _WDT_ON 0x3FFF // WDT enabled.
1467 #define _PWRTE_ON 0x3FEF // PWRT enabled.
1468 #define _PWRTE_OFF 0x3FFF // PWRT disabled.
1469 #define _MCLRE_OFF 0x3FDF // MCLR pin function is digital input, MCLR internally tied to VDD.
1470 #define _MCLRE_ON 0x3FFF // MCLR pin function is MCLR.
1471 #define _CP_ON 0x3FBF // Program memory code protection is enabled.
1472 #define _CP_OFF 0x3FFF // Program memory code protection is disabled.
1473 #define _IOSCFS_4MHZ 0x3F7F // 4 MHz.
1474 #define _IOSCFS4 0x3F7F // 4 MHz.
1475 #define _IOSCFS_8MHZ 0x3FFF // 8 MHz.
1476 #define _IOSCFS8 0x3FFF // 8 MHz.
1477 #define _BOREN_OFF 0x3CFF // BOR Disabled.
1478 #define _BOD_OFF 0x3CFF // BOR Disabled.
1479 #define _BOR_OFF 0x3CFF // BOR Disabled.
1480 #define _BOREN_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
1481 #define _BOD_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
1482 #define _BOR_NSLEEP 0x3EFF // BOR enabled during operation and disabled in Sleep.
1483 #define _BOREN_ON 0x3FFF // BOR enabled.
1484 #define _BOD_ON 0x3FFF // BOR enabled.
1485 #define _BOR_ON 0x3FFF // BOR enabled.
1487 //==============================================================================
1489 #define _DEVID1 0x2006
1491 #define _IDLOC0 0x2000
1492 #define _IDLOC1 0x2001
1493 #define _IDLOC2 0x2002
1494 #define _IDLOC3 0x2003
1496 //==============================================================================
1498 #ifndef NO_BIT_DEFINES
1500 #define ADON ADCON0bits.ADON // bit 0
1501 #define GO_NOT_DONE ADCON0bits.GO_NOT_DONE // bit 1, shadows bit in ADCON0bits
1502 #define GO ADCON0bits.GO // bit 1, shadows bit in ADCON0bits
1503 #define NOT_DONE ADCON0bits.NOT_DONE // bit 1, shadows bit in ADCON0bits
1504 #define GO_DONE ADCON0bits.GO_DONE // bit 1, shadows bit in ADCON0bits
1505 #define CHS0 ADCON0bits.CHS0 // bit 2
1506 #define CHS1 ADCON0bits.CHS1 // bit 3
1507 #define CHS2 ADCON0bits.CHS2 // bit 4
1508 #define CHS3 ADCON0bits.CHS3 // bit 5
1509 #define VCFG ADCON0bits.VCFG // bit 6
1510 #define ADFM ADCON0bits.ADFM // bit 7
1512 #define ADCS0 ADCON1bits.ADCS0 // bit 4
1513 #define ADCS1 ADCON1bits.ADCS1 // bit 5
1514 #define ADCS2 ADCON1bits.ADCS2 // bit 6
1516 #define ANS0 ANSELbits.ANS0 // bit 0
1517 #define ANS1 ANSELbits.ANS1 // bit 1
1518 #define ANS2 ANSELbits.ANS2 // bit 2
1519 #define ANS3 ANSELbits.ANS3 // bit 3
1520 #define ANS4 ANSELbits.ANS4 // bit 4
1521 #define ANS5 ANSELbits.ANS5 // bit 5
1522 #define ANS6 ANSELbits.ANS6 // bit 6
1523 #define ANS7 ANSELbits.ANS7 // bit 7
1525 #define CCP1M0 CCP1CONbits.CCP1M0 // bit 0
1526 #define CCP1M1 CCP1CONbits.CCP1M1 // bit 1
1527 #define CCP1M2 CCP1CONbits.CCP1M2 // bit 2
1528 #define CCP1M3 CCP1CONbits.CCP1M3 // bit 3
1529 #define DC1B0 CCP1CONbits.DC1B0 // bit 4
1530 #define DC1B1 CCP1CONbits.DC1B1 // bit 5
1531 #define P1M0 CCP1CONbits.P1M0 // bit 6
1532 #define P1M1 CCP1CONbits.P1M1 // bit 7
1534 #define C1CH0 CM1CON0bits.C1CH0 // bit 0
1535 #define C1CH1 CM1CON0bits.C1CH1 // bit 1
1536 #define C1R CM1CON0bits.C1R // bit 2
1537 #define C1POL CM1CON0bits.C1POL // bit 4
1538 #define C1OE CM1CON0bits.C1OE // bit 5
1539 #define C1OUT CM1CON0bits.C1OUT // bit 6
1540 #define C1ON CM1CON0bits.C1ON // bit 7
1542 #define C2CH0 CM2CON0bits.C2CH0 // bit 0
1543 #define C2CH1 CM2CON0bits.C2CH1 // bit 1
1544 #define C2R CM2CON0bits.C2R // bit 2
1545 #define C2POL CM2CON0bits.C2POL // bit 4
1546 #define C2OE CM2CON0bits.C2OE // bit 5
1547 #define C2OUT CM2CON0bits.C2OUT // bit 6
1548 #define C2ON CM2CON0bits.C2ON // bit 7
1550 #define C2SYNC CM2CON1bits.C2SYNC // bit 0
1551 #define T1GSS CM2CON1bits.T1GSS // bit 1
1552 #define C2HYS CM2CON1bits.C2HYS // bit 2
1553 #define C1HYS CM2CON1bits.C1HYS // bit 3
1554 #define T1ACS CM2CON1bits.T1ACS // bit 4
1555 #define MC2OUT CM2CON1bits.MC2OUT // bit 6
1556 #define MC1OUT CM2CON1bits.MC1OUT // bit 7
1558 #define PSSBD0 ECCPASbits.PSSBD0 // bit 0
1559 #define PSSBD1 ECCPASbits.PSSBD1 // bit 1
1560 #define PSSAC0 ECCPASbits.PSSAC0 // bit 2
1561 #define PSSAC1 ECCPASbits.PSSAC1 // bit 3
1562 #define ECCPAS0 ECCPASbits.ECCPAS0 // bit 4
1563 #define ECCPAS1 ECCPASbits.ECCPAS1 // bit 5
1564 #define ECCPAS2 ECCPASbits.ECCPAS2 // bit 6
1565 #define ECCPASE ECCPASbits.ECCPASE // bit 7
1567 #define RAIF INTCONbits.RAIF // bit 0
1568 #define INTF INTCONbits.INTF // bit 1
1569 #define TMR0IF INTCONbits.TMR0IF // bit 2, shadows bit in INTCONbits
1570 #define T0IF INTCONbits.T0IF // bit 2, shadows bit in INTCONbits
1571 #define RAIE INTCONbits.RAIE // bit 3
1572 #define INTE INTCONbits.INTE // bit 4
1573 #define TMR0IE INTCONbits.TMR0IE // bit 5, shadows bit in INTCONbits
1574 #define T0IE INTCONbits.T0IE // bit 5, shadows bit in INTCONbits
1575 #define PEIE INTCONbits.PEIE // bit 6
1576 #define GIE INTCONbits.GIE // bit 7
1578 #define IOCA0 IOCbits.IOCA0 // bit 0, shadows bit in IOCbits
1579 #define IOC0 IOCbits.IOC0 // bit 0, shadows bit in IOCbits
1580 #define IOCA1 IOCbits.IOCA1 // bit 1, shadows bit in IOCbits
1581 #define IOC1 IOCbits.IOC1 // bit 1, shadows bit in IOCbits
1582 #define IOCA2 IOCbits.IOCA2 // bit 2, shadows bit in IOCbits
1583 #define IOC2 IOCbits.IOC2 // bit 2, shadows bit in IOCbits
1584 #define IOCA3 IOCbits.IOCA3 // bit 3, shadows bit in IOCbits
1585 #define IOC3 IOCbits.IOC3 // bit 3, shadows bit in IOCbits
1586 #define IOCA4 IOCbits.IOCA4 // bit 4, shadows bit in IOCbits
1587 #define IOC4 IOCbits.IOC4 // bit 4, shadows bit in IOCbits
1588 #define IOCA5 IOCbits.IOCA5 // bit 5, shadows bit in IOCbits
1589 #define IOC5 IOCbits.IOC5 // bit 5, shadows bit in IOCbits
1591 #define PS0 OPTION_REGbits.PS0 // bit 0
1592 #define PS1 OPTION_REGbits.PS1 // bit 1
1593 #define PS2 OPTION_REGbits.PS2 // bit 2
1594 #define PSA OPTION_REGbits.PSA // bit 3
1595 #define T0SE OPTION_REGbits.T0SE // bit 4
1596 #define T0CS OPTION_REGbits.T0CS // bit 5
1597 #define INTEDG OPTION_REGbits.INTEDG // bit 6
1598 #define NOT_RAPU OPTION_REGbits.NOT_RAPU // bit 7
1600 #define TUN0 OSCTUNEbits.TUN0 // bit 0
1601 #define TUN1 OSCTUNEbits.TUN1 // bit 1
1602 #define TUN2 OSCTUNEbits.TUN2 // bit 2
1603 #define TUN3 OSCTUNEbits.TUN3 // bit 3
1604 #define TUN4 OSCTUNEbits.TUN4 // bit 4
1606 #define NOT_BOR PCONbits.NOT_BOR // bit 0, shadows bit in PCONbits
1607 #define NOT_BOD PCONbits.NOT_BOD // bit 0, shadows bit in PCONbits
1608 #define NOT_POR PCONbits.NOT_POR // bit 1
1610 #define TMR1IE PIE1bits.TMR1IE // bit 0, shadows bit in PIE1bits
1611 #define T1IE PIE1bits.T1IE // bit 0, shadows bit in PIE1bits
1612 #define TMR2IE PIE1bits.TMR2IE // bit 1, shadows bit in PIE1bits
1613 #define T2IE PIE1bits.T2IE // bit 1, shadows bit in PIE1bits
1614 #define C1IE PIE1bits.C1IE // bit 3
1615 #define C2IE PIE1bits.C2IE // bit 4
1616 #define ECCPIE PIE1bits.ECCPIE // bit 5, shadows bit in PIE1bits
1617 #define CCP1IE PIE1bits.CCP1IE // bit 5, shadows bit in PIE1bits
1618 #define ADIE PIE1bits.ADIE // bit 6
1620 #define TMR1IF PIR1bits.TMR1IF // bit 0, shadows bit in PIR1bits
1621 #define T1IF PIR1bits.T1IF // bit 0, shadows bit in PIR1bits
1622 #define TMR2IF PIR1bits.TMR2IF // bit 1, shadows bit in PIR1bits
1623 #define T2IF PIR1bits.T2IF // bit 1, shadows bit in PIR1bits
1624 #define C1IF PIR1bits.C1IF // bit 3
1625 #define C2IF PIR1bits.C2IF // bit 4
1626 #define ECCPIF PIR1bits.ECCPIF // bit 5, shadows bit in PIR1bits
1627 #define CCP1IF PIR1bits.CCP1IF // bit 5, shadows bit in PIR1bits
1628 #define ADIF PIR1bits.ADIF // bit 6
1630 #define RA0 PORTAbits.RA0 // bit 0
1631 #define RA1 PORTAbits.RA1 // bit 1
1632 #define RA2 PORTAbits.RA2 // bit 2
1633 #define RA3 PORTAbits.RA3 // bit 3
1634 #define RA4 PORTAbits.RA4 // bit 4
1635 #define RA5 PORTAbits.RA5 // bit 5
1637 #define RC0 PORTCbits.RC0 // bit 0
1638 #define RC1 PORTCbits.RC1 // bit 1
1639 #define RC2 PORTCbits.RC2 // bit 2
1640 #define RC3 PORTCbits.RC3 // bit 3
1641 #define RC4 PORTCbits.RC4 // bit 4
1642 #define RC5 PORTCbits.RC5 // bit 5
1644 #define PDC0 PWM1CONbits.PDC0 // bit 0
1645 #define PDC1 PWM1CONbits.PDC1 // bit 1
1646 #define PDC2 PWM1CONbits.PDC2 // bit 2
1647 #define PDC3 PWM1CONbits.PDC3 // bit 3
1648 #define PDC4 PWM1CONbits.PDC4 // bit 4
1649 #define PDC5 PWM1CONbits.PDC5 // bit 5
1650 #define PDC6 PWM1CONbits.PDC6 // bit 6
1651 #define PRSEN PWM1CONbits.PRSEN // bit 7
1653 #define SRCLKEN SRCONbits.SRCLKEN // bit 0
1654 #define PULSR SRCONbits.PULSR // bit 2
1655 #define PULSS SRCONbits.PULSS // bit 3
1656 #define C2REN SRCONbits.C2REN // bit 4
1657 #define C1SEN SRCONbits.C1SEN // bit 5
1658 #define SR0 SRCONbits.SR0 // bit 6
1659 #define SR1 SRCONbits.SR1 // bit 7
1661 #define SRCS0 SRCON1bits.SRCS0 // bit 6
1662 #define SRCS1 SRCON1bits.SRCS1 // bit 7
1664 #define C STATUSbits.C // bit 0
1665 #define DC STATUSbits.DC // bit 1
1666 #define Z STATUSbits.Z // bit 2
1667 #define NOT_PD STATUSbits.NOT_PD // bit 3
1668 #define NOT_TO STATUSbits.NOT_TO // bit 4
1669 #define RP0 STATUSbits.RP0 // bit 5
1670 #define RP1 STATUSbits.RP1 // bit 6
1671 #define IRP STATUSbits.IRP // bit 7
1673 #define TMR1ON T1CONbits.TMR1ON // bit 0
1674 #define TMR1CS T1CONbits.TMR1CS // bit 1
1675 #define NOT_T1SYNC T1CONbits.NOT_T1SYNC // bit 2
1676 #define T1OSCEN T1CONbits.T1OSCEN // bit 3
1677 #define T1CKPS0 T1CONbits.T1CKPS0 // bit 4
1678 #define T1CKPS1 T1CONbits.T1CKPS1 // bit 5
1679 #define TMR1GE T1CONbits.TMR1GE // bit 6
1680 #define T1GINV T1CONbits.T1GINV // bit 7
1682 #define T2CKPS0 T2CONbits.T2CKPS0 // bit 0
1683 #define T2CKPS1 T2CONbits.T2CKPS1 // bit 1
1684 #define TMR2ON T2CONbits.TMR2ON // bit 2
1685 #define TOUTPS0 T2CONbits.TOUTPS0 // bit 3
1686 #define TOUTPS1 T2CONbits.TOUTPS1 // bit 4
1687 #define TOUTPS2 T2CONbits.TOUTPS2 // bit 5
1688 #define TOUTPS3 T2CONbits.TOUTPS3 // bit 6
1690 #define TRISA0 TRISAbits.TRISA0 // bit 0
1691 #define TRISA1 TRISAbits.TRISA1 // bit 1
1692 #define TRISA2 TRISAbits.TRISA2 // bit 2
1693 #define TRISA3 TRISAbits.TRISA3 // bit 3
1694 #define TRISA4 TRISAbits.TRISA4 // bit 4
1695 #define TRISA5 TRISAbits.TRISA5 // bit 5
1697 #define TRISC0 TRISCbits.TRISC0 // bit 0
1698 #define TRISC1 TRISCbits.TRISC1 // bit 1
1699 #define TRISC2 TRISCbits.TRISC2 // bit 2
1700 #define TRISC3 TRISCbits.TRISC3 // bit 3
1701 #define TRISC4 TRISCbits.TRISC4 // bit 4
1702 #define TRISC5 TRISCbits.TRISC5 // bit 5
1704 #define VR0 VRCONbits.VR0 // bit 0
1705 #define VR1 VRCONbits.VR1 // bit 1
1706 #define VR2 VRCONbits.VR2 // bit 2
1707 #define VR3 VRCONbits.VR3 // bit 3
1708 #define VP6EN VRCONbits.VP6EN // bit 4, shadows bit in VRCONbits
1709 #define FVREN VRCONbits.FVREN // bit 4, shadows bit in VRCONbits
1710 #define VRR VRCONbits.VRR // bit 5
1711 #define C2VREN VRCONbits.C2VREN // bit 6
1712 #define C1VREN VRCONbits.C1VREN // bit 7
1714 #define WPUA0 WPUbits.WPUA0 // bit 0, shadows bit in WPUbits
1715 #define WPU0 WPUbits.WPU0 // bit 0, shadows bit in WPUbits
1716 #define WPUA1 WPUbits.WPUA1 // bit 1, shadows bit in WPUbits
1717 #define WPU1 WPUbits.WPU1 // bit 1, shadows bit in WPUbits
1718 #define WPUA2 WPUbits.WPUA2 // bit 2, shadows bit in WPUbits
1719 #define WPU2 WPUbits.WPU2 // bit 2, shadows bit in WPUbits
1720 #define WPUA4 WPUbits.WPUA4 // bit 4, shadows bit in WPUbits
1721 #define WPU4 WPUbits.WPU4 // bit 4, shadows bit in WPUbits
1722 #define WPUA5 WPUbits.WPUA5 // bit 5, shadows bit in WPUbits
1723 #define WPU5 WPUbits.WPU5 // bit 5, shadows bit in WPUbits
1725 #endif // #ifndef NO_BIT_DEFINES
1727 #endif // #ifndef __PIC16HV616_H__