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.10 Dedicated Baud Rate Generator<br />

The dedicated baud rate generator consists of a 3-bit prescaler block and a 12-bit programmable counter, and<br />

generates a serial clock during transmission and reception with LIN-UARTn. Regarding the serial clock, a dedicated baud<br />

rate generator output can be selected for each channel.<br />

There is a 12-bit counter for transmission and another one for reception.<br />

(1) Configuration of baud rate generator<br />

fCLK<br />

Figure 13-72. Configuration of Baud Rate Generator<br />

UFnTXEn or UFnRXE bit<br />

Prescaler<br />

UFnCTL1:<br />

UFnPRS2 to UFnPRS0<br />

Prescaler<br />

clock Note<br />

(fUCLK)<br />

UFnTXEn (or UFnRXE) bit<br />

12-bit counter<br />

Match detector 1/2 Baud rate<br />

UFnCTL1:<br />

UFnBRS11 to UFnBRS00<br />

Note Clock that divides fCLK by 1, 2, 4, 8, 16, 32, 64, or 128<br />

In automatic baud rate mode, the counter starts counting up when the LRxDn pin is low level and the UFnRXE bit is 1.<br />

(a) Prescaler clock (fUCLK)<br />

When the LINnEN bit of the PER register is “1”, a clock divided by a frequency division value specified by using<br />

the UFnPRS2 to UFnPRS0 bits of the UFnCTL1 register is supplied to the 12-bit counter.<br />

This clock is called the prescaler clock and its frequency is called fUCLK.<br />

(b) Serial clock generation<br />

A serial clock can be generated by setting the UFnCTL1 register.<br />

The frequency division value for the 12-bit counter can be set by using the UFnBRS11 to UFnBRS00 bits of the<br />

UFnCTL1 register.<br />

Remark n = 0, 1<br />

R01UH0317EJ0004 Rev. 0.04 772<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!