PIC18F2420 MICROCHIP [Microchip Technology], PIC18F2420 Datasheet - Page 245

no-image

PIC18F2420

Manufacturer Part Number
PIC18F2420
Description
28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2420-E/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2420-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2420-I/SO
Manufacturer:
MICROCHIP
Quantity:
1 560
Part Number:
PIC18F2420-I/SO
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
PIC18F2420-I/SO
0
Part Number:
PIC18F2420-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
22.0
PIC18F2420/2520/4420/4520
High/Low-Voltage Detect module (HLVD). This is a pro-
grammable circuit that allows the user to specify both a
device voltage trip point and the direction of change from
that point. If the device experiences an excursion past
the trip point in that direction, an interrupt flag is set. If the
interrupt is enabled, the program execution will branch to
the interrupt vector address and the software can then
respond to the interrupt.
REGISTER 22-1:
 2004 Microchip Technology Inc.
HIGH/LOW-VOLTAGE
DETECT (HLVD)
bit 7
bit 6
bit 5
bit 4
bit 3-0
HLVDCON REGISTER (HIGH/LOW-VOLTAGE DETECT CONTROL)
bit 7
VDIRMAG: Voltage Direction Magnitude Select bit
1 = Event occurs when voltage equals or exceeds trip point (HLVDL3:HLDVL0)
0 = Event occurs when voltage equals or falls below trip point (HLVDL3:HLVDL0)
Unimplemented: Read as ‘0’
IRVST: Internal Reference Voltage Stable Flag bit
1 = Indicates that the voltage detect logic will generate the interrupt flag at the specified voltage
0 = Indicates that the voltage detect logic will not generate the interrupt flag at the specified
HLVDEN: High/Low-Voltage Detect Power Enable bit
1 = HLVD enabled
0 = HLVD disabled
HLVDL3:HLVDL0: Voltage Detection Limit bits
1111 = External analog input is used (input comes from the HLVDIN pin)
1110 = Maximum setting
.
.
.
0000 = Minimum setting
VDIRMAG
Legend:
R = Readable bit
-n = Value at POR
R/W-0
Note 1: See Table 26-4 for specifications.
range
voltage range and the HLVD interrupt should not be enabled
devices
U-0
have
PIC18F2420/2520/4420/4520
IRVST
R-0
W = Writable bit
‘1’ = Bit is set
a
HLVDEN HLVDL3
R/W-0
The
(Register 22-1) completely controls the operation of the
HLVD module. This allows the circuitry to be “turned
off” by the user under software control, which
minimizes the current consumption for the device.
The block diagram for the HLVD module is shown in
Figure 22-1.
(1)
High/Low-Voltage
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
(1)
HLVDL2
R/W-1
Detect
(1)
HLVDL1
x = Bit is unknown
R/W-0
DS39631A-page 243
Control
(1)
HLVDL0
R/W-1
register
bit 0
(1)

Related parts for PIC18F2420