EasyManuals Logo
Home>Renesas>Computer Hardware>RL78/D1A

Renesas RL78/D1A User Manual

Renesas RL78/D1A
1879 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1279 background imageLoading...
Page #1279 background image
RL78/F13, F14 CHAPTER 17 LIN/UART MODULE (RLIN3)
R01UH0368EJ0210 Rev.2.10 1247
Dec 10, 2015
17.6.3 Reception in LIN Master Self-Test Mode
To execute a self-test on LIN master reception, perform the procedure below:
 Set registers related to the baud rate, noise filter, and interrupt output.
LWBRn register = 0000xxxxb
Note 1
LBRPn0 register = xxxxxxxxb
Note 1
LBRPn1 register = xxxxxxxxb
Note 1
LMDn register = 00xxxx00b
Note 1, 3
 Set registers related to interrupt enabling and error enabling.
LIEn register = 0000xxxxb
Note 2, 3
LEDEn register = x000x0xxb
 Set registers related to the break field and spaces.
LBFCn register = 00xxxxxxb
LSCn register = 00xx0xxxb
Note 1
 Cancel the reset.
Write 11b to the OM1 and OM0 bits in the LCUCn register and verify that the OMM1 and OMM0 bits in the LMSTn
register become 11b.
 Set registers related to the reception frame.
LDFCn register = 00x0xxxxb
LIDBn register = xxxxxxxxb
LDBn1 to LDBn8 registers = xxxxxxxxb
LCBRn register = xxxxxxxxb
Since the checksum is not computed automatically, store a computed value. By intentionally setting an incorrect
computation result as the checksum, a test for checksum errors can be performed.
 Start header transmission followed with response reception
Set the FTS bit in the LTRCn register to 1 (frame transmission or wake-up transmission/reception started).
The LIN master self-test mode (reception) is executed. In this mode, interrupts are generated, and status and error status
are also updated appropriately. When the execution of LIN master self-test mode (reception) is aborted, set OM0 bit of
LCUCn register to 0 (LIN reset mode).
 When the reception is completed, the reversed value of the looped-back frame data is stored in the LIDBn, LDBnm
(m = 1 to 8), and LCBRn registers (the data is reversed before being stored because the set value should be
compared with the looped-back and received value). The FTS bit in the LTRCn register is cleared.
 If the reception fails to complete due to an error, the applicable error flag is set and the FTS bit in the LTRCn register
is cleared.
Notes 1. The following register settings do not affect the operations in LIN self-test mode. Therefore, setting them is
not mandatory.
LPRS bits in LWBRn register, LBRPn0 register, LBRPn1 register, LCKS bits in LMDn register, and IBS bits
in LSCn register
2. As necessary, set the related registers in CHAPTER 21 INTERRUPT FUNCTIONS.
3. When the successful header transmission interrupt and successful frame transmission interrupt are used in
the same interrupt, the SHIE bit in the LIEn register should not be set to 1 (successful header transmission
interrupt enabled) if the software processing of the successful header transmission interrupt does not
complete before the successful frame transmission interrupt is generated.
The period starting from when the successful header transmission flag is set until the successful
frame/wake-up transmission flag is set can be calculated as follows:
10 ï‚´ (number of data bytes + 1) [Tbit]
1 Tbit = LIN communication clock source ï‚´ 16.
Remark x: Any desired value
<R>

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/D1A and is the answer not in the manual?

Renesas RL78/D1A Specifications

General IconGeneral
BrandRenesas
ModelRL78/D1A
CategoryComputer Hardware
LanguageEnglish

Related product manuals