
463
CHAPTER 19 SERIAL INTERFACE CHANNEL 2
19.4.4 Restrictions in UART mode
In the UART mode, the reception completion interrupt request (INTSR) occurs a certain time after the reception
error interrupt (INTSER) has occurred and then cleared. Consequently, the following phenomenon may occur.
Description
If bit 1 (ISRM) of the asynchronous serial interface mode register (ASIM) is set to 1, the reception completion
interrupt request (INTSR) does not occur on occurrence of a reception error. If the receive buffer register (RXB)
is read at certain timing (“a” in Figure 19-15) during the reception error interrupt (INTSER) processing, the internal
error flag is cleared to 0. As a result, it is judged that no reception error has occurred, and INTSR, which must
not occur, occurs. Figure 19-15 illustrates this operation.
Figure 19-15. Reception Completion Interrupt Request Generation Timing (When ISRM = 1)
Remark
ISRM : Bit 1 of asynchronous serial interface mode register (ASIM)
f
SCK
: Source clock of 5-bit counter of baud rate generator
RXB : Receive buffer register
To avoid this phenomenon, take the following measures:
Preventive measures
In case of framing error or overrun error
Disable the receive buffer register (RXB) from being read for a certain period (T2 in Figure 19-16) after the
reception error interrupt request (INTSER) has occurred.
In case of parity error
Disable the receive buffer register (RXB) from being read for a certain period (T1 + T2 in Figure 19-16) after
the reception error interrupt request (INTSER) has occurred.
f
SCK
INTSER (When framing/
overrun error occurs)
Error Flag
(Internal flag)
INTSR
Cleared on
reading RXB
a
Interrupt Processing
Routine of CPU
Reading RXB
It is judged that reception error has not
occurred, and INTSR occurs