
68
EPSON
S1C8F626 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Serial Interface)
■ Error interrupt
This interrupt factor is generated at the point where
a parity error, framing error or overrun error is
detected during receiving and it sets the interrupt
factor flag FSERRx to "1". When set in this manner,
if the corresponding interrupt enable register
ESERRx is set to "1" and the corresponding inter-
rupt priority registers PSIFx0 and PSIFx1 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 in the interrupt enable
register ESERRx and interrupt has been disabled,
an interrupt is not generated to the CPU. Even in
this case, the interrupt factor flag FSERRx is set to
"1".
The interrupt factor flag FSERRx is reset to "0" by
writing "1".
Since all three types of errors result in the same
interrupt factor, you should identify the error that
has been generated by the error flags PERx (parity
error), OERx (overrun error) and FERx (framing
error).
The exception processing vector address for each
channel is set as follows:
Ch. 0 receive error interrupt: 000028H
Ch. 1 receive error interrupt: 00004CH
■ Receiving complete interrupt
This interrupt factor is generated at the point where
receiving has been completed and the receive data
incorporated into the shift register has been trans-
ferred into the received data buffer and it sets the
interrupt factor flag FSRECx to "1". When set in this
manner, if the corresponding interrupt enable
register ESRECx is set to "1" and the corresponding
interrupt priority registers PSIFx0 and PSIFx1 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 ESRECx and interrupt has been disabled,
an interrupt is not generated to the CPU. Even in
this case, the interrupt factor flag FSRECx is set to
"1".
The interrupt factor flag FSRECx is reset to "0" by
writing "1".
The generation of this interrupt factor permits the
received data to be read.
Also, the interrupt factor flag is set to "1" when a
parity error or framing error is generated.
The exception processing vector address for each
channel is set as follows:
Ch. 0 receiving complete interrupt: 00002AH
Ch. 1 receiving complete interrupt: 00004EH