PIC16C782 Microchip Technology Inc., PIC16C782 Datasheet - Page 67

no-image

PIC16C782

Manufacturer Part Number
PIC16C782
Description
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C782/JW
Manufacturer:
AD
Quantity:
580
If another module has enabled the bandgap, then the
reference will be stable when the PLVD module is
enabled and the BGST flag can be ignored. However,
if the bandgap has not been previously enabled, the
LVDIF bit will not be valid until the BGST bit is set (see
Figure 8-3). Systems using the PLVD interrupt should
not enable the interrupt until after the reference is sta-
ble to prevent spurious interrupts.
8.2.1
The following steps are needed to set up the PLVD
Module:
1.
FIGURE 8-3:
Internally Generated
Reference Stable
Internally Generated
Reference Stable
2001 Microchip Technology Inc.
CASE 1:
CASE 2:
Write the value to the LV3:LV0 bits (LVDCON
register), which selects the desired PLVD Trip
Point.
Enable LVD
Enable LVD
LVDIF
LVDIF
V
V
SETTING UP THE PLVD MODULE
DD
DD
LOW VOLTAGE DETECT WAVEFORMS
LVDIF may not be set
Preliminary
but remains set as LVD condition
still exists
Attempt to clear LVDIF in software
2.
3.
4.
5.
6.
Ensure that PLVD interrupts are disabled (the
LVDIE bit is cleared, or the GIE bit is cleared).
Enable the PLVD module (set the LVDEN bit in
the LVDCON register).
Wait for the PLVD module to stabilize (the BGST
bit to become set).
Clear the PLVD interrupt flag, which may have
falsely become set until the PLVD module has
stabilized (clear the LVDIF bit).
Enable the PLVD interrupt (set the LVDIE and
the GIE bits).
LVDIF cleared in software
PIC16C781/782
LVDIF cleared in software
VLVD
.
VLVD
DS41171A-page 65

Related parts for PIC16C782