8 SUPPLY VOLTAGE DETECTOR (SVD)
8-4
Seiko epson Corporation
S1C17F13 TeChniCal Manual
(Rev. 1.0)
SVD Operations
8.4.2
Continuous operation mode
SVD operates in continuous operation mode by default (SVDCTL.SVDMD[1:0] bits = 0x0). In this mode,
SVD operates continuously while the SVDCTL.MODEN bit is set to 1 and it keeps loading the detection re-
sults to the SVDINTF.SVDDT bit. During this period, the current detection results can be obtained by reading
the SVDINTF.SVDDT bit as necessary. Furthermore, an interrupt (if the SVDCTL.SVDRE[3:0] bits
≠
0xa) or
a reset (if the SVDCTL.SVDRE[3:0] bits = 0xa) can be generated when the SVDINTF.SVDDT bit is set to 1 (low
power supply voltage is detected).
Intermittent operation mode
SVD operates in intermittent operation mode when the SVDCTL.SVDMD[1:0] bits are set to 0x1 to 0x3. In
this mode, SVD turns on at an interval set using the SVDCTL.SVDMD[1:0] bits to perform detection operation
and then it turns off while the SVDCTL.MODEN bit is set to 1. During this period, the latest detection results
can be obtained by reading the SVDINTF.SVDDT bit as necessary. Furthermore, an interrupt or a reset can be
generated when SVD has successively detected low power supply voltage the number of times specified by the
SVDCTL.SVDSC[1:0] bits.
(1) When the SVDCTL.SVDMD[1:0] bits = 0x0 (continuous operation mode)
V
SVD
V
SVD
V
DD
SVDCTL.MODEN
SVD operating status
SVDINTF.SVDDT
Low power supply voltage
detection interrupt
DET
(2) When the SVDCTL.SVDMD[1:0] bits
≠
0x0 (intermittent operation mode)
V
SVD
: Level set using the SVDCTL.SVDC[4:0] bits
: Voltage detection masking time
: Voltage detection operation
DET
V
SVD
V
SVD
V
DD
SVDCTL.MODEN
SVD operating status
SVDINTF.SVDDT
Low power supply voltage
detection interrupt
DET
DET
4.2.1 SVD Operations
Figure 8.
SVD Interrupt and Reset
8.5
SVD Interrupt
8.5.1
Setting the SVDCTL.SVDRE[3:0] bits to a value other than 0xa allows use of the low power supply voltage detec-
tion interrupt function.
5.1.1 Low Power Supply Voltage Detection Interrupt Function
Table 8.
Interrupt
Interrupt flag
Set condition
Clear condition
Low power supply
voltage detection
SVDINTF.SVDIF
In continuous operation mode
When the SVDINTF.SVDDT bit is 1
In intermittent operation mode
When low power supply voltage is successively de-
tected the specified number of times
Writing 1
SVD provides the interrupt enable bit (SVDINTE.SVDIE bit) corresponding to the interrupt flag (SVDINTF.
SVDIF bit). An interrupt request is sent to the interrupt controller only when the SVDINTF.SVDIF bit is set while
the interrupt is enabled by the SVDINTE.SVDIE bit. For more information on interrupt control, refer to the “Interrupt
Controller” chapter.