
54
EPSON
S1C8F360 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Output Ports)
Since the FOUT signal is generated asynchronously
from the register FOUTON, when the signal is
turned ON or OFF by the register settings, a hazard
of a 1/2 cycle or less is generated.
Figure 5.6.5.6 shows the output waveform of the
FOUT signal.
FOUTON
FOUT output (R34)
01
Fig. 5.6.5.6 Output waveform of FOUT signal
s BZ output (R50)
In order for the S1C8F360 to drive an external
buzzer, a BZ signal (sound generator output) can be
output from the output port terminal R50.
The configuration of the output port R50 is shown
in Figure 5.6.5.7.
BZON/BZSHT
BZ output (R50)
01
Fig. 5.6.5.7 Configuration of R50
The output control for the BZ signal is done by the
registers BZON, BZSHT and BZSTP. When you set
"1" for the BZON or BZSHT, the BZ signal is output
from the output port terminal R50, when "0" is set
for the BZON or "1" is set for the BZSTP, the LOW
(VSS) level is output. At this time, "0" must always
be set for the data register R50D.
The BZ signal which is output makes use of the
output of the sound generator. With respect to
control of frequency and envelope, see "5.13 Sound
Generator".
Since the BZ signal is generated asynchronously
from the registers BZON, BZSHT and BZSTP, when
the signal is turned ON or OFF by the register
settings, a hazard of a 1/2 cycle or less is generated.
Figure 5.6.5.8 shows the output waveform of the BZ
signal.
Fig. 5.6.5.8 Output waveform of BZ signal
Register BZSTP
Register BZON
Register BZSHT
R
SQ
One-shot time up
R50 output
BZ signal
Register R50D
<Special Outputs for S1C888xx>
The following special outputs are available when a
mask option compatible with the S1C888xx is
selected.
s TOUT output (R27), TOUT output (R26)
In order for the S1C8F360 to provide clock signal to
an external device, the R27 output port terminal can
be used to output a TOUT signal (clock output by
the programmable timer). Furthermore, the R26
output port terminal can be used to output a TOUT
signal (TOUT inverted signal). The configuration of
the output ports R26 and R27 is shown in Figure
5.6.5.9.
Register R27D
Register PTOUT
R27 output
R26 output
Mask option
TOUT signal
Register R26D
Fig. 5.6.5.9 Configuration of R26 and R27
The output control for the TOUT (TOUT) signals is
done by the register PTOUT. When you set "1" for
the PTOUT, the TOUT (TOUT) signal is output
from the R27 (R26) output port terminal. When "0"
is set, the R27 goes HIGH (VDD) and the R26 goes
LOW (VSS).
To output the TOUT signal, "1" must always be set
for the data register R27D.
The data register R26D does not affect the TOUT
output.
The TOUT signal is generated from the program-
mable timer underflow signal by halving the
frequency.
With respect to frequency control, see "5.11 Pro-
grammable Timer".
Since the TOUT (TOUT) signal is generated asyn-
chronously from the register PTOUT, when the
signal is turned ON or OFF by setting the register, a
hazard of a 1/2 cycle or less is generated.
Figure 5.6.5.10 shows the output waveform of the
TOUT (TOUT) signal.
PTOUT
TOUT output (R27)
TOUT output (R26) *
01
when selected by mask option
Fig. 5.6.5.10 TOUT (TOUT) output waveform
Note: When the mask option that does not support
the TOUT output for R26 is selected, R26
and R27 can be used for the FR and CL
outputs, respectively (see <Special Outputs
for S1C883xx>).