~ubuntu-branches/ubuntu/quantal/gputils/quantal

« back to all changes in this revision

Viewing changes to header/p18f86j50.inc

  • Committer: Bazaar Package Importer
  • Author(s): Taisuke Yamada
  • Date: 2009-03-16 08:39:23 UTC
  • mfrom: (1.1.8 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090316083923-jr9k3f8bchev19s0
Tags: 0.13.7-1
* New upstream release.
* New maintainer (Closes: #504473)
* Bumped Standards-Version to 3.8.1.
* General updates in debian/* to make it lintian clean.
* Removed PS/PDF files from gputils due to duplicate with gputils-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
        LIST
2
2
 
3
3
;==========================================================================
4
 
;  $Id: p18f86j50.inc 448 2006-08-19 02:52:41Z craigfranklin $
5
4
;  MPASM PIC18F86J50 processor include
6
5
7
 
;  (c) Copyright 1999-2006 Microchip Technology, All rights reserved
 
6
;  (c) Copyright 1999-2007 Microchip Technology, All rights reserved
8
7
;==========================================================================
9
8
 
10
9
        NOLIST
68
67
PMSTAT           EQU  H'0F40'
69
68
PMSTATL          EQU  H'0F40'
70
69
PMSTATH          EQU  H'0F41'
71
 
PMPENL           EQU  H'0F42'
72
 
PMPENH           EQU  H'0F43'
73
 
PMPDATA2         EQU  H'0F44'
74
 
PMPDATA2L        EQU  H'0F44'
75
 
PMPDATA2H        EQU  H'0F45'
 
70
PMEL             EQU  H'0F42'
 
71
PMEN             EQU  H'0F42'
 
72
PMEH             EQU  H'0F43'
 
73
PMDIN2           EQU  H'0F44'
 
74
PMDIN2L          EQU  H'0F44'
 
75
PMDIN2H          EQU  H'0F45'
76
76
PMDOUT2          EQU  H'0F46'
77
77
PMDOUT2L         EQU  H'0F46'
78
78
PMDOUT2H         EQU  H'0F47'
79
 
PMPMODE          EQU  H'0F48'
80
 
PMPMODEL         EQU  H'0F48'
81
 
PMPMODEH         EQU  H'0F49'
82
 
PMPCON           EQU  H'0F4A'
83
 
PMPCONL          EQU  H'0F4A'
84
 
PMPCONH          EQU  H'0F4B'
 
79
PMMODE           EQU  H'0F48'
 
80
PMMODEL          EQU  H'0F48'
 
81
PMMODEH          EQU  H'0F49'
 
82
PMCON            EQU  H'0F4A'
 
83
PMCONL           EQU  H'0F4A'
 
84
PMCONH           EQU  H'0F4B'
85
85
UEP0             EQU  H'0F4C'
86
86
UEP1             EQU  H'0F4D'
87
87
UEP2             EQU  H'0F4E'
109
109
UEIR             EQU  H'0F63'
110
110
USTAT            EQU  H'0F64'
111
111
UCON             EQU  H'0F65'
112
 
PMPDATA1         EQU  H'0F66'
113
 
PMPDATA1L        EQU  H'0F66'
114
 
PMPDATA1H        EQU  H'0F67'
 
112
PMDIN1           EQU  H'0F66'
 
113
PMDIN1L          EQU  H'0F66'
 
114
PMDIN1H          EQU  H'0F67'
 
115
PMADDR           EQU  H'0F68'
 
116
PMADDRL          EQU  H'0F68'
115
117
PMDOUT1          EQU  H'0F68'
116
118
PMDOUT1L         EQU  H'0F68'
117
 
PMPADDR          EQU  H'0F68'
118
 
PMPADDRL         EQU  H'0F68'
 
119
PMADDRH          EQU  H'0F69'
119
120
PMDOUT1H         EQU  H'0F69'
120
 
PMPADDRH         EQU  H'0F69'
 
121
CMSTAT           EQU  H'0F6A'
121
122
CMSTATUS         EQU  H'0F6A'
122
123
SSP2CON2         EQU  H'0F6B'
123
124
SSP2CON1         EQU  H'0F6C'
142
143
TMR3H            EQU  H'0F7B'
143
144
BAUDCON2         EQU  H'0F7C'
144
145
SPBRGH2          EQU  H'0F7D'
 
146
BAUDCON          EQU  H'0F7E'
145
147
BAUDCON1         EQU  H'0F7E'
 
148
SPBRGH           EQU  H'0F7F'
146
149
SPBRGH1          EQU  H'0F7F'
147
150
PORTA            EQU  H'0F80'
148
151
PORTB            EQU  H'0F81'
212
215
CCPR3            EQU  H'0FB2'
213
216
CCPR3L           EQU  H'0FB2'
214
217
CCPR3H           EQU  H'0FB3'
215
 
PWM3CON          EQU  H'0FB4'
 
218
ECCP3DEL         EQU  H'0FB4'
216
219
ECCP3AS          EQU  H'0FB5'
217
220
CCP2CON          EQU  H'0FB6'
218
221
ECCP2CON         EQU  H'0FB6'
219
222
CCPR2            EQU  H'0FB7'
220
223
CCPR2L           EQU  H'0FB7'
221
224
CCPR2H           EQU  H'0FB8'
222
 
PWM2CON          EQU  H'0FB9'
 
225
ECCP2DEL         EQU  H'0FB9'
223
226
ECCP2AS          EQU  H'0FBA'
224
227
CCP1CON          EQU  H'0FBB'
225
228
ECCP1CON         EQU  H'0FBB'
226
229
CCPR1            EQU  H'0FBC'
227
230
CCPR1L           EQU  H'0FBC'
228
231
CCPR1H           EQU  H'0FBD'
229
 
PWM1CON          EQU  H'0FBE'
 
232
ECCP1DEL         EQU  H'0FBE'
230
233
ECCP1AS          EQU  H'0FBF'
231
234
WDTCON           EQU  H'0FC0'
232
 
ADCON2           EQU  H'0FC1'
233
 
ADPCFG           EQU  H'0FC1'
234
 
ADPCFGL          EQU  H'0FC1'
235
 
ADCON1           EQU  H'0FC2'
236
 
ADPCFGH          EQU  H'0FC2'
 
235
ADCON1           EQU  H'0FC1'
 
236
ANCON0           EQU  H'0FC1'
 
237
ADCON0           EQU  H'0FC2'
 
238
ANCON1           EQU  H'0FC2'
237
239
ADRES            EQU  H'0FC3'
238
240
ADRESL           EQU  H'0FC3'
239
241
ADRESH           EQU  H'0FC4'
260
262
ODCON1           EQU  H'0FCF'
261
263
TMR1H            EQU  H'0FCF'
262
264
RCON             EQU  H'0FD0'
 
265
CM2CON           EQU  H'0FD1'
263
266
CM2CON1          EQU  H'0FD1'
 
267
CM1CON           EQU  H'0FD2'
264
268
CM1CON1          EQU  H'0FD2'
265
269
OSCCON           EQU  H'0FD3'
266
 
RF0CON           EQU  H'0FD3'
 
270
REFOCON          EQU  H'0FD3'
267
271
T0CON            EQU  H'0FD5'
268
272
TMR0L            EQU  H'0FD6'
269
273
TMR0H            EQU  H'0FD7'
330
334
IBF              EQU  H'0007'
331
335
 
332
336
 
333
 
;----- PMPENL Bits -----------------------------------------------------
334
 
PTEN7            EQU  H'0000'
335
 
PTEN6            EQU  H'0001'
336
 
PTEN5            EQU  H'0002'
337
 
PTEN4            EQU  H'0003'
338
 
PTEN3            EQU  H'0004'
339
 
PTEN2            EQU  H'0005'
340
 
PTEN1            EQU  H'0006'
341
 
PTEN0            EQU  H'0007'
342
 
 
343
 
 
344
 
;----- PMPENH Bits -----------------------------------------------------
345
 
PTEN15           EQU  H'0000'
346
 
PTEN14           EQU  H'0001'
347
 
PTEN13           EQU  H'0002'
348
 
PTEN12           EQU  H'0003'
349
 
PTEN11           EQU  H'0004'
350
 
PTEN10           EQU  H'0005'
351
 
PTEN9            EQU  H'0006'
352
 
PTEN8            EQU  H'0007'
353
 
 
354
 
 
355
 
;----- PMPMODEL Bits -----------------------------------------------------
 
337
;----- PMEL Bits -----------------------------------------------------
 
338
PTEN0            EQU  H'0000'
 
339
PTEN1            EQU  H'0001'
 
340
PTEN2            EQU  H'0002'
 
341
PTEN3            EQU  H'0003'
 
342
PTEN4            EQU  H'0004'
 
343
PTEN5            EQU  H'0005'
 
344
PTEN6            EQU  H'0006'
 
345
PTEN7            EQU  H'0007'
 
346
 
 
347
 
 
348
;----- PMEH Bits -----------------------------------------------------
 
349
PTEN8            EQU  H'0000'
 
350
PTEN9            EQU  H'0001'
 
351
PTEN10           EQU  H'0002'
 
352
PTEN11           EQU  H'0003'
 
353
PTEN12           EQU  H'0004'
 
354
PTEN13           EQU  H'0005'
 
355
PTEN14           EQU  H'0006'
 
356
PTEN15           EQU  H'0007'
 
357
 
 
358
 
 
359
;----- PMMODEL Bits -----------------------------------------------------
356
360
WAITE0           EQU  H'0000'
357
361
WAITE1           EQU  H'0001'
358
362
WAITM0           EQU  H'0002'
363
367
WAITB1           EQU  H'0007'
364
368
 
365
369
 
366
 
;----- PMPMODEH Bits -----------------------------------------------------
 
370
;----- PMMODEH Bits -----------------------------------------------------
367
371
MODE0            EQU  H'0000'
368
372
MODE1            EQU  H'0001'
369
373
MODE16           EQU  H'0002'
374
378
BUSY             EQU  H'0007'
375
379
 
376
380
 
377
 
;----- PMPCONL Bits -----------------------------------------------------
 
381
;----- PMCONL Bits -----------------------------------------------------
378
382
RDSP             EQU  H'0000'
379
383
WRSP             EQU  H'0001'
380
384
BEP              EQU  H'0002'
385
389
CSF1             EQU  H'0007'
386
390
 
387
391
 
388
 
;----- PMPCONH Bits -----------------------------------------------------
 
392
;----- PMCONH Bits -----------------------------------------------------
389
393
PTRDEN           EQU  H'0000'
390
394
PTWREN           EQU  H'0001'
391
395
PTBEEN           EQU  H'0002'
392
396
ADRMUX0          EQU  H'0003'
393
397
ADRMUX1          EQU  H'0004'
394
398
PSIDL            EQU  H'0005'
395
 
PFRZ             EQU  H'0006'
396
399
PMPEN            EQU  H'0007'
397
400
 
398
401
 
617
620
PPBRST           EQU  H'0006'
618
621
 
619
622
 
620
 
;----- PMPADDRH Bits -----------------------------------------------------
 
623
;----- PMADDRH Bits -----------------------------------------------------
621
624
CS1              EQU  H'0006'
622
625
CS2              EQU  H'0007'
623
626
 
624
627
 
 
628
;----- CMSTAT Bits -----------------------------------------------------
 
629
COUT1            EQU  H'0000'
 
630
COUT2            EQU  H'0001'
 
631
 
 
632
 
625
633
;----- CMSTATUS Bits -----------------------------------------------------
626
634
COUT1            EQU  H'0000'
627
635
COUT2            EQU  H'0001'
637
645
ACKSTAT          EQU  H'0006'
638
646
GCEN             EQU  H'0007'
639
647
 
 
648
ADMSK1           EQU  H'0001'
 
649
ADMSK2           EQU  H'0002'
 
650
ADMSK3           EQU  H'0003'
 
651
ADMSK4           EQU  H'0004'
 
652
ADMSK5           EQU  H'0005'
 
653
 
640
654
 
641
655
;----- SSP2CON1 Bits -----------------------------------------------------
642
656
SSPM0            EQU  H'0000'
757
771
RCMT             EQU  H'0006'
758
772
ABDOVF           EQU  H'0007'
759
773
 
 
774
TXCKP            EQU  H'0004'
 
775
RXDTP            EQU  H'0005'
 
776
RCIDL            EQU  H'0006'
 
777
 
 
778
 
 
779
;----- BAUDCON Bits -----------------------------------------------------
 
780
ABDEN            EQU  H'0000'
 
781
WUE              EQU  H'0001'
 
782
BRG16            EQU  H'0003'
 
783
SCKP             EQU  H'0004'
 
784
DTRXP            EQU  H'0005'
 
785
RCMT             EQU  H'0006'
 
786
ABDOVF           EQU  H'0007'
 
787
 
 
788
TXCKP            EQU  H'0004'
 
789
RXDTP            EQU  H'0005'
760
790
RCIDL            EQU  H'0006'
761
791
 
762
792
 
769
799
RCMT             EQU  H'0006'
770
800
ABDOVF           EQU  H'0007'
771
801
 
 
802
TXCKP            EQU  H'0004'
 
803
RXDTP            EQU  H'0005'
772
804
RCIDL            EQU  H'0006'
773
805
 
774
806
 
779
811
RA3              EQU  H'0003'
780
812
RA4              EQU  H'0004'
781
813
RA5              EQU  H'0005'
 
814
RA6              EQU  H'0006'
 
815
RA7              EQU  H'0007'
782
816
 
783
817
AN0              EQU  H'0000'
784
818
AN1              EQU  H'0001'
790
824
 
791
825
VREFM            EQU  H'0002'
792
826
VREFP            EQU  H'0003'
 
827
C2INA            EQU  H'0005'
793
828
CLKO             EQU  H'0006'
794
829
 
 
830
PMD5_PORTA       EQU  H'0004'
 
831
PMD4_PORTA       EQU  H'0005'
 
832
 
795
833
 
796
834
;----- PORTB Bits -----------------------------------------------------
797
835
RB0              EQU  H'0000'
812
850
KBI2             EQU  H'0006'
813
851
KBI3             EQU  H'0007'
814
852
 
815
 
PGM              EQU  H'0004'
816
853
PGC              EQU  H'0005'
817
854
PGD              EQU  H'0006'
818
855
 
 
856
PMA4             EQU  H'0001'
 
857
PMA3             EQU  H'0002'
 
858
PMA2             EQU  H'0003'
 
859
PMA1             EQU  H'0004'
 
860
PMA0             EQU  H'0005'
 
861
 
 
862
FLT0             EQU  H'0000'
 
863
CCP2_PORTB       EQU  H'0003'
 
864
 
819
865
 
820
866
;----- PORTC Bits -----------------------------------------------------
821
867
RC0              EQU  H'0000'
837
883
RX               EQU  H'0007'
838
884
 
839
885
T13CKI           EQU  H'0000'
840
 
CCP2             EQU  H'0001'
 
886
CCP2_PORTC       EQU  H'0001'
841
887
SCL              EQU  H'0003'
842
888
SDA              EQU  H'0004'
843
889
CK               EQU  H'0006'
844
890
; DT is a reserved word
845
891
; DT               EQU  H'0007'
846
892
 
 
893
C2OUT            EQU  H'0005'
 
894
 
847
895
 
848
896
;----- PORTD Bits -----------------------------------------------------
849
897
RD0              EQU  H'0000'
855
903
RD6              EQU  H'0006'
856
904
RD7              EQU  H'0007'
857
905
 
858
 
PMPD0            EQU  H'0000'
859
 
PMPD1            EQU  H'0001'
860
 
PMPD2            EQU  H'0002'
861
 
PMPD3            EQU  H'0003'
862
 
PMPD4            EQU  H'0004'
863
 
PMPD5            EQU  H'0005'
864
 
PMPD6            EQU  H'0006'
865
 
PMPD7            EQU  H'0007'
 
906
PMD0_PORTD       EQU  H'0000'
 
907
PMD1_PORTD       EQU  H'0001'
 
908
PMD2_PORTD       EQU  H'0002'
 
909
PMD3_PORTD       EQU  H'0003'
 
910
PMD4_PORTD       EQU  H'0004'
 
911
PMD5_PORTD       EQU  H'0005'
 
912
PMD6_PORTD       EQU  H'0006'
 
913
PMD7_PORTD       EQU  H'0007'
866
914
 
867
 
AD00             EQU  H'0000'
868
 
AD01             EQU  H'0001'
869
 
AD02             EQU  H'0002'
870
 
AD03             EQU  H'0003'
871
 
AD04             EQU  H'0004'
872
 
AD05             EQU  H'0005'
873
 
AD06             EQU  H'0006'
874
 
AD07             EQU  H'0007'
 
915
AD0              EQU  H'0000'
 
916
AD1              EQU  H'0001'
 
917
AD2              EQU  H'0002'
 
918
AD3              EQU  H'0003'
 
919
AD4              EQU  H'0004'
 
920
AD5              EQU  H'0005'
 
921
AD6              EQU  H'0006'
 
922
AD7              EQU  H'0007'
875
923
 
876
924
SDA2             EQU  H'0005'
877
925
SCL2             EQU  H'0006'
892
940
RE6              EQU  H'0006'
893
941
RE7              EQU  H'0007'
894
942
 
895
 
RD               EQU  H'0000'
896
 
WR               EQU  H'0001'
897
 
CS               EQU  H'0002'
898
 
 
899
943
AD8              EQU  H'0000'
900
944
AD9              EQU  H'0001'
901
945
AD10             EQU  H'0002'
905
949
AD14             EQU  H'0006'
906
950
AD15             EQU  H'0007'
907
951
 
 
952
PMRD_PORTE       EQU  H'0000'
 
953
PMWR_PORTE       EQU  H'0001'
 
954
PMBE_PORTE       EQU  H'0002'
 
955
 
 
956
PMA13            EQU  H'0003'
 
957
PMA12            EQU  H'0004'
 
958
PMA11            EQU  H'0005'
 
959
PMA10            EQU  H'0006'
 
960
PMA9             EQU  H'0007'
 
961
 
 
962
REFO             EQU  H'0003'
 
963
CCP2_PORTE       EQU  H'0007'
 
964
 
908
965
 
909
966
;----- PORTF Bits -----------------------------------------------------
910
 
RF1              EQU  H'0001'
911
967
RF2              EQU  H'0002'
912
968
RF3              EQU  H'0003'
913
969
RF4              EQU  H'0004'
915
971
RF6              EQU  H'0006'
916
972
RF7              EQU  H'0007'
917
973
 
918
 
AN6              EQU  H'0001'
919
974
AN7              EQU  H'0002'
920
 
AN8              EQU  H'0003'
921
 
AN9              EQU  H'0004'
922
975
AN10             EQU  H'0005'
923
976
AN11             EQU  H'0006'
924
977
SS               EQU  H'0007'
925
978
 
926
 
CVREF            EQU  H'0003'
 
979
CVREF            EQU  H'0005'
927
980
 
928
 
C2OUT            EQU  H'0001'
929
 
C1OUT            EQU  H'0002'
930
 
C2INB            EQU  H'0003'
931
 
C2INA            EQU  H'0004'
 
981
C2INB            EQU  H'0002'
932
982
C1INB            EQU  H'0005'
933
983
C1INA            EQU  H'0006'
 
984
C1OUT            EQU  H'0007'
 
985
 
 
986
PMA5             EQU  H'0002'
 
987
PMD2_PORTF       EQU  H'0005'
 
988
PMD1_PORTF       EQU  H'0006'
 
989
PMD0_PORTF       EQU  H'0007'
934
990
 
935
991
 
936
992
;----- PORTG Bits -----------------------------------------------------
953
1009
REPU             EQU  H'0006'
954
1010
RDPU             EQU  H'0007'
955
1011
 
 
1012
PMA8             EQU  H'0000'
 
1013
PMA7             EQU  H'0001'
 
1014
PMA6             EQU  H'0002'
 
1015
PMCS1            EQU  H'0003'
 
1016
PMCS2            EQU  H'0004'
 
1017
 
956
1018
 
957
1019
;----- PORTH Bits -----------------------------------------------------
958
1020
RH0              EQU  H'0000'
964
1026
RH6              EQU  H'0006'
965
1027
RH7              EQU  H'0007'
966
1028
 
967
 
AD16             EQU  H'0000'
968
 
AD17             EQU  H'0001'
969
 
AD18             EQU  H'0002'
970
 
AD19             EQU  H'0003'
 
1029
A16              EQU  H'0000'
 
1030
A17              EQU  H'0001'
 
1031
A18              EQU  H'0002'
 
1032
A19              EQU  H'0003'
971
1033
AN12             EQU  H'0004'
972
1034
AN13             EQU  H'0005'
973
1035
AN14             EQU  H'0006'
974
1036
AN15             EQU  H'0007'
975
1037
 
 
1038
PMD7_PORTH       EQU  H'0002'
 
1039
PMD6_PORTH       EQU  H'0003'
 
1040
PMD3_PORTH       EQU  H'0004'
 
1041
PMBE_PORTH       EQU  H'0005'
 
1042
PMRD_PORTH       EQU  H'0006'
 
1043
PMWR_PORTH       EQU  H'0007'
 
1044
 
 
1045
C2INC            EQU  H'0004'
 
1046
C2IND            EQU  H'0005'
 
1047
C1INC            EQU  H'0006'
 
1048
 
976
1049
 
977
1050
;----- PORTJ Bits -----------------------------------------------------
978
1051
RJ0              EQU  H'0000'
1001
1074
LATA3            EQU  H'0003'
1002
1075
LATA4            EQU  H'0004'
1003
1076
LATA5            EQU  H'0005'
 
1077
LATA6            EQU  H'0006'
 
1078
LATA7            EQU  H'0007'
1004
1079
 
1005
1080
 
1006
1081
;----- LATB Bits -----------------------------------------------------
1049
1124
 
1050
1125
;----- LATF Bits -----------------------------------------------------
1051
1126
LATF2            EQU  H'0002'
 
1127
LATF3            EQU  H'0003'
 
1128
LATF4            EQU  H'0004'
1052
1129
LATF5            EQU  H'0005'
1053
1130
LATF6            EQU  H'0006'
1054
1131
LATF7            EQU  H'0007'
1091
1168
RA3              EQU  H'0003'
1092
1169
RA4              EQU  H'0004'
1093
1170
RA5              EQU  H'0005'
 
1171
RA6              EQU  H'0006'
 
1172
RA7              EQU  H'0007'
1094
1173
 
1095
1174
 
1096
1175
;----- TRISA Bits -----------------------------------------------------
1100
1179
TRISA3           EQU  H'0003'
1101
1180
TRISA4           EQU  H'0004'
1102
1181
TRISA5           EQU  H'0005'
 
1182
TRISA6           EQU  H'0006'
 
1183
TRISA7           EQU  H'0007'
1103
1184
 
1104
1185
 
1105
1186
;----- DDRB Bits -----------------------------------------------------
1277
1358
TUN4             EQU  H'0004'
1278
1359
TUN5             EQU  H'0005'
1279
1360
PLLEN            EQU  H'0006'
1280
 
HF256DIV         EQU  H'0007'
 
1361
INTSRC           EQU  H'0007'
1281
1362
 
1282
1363
 
1283
1364
;----- RCSTA2 Bits -----------------------------------------------------
1535
1616
CCP3X            EQU  H'0005'
1536
1617
 
1537
1618
 
1538
 
;----- PWM3CON Bits -----------------------------------------------------
 
1619
;----- ECCP3DEL Bits -----------------------------------------------------
1539
1620
PDC0             EQU  H'0000'
1540
1621
PDC1             EQU  H'0001'
1541
1622
PDC2             EQU  H'0002'
1545
1626
PDC6             EQU  H'0006'
1546
1627
PRSEN            EQU  H'0007'
1547
1628
 
 
1629
P3DC0            EQU  H'0000'
 
1630
P3DC1            EQU  H'0001'
 
1631
P3DC2            EQU  H'0002'
 
1632
P3DC3            EQU  H'0003'
 
1633
P3DC4            EQU  H'0004'
 
1634
P3DC5            EQU  H'0005'
 
1635
P3DC6            EQU  H'0006'
 
1636
P3RSEN           EQU  H'0007'
 
1637
 
1548
1638
 
1549
1639
;----- ECCP3AS Bits -----------------------------------------------------
1550
1640
PSSBD0           EQU  H'0000'
1594
1684
CCP2X            EQU  H'0005'
1595
1685
 
1596
1686
 
1597
 
;----- PWM2CON Bits -----------------------------------------------------
 
1687
;----- ECCP2DEL Bits -----------------------------------------------------
1598
1688
PDC0             EQU  H'0000'
1599
1689
PDC1             EQU  H'0001'
1600
1690
PDC2             EQU  H'0002'
1604
1694
PDC6             EQU  H'0006'
1605
1695
PRSEN            EQU  H'0007'
1606
1696
 
 
1697
P2DC0            EQU  H'0000'
 
1698
P2DC1            EQU  H'0001'
 
1699
P2DC2            EQU  H'0002'
 
1700
P2DC3            EQU  H'0003'
 
1701
P2DC4            EQU  H'0004'
 
1702
P2DC5            EQU  H'0005'
 
1703
P2DC6            EQU  H'0006'
 
1704
P2RSEN           EQU  H'0007'
 
1705
 
1607
1706
 
1608
1707
;----- ECCP2AS Bits -----------------------------------------------------
1609
1708
PSSBD0           EQU  H'0000'
1653
1752
CCP1X            EQU  H'0005'
1654
1753
 
1655
1754
 
1656
 
;----- PWM1CON Bits -----------------------------------------------------
 
1755
;----- ECCP1DEL Bits -----------------------------------------------------
1657
1756
PDC0             EQU  H'0000'
1658
1757
PDC1             EQU  H'0001'
1659
1758
PDC2             EQU  H'0002'
1663
1762
PDC6             EQU  H'0006'
1664
1763
PRSEN            EQU  H'0007'
1665
1764
 
 
1765
P1DC0            EQU  H'0000'
 
1766
P1DC1            EQU  H'0001'
 
1767
P1DC2            EQU  H'0002'
 
1768
P1DC3            EQU  H'0003'
 
1769
P1DC4            EQU  H'0004'
 
1770
P1DC5            EQU  H'0005'
 
1771
P1DC6            EQU  H'0006'
 
1772
P1RSEN           EQU  H'0007'
 
1773
 
1666
1774
 
1667
1775
;----- ECCP1AS Bits -----------------------------------------------------
1668
1776
PSSBD0           EQU  H'0000'
1689
1797
 
1690
1798
SWDTEN           EQU  H'0000'
1691
1799
DEVCFG           EQU  H'0004'
1692
 
VREGSLP          EQU  H'0007'
1693
 
 
1694
 
 
1695
 
;----- ADCON2 Bits -----------------------------------------------------
 
1800
LVDSTAT          EQU  H'0006'
 
1801
REGSLP           EQU  H'0007'
 
1802
 
 
1803
ADSHR            EQU  H'0004'
 
1804
 
 
1805
 
 
1806
;----- ADCON1 Bits -----------------------------------------------------
1696
1807
ADCS0            EQU  H'0000'
1697
1808
ADCS1            EQU  H'0001'
1698
1809
ADCS2            EQU  H'0002'
1703
1814
ADFM             EQU  H'0007'
1704
1815
 
1705
1816
 
1706
 
;----- ADPCFGL Bits -----------------------------------------------------
 
1817
;----- ANCON0 Bits -----------------------------------------------------
1707
1818
PCFG0            EQU  H'0000'
1708
1819
PCFG1            EQU  H'0001'
1709
1820
PCFG2            EQU  H'0002'
1714
1825
PCFG7            EQU  H'0007'
1715
1826
 
1716
1827
 
1717
 
;----- ADCON1 Bits -----------------------------------------------------
 
1828
;----- ADCON0 Bits -----------------------------------------------------
1718
1829
DONE             EQU  H'0001'
1719
1830
 
1720
1831
GO_DONE          EQU  H'0001'
1731
1842
NOT_DONE         EQU  H'0001'
1732
1843
 
1733
1844
 
1734
 
;----- ADPCFGH Bits -----------------------------------------------------
 
1845
;----- ANCON1 Bits -----------------------------------------------------
1735
1846
PCFG8            EQU  H'0000'
1736
1847
PCFG9            EQU  H'0001'
1737
1848
PCFG10           EQU  H'0002'
1752
1863
ACKSTAT          EQU  H'0006'
1753
1864
GCEN             EQU  H'0007'
1754
1865
 
 
1866
ADMSK1           EQU  H'0001'
 
1867
ADMSK2           EQU  H'0002'
 
1868
ADMSK3           EQU  H'0003'
 
1869
ADMSK4           EQU  H'0004'
 
1870
ADMSK5           EQU  H'0005'
 
1871
 
1755
1872
 
1756
1873
;----- SSPCON2 Bits -----------------------------------------------------
1757
1874
SEN              EQU  H'0000'
1763
1880
ACKSTAT          EQU  H'0006'
1764
1881
GCEN             EQU  H'0007'
1765
1882
 
 
1883
ADMSK1           EQU  H'0001'
 
1884
ADMSK2           EQU  H'0002'
 
1885
ADMSK3           EQU  H'0003'
 
1886
ADMSK4           EQU  H'0004'
 
1887
ADMSK5           EQU  H'0005'
 
1888
 
1766
1889
 
1767
1890
;----- SSP1CON1 Bits -----------------------------------------------------
1768
1891
SSPM0            EQU  H'0000'
1888
2011
USART1OD         EQU  H'0000'
1889
2012
USART2OD         EQU  H'0001'
1890
2013
 
 
2014
U1OD             EQU  H'0000'
 
2015
U2OD             EQU  H'0001'
 
2016
 
1891
2017
 
1892
2018
;----- ODCON1 Bits -----------------------------------------------------
1893
2019
ECCP1OD          EQU  H'0000'
1914
2040
CM               EQU  H'0005'
1915
2041
 
1916
2042
 
 
2043
;----- CM2CON Bits -----------------------------------------------------
 
2044
C1CH0            EQU  H'0000'
 
2045
C1CH1            EQU  H'0001'
 
2046
CREF             EQU  H'0002'
 
2047
EVPOL0           EQU  H'0003'
 
2048
EVPOL1           EQU  H'0004'
 
2049
CPOL             EQU  H'0005'
 
2050
COE              EQU  H'0006'
 
2051
CON              EQU  H'0007'
 
2052
 
 
2053
CCH0             EQU  H'0000'
 
2054
CCH1             EQU  H'0001'
 
2055
 
 
2056
 
1917
2057
;----- CM2CON1 Bits -----------------------------------------------------
1918
2058
C1CH0            EQU  H'0000'
1919
2059
C1CH1            EQU  H'0001'
1924
2064
COE              EQU  H'0006'
1925
2065
CON              EQU  H'0007'
1926
2066
 
 
2067
CCH0             EQU  H'0000'
 
2068
CCH1             EQU  H'0001'
 
2069
 
 
2070
 
 
2071
;----- CM1CON Bits -----------------------------------------------------
 
2072
C1CH0            EQU  H'0000'
 
2073
C1CH1            EQU  H'0001'
 
2074
CREF             EQU  H'0002'
 
2075
EVPOL0           EQU  H'0003'
 
2076
EVPOL1           EQU  H'0004'
 
2077
CPOL             EQU  H'0005'
 
2078
COE              EQU  H'0006'
 
2079
CON              EQU  H'0007'
 
2080
 
 
2081
CCH0             EQU  H'0000'
 
2082
CCH1             EQU  H'0001'
 
2083
 
1927
2084
 
1928
2085
;----- CM1CON1 Bits -----------------------------------------------------
1929
2086
C1CH0            EQU  H'0000'
1935
2092
COE              EQU  H'0006'
1936
2093
CON              EQU  H'0007'
1937
2094
 
 
2095
CCH0             EQU  H'0000'
 
2096
CCH1             EQU  H'0001'
 
2097
 
1938
2098
 
1939
2099
;----- OSCCON Bits -----------------------------------------------------
1940
2100
SCS0             EQU  H'0000'
1949
2109
FLTS             EQU  H'0002'
1950
2110
 
1951
2111
 
1952
 
;----- RF0CON Bits -----------------------------------------------------
 
2112
;----- REFOCON Bits -----------------------------------------------------
1953
2113
RODIV0           EQU  H'0000'
1954
2114
RODIV1           EQU  H'0001'
1955
2115
RODIV2           EQU  H'0002'
2096
2256
;     CP0 = OFF            Program memory is not code-protected
2097
2257
;
2098
2258
;   CPU System Clock Postscaler:
2099
 
;     CPUDIV = OSC1_PLL2   [OSC1/OSC2 Src: /1][96 MHz PLL Src: /2]
2100
 
;     CPUDIV = OSC2_PLL3   [OSC1/OSC2 Src: /2][96 MHz PLL Src: /3]
2101
 
;     CPUDIV = OSC3_PLL4   [OSC1/OSC2 Src: /3][96 MHz PLL Src: /4]
2102
 
;     CPUDIV = OSC4_PLL6   [OSC1/OSC2 Src: /4][96 MHz PLL Src: /6]
 
2259
;     CPUDIV = OSC4_PLL6   [CPU System clock/6]
 
2260
;     CPUDIV = OSC3_PLL3   [CPU System clock/3]
 
2261
;     CPUDIV = OSC2_PLL2   [CPU System clock/2]
 
2262
;     CPUDIV = OSC1        [No CPU System clock divide]
2103
2263
;
2104
2264
;   Two-Speed Start-up (Internal/External Oscillator Switchover) Control bit:
2105
2265
;     IESO = OFF           Two-Speed Start-up disabled
2110
2270
;     FCMEN = ON           Fail-Safe Clock Monitor enabled
2111
2271
;
2112
2272
;   Oscillator Selection bits:
2113
 
;     FOSC = INTOSCIO      Internal oscillator, port function on RA6 and RA7 
2114
 
;     FOSC = INTOSC        Internal oscillator, CLKOUT on RA6 and port function on RA7
2115
 
;     FOSC = INTOSCPLLIO_HSINTOSC with PLL enabled, port function on RA6 and RA7, HS used by USB
2116
 
;     FOSC = INTOSCPLL_HS   INTOSC with PLL enabled,CLKOUT on RA6 and port function on RA7, HS used by USB
 
2273
;     FOSC = INTOSC        Internal oscillator, port function on RA6 and RA7 
 
2274
;     FOSC = INTOSCO       Internal oscillator, CLKOUT on RA6 and port function on RA7
 
2275
;     FOSC = INTOSCPLL     INTOSC with PLL enabled, port function on RA6 and RA7, INTOSCPLL used by USB
 
2276
;     FOSC = INTOSCPLLO     INTOSC with PLL enabled,CLKOUT on RA6 and port function on RA7, INTOSCPLL used by USB
2117
2277
;     FOSC = HS            HS oscillator, HS used by USB
2118
 
;     FOSC = HSPLL_HS      HS oscillator, PLL enabled, HS used by USB
 
2278
;     FOSC = HSPLL         HS oscillator, PLL enabled, HSPLL used by USB
2119
2279
;     FOSC = EC            EC Oscillator with clock out on RA6, EC used by USB
2120
 
;     FOSC = ECPLL_EC      EC Oscillator with PLL , CLKOUT on RA6, EC used by USB
 
2280
;     FOSC = ECPLL         EC Oscillator with PLL , CLKOUT on RA6, ECPLL used by USB
2121
2281
;
2122
2282
;   Watchdog Timer Postscaler Select bits:
2123
2283
;     WDTPS = 1            1:1
2155
2315
;     EASHFT = OFF         Address shifting disabled, address on external bus reflects the PC value
2156
2316
;     EASHFT = ON          Address shifting enabled, address on external bus is offset to start at 000000h
2157
2317
;
2158
 
;   MSSP address select:
2159
 
;     MSSPSEL = ALTERNATE  5 Bit address mode
2160
 
;     MSSPSEL = MSSPPADDRX 7 Bit address mode
 
2318
;   MSSP Address Mask:
 
2319
;     MSSPMSK = MSK5       5 Bit address masking
 
2320
;     MSSPMSK = MSK7       7 Bit address masking
2161
2321
;
2162
2322
;   PMP pin select:
2163
2323
;     PMPMX = ALTERNATE    PMP port pins not connected to EMB