upd78f0124m6gba1-8et Renesas Electronics Corporation., upd78f0124m6gba1-8et Datasheet - Page 384

no-image

upd78f0124m6gba1-8et

Manufacturer Part Number
upd78f0124m6gba1-8et
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
384
(2) When used as interrupt
• When starting operation
<1> Mask the LVI interrupt (LVIMK = 1).
<2> Set the detection voltage using bits 2 to 0 (LVIS2 to LVIS0) of the low-voltage detection level selection
<3> Set bit 4 (LVIE) of the low-voltage detection register (LVIM) to 1 (enables reference voltage generator
<4> Use software to instigate a wait of at least 2 ms.
<5> Set bit 7 (LVION) of LVIM to 1 (enables LVI operation).
<6> Use software to instigate a wait of at least 0.2 ms.
<7> Wait until it is checked that (supply voltage (V
<8> Clear the interrupt request flag of LVI (LVIIF) to 0.
<9> Release the interrupt mask flag of LVI (LVIMK).
<10> Execute the EI instruction (when vectored interrupts are used).
Figure 22-5 shows the timing of the interrupt signal generated by the low-voltage detector. The numbers in
this timing chart correspond to <1> to <9> above.
Caution If “POC used” is selected by a mask option, procedures <3> and <4> are not required.
• When stopping operation
Either of the following procedures must be executed.
When using 8-bit memory manipulation instruction:
When using 1-bit memory manipulation instruction:
register (LVIS).
operation).
Write 00H to LVIM.
Clear LVION to 0 first, and then clear LVIE to 0.
CHAPTER 22 LOW-VOLTAGE DETECTOR
User’s Manual U16315EJ3V1UD
DD
) > detection voltage (V
LVI
)) by bit 0 (LVIF) of LVIM.

Related parts for upd78f0124m6gba1-8et