04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

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.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 13 ASYNCHRONOUS SERIAL INTERFACE LIN-UART (UARTF)<br />

13.7.5 Multi-byte response transmission/reception function<br />

In normal LIN communication, a response is no more than 9 bytes (including the checksum field); but in automatic baud<br />

rate mode (UFnMD1, UFnMD0 = 11B), responses of at least 10 bytes can be transmitted and received.<br />

The processing flow of initial settings and INTLSn generation is same as the basic processing flow. See 13.7 LIN<br />

Communication Automatic Baud Rate Mode.<br />

The response preparation error detection function, ID parity check function, and automatic checksum function are valid.<br />

UFnTW = 0, UFnCON = 0,<br />

UFnECS = ×, UFnNO = 1,<br />

UFnRRQ = 0, UFnTRQ = 0,<br />

UFnBUL3 to UFnBUL0 = ×H<br />

(UFnBUCTL register)<br />

Figure 13-64. Multi-Byte Transmission/Reception Processing Flow Example (1/2)<br />

No<br />

Note This can be omitted.<br />

INTLRn processing<br />

Read UFnSTR register<br />

UFnHDC = 1?<br />

Yes<br />

Clear UFnHDC flag<br />

(UFnSTC register)<br />

Read UFnID register<br />

Target PID?<br />

END<br />

Yes<br />

Response received?<br />

(Data length ≤ 9)<br />

Yes<br />

UFnTW = 0, UFnCON = 0,<br />

UFnECS = ×, UFnNO = 0,<br />

UFnRRQ = 1, UFnTRQ = 0,<br />

UFnBUL3 to UFnBUL0 = ×H<br />

(UFnBUCTL register)<br />

Remark : don’t care, n = 0, 1<br />

No<br />

No<br />

A B<br />

Response received?<br />

(Data length > 9)<br />

Yes<br />

UFnTW = 0, UFnCON = 1,<br />

UFnECS = ×, UFnNO = 0,<br />

UFnRRQ = 1, UFnTRQ = 0,<br />

UFnBUL3 to UFnBUL0 = ×H<br />

(UFnBUCTL register)<br />

Read receive data Note<br />

(UFnBUF0 to<br />

UFnBUF8 registers)<br />

Clear UFnBUC flag<br />

(UFnSTC register)<br />

R01UH0317EJ0004 Rev. 0.04 764<br />

Feb. 22, 2013<br />

No<br />

TX<br />

Last byte?<br />

(UFnCON = 0)<br />

END<br />

Yes<br />

No<br />

Response received?<br />

Yes<br />

End upon next response?<br />

Yes<br />

No<br />

No<br />

A B C

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

Saved successfully!

Ooh no, something went wrong!