AN2103 Freescale Semiconductor / Motorola, AN2103 Datasheet - Page 30

no-image

AN2103

Manufacturer Part Number
AN2103
Description
Local Interconnect Network (LIN) Demonstration
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
30
Application Note
4.2.2.3 Transmitting
CAN Messages
be transmitted and copy to
Call TxCANBuffer function
Calculate number of data
Calculate message ID to
transmitted to StatusMsg
bytes to be transmitted
StatusMsg and CANTx
Copy data bytes to be
StatusMsg DLR field
and pass address of
StatusMsg ID field
and store value in
buffer number
dsr field
Figure 15 CAN Transmit flow diagrams
Freescale Semiconductor, Inc.
The CAN transmitter function is called from the initialisation and
default mode functions. The identifier and data to be transmitted are
written to TxBuffer0 and transmitted when the bus is idle. The
function that transmits the message, TxCANBuffer(), receives a
pointer to a structure that contains the id and data to be transmitted
and the TxBuffer number as arguments.
Start
End
For More Information On This Product,
Go to: www.freescale.com
Load CANTx buffer with
Load CANTx buffer with
Load CANTx buffer with
(clear TXE0 flag)
data length byte
Request CAN
Transmission
buffer empty
message ID
data bytes
CAN TX0
Start
End
y
N
MOTOROLA
AN2103

Related parts for AN2103