Interrupt Function - Epson 0C88832 Technical Manual

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Serial Interface)
RXEN
RXTRG(RD)
RXTRG(WR)
Sumpling
clock
SIN
D0 D1 D2 D3 D4 D5 D6 D7
(In 8-bit mode/Non parity)
TRXD
OER control signal
OER
Interrupt

5.7.8 Interrupt function

This serial interface includes a function that
generates the below indicated three types of
interrupts.
• Transmitting complete interrupt
• Receiving complete interrupt
• Error interrupt
The interrupt factor flag FSxxx and the interrupt
enable register ESxxx for the respective interrupt
factors are provided and then the interrupt enable/
disable can be selected by the software. In addition,
a priority level of the serial interface interrupt for
the CPU can be optionally set at levels 0 to 3 by the
interrupt priority registers PSIF0 and PSIF1.
For details on the above mentioned interrupt
control register and the operation following
generation of an interrupt, see "5.14 Interrupt and
Standby Status".
Figure 5.7.8.1 shows the configuration of the serial
interface interrupt circuit.
60
TXEN
TXTRG(RD)
TXTRG(WR)
Sumpling
clock
SOUT
D0 D1 D2 D3 D4 D5 D6 D7
(In 8-bit mode/Non parity)
Interrupt
(a) Transmit timing
D0 D1
(b) Receive timing
Fig. 5.7.7.4 Timing chart (asynchronous transfer)
EPSON
D2 D3 D4 D5
D6 D7
1st data
Transmitting complete interrupt
This interrupt factor is generated at the point where
the sending of the data written into the shift
register has been completed and sets the interrupt
factor flag FSTRA to "1". When set in this manner, if
the corresponding interrupt enable register ESTRA
is set to "1" and the corresponding interrupt priority
registers PSIF0 and PSIF1 are set to a higher level
than the setting of interrupt flags (I0 and I1), an
interrupt will be generated to the CPU.
When "0" has been written into the interrupt enable
register ESTRA and interrupt has been disabled, an
interrupt is not generated to the CPU. Even in this
case, the interrupt factor flag FSTRA is set to "1".
The interrupt factor flag FSTRA is reset to "0" by
writing "1".
The following transmitting data can be set and the
transmitting start (writing "1" to TXTRG) can be
controlled by generation of this interrupt factor.
The exception processing vector address for this
interrupt factor is set at 000014H.
E0C88832/88862 TECHNICAL MANUAL
D0 D1 D2 D3 D4 D5 D6 D7
2st data

Advertisement

Table of Contents
loading

This manual is also suitable for:

88862

Table of Contents