PIC18F1230 MICROCHIP [Microchip Technology], PIC18F1230 Datasheet - Page 183

no-image

PIC18F1230

Manufacturer Part Number
PIC18F1230
Description
18/20/28-Pin, Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F1230-E/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F1230-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP
Quantity:
5
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230T-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
18.2
The following steps are needed to set up the LVD
module:
1.
2.
3.
4.
5.
18.3
When the module is enabled, the LVD comparator and
voltage divider are enabled and will consume static cur-
rent. The total current consumption, when enabled, is
specified in electrical specification parameter D022B.
FIGURE 18-2:
© 2006 Microchip Technology Inc.
Disable the module by clearing the LVDEN bit
(LVDCON<4>).
Write the value to the LVDL3:LVDL0 bits that
selects the desired LVD trip point.
Enable the LVD module by setting the LVDEN
bit.
Clear the LVD interrupt flag (PIR2<2>) which
may have been set from a previous interrupt.
Enable the LVD interrupt, if interrupts are
desired, by setting the LVDIE and GIE bits
(PIE2<2> and INTCON<7>). An interrupt will not
be generated until the IRVST bit is set.
CASE 1:
CASE 2:
LVD Setup
Current Consumption
Enable LVD
Enable LVD
IRVST
IRVST
LVDIF
LVDIF
V
V
DD
DD
LOW-VOLTAGE DETECT OPERATION
Internal reference is stable
Advance Information
Internal reference is stable
T
T
IRVST
IRVST
LVDIF may not be set
LVDIF cleared in software,
LVDIF remains set since LVD condition still exists
Depending on the application, the LVD module does
not need to be operating constantly. To decrease the
current requirements, the LVD circuitry may only need
to be enabled for short periods where the voltage is
checked. After doing the check, the LVD module may
be disabled.
18.4
The internal reference voltage of the LVD module,
specified in electrical specification parameter D420,
may be used by other internal circuitry, such as the
programmable Brown-out Reset. If the LVD or other
circuits using the voltage reference are disabled to
lower the device’s current consumption, the reference
voltage circuit will require time to become stable before
a low-voltage condition can be reliably detected. This
start-up time, T
of device clock speed. It is specified in electrical
specification parameter 36.
The LVD interrupt flag is not enabled until T
expired and a stable reference voltage is reached. For
this reason, brief excursions beyond the set point may
not be detected during this interval (refer to Figure 18-2).
LVD Start-up Time
PIC18F1230/1330
IRVST
LVDIF cleared in software
, is an interval that is independent
LVDIF cleared in software
V
V
DS39758B-page 181
LVD
LVD
IRVST
has

Related parts for PIC18F1230