beautypg.com

7 lin communication function – FUJITSU MB91460 SERIES FR60 User Manual

Page 675

background image

659

Chapter 32 USART (LIN / FIFO)

7.USART Operation

7.7 LIN Communication Function

USART communication with LIN devices is available for both LIN master or LIN slave systems.

LIN-Master-Slave Communication Function

The settings shown in the figure below are required to operate USART in LIN communication mode (operation
mode 3).

Figure 7-13 Settings for USART

LIN device connection

As shown in the Figure below, a communication system of one LIN-Master device and a LIN-Slave device.
USART can operate both as LIN-Master or LIN-Slave.

Figure 7-14 Connection example of a small LIN-Bus system

7.8 Sample Flowcharts for USART in LIN Communication (Operation Mode 3)

This section contains sample flowcharts for USART in LIN communication.

bit

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

SCR04,SMR04 PEN

P

SBL

CL

AD

CRE RXE

TXE MD1 MD0 OTO EXT

REST UPCL SCKE SOE

Mode 3

x

x

+

+

x

0

1

1

x

0

0

0

1

SSR04,
TDR04/RDR04

PE ORE FRE RDRF TDRE BDS RIE

TIE

Set transmission data (during writing)

Retain reception data (during reading)

Mode 3

x

+

ESCR04,ECCR
04

LBIE LBD LBL1 LBL0 SOPE SIOP CCO SECS

-

LBR MS SCDE SSM

BIE

RBI

TBI

Mode 3

x

x

x

x

x

x

x

x

x

Bit is used

x Bit is not used

0 / 1 Set bit to 0 / 1

+ Bit is automatically set to the correct value

SOT

SIN

LIN-Master

Single-Wire-
Transceiver

LIN bus

SOT

SIN

Single-Wire-
Transceiver

LIN-Slave