491
CHAPTER 20 SERIAL INTERFACE CHANNEL 2
20.4.4 Restrictions on using UART mode
In the UART mode, a receive completion interrupt request (INTSR) is generated after a certain period of time
following the generation and clearing of the receive error interrupt request (INTSER). Thereby, the phenomenon
shown below may occur.
Details
If the bit 1 (ISRM) of the asynchronous serial interface mode register (ASIM) is set to 1, the setting is made
such that receive completion interrupt request (INTSR) will not be generated upon the generation of a receive
error. However, in the receive error interrupt request (INTSER) servicing, if the receive buffer register (RXB)
is read within a certain timing (“a” in Figure 20-14), internal error flag is cleared (to 0). Therefore, no receive
error is judged to have been generated, and INTSR, which is not supposed to be generated, will be
generated. Figure 20-14 illustrates the operation above.
Figure 20-14. Receive Completion Interrupt Request Generation Timing (ISRM = 1)
Remark
ISRM : Bit 1 of asynchronous serial interface mode register (ASIM)
f
SCK
: 5-bit counter source clock of baud rate generator
RXB : Receive buffer register
To avoid this phenomenon, implement the following countermeasures.
Countermeasures
• In the case of framing error or overrun error
Prohibit the reading of the receive buffer register (RXB) for a certain period (“T2” in Figure 20-15) after
the generation of a receive error interrupt request (INTSER).
• In the case of parity error
Prohibit the reading of the receive buffer register (RXB) for a certain period (“T1 + T2” in Figure 20-15)
after the generation of a receive error interrupt request (INTSER).
f
SCK
INTSR
Interrupt servicing routine
on CPU side
Cleared upon
reading RXB
RXB reading
INTSER (when framing or
overrun error is generated)
Judged no receive error has been generated,
and INTSR is generated.
Error flag (internal flag)
a
Summary of Contents for PD78076
Page 2: ...2 MEMO ...
Page 12: ...12 MEMO ...
Page 48: ...48 MEMO ...
Page 64: ...64 MEMO ...
Page 82: ...82 MEMO ...
Page 100: ...100 MEMO ...
Page 130: ...130 MEMO ...
Page 180: ...180 MEMO ...
Page 222: ...222 MEMO ...
Page 248: ...248 MEMO ...
Page 288: ...288 MEMO ...
Page 308: ...308 MEMO ...
Page 364: ...364 MEMO ...
Page 494: ...494 MEMO ...
Page 526: ...526 MEMO ...
Page 544: ...544 MEMO ...
Page 558: ...558 MEMO ...
Page 580: ...580 MEMO ...
Page 596: ...596 MEMO ...
Page 598: ...598 MEMO ...
Page 626: ...626 MEMO ...