Interrupt Function; Setting Of Tout Output - Epson S1C6P366 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmble Timer)

4.9.3.4 Interrupt function

The programmable timer can generate an interrupt due to an underflow.
An underflow of this 16 bit programmable timer sets the corresponding interrupt factor flag IPT1 (timer
1) to "1", and generates an interrupt. The interrupt can also be masked by setting the corresponding
interrupt mask register EIPT1 (timer 1). However, the interrupt factor flag is set to "1" by an underflow of
the corresponding timer regardless of the interrupt mask register setting.

4.9.3.5 Setting of TOUT output

The programmable timer can generate a TOUT signal due to an underflow of this 16 bit programmable
timer. The TOUT signal is generated by dividing the underflows in 1/2.
The TOUT signal can be output from the R02 output port terminal. Programmable clocks can be supplied
to external devices.
Figure 4.9.3.5.1 shows the configuration of the output port R02.
The output of a TOUT signal is controlled by the PTOUT register. When "1" is written to the PTOUT
register, the TOUT signal is output from the R02 output port terminal and when "0" is written, the
terminal goes to a high (V
impedance control register R02HIZ must always be "0" (data output state).
Since the TOUT signal is generated asynchronously from the PTOUT register, a hazard within 1/2 cycle is
generated when the signal is turned ON and OFF by setting the register.
Figure 4.9.3.5.2 shows the output waveform of the TOUT signal.
66
TOUT
Register
PTOUT
Register
R02
Register
R02HIZ
Fig. 4.9.3.5.1 Configuration of R02
) level. However, the data register R02 must always be "1" and the high
DD
R02HIZ register
R02 register
PTOUT register
"0"
TOUT output
Fig. 4.9.3.5.2 Output waveform of the TOUT signal
Fix at "0"
Fix at "1"
"1"
EPSON
R02
(TOUT)
"0"
S1C6P366 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents