3
;==========================================================================
4
; MPASM PIC18F8393 processor include
6
; (c) Copyright 1999-2007 Microchip Technology, All rights reserved
7
;==========================================================================
11
;==========================================================================
12
; This header file defines configurations, registers, and other useful
13
; bits of information for the PIC18F8393 microcontroller. These names
14
; are taken to match the data sheets as closely as possible.
16
; Note that the processor must be selected before this file is included.
17
; The processor may be selected the following ways:
19
; 1. Command line switch:
20
; C:\MPASM MYFILE.ASM /PIC18F8393
21
; 2. LIST directive in the source file
23
; 3. Processor Type entry in the MPASM full-screen interface
24
; 4. Setting the processor in the MPLAB Project Dialog
25
;==========================================================================
27
;==========================================================================
31
;==========================================================================
33
MESSG "Processor-header file mismatch. Verify selected processor."
36
;==========================================================================
37
; 18xxxx Family EQUates
38
;==========================================================================
49
;==========================================================================
51
;==========================================================================
52
; 16Cxxx/17Cxxx Substitutions
53
;==========================================================================
54
#define DDRA TRISA ; PIC17Cxxx SFR substitution
55
#define DDRB TRISB ; PIC17Cxxx SFR substitution
56
#define DDRC TRISC ; PIC17Cxxx SFR substitution
57
#define DDRD TRISD ; PIC17Cxxx SFR substitution
58
#define DDRE TRISE ; PIC17Cxxx SFR substitution
60
;==========================================================================
62
; Register Definitions
64
;==========================================================================
66
;----- Register Files -----------------------------------------------------
100
LCDDATA20 EQU H'0F79'
101
LCDDATA21 EQU H'0F7A'
102
LCDDATA22 EQU H'0F7B'
103
LCDDATA23 EQU H'0F7C'
244
;----- LCDPS Bits -----------------------------------------------------
260
;----- LCDCON Bits -----------------------------------------------------
275
;----- LCDSE0 Bits -----------------------------------------------------
295
;----- LCDSE1 Bits -----------------------------------------------------
315
;----- LCDSE2 Bits -----------------------------------------------------
335
;----- LCDSE3 Bits -----------------------------------------------------
355
;----- LCDSE4 Bits -----------------------------------------------------
375
;----- LCDSE5 Bits -----------------------------------------------------
395
;----- LCDDATA0 Bits -----------------------------------------------------
424
;----- LCDDATA1 Bits -----------------------------------------------------
436
SEG10COM0 EQU H'0002'
437
SEG11COM0 EQU H'0003'
438
SEG12COM0 EQU H'0004'
439
SEG13COM0 EQU H'0005'
440
SEG14COM0 EQU H'0006'
441
SEG15COM0 EQU H'0007'
447
;----- LCDDATA2 Bits -----------------------------------------------------
457
SEG16COM0 EQU H'0000'
458
SEG17COM0 EQU H'0001'
459
SEG18COM0 EQU H'0002'
460
SEG19COM0 EQU H'0003'
461
SEG20COM0 EQU H'0004'
462
SEG21COM0 EQU H'0005'
463
SEG22COM0 EQU H'0006'
464
SEG23COM0 EQU H'0007'
467
;----- LCDDATA3 Bits -----------------------------------------------------
477
SEG24COM0 EQU H'0000'
478
SEG25COM0 EQU H'0001'
479
SEG26COM0 EQU H'0002'
480
SEG27COM0 EQU H'0003'
481
SEG28COM0 EQU H'0004'
482
SEG29COM0 EQU H'0005'
483
SEG30COM0 EQU H'0006'
484
SEG31COM0 EQU H'0007'
487
;----- LCDDATA4 Bits -----------------------------------------------------
497
SEG32COM0 EQU H'0000'
498
SEG33COM0 EQU H'0001'
499
SEG34COM0 EQU H'0002'
500
SEG35COM0 EQU H'0003'
501
SEG36COM0 EQU H'0004'
502
SEG37COM0 EQU H'0005'
503
SEG38COM0 EQU H'0006'
504
SEG39COM0 EQU H'0007'
507
;----- LCDDATA5 Bits -----------------------------------------------------
517
SEG40COM0 EQU H'0000'
518
SEG41COM0 EQU H'0001'
519
SEG42COM0 EQU H'0002'
520
SEG43COM0 EQU H'0003'
521
SEG44COM0 EQU H'0004'
522
SEG45COM0 EQU H'0005'
523
SEG46COM0 EQU H'0006'
524
SEG47COM0 EQU H'0007'
527
;----- LCDDATA6 Bits -----------------------------------------------------
556
;----- LCDDATA7 Bits -----------------------------------------------------
568
SEG10COM1 EQU H'0002'
569
SEG11COM1 EQU H'0003'
570
SEG12COM1 EQU H'0004'
571
SEG13COM1 EQU H'0005'
572
SEG14COM1 EQU H'0006'
573
SEG15COM1 EQU H'0007'
579
;----- LCDDATA8 Bits -----------------------------------------------------
589
SEG16COM1 EQU H'0000'
590
SEG17COM1 EQU H'0001'
591
SEG18COM1 EQU H'0002'
592
SEG19COM1 EQU H'0003'
593
SEG20COM1 EQU H'0004'
594
SEG21COM1 EQU H'0005'
595
SEG22COM1 EQU H'0006'
596
SEG23COM1 EQU H'0007'
599
;----- LCDDATA9 Bits -----------------------------------------------------
609
SEG24COM1 EQU H'0000'
610
SEG25COM1 EQU H'0001'
611
SEG26COM1 EQU H'0002'
612
SEG27COM1 EQU H'0003'
613
SEG28COM1 EQU H'0004'
614
SEG29COM1 EQU H'0005'
615
SEG30COM1 EQU H'0006'
616
SEG31COM1 EQU H'0007'
619
;----- LCDDATA10 Bits -----------------------------------------------------
629
SEG32COM1 EQU H'0000'
630
SEG33COM1 EQU H'0001'
631
SEG34COM1 EQU H'0002'
632
SEG35COM1 EQU H'0003'
633
SEG36COM1 EQU H'0004'
634
SEG37COM1 EQU H'0005'
635
SEG38COM1 EQU H'0006'
636
SEG39COM1 EQU H'0007'
639
;----- RCSTA2 Bits -----------------------------------------------------
659
;----- TXSTA2 Bits -----------------------------------------------------
674
;----- LCDDATA11 Bits -----------------------------------------------------
684
SEG40COM1 EQU H'0000'
685
SEG41COM1 EQU H'0001'
686
SEG42COM1 EQU H'0002'
687
SEG43COM1 EQU H'0003'
688
SEG44COM1 EQU H'0004'
689
SEG45COM1 EQU H'0005'
690
SEG46COM1 EQU H'0006'
691
SEG47COM1 EQU H'0007'
694
;----- LCDDATA12 Bits -----------------------------------------------------
723
;----- LCDDATA13 Bits -----------------------------------------------------
735
SEG10COM2 EQU H'0002'
736
SEG11COM2 EQU H'0003'
737
SEG12COM2 EQU H'0004'
738
SEG13COM2 EQU H'0005'
739
SEG14COM2 EQU H'0006'
740
SEG15COM2 EQU H'0007'
746
;----- LCDDATA14 Bits -----------------------------------------------------
756
SEG16COM2 EQU H'0000'
757
SEG17COM2 EQU H'0001'
758
SEG18COM2 EQU H'0002'
759
SEG19COM2 EQU H'0003'
760
SEG20COM2 EQU H'0004'
761
SEG21COM2 EQU H'0005'
762
SEG22COM2 EQU H'0006'
763
SEG23COM2 EQU H'0007'
766
;----- LCDDATA15 Bits -----------------------------------------------------
776
SEG24COM2 EQU H'0000'
777
SEG25COM2 EQU H'0001'
778
SEG26COM2 EQU H'0002'
779
SEG27COM2 EQU H'0003'
780
SEG28COM2 EQU H'0004'
781
SEG29COM2 EQU H'0005'
782
SEG30COM2 EQU H'0006'
783
SEG31COM2 EQU H'0007'
786
;----- LCDDATA16 Bits -----------------------------------------------------
796
SEG32COM2 EQU H'0000'
797
SEG33COM2 EQU H'0001'
798
SEG34COM2 EQU H'0002'
799
SEG35COM2 EQU H'0003'
800
SEG36COM2 EQU H'0004'
801
SEG37COM2 EQU H'0005'
802
SEG38COM2 EQU H'0006'
803
SEG39COM2 EQU H'0007'
806
;----- LCDDATA17 Bits -----------------------------------------------------
816
SEG40COM2 EQU H'0000'
817
SEG41COM2 EQU H'0001'
818
SEG42COM2 EQU H'0002'
819
SEG43COM2 EQU H'0003'
820
SEG44COM2 EQU H'0004'
821
SEG45COM2 EQU H'0005'
822
SEG46COM2 EQU H'0006'
823
SEG47COM2 EQU H'0007'
826
;----- LCDDATA18 Bits -----------------------------------------------------
855
;----- LCDDATA19 Bits -----------------------------------------------------
867
SEG10COM3 EQU H'0002'
868
SEG11COM3 EQU H'0003'
869
SEG12COM3 EQU H'0004'
870
SEG13COM3 EQU H'0005'
871
SEG14COM3 EQU H'0006'
872
SEG15COM3 EQU H'0007'
878
;----- LCDDATA20 Bits -----------------------------------------------------
888
SEG16COM3 EQU H'0000'
889
SEG17COM3 EQU H'0001'
890
SEG18COM3 EQU H'0002'
891
SEG19COM3 EQU H'0003'
892
SEG20COM3 EQU H'0004'
893
SEG21COM3 EQU H'0005'
894
SEG22COM3 EQU H'0006'
895
SEG23COM3 EQU H'0007'
898
;----- LCDDATA21 Bits -----------------------------------------------------
908
SEG24COM3 EQU H'0000'
909
SEG25COM3 EQU H'0001'
910
SEG26COM3 EQU H'0002'
911
SEG27COM3 EQU H'0003'
912
SEG28COM3 EQU H'0004'
913
SEG29COM3 EQU H'0005'
914
SEG30COM3 EQU H'0006'
915
SEG31COM3 EQU H'0007'
918
;----- LCDDATA22 Bits -----------------------------------------------------
928
SEG32COM3 EQU H'0000'
929
SEG33COM3 EQU H'0001'
930
SEG34COM3 EQU H'0002'
931
SEG35COM3 EQU H'0003'
932
SEG36COM3 EQU H'0004'
933
SEG37COM3 EQU H'0005'
934
SEG38COM3 EQU H'0006'
935
SEG39COM3 EQU H'0007'
938
;----- LCDDATA23 Bits -----------------------------------------------------
948
SEG40COM3 EQU H'0000'
949
SEG41COM3 EQU H'0001'
950
SEG42COM3 EQU H'0002'
951
SEG43COM3 EQU H'0003'
952
SEG44COM3 EQU H'0004'
953
SEG45COM3 EQU H'0005'
954
SEG46COM3 EQU H'0006'
955
SEG47COM3 EQU H'0007'
958
;----- BAUDCON1 Bits -----------------------------------------------------
969
;----- BAUDCTL1 Bits -----------------------------------------------------
980
;----- PORTA Bits -----------------------------------------------------
1011
;----- PORTB Bits -----------------------------------------------------
1041
;----- PORTC Bits -----------------------------------------------------
1065
; DT is a reserved word
1072
;----- PORTD Bits -----------------------------------------------------
1101
;----- PORTE Bits -----------------------------------------------------
1118
LCDBIAS1 EQU H'0000'
1119
LCDBIAS2 EQU H'0001'
1120
LCDBIAS3 EQU H'0002'
1132
;----- PORTF Bits -----------------------------------------------------
1165
;----- PORTG Bits -----------------------------------------------------
1188
;----- PORTH Bits -----------------------------------------------------
1208
;----- PORTJ Bits -----------------------------------------------------
1228
;----- LATA Bits -----------------------------------------------------
1239
;----- LATB Bits -----------------------------------------------------
1250
;----- LATC Bits -----------------------------------------------------
1261
;----- LATD Bits -----------------------------------------------------
1272
;----- LATE Bits -----------------------------------------------------
1279
;----- LATF Bits -----------------------------------------------------
1290
;----- LATG Bits -----------------------------------------------------
1298
;----- LATH Bits -----------------------------------------------------
1309
;----- LATJ Bits -----------------------------------------------------
1320
;----- DDRA Bits -----------------------------------------------------
1331
;----- TRISA Bits -----------------------------------------------------
1342
;----- DDRB Bits -----------------------------------------------------
1353
;----- TRISB Bits -----------------------------------------------------
1364
;----- DDRC Bits -----------------------------------------------------
1375
;----- TRISC Bits -----------------------------------------------------
1386
;----- DDRD Bits -----------------------------------------------------
1397
;----- TRISD Bits -----------------------------------------------------
1408
;----- DDRE Bits -----------------------------------------------------
1415
;----- TRISE Bits -----------------------------------------------------
1422
;----- DDRF Bits -----------------------------------------------------
1433
;----- TRISF Bits -----------------------------------------------------
1444
;----- DDRG Bits -----------------------------------------------------
1452
;----- TRISG Bits -----------------------------------------------------
1460
;----- DDRH Bits -----------------------------------------------------
1471
;----- TRISH Bits -----------------------------------------------------
1482
;----- DDRJ Bits -----------------------------------------------------
1493
;----- TRISJ Bits -----------------------------------------------------
1504
;----- OSCTUNE Bits -----------------------------------------------------
1514
;----- PIE1 Bits -----------------------------------------------------
1527
;----- PIR1 Bits -----------------------------------------------------
1540
;----- IPR1 Bits -----------------------------------------------------
1553
;----- PIE2 Bits -----------------------------------------------------
1564
;----- PIR2 Bits -----------------------------------------------------
1575
;----- IPR2 Bits -----------------------------------------------------
1586
;----- PIE3 Bits -----------------------------------------------------
1592
;----- PIR3 Bits -----------------------------------------------------
1598
;----- IPR3 Bits -----------------------------------------------------
1604
;----- RCSTA Bits -----------------------------------------------------
1617
;----- RCSTA1 Bits -----------------------------------------------------
1630
;----- TXSTA Bits -----------------------------------------------------
1641
;----- TXSTA1 Bits -----------------------------------------------------
1652
;----- T3CON Bits -----------------------------------------------------
1655
NOT_T3SYNC EQU H'0002'
1664
T3INSYNC EQU H'0002'
1667
;----- CMCON Bits -----------------------------------------------------
1678
;----- CVRCON Bits -----------------------------------------------------
1691
;----- CCP2CON Bits -----------------------------------------------------
1706
;----- CCP1CON Bits -----------------------------------------------------
1721
;----- ADCON2 Bits -----------------------------------------------------
1731
;----- ADCON1 Bits -----------------------------------------------------
1740
;----- ADCON0 Bits -----------------------------------------------------
1752
NOT_DONE EQU H'0001'
1755
;----- SSPCON2 Bits -----------------------------------------------------
1766
;----- SSPCON1 Bits -----------------------------------------------------
1777
;----- SSPSTAT Bits -----------------------------------------------------
1787
I2C_READ EQU H'0002'
1788
I2C_START EQU H'0003'
1789
I2C_STOP EQU H'0004'
1795
NOT_WRITE EQU H'0002'
1796
NOT_ADDRESS EQU H'0005'
1798
READ_WRITE EQU H'0002'
1799
DATA_ADDRESS EQU H'0005'
1805
;----- T2CON Bits -----------------------------------------------------
1809
T2OUTPS0 EQU H'0003'
1810
T2OUTPS1 EQU H'0004'
1811
T2OUTPS2 EQU H'0005'
1812
T2OUTPS3 EQU H'0006'
1815
;----- T1CON Bits -----------------------------------------------------
1818
NOT_T1SYNC EQU H'0002'
1827
T1INSYNC EQU H'0002'
1830
;----- RCON Bits -----------------------------------------------------
1846
;----- WDTCON Bits -----------------------------------------------------
1852
;----- HLVDCON Bits -----------------------------------------------------
1874
;----- OSCCON Bits -----------------------------------------------------
1887
;----- T0CON Bits -----------------------------------------------------
1898
;----- STATUS Bits -----------------------------------------------------
1906
;----- INTCON3 Bits -----------------------------------------------------
1926
;----- INTCON2 Bits -----------------------------------------------------
1934
NOT_RBPU EQU H'0007'
1941
;----- INTCON Bits -----------------------------------------------------
1959
;----- STKPTR Bits -----------------------------------------------------
1972
;==========================================================================
1976
;==========================================================================
1978
__BADRAM H'0300'-H'0F3F'
1981
__BADRAM H'0FA6'-H'0FAA'
1983
__BADRAM H'0FB6'-H'0FB9'
1986
;==========================================================================
1988
; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
1989
; superseded by the CONFIG directive. The following settings
1990
; are available for this device.
1992
; Oscillator Selection bits:
1993
; OSC = LP LP oscillator
1994
; OSC = XT XT oscillator
1995
; OSC = HS HS oscillator
1996
; OSC = RC External RC oscillator, CLKO function on RA6
1997
; OSC = EC EC oscillator, CLKO function on RA6
1998
; OSC = ECIO EC oscillator, port function on RA6
1999
; OSC = HSPLL HS oscillator, PLL enabled (clock frequency = 4 x FOSC1)
2000
; OSC = RCIO External RC oscillator, port function on RA6
2001
; OSC = INTIO67 Internal oscillator block, port function on RA6 and RA7
2002
; OSC = INTIO7 Internal oscillator block, CLKO function on RA6, port function on RA7
2004
; Fail-Safe Clock Monitor Enable bit:
2005
; FCMEN = OFF Fail-Safe Clock Monitor disabled
2006
; FCMEN = ON Fail-Safe Clock Monitor enabled
2008
; Internal/External Oscillator Switchover bit:
2009
; IESO = OFF Oscillator Switchover mode disabled
2010
; IESO = ON Oscillator Switchover mode enabled
2012
; Power-up Timer Enable bit:
2013
; PWRT = ON PWRT enabled
2014
; PWRT = OFF PWRT disabled
2016
; Brown-out Reset Enable bits:
2017
; BOREN = OFF Brown-out Reset disabled in hardware and software
2018
; BOREN = ON Brown-out Reset enabled and controlled by software (SBOREN is enabled)
2019
; BOREN = NOSLP Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
2020
; BOREN = SBORDIS Brown-out Reset enabled in hardware only (SBOREN is disabled)
2022
; Brown Out Voltage:
2023
; BORV = 0 Maximum Setting
2026
; BORV = 3 Minimum Setting
2028
; Watchdog Timer Enable bit:
2029
; WDT = OFF WDT disabled (control is placed on the SWDTEN bit)
2030
; WDT = ON WDT enabled
2032
; Watchdog Timer Postscale Select bits:
2043
; WDTPS = 1024 1:1024
2044
; WDTPS = 2048 1:2048
2045
; WDTPS = 4096 1:4096
2046
; WDTPS = 8192 1:8192
2047
; WDTPS = 16384 1:16384
2048
; WDTPS = 32768 1:32768
2050
; MCLR Pin Enable bit:
2051
; MCLRE = OFF RG5 input pin enabled; MCLR disabled
2052
; MCLRE = ON MCLR pin enabled; RG5 input pin disabled
2054
; Low-Power Timer 1 Oscillator Enable bit:
2055
; LPT1OSC = OFF Timer1 configured for higher power operation
2056
; LPT1OSC = ON Timer1 configured for low-power operation
2059
; CCP2MX = PORTBE CCP2 input/output is multiplexed with RE7
2060
; CCP2MX = PORTC CCP2 input/output is multiplexed with RC1
2062
; Stack Full/Underflow Reset Enable bit:
2063
; STVREN = OFF Stack full/underflow will not cause Reset
2064
; STVREN = ON Stack full/underflow will cause Reset
2066
; Extended Instruction Set Enable bit:
2067
; XINST = OFF Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
2068
; XINST = ON Instruction set extension and Indexed Addressing mode enabled
2070
; Background Debugger Enable bit:
2071
; DEBUG = ON Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug
2072
; DEBUG = OFF Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
2074
; Code Protection bit:
2075
; CP = ON Program memory block (000000-003FFFh) code-protected
2076
; CP = OFF Program memory block (000000-003FFFh) not code-protected
2078
;==========================================================================
2079
;==========================================================================
2081
; Configuration Bits
2091
;==========================================================================
2093
; The following is an assignment of address values for all of the
2094
; configuration registers for the purpose of table reads
2095
_CONFIG1H EQU H'300001'
2096
_CONFIG2L EQU H'300002'
2097
_CONFIG2H EQU H'300003'
2098
_CONFIG3H EQU H'300005'
2099
_CONFIG4L EQU H'300006'
2100
_CONFIG5L EQU H'300008'
2102
;----- CONFIG1H Options --------------------------------------------------
2103
_OSC_LP_1H EQU H'F0' ; LP oscillator
2104
_OSC_XT_1H EQU H'F1' ; XT oscillator
2105
_OSC_HS_1H EQU H'F2' ; HS oscillator
2106
_OSC_RC_1H EQU H'F3' ; External RC oscillator, CLKO function on RA6
2107
_OSC_EC_1H EQU H'F4' ; EC oscillator, CLKO function on RA6
2108
_OSC_ECIO_1H EQU H'F5' ; EC oscillator, port function on RA6
2109
_OSC_HSPLL_1H EQU H'F6' ; HS oscillator, PLL enabled (clock frequency = 4 x FOSC1)
2110
_OSC_RCIO_1H EQU H'F7' ; External RC oscillator, port function on RA6
2111
_OSC_INTIO67_1H EQU H'F8' ; Internal oscillator block, port function on RA6 and RA7
2112
_OSC_INTIO7_1H EQU H'F9' ; Internal oscillator block, CLKO function on RA6, port function on RA7
2114
_FCMEN_OFF_1H EQU H'BF' ; Fail-Safe Clock Monitor disabled
2115
_FCMEN_ON_1H EQU H'FF' ; Fail-Safe Clock Monitor enabled
2117
_IESO_OFF_1H EQU H'7F' ; Oscillator Switchover mode disabled
2118
_IESO_ON_1H EQU H'FF' ; Oscillator Switchover mode enabled
2120
;----- CONFIG2L Options --------------------------------------------------
2121
_PWRT_ON_2L EQU H'FE' ; PWRT enabled
2122
_PWRT_OFF_2L EQU H'FF' ; PWRT disabled
2124
_BOREN_OFF_2L EQU H'F9' ; Brown-out Reset disabled in hardware and software
2125
_BOREN_ON_2L EQU H'FB' ; Brown-out Reset enabled and controlled by software (SBOREN is enabled)
2126
_BOREN_NOSLP_2L EQU H'FD' ; Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
2127
_BOREN_SBORDIS_2L EQU H'FF' ; Brown-out Reset enabled in hardware only (SBOREN is disabled)
2129
_BORV_0_2L EQU H'E7' ; Maximum Setting
2130
_BORV_1_2L EQU H'EF' ;
2131
_BORV_2_2L EQU H'F7' ;
2132
_BORV_3_2L EQU H'FF' ; Minimum Setting
2134
;----- CONFIG2H Options --------------------------------------------------
2135
_WDT_OFF_2H EQU H'FE' ; WDT disabled (control is placed on the SWDTEN bit)
2136
_WDT_ON_2H EQU H'FF' ; WDT enabled
2138
_WDTPS_1_2H EQU H'E1' ; 1:1
2139
_WDTPS_2_2H EQU H'E3' ; 1:2
2140
_WDTPS_4_2H EQU H'E5' ; 1:4
2141
_WDTPS_8_2H EQU H'E7' ; 1:8
2142
_WDTPS_16_2H EQU H'E9' ; 1:16
2143
_WDTPS_32_2H EQU H'EB' ; 1:32
2144
_WDTPS_64_2H EQU H'ED' ; 1:64
2145
_WDTPS_128_2H EQU H'EF' ; 1:128
2146
_WDTPS_256_2H EQU H'F1' ; 1:256
2147
_WDTPS_512_2H EQU H'F3' ; 1:512
2148
_WDTPS_1024_2H EQU H'F5' ; 1:1024
2149
_WDTPS_2048_2H EQU H'F7' ; 1:2048
2150
_WDTPS_4096_2H EQU H'F9' ; 1:4096
2151
_WDTPS_8192_2H EQU H'FB' ; 1:8192
2152
_WDTPS_16384_2H EQU H'FD' ; 1:16384
2153
_WDTPS_32768_2H EQU H'FF' ; 1:32768
2155
;----- CONFIG3H Options --------------------------------------------------
2156
_MCLRE_OFF_3H EQU H'7F' ; RG5 input pin enabled; MCLR disabled
2157
_MCLRE_ON_3H EQU H'FF' ; MCLR pin enabled; RG5 input pin disabled
2159
_LPT1OSC_OFF_3H EQU H'FB' ; Timer1 configured for higher power operation
2160
_LPT1OSC_ON_3H EQU H'FF' ; Timer1 configured for low-power operation
2162
_CCP2MX_PORTBE_3H EQU H'FE' ; CCP2 input/output is multiplexed with RE7
2163
_CCP2MX_PORTC_3H EQU H'FF' ; CCP2 input/output is multiplexed with RC1
2165
;----- CONFIG4L Options --------------------------------------------------
2166
_STVREN_OFF_4L EQU H'FE' ; Stack full/underflow will not cause Reset
2167
_STVREN_ON_4L EQU H'FF' ; Stack full/underflow will cause Reset
2169
_XINST_OFF_4L EQU H'BF' ; Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
2170
_XINST_ON_4L EQU H'FF' ; Instruction set extension and Indexed Addressing mode enabled
2172
_DEBUG_ON_4L EQU H'7F' ; Background debugger enabled, RB6 and RB7 are dedicated to In-Circuit Debug
2173
_DEBUG_OFF_4L EQU H'FF' ; Background debugger disabled, RB6 and RB7 configured as general purpose I/O pins
2175
;----- CONFIG5L Options --------------------------------------------------
2176
_CP_ON_5L EQU H'FE' ; Program memory block (000000-003FFFh) code-protected
2177
_CP_OFF_5L EQU H'FF' ; Program memory block (000000-003FFFh) not code-protected
2180
_DEVID1 EQU H'3FFFFE'
2181
_DEVID2 EQU H'3FFFFF'
2183
_IDLOC0 EQU H'200000'
2184
_IDLOC1 EQU H'200001'
2185
_IDLOC2 EQU H'200002'
2186
_IDLOC3 EQU H'200003'
2187
_IDLOC4 EQU H'200004'
2188
_IDLOC5 EQU H'200005'
2189
_IDLOC6 EQU H'200006'
2190
_IDLOC7 EQU H'200007'