Restrictions On Using Uart Mode; Receive Completion Interrupt Request Generation Timing (Isrm = 1) - NEC PD78076 User Manual

Pd78078 series; pd78078y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

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)
f
SCK
INTSER (when framing or
overrun error is generated)
Error flag (internal flag)
INTSR
Interrupt servicing routine
on CPU side
Remark ISRM : Bit 1 of asynchronous serial interface mode register (ASIM)
f
: 5-bit counter source clock of baud rate generator
SCK
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).
CHAPTER 20 SERIAL INTERFACE CHANNEL 2
Cleared upon
reading RXB
RXB reading
a
Judged no receive error has been generated,
and INTSR is generated.
491

Advertisement

Table of Contents
loading

Table of Contents