AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 36

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
36
Application Note
4.3.2 Receiving LIN
messages
4.3.2.1 Rotating
Handler
Freescale Semiconductor, Inc.
Each slave node is configured to receive 2 LIN messages: a
broadcast message and a NodeX_Write message. The first byte of
the message is a command. The main function polls the message
status flags of the configured messages and transfers the received
data to the application receive buffer, MsgRcvd, when a valid
message is received. The command byte is decoded and the
appropriate handler function is executed. Each message handler is
described below:
This handler is entered when the demo is configured for default mode
(SLAVE_LEDS command transmitted by the master). The handler
decodes the LED data received, to see if it is to illuminate the RED
or GREEN LEDs, resets the appropriate time out counter and then
outputs the data to its LED output port.
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
AN2103

Related parts for AN2103