S1C63406 TECHNICAL MANUAL
EPSON
33
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
4.5.3 DC output
The R10–R13 output ports can be used as general-purpose DC output ports.
When "1" is written to the R1x data register, the corresponding output port terminal goes high. When "0"
is written, the port terminal goes low.
4.5.4 Special output
In addition to the regular DC output, special output can be selected for the output ports R12 and R13 as
shown in Table 4.5.4.1 with the software.
Figure 4.5.4.1 shows the configuration of the R12 and R13 output ports.
Table 4.5.4.1 Special output
Terminal
R13
R12
Special output
FOUT
TOUT
Output control register
FOUTE
PTOUT
Data
bus
Register
PTOUT
Register
R12
TOUT
R12
(TOUT)
Register
FOUTE
Register
R13
FOUT
R13
(FOUT)
Fig. 4.5.4.1 Configuration of R12 and R13 output ports
At initial reset, the output port data register is set to "1", so the output terminal goes high (VDD).
When using the output port (R12, R13) as the special output port, fix the data register (R12, R13) at "1"
and the respective signal should be turned ON and OFF using the special output control register.
Note: Be aware that the output terminal is fixed at a low (VSS) level the same as the DC output if "0" is
written to the R12 and R13 registers when the special output has been selected.
TOUT (R12)
The R12 terminal can output a TOUT signal.
The TOUT signal is the clock that is output from the programmable timer, and can be used to provide
a clock signal to an external device.
To output the TOUT signal, fix the R12 register at "1" and turn the signal ON and OFF using the
PTOUT register. It is, however, necessary to control the programmable timer.
Refer to Section 4.10, "Programmable Timer" for details of the programmable timer.
Note: A hazard may occur when the TOUT signal is turned ON and OFF.
Figure 4.5.4.2 shows the output waveform of the TOUT signal.
R12 register
PTOUT register
TOUT output
Fix at "1"
"1"
"0"
Fig. 4.5.4.2 Output waveform of TOUT signal