Specifications
S1C6S2N7 TECHNICAL SOFTWARE EPSON II-43
CHAPTER 3: PERIPHERAL CIRCUITS (SVD Circuit and Heavy Load Protection Function)
Control of the SVD
circuit
The SVD circuit will turn ON by writing "1" on the SVDON
register (address 0FAH, D0, R/W) and supply voltage detec-
tion will be performed. By writing "0" on the SVDON regis-
ter, the detection result is stored in the SVDDT register.
However, in order to obtain a stable detection result, it is
necessary to turn the SVD circuit ON for at least 100 µs.
Accordingly, reading out the detection result from the
SVDDT register is performed through the following proce-
dures:
➀ Set the SVDON register to "1".
➁ Provide at least 100 µs waiting time.
➂ Set the SVDON register to "0".
➃ Read-out from the SVDDT register.
Note, however, that when S1C6S2N7 is to be used with the
normal system clock at fosc = 32.768 kHz, there is no need
for the waiting time stated in the above procedure ➁ since 1
instruction cycle will take longer than 100 µs.
Because the power current consumption of the IC becomes
large when the SVD circuit is operated, turn the SVD circuit
OFF when not in use. The operation timing chart is shown
in Figure 3.8.1.
Label Mnemonic/operand Comment
LD X,0FAH ;Sets the address of SVDON
OR MX,0001B ;Sets SVDON to "1"
AND MX,1110B ;Sets SVDON to "0"
LD A,MX ;Loads the detection result
;into the A register
Fig. 3.8.1
Timing chart of
supply voltage
detection operation
through the SVDON
register
Example of SVD
circuit control
program
Supply voltage
Criteria voltage
SVDON register
SVD circuit
SVDDT register
HLMOD register
100 µs or more