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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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.3 ID parity check function<br />

When the ID parity check select bit is set (UFnIPCS = 1) in automatic baud rate mode (UFnMD1, UFnMD0 = 11B), the<br />

PID parity bits (P0, P1) are checked when the received PID is stored into the UFnID register. At that time, if either parity<br />

bit includes an error, an ID parity error flag (UFnIPE) is set, a status interrupt request signal (INTLSn) is generated instead<br />

of a reception complete interrupt request signal (INTLRn), and the PID is stored into the UFnID register.<br />

INTLSn<br />

UFnIPE flag<br />

Figure 13-62. PID Parity Error Occurrence Example<br />

LRxDn pin start ID0 ID1 ID2 ID3 ID4 ID5 P0 P1 stop<br />

Error present<br />

UFnID register PID<br />

Remark n = 0, 1<br />

Sets UFnCLIPE bit to 1<br />

13.7.4 Automatic checksum function<br />

When the automatic checksum enable bit is set (UFnACE = 1) in automatic baud rate mode (UFnMD1, UFnMD0 = 11B),<br />

a checksum is automatically calculated. Enhanced checksum (calculation targets: PID and data) and classic checksum<br />

(calculation target: only data) can be selected for each frame by using the enhanced checksum selection bit (UFnECS).<br />

During response transmission, calculation is performed when data is transferred in 1-byte units from a buffer register to<br />

a transmit shift register Note , and the calculation result is automatically added to the end of response transmission and<br />

transmitted. A checksum is not required to be set to a buffer by using software.<br />

During response reception, calculation is performed when data is stored into a buffer register in 1-byte units Note , and the<br />

stored data and calculation result are automatically compared when the received checksum is stored into a buffer. A<br />

reception complete interrupt request signal (INTLRn) is generated when the comparison result is correct. If the<br />

comparison result is illegal, however, a status interrupt request signal (INTLSn) is generated instead of a reception<br />

complete interrupt request signal (INTLRn), a checksum error flag (UFnCSE) is set, and the checksum is stored into the<br />

UFnRX register.<br />

Note With enhanced checksum, the value of the UFnID register can be set initial value of calculate when transfer start.<br />

Remark n = 0, 1<br />

R01UH0317EJ0004 Rev. 0.04 762<br />

Feb. 22, 2013<br />

Clear

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

Saved successfully!

Ooh no, something went wrong!