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 />

24.1 Functions of Voltage Detector<br />

The voltage detector (LVD) has the following functions.<br />

CHAPTER 24 VOLTAGE DETECTOR<br />

The LVD circuit compares the supply voltage (VDD) with the detection voltage (VLVDH, VLVDL), and generates an<br />

internal reset or internal interrupt signal.<br />

The detection level for the power supply detection voltage (VLVDH, VLVDL) can be selected by using the option byte as<br />

one of 6 levels (For details, see CHAPTER 27 OPTION BYTE).<br />

Operable in STOP mode.<br />

The following three operation modes can be selected by using the option byte.<br />

(a) Interrupt & reset mode (option byte LVIMDS1, LVIMDS0 = 1, 0)<br />

For the two detection voltages selected by the option byte 000C1H/020C1H, the high-voltage detection level<br />

(VLVDH) is used for generating interrupts and ending resets, and the low-voltage detection level (VLVDL) is used for<br />

triggering resets.<br />

(b) Reset mode (option byte LVIMDS1, LVIMDS0 = 1, 1)<br />

The detection voltage (VLVD) selected by the option byte 000C1H/020C1H is used for triggering and ending resets.<br />

(c) Interrupt mode (option byte LVIMDS1, LVIMDS0 = 0, 1)<br />

The detection voltage (VLVD) selected by the option byte 000C1H/020C1H is used for generating interrupts/reset<br />

release.<br />

Two detection voltages (VLVDH, VLVDL) can be specified in the interrupt & reset mode, and one (VLVD) can be specified in<br />

the reset mode and interrupt mode.<br />

The reset and interrupt signals are generated as follows according to the option byte (LVIMDS0, LVIMDS1) selection.<br />

Interrupt & reset mode<br />

(LVIMDS1, LVIMDS0 = 1, 0)<br />

Generates an internal interrupt signal<br />

when VDD < VLVDH, and an internal reset<br />

when VDD < VLVDL.<br />

Releases the reset signal when VDD <br />

VLVDH.<br />

Reset mode<br />

(LVIMDS1, LVIMDS0 = 1, 1)<br />

Generates an internal reset signal when<br />

VDD < VLVD and releases the reset signal<br />

when VDD VLVD.<br />

Interrupt mode<br />

(LVIMDS1, LVIMDS0 = 0, 1)<br />

Generates an internal interrupt signal<br />

when VDD drops lower than VLVD (VDD <<br />

VLVD) or when VDD becomes VLVD or<br />

higher<br />

(VDD VLVD).<br />

Releases the reset signal when VDD <br />

VLVD at power on.<br />

While the voltage detector is operating, whether the supply voltage or the input voltage from an external input pin is<br />

more than or less than the detection level can be checked by reading the voltage detection flag (LVIF: bit 0 of the voltage<br />

detection register (LVIM)).<br />

Bit 0 (LVIRF) of the reset control flag register (RESF) is set to 1 if reset occurs. For details of the RESF register, see<br />

CHAPTER 22 RESET FUNCTION.<br />

R01UH0317EJ0004 Rev. 0.04 1114<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!