lin spec v1.2

Download LIN SPEC V1.2

Post on 03-Apr-2015

52 views

Category:

Documents

7 download

Embed Size (px)

TRANSCRIPT

Tel: (020)38730976

38730977 Fax: 38730925

ttp://www.zlgmcu.com

LIN V1.2

LIN LIN

1

LIN LIN Local Interconnect Network

LIN LIN LIN LIN LIN LIN LIN API EMC 3 LIN LIN LIN OEM

-1-

Tel: (020)38730976

38730977 Fax: 38730925

ttp://www.zlgmcu.com

2

LIN

LIN LIN LIN API

-2-

Tel: (020)38730976

38730977 Fax: 38730925

ttp://www.zlgmcu.com

LIN 1 ........................................................................................................................ 21.1 1.2 ............................................................................................................................ 2 ................................................................................................................................ 2

2 3

................................................................................................................. 3 ................................................................................................................. 73.1 ................................................................................................................................ 7 3.1.1 3.1.2 3.2 3.3 3.4 BYTE fields ............................................................................................ 7 ...................................................................................... 7 HEADER fields

................................................................................................................... 10 ...........................................................................................11 ...........................................................................................................................11

4 5 6

............................................................................................................... 12 ............................................................................................................... 12 .................................................................................................... 136.1 6.2 .......................................................................................................................... 13 .......................................................................................................................... 13

7 8 9

............................................................................................................... 13 ........................................................................................................... 14 ......................................................................................... 149.1 9.2 10.1 10.2 10.3 10.4 ....................................................................................................................... 14 .......................................................................................................................... 14 ........................................................................................................................ 15 ........................................................................................................................ 15 ........................................................................................................................ 17 ESD/EMI ..................................................................................................... 17

10 ........................................................................................... 15

11 ............................................................................................................. 18 A ........................................................................................................................ 19A.1 ............................................................................................................... 19 A.1.1 A.1.2 A.2 A.3 A.4 A.5 ................................................................................................. 19 ........................................................................................................ 19

ID .................................................................................................................. 19 ............................................................................................................... 21 ............................................................................................................... 21 ............................................................................................................... 22 A.5.1 A.5.2 ........................................................................................................ 22 ........................................................................................................ 22

A.6

................................................................................................. 23

-1-

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

1

LIN Local Interconnect Network LIN

[1] A

UART/SCI 20kbit/s

ISO/OSI LIN 2.1 LIN CAN ISO 9141 [2] 1.1 1.0 1.1 1.2 LIN 3.3 3.4 6.1 6.2 8.1 10.3 10.4 10.4 EMI

1999 6 5 2000 4 17 2000 11 17 2.1 2 3.1 3.1.3 3.2

CSLAVE CMASTER ESD EMI ESD

1.2

J. Bauer, V. Riebeling, Audi AG, Ingolstadt. J. Frschl, M. Kaindl, Dr. J. Krammer, BMW AG, Munich. C. Bracklo, W. Welja, DaimlerChrysler AG, Stuttgart. R. Erckert, Dr. J. Krcken, Dr. A. Krger, Dr. W. Specks, H.-C. Wense, Motorola GmbH, Munich.

-2-

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

I. Horvth, A. Rajnk, Volcano Communications Technologies, Gothenburg. J. Ende, T. Zawade, Volkswagen AG L. Casparsson, Volvo Car Corporation, Gothenburg.

2

2 4 8

LIN

OSI LIN 2.1 LLC MAC MAC LIN LLC LLC

Data Link LayerLLCAcceptance Filtering Recovery Management Timebase Synchronization Message Validation

Supervisor

System Synchronization

MACData Encapsulation /Decapsulation Error Detection Error Signalling Serialization/Deserialization Fault Confinement

Bus Failure Management

Physical LayerBit Timing Bit Synchronization Line Driver/Receiver LLC = Logical Link Layer MAC = Medium Access Control 2.1 OSI

-3-

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

LIN 3 3 ID 2 4 8 2.2

master control unit master task slave task bus synch break 13 bit (min) inter-frame space/break Master Task

slave control unit

slave control unit

slave task

slave task

identifier field 1 byte next synch break

synch field 1 byte

...

t response space data fields 2, 4, or 8 bytes check field 1 byte t 2.2 LIN

Slave Task

LIN LIN 64 20kbit/s LIN 2.1 2400 bit/s 9600 bit/s 19200 bit/s EMI 1kbit/s 4

-4-

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

256

MSB LSB

6 LIN 7 LIN 30k || 1k LIN 16 3 1k 30k 40m

VBAT EMI 10 ECU

ECU

VBAT

LIN bus line SCI GND 2.3

-5-

Tel: (020)38730976 2.2

38730977

Fax: 38730925

http://www.zlgmcu.com

2.2 0 1 10.2

LIN 4 8 8 LIN LIN LIN 3.4 LIN LIN LIN LIN synchronization break

3.2

MAC

SCI SYNCH BREAK 5 SYNCH FIRLD

3.1 9

3.1.2 8.1

-6-

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

33.1

HEADER

RESPONSE

3.1 TFRAME_MAX SYNCH BREAK FIELD SYNCH FIELD RESPONSE 3 9 2 4 8 DATA FIELD CHECKSUM FIELD 3.3 0

MESSAGE FRAME HEADER RESPONSE inter-frame space or BREAK

SYNCH BREAK

SYNCH FIELD

IDENT FIELD

DATA FIELD

DATA FIELD

DATA FIELD

DATA FIELD interbyte space

CHECKSUM FIELD

in-frame response space 3.1 3.1.1 BYTE fields LIN

3.2 8

SCI UART STOP BIT

8N1

10 BIT TIME

START BIT

BYTE FIELD

START BIT

8 DATA BITS 3.2 LIN

STOP BIT

3.1.2

HEADER fields SYNCH BREAK

SYNCHRONISATION BREAK SYNCH BREAK FIELD

-7-

Tel: (020)38730976 3.3 TSYNBRK

38730977

Fax: 38730925

http://www.zlgmcu.com

TSYNBRK SYNCH FIELD THEADER_MAX

TSYNDEL

THEADER_MAX 3.3

SYNCH B REAK FIEL D

SYNCH F IELD

_ > T SYNBRK

TSYNDE L synchronization delimiter

3.3 8.1

SYNCH BREAK FIELD LIN 3.1 0x00 9 SYNCH BREAK FIELD TSBRKTS

TSBRKTS SYNCH BREAK FIELD 3.1 TSYNBRK

8.1 SYNCH BREAK FIELD TSYNBRK TSYNDEL TSBRKTS [Tbit] 13 1a a

a. b. c.

[Tbit]

[Tbit] -

11 9

b

c

FTOL_UNSYNCH 8.1 RC FTOL_SYNCH b

8.1 SYNCH FIELD SYNCH FIELD SYNCH FIELD 0x55 8 5 SYNCH FIELD

3.4

9

START 0 BIT

1

2

3

4

5

6

7

STOP BIT