blob: bcc2925db14a8f21fdb5dd65758d5eef3a4eb2b1 (
plain)
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
|
# 1 "beep.c"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 288 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\language_support.h" 1 3
# 2 "<built-in>" 2
# 1 "beep.c" 2
# 1 "./beep.h" 1
# 1 "./conf.h" 1
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\xc.h" 1 3
# 18 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\xc.h" 3
extern const char __xc8_OPTIM_SPEED;
extern double __fpnormalize(double);
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c90\\xc8debug.h" 1 3
# 13 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\c90\\xc8debug.h" 3
#pragma intrinsic(__builtin_software_breakpoint)
extern void __builtin_software_breakpoint(void);
# 23 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\xc.h" 2 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 1 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\htc.h" 1 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\xc.h" 1 3
# 4 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\htc.h" 2 3
# 5 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 2 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic_chip_select.h" 1 3
# 2643 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic_chip_select.h" 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 1 3
# 44 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\__at.h" 1 3
# 44 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 2 3
extern volatile unsigned char INDF __attribute__((address(0x000)));
__asm("INDF equ 00h");
extern volatile unsigned char TMR0 __attribute__((address(0x001)));
__asm("TMR0 equ 01h");
extern volatile unsigned char PCL __attribute__((address(0x002)));
__asm("PCL equ 02h");
extern volatile unsigned char STATUS __attribute__((address(0x003)));
__asm("STATUS equ 03h");
typedef union {
struct {
unsigned C :1;
unsigned DC :1;
unsigned Z :1;
unsigned nPD :1;
unsigned nTO :1;
unsigned RP :2;
unsigned IRP :1;
};
struct {
unsigned :5;
unsigned RP0 :1;
unsigned RP1 :1;
};
struct {
unsigned CARRY :1;
unsigned :1;
unsigned ZERO :1;
};
} STATUSbits_t;
extern volatile STATUSbits_t STATUSbits __attribute__((address(0x003)));
# 159 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char FSR __attribute__((address(0x004)));
__asm("FSR equ 04h");
extern volatile unsigned char PORTA __attribute__((address(0x005)));
__asm("PORTA equ 05h");
typedef union {
struct {
unsigned RA0 :1;
unsigned RA1 :1;
unsigned RA2 :1;
unsigned RA3 :1;
unsigned RA4 :1;
unsigned RA5 :1;
};
} PORTAbits_t;
extern volatile PORTAbits_t PORTAbits __attribute__((address(0x005)));
# 216 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PORTB __attribute__((address(0x006)));
__asm("PORTB equ 06h");
typedef union {
struct {
unsigned RB0 :1;
unsigned RB1 :1;
unsigned RB2 :1;
unsigned RB3 :1;
unsigned RB4 :1;
unsigned RB5 :1;
unsigned RB6 :1;
unsigned RB7 :1;
};
} PORTBbits_t;
extern volatile PORTBbits_t PORTBbits __attribute__((address(0x006)));
# 278 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PORTC __attribute__((address(0x007)));
__asm("PORTC equ 07h");
typedef union {
struct {
unsigned RC0 :1;
unsigned RC1 :1;
unsigned RC2 :1;
unsigned RC3 :1;
unsigned RC4 :1;
unsigned RC5 :1;
unsigned RC6 :1;
unsigned RC7 :1;
};
} PORTCbits_t;
extern volatile PORTCbits_t PORTCbits __attribute__((address(0x007)));
# 340 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PORTD __attribute__((address(0x008)));
__asm("PORTD equ 08h");
typedef union {
struct {
unsigned RD0 :1;
unsigned RD1 :1;
unsigned RD2 :1;
unsigned RD3 :1;
unsigned RD4 :1;
unsigned RD5 :1;
unsigned RD6 :1;
unsigned RD7 :1;
};
} PORTDbits_t;
extern volatile PORTDbits_t PORTDbits __attribute__((address(0x008)));
# 402 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PORTE __attribute__((address(0x009)));
__asm("PORTE equ 09h");
typedef union {
struct {
unsigned RE0 :1;
unsigned RE1 :1;
unsigned RE2 :1;
};
} PORTEbits_t;
extern volatile PORTEbits_t PORTEbits __attribute__((address(0x009)));
# 434 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PCLATH __attribute__((address(0x00A)));
__asm("PCLATH equ 0Ah");
typedef union {
struct {
unsigned PCLATH :5;
};
} PCLATHbits_t;
extern volatile PCLATHbits_t PCLATHbits __attribute__((address(0x00A)));
# 454 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char INTCON __attribute__((address(0x00B)));
__asm("INTCON equ 0Bh");
typedef union {
struct {
unsigned RBIF :1;
unsigned INTF :1;
unsigned TMR0IF :1;
unsigned RBIE :1;
unsigned INTE :1;
unsigned TMR0IE :1;
unsigned PEIE :1;
unsigned GIE :1;
};
struct {
unsigned :2;
unsigned T0IF :1;
unsigned :2;
unsigned T0IE :1;
};
} INTCONbits_t;
extern volatile INTCONbits_t INTCONbits __attribute__((address(0x00B)));
# 532 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PIR1 __attribute__((address(0x00C)));
__asm("PIR1 equ 0Ch");
typedef union {
struct {
unsigned TMR1IF :1;
unsigned TMR2IF :1;
unsigned CCP1IF :1;
unsigned SSPIF :1;
unsigned TXIF :1;
unsigned RCIF :1;
unsigned ADIF :1;
unsigned PSPIF :1;
};
} PIR1bits_t;
extern volatile PIR1bits_t PIR1bits __attribute__((address(0x00C)));
# 594 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PIR2 __attribute__((address(0x00D)));
__asm("PIR2 equ 0Dh");
typedef union {
struct {
unsigned CCP2IF :1;
unsigned :2;
unsigned BCLIF :1;
unsigned EEIF :1;
unsigned :1;
unsigned CMIF :1;
};
} PIR2bits_t;
extern volatile PIR2bits_t PIR2bits __attribute__((address(0x00D)));
# 634 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned short TMR1 __attribute__((address(0x00E)));
__asm("TMR1 equ 0Eh");
extern volatile unsigned char TMR1L __attribute__((address(0x00E)));
__asm("TMR1L equ 0Eh");
extern volatile unsigned char TMR1H __attribute__((address(0x00F)));
__asm("TMR1H equ 0Fh");
extern volatile unsigned char T1CON __attribute__((address(0x010)));
__asm("T1CON equ 010h");
typedef union {
struct {
unsigned TMR1ON :1;
unsigned TMR1CS :1;
unsigned nT1SYNC :1;
unsigned T1OSCEN :1;
unsigned T1CKPS :2;
};
struct {
unsigned :2;
unsigned T1SYNC :1;
unsigned :1;
unsigned T1CKPS0 :1;
unsigned T1CKPS1 :1;
};
struct {
unsigned :2;
unsigned T1INSYNC :1;
};
} T1CONbits_t;
extern volatile T1CONbits_t T1CONbits __attribute__((address(0x010)));
# 730 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TMR2 __attribute__((address(0x011)));
__asm("TMR2 equ 011h");
extern volatile unsigned char T2CON __attribute__((address(0x012)));
__asm("T2CON equ 012h");
typedef union {
struct {
unsigned T2CKPS :2;
unsigned TMR2ON :1;
unsigned TOUTPS :4;
};
struct {
unsigned T2CKPS0 :1;
unsigned T2CKPS1 :1;
unsigned :1;
unsigned TOUTPS0 :1;
unsigned TOUTPS1 :1;
unsigned TOUTPS2 :1;
unsigned TOUTPS3 :1;
};
} T2CONbits_t;
extern volatile T2CONbits_t T2CONbits __attribute__((address(0x012)));
# 808 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char SSPBUF __attribute__((address(0x013)));
__asm("SSPBUF equ 013h");
extern volatile unsigned char SSPCON __attribute__((address(0x014)));
__asm("SSPCON equ 014h");
typedef union {
struct {
unsigned SSPM :4;
unsigned CKP :1;
unsigned SSPEN :1;
unsigned SSPOV :1;
unsigned WCOL :1;
};
struct {
unsigned SSPM0 :1;
unsigned SSPM1 :1;
unsigned SSPM2 :1;
unsigned SSPM3 :1;
};
} SSPCONbits_t;
extern volatile SSPCONbits_t SSPCONbits __attribute__((address(0x014)));
# 885 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned short CCPR1 __attribute__((address(0x015)));
__asm("CCPR1 equ 015h");
extern volatile unsigned char CCPR1L __attribute__((address(0x015)));
__asm("CCPR1L equ 015h");
extern volatile unsigned char CCPR1H __attribute__((address(0x016)));
__asm("CCPR1H equ 016h");
extern volatile unsigned char CCP1CON __attribute__((address(0x017)));
__asm("CCP1CON equ 017h");
typedef union {
struct {
unsigned CCP1M :4;
unsigned CCP1Y :1;
unsigned CCP1X :1;
};
struct {
unsigned CCP1M0 :1;
unsigned CCP1M1 :1;
unsigned CCP1M2 :1;
unsigned CCP1M3 :1;
};
} CCP1CONbits_t;
extern volatile CCP1CONbits_t CCP1CONbits __attribute__((address(0x017)));
# 964 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char RCSTA __attribute__((address(0x018)));
__asm("RCSTA equ 018h");
typedef union {
struct {
unsigned RX9D :1;
unsigned OERR :1;
unsigned FERR :1;
unsigned ADDEN :1;
unsigned CREN :1;
unsigned SREN :1;
unsigned RX9 :1;
unsigned SPEN :1;
};
struct {
unsigned RCD8 :1;
unsigned :5;
unsigned RC9 :1;
};
struct {
unsigned :6;
unsigned nRC8 :1;
};
struct {
unsigned :6;
unsigned RC8_9 :1;
};
} RCSTAbits_t;
extern volatile RCSTAbits_t RCSTAbits __attribute__((address(0x018)));
# 1059 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TXREG __attribute__((address(0x019)));
__asm("TXREG equ 019h");
extern volatile unsigned char RCREG __attribute__((address(0x01A)));
__asm("RCREG equ 01Ah");
extern volatile unsigned short CCPR2 __attribute__((address(0x01B)));
__asm("CCPR2 equ 01Bh");
extern volatile unsigned char CCPR2L __attribute__((address(0x01B)));
__asm("CCPR2L equ 01Bh");
extern volatile unsigned char CCPR2H __attribute__((address(0x01C)));
__asm("CCPR2H equ 01Ch");
extern volatile unsigned char CCP2CON __attribute__((address(0x01D)));
__asm("CCP2CON equ 01Dh");
typedef union {
struct {
unsigned CCP2M :4;
unsigned CCP2Y :1;
unsigned CCP2X :1;
};
struct {
unsigned CCP2M0 :1;
unsigned CCP2M1 :1;
unsigned CCP2M2 :1;
unsigned CCP2M3 :1;
};
} CCP2CONbits_t;
extern volatile CCP2CONbits_t CCP2CONbits __attribute__((address(0x01D)));
# 1152 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char ADRESH __attribute__((address(0x01E)));
__asm("ADRESH equ 01Eh");
extern volatile unsigned char ADCON0 __attribute__((address(0x01F)));
__asm("ADCON0 equ 01Fh");
typedef union {
struct {
unsigned ADON :1;
unsigned :1;
unsigned GO_nDONE :1;
unsigned CHS :3;
unsigned ADCS :2;
};
struct {
unsigned :2;
unsigned GO :1;
unsigned CHS0 :1;
unsigned CHS1 :1;
unsigned CHS2 :1;
unsigned ADCS0 :1;
unsigned ADCS1 :1;
};
struct {
unsigned :2;
unsigned nDONE :1;
};
struct {
unsigned :2;
unsigned GO_DONE :1;
};
} ADCON0bits_t;
extern volatile ADCON0bits_t ADCON0bits __attribute__((address(0x01F)));
# 1255 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char OPTION_REG __attribute__((address(0x081)));
__asm("OPTION_REG equ 081h");
typedef union {
struct {
unsigned PS :3;
unsigned PSA :1;
unsigned T0SE :1;
unsigned T0CS :1;
unsigned INTEDG :1;
unsigned nRBPU :1;
};
struct {
unsigned PS0 :1;
unsigned PS1 :1;
unsigned PS2 :1;
};
} OPTION_REGbits_t;
extern volatile OPTION_REGbits_t OPTION_REGbits __attribute__((address(0x081)));
# 1325 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TRISA __attribute__((address(0x085)));
__asm("TRISA equ 085h");
typedef union {
struct {
unsigned TRISA0 :1;
unsigned TRISA1 :1;
unsigned TRISA2 :1;
unsigned TRISA3 :1;
unsigned TRISA4 :1;
unsigned TRISA5 :1;
};
} TRISAbits_t;
extern volatile TRISAbits_t TRISAbits __attribute__((address(0x085)));
# 1375 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TRISB __attribute__((address(0x086)));
__asm("TRISB equ 086h");
typedef union {
struct {
unsigned TRISB0 :1;
unsigned TRISB1 :1;
unsigned TRISB2 :1;
unsigned TRISB3 :1;
unsigned TRISB4 :1;
unsigned TRISB5 :1;
unsigned TRISB6 :1;
unsigned TRISB7 :1;
};
} TRISBbits_t;
extern volatile TRISBbits_t TRISBbits __attribute__((address(0x086)));
# 1437 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TRISC __attribute__((address(0x087)));
__asm("TRISC equ 087h");
typedef union {
struct {
unsigned TRISC0 :1;
unsigned TRISC1 :1;
unsigned TRISC2 :1;
unsigned TRISC3 :1;
unsigned TRISC4 :1;
unsigned TRISC5 :1;
unsigned TRISC6 :1;
unsigned TRISC7 :1;
};
} TRISCbits_t;
extern volatile TRISCbits_t TRISCbits __attribute__((address(0x087)));
# 1499 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TRISD __attribute__((address(0x088)));
__asm("TRISD equ 088h");
typedef union {
struct {
unsigned TRISD0 :1;
unsigned TRISD1 :1;
unsigned TRISD2 :1;
unsigned TRISD3 :1;
unsigned TRISD4 :1;
unsigned TRISD5 :1;
unsigned TRISD6 :1;
unsigned TRISD7 :1;
};
} TRISDbits_t;
extern volatile TRISDbits_t TRISDbits __attribute__((address(0x088)));
# 1561 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TRISE __attribute__((address(0x089)));
__asm("TRISE equ 089h");
typedef union {
struct {
unsigned TRISE0 :1;
unsigned TRISE1 :1;
unsigned TRISE2 :1;
unsigned :1;
unsigned PSPMODE :1;
unsigned IBOV :1;
unsigned OBF :1;
unsigned IBF :1;
};
} TRISEbits_t;
extern volatile TRISEbits_t TRISEbits __attribute__((address(0x089)));
# 1618 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PIE1 __attribute__((address(0x08C)));
__asm("PIE1 equ 08Ch");
typedef union {
struct {
unsigned TMR1IE :1;
unsigned TMR2IE :1;
unsigned CCP1IE :1;
unsigned SSPIE :1;
unsigned TXIE :1;
unsigned RCIE :1;
unsigned ADIE :1;
unsigned PSPIE :1;
};
} PIE1bits_t;
extern volatile PIE1bits_t PIE1bits __attribute__((address(0x08C)));
# 1680 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PIE2 __attribute__((address(0x08D)));
__asm("PIE2 equ 08Dh");
typedef union {
struct {
unsigned CCP2IE :1;
unsigned :2;
unsigned BCLIE :1;
unsigned EEIE :1;
unsigned :1;
unsigned CMIE :1;
};
} PIE2bits_t;
extern volatile PIE2bits_t PIE2bits __attribute__((address(0x08D)));
# 1720 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PCON __attribute__((address(0x08E)));
__asm("PCON equ 08Eh");
typedef union {
struct {
unsigned nBOR :1;
unsigned nPOR :1;
};
struct {
unsigned nBO :1;
};
} PCONbits_t;
extern volatile PCONbits_t PCONbits __attribute__((address(0x08E)));
# 1754 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char SSPCON2 __attribute__((address(0x091)));
__asm("SSPCON2 equ 091h");
typedef union {
struct {
unsigned SEN :1;
unsigned RSEN :1;
unsigned PEN :1;
unsigned RCEN :1;
unsigned ACKEN :1;
unsigned ACKDT :1;
unsigned ACKSTAT :1;
unsigned GCEN :1;
};
} SSPCON2bits_t;
extern volatile SSPCON2bits_t SSPCON2bits __attribute__((address(0x091)));
# 1816 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char PR2 __attribute__((address(0x092)));
__asm("PR2 equ 092h");
extern volatile unsigned char SSPADD __attribute__((address(0x093)));
__asm("SSPADD equ 093h");
extern volatile unsigned char SSPSTAT __attribute__((address(0x094)));
__asm("SSPSTAT equ 094h");
typedef union {
struct {
unsigned BF :1;
unsigned UA :1;
unsigned R_nW :1;
unsigned S :1;
unsigned P :1;
unsigned D_nA :1;
unsigned CKE :1;
unsigned SMP :1;
};
struct {
unsigned :2;
unsigned R :1;
unsigned :2;
unsigned D :1;
};
struct {
unsigned :2;
unsigned I2C_READ :1;
unsigned I2C_START :1;
unsigned I2C_STOP :1;
unsigned I2C_DATA :1;
};
struct {
unsigned :2;
unsigned nW :1;
unsigned :2;
unsigned nA :1;
};
struct {
unsigned :2;
unsigned nWRITE :1;
unsigned :2;
unsigned nADDRESS :1;
};
struct {
unsigned :2;
unsigned R_W :1;
unsigned :2;
unsigned D_A :1;
};
struct {
unsigned :2;
unsigned READ_WRITE :1;
unsigned :2;
unsigned DATA_ADDRESS :1;
};
} SSPSTATbits_t;
extern volatile SSPSTATbits_t SSPSTATbits __attribute__((address(0x094)));
# 1999 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char TXSTA __attribute__((address(0x098)));
__asm("TXSTA equ 098h");
typedef union {
struct {
unsigned TX9D :1;
unsigned TRMT :1;
unsigned BRGH :1;
unsigned :1;
unsigned SYNC :1;
unsigned TXEN :1;
unsigned TX9 :1;
unsigned CSRC :1;
};
struct {
unsigned TXD8 :1;
unsigned :5;
unsigned nTX8 :1;
};
struct {
unsigned :6;
unsigned TX8_9 :1;
};
} TXSTAbits_t;
extern volatile TXSTAbits_t TXSTAbits __attribute__((address(0x098)));
# 2080 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char SPBRG __attribute__((address(0x099)));
__asm("SPBRG equ 099h");
extern volatile unsigned char CMCON __attribute__((address(0x09C)));
__asm("CMCON equ 09Ch");
typedef union {
struct {
unsigned CM :3;
unsigned CIS :1;
unsigned C1INV :1;
unsigned C2INV :1;
unsigned C1OUT :1;
unsigned C2OUT :1;
};
struct {
unsigned CM0 :1;
unsigned CM1 :1;
unsigned CM2 :1;
};
} CMCONbits_t;
extern volatile CMCONbits_t CMCONbits __attribute__((address(0x09C)));
# 2157 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char CVRCON __attribute__((address(0x09D)));
__asm("CVRCON equ 09Dh");
typedef union {
struct {
unsigned CVR :4;
unsigned :1;
unsigned CVRR :1;
unsigned CVROE :1;
unsigned CVREN :1;
};
struct {
unsigned CVR0 :1;
unsigned CVR1 :1;
unsigned CVR2 :1;
unsigned CVR3 :1;
};
} CVRCONbits_t;
extern volatile CVRCONbits_t CVRCONbits __attribute__((address(0x09D)));
# 2222 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char ADRESL __attribute__((address(0x09E)));
__asm("ADRESL equ 09Eh");
extern volatile unsigned char ADCON1 __attribute__((address(0x09F)));
__asm("ADCON1 equ 09Fh");
typedef union {
struct {
unsigned PCFG :4;
unsigned :2;
unsigned ADCS2 :1;
unsigned ADFM :1;
};
struct {
unsigned PCFG0 :1;
unsigned PCFG1 :1;
unsigned PCFG2 :1;
unsigned PCFG3 :1;
};
} ADCON1bits_t;
extern volatile ADCON1bits_t ADCON1bits __attribute__((address(0x09F)));
# 2288 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char EEDATA __attribute__((address(0x10C)));
__asm("EEDATA equ 010Ch");
extern volatile unsigned char EEADR __attribute__((address(0x10D)));
__asm("EEADR equ 010Dh");
extern volatile unsigned char EEDATH __attribute__((address(0x10E)));
__asm("EEDATH equ 010Eh");
extern volatile unsigned char EEADRH __attribute__((address(0x10F)));
__asm("EEADRH equ 010Fh");
extern volatile unsigned char EECON1 __attribute__((address(0x18C)));
__asm("EECON1 equ 018Ch");
typedef union {
struct {
unsigned RD :1;
unsigned WR :1;
unsigned WREN :1;
unsigned WRERR :1;
unsigned :3;
unsigned EEPGD :1;
};
} EECON1bits_t;
extern volatile EECON1bits_t EECON1bits __attribute__((address(0x18C)));
# 2361 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile unsigned char EECON2 __attribute__((address(0x18D)));
__asm("EECON2 equ 018Dh");
# 2374 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic16f877a.h" 3
extern volatile __bit ACKDT __attribute__((address(0x48D)));
extern volatile __bit ACKEN __attribute__((address(0x48C)));
extern volatile __bit ACKSTAT __attribute__((address(0x48E)));
extern volatile __bit ADCS0 __attribute__((address(0xFE)));
extern volatile __bit ADCS1 __attribute__((address(0xFF)));
extern volatile __bit ADCS2 __attribute__((address(0x4FE)));
extern volatile __bit ADDEN __attribute__((address(0xC3)));
extern volatile __bit ADFM __attribute__((address(0x4FF)));
extern volatile __bit ADIE __attribute__((address(0x466)));
extern volatile __bit ADIF __attribute__((address(0x66)));
extern volatile __bit ADON __attribute__((address(0xF8)));
extern volatile __bit BCLIE __attribute__((address(0x46B)));
extern volatile __bit BCLIF __attribute__((address(0x6B)));
extern volatile __bit BF __attribute__((address(0x4A0)));
extern volatile __bit BRGH __attribute__((address(0x4C2)));
extern volatile __bit C1INV __attribute__((address(0x4E4)));
extern volatile __bit C1OUT __attribute__((address(0x4E6)));
extern volatile __bit C2INV __attribute__((address(0x4E5)));
extern volatile __bit C2OUT __attribute__((address(0x4E7)));
extern volatile __bit CARRY __attribute__((address(0x18)));
extern volatile __bit CCP1IE __attribute__((address(0x462)));
extern volatile __bit CCP1IF __attribute__((address(0x62)));
extern volatile __bit CCP1M0 __attribute__((address(0xB8)));
extern volatile __bit CCP1M1 __attribute__((address(0xB9)));
extern volatile __bit CCP1M2 __attribute__((address(0xBA)));
extern volatile __bit CCP1M3 __attribute__((address(0xBB)));
extern volatile __bit CCP1X __attribute__((address(0xBD)));
extern volatile __bit CCP1Y __attribute__((address(0xBC)));
extern volatile __bit CCP2IE __attribute__((address(0x468)));
extern volatile __bit CCP2IF __attribute__((address(0x68)));
extern volatile __bit CCP2M0 __attribute__((address(0xE8)));
extern volatile __bit CCP2M1 __attribute__((address(0xE9)));
extern volatile __bit CCP2M2 __attribute__((address(0xEA)));
extern volatile __bit CCP2M3 __attribute__((address(0xEB)));
extern volatile __bit CCP2X __attribute__((address(0xED)));
extern volatile __bit CCP2Y __attribute__((address(0xEC)));
extern volatile __bit CHS0 __attribute__((address(0xFB)));
extern volatile __bit CHS1 __attribute__((address(0xFC)));
extern volatile __bit CHS2 __attribute__((address(0xFD)));
extern volatile __bit CIS __attribute__((address(0x4E3)));
extern volatile __bit CKE __attribute__((address(0x4A6)));
extern volatile __bit CKP __attribute__((address(0xA4)));
extern volatile __bit CM0 __attribute__((address(0x4E0)));
extern volatile __bit CM1 __attribute__((address(0x4E1)));
extern volatile __bit CM2 __attribute__((address(0x4E2)));
extern volatile __bit CMIE __attribute__((address(0x46E)));
extern volatile __bit CMIF __attribute__((address(0x6E)));
extern volatile __bit CREN __attribute__((address(0xC4)));
extern volatile __bit CSRC __attribute__((address(0x4C7)));
extern volatile __bit CVR0 __attribute__((address(0x4E8)));
extern volatile __bit CVR1 __attribute__((address(0x4E9)));
extern volatile __bit CVR2 __attribute__((address(0x4EA)));
extern volatile __bit CVR3 __attribute__((address(0x4EB)));
extern volatile __bit CVREN __attribute__((address(0x4EF)));
extern volatile __bit CVROE __attribute__((address(0x4EE)));
extern volatile __bit CVRR __attribute__((address(0x4ED)));
extern volatile __bit DATA_ADDRESS __attribute__((address(0x4A5)));
extern volatile __bit DC __attribute__((address(0x19)));
extern volatile __bit D_A __attribute__((address(0x4A5)));
extern volatile __bit D_nA __attribute__((address(0x4A5)));
extern volatile __bit EEIE __attribute__((address(0x46C)));
extern volatile __bit EEIF __attribute__((address(0x6C)));
extern volatile __bit EEPGD __attribute__((address(0xC67)));
extern volatile __bit FERR __attribute__((address(0xC2)));
extern volatile __bit GCEN __attribute__((address(0x48F)));
extern volatile __bit GIE __attribute__((address(0x5F)));
extern volatile __bit GO __attribute__((address(0xFA)));
extern volatile __bit GO_DONE __attribute__((address(0xFA)));
extern volatile __bit GO_nDONE __attribute__((address(0xFA)));
extern volatile __bit I2C_DATA __attribute__((address(0x4A5)));
extern volatile __bit I2C_READ __attribute__((address(0x4A2)));
extern volatile __bit I2C_START __attribute__((address(0x4A3)));
extern volatile __bit I2C_STOP __attribute__((address(0x4A4)));
extern volatile __bit IBF __attribute__((address(0x44F)));
extern volatile __bit IBOV __attribute__((address(0x44D)));
extern volatile __bit INTE __attribute__((address(0x5C)));
extern volatile __bit INTEDG __attribute__((address(0x40E)));
extern volatile __bit INTF __attribute__((address(0x59)));
extern volatile __bit IRP __attribute__((address(0x1F)));
extern volatile __bit OBF __attribute__((address(0x44E)));
extern volatile __bit OERR __attribute__((address(0xC1)));
extern volatile __bit PCFG0 __attribute__((address(0x4F8)));
extern volatile __bit PCFG1 __attribute__((address(0x4F9)));
extern volatile __bit PCFG2 __attribute__((address(0x4FA)));
extern volatile __bit PCFG3 __attribute__((address(0x4FB)));
extern volatile __bit PEIE __attribute__((address(0x5E)));
extern volatile __bit PEN __attribute__((address(0x48A)));
extern volatile __bit PS0 __attribute__((address(0x408)));
extern volatile __bit PS1 __attribute__((address(0x409)));
extern volatile __bit PS2 __attribute__((address(0x40A)));
extern volatile __bit PSA __attribute__((address(0x40B)));
extern volatile __bit PSPIE __attribute__((address(0x467)));
extern volatile __bit PSPIF __attribute__((address(0x67)));
extern volatile __bit PSPMODE __attribute__((address(0x44C)));
extern volatile __bit RA0 __attribute__((address(0x28)));
extern volatile __bit RA1 __attribute__((address(0x29)));
extern volatile __bit RA2 __attribute__((address(0x2A)));
extern volatile __bit RA3 __attribute__((address(0x2B)));
extern volatile __bit RA4 __attribute__((address(0x2C)));
extern volatile __bit RA5 __attribute__((address(0x2D)));
extern volatile __bit RB0 __attribute__((address(0x30)));
extern volatile __bit RB1 __attribute__((address(0x31)));
extern volatile __bit RB2 __attribute__((address(0x32)));
extern volatile __bit RB3 __attribute__((address(0x33)));
extern volatile __bit RB4 __attribute__((address(0x34)));
extern volatile __bit RB5 __attribute__((address(0x35)));
extern volatile __bit RB6 __attribute__((address(0x36)));
extern volatile __bit RB7 __attribute__((address(0x37)));
extern volatile __bit RBIE __attribute__((address(0x5B)));
extern volatile __bit RBIF __attribute__((address(0x58)));
extern volatile __bit RC0 __attribute__((address(0x38)));
extern volatile __bit RC1 __attribute__((address(0x39)));
extern volatile __bit RC2 __attribute__((address(0x3A)));
extern volatile __bit RC3 __attribute__((address(0x3B)));
extern volatile __bit RC4 __attribute__((address(0x3C)));
extern volatile __bit RC5 __attribute__((address(0x3D)));
extern volatile __bit RC6 __attribute__((address(0x3E)));
extern volatile __bit RC7 __attribute__((address(0x3F)));
extern volatile __bit RC8_9 __attribute__((address(0xC6)));
extern volatile __bit RC9 __attribute__((address(0xC6)));
extern volatile __bit RCD8 __attribute__((address(0xC0)));
extern volatile __bit RCEN __attribute__((address(0x48B)));
extern volatile __bit RCIE __attribute__((address(0x465)));
extern volatile __bit RCIF __attribute__((address(0x65)));
extern volatile __bit RD __attribute__((address(0xC60)));
extern volatile __bit RD0 __attribute__((address(0x40)));
extern volatile __bit RD1 __attribute__((address(0x41)));
extern volatile __bit RD2 __attribute__((address(0x42)));
extern volatile __bit RD3 __attribute__((address(0x43)));
extern volatile __bit RD4 __attribute__((address(0x44)));
extern volatile __bit RD5 __attribute__((address(0x45)));
extern volatile __bit RD6 __attribute__((address(0x46)));
extern volatile __bit RD7 __attribute__((address(0x47)));
extern volatile __bit RE0 __attribute__((address(0x48)));
extern volatile __bit RE1 __attribute__((address(0x49)));
extern volatile __bit RE2 __attribute__((address(0x4A)));
extern volatile __bit READ_WRITE __attribute__((address(0x4A2)));
extern volatile __bit RP0 __attribute__((address(0x1D)));
extern volatile __bit RP1 __attribute__((address(0x1E)));
extern volatile __bit RSEN __attribute__((address(0x489)));
extern volatile __bit RX9 __attribute__((address(0xC6)));
extern volatile __bit RX9D __attribute__((address(0xC0)));
extern volatile __bit R_W __attribute__((address(0x4A2)));
extern volatile __bit R_nW __attribute__((address(0x4A2)));
extern volatile __bit SEN __attribute__((address(0x488)));
extern volatile __bit SMP __attribute__((address(0x4A7)));
extern volatile __bit SPEN __attribute__((address(0xC7)));
extern volatile __bit SREN __attribute__((address(0xC5)));
extern volatile __bit SSPEN __attribute__((address(0xA5)));
extern volatile __bit SSPIE __attribute__((address(0x463)));
extern volatile __bit SSPIF __attribute__((address(0x63)));
extern volatile __bit SSPM0 __attribute__((address(0xA0)));
extern volatile __bit SSPM1 __attribute__((address(0xA1)));
extern volatile __bit SSPM2 __attribute__((address(0xA2)));
extern volatile __bit SSPM3 __attribute__((address(0xA3)));
extern volatile __bit SSPOV __attribute__((address(0xA6)));
extern volatile __bit SYNC __attribute__((address(0x4C4)));
extern volatile __bit T0CS __attribute__((address(0x40D)));
extern volatile __bit T0IE __attribute__((address(0x5D)));
extern volatile __bit T0IF __attribute__((address(0x5A)));
extern volatile __bit T0SE __attribute__((address(0x40C)));
extern volatile __bit T1CKPS0 __attribute__((address(0x84)));
extern volatile __bit T1CKPS1 __attribute__((address(0x85)));
extern volatile __bit T1INSYNC __attribute__((address(0x82)));
extern volatile __bit T1OSCEN __attribute__((address(0x83)));
extern volatile __bit T1SYNC __attribute__((address(0x82)));
extern volatile __bit T2CKPS0 __attribute__((address(0x90)));
extern volatile __bit T2CKPS1 __attribute__((address(0x91)));
extern volatile __bit TMR0IE __attribute__((address(0x5D)));
extern volatile __bit TMR0IF __attribute__((address(0x5A)));
extern volatile __bit TMR1CS __attribute__((address(0x81)));
extern volatile __bit TMR1IE __attribute__((address(0x460)));
extern volatile __bit TMR1IF __attribute__((address(0x60)));
extern volatile __bit TMR1ON __attribute__((address(0x80)));
extern volatile __bit TMR2IE __attribute__((address(0x461)));
extern volatile __bit TMR2IF __attribute__((address(0x61)));
extern volatile __bit TMR2ON __attribute__((address(0x92)));
extern volatile __bit TOUTPS0 __attribute__((address(0x93)));
extern volatile __bit TOUTPS1 __attribute__((address(0x94)));
extern volatile __bit TOUTPS2 __attribute__((address(0x95)));
extern volatile __bit TOUTPS3 __attribute__((address(0x96)));
extern volatile __bit TRISA0 __attribute__((address(0x428)));
extern volatile __bit TRISA1 __attribute__((address(0x429)));
extern volatile __bit TRISA2 __attribute__((address(0x42A)));
extern volatile __bit TRISA3 __attribute__((address(0x42B)));
extern volatile __bit TRISA4 __attribute__((address(0x42C)));
extern volatile __bit TRISA5 __attribute__((address(0x42D)));
extern volatile __bit TRISB0 __attribute__((address(0x430)));
extern volatile __bit TRISB1 __attribute__((address(0x431)));
extern volatile __bit TRISB2 __attribute__((address(0x432)));
extern volatile __bit TRISB3 __attribute__((address(0x433)));
extern volatile __bit TRISB4 __attribute__((address(0x434)));
extern volatile __bit TRISB5 __attribute__((address(0x435)));
extern volatile __bit TRISB6 __attribute__((address(0x436)));
extern volatile __bit TRISB7 __attribute__((address(0x437)));
extern volatile __bit TRISC0 __attribute__((address(0x438)));
extern volatile __bit TRISC1 __attribute__((address(0x439)));
extern volatile __bit TRISC2 __attribute__((address(0x43A)));
extern volatile __bit TRISC3 __attribute__((address(0x43B)));
extern volatile __bit TRISC4 __attribute__((address(0x43C)));
extern volatile __bit TRISC5 __attribute__((address(0x43D)));
extern volatile __bit TRISC6 __attribute__((address(0x43E)));
extern volatile __bit TRISC7 __attribute__((address(0x43F)));
extern volatile __bit TRISD0 __attribute__((address(0x440)));
extern volatile __bit TRISD1 __attribute__((address(0x441)));
extern volatile __bit TRISD2 __attribute__((address(0x442)));
extern volatile __bit TRISD3 __attribute__((address(0x443)));
extern volatile __bit TRISD4 __attribute__((address(0x444)));
extern volatile __bit TRISD5 __attribute__((address(0x445)));
extern volatile __bit TRISD6 __attribute__((address(0x446)));
extern volatile __bit TRISD7 __attribute__((address(0x447)));
extern volatile __bit TRISE0 __attribute__((address(0x448)));
extern volatile __bit TRISE1 __attribute__((address(0x449)));
extern volatile __bit TRISE2 __attribute__((address(0x44A)));
extern volatile __bit TRMT __attribute__((address(0x4C1)));
extern volatile __bit TX8_9 __attribute__((address(0x4C6)));
extern volatile __bit TX9 __attribute__((address(0x4C6)));
extern volatile __bit TX9D __attribute__((address(0x4C0)));
extern volatile __bit TXD8 __attribute__((address(0x4C0)));
extern volatile __bit TXEN __attribute__((address(0x4C5)));
extern volatile __bit TXIE __attribute__((address(0x464)));
extern volatile __bit TXIF __attribute__((address(0x64)));
extern volatile __bit UA __attribute__((address(0x4A1)));
extern volatile __bit WCOL __attribute__((address(0xA7)));
extern volatile __bit WR __attribute__((address(0xC61)));
extern volatile __bit WREN __attribute__((address(0xC62)));
extern volatile __bit WRERR __attribute__((address(0xC63)));
extern volatile __bit ZERO __attribute__((address(0x1A)));
extern volatile __bit nA __attribute__((address(0x4A5)));
extern volatile __bit nADDRESS __attribute__((address(0x4A5)));
extern volatile __bit nBO __attribute__((address(0x470)));
extern volatile __bit nBOR __attribute__((address(0x470)));
extern volatile __bit nDONE __attribute__((address(0xFA)));
extern volatile __bit nPD __attribute__((address(0x1B)));
extern volatile __bit nPOR __attribute__((address(0x471)));
extern volatile __bit nRBPU __attribute__((address(0x40F)));
extern volatile __bit nRC8 __attribute__((address(0xC6)));
extern volatile __bit nT1SYNC __attribute__((address(0x82)));
extern volatile __bit nTO __attribute__((address(0x1C)));
extern volatile __bit nTX8 __attribute__((address(0x4C6)));
extern volatile __bit nW __attribute__((address(0x4A2)));
extern volatile __bit nWRITE __attribute__((address(0x4A2)));
# 2643 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic_chip_select.h" 2 3
# 13 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 2 3
# 30 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 3
#pragma intrinsic(__nop)
extern void __nop(void);
# 78 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 3
__attribute__((__unsupported__("The " "FLASH_READ" " macro function is no longer supported. Please use the MPLAB X MCC."))) unsigned char __flash_read(unsigned short addr);
__attribute__((__unsupported__("The " "FLASH_WRITE" " macro function is no longer supported. Please use the MPLAB X MCC."))) void __flash_write(unsigned short addr, unsigned short data);
__attribute__((__unsupported__("The " "FLASH_ERASE" " macro function is no longer supported. Please use the MPLAB X MCC."))) void __flash_erase(unsigned short addr);
# 1 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\eeprom_routines.h" 1 3
# 114 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\eeprom_routines.h" 3
extern void eeprom_write(unsigned char addr, unsigned char value);
extern unsigned char eeprom_read(unsigned char addr);
# 85 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 2 3
#pragma intrinsic(_delay)
extern __attribute__((nonreentrant)) void _delay(unsigned long);
#pragma intrinsic(_delaywdt)
extern __attribute__((nonreentrant)) void _delaywdt(unsigned long);
# 137 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\pic.h" 3
extern __bank0 unsigned char __resetbits;
extern __bank0 __bit __powerdown;
extern __bank0 __bit __timeout;
# 27 "C:\\Program Files (x86)\\Microchip\\xc8\\v2.05\\pic\\include\\xc.h" 2 3
# 1 "./conf.h" 2
#pragma config FOSC = HS
#pragma config WDTE = OFF
#pragma config PWRTE = ON
#pragma config BOREN = ON
#pragma config LVP = OFF
#pragma config CPD = OFF
#pragma config WRT = OFF
#pragma config CP = OFF
# 1 "./beep.h" 2
void alarm(unsigned int);
# 1 "beep.c" 2
void alarm(unsigned int numberOfBeeps) {
for (int i = 0; i < numberOfBeeps; i++) {
for (int j = 0; j < 250; j++) {
RD1 = 1;
_delay((unsigned long)((375)*(20000000/4000000.0)));
RD1 = 0;
_delay((unsigned long)((125)*(20000000/4000000.0)));
}
_delay((unsigned long)((500)*(20000000/4000.0)));
}
}
|