433
CHAPTER 20 LIN-UART
20.7.5 Bidirectional Communication Function (Normal Mode)
In operation mode 0 or 2, normal serial bidirectional communication is available. Select
operation mode 0 for asynchronous communication and operation mode 2 for
synchronous communication.
Bidirectional Communication Function
The settings shown in Figure 20.7-10 are required to operate LIN-UART in normal mode (operation mode
0 or 2).
Figure 20.7-10 Settings for LIN-UART Operation Mode 0 and 2
Inter-CPU connection
As shown in Figure 20.7-11 , interconnect two CPUs in LIN-UART mode 2
Figure 20.7-11 Connection Example of LIN-UART Mode 2 Bidirectional Communication
LBL1
bit 15bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
PEN P SBL CL AD CRE RXE TXE MD1MD0 OTO EXT RESTUPCLSCKE SOE
TDRE
PE ORE FRE RDRF BDS RIE TIE
Set conversion data (during writing)
Retain reception data (during reading)
LBIE LBD LBL1 LBL0 SOPE SIOP CCO SCES LBR SCDE
MS SSM RBI TBI
SCRn, SMRn
SSRn, TDRn/RDRn
ESCRn, ECCRn
Mode 0
Mode 2
Mode 0
Mode 2
Mode 0
Mode 2
: Used bit
: Unused bit
: Set 1
: Set 0
: Bit used if SSM = 1 (Synchronous start-/stop-bit mode)
: Bit automatically set to correct value n = 0, 1
SOT
SIN
SCK
SOT
SIN
SCK Output Input
CPU-1 (Master) CPU-2 (Slave)