EasyManuals Logo

Atmel ATmega32M1 User Manual

Atmel ATmega32M1
367 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 #205 background imageLoading...
Page #205 background image
205
7647H–AVR–03/12
Atmel ATmega16/32/64/M1/C1
17.3 LIN Protocol
17.3.1 Master and Slave
A LIN cluster consists of one master task and several slave tasks. A master node
contains the
master task as well as a slave task. All other nodes contain a slave task only.
Figure 17-1. LIN cluster with one master node and “n” slave nodes
The master task decides when and which frame shall be transferred on the bus. The slave tasks
provide the data transported by each frame. Both the master task and the slave task are parts of
the Frame handler
17.3.2 Frames
A frame consists of a header (provided by the master task) and a response (provided by a slave
task).
The header consists of a BREAK and SYNC pattern followed by a PROTECTED IDENTIFIER.
The identifier uniquely defines the purpose of the frame. The slave task appointed for providing
the response associated with the identifier transmits it. The response consists of a DATA field
and a CHECKSUM field.
Figure 17-2. Master and slave tasks behavior in LIN frame
The slave tasks waiting for the data associated with the identifier receives the response and
uses the data transported after verifying the checksum.
Figure 17-3. Structure of a LIN frame
master task
slave task
master node
slave task
slave node
1
slave task
slave node
n
LIN bus
Master Task
Slave Task 1
Slave Task 2
HEADER
RESPONSE
HEADER
RESPONSE
BREAK
Field
SYNC
Field
CHECKSUM
Field
DATA-0
FieldField
IDENTIFIER
PROTECTED
DATA-n
Field
Break Delimiter Response Space Inter-Byte Space Inter-Frame Space
RESPONSEHEADER
FRAME SLOT
Each byte field is transmitted as a serial byte, LSB first.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel ATmega32M1 and is the answer not in the manual?

Atmel ATmega32M1 Specifications

General IconGeneral
BrandAtmel
ModelATmega32M1
CategoryMicrocontrollers
LanguageEnglish

Related product manuals