CHAPTER 22 LOW-VOLTAGE DETECTOR
User’s Manual U16896EJ2V0UD
616
22.4 Operation
The low-voltage detector can be used in the following two modes.
•
Reset operation (LVIRES):
Compares the supply voltage (V
DD
) and detection voltage (V
LVI
), and generates a
reset signal (LVIRES) when V
DD
< V
LVI
.
•
Interrupt operation (INTLVI): Compares the supply voltage (V
DD
) and detection voltage (V
LVI
), and generates an
interrupt request signal (INTLVI) when V
DD
< V
LVI
.
(1) Reset operation (LVIRES)
<When starting operation>
<1> Mask the INTLVI interrupt (LVIMK bit = 1).
<2> Set the detection voltage (V
LVI
) using the LVIS.LVIS2 to LVIS.LVIS0 bits.
<3> Set the LVIM.LVION bit to 1 (enables low-voltage detector operation).
<4> Use software to instigate a wait of at least 0.2 ms.
<5> Confirm that the LVIM.LVIF bit is cleared to 0 (supply voltage (V
DD
) > detection voltage (V
LVI
)).
When the LVIF bit is set to 1, use software to instigate a wait until the LVIF bit is cleared to 0.
<6> Set the LVIM.LVIMD bit to 1 (generates internal reset signal (LVIRES) when supply voltage (V
DD
) <
detection voltage (V
LVI
)).
Caution <1> must always be executed. When the LVIMK bit = 0, an interrupt (INTLVI) may
occur immediately after the processing in <3>.
<When stopping operation>
The low-voltage detection operation cannot be stopped until a reset signal other than LVIRES is generated.
Содержание V850ES/KE1+
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO...