11.07.2015 Views

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 9 SERIAL INTERFACE 20(e) Receive errorsThe following three errors may occur during a receive operation: a parity error, a framing error, and anoverrun error. After data reception, an error flag is set in asynchronous serial interface status register 20(ASIS20). Receive error causes are shown in Table 9-7.It is possible to determine what kind of error occurred during reception by reading the contents ofASIS20 in the reception error interrupt servicing (see Table 9-7 and Figure 9-10).The contents of ASIS20 are reset to 0 by reading receive buffer register 20 (RXB20) or receiving thenext data (if there is an error in the next data, the corresponding error flag is set).Table 9-7. Receive Error CausesReceive ErrorsParity errorFraming errorOverrun errorCauseTransmission-time parity and reception data parity do not match.Stop bit not detectedReception of next data is completed before data is read from receive buffer register.Figure 9-10. Receive Error Timing(a) Parity error occurredRxD20 (Input)D0D1D2D6D7ParitySTOPSTARTINTSR20(b) Framing error or overrun error occurredRxD20 (Input)D0D1D2D6D7ParitySTOPSTARTINTSR20Cautions 1. The contents of the ASIS20 register are reset to 0 by reading receive buffer register20 (RXB20) or receiving the next data. To ascertain the error contents, read ASIS20before reading RXB20.2. Be sure to read receive buffer register 20 (RXB20) even if a receive error occurs. IfRXB20 is not read, an overrun error will occur when the next data is received, andthe receive error state will continue indefinitely.User’s Manual U14801EJ3V1<strong>UD</strong> 137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!