MPC555
/
MPC556
CAN 2.0B CONTROLLER MODULE
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
16-10
• Rx error counter reset to a value between 119 and 127 inclusive, when the Tou-
CAN transitions from error passive to error active
• Following reset, both counters reset to zero
• Detect values for error passive, bus off and error active transitions
• Cascade usage of Tx error counter with an additional internal counter to detect
the 128 occurrences of 11 consecutive recessive bits necessary to transition from
bus off into error active.
Both counters are read-only (except in test/freeze/halt modes).
The TouCAN responds to any bus state as described in the CAN protocol, transmitting
an error active or error passive flag, delaying its transmission start time (error passive)
and avoiding any influence on the bus when in the bus off state. The following are the
basic rules for TouCAN bus state transitions:
• If the value of the Tx error counter or Rx error counter increments to a value great-
er than or equal to 128, the fault confinement state (FCS[1:0]) field in the error sta-
tus register is updated to reflect an error passive state.
• If the TouCAN is in an error passive state, and either the Tx error counter or Rx
error counter decrements to a value less than or equal to 127 while the other error
counter already satisfies this condition, the FCS[1:0] field in the error status reg-
ister is updated to reflect an error active state.
• If the value of the Tx error counter increases to a value greater than 255, the
FCS[1:0] field in the error status register is updated to reflect a bus off state, and
an interrupt may be issued. The value of the Tx error counter is reset to zero.
• If the TouCAN is in the bus off state, the Tx error counter and an additional inter-
nal counter are cascaded to count 128 occurrences of 11 consecutive recessive
bits on the bus. To do this, the Tx error counter is first reset to zero, and then the
internal counter begins counting consecutive recessive bits. Each time the inter-
nal counter counts 11 consecutive recessive bits, the Tx error counter is incre-
mented by one and the internal counter is reset to zero. When the Tx error counter
reaches the value of 128, the FCS[1:0] field in the error status register is updated
to be error active, and both error counters are reset to zero. Any time a dominant
bit is detected following a stream of less than 11 consecutive recessive bits, the
internal counter resets itself to zero but does not affect the Tx error counter value.
• If only one node is operating in a system, the Tx error counter is incremented with
each message it attempts to transmit, due to the resulting acknowledgment er-
rors. However, acknowledgment errors never cause the TouCAN to change from
the error passive state to the bus off state.
• If the Rx error counter increments to a value greater than 127, it stops increment-
ing, even if more errors are detected while being a receiver. After the next suc-
cessful message reception, the counter is reset to a value between 119 and 127,
to enable a return to the error active state.
16.3.5 Time Stamp
The value of the free-running 16-bit timer is sampled at the beginning of the identifier
field on the CAN bus. For a message being received, the time stamp is stored in the
time stamp entry of the receive message buffer at the time the message is written into
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..