RL78/F13, F14 CHAPTER 17 LIN/UART MODULE (RLIN3)
R01UH0368EJ0210 Rev.2.10 1142
Dec 10, 2015
(6) LIN Wake-up Baud Rate Select Register (LWBRn)
Address: F06C1H
7 6 5 4 3 2 1 0
NSPB[3:0] LPRS[2:0] —
Value after reset:
0 0 0 0 0 0 0 0
Bit Symbol Bit Name Function R/W
0 — Reserved This bit is always read as 0. The write value should
always be 0.
R/W
3 to 1 LPRS
[2:0]
Prescaler Clock Select
b3 b1
0 0 0: 1/1
0 0 1: 1/2
0 1 0: 1/4
0 1 1: 1/8
1 0 0: 1/16
1 0 1: 1/32
1 1 0: 1/64
1 1 1: 1/128
R/W
7 to 4 NSPB
[3:0]
Bit Sampling Count Select
b7 b4
0 0 0 0: 16 sampling
0 0 1 1: 4 sampling
0 1 1 1: 8 sampling
1 1 1 1: 16 sampling
Settings other than the above are prohibited.
R/W
Set the LWBRn register when the OMM0 bit in the LMSTn register is 0 (LIN reset mode).
LPRS[2:0] bits (prescaler clock select bits)
The LPRS bits select the frequency division ratio for the prescaler.
The LIN communication clock source frequency is divided based on this prescaler.
In LIN slave mode with auto baud rate (LIN/UART mode select bits in LIN/UART mode register = 10b), set these bits
according to the target baud rate so that the frequency of the prescaler clock is the corresponding value from the list.
[Target baud rate] [Frequency of prescaler clock]
1 kbps to 20 kbps: 4 MHz
Note
1 kbps to less than 2.4 kbps: 4 MHz
2.4 kbps to 20 kbps: 8 MHz to 12 MHz
Note Set the NSPB bits to 0011b (4 sampling).
NSPB[3:0] bits (bit sampling count select bits)
The NSPB bits select the number of sampling in one Tbit (reciprocal of the baud rate).
In LIN slave mode with auto baud rate (LIN/UART mode select bits in LIN/UART mode register = 10b), set the NSPB bits to
0011b (4 sampling) or 0111b (8 sampling).
In LIN slave mode with fixed baud rate (LIN/UART mode select bits in LIN/UART mode register = 11b), set the NSPB bits to
0000b or 1111b (16 sampling).