-
Notifications
You must be signed in to change notification settings - Fork 1
/
devices.inc
1437 lines (1152 loc) · 38.5 KB
/
devices.inc
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
#ifdef __12LF1840
#include p12LF1840.inc
#define DEVICEID .222
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
; PIC12F609 does not support self-programming.
; PIC12F615 does not support self-programming.
#ifdef __12F617
#include p12F617.inc
#define DEVICEID .155
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x100
#endif
#ifdef __12F629
#include p12F629.inc
#define DEVICEID .124
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xE0
#endif
#ifdef __12F635
#include p12F635.inc
#define DEVICEID .125
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __12F675
#include p12F675.inc
#define DEVICEID .126
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xE0
#endif
#ifdef __12F683
#include p12F683.inc
#define DEVICEID .35
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x100
#endif
#ifdef __12F752
#include p12F752.inc
#define DEVICEID .168
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __12F1822
#include p12F1822.inc
#define DEVICEID .312
#define WRITE_FLASH_BLOCKSIZE .16
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __12F1840
#include p12F1840.inc
#define DEVICEID .220
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
; PIC12HV609 does not support self-programming.
; PIC12HV615 does not support self-programming.
#ifdef __12HV752
#include p12HV752.inc
#define DEVICEID .169
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __12LF1822
#include p12LF1822.inc
#define DEVICEID .320
#define WRITE_FLASH_BLOCKSIZE .16
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __16LF1947
#include p16LF1947.inc
#define DEVICEID .301
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x4000
#define END_GPR 0x1000
#endif
#ifdef __16F72
#include p16F72.inc
#define DEVICEID .5
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F73
#include p16F73.inc
#define DEVICEID .48
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F74
#include p16F74.inc
#define DEVICEID .49
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F76
#include p16F76.inc
#define DEVICEID .50
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F77
#include p16F77.inc
#define DEVICEID .51
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F83
#include p16F83.inc
#define DEVICEID .51
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x200
#define END_GPR 0xB0
#endif
#ifdef __16F84
#include p16F84.inc
#define DEVICEID .51
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xD0
#endif
#ifdef __16F84A
#include p16F84A.inc
#define DEVICEID .43
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xD0
#endif
#ifdef __16F87
#include p16F87.inc
#define DEVICEID .57
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F88
#include p16F88.inc
#define DEVICEID .59
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
; PIC16F610 does not support self-programming.
; PIC16F616 does not support self-programming.
#ifdef __16F627
#include p16F627.inc
#define DEVICEID .61
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __16F627A
#include p16F627A.inc
#define DEVICEID .130
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __16F628
#include p16F628.inc
#define DEVICEID .62
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F628A
#include p16F628A.inc
#define DEVICEID .131
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F630
#include p16F630.inc
#define DEVICEID .134
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xE0
#endif
#ifdef __16F631
#include p16F631.inc
#define DEVICEID .161
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __16F636
#include p16F636.inc
#define DEVICEID .133
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F639
#include p16F639.inc
#define DEVICEID .133
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F648A
#include p16F648A.inc
#define DEVICEID .136
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F676
#include p16F676.inc
#define DEVICEID .135
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x400
#define END_GPR 0xE0
#endif
#ifdef __16F677
#include p16F677.inc
#define DEVICEID .162
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F684
#include p16F684.inc
#define DEVICEID .132
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x100
#endif
#ifdef __16F685
#include p16F685.inc
#define DEVICEID .37
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F687
#include p16F687.inc
#define DEVICEID .153
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F688
#include p16F688.inc
#define DEVICEID .140
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F689
#include p16F689.inc
#define DEVICEID .154
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F690
#include p16F690.inc
#define DEVICEID .160
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F707
#include p16F707.inc
#define DEVICEID .214
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F716
#include p16F716.inc
#define DEVICEID .138
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x800
#define END_GPR 0x100
#endif
#ifdef __16F720
#include p16F720.inc
#define DEVICEID .224
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F721
#include p16F721.inc
#define DEVICEID .225
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F722
#include p16F722.inc
#define DEVICEID .196
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F722A
#include p16F722A.inc
#define DEVICEID .217
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F723
#include p16F723.inc
#define DEVICEID .195
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F723A
#include p16F723A.inc
#define DEVICEID .216
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F724
#include p16F724.inc
#define DEVICEID .194
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F726
#include p16F726.inc
#define DEVICEID .193
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F727
#include p16F727.inc
#define DEVICEID .192
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F737
#include p16F737.inc
#define DEVICEID .93
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F747
#include p16F747.inc
#define DEVICEID .95
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F767
#include p16F767.inc
#define DEVICEID .117
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F777
#include p16F777.inc
#define DEVICEID .111
#define WRITE_FLASH_BLOCKSIZE .2
#define ERASE_FLASH_BLOCKSIZE .1024
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F785
#include p16F785.inc
#define DEVICEID .144
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F818
#include p16F818.inc
#define DEVICEID .38
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x400
#define END_GPR 0x200
#endif
#ifdef __16F819
#include p16F819.inc
#define DEVICEID .39
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F870
#include p16F870.inc
#define DEVICEID .104
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F871
#include p16F871.inc
#define DEVICEID .105
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F872
#include p16F872.inc
#define DEVICEID .71
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F873
#include p16F873.inc
#define DEVICEID .75
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F873A
#include p16F873A.inc
#define DEVICEID .114
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .8
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F874
#include p16F874.inc
#define DEVICEID .73
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F874A
#include p16F874A.inc
#define DEVICEID .115
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .8
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F876
#include p16F876.inc
#define DEVICEID .79
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F876A
#include p16F876A.inc
#define DEVICEID .112
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .8
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F877
#include p16F877.inc
#define DEVICEID .77
#define WRITE_FLASH_BLOCKSIZE .1
#define ERASE_FLASH_BLOCKSIZE .1
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F877A
#include p16F877A.inc
#define DEVICEID .113
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .8
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F882
#include p16F882.inc
#define DEVICEID .256
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x200
#endif
#ifdef __16F883
#include p16F883.inc
#define DEVICEID .257
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F884
#include p16F884.inc
#define DEVICEID .258
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F886
#include p16F886.inc
#define DEVICEID .259
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F887
#include p16F887.inc
#define DEVICEID .260
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F913
#include p16F913.inc
#define DEVICEID .159
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F914
#include p16F914.inc
#define DEVICEID .158
#define WRITE_FLASH_BLOCKSIZE .4
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x1000
#define END_GPR 0x200
#endif
#ifdef __16F916
#include p16F916.inc
#define DEVICEID .157
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F917
#include p16F917.inc
#define DEVICEID .156
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F946
#include p16F946.inc
#define DEVICEID .163
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x2000
#define END_GPR 0x200
#endif
#ifdef __16F1507
#include p16F1507.inc
#define DEVICEID .360
#define WRITE_FLASH_BLOCKSIZE .16
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __16F1516
#include p16F1516.inc
#define DEVICEID .180
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1517
#include p16F1517.inc
#define DEVICEID .181
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1518
#include p16F1518.inc
#define DEVICEID .182
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x4000
#define END_GPR 0x1000
#endif
#ifdef __16F1519
#include p16F1519.inc
#define DEVICEID .183
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x4000
#define END_GPR 0x1000
#endif
#ifdef __16F1526
#include p16F1526.inc
#define DEVICEID .172
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1527
#include p16F1527.inc
#define DEVICEID .173
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x4000
#define END_GPR 0x1000
#endif
#ifdef __16F1782
#include p16F1782.inc
#define DEVICEID .336
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __16F1783
#include p16F1783.inc
#define DEVICEID .337
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1823
#include p16F1823.inc
#define DEVICEID .313
#define WRITE_FLASH_BLOCKSIZE .16
#define ERASE_FLASH_BLOCKSIZE .16
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __16F1824
#include p16F1824.inc
#define DEVICEID .314
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1825
#include p16F1825.inc
#define DEVICEID .315
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1826
#include p16F1826.inc
#define DEVICEID .316
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x800
#define END_GPR 0x1000
#endif
#ifdef __16F1827
#include p16F1827.inc
#define DEVICEID .317
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1828
#include p16F1828.inc
#define DEVICEID .318
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1829
#include p16F1829.inc
#define DEVICEID .319
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1847
#include p16F1847.inc
#define DEVICEID .164
#define WRITE_FLASH_BLOCKSIZE .32
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1933
#include p16F1933.inc
#define DEVICEID .280
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1934
#include p16F1934.inc
#define DEVICEID .282
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x1000
#define END_GPR 0x1000
#endif
#ifdef __16F1936
#include p16F1936.inc
#define DEVICEID .283
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1937
#include p16F1937.inc
#define DEVICEID .284
#define WRITE_FLASH_BLOCKSIZE .8
#define ERASE_FLASH_BLOCKSIZE .32
#define END_FLASH 0x2000
#define END_GPR 0x1000
#endif
#ifdef __16F1938
#include p16F1938.inc
#define DEVICEID .285