AP29000
Connecting C166 and C500 Microcontroller to CAN
The Controller Area Network (CAN)
Application Note
17
V 1.0, 2004-02
If an “error-active” node detects a bus error then the node interrupts transmission of
the current message by generating an “active error flag”. The “active error flag” is
composed of six consecutive dominant bits. This bit sequence actively violates the bit
stuffing rule. All other stations recognize the resulting bit stuffing error and in turn
generate Error Frames themselves. The Error Flag field therefore consists of between
six and twelve consecutive dominant bits (generated by one or more nodes). The Error
Delimiter field completes the Error Frame. After completion of the Error Frame bus
activity returns to normal and the interrupted node attempts to resend the aborted
message.
if an “error passive” node detects a bus error then the node transmits an “error passive
flag” followed, again, by the Error Delimiter field. The “error passive flag” consists of six
consequtive recessive bits, and therefore the Error Frame (for an “error passive” node)
consists of 14 recessive bits (i.e. no dominant bits). From this it follows that, unless the
bus error is detected by the node that is actually transmitting (i.e. is the bus master),
the transmission of an Error Frame by an “error passive” node will not affect any other
node on the network. If the bus master node generates an “error passive flag” then this
may cause other nodes to generate error frames due to the resulting bit stuffing
violation. After transmission of an Error Frame an “error passive” node must wait for 6
consecutive recessive bits on the bus before attempting to rejoin bus communications.
3.3.3.2
Overload Frame
An Overload Frame has the same format as an “active” Error Frame (i.e. that
generated by an “error active” node). An Overload Frame, however can only be
generated during Interframe Space. This is the way then an Overload Frame can be
differentiated from an Error Frame (an Error Frame is sent during the transmission of a
message). The Overload Frame consists of 2 fields, an Overload Flag followed by an
Overload Delimiter. The Overload Flag consists of six dominant bits followed by
Overload Flags generated by other nodes (as for “active error flag”, again giving a
maximum of twelve dominant bits). The Overload Delimiter consists of eight recessive
bits. An
Overload Frame
can be generated by a node as a result of 2 conditions, a) if
the node detects a dominant bit during Interframe Space (illegal see section 2.5), or b)
if due to internal conditions, the node is not yet able to start reception of the next
message. A node may generate a maximum of 2 sequential Overload Frames to delay
the start of the next message.