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 />

LIN-bus<br />

LRxDn (input)<br />

Edge detection<br />

(INTPLRn)<br />

Disable<br />

Wake-up<br />

signal<br />

frame<br />

Figure 13-29. LIN Reception Manipulation Outline<br />

Enable<br />

Reception interrupt<br />

(INTLRn)<br />

Status interrupt<br />

(INTLSn)<br />

Note 1<br />

Capture timer Disable<br />

Break<br />

field<br />

Note 2<br />

13 bits<br />

BF<br />

reception<br />

Note 3<br />

Note 3<br />

Sync<br />

field<br />

SF reception PID reception<br />

Enable<br />

Note 4<br />

Protected<br />

identifier<br />

field<br />

Data<br />

reception<br />

Data<br />

reception<br />

Note 5<br />

Data<br />

reception<br />

Notes 1. A wakeup signal is detected by detecting the interrupt edge of a pin (INTPLRn). After having received the<br />

wakeup signal, enable LIN-UARTn, enable reception operation, and set the BF reception trigger bit.<br />

2. If a BF reception of at least 11 bits is detected, the BF reception is judged to be ended normally. A status<br />

interrupt request signal (INTLSn) is generated in BF reception enable mode during communication (UFnMD1,<br />

UFnMD0 = 10B). If the received BF is less than 11 bits, the reception is judged to be a BF reception error<br />

and the operation is returned to a successful BF reception wait state (UFnBRF = 1) without outputting an<br />

interrupt signal.<br />

3. When BF reception has ended normally, a status interrupt request signal (INTLSn) is generated in BF<br />

reception enable mode during communication (UFnMD1, UFnMD0 = 10B), and a successful BF reception<br />

flag (UFnBSF) is set. When the BF reception flag (UFnBRF) is “1”, detection of overrun, parity, and framing<br />

errors (UFnOVE, UFnPE, UFnFE) is not performed during BF reception. Moreover, data transfer from the<br />

receive shift register to the receive data register (UFnRX) is also not performed. At this time, UFnRX retains<br />

the previous value.<br />

4. Connect the LRxDn pin to the TI (capture input) of the timer array unit. Enable the timer by using a BF<br />

reception complete interrupt, measure the baud rate from the SF transfer data, and calculate the baud rate<br />

error. Set a reception state by stopping the LIN-UARTn reception operation after SF reception and re-setting<br />

the value of LIN-UARTn control register 1 (UFnCTL1) obtained by correcting the baud rate error.<br />

5. Classification of a checksum field is performed by using software. The processing that initializes LIN-UARTn<br />

after CSF reception and sets to a successful BF reception wait state (UFnBRF = 1) again is also performed<br />

by using software. In BF reception enable mode during communication (UFnMD1, UFnMD0 = 10B),<br />

however, BF reception can be automatically performed without setting to a successful BF reception wait<br />

state (UFnBRF = 1) again.<br />

(Remarks are given on the next page.)<br />

R01UH0317EJ0004 Rev. 0.04 726<br />

Feb. 22, 2013<br />

DATA<br />

field<br />

DATA<br />

field<br />

Check<br />

SUM<br />

field

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

Saved successfully!

Ooh no, something went wrong!