Datasheet

2003-2013 Microchip Technology Inc. DS39612C-page 255
PIC18F6525/6621/8525/8621
23.1 Control Register
The Low-Voltage Detect Control register
(Register 23-1) 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-4.83V
1101 = 4.16V-4.5V
1100 = 3.96V-4.3V
1011 = 3.76V-3.92V
1010 = 3.57V-3.87V
1001 = 3.47V-3.75V
1000 = 3.27V-3.55V
0111 = 2.98V-3.22V
0110 = 2.77V-3.01V
0101 = 2.67V-2.89V
0100 = 2.48V-2.68V
0011 = 2.37V-2.57V
0010 = 2.18V-2.36V
0001 = 1.98V-2.14V
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