Datasheet

Table Of Contents
© 2006 Microchip Technology Inc. DS41159E-page 261
PIC18FXX8
23.1 Control Register
The Low-Voltage Detect Control register controls the
operation of the Low Voltage Detect circuitry.
REGISTER 23-1: LVDCON: LOW-VOLTAGE DETECT CONTROL REGISTER
U-0 U-0 R-0 R/W-0 R/W-0 R/W-1 R/W-0 R/W-1
IRVST LVDEN LVDL3 LVDL2 LVDL1 LVDL0
bit 7 bit 0
bit 7-6 Unimplemented: Read as ‘0
bit 5 IRVST: Internal Reference Voltage Stable Flag bit
1 = Indicates that the Low-Voltage Detect logic will generate the interrupt flag at the specified
voltage range
0 = Indicates that the Low-Voltage Detect logic will not generate the interrupt flag at the
specified voltage range and the LVD interrupt should not be enabled
bit 4 LVDEN: Low-Voltage Detect Power Enable bit
1 = Enables LVD, powers up LVD circuit
0 = Disables LVD, powers down LVD circuit
bit 3-0 LVDL3:LVDL0: Low-Voltage Detection Limit bits
1111 = External analog input is used (input comes from the LVDIN pin)
1110 = 4.45V min.-4.83V max.
1101 = 4.16V min.-4.5V max.
1100 = 3.96V min.-4.2V max.
1011 = 3.76V min.-4.08V max.
1010 = 3.57V min.-3.87V max.
1001 = 3.47V min.-3.75V max.
1000 = 3.27V min.-3.55V max.
0111 = 2.98V min.-3.22V max.
0110 = 2.77V min.-3.01V max.
0101 = 2.67V min.-2.89V max.
0100 = 2.48V min.-2.68V max.
0011 = 2.37V min.-2.57V max.
0010 = 2.18V min.-2.36V max.
0001 = 1.98V min.-2.14V max.
0000 = Reserved
Note: LVDL3:LVDL0 modes, which result in a trip point below the valid operating voltage
of the device, are not tested.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown