04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 24 VOLTAGE DETECTOR<br />

When setting an interrupt and reset mode (LVIMDS1, LVIMDS0 = 1, 0), voltage detection stabilization wait time for 400 µs<br />

or 5 clocks of fIL is necessary after LVD reset is released (LVIRF = 1). After waiting until voltage detection stabilizes, (0)<br />

clear the LVIMD bit for initialization. While voltage detection stabilization wait time is being counted and when the LVIMD<br />

bit is rewritten, set LVISEN to 1 to mask a reset or interrupt generation by LVD.<br />

Figure 24-8. shows the procedure for initial setting of interrupt and reset mode.<br />

No<br />

Figure 24-8. Initial Setting of Interrupt and Reset Mode<br />

Power supply started<br />

Reset source<br />

determined<br />

LVIRF = 1 ?<br />

Yes<br />

LVISEN = 1<br />

Voltage detection<br />

stabilization wait time<br />

LVIMD = 0<br />

LVISEN = 0<br />

Normal operation<br />

Remark fIL: Low-speed on-chip oscillator clock frequency<br />

Refer to Figure 24-9. Checking reset source.<br />

Check internal reset generation by LVD circuit<br />

Set the LVISEN bit to 1 to mask voltage detection<br />

(LVIOMSK = 1)<br />

Count 400 µs or 5 clocks of fIL by software.<br />

Set the LVIMD bit to 0 to set interrupt mode.<br />

Set the LVISEN bit to 0 to enable voltage detection.<br />

R01UH0317EJ0004 Rev. 0.04 1130<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!