3
3
;==========================================================================
4
; $Id: p18f4431.inc,v 1.4 2004/07/24 03:00:02 craigfranklin Exp $
4
; $Id: p18f4431.inc,v 1.6 2005/03/24 04:08:43 craigfranklin Exp $
5
5
; MPASM PIC18F4431 processor include
7
; (c) Copyright 1999-2004 Microchip Technology, All rights reserved
7
; (c) Copyright 1999-2005 Microchip Technology, All rights reserved
8
8
;==========================================================================
1046
1104
__BADRAM H'0F8E'-H'0F8F'
1047
1105
__BADRAM H'0F97'-H'0F98'
1048
1106
__BADRAM H'0F9C'
1050
__BADRAM H'0FB0'-H'0FB5'
1107
__BADRAM H'0FB1'-H'0FB5'
1051
1108
__BADRAM H'0FC5'
1052
1109
__BADRAM H'0FD4'
1054
1111
;==========================================================================
1113
; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
1114
; superseded by the CONFIG directive. The following settings
1115
; are available for this device.
1117
; Oscillator Selection:
1121
; OSC = RC2 External RC, RA6 is CLKOUT
1122
; OSC = EC EC, RA6 is CLKOUT
1123
; OSC = ECIO EC, RA6 is I/O
1124
; OSC = HSPLL HS-PLL Enabled
1125
; OSC = RCIO External RC, RA6 is I/O
1126
; OSC = IRCIO Internal RC, RA6 & RA7 are I/O
1127
; OSC = IRC Internal RC, RA6 is CLKOUT, RA7 is I/O
1128
; OSC = RC1 External RC, RA6 is CLKOUT
1129
; OSC = RC External RC, RA6 is CLKOUT
1131
; Fail Safe Clock Monitor Enable:
1132
; FCMEN = OFF Disabled
1133
; FCMEN = ON Enabled
1135
; Internal/External Switch-Over:
1136
; IESO = OFF Disabled
1140
; PWRTEN = ON Enabled
1141
; PWRTEN = OFF Disabled
1144
; BOREN = OFF Disabled
1145
; BOREN = ON Enabled
1147
; Brown Out Voltage:
1154
; WDTEN = OFF Disabled
1155
; WDTEN = ON Enabled
1157
; Watchdog Timer Enable Window:
1158
; WINEN = ON Enabled
1159
; WINEN = OFF Disabled
1161
; Watchdog Postscaler:
1172
; WDPS = 1024 1:1024
1173
; WDPS = 2048 1:2048
1174
; WDPS = 4096 1:4096
1175
; WDPS = 8192 1:8192
1176
; WDPS = 16384 1:16384
1177
; WDPS = 32768 1:32768
1179
; Timer1 Oscillator Mux:
1180
; T1OSCMX = OFF Active
1181
; T1OSCMX = ON Inactive
1183
; High-Side Transistors Polarity:
1184
; HPOL = LOW Active low
1185
; HPOL = HIGH Active high
1187
; Low-Side Transistors Polarity:
1188
; LPOL = LOW Active low
1189
; LPOL = HIGH Active high
1191
; PWM output pins RESET state control:
1192
; PWMPIN = ON Enabled
1193
; PWMPIN = OFF Disabled
1196
; MCLRE = OFF Disabled
1197
; MCLRE = ON Enabled
1199
; External clock MUX bit:
1200
; EXCLKMX = RD0 MUXed with RD0
1201
; EXCLKMX = RC3 MUXed with RC3
1204
; PWM4MX = RD5 MUXed with RD5
1205
; PWM4MX = RB5 MUXed with RB5
1208
; SSPMX = RD1 SDO output muxed with RD1
1209
; SSPMX = RC7 SD0 output muxed with RC7
1212
; FLTAMX = RD4 MUXed with RD4
1213
; FLTAMX = RC1 MUXed with RC1
1215
; Stack Overflow Reset:
1216
; STVREN = OFF Disabled
1217
; STVREN = ON Enabled
1219
; Low Voltage Programming:
1220
; LVP = OFF Disabled
1223
; Background Debugger Enable:
1224
; DEBUG = ON Enabled
1225
; DEBUG = OFF Disabled
1227
; Code Protection Block 0:
1229
; CP0 = OFF Disabled
1231
; Code Protection Block 1:
1233
; CP1 = OFF Disabled
1235
; Code Protection Block 2:
1237
; CP2 = OFF Disabled
1239
; Code Protection Block 3:
1241
; CP3 = OFF Disabled
1243
; Boot Block Code Protection:
1245
; CPB = OFF Disabled
1247
; Data EEPROM Code Protection:
1249
; CPD = OFF Disabled
1251
; Write Protection Block 0:
1253
; WRT0 = OFF Disabled
1255
; Write Protection Block 1:
1257
; WRT1 = OFF Disabled
1259
; Write Protection Block 2:
1261
; WRT2 = OFF Disabled
1263
; Write Protection Block 3:
1265
; WRT3 = OFF Disabled
1267
; Boot Block Write Protection:
1269
; WRTB = OFF Disabled
1271
; Configuration Register Write Protection:
1273
; WRTC = OFF Disabled
1275
; Data EEPROM Write Protection:
1277
; WRTD = OFF Disabled
1279
; Table Read Protection Block 0:
1280
; EBTR0 = ON Enabled
1281
; EBTR0 = OFF Disabled
1283
; Table Read Protection Block 1:
1284
; EBTR1 = ON Enabled
1285
; EBTR1 = OFF Disabled
1287
; Table Read Protection Block 2:
1288
; EBTR2 = ON Enabled
1289
; EBTR2 = OFF Disabled
1291
; Table Read Protection Block 3:
1292
; EBTR3 = ON Enabled
1293
; EBTR3 = OFF Disabled
1295
; Boot Block Table Read Protection:
1296
; EBTRB = ON Enabled
1297
; EBTRB = OFF Disabled
1299
;==========================================================================
1300
;==========================================================================
1056
1302
; Configuration Bits
1159
1405
_MCLRE_OFF_3H EQU H'7F' ; Disabled
1160
1406
_MCLRE_ON_3H EQU H'FF' ; Enabled
1162
_EXCLKMX_RC3_3H EQU H'EF' ; MUXed with RC3
1163
_EXCLKMX_RD0_3H EQU H'FF' ; MUXed with RD0
1408
_EXCLKMX_RD0_3H EQU H'EF' ; MUXed with RD0
1409
_EXCLKMX_RC3_3H EQU H'FF' ; MUXed with RC3
1165
1411
_PWM4MX_RD5_3H EQU H'F7' ; MUXed with RD5
1166
1412
_PWM4MX_RB5_3H EQU H'FF' ; MUXed with RB5
1168
_SSPMX_RC7_3H EQU H'FB' ; SD0 output muxed with RC7
1169
_SSPMX_RD1_3H EQU H'FF' ; SDO output muxed with RD1
1414
_SSPMX_RD1_3H EQU H'FB' ; SDO output muxed with RD1
1415
_SSPMX_RC7_3H EQU H'FF' ; SD0 output muxed with RC7
1171
1417
_FLTAMX_RD4_3H EQU H'FE' ; MUXed with RD4
1172
1418
_FLTAMX_RC1_3H EQU H'FF' ; MUXed with RC1