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

(4) LIN-UARTn option register 0 (UFnOPT0)<br />

The UFnOPT0 register is an 8-bit register that controls serial communication operation of LIN-UARTn.<br />

This register can be read or written in 8-bit or 1-bit units.<br />

Reset sets this register to 14H.<br />

Figure 13-4. Format of LIN-UARTn Option Register 0 (UFnOPT0) (1/3)<br />

Address: F0241H (UF0OPT0), F0261H (UF1OPT0) After reset: 14H R/W<br />

4 3 2 1 0<br />

UFnOPT0<br />

(n = 0, 1)<br />

UFnBRF UFnBRT UFnBTT UFnBLS2 UFnBLS1 UFnBLS0 UFnTDL UFnRDL<br />

UFnBRF BF reception flag<br />

0 When the UFnCTL0.UFnRXE = 0 is set. Also upon normal end of BF reception.<br />

1 While waiting for successful BF reception (when the UFnBRT bit is set)<br />

BF (Break Field) reception is judged during LIN communication.<br />

The UFnBRF bit retains “1” when a BF reception error occurs, and is cleared to “0” when BF<br />

reception is started again and ends normally. It cannot be cleared by instruction.<br />

The UFnBRF bit is read-only.<br />

Caution When the UFnBRF bit is 1, whether BF reception has ended normally can be<br />

judged by checking whether the low-level period is at least 11 bits, when a high<br />

level, including noise, is input to the receive input data even for a moment. If the<br />

low-level period is at least 11 bits, BF reception is judged to be performed<br />

successfully.<br />

When in BF reception enable mode during communication (UFnMD1, UFnMD0 =<br />

10B), whether BF reception has ended normally when a status interrupt has been<br />

detected after the BF reception trigger bit was set can be judged by checking that<br />

the UFnBRF flag is “0” or the successful BF reception flag (UFnBSF) is “1” after a<br />

reception complete interrupt or a status interrupt has been detected.<br />

In either case, operation is performed as a normal UART reception from the next<br />

reception after BF reception has been performed successfully.<br />

UFnBRT BF reception trigger<br />

0 <br />

1 BF reception trigger<br />

This is the BF reception trigger bit during LIN communication, and when read, “0” is always read.<br />

For BF reception, set (1) the UFnBRT bit to enable BF reception.<br />

Set the UFnBRT bit after having set UFnCTL0.UFnRXE to “1”.<br />

The status flag will not be updated, an interrupt request signal will not be generated, and data will<br />

not be stored.<br />

This bit can only be set again when the UFnBRF bit is 0.<br />

When BF reception is enabled during communication, BF reception is detected as the low-level<br />

period between when the UFnBRT bit is set and when the rising edge of the reception input data<br />

is detected. Therefore, a BF will be detected even if the UFnBRT bit is set during BF reception.<br />

Cautions 1. To release a BF reception enable state without receiving a BF, UFnRXE must be<br />

cleared to 0.<br />

2. Transmitting data while UFnDCS and UFnBRF are “1” is prohibited. BF<br />

transmission, however, can be performed.<br />

3. Setting the UFnBRT bit in automatic baud rate mode (UFnMD1, UFnMD0 = 11B)<br />

is prohibited.<br />

R01UH0317EJ0004 Rev. 0.04 688<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!