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 LIN Communication Automatic Baud Rate Mode<br />

In LIN communication automatic baud rate mode, a BF and an SF are automatically detected and the baud rate is set<br />

according to the measurement result of the SF.<br />

When UFnMD1 and UFnMD0 are set to “11B”, operation is performed in automatic baud rate mode.<br />

Operation can be performed with the baud rate at 2,400 bps to 128 kbps. Set to 8 to 12 MHz the clock (prescaler<br />

clock) that has been divided by using a prescaler. At that time, the setting values of UFnPRS2 to UFnPRS0 must be<br />

calculated from the fCLK frequency and initial settings must be performed.<br />

When using LIN-UART as the master, using automatic baud rate mode (UFnMD1, UFnMD0 = 11B) is prohibited.<br />

Figure 13-52. Basic Processing Flow Example of LIN Communication Automatic Baud Rate Mode (1/2)<br />

Initial settings<br />

Prescaler setting<br />

(UFnCTL1 register)<br />

Transmit data level<br />

(UFnOPT0 register)<br />

Various mode settings<br />

(UFnOPT1)<br />

Noise filter,<br />

INTLTn timing settings<br />

(UFnOPT2)<br />

Various mode settings,<br />

enabling transmission/reception<br />

(UFnCTL0)<br />

END<br />

INTLSn processing<br />

Read UFnSTR register<br />

Clear status flag<br />

(UFnSTC register)<br />

Processing corresponding<br />

to status<br />

Cautions 1. Set the following values when performing LIN communication automatic baud rate mode.<br />

The transmit and receive data levels are normal input (UFnTDL = UFnRDL = 0).<br />

Expansion bits are disabled (UFnEBE = 0).<br />

Automatic baud rate mode (UFnMD1, UFnMD0 = 11B) as the mode.<br />

Consistency check selection (UFnDCS = 1).<br />

Transmission interrupt is transmission start (UFnITS = 0).<br />

Communication direction control is LSB first (UFnDIR = 1).<br />

The parity selection bit is received without parity (UFnPS1, UFnPS0 = 00B).<br />

The data character length is 8 bits (UFnCL = 1).<br />

Transmit data register is default value (UFnTX = 0000H).<br />

2. Set the UFnPRS2 to UFnPRS0 bits so that the clock that has been divided by using a prescaler is<br />

8 to 12 MHz.<br />

R01UH0317EJ0004 Rev. 0.04 752<br />

Feb. 22, 2013<br />

END<br />

Remarks 1. See (2) of 13.11 Cautions on Use for details of starting LIN-UART.<br />

2. n = 0, 1

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

Saved successfully!

Ooh no, something went wrong!