/usr/share/sdcc/include/pic/pic16f913.h is in sdcc-libraries 2.9.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 | //
// Register Declarations for Microchip 16F913 Processor
//
//
// This header file was automatically generated by:
//
// inc2h.pl V4783
//
// Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
//
// SDCC is licensed under the GNU Public license (GPL) v2. Note that
// this license covers the code to the compiler and other executables,
// but explicitly does not cover any code or objects generated by sdcc.
// We have not yet decided on a license for the run time libraries, but
// it will not put any requirements on code linked against it. See:
//
// http://www.gnu.org/copyleft/gpl/html
//
// See http://sdcc.sourceforge.net/ for the latest information on sdcc.
//
//
#ifndef P16F913_H
#define P16F913_H
//
// Register addresses.
//
#define INDF_ADDR 0x0000
#define TMR0_ADDR 0x0001
#define PCL_ADDR 0x0002
#define STATUS_ADDR 0x0003
#define FSR_ADDR 0x0004
#define PORTA_ADDR 0x0005
#define PORTB_ADDR 0x0006
#define PORTC_ADDR 0x0007
#define PORTE_ADDR 0x0009
#define PCLATH_ADDR 0x000A
#define INTCON_ADDR 0x000B
#define PIR1_ADDR 0x000C
#define PIR2_ADDR 0x000D
#define TMR1L_ADDR 0x000E
#define TMR1H_ADDR 0x000F
#define T1CON_ADDR 0x0010
#define TMR2_ADDR 0x0011
#define T2CON_ADDR 0x0012
#define SSPBUF_ADDR 0x0013
#define SSPCON_ADDR 0x0014
#define CCPR1L_ADDR 0x0015
#define CCPR1H_ADDR 0x0016
#define CCP1CON_ADDR 0x0017
#define RCSTA_ADDR 0x0018
#define TXREG_ADDR 0x0019
#define RCREG_ADDR 0x001A
#define ADRESH_ADDR 0x001E
#define ADCON0_ADDR 0x001F
#define OPTION_REG_ADDR 0x0081
#define TRISA_ADDR 0x0085
#define TRISB_ADDR 0x0086
#define TRISC_ADDR 0x0087
#define TRISE_ADDR 0x0089
#define PIE1_ADDR 0x008C
#define PIE2_ADDR 0x008D
#define PCON_ADDR 0x008E
#define OSCCON_ADDR 0x008F
#define OSCTUNE_ADDR 0x0090
#define ANSEL_ADDR 0x0091
#define PR2_ADDR 0x0092
#define SSPADD_ADDR 0x0093
#define SSPSTAT_ADDR 0x0094
#define WPUB_ADDR 0x0095
#define WPU_ADDR 0x0095
#define IOCB_ADDR 0x0096
#define IOC_ADDR 0x0096
#define CMCON1_ADDR 0x0097
#define TXSTA_ADDR 0x0098
#define SPBRG_ADDR 0x0099
#define CMCON0_ADDR 0x009C
#define VRCON_ADDR 0x009D
#define ADRESL_ADDR 0x009E
#define ADCON1_ADDR 0x009F
#define WDTCON_ADDR 0x0105
#define LCDCON_ADDR 0x0107
#define LCDPS_ADDR 0x0108
#define LVDCON_ADDR 0x0109
#define EEDATL_ADDR 0x010C
#define EEADRL_ADDR 0x010D
#define EEDATH_ADDR 0x010E
#define EEADRH_ADDR 0x010F
#define LCDDATA0_ADDR 0x0110
#define LCDDATA1_ADDR 0x0111
#define LCDDATA3_ADDR 0x0113
#define LCDDATA4_ADDR 0x0114
#define LCDDATA6_ADDR 0x0116
#define LCDDATA7_ADDR 0x0117
#define LCDDATA9_ADDR 0x0119
#define LCDDATA10_ADDR 0x011A
#define LCDSE0_ADDR 0x011C
#define LCDSE1_ADDR 0x011D
#define EECON1_ADDR 0x018C
#define EECON2_ADDR 0x018D
//
// Memory organization.
//
// LIST
// P16F913.INC Standard Header File, Version 1.04 Microchip Technology, Inc.
// NOLIST
// This header file defines configurations, registers, and other useful bits of
// information for the PIC16F913 microcontroller.
// These names are taken to match the data sheets as closely as possible.
// Note that the processor must be selected before this file is
// included. The processor may be selected the following ways:
// 1. Command line switch:
// C:\ MPASM MYFILE.ASM /PIC16F913
// 2. LIST directive in the source file
// LIST P=PIC16F913
// 3. Processor Type entry in the MPASM full-screen interface
//==========================================================================
//
// Revision History
//
//==========================================================================
//Rev: Date: Reason:
//1.00 06/11/04 Initial Release
//1.01 06/18/04 Corrected typo in 'bad ram' section
//1.02 08/16/04 Added EECON2
//1.03 05/20/05 Removed EECON2 from badram
//1.04 10/05/05 Correct names of bits in ANSEL, Add EEADRH and EEADRL bit
// definitions
//==========================================================================
//
// Verify Processor
//
//==========================================================================
// IFNDEF __16F913
// MESSG "Processor-header file mismatch. Verify selected processor."
// ENDIF
//==========================================================================
//
// Register Definitions
//
//==========================================================================
#define W 0x0000
#define F 0x0001
//----- Register Files------------------------------------------------------
extern __sfr __at (INDF_ADDR) INDF;
extern __sfr __at (TMR0_ADDR) TMR0;
extern __sfr __at (PCL_ADDR) PCL;
extern __sfr __at (STATUS_ADDR) STATUS;
extern __sfr __at (FSR_ADDR) FSR;
extern __sfr __at (PORTA_ADDR) PORTA;
extern __sfr __at (PORTB_ADDR) PORTB;
extern __sfr __at (PORTC_ADDR) PORTC;
extern __sfr __at (PORTE_ADDR) PORTE;
extern __sfr __at (PCLATH_ADDR) PCLATH;
extern __sfr __at (INTCON_ADDR) INTCON;
extern __sfr __at (PIR1_ADDR) PIR1;
extern __sfr __at (PIR2_ADDR) PIR2;
extern __sfr __at (TMR1L_ADDR) TMR1L;
extern __sfr __at (TMR1H_ADDR) TMR1H;
extern __sfr __at (T1CON_ADDR) T1CON;
extern __sfr __at (TMR2_ADDR) TMR2;
extern __sfr __at (T2CON_ADDR) T2CON;
extern __sfr __at (SSPBUF_ADDR) SSPBUF;
extern __sfr __at (SSPCON_ADDR) SSPCON;
extern __sfr __at (CCPR1L_ADDR) CCPR1L;
extern __sfr __at (CCPR1H_ADDR) CCPR1H;
extern __sfr __at (CCP1CON_ADDR) CCP1CON;
extern __sfr __at (RCSTA_ADDR) RCSTA;
extern __sfr __at (TXREG_ADDR) TXREG;
extern __sfr __at (RCREG_ADDR) RCREG;
extern __sfr __at (ADRESH_ADDR) ADRESH;
extern __sfr __at (ADCON0_ADDR) ADCON0;
extern __sfr __at (OPTION_REG_ADDR) OPTION_REG;
extern __sfr __at (TRISA_ADDR) TRISA;
extern __sfr __at (TRISB_ADDR) TRISB;
extern __sfr __at (TRISC_ADDR) TRISC;
extern __sfr __at (TRISE_ADDR) TRISE;
extern __sfr __at (PIE1_ADDR) PIE1;
extern __sfr __at (PIE2_ADDR) PIE2;
extern __sfr __at (PCON_ADDR) PCON;
extern __sfr __at (OSCCON_ADDR) OSCCON;
extern __sfr __at (OSCTUNE_ADDR) OSCTUNE;
extern __sfr __at (ANSEL_ADDR) ANSEL;
extern __sfr __at (PR2_ADDR) PR2;
extern __sfr __at (SSPADD_ADDR) SSPADD;
extern __sfr __at (SSPSTAT_ADDR) SSPSTAT;
extern __sfr __at (WPUB_ADDR) WPUB;
extern __sfr __at (WPU_ADDR) WPU;
extern __sfr __at (IOCB_ADDR) IOCB;
extern __sfr __at (IOC_ADDR) IOC;
extern __sfr __at (CMCON1_ADDR) CMCON1;
extern __sfr __at (TXSTA_ADDR) TXSTA;
extern __sfr __at (SPBRG_ADDR) SPBRG;
extern __sfr __at (CMCON0_ADDR) CMCON0;
extern __sfr __at (VRCON_ADDR) VRCON;
extern __sfr __at (ADRESL_ADDR) ADRESL;
extern __sfr __at (ADCON1_ADDR) ADCON1;
extern __sfr __at (WDTCON_ADDR) WDTCON;
extern __sfr __at (LCDCON_ADDR) LCDCON;
extern __sfr __at (LCDPS_ADDR) LCDPS;
extern __sfr __at (LVDCON_ADDR) LVDCON;
extern __sfr __at (EEDATL_ADDR) EEDATL;
extern __sfr __at (EEADRL_ADDR) EEADRL;
extern __sfr __at (EEDATH_ADDR) EEDATH;
extern __sfr __at (EEADRH_ADDR) EEADRH;
extern __sfr __at (LCDDATA0_ADDR) LCDDATA0;
extern __sfr __at (LCDDATA1_ADDR) LCDDATA1;
extern __sfr __at (LCDDATA3_ADDR) LCDDATA3;
extern __sfr __at (LCDDATA4_ADDR) LCDDATA4;
extern __sfr __at (LCDDATA6_ADDR) LCDDATA6;
extern __sfr __at (LCDDATA7_ADDR) LCDDATA7;
extern __sfr __at (LCDDATA9_ADDR) LCDDATA9;
extern __sfr __at (LCDDATA10_ADDR) LCDDATA10;
extern __sfr __at (LCDSE0_ADDR) LCDSE0;
extern __sfr __at (LCDSE1_ADDR) LCDSE1;
extern __sfr __at (EECON1_ADDR) EECON1;
extern __sfr __at (EECON2_ADDR) EECON2;
//----- STATUS Bits --------------------------------------------------------
//----- INTCON Bits --------------------------------------------------------
//----- PIR1 Bits ----------------------------------------------------------
//----- PIR2 Bits ----------------------------------------------------------
//----- T1CON Bits ---------------------------------------------------------
//----- T2CON Bits ---------------------------------------------------------
//----- SSPCON Bits --------------------------------------------------------
//----- CCP1CON Bits -------------------------------------------------------
//----- RCSTA Bits ---------------------------------------------------------
//----- ADCON0 Bits --------------------------------------------------------
//----- OPTION_REG Bits -----------------------------------------------------
//----- PIE1 Bits ----------------------------------------------------------
//----- PIE2 Bits ----------------------------------------------------------
//----- PCON Bits ----------------------------------------------------------
//----- OSCCON Bits -------------------------------------------------------
//----- OSCTUNE Bits -------------------------------------------------------
//----- ANSEL Bits ---------------------------------------------------------
//----- SSPSTAT Bits -------------------------------------------------------
//----- WPUB Bits -------------------------------------------------------
//----- WPU Bits -------------------------------------------------------
//----- IOCB Bits -------------------------------------------------------
//----- IOC Bits -------------------------------------------------------
//----- CMCON1 Bits --------------------------------------------------------
//----- TXSTA Bits ---------------------------------------------------------
//----- CMCON0 Bits ---------------------------------------------------------
//----- VRCON Bits --------------------------------------------------------
//----- ADCON1 Bits --------------------------------------------------------
//----- WDTCON Bits --------------------------------------------------------
//----- LCDCON Bits --------------------------------------------------------
//----- LCDPS Bits ---------------------------------------------------------
//----- LVDCON Bits --------------------------------------------------------
//----- LCDDATA0 Bits -------------------------------------------------------
//----- LCDDATA1 Bits -------------------------------------------------------
//----- LCDDATA3 Bits -------------------------------------------------------
//----- LCDDATA4 Bits -------------------------------------------------------
//----- LCDDATA6 Bits -------------------------------------------------------
//----- LCDDATA7 Bits -------------------------------------------------------
//----- LCDDATA9 Bits -------------------------------------------------------
//----- LCDDATA10 Bits -------------------------------------------------------
//----- LCDSE0 Bits --------------------------------------------------------
//----- LCDSE1 Bits --------------------------------------------------------
//----- EECON1 Bits --------------------------------------------------------
//----- EEADRH Bits --------------------------------------------------------
//----- EEADRL Bits --------------------------------------------------------
//==========================================================================
//
// RAM Definition
//
//==========================================================================
// __MAXRAM H'1FF'
// __BADRAM H'08', H'1B'-H'1D'
// __BADRAM H'88', H'9A'-H'9B'
// __BADRAM H'112', H'115', H'118', H'11B',H'11E'-H'11F'
// __BADRAM H'185', H'187'-H'189', H'18E'-H'1EF'
//==========================================================================
//
// Configuration Bits
//
//==========================================================================
#define _CONFIG 0x2007
//Configuration Byte 1 Options
#define _DEBUG_ON 0x2FFF
#define _DEBUG_OFF 0x3FFF
#define _FCMEN_ON 0x3FFF
#define _FCMEN_OFF 0x37FF
#define _IESO_ON 0x3FFF
#define _IESO_OFF 0x3BFF
#define _BOD_ON 0x3FFF
#define _BOD_NSLEEP 0x3EFF
#define _BOD_SBODEN 0x3DFF
#define _BOD_OFF 0x3CFF
#define _CPD_ON 0x3F7F
#define _CPD_OFF 0x3FFF
#define _CP_ON 0x3FBF
#define _CP_OFF 0x3FFF
#define _MCLRE_ON 0x3FFF
#define _MCLRE_OFF 0x3FDF
#define _PWRTE_ON 0x3FEF
#define _PWRTE_OFF 0x3FFF
#define _WDT_ON 0x3FFF
#define _WDT_OFF 0x3FF7
#define _LP_OSC 0x3FF8
#define _XT_OSC 0x3FF9
#define _HS_OSC 0x3FFA
#define _EC_OSC 0x3FFB
#define _INTRC_OSC_NOCLKOUT 0x3FFC
#define _INTRC_OSC_CLKOUT 0x3FFD
#define _EXTRC_OSC_NOCLKOUT 0x3FFE
#define _EXTRC_OSC_CLKOUT 0x3FFF
#define _INTOSCIO 0x3FFC
#define _INTOSC 0x3FFD
#define _EXTRCIO 0x3FFE
#define _EXTRC 0x3FFF
// LIST
// ----- ADCON0 bits --------------------
typedef union {
struct {
unsigned char ADON:1;
unsigned char NOT_DONE:1;
unsigned char CHS0:1;
unsigned char CHS1:1;
unsigned char CHS2:1;
unsigned char VCFG0:1;
unsigned char VCFG1:1;
unsigned char ADFM:1;
};
struct {
unsigned char :1;
unsigned char GO_DONE:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __ADCON0_bits_t;
extern volatile __ADCON0_bits_t __at(ADCON0_ADDR) ADCON0_bits;
#ifndef NO_BIT_DEFINES
#define ADON ADCON0_bits.ADON
#define NOT_DONE ADCON0_bits.NOT_DONE
#define GO_DONE ADCON0_bits.GO_DONE
#define CHS0 ADCON0_bits.CHS0
#define CHS1 ADCON0_bits.CHS1
#define CHS2 ADCON0_bits.CHS2
#define VCFG0 ADCON0_bits.VCFG0
#define VCFG1 ADCON0_bits.VCFG1
#define ADFM ADCON0_bits.ADFM
#endif /* NO_BIT_DEFINES */
// ----- ADCON1 bits --------------------
typedef union {
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char ADCS0:1;
unsigned char ADCS1:1;
unsigned char ADCS2:1;
unsigned char :1;
};
} __ADCON1_bits_t;
extern volatile __ADCON1_bits_t __at(ADCON1_ADDR) ADCON1_bits;
#ifndef NO_BIT_DEFINES
#define ADCS0 ADCON1_bits.ADCS0
#define ADCS1 ADCON1_bits.ADCS1
#define ADCS2 ADCON1_bits.ADCS2
#endif /* NO_BIT_DEFINES */
// ----- ANSEL bits --------------------
typedef union {
struct {
unsigned char ANS0:1;
unsigned char ANS1:1;
unsigned char ANS2:1;
unsigned char ANS3:1;
unsigned char ANS4:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char AN0:1;
unsigned char AN1:1;
unsigned char AN2:1;
unsigned char AN3:1;
unsigned char AN4:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __ANSEL_bits_t;
extern volatile __ANSEL_bits_t __at(ANSEL_ADDR) ANSEL_bits;
#ifndef NO_BIT_DEFINES
#define ANS0 ANSEL_bits.ANS0
#define AN0 ANSEL_bits.AN0
#define ANS1 ANSEL_bits.ANS1
#define AN1 ANSEL_bits.AN1
#define ANS2 ANSEL_bits.ANS2
#define AN2 ANSEL_bits.AN2
#define ANS3 ANSEL_bits.ANS3
#define AN3 ANSEL_bits.AN3
#define ANS4 ANSEL_bits.ANS4
#define AN4 ANSEL_bits.AN4
#endif /* NO_BIT_DEFINES */
// ----- CCP1CON bits --------------------
typedef union {
struct {
unsigned char CCP1M0:1;
unsigned char CCP1M1:1;
unsigned char CCP1M2:1;
unsigned char CCP1M3:1;
unsigned char CCP1Y:1;
unsigned char CCP1X:1;
unsigned char :1;
unsigned char :1;
};
} __CCP1CON_bits_t;
extern volatile __CCP1CON_bits_t __at(CCP1CON_ADDR) CCP1CON_bits;
#ifndef NO_BIT_DEFINES
#define CCP1M0 CCP1CON_bits.CCP1M0
#define CCP1M1 CCP1CON_bits.CCP1M1
#define CCP1M2 CCP1CON_bits.CCP1M2
#define CCP1M3 CCP1CON_bits.CCP1M3
#define CCP1Y CCP1CON_bits.CCP1Y
#define CCP1X CCP1CON_bits.CCP1X
#endif /* NO_BIT_DEFINES */
// ----- CMCON0 bits --------------------
typedef union {
struct {
unsigned char CM0:1;
unsigned char CM1:1;
unsigned char CM2:1;
unsigned char CIS:1;
unsigned char C1INV:1;
unsigned char C2INV:1;
unsigned char C1OUT:1;
unsigned char C2OUT:1;
};
} __CMCON0_bits_t;
extern volatile __CMCON0_bits_t __at(CMCON0_ADDR) CMCON0_bits;
#ifndef NO_BIT_DEFINES
#define CM0 CMCON0_bits.CM0
#define CM1 CMCON0_bits.CM1
#define CM2 CMCON0_bits.CM2
#define CIS CMCON0_bits.CIS
#define C1INV CMCON0_bits.C1INV
#define C2INV CMCON0_bits.C2INV
#define C1OUT CMCON0_bits.C1OUT
#define C2OUT CMCON0_bits.C2OUT
#endif /* NO_BIT_DEFINES */
// ----- CMCON1 bits --------------------
typedef union {
struct {
unsigned char C2SYNC:1;
unsigned char T1GSS:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __CMCON1_bits_t;
extern volatile __CMCON1_bits_t __at(CMCON1_ADDR) CMCON1_bits;
#ifndef NO_BIT_DEFINES
#define C2SYNC CMCON1_bits.C2SYNC
#define T1GSS CMCON1_bits.T1GSS
#endif /* NO_BIT_DEFINES */
// ----- EEADRH bits --------------------
typedef union {
struct {
unsigned char EEADRH0:1;
unsigned char EEADRH1:1;
unsigned char EEADRH2:1;
unsigned char EEADRH3:1;
unsigned char EEADRH4:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __EEADRH_bits_t;
extern volatile __EEADRH_bits_t __at(EEADRH_ADDR) EEADRH_bits;
#ifndef NO_BIT_DEFINES
#define EEADRH0 EEADRH_bits.EEADRH0
#define EEADRH1 EEADRH_bits.EEADRH1
#define EEADRH2 EEADRH_bits.EEADRH2
#define EEADRH3 EEADRH_bits.EEADRH3
#define EEADRH4 EEADRH_bits.EEADRH4
#endif /* NO_BIT_DEFINES */
// ----- EEADRL bits --------------------
typedef union {
struct {
unsigned char EEADRL0:1;
unsigned char EEADRL1:1;
unsigned char EEADRL2:1;
unsigned char EEADRL3:1;
unsigned char EEADRL4:1;
unsigned char EEADRL5:1;
unsigned char EEADRL6:1;
unsigned char EEADRL7:1;
};
} __EEADRL_bits_t;
extern volatile __EEADRL_bits_t __at(EEADRL_ADDR) EEADRL_bits;
#ifndef NO_BIT_DEFINES
#define EEADRL0 EEADRL_bits.EEADRL0
#define EEADRL1 EEADRL_bits.EEADRL1
#define EEADRL2 EEADRL_bits.EEADRL2
#define EEADRL3 EEADRL_bits.EEADRL3
#define EEADRL4 EEADRL_bits.EEADRL4
#define EEADRL5 EEADRL_bits.EEADRL5
#define EEADRL6 EEADRL_bits.EEADRL6
#define EEADRL7 EEADRL_bits.EEADRL7
#endif /* NO_BIT_DEFINES */
// ----- EECON1 bits --------------------
typedef union {
struct {
unsigned char RD:1;
unsigned char WR:1;
unsigned char WREN:1;
unsigned char WRERR:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char EEPGD:1;
};
struct {
unsigned char EERD:1;
unsigned char EEWR:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __EECON1_bits_t;
extern volatile __EECON1_bits_t __at(EECON1_ADDR) EECON1_bits;
#ifndef NO_BIT_DEFINES
#define RD EECON1_bits.RD
#define EERD EECON1_bits.EERD
#define WR EECON1_bits.WR
#define EEWR EECON1_bits.EEWR
#define WREN EECON1_bits.WREN
#define WRERR EECON1_bits.WRERR
#define EEPGD EECON1_bits.EEPGD
#endif /* NO_BIT_DEFINES */
// ----- INTCON bits --------------------
typedef union {
struct {
unsigned char RBIF:1;
unsigned char INTF:1;
unsigned char T0IF:1;
unsigned char RBIE:1;
unsigned char INTE:1;
unsigned char T0IE:1;
unsigned char PEIE:1;
unsigned char GIE:1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char TMR0IF:1;
unsigned char :1;
unsigned char :1;
unsigned char TMR0IE:1;
unsigned char :1;
unsigned char :1;
};
} __INTCON_bits_t;
extern volatile __INTCON_bits_t __at(INTCON_ADDR) INTCON_bits;
#ifndef NO_BIT_DEFINES
#define RBIF INTCON_bits.RBIF
#define INTF INTCON_bits.INTF
#define T0IF INTCON_bits.T0IF
#define TMR0IF INTCON_bits.TMR0IF
#define RBIE INTCON_bits.RBIE
#define INTE INTCON_bits.INTE
#define T0IE INTCON_bits.T0IE
#define TMR0IE INTCON_bits.TMR0IE
#define PEIE INTCON_bits.PEIE
#define GIE INTCON_bits.GIE
#endif /* NO_BIT_DEFINES */
// ----- IOC bits --------------------
typedef union {
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char IOC4:1;
unsigned char IOC5:1;
unsigned char IOC6:1;
unsigned char IOC7:1;
};
} __IOC_bits_t;
extern volatile __IOC_bits_t __at(IOC_ADDR) IOC_bits;
#ifndef NO_BIT_DEFINES
#define IOC4 IOC_bits.IOC4
#define IOC5 IOC_bits.IOC5
#define IOC6 IOC_bits.IOC6
#define IOC7 IOC_bits.IOC7
#endif /* NO_BIT_DEFINES */
// ----- IOCB bits --------------------
typedef union {
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char IOCB4:1;
unsigned char IOCB5:1;
unsigned char IOCB6:1;
unsigned char IOCB7:1;
};
} __IOCB_bits_t;
extern volatile __IOCB_bits_t __at(IOCB_ADDR) IOCB_bits;
#ifndef NO_BIT_DEFINES
#define IOCB4 IOCB_bits.IOCB4
#define IOCB5 IOCB_bits.IOCB5
#define IOCB6 IOCB_bits.IOCB6
#define IOCB7 IOCB_bits.IOCB7
#endif /* NO_BIT_DEFINES */
// ----- LCDCON bits --------------------
typedef union {
struct {
unsigned char LMUX0:1;
unsigned char LMUX1:1;
unsigned char CS0:1;
unsigned char CS1:1;
unsigned char VLCDEN:1;
unsigned char WERR:1;
unsigned char SLPEN:1;
unsigned char LCDEN:1;
};
} __LCDCON_bits_t;
extern volatile __LCDCON_bits_t __at(LCDCON_ADDR) LCDCON_bits;
#ifndef NO_BIT_DEFINES
#define LMUX0 LCDCON_bits.LMUX0
#define LMUX1 LCDCON_bits.LMUX1
#define CS0 LCDCON_bits.CS0
#define CS1 LCDCON_bits.CS1
#define VLCDEN LCDCON_bits.VLCDEN
#define WERR LCDCON_bits.WERR
#define SLPEN LCDCON_bits.SLPEN
#define LCDEN LCDCON_bits.LCDEN
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA0 bits --------------------
typedef union {
struct {
unsigned char SEG0COM0:1;
unsigned char SEG1COM0:1;
unsigned char SEG2COM0:1;
unsigned char SEG3COM0:1;
unsigned char SEG4COM0:1;
unsigned char SEG5COM0:1;
unsigned char SEG6COM0:1;
unsigned char SEG7COM0:1;
};
struct {
unsigned char S0C0:1;
unsigned char S1C0:1;
unsigned char S2C0:1;
unsigned char S3C0:1;
unsigned char S4C0:1;
unsigned char S5C0:1;
unsigned char S6C0:1;
unsigned char S7C0:1;
};
} __LCDDATA0_bits_t;
extern volatile __LCDDATA0_bits_t __at(LCDDATA0_ADDR) LCDDATA0_bits;
#ifndef NO_BIT_DEFINES
#define SEG0COM0 LCDDATA0_bits.SEG0COM0
#define S0C0 LCDDATA0_bits.S0C0
#define SEG1COM0 LCDDATA0_bits.SEG1COM0
#define S1C0 LCDDATA0_bits.S1C0
#define SEG2COM0 LCDDATA0_bits.SEG2COM0
#define S2C0 LCDDATA0_bits.S2C0
#define SEG3COM0 LCDDATA0_bits.SEG3COM0
#define S3C0 LCDDATA0_bits.S3C0
#define SEG4COM0 LCDDATA0_bits.SEG4COM0
#define S4C0 LCDDATA0_bits.S4C0
#define SEG5COM0 LCDDATA0_bits.SEG5COM0
#define S5C0 LCDDATA0_bits.S5C0
#define SEG6COM0 LCDDATA0_bits.SEG6COM0
#define S6C0 LCDDATA0_bits.S6C0
#define SEG7COM0 LCDDATA0_bits.SEG7COM0
#define S7C0 LCDDATA0_bits.S7C0
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA1 bits --------------------
typedef union {
struct {
unsigned char SEG8COM0:1;
unsigned char SEG9COM0:1;
unsigned char SEG10COM0:1;
unsigned char SEG11COM0:1;
unsigned char SEG12COM0:1;
unsigned char SEG13COM0:1;
unsigned char SEG14COM0:1;
unsigned char SEG15COM0:1;
};
struct {
unsigned char S8C0:1;
unsigned char S9C0:1;
unsigned char S10C0:1;
unsigned char S11C0:1;
unsigned char S12C0:1;
unsigned char S13C0:1;
unsigned char S14C0:1;
unsigned char S15C0:1;
};
} __LCDDATA1_bits_t;
extern volatile __LCDDATA1_bits_t __at(LCDDATA1_ADDR) LCDDATA1_bits;
#ifndef NO_BIT_DEFINES
#define SEG8COM0 LCDDATA1_bits.SEG8COM0
#define S8C0 LCDDATA1_bits.S8C0
#define SEG9COM0 LCDDATA1_bits.SEG9COM0
#define S9C0 LCDDATA1_bits.S9C0
#define SEG10COM0 LCDDATA1_bits.SEG10COM0
#define S10C0 LCDDATA1_bits.S10C0
#define SEG11COM0 LCDDATA1_bits.SEG11COM0
#define S11C0 LCDDATA1_bits.S11C0
#define SEG12COM0 LCDDATA1_bits.SEG12COM0
#define S12C0 LCDDATA1_bits.S12C0
#define SEG13COM0 LCDDATA1_bits.SEG13COM0
#define S13C0 LCDDATA1_bits.S13C0
#define SEG14COM0 LCDDATA1_bits.SEG14COM0
#define S14C0 LCDDATA1_bits.S14C0
#define SEG15COM0 LCDDATA1_bits.SEG15COM0
#define S15C0 LCDDATA1_bits.S15C0
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA10 bits --------------------
typedef union {
struct {
unsigned char SEG8COM3:1;
unsigned char SEG9COM3:1;
unsigned char SEG10COM3:1;
unsigned char SEG11COM3:1;
unsigned char SEG12COM3:1;
unsigned char SEG13COM3:1;
unsigned char SEG14COM3:1;
unsigned char SEG15COM3:1;
};
struct {
unsigned char S8C3:1;
unsigned char S9C3:1;
unsigned char S10C3:1;
unsigned char S11C3:1;
unsigned char S12C3:1;
unsigned char S13C3:1;
unsigned char S14C3:1;
unsigned char S15C3:1;
};
} __LCDDATA10_bits_t;
extern volatile __LCDDATA10_bits_t __at(LCDDATA10_ADDR) LCDDATA10_bits;
#ifndef NO_BIT_DEFINES
#define SEG8COM3 LCDDATA10_bits.SEG8COM3
#define S8C3 LCDDATA10_bits.S8C3
#define SEG9COM3 LCDDATA10_bits.SEG9COM3
#define S9C3 LCDDATA10_bits.S9C3
#define SEG10COM3 LCDDATA10_bits.SEG10COM3
#define S10C3 LCDDATA10_bits.S10C3
#define SEG11COM3 LCDDATA10_bits.SEG11COM3
#define S11C3 LCDDATA10_bits.S11C3
#define SEG12COM3 LCDDATA10_bits.SEG12COM3
#define S12C3 LCDDATA10_bits.S12C3
#define SEG13COM3 LCDDATA10_bits.SEG13COM3
#define S13C3 LCDDATA10_bits.S13C3
#define SEG14COM3 LCDDATA10_bits.SEG14COM3
#define S14C3 LCDDATA10_bits.S14C3
#define SEG15COM3 LCDDATA10_bits.SEG15COM3
#define S15C3 LCDDATA10_bits.S15C3
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA3 bits --------------------
typedef union {
struct {
unsigned char SEG0COM1:1;
unsigned char SEG1COM1:1;
unsigned char SEG2COM1:1;
unsigned char SEG3COM1:1;
unsigned char SEG4COM1:1;
unsigned char SEG5COM1:1;
unsigned char SEG6COM1:1;
unsigned char SEG7COM1:1;
};
struct {
unsigned char S0C1:1;
unsigned char S1C1:1;
unsigned char S2C1:1;
unsigned char S3C1:1;
unsigned char S4C1:1;
unsigned char S5C1:1;
unsigned char S6C1:1;
unsigned char S7C1:1;
};
} __LCDDATA3_bits_t;
extern volatile __LCDDATA3_bits_t __at(LCDDATA3_ADDR) LCDDATA3_bits;
#ifndef NO_BIT_DEFINES
#define SEG0COM1 LCDDATA3_bits.SEG0COM1
#define S0C1 LCDDATA3_bits.S0C1
#define SEG1COM1 LCDDATA3_bits.SEG1COM1
#define S1C1 LCDDATA3_bits.S1C1
#define SEG2COM1 LCDDATA3_bits.SEG2COM1
#define S2C1 LCDDATA3_bits.S2C1
#define SEG3COM1 LCDDATA3_bits.SEG3COM1
#define S3C1 LCDDATA3_bits.S3C1
#define SEG4COM1 LCDDATA3_bits.SEG4COM1
#define S4C1 LCDDATA3_bits.S4C1
#define SEG5COM1 LCDDATA3_bits.SEG5COM1
#define S5C1 LCDDATA3_bits.S5C1
#define SEG6COM1 LCDDATA3_bits.SEG6COM1
#define S6C1 LCDDATA3_bits.S6C1
#define SEG7COM1 LCDDATA3_bits.SEG7COM1
#define S7C1 LCDDATA3_bits.S7C1
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA4 bits --------------------
typedef union {
struct {
unsigned char SEG8COM1:1;
unsigned char SEG9COM1:1;
unsigned char SEG10COM1:1;
unsigned char SEG11COM1:1;
unsigned char SEG12COM1:1;
unsigned char SEG13COM1:1;
unsigned char SEG14COM1:1;
unsigned char SEG15COM1:1;
};
struct {
unsigned char S8C1:1;
unsigned char S9C1:1;
unsigned char S10C1:1;
unsigned char S11C1:1;
unsigned char S12C1:1;
unsigned char S13C1:1;
unsigned char S14C1:1;
unsigned char S15C1:1;
};
} __LCDDATA4_bits_t;
extern volatile __LCDDATA4_bits_t __at(LCDDATA4_ADDR) LCDDATA4_bits;
#ifndef NO_BIT_DEFINES
#define SEG8COM1 LCDDATA4_bits.SEG8COM1
#define S8C1 LCDDATA4_bits.S8C1
#define SEG9COM1 LCDDATA4_bits.SEG9COM1
#define S9C1 LCDDATA4_bits.S9C1
#define SEG10COM1 LCDDATA4_bits.SEG10COM1
#define S10C1 LCDDATA4_bits.S10C1
#define SEG11COM1 LCDDATA4_bits.SEG11COM1
#define S11C1 LCDDATA4_bits.S11C1
#define SEG12COM1 LCDDATA4_bits.SEG12COM1
#define S12C1 LCDDATA4_bits.S12C1
#define SEG13COM1 LCDDATA4_bits.SEG13COM1
#define S13C1 LCDDATA4_bits.S13C1
#define SEG14COM1 LCDDATA4_bits.SEG14COM1
#define S14C1 LCDDATA4_bits.S14C1
#define SEG15COM1 LCDDATA4_bits.SEG15COM1
#define S15C1 LCDDATA4_bits.S15C1
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA6 bits --------------------
typedef union {
struct {
unsigned char SEG0COM2:1;
unsigned char SEG1COM2:1;
unsigned char SEG2COM2:1;
unsigned char SEG3COM2:1;
unsigned char SEG4COM2:1;
unsigned char SEG5COM2:1;
unsigned char SEG6COM2:1;
unsigned char SEG7COM2:1;
};
struct {
unsigned char S0C2:1;
unsigned char S1C2:1;
unsigned char S2C2:1;
unsigned char S3C2:1;
unsigned char S4C2:1;
unsigned char S5C2:1;
unsigned char S6C2:1;
unsigned char S7C2:1;
};
} __LCDDATA6_bits_t;
extern volatile __LCDDATA6_bits_t __at(LCDDATA6_ADDR) LCDDATA6_bits;
#ifndef NO_BIT_DEFINES
#define SEG0COM2 LCDDATA6_bits.SEG0COM2
#define S0C2 LCDDATA6_bits.S0C2
#define SEG1COM2 LCDDATA6_bits.SEG1COM2
#define S1C2 LCDDATA6_bits.S1C2
#define SEG2COM2 LCDDATA6_bits.SEG2COM2
#define S2C2 LCDDATA6_bits.S2C2
#define SEG3COM2 LCDDATA6_bits.SEG3COM2
#define S3C2 LCDDATA6_bits.S3C2
#define SEG4COM2 LCDDATA6_bits.SEG4COM2
#define S4C2 LCDDATA6_bits.S4C2
#define SEG5COM2 LCDDATA6_bits.SEG5COM2
#define S5C2 LCDDATA6_bits.S5C2
#define SEG6COM2 LCDDATA6_bits.SEG6COM2
#define S6C2 LCDDATA6_bits.S6C2
#define SEG7COM2 LCDDATA6_bits.SEG7COM2
#define S7C2 LCDDATA6_bits.S7C2
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA7 bits --------------------
typedef union {
struct {
unsigned char SEG8COM2:1;
unsigned char SEG9COM2:1;
unsigned char SEG10COM2:1;
unsigned char SEG11COM2:1;
unsigned char SEG12COM2:1;
unsigned char SEG13COM2:1;
unsigned char SEG14COM2:1;
unsigned char SEG15COM2:1;
};
struct {
unsigned char S8C2:1;
unsigned char S9C2:1;
unsigned char S10C2:1;
unsigned char S11C2:1;
unsigned char S12C2:1;
unsigned char S13C2:1;
unsigned char S14C2:1;
unsigned char S15C2:1;
};
} __LCDDATA7_bits_t;
extern volatile __LCDDATA7_bits_t __at(LCDDATA7_ADDR) LCDDATA7_bits;
#ifndef NO_BIT_DEFINES
#define SEG8COM2 LCDDATA7_bits.SEG8COM2
#define S8C2 LCDDATA7_bits.S8C2
#define SEG9COM2 LCDDATA7_bits.SEG9COM2
#define S9C2 LCDDATA7_bits.S9C2
#define SEG10COM2 LCDDATA7_bits.SEG10COM2
#define S10C2 LCDDATA7_bits.S10C2
#define SEG11COM2 LCDDATA7_bits.SEG11COM2
#define S11C2 LCDDATA7_bits.S11C2
#define SEG12COM2 LCDDATA7_bits.SEG12COM2
#define S12C2 LCDDATA7_bits.S12C2
#define SEG13COM2 LCDDATA7_bits.SEG13COM2
#define S13C2 LCDDATA7_bits.S13C2
#define SEG14COM2 LCDDATA7_bits.SEG14COM2
#define S14C2 LCDDATA7_bits.S14C2
#define SEG15COM2 LCDDATA7_bits.SEG15COM2
#define S15C2 LCDDATA7_bits.S15C2
#endif /* NO_BIT_DEFINES */
// ----- LCDDATA9 bits --------------------
typedef union {
struct {
unsigned char SEG0COM3:1;
unsigned char SEG1COM3:1;
unsigned char SEG2COM3:1;
unsigned char SEG3COM3:1;
unsigned char SEG4COM3:1;
unsigned char SEG5COM3:1;
unsigned char SEG6COM3:1;
unsigned char SEG7COM3:1;
};
struct {
unsigned char S0C3:1;
unsigned char S1C3:1;
unsigned char S2C3:1;
unsigned char S3C3:1;
unsigned char S4C3:1;
unsigned char S5C3:1;
unsigned char S6C3:1;
unsigned char S7C3:1;
};
} __LCDDATA9_bits_t;
extern volatile __LCDDATA9_bits_t __at(LCDDATA9_ADDR) LCDDATA9_bits;
#ifndef NO_BIT_DEFINES
#define SEG0COM3 LCDDATA9_bits.SEG0COM3
#define S0C3 LCDDATA9_bits.S0C3
#define SEG1COM3 LCDDATA9_bits.SEG1COM3
#define S1C3 LCDDATA9_bits.S1C3
#define SEG2COM3 LCDDATA9_bits.SEG2COM3
#define S2C3 LCDDATA9_bits.S2C3
#define SEG3COM3 LCDDATA9_bits.SEG3COM3
#define S3C3 LCDDATA9_bits.S3C3
#define SEG4COM3 LCDDATA9_bits.SEG4COM3
#define S4C3 LCDDATA9_bits.S4C3
#define SEG5COM3 LCDDATA9_bits.SEG5COM3
#define S5C3 LCDDATA9_bits.S5C3
#define SEG6COM3 LCDDATA9_bits.SEG6COM3
#define S6C3 LCDDATA9_bits.S6C3
#define SEG7COM3 LCDDATA9_bits.SEG7COM3
#define S7C3 LCDDATA9_bits.S7C3
#endif /* NO_BIT_DEFINES */
// ----- LCDPS bits --------------------
typedef union {
struct {
unsigned char LP0:1;
unsigned char LP1:1;
unsigned char LP2:1;
unsigned char LP3:1;
unsigned char WA:1;
unsigned char LCDA:1;
unsigned char BIASMD:1;
unsigned char WFT:1;
};
} __LCDPS_bits_t;
extern volatile __LCDPS_bits_t __at(LCDPS_ADDR) LCDPS_bits;
#ifndef NO_BIT_DEFINES
#define LP0 LCDPS_bits.LP0
#define LP1 LCDPS_bits.LP1
#define LP2 LCDPS_bits.LP2
#define LP3 LCDPS_bits.LP3
#define WA LCDPS_bits.WA
#define LCDA LCDPS_bits.LCDA
#define BIASMD LCDPS_bits.BIASMD
#define WFT LCDPS_bits.WFT
#endif /* NO_BIT_DEFINES */
// ----- LCDSE0 bits --------------------
typedef union {
struct {
unsigned char SE0:1;
unsigned char SE1:1;
unsigned char SE2:1;
unsigned char SE3:1;
unsigned char SE4:1;
unsigned char SE5:1;
unsigned char SE6:1;
unsigned char SE7:1;
};
struct {
unsigned char SEGEN0:1;
unsigned char SEGEN1:1;
unsigned char SEGEN2:1;
unsigned char SEGEN3:1;
unsigned char SEGEN4:1;
unsigned char SEGEN5:1;
unsigned char SEGEN6:1;
unsigned char SEGEN7:1;
};
} __LCDSE0_bits_t;
extern volatile __LCDSE0_bits_t __at(LCDSE0_ADDR) LCDSE0_bits;
#ifndef NO_BIT_DEFINES
#define SE0 LCDSE0_bits.SE0
#define SEGEN0 LCDSE0_bits.SEGEN0
#define SE1 LCDSE0_bits.SE1
#define SEGEN1 LCDSE0_bits.SEGEN1
#define SE2 LCDSE0_bits.SE2
#define SEGEN2 LCDSE0_bits.SEGEN2
#define SE3 LCDSE0_bits.SE3
#define SEGEN3 LCDSE0_bits.SEGEN3
#define SE4 LCDSE0_bits.SE4
#define SEGEN4 LCDSE0_bits.SEGEN4
#define SE5 LCDSE0_bits.SE5
#define SEGEN5 LCDSE0_bits.SEGEN5
#define SE6 LCDSE0_bits.SE6
#define SEGEN6 LCDSE0_bits.SEGEN6
#define SE7 LCDSE0_bits.SE7
#define SEGEN7 LCDSE0_bits.SEGEN7
#endif /* NO_BIT_DEFINES */
// ----- LCDSE1 bits --------------------
typedef union {
struct {
unsigned char SE8:1;
unsigned char SE9:1;
unsigned char SE10:1;
unsigned char SE11:1;
unsigned char SE12:1;
unsigned char SE13:1;
unsigned char SE14:1;
unsigned char SE15:1;
};
struct {
unsigned char SEGEN8:1;
unsigned char SEGEN9:1;
unsigned char SEGEN10:1;
unsigned char SEGEN11:1;
unsigned char SEGEN12:1;
unsigned char SEGEN13:1;
unsigned char SEGEN14:1;
unsigned char SEGEN15:1;
};
} __LCDSE1_bits_t;
extern volatile __LCDSE1_bits_t __at(LCDSE1_ADDR) LCDSE1_bits;
#ifndef NO_BIT_DEFINES
#define SE8 LCDSE1_bits.SE8
#define SEGEN8 LCDSE1_bits.SEGEN8
#define SE9 LCDSE1_bits.SE9
#define SEGEN9 LCDSE1_bits.SEGEN9
#define SE10 LCDSE1_bits.SE10
#define SEGEN10 LCDSE1_bits.SEGEN10
#define SE11 LCDSE1_bits.SE11
#define SEGEN11 LCDSE1_bits.SEGEN11
#define SE12 LCDSE1_bits.SE12
#define SEGEN12 LCDSE1_bits.SEGEN12
#define SE13 LCDSE1_bits.SE13
#define SEGEN13 LCDSE1_bits.SEGEN13
#define SE14 LCDSE1_bits.SE14
#define SEGEN14 LCDSE1_bits.SEGEN14
#define SE15 LCDSE1_bits.SE15
#define SEGEN15 LCDSE1_bits.SEGEN15
#endif /* NO_BIT_DEFINES */
// ----- LVDCON bits --------------------
typedef union {
struct {
unsigned char LVDL0:1;
unsigned char LVDL1:1;
unsigned char LVDL2:1;
unsigned char :1;
unsigned char LVDEN:1;
unsigned char IRVST:1;
unsigned char :1;
unsigned char :1;
};
} __LVDCON_bits_t;
extern volatile __LVDCON_bits_t __at(LVDCON_ADDR) LVDCON_bits;
#ifndef NO_BIT_DEFINES
#define LVDL0 LVDCON_bits.LVDL0
#define LVDL1 LVDCON_bits.LVDL1
#define LVDL2 LVDCON_bits.LVDL2
#define LVDEN LVDCON_bits.LVDEN
#define IRVST LVDCON_bits.IRVST
#endif /* NO_BIT_DEFINES */
// ----- OPTION_REG bits --------------------
typedef union {
struct {
unsigned char PS0:1;
unsigned char PS1:1;
unsigned char PS2:1;
unsigned char PSA:1;
unsigned char T0SE:1;
unsigned char T0CS:1;
unsigned char INTEDG:1;
unsigned char NOT_RBPU:1;
};
} __OPTION_REG_bits_t;
extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
#ifndef NO_BIT_DEFINES
#define PS0 OPTION_REG_bits.PS0
#define PS1 OPTION_REG_bits.PS1
#define PS2 OPTION_REG_bits.PS2
#define PSA OPTION_REG_bits.PSA
#define T0SE OPTION_REG_bits.T0SE
#define T0CS OPTION_REG_bits.T0CS
#define INTEDG OPTION_REG_bits.INTEDG
#define NOT_RBPU OPTION_REG_bits.NOT_RBPU
#endif /* NO_BIT_DEFINES */
// ----- OSCCON bits --------------------
typedef union {
struct {
unsigned char SCS:1;
unsigned char LTS:1;
unsigned char HTS:1;
unsigned char OSTS:1;
unsigned char IRCF0:1;
unsigned char IRCF1:1;
unsigned char IRCF2:1;
unsigned char :1;
};
} __OSCCON_bits_t;
extern volatile __OSCCON_bits_t __at(OSCCON_ADDR) OSCCON_bits;
#ifndef NO_BIT_DEFINES
#define SCS OSCCON_bits.SCS
#define LTS OSCCON_bits.LTS
#define HTS OSCCON_bits.HTS
#define OSTS OSCCON_bits.OSTS
#define IRCF0 OSCCON_bits.IRCF0
#define IRCF1 OSCCON_bits.IRCF1
#define IRCF2 OSCCON_bits.IRCF2
#endif /* NO_BIT_DEFINES */
// ----- OSCTUNE bits --------------------
typedef union {
struct {
unsigned char TUN0:1;
unsigned char TUN1:1;
unsigned char TUN2:1;
unsigned char TUN3:1;
unsigned char TUN4:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __OSCTUNE_bits_t;
extern volatile __OSCTUNE_bits_t __at(OSCTUNE_ADDR) OSCTUNE_bits;
#ifndef NO_BIT_DEFINES
#define TUN0 OSCTUNE_bits.TUN0
#define TUN1 OSCTUNE_bits.TUN1
#define TUN2 OSCTUNE_bits.TUN2
#define TUN3 OSCTUNE_bits.TUN3
#define TUN4 OSCTUNE_bits.TUN4
#endif /* NO_BIT_DEFINES */
// ----- PCON bits --------------------
typedef union {
struct {
unsigned char NOT_BO:1;
unsigned char NOT_POR:1;
unsigned char :1;
unsigned char :1;
unsigned char SBOREN:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char NOT_BOR:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __PCON_bits_t;
extern volatile __PCON_bits_t __at(PCON_ADDR) PCON_bits;
#ifndef NO_BIT_DEFINES
#define NOT_BO PCON_bits.NOT_BO
#define NOT_BOR PCON_bits.NOT_BOR
#define NOT_POR PCON_bits.NOT_POR
#define SBOREN PCON_bits.SBOREN
#endif /* NO_BIT_DEFINES */
// ----- PIE1 bits --------------------
typedef union {
struct {
unsigned char TMR1IE:1;
unsigned char TMR2IE:1;
unsigned char CCP1IE:1;
unsigned char SSPIE:1;
unsigned char TXIE:1;
unsigned char RCIE:1;
unsigned char ADIE:1;
unsigned char EEIE:1;
};
} __PIE1_bits_t;
extern volatile __PIE1_bits_t __at(PIE1_ADDR) PIE1_bits;
#ifndef NO_BIT_DEFINES
#define TMR1IE PIE1_bits.TMR1IE
#define TMR2IE PIE1_bits.TMR2IE
#define CCP1IE PIE1_bits.CCP1IE
#define SSPIE PIE1_bits.SSPIE
#define TXIE PIE1_bits.TXIE
#define RCIE PIE1_bits.RCIE
#define ADIE PIE1_bits.ADIE
#define EEIE PIE1_bits.EEIE
#endif /* NO_BIT_DEFINES */
// ----- PIE2 bits --------------------
typedef union {
struct {
unsigned char :1;
unsigned char :1;
unsigned char LVDIE:1;
unsigned char :1;
unsigned char LCDIE:1;
unsigned char C1IE:1;
unsigned char C2IE:1;
unsigned char OSFIE:1;
};
} __PIE2_bits_t;
extern volatile __PIE2_bits_t __at(PIE2_ADDR) PIE2_bits;
#ifndef NO_BIT_DEFINES
#define LVDIE PIE2_bits.LVDIE
#define LCDIE PIE2_bits.LCDIE
#define C1IE PIE2_bits.C1IE
#define C2IE PIE2_bits.C2IE
#define OSFIE PIE2_bits.OSFIE
#endif /* NO_BIT_DEFINES */
// ----- PIR1 bits --------------------
typedef union {
struct {
unsigned char TMR1IF:1;
unsigned char TMR2IF:1;
unsigned char CCP1IF:1;
unsigned char SSPIF:1;
unsigned char TXIF:1;
unsigned char RCIF:1;
unsigned char ADIF:1;
unsigned char EEIF:1;
};
} __PIR1_bits_t;
extern volatile __PIR1_bits_t __at(PIR1_ADDR) PIR1_bits;
#ifndef NO_BIT_DEFINES
#define TMR1IF PIR1_bits.TMR1IF
#define TMR2IF PIR1_bits.TMR2IF
#define CCP1IF PIR1_bits.CCP1IF
#define SSPIF PIR1_bits.SSPIF
#define TXIF PIR1_bits.TXIF
#define RCIF PIR1_bits.RCIF
#define ADIF PIR1_bits.ADIF
#define EEIF PIR1_bits.EEIF
#endif /* NO_BIT_DEFINES */
// ----- PIR2 bits --------------------
typedef union {
struct {
unsigned char :1;
unsigned char :1;
unsigned char LVDIF:1;
unsigned char :1;
unsigned char LCDIF:1;
unsigned char C1IF:1;
unsigned char C2IF:1;
unsigned char OSFIF:1;
};
} __PIR2_bits_t;
extern volatile __PIR2_bits_t __at(PIR2_ADDR) PIR2_bits;
#ifndef NO_BIT_DEFINES
#define LVDIF PIR2_bits.LVDIF
#define LCDIF PIR2_bits.LCDIF
#define C1IF PIR2_bits.C1IF
#define C2IF PIR2_bits.C2IF
#define OSFIF PIR2_bits.OSFIF
#endif /* NO_BIT_DEFINES */
// ----- PORTA bits --------------------
typedef union {
struct {
unsigned char RA0:1;
unsigned char RA1:1;
unsigned char RA2:1;
unsigned char RA3:1;
unsigned char RA4:1;
unsigned char RA5:1;
unsigned char :1;
unsigned char :1;
};
} __PORTA_bits_t;
extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
#ifndef NO_BIT_DEFINES
#define RA0 PORTA_bits.RA0
#define RA1 PORTA_bits.RA1
#define RA2 PORTA_bits.RA2
#define RA3 PORTA_bits.RA3
#define RA4 PORTA_bits.RA4
#define RA5 PORTA_bits.RA5
#endif /* NO_BIT_DEFINES */
// ----- PORTB bits --------------------
typedef union {
struct {
unsigned char RB0:1;
unsigned char RB1:1;
unsigned char RB2:1;
unsigned char RB3:1;
unsigned char RB4:1;
unsigned char RB5:1;
unsigned char RB6:1;
unsigned char RB7:1;
};
} __PORTB_bits_t;
extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
#ifndef NO_BIT_DEFINES
#define RB0 PORTB_bits.RB0
#define RB1 PORTB_bits.RB1
#define RB2 PORTB_bits.RB2
#define RB3 PORTB_bits.RB3
#define RB4 PORTB_bits.RB4
#define RB5 PORTB_bits.RB5
#define RB6 PORTB_bits.RB6
#define RB7 PORTB_bits.RB7
#endif /* NO_BIT_DEFINES */
// ----- PORTC bits --------------------
typedef union {
struct {
unsigned char RC0:1;
unsigned char RC1:1;
unsigned char RC2:1;
unsigned char RC3:1;
unsigned char RC4:1;
unsigned char RC5:1;
unsigned char RC6:1;
unsigned char RC7:1;
};
} __PORTC_bits_t;
extern volatile __PORTC_bits_t __at(PORTC_ADDR) PORTC_bits;
#ifndef NO_BIT_DEFINES
#define RC0 PORTC_bits.RC0
#define RC1 PORTC_bits.RC1
#define RC2 PORTC_bits.RC2
#define RC3 PORTC_bits.RC3
#define RC4 PORTC_bits.RC4
#define RC5 PORTC_bits.RC5
#define RC6 PORTC_bits.RC6
#define RC7 PORTC_bits.RC7
#endif /* NO_BIT_DEFINES */
// ----- PORTE bits --------------------
typedef union {
struct {
unsigned char RE0:1;
unsigned char RE1:1;
unsigned char RE2:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __PORTE_bits_t;
extern volatile __PORTE_bits_t __at(PORTE_ADDR) PORTE_bits;
#ifndef NO_BIT_DEFINES
#define RE0 PORTE_bits.RE0
#define RE1 PORTE_bits.RE1
#define RE2 PORTE_bits.RE2
#endif /* NO_BIT_DEFINES */
// ----- RCSTA bits --------------------
typedef union {
struct {
unsigned char RX9D:1;
unsigned char OERR:1;
unsigned char FERR:1;
unsigned char ADDEN:1;
unsigned char CREN:1;
unsigned char SREN:1;
unsigned char RX9:1;
unsigned char SPEN:1;
};
struct {
unsigned char RCD8:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char RC9:1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char NOT_RC8:1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char RC8_9:1;
unsigned char :1;
};
} __RCSTA_bits_t;
extern volatile __RCSTA_bits_t __at(RCSTA_ADDR) RCSTA_bits;
#ifndef NO_BIT_DEFINES
#define RX9D RCSTA_bits.RX9D
#define RCD8 RCSTA_bits.RCD8
#define OERR RCSTA_bits.OERR
#define FERR RCSTA_bits.FERR
#define ADDEN RCSTA_bits.ADDEN
#define CREN RCSTA_bits.CREN
#define SREN RCSTA_bits.SREN
#define RX9 RCSTA_bits.RX9
#define RC9 RCSTA_bits.RC9
#define NOT_RC8 RCSTA_bits.NOT_RC8
#define RC8_9 RCSTA_bits.RC8_9
#define SPEN RCSTA_bits.SPEN
#endif /* NO_BIT_DEFINES */
// ----- SSPCON bits --------------------
typedef union {
struct {
unsigned char SSPM0:1;
unsigned char SSPM1:1;
unsigned char SSPM2:1;
unsigned char SSPM3:1;
unsigned char CKP:1;
unsigned char SSPEN:1;
unsigned char SSPOV:1;
unsigned char WCOL:1;
};
} __SSPCON_bits_t;
extern volatile __SSPCON_bits_t __at(SSPCON_ADDR) SSPCON_bits;
#ifndef NO_BIT_DEFINES
#define SSPM0 SSPCON_bits.SSPM0
#define SSPM1 SSPCON_bits.SSPM1
#define SSPM2 SSPCON_bits.SSPM2
#define SSPM3 SSPCON_bits.SSPM3
#define CKP SSPCON_bits.CKP
#define SSPEN SSPCON_bits.SSPEN
#define SSPOV SSPCON_bits.SSPOV
#define WCOL SSPCON_bits.WCOL
#endif /* NO_BIT_DEFINES */
// ----- SSPSTAT bits --------------------
typedef union {
struct {
unsigned char BF:1;
unsigned char UA:1;
unsigned char R:1;
unsigned char S:1;
unsigned char P:1;
unsigned char D:1;
unsigned char CKE:1;
unsigned char SMP:1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char I2C_READ:1;
unsigned char I2C_START:1;
unsigned char I2C_STOP:1;
unsigned char I2C_DATA:1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char NOT_W:1;
unsigned char :1;
unsigned char :1;
unsigned char NOT_A:1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char NOT_WRITE:1;
unsigned char :1;
unsigned char :1;
unsigned char NOT_ADDRESS:1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char R_W:1;
unsigned char :1;
unsigned char :1;
unsigned char D_A:1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char READ_WRITE:1;
unsigned char :1;
unsigned char :1;
unsigned char DATA_ADDRESS:1;
unsigned char :1;
unsigned char :1;
};
} __SSPSTAT_bits_t;
extern volatile __SSPSTAT_bits_t __at(SSPSTAT_ADDR) SSPSTAT_bits;
#ifndef NO_BIT_DEFINES
#define BF SSPSTAT_bits.BF
#define UA SSPSTAT_bits.UA
#define R SSPSTAT_bits.R
#define I2C_READ SSPSTAT_bits.I2C_READ
#define NOT_W SSPSTAT_bits.NOT_W
#define NOT_WRITE SSPSTAT_bits.NOT_WRITE
#define R_W SSPSTAT_bits.R_W
#define READ_WRITE SSPSTAT_bits.READ_WRITE
#define S SSPSTAT_bits.S
#define I2C_START SSPSTAT_bits.I2C_START
#define P SSPSTAT_bits.P
#define I2C_STOP SSPSTAT_bits.I2C_STOP
#define D SSPSTAT_bits.D
#define I2C_DATA SSPSTAT_bits.I2C_DATA
#define NOT_A SSPSTAT_bits.NOT_A
#define NOT_ADDRESS SSPSTAT_bits.NOT_ADDRESS
#define D_A SSPSTAT_bits.D_A
#define DATA_ADDRESS SSPSTAT_bits.DATA_ADDRESS
#define CKE SSPSTAT_bits.CKE
#define SMP SSPSTAT_bits.SMP
#endif /* NO_BIT_DEFINES */
// ----- STATUS bits --------------------
typedef union {
struct {
unsigned char C:1;
unsigned char DC:1;
unsigned char Z:1;
unsigned char NOT_PD:1;
unsigned char NOT_TO:1;
unsigned char RP0:1;
unsigned char RP1:1;
unsigned char IRP:1;
};
} __STATUS_bits_t;
extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
#ifndef NO_BIT_DEFINES
#define C STATUS_bits.C
#define DC STATUS_bits.DC
#define Z STATUS_bits.Z
#define NOT_PD STATUS_bits.NOT_PD
#define NOT_TO STATUS_bits.NOT_TO
#define RP0 STATUS_bits.RP0
#define RP1 STATUS_bits.RP1
#define IRP STATUS_bits.IRP
#endif /* NO_BIT_DEFINES */
// ----- T1CON bits --------------------
typedef union {
struct {
unsigned char TMR1ON:1;
unsigned char TMR1CS:1;
unsigned char NOT_T1SYNC:1;
unsigned char T1OSCEN:1;
unsigned char T1CKPS0:1;
unsigned char T1CKPS1:1;
unsigned char T1GE:1;
unsigned char T1GINV:1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char T1INSYNC:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char T1SYNC:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __T1CON_bits_t;
extern volatile __T1CON_bits_t __at(T1CON_ADDR) T1CON_bits;
#ifndef NO_BIT_DEFINES
#define TMR1ON T1CON_bits.TMR1ON
#define TMR1CS T1CON_bits.TMR1CS
#define NOT_T1SYNC T1CON_bits.NOT_T1SYNC
#define T1INSYNC T1CON_bits.T1INSYNC
#define T1SYNC T1CON_bits.T1SYNC
#define T1OSCEN T1CON_bits.T1OSCEN
#define T1CKPS0 T1CON_bits.T1CKPS0
#define T1CKPS1 T1CON_bits.T1CKPS1
#define T1GE T1CON_bits.T1GE
#define T1GINV T1CON_bits.T1GINV
#endif /* NO_BIT_DEFINES */
// ----- T2CON bits --------------------
typedef union {
struct {
unsigned char T2CKPS0:1;
unsigned char T2CKPS1:1;
unsigned char TMR2ON:1;
unsigned char TOUTPS0:1;
unsigned char TOUTPS1:1;
unsigned char TOUTPS2:1;
unsigned char TOUTPS3:1;
unsigned char :1;
};
} __T2CON_bits_t;
extern volatile __T2CON_bits_t __at(T2CON_ADDR) T2CON_bits;
#ifndef NO_BIT_DEFINES
#define T2CKPS0 T2CON_bits.T2CKPS0
#define T2CKPS1 T2CON_bits.T2CKPS1
#define TMR2ON T2CON_bits.TMR2ON
#define TOUTPS0 T2CON_bits.TOUTPS0
#define TOUTPS1 T2CON_bits.TOUTPS1
#define TOUTPS2 T2CON_bits.TOUTPS2
#define TOUTPS3 T2CON_bits.TOUTPS3
#endif /* NO_BIT_DEFINES */
// ----- TRISA bits --------------------
typedef union {
struct {
unsigned char TRISA0:1;
unsigned char TRISA1:1;
unsigned char TRISA2:1;
unsigned char TRISA3:1;
unsigned char TRISA4:1;
unsigned char TRISA5:1;
unsigned char :1;
unsigned char :1;
};
} __TRISA_bits_t;
extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
#ifndef NO_BIT_DEFINES
#define TRISA0 TRISA_bits.TRISA0
#define TRISA1 TRISA_bits.TRISA1
#define TRISA2 TRISA_bits.TRISA2
#define TRISA3 TRISA_bits.TRISA3
#define TRISA4 TRISA_bits.TRISA4
#define TRISA5 TRISA_bits.TRISA5
#endif /* NO_BIT_DEFINES */
// ----- TRISB bits --------------------
typedef union {
struct {
unsigned char TRISB0:1;
unsigned char TRISB1:1;
unsigned char TRISB2:1;
unsigned char TRISB3:1;
unsigned char TRISB4:1;
unsigned char TRISB5:1;
unsigned char TRISB6:1;
unsigned char TRISB7:1;
};
} __TRISB_bits_t;
extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
#ifndef NO_BIT_DEFINES
#define TRISB0 TRISB_bits.TRISB0
#define TRISB1 TRISB_bits.TRISB1
#define TRISB2 TRISB_bits.TRISB2
#define TRISB3 TRISB_bits.TRISB3
#define TRISB4 TRISB_bits.TRISB4
#define TRISB5 TRISB_bits.TRISB5
#define TRISB6 TRISB_bits.TRISB6
#define TRISB7 TRISB_bits.TRISB7
#endif /* NO_BIT_DEFINES */
// ----- TRISC bits --------------------
typedef union {
struct {
unsigned char TRISC0:1;
unsigned char TRISC1:1;
unsigned char TRISC2:1;
unsigned char TRISC3:1;
unsigned char TRISC4:1;
unsigned char TRISC5:1;
unsigned char TRISC6:1;
unsigned char TRISC7:1;
};
} __TRISC_bits_t;
extern volatile __TRISC_bits_t __at(TRISC_ADDR) TRISC_bits;
#ifndef NO_BIT_DEFINES
#define TRISC0 TRISC_bits.TRISC0
#define TRISC1 TRISC_bits.TRISC1
#define TRISC2 TRISC_bits.TRISC2
#define TRISC3 TRISC_bits.TRISC3
#define TRISC4 TRISC_bits.TRISC4
#define TRISC5 TRISC_bits.TRISC5
#define TRISC6 TRISC_bits.TRISC6
#define TRISC7 TRISC_bits.TRISC7
#endif /* NO_BIT_DEFINES */
// ----- TRISE bits --------------------
typedef union {
struct {
unsigned char TRISE0:1;
unsigned char TRISE1:1;
unsigned char TRISE2:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __TRISE_bits_t;
extern volatile __TRISE_bits_t __at(TRISE_ADDR) TRISE_bits;
#ifndef NO_BIT_DEFINES
#define TRISE0 TRISE_bits.TRISE0
#define TRISE1 TRISE_bits.TRISE1
#define TRISE2 TRISE_bits.TRISE2
#endif /* NO_BIT_DEFINES */
// ----- TXSTA bits --------------------
typedef union {
struct {
unsigned char TX9D:1;
unsigned char TRMT:1;
unsigned char BRGH:1;
unsigned char :1;
unsigned char SYNC:1;
unsigned char TXEN:1;
unsigned char TX9:1;
unsigned char CSRC:1;
};
struct {
unsigned char TXD8:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char NOT_TX8:1;
unsigned char :1;
};
struct {
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char TX8_9:1;
unsigned char :1;
};
} __TXSTA_bits_t;
extern volatile __TXSTA_bits_t __at(TXSTA_ADDR) TXSTA_bits;
#ifndef NO_BIT_DEFINES
#define TX9D TXSTA_bits.TX9D
#define TXD8 TXSTA_bits.TXD8
#define TRMT TXSTA_bits.TRMT
#define BRGH TXSTA_bits.BRGH
#define SYNC TXSTA_bits.SYNC
#define TXEN TXSTA_bits.TXEN
#define TX9 TXSTA_bits.TX9
#define NOT_TX8 TXSTA_bits.NOT_TX8
#define TX8_9 TXSTA_bits.TX8_9
#define CSRC TXSTA_bits.CSRC
#endif /* NO_BIT_DEFINES */
// ----- VRCON bits --------------------
typedef union {
struct {
unsigned char VR0:1;
unsigned char VR1:1;
unsigned char VR2:1;
unsigned char VR3:1;
unsigned char :1;
unsigned char VRR:1;
unsigned char :1;
unsigned char VREN:1;
};
} __VRCON_bits_t;
extern volatile __VRCON_bits_t __at(VRCON_ADDR) VRCON_bits;
#ifndef NO_BIT_DEFINES
#define VR0 VRCON_bits.VR0
#define VR1 VRCON_bits.VR1
#define VR2 VRCON_bits.VR2
#define VR3 VRCON_bits.VR3
#define VRR VRCON_bits.VRR
#define VREN VRCON_bits.VREN
#endif /* NO_BIT_DEFINES */
// ----- WDTCON bits --------------------
typedef union {
struct {
unsigned char SWDTEN:1;
unsigned char WDTPS0:1;
unsigned char WDTPS1:1;
unsigned char WDTPS2:1;
unsigned char WDTPS3:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
struct {
unsigned char SWDTE:1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
unsigned char :1;
};
} __WDTCON_bits_t;
extern volatile __WDTCON_bits_t __at(WDTCON_ADDR) WDTCON_bits;
#ifndef NO_BIT_DEFINES
#define SWDTEN WDTCON_bits.SWDTEN
#define SWDTE WDTCON_bits.SWDTE
#define WDTPS0 WDTCON_bits.WDTPS0
#define WDTPS1 WDTCON_bits.WDTPS1
#define WDTPS2 WDTCON_bits.WDTPS2
#define WDTPS3 WDTCON_bits.WDTPS3
#endif /* NO_BIT_DEFINES */
// ----- WPU bits --------------------
typedef union {
struct {
unsigned char WPU0:1;
unsigned char WPU1:1;
unsigned char WPU2:1;
unsigned char WPU3:1;
unsigned char WPU4:1;
unsigned char WPU5:1;
unsigned char WPU6:1;
unsigned char WPU7:1;
};
} __WPU_bits_t;
extern volatile __WPU_bits_t __at(WPU_ADDR) WPU_bits;
#ifndef NO_BIT_DEFINES
#define WPU0 WPU_bits.WPU0
#define WPU1 WPU_bits.WPU1
#define WPU2 WPU_bits.WPU2
#define WPU3 WPU_bits.WPU3
#define WPU4 WPU_bits.WPU4
#define WPU5 WPU_bits.WPU5
#define WPU6 WPU_bits.WPU6
#define WPU7 WPU_bits.WPU7
#endif /* NO_BIT_DEFINES */
// ----- WPUB bits --------------------
typedef union {
struct {
unsigned char WPUB0:1;
unsigned char WPUB1:1;
unsigned char WPUB2:1;
unsigned char WPUB3:1;
unsigned char WPUB4:1;
unsigned char WPUB5:1;
unsigned char WPUB6:1;
unsigned char WPUB7:1;
};
} __WPUB_bits_t;
extern volatile __WPUB_bits_t __at(WPUB_ADDR) WPUB_bits;
#ifndef NO_BIT_DEFINES
#define WPUB0 WPUB_bits.WPUB0
#define WPUB1 WPUB_bits.WPUB1
#define WPUB2 WPUB_bits.WPUB2
#define WPUB3 WPUB_bits.WPUB3
#define WPUB4 WPUB_bits.WPUB4
#define WPUB5 WPUB_bits.WPUB5
#define WPUB6 WPUB_bits.WPUB6
#define WPUB7 WPUB_bits.WPUB7
#endif /* NO_BIT_DEFINES */
#endif
|