AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 33
AN2103
Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
1.AN2103.pdf
(68 pages)
- Current page: 33 of 68
- Download datasheet (2Mb)
AN2103
MOTOROLA
4.3 Slave Code
description
Port
SCI
SCIRx
SCITx
Drivers
LIN
Figure 17 Slave code data flow diagram
Freescale Semiconductor, Inc.
The slave code is entirely message driven. The software for each
node is practically identical, the only difference being the messages
the node is configured to recognize and the nodeID.
The individual slaves are configured to react to 3 preprogrammed
message identifiers: a NodeX_Write, a NodeX_Read and a common
broadcast message (NodeX_Write message that every slave is
programmed to receive). See
monitors every header that the master drives on the bus, but only
reacts to its configured identifiers. If a NodeX_Write message is
detected, it receives the message data, decodes the command, and
either writes to its LED output port or the external output LED or
enters SLEEP mode. If a NodeX_Read message is detected, the
slave automatically transmits its status information bytes (i.e. Its ID
and the HEX switch settings) on to the LIN bus.
Received messages are handled in exactly the same way as the
master code handles CAN messages. When a new LIN message is
received (NodeX_Write) the code calls a MsgHandlerTable (array of
pointers to functions) and jumps to the appropriate
MsgHandlerFunction.
For More Information On This Product,
GetMsg
Go to: www.freescale.com
PutMsg
Status
Msg
Golbal Data
Message
C omandData
Status
Buffer
Read
Periodic
Table 1
Read
Data
LED
Port Data
MsgIndex
Read
for details. Each slave
Message
Handler
PortD
Slave Code description
Software Description
Port Data
Port Data
Write
Write
PortB
PortE
33
Related parts for AN2103
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
An Overview og the Phase Locked Loop
Manufacturer:
Philips
Datasheet:
Part Number:
Description:
AN OVERVIEW OF THE LPC FLASH INTERFACE
Manufacturer:
STMicroelectronics
Part Number:
Description:
An Evaluation System Interfacing the MPX2000 Series Pressure Sensors to a Microprocessor
Manufacturer:
Motorola / Freescale Semiconductor
Part Number:
Description:
An FM-IF system for DECT and other high speed GFSK applications
Manufacturer:
Philips Semiconductors / NXP Semiconductors
Part Number:
Description:
An 8 x 8 Discrete Cosine Transform on the StarCore SC140/SC1400 Cores
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Overview of the HCS12 ATD Module
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An Introduction to the External Bus Interface on the HCS12X
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
An RF Data Link Using Tango3 and Romeo2 RF Modules
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 44-HSOP
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
IC POWER SUPPLY MULT-OUT 54-SOIC
Manufacturer:
Freescale Semiconductor
Datasheet:
Part Number:
Description:
Low-Cost 16-Bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller and 10/100 Mbps Ethernet MAC
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Low-Cost 16-bit DSP with DDR Controller
Manufacturer:
Freescale Semiconductor / Motorola
Datasheet:
Part Number:
Description:
Functional Pin Difference Between the MSC8101 and MPC8260 Communications Processor Modules
Manufacturer:
Freescale Semiconductor / Motorola