AP29000
Connecting C166 and C500 Microcontroller to CAN
The Controller Area Network (CAN)
Application Note
12
V 1.0, 2004-02
The SOF is followed by the Arbitration Field consisting of 12 bits, the 11-bit Identifier
(reflecting the contents and priority of the message) and the RTR bit (Remote
Transmission Request bit). The RTR bit is used to distinguish a Data Frame (RTR =
dominant) from a Remote Frame (see section 2.3.2).
The next field is the Control Field, consisting of 6 bits. The first bit of this field is called
the IDE bit (Identifier Extension) and is at dominant state to specify that the frame is a
Standard Frame. The following bit is reserved and defined as a dominant bit. The
remaining 4 bits of the Control Field are the Data Length Code (DLC) and specify the
number of bytes of data contained in the message (0 - 8 bytes).
The data being sent follows in the Data Field which is of the length defined by the DLC
above (0, 8, 16, ...., 56 or 64 bits).
The Cyclic Redundancy Field (CRC) follows and is used to detect possible
transmission errors. The CRC Field consists of a 15 bit CRC sequence, completed by
the recessive CRC Delimiter bit.
The final field is the Acknowledge Field. During the ACK Slot bit the transmitting node
sends out a recessive bit. Any node that has received an error free frame
acknowledges the correct reception of the frame by sending back a dominant bit
(regardless of whether the node is configured to accept that specific message or not).
From this it can be seen that CAN belongs to the "in-bit-response" group of protocols.
The recessive Acknowledge Delimiter completes the Acknowledge Slot and may not
be overwritten by a dominant bit.
Seven recessive bits (End of Frame) end the Data Frame. Between any two frames
the bus must remain in the recessive state for at least a further 3 bit times (called
Intermission). If, following the frame, no nodes wish to transmit then the bus stays in
the recessive state (Bus Idle).