44
EPSON
S1C63666 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
• TOUT (R02)
The R02 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 R02 register at "1" and the R02HIZ register at "0", and turn the
signal on and off using the PTOUT register. It is, however, necessary to control the programmable
timer.
Refer to Section 4.11, "Programmable Timer" for details of the programmable timer.
Note: A hazard may occur when the TOUT signal is turned on and off.
Figure 4.6.4.2 shows the output waveform of the TOUT signal.
R02HIZ register
R02 register
PTOUT register
TOUT output
Fix at "0"
Fix at "1"
"1"
"0"
"0"
Fig. 4.6.4.2 Output waveform of TOUT signal
• FOUT (R03)
The R03 terminal can output an FOUT signal.
The FOUT signal is a clock (f
OSC1
or f
OSC3
) that is output from the oscillation circuit or a clock that the
f
OSC1
clock has divided in the internal circuit, and can be used to provide a clock signal to an external
device.
To output the FOUT signal, fix the R03 register at "1" and the R03HIZ register at "0", and turn the
signal on and off using the FOUTE register.
The frequency of the output clock may be selected from among 4 types shown in Table 4.6.4.2 by
setting the FOFQ0 and FOFQ1 registers.
Table 4.6.4.2 FOUT clock frequency
FOFQ1
1
1
0
0
FOFQ0
1
0
1
0
Clock frequency
f
OSC3
f
OSC1
f
OSC1
×
1/8
f
OSC1
×
1/64
f
OSC1
: Clock that is output from the OSC1 oscillation circuit
f
OSC3
: Clock that is output from the OSC3 oscillation circuit
When f
OSC3
is selected for the FOUT signal frequency, it is necessary to control the OSC3 oscillation
circuit before output.
Refer to Section 4.4, "Oscillation Circuit", for the control and notes.
Note: A hazard may occur when the FOUT signal is turned on and off.
Figure 4.6.4.3 shows the output waveform of the FOUT signal.
R03HIZ register
R03 register
FOUTE register
FOUT output
Fix at "0"
Fix at "1"
"1"
"0"
"0"
Fig. 4.6.4.3 Output waveform of FOUT signal