
134
EPSON
S1C8F360 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (SVD Circuit)
5.16 Supply Voltage Detection
(SVD) Circuit
5.16.1 Configuration of SVD circuit
The S1C8F360 has a built-in supply voltage detec-
tion (SVD) circuit configured with a 4-bit successive
approximation A/D converter.
The SVD circuit has 16 sampling levels (level 0–
level 15) for supply voltage, and this can be con-
trolled by software.
Figure 5.16.1.1 shows the configuration of the SVD
circuit.
5.16.2 Mask option
In the S1C8F360, the optional SVD reset function is
not available.
5.16.3 Operation of SVD circuit
s Sampling control of the SVD circuit
The SVD circuit has two operation modes: continu-
ous sampling and 1/4 Hz auto-sampling mode.
Operation mode selection is done by the SVD control
registers SVDON and SVDSP as shown in Table
5.16.3.1. When both bits of SVDON and SVDSP are
set to "1", continuous sampling is selected.
Table 5.16.3.1 Correspondence between control register
and operation mode
In both operation modes, reading SVDON can
confirm whether the SVD circuit is operating
(BUSY) or on standby (READY); "1" indicates BUSY
and "0" indicates READY.
When executing an SLP instruction while the SVD
circuit is operating, the stop operation of the OSC1
oscillation circuit is kept waiting until the sampling
is completed. The two bits of SVDON and SVDSP
are automatically reset to "0" by hardware while
waiting for completion of sampling.
To reduce current consumption, turn the SVD
circuit OFF when it is not necessary.
s Detection result
The SVD circuit A/D converts the supply voltage
(VDD–VSS) by 4-bit resolution and sets the result
thereof into the SVD0–SVD3 register.
The data in SVD0–SVD3 correspond to the detec-
tion levels as shown in Table 5.16.3.2 and the
detection data is maintained until the next sam-
pling.
For the correspondence between the detection level
and the supply voltage, see Chapter 10, "ELECTRI-
CAL CHARACTERISTICS".
An interval of 7.8 msec (fOSC1 = 32.768 kHz) is
required from the start of supply voltage sampling
by the SVD circuit to completion by writing the
result into SVD0–SVD3. Therefore, when reading
SVD0–SVD3 before sampling is finished, the
previous result will be read.
SVDON
0
1
Operating mode
SVD circuit OFF
1/4 Hz auto-sampling ON
Continuous sampling ON
SVDSP
0
1
×
Fig.5.16.1.1 Configuration of SVD circuit
VDD
Data
bus
SVD3
SVD2
SVD1
SVD0
2,048 Hz
Sampling
control
circuit
SVDON
SVDSP
fOSC1 Dividing
circuit
OSC1
oscillation
circuit
Reference voltage
generation circuit
1/4 Hz
4-bit A/D
converter