Click here to load reader

LIN SPEC V1.2

  • View
    54

  • Download
    7

Embed Size (px)

Text of LIN SPEC V1.2

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

3.4

-8-

Tel: (020)38730976 IDENTIFIER FIELD ID-FIELD ID PARITY bit 3.5

38730977

Fax: 38730925

http://www.zlgmcu.com

6 IDENTIFIER ID4 ID5

ID 2 3.2

4 5

NDATA 3.2 4 8

64 4 16

ID5 0 0 1 1 ID4 0 1 0 1 ID3 ID4 8 ID5 NDATA 2 2 4 8 []

ID ID0

3.2 0 8

P0 = ID0 ID1 ID2 ID4 P1 = ID1 ID3 ID4 ID5

3.2

0x3C 0x3D 0x3E 0x3F 0x3C 0x7D 0xFE 0xBF

IDENTIFIER FIELD

ID0 START BIT

ID1

ID2

ID3

ID4

ID5

P0

P1 STOP BIT

IDENTIFIER BIT

ID PARITY BIT LENGTH CONTROL

3.5 3.1.3 RESPONSE field

DATA FIELD

A.5 LSB 3.6

8

DATA FIELD D0 LSB START BIT D1 D2 D3 D4 D5 D6 D7 MSB STOP BIT

DATA BITs 3.6

-9-

Tel: (020)38730976 CHECKSUM FIELD 3.7 LSB

38730977

Fax: 38730925

http://www.zlgmcu.com

ADDC

CHECKSUM FIELD C0 START BIT C1 C2 C3 C4 C5 C6 C7 STOP BIT

CHECKSUM BITs

3.7

0xFF

3.2 COMMAND FRAME IDENTIFIER

3.8 0x3C 0x3D

ID 2,3,4,5=1 ID 0,2,3,4,5,6=1 MasterReq ID = 0x3C ID0,1,6,7=0 ID =0x7D ID1,7=0

8

A2 0x3C 0x3D 0x00 0x7F LIN D7 D7 0 1 SlaveResp

COMMAND FRAME HEADER 0x3C 0x7D SYNCH BREAK SYNCH IDENT FIELD FIELD

COMMAND/DATA FIELDS

NEXT MESSAGE FRAME

8 BYTE FIELDs

1 CHECK FIELD

SYNCH BREAK

SYNCH FIELD

8 byte fields with user-defined content 3.8 3.4 0x00 LIN

- 10 -

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

LIN LIN 0x3E 0x3F = ID =0xFE ID0=0 ID =0xBF 0xBE ID6=0 ID 1,2,3,4,5,6,7=1 ID 0,1,2,3,4,5,7=11

LIN

LIN LIN LIN 2

A2

0x3E

= 0xFE

0x3F 3.9

LIN

LIN ID

SYNCH BREAK

LIN

EXTENDED FRAME HEADER

UNKNOWN NUMBER AND CONTENT OF BYTE FIELDS

NEXT MESSAGE FRAME

0xFE 0xBF SYNCH BREAK SYNCH IDENT FIELD FIELD BYTE FIELD(s) 3.9 3.3 TFRAME_MAX

CHECK FIELD(s)

SYNCH BREAK

SYNCH FIELD

LIN

TFRAME_MIN 0 3.3

3.3 NDATA a. 3.4 1 TFRAME_MIN THEADER_MIN THEADER_MAX TFRAME_MAX TTIME_OUT [Tbit] 10*NDATA+44 34 THEADER_MIN+1 TFRAME_MIN+1 25,000a

*1.4 *1.4

a

THEADER_MIN TFRAME_MAX

TTIME_OUT

1 2

CAN

[3]

- 11 -

Tel: (020)38730976 0x80 15

38730977

Fax: 38730925

http://www.zlgmcu.com

15 0xC0 0x80

0x80

0x00

TWUSIG 8 TWUDEL 4

WAKE-UP SIGNAL FRAME by slave task BUS SLEEP

SYNCH BREAK by master task

TWUSIG 3.10

wake-up delimiter

TIME-OUT AFTER WAKEUP SIGNAL 3 TIME-OUT AFTER THREE BREAKS

3 3.4 A.1 3 3 3.4 3 a. b. TWUSIG TWUDEL TTOBRK TT3BRK 15,000 4b [Tbit] [Tbit] 8a 64 128 [Tbit]

9

Tbit SCI

4

5

- 12 -

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

66.1

A.4

5

SYNCH

0xFF

3.1

LIN

ID 8

TFRAME_MAX

3.3

6.2 TTIMEOUT 3.3 8

LIN 7

7

LIN A.4

A.5

- 13 -

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

TFRAME_MAX 3.3 8

8

15

8.1

FTOL_RES_MASTER FTOL_RES_SLAVE FTOL_UNSYNCH FTOL_SYNCH

F/FMaster < < < < 0.5% 1.5% 15% 2%

99.1

9.2

0x55

2 4 6 8

Tbit

SYNCH FIELD 8 Tbit 2 Tbit 2 Tbit 2 Tbit 2 Tbit

START BIT

0

1

2

3 9.1

4

5

6

7

STOP BIT

7 LSB 3

8

8

- 14 -

Tel: (020)38730976

38730977

Fax: 38730925

http://www.zlgmcu.com

1010.1

ISO 9141 LIN ECU 10.1 VBAT

LIN ECU ECU LIN

VBAT

internal supply VSUP

VBAT*

Resistor LIN

SCI GND 10.1 10.2

t

ECU* A.6

GND

driver node VBAT 80% 20% slope time recessive VBAT 60% 40% dominant slope time 10.2

receiver node recessive

dominant

LIN 10.1 10.2 ECU ESD 10.1 VBATa

VSUP

LIN 8 -0.3 40 -1.1*VBAT/R 18 40 200 V V mA c

VBAT_NON_OPb IBUS @VBUS=1.2V

IBUS

R = 10.2 [email protected]=VBAT 8V