User guide

22
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
Voltage Detection Circuit should be enabled (set VC27 of VCR2 to 1)
Voltage Detection Interrupt is enabled (set D40 of D4INT to 1)
Voltage Detection Interrupt is selected (set D46 bit of D4INT is set to 0)
Enable Voltage Detection Digital Filter (D41 bit of D4INT register)
0: Enable Digital Filter.
1: Disable Digital Filter.
To use this digital filter, the low speed on chip oscillator should always be enabled
(set CM14 bit of CM1 register to 0)
The Voltage Detection Interrupt shares the interrupt vector with the Watchdog
Timer Interrupt and Oscillation Stop Detection Interrupt.
The D42 bit of the D4INT register becomes 1 when the supply voltage
passing through Vdet is detected. A voltage detection interrupt
request is generated when the D42 bit changes from 0 to 1.
The D42 bit needs to be set to 0 by the software to generate
the next interrupt request.
D
a
t
a
4
D
e
s
i
g
n
The Voltage De-
tection Interrupt shares
the interrupt vector with the
Watchdog
Timer Inter-
rupt and Oscil-
lation Stop De-
tection Interrupt.