CAN 2.0B Controller Module
MPC561/MPC563 Reference Manual, Rev. 1.2
Freescale Semiconductor
16-11
•
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 greater than or equal
to 128, the fault confinement state (FCS[1:0]) field in the error status 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 register 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 internal 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 internal counter counts 11 consecutive recessive bits, the Tx error
counter is incremented 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 errors. 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 incrementing, even if more
errors are detected while being a receiver. After the next successful message reception, the counter
is reset to a value between 119 and 127, to enable a return to the error active state.
The three basic states and the transition behavior of the CAN controller are shown in
.
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...