Features Configuration Bits RAM map SFR map

PIC18F2331
CONFIG1H (address:0x300001, mask:0xCF, default:0xCF)
OSC -- Oscillator Selection bits (bitmask:0x0F)
OSC = LP | 0xF0 | LP oscillator.
OSC = XT | 0xF1 | XT oscillator.
OSC = HS | 0xF2 | HS oscillator.
OSC = RC2 | 0xF3 | External RC oscillator, CLKO function on RA6.
OSC = EC | 0xF4 | EC oscillator, CLKO function on RA6.
OSC = ECIO | 0xF5 | EC oscillator, port function on RA6.
OSC = HSPLL | 0xF6 | HS oscillator, PLL enabled (clock frequency = 4 x FOSC1).
OSC = RCIO | 0xF7 | External RC oscillator, port function on RA6.
OSC = IRCIO | 0xF8 | Internal oscillator block, port function on RA6 and port function on RA7.
OSC = IRC | 0xF9 | Internal oscillator block, CLKO function on RA6 and port function on RA7.
OSC = RC1 | 0xFA | 101X External RC oscillator, CLKO function on RA6.
OSC = RC | 0xFC | 11XX External RC oscillator, CLKO function on RA6.
FCMEN -- Fail-Safe Clock Monitor Enable bit (bitmask:0x40)
FCMEN = OFF | 0xBF | Fail-Safe Clock Monitor disabled.
FCMEN = ON | 0xFF | Fail-Safe Clock Monitor enabled.
IESO -- Internal External Oscillator Switchover bit (bitmask:0x80)
IESO = OFF | 0x7F | Internal External Switchover mode disabled.
IESO = ON | 0xFF | Internal External Switchover mode enabled.
CONFIG2L (address:0x300002, mask:0x0F, default:0x0F)
PWRTEN -- Power-up Timer Enable bit (bitmask:0x01)
PWRTEN = ON | 0xFE | PWRT enabled.
PWRTEN = OFF | 0xFF | PWRT disabled.
BOREN -- Brown-out Reset Enable bits (bitmask:0x02)
BOREN = OFF | 0xFD | Brown-out Reset disabled.
BOREN = ON | 0xFF | Brown-out Reset enabled.
BORV -- Brown Out Reset Voltage bits (bitmask:0x0C)
BORV = 45 | 0xF3 | VBOR set to 4.5V.
BORV = 42 | 0xF7 | VBOR set to 4.2V.
BORV = 27 | 0xFB | VBOR set to 2.7V.
BORV = 20 | 0xFF | Reserved.
CONFIG2H (address:0x300003, mask:0x3F, default:0x3F)
WDTEN -- Watchdog Timer Enable bit (bitmask:0x01)
WDTEN = OFF | 0xFE | WDT disabled (control is placed on the SWDTEN bit).
WDTEN = ON | 0xFF | WDT enabled.
WDPS -- Watchdog Timer Postscale Select bits (bitmask:0x1E)
WDPS = 1 | 0xE1 | 1:1.
WDPS = 2 | 0xE3 | 1:2.
WDPS = 4 | 0xE5 | 1:4.
WDPS = 8 | 0xE7 | 1:8.
WDPS = 16 | 0xE9 | 1:16.
WDPS = 32 | 0xEB | 1:32.
WDPS = 64 | 0xED | 1:64.
WDPS = 128 | 0xEF | 1:128.
WDPS = 256 | 0xF1 | 1:256.
WDPS = 512 | 0xF3 | 1:512.
WDPS = 1024 | 0xF5 | 1:1024.
WDPS = 2048 | 0xF7 | 1:2048.
WDPS = 4096 | 0xF9 | 1:4096.
WDPS = 8192 | 0xFB | 1:8192.
WDPS = 16384 | 0xFD | 1:16384.
WDPS = 32768 | 0xFF | 1:32768.
WINEN -- Watchdog Timer Window Enable bit (bitmask:0x20)
WINEN = ON | 0xDF | WDT window enabledbled.
WINEN = OFF | 0xFF | WDT window disabled.
CONFIG3L (address:0x300004, mask:0x3C, default:0x3C)
PWMPIN -- PWM output pins Reset state control (bitmask:0x04)
PWMPIN = ON | 0xFB | PWM outputs drive active states upon Reset.
PWMPIN = OFF | 0xFF | PWM outputs disabled upon Reset (default).
LPOL -- Low-Side Transistors Polarity (bitmask:0x08)
LPOL = LOW | 0xF7 | PWM0, 2, 4 and 6 are active-low.
LPOL = HIGH | 0xFF | PWM0, 2, 4 and 6 are active-high.
HPOL -- High-Side Transistors Polarity (bitmask:0x10)
HPOL = LOW | 0xEF | PWM1, 3, 5 and 7 are active-low.
HPOL = HIGH | 0xFF | PWM1, 3, 5 and 7 are active-high.
T1OSCMX -- Timer1 Oscillator MUX (bitmask:0x20)
T1OSCMX = OFF | 0xDF | Standard (legacy) Timer1 oscillator operation.
T1OSCMX = ON | 0xFF | Low-power Timer1 operation when microcontroller is in Sleep mode.
CONFIG3H (address:0x300005, mask:0x80, default:0x80)
MCLRE -- MCLR Pin Enable bit (bitmask:0x80)
MCLRE = OFF | 0x7F | Disabled.
MCLRE = ON | 0xFF | Enabled.
CONFIG4L (address:0x300006, mask:0x85, default:0x85)
STVREN -- Stack Full/Underflow Reset Enable bit (bitmask:0x01)
STVREN = OFF | 0xFE | Stack full/underflow will not cause Reset.
STVREN = ON | 0xFF | Stack full/underflow will cause Reset.
LVP -- Low-Voltage ICSP Enable bit (bitmask:0x04)
LVP = OFF | 0xFB | Low-voltage ICSP disabled.
LVP = ON | 0xFF | Low-voltage ICSP enabled.
DEBUG -- Background Debugger Enable bit (bitmask:0x80)
DEBUG = ON | 0x7F | Background debugger enabled; RB6 and RB7 are dedicated to In-Circuit Debug.
DEBUG = OFF | 0xFF | Background debugger disabled; RB6 and RB7 configured as general purpose I/O pins.
CONFIG5L (address:0x300008, mask:0x03, default:0x03)
CP0 -- Code Protection bit (bitmask:0x01)
CP0 = ON | 0xFE | Block 0 (000200-000FFFh) code-protected.
CP0 = OFF | 0xFF | Block 0 (000200-000FFFh) not code-protected.
CP1 -- Code Protection bit (bitmask:0x02)
CP1 = ON | 0xFD | Block 1 (001000-001FFF) code-protected.
CP1 = OFF | 0xFF | Block 1 (001000-001FFF) not code-protected.
CONFIG5H (address:0x300009, mask:0xC0, default:0xC0)
CPB -- Boot Block Code Protection bit (bitmask:0x40)
CPB = ON | 0xBF | Boot Block (000000-0001FFh) code-protected.
CPB = OFF | 0xFF | Boot Block (000000-0001FFh) not code-protected.
CPD -- Data EEPROM Code Protection bit (bitmask:0x80)
CPD = ON | 0x7F | Data EEPROM code-protected.
CPD = OFF | 0xFF | Data EEPROM not code-protected.
CONFIG6L (address:0x30000A, mask:0x03, default:0x03)
WRT0 -- Write Protection bit (bitmask:0x01)
WRT0 = ON | 0xFE | Block 0 (000200-000FFFh) write-protected.
WRT0 = OFF | 0xFF | Block 0 (000200-000FFFh) not write-protected.
WRT1 -- Write Protection bit (bitmask:0x02)
WRT1 = ON | 0xFD | Block 1 (001000-001FFF) write-protected.
WRT1 = OFF | 0xFF | Block 1 (001000-001FFF) not write-protected.
CONFIG6H (address:0x30000B, mask:0xE0, default:0xE0)
WRTC -- Configuration Register Write Protection bit (bitmask:0x20)
WRTC = ON | 0xDF | Configuration registers (300000-3000FFh) write-protected.
WRTC = OFF | 0xFF | Configuration registers (300000-3000FFh) not write-protected.
WRTB -- Boot Block Write Protection bit (bitmask:0x40)
WRTB = ON | 0xBF | Boot Block (000000-0001FFh) write-protected.
WRTB = OFF | 0xFF | Boot Block (000000-0001FFh) not write-protected.
WRTD -- Data EEPROM Write Protection bit (bitmask:0x80)
WRTD = ON | 0x7F | Data EEPROM write-protected.
WRTD = OFF | 0xFF | Data EEPROM not write-protected.
CONFIG7L (address:0x30000C, mask:0x03, default:0x03)
EBTR0 -- Table Read Protection bit (bitmask:0x01)
EBTR0 = ON | 0xFE | Block 0 (000200-000FFFh) protected from table reads executed in other blocks.
EBTR0 = OFF | 0xFF | Block 0 (000200-000FFFh) not protected from table reads executed in other blocks.
EBTR1 -- Table Read Protection bit (bitmask:0x02)
EBTR1 = ON | 0xFD | Block 1 (001000-001FFF) protected from table reads executed in other blocks.
EBTR1 = OFF | 0xFF | Block 1 (001000-001FFF) not protected from table reads executed in other blocks.
CONFIG7H (address:0x30000D, mask:0x40, default:0x40)
EBTRB -- Boot Block Table Read Protection bit (bitmask:0x40)
EBTRB = ON | 0xBF | Boot Block (000000-0001FFh) not protected from table reads executed in other blocks.
EBTRB = OFF | 0xFF | Boot Block (000000-0001FFh) not protected from table reads executed in other blocks.

This page generated automatically by the device-help.pl program (2016-08-21 09:07:42 UTC) from the 8bit_device.info file (rev: 1.31) of mpasmx and from the gputils source package (rev: svn Unversioned directory). The mpasmx is included in the MPLAB X.