AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 20

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
20
Application Note
4.2.1.1 Default mode
NOTE:
Freescale Semiconductor, Inc.
Each mode and its software are described below:
In default mode the software executes in a loop that sequentially
transmits 2 messages to each slave node. See
The first message is a NodeX_Read message that requests a status
response from the slave to indicate that it is present. If the master
does not receive the slave response within a 10mS timeout it is
assumed that the node is not present and a NO_NODE code (0x00)
is transmitted on the CAN bus. The second message transmitted
(assuming a node is present) is a NodeX_Write message that
transmits a command byte and a data byte to a specific slave. The
slave decodes the command and outputs the data to its LED port.
The status response message is checked to see if it has changed
since the last interrogation. If it has changed it is translated to a CAN
message and transmitted onto the CAN bus. The status information
is updated before the function is exited.
The CAN transmission is not performed if the demo is in standalone
mode.
The scheduler software exits this function then waits in the main loop
before transmitting to the next node in the sequence. The node
number to be transmitted is controlled in the TIMBOVF_ISR. See
main loop for further details.
For More Information On This Product,
Go to: www.freescale.com
Table 7
for sequence.
MOTOROLA
AN2103

Related parts for AN2103