Epson 0C88832 Technical Manual page 46

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Output Ports)
TOUT output (R27), TOUT output (R26)
In order for the E0C88832/88862 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.5.5.1.
Register R27D
Register PTOUT
TOUT signal
Register R26D
Fig. 5.5.5.1 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 (V
LOW (V
).
SS
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
programmable timer underflow signal by halving
the frequency.
With respect to frequency control, see "5.10 Pro-
grammable Timer".
Since the TOUT (TOUT) signal is generated
asynchronously 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.5.5.2 shows the output waveform of the
TOUT (TOUT) signal.
PTOUT
0
TOUT output (R27)
TOUT output (R26) *
∗ when selected by mask option
Fig. 5.5.5.2 TOUT (TOUT) output waveform
40
R27 output
R26 output
Mask option
) and the R26 goes
DD
1
EPSON
FOUT output (R34)...E0C88832 only
In order for the E0C88832 to provide clock signal to
an external device, a FOUT signal (divided clock of
oscillation clock f
or f
OSC1
the output port terminal R34.
Figure 5.5.5.3 shows the configuration of output
port R34.
Register R34D
Register FOUTON
FOUT signal
Fig. 5.5.5.3 Configuration of R34
The output control for the FOUT signal is done by
the register FOUTON. When you set "1" for the
FOUTON, the FOUT signal is output from the
output port terminal R34, when "0" is set, the HIGH
(V
) level is output. At this time, "1" must always
DD
be set for the data register R34D.
The frequency of the FOUT signal can be selected in
software by setting the registers FOUT0–FOUT2.
The frequency is selected any one from among
eight settings as shown in Table 5.5.5.2.
Table 5.5.5.2 FOUT frequency setting
FOUT2
FOUT1
FOUT0
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
f
OSC1
f
OSC3
When the FOUT frequency is made "f
must turn on the OSC3 oscillation circuit before
outputting FOUT. A time interval of several 100
µsec to several 10 msec, from the turning ON of the
OSC3 oscillation circuit to until the oscillation
stabilizes, is necessary, due to the oscillation
element that is used. Consequently, if an abnormal-
ity occurs as the result of an unstable FOUT signal
being output externally, you should allow an
adequate waiting time after turning ON of the
OSC3 oscillation, before turning outputting FOUT.
(The oscillation start time will vary somewhat
depending on the oscillator and on the externally
attached parts. Refer to the oscillation start time
example indicated in Chapter 7, "ELECTRICAL
CHARACTERISTICS".)
At initial reset, OSC3 oscillation circuit is set to OFF
state.
E0C88832/88862 TECHNICAL MANUAL
) can be output from
OSC3
R34 output
FOUT frequency
0
f
/ 1
OSC1
1
f
/ 2
OSC1
0
f
/ 4
OSC1
1
f
/ 8
OSC1
0
f
/ 1
OSC3
1
f
/ 2
OSC3
0
f
/ 4
OSC3
1
f
/ 8
OSC3
:
OSC1 oscillation frequency
:
OSC3 oscillation frequency
/n", you
OSC3

Advertisement

Table of Contents
loading

This manual is also suitable for:

88862

Table of Contents