FlexCAN
30-9
Freescale Semiconductor
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
14
ERRMSK
Error interrupt mask.
0 Error interrupt disabled
1 Error interrupt enabled
13
CLK_SRC
Clock source. Selects the clock source for the CAN interface to be fed to the prescalar. This bit should only be
changed while the module is disabled.
0 Clock source is EXTAL
1 Clock source is the internal bus clock, f
sys
12
LPB
Loop back. Configures FlexCAN to operate in loop-back mode. In this mode, FlexCAN performs an internal loop
back that can be used for self test operation. The bit stream output of the transmitter is fed back internally to the
receiver input. The Rx CAN input pin is ignored and the Tx CAN output goes to the recessive state (logic 1).
FlexCAN behaves as it normally does when transmitting, and treats its own transmitted message as a message
received from a remote node. In this mode, FlexCAN ignores the bit sent during the ACK slot in the CAN frame
acknowledge field, generating an internal acknowledge bit to ensure proper reception of its own message. Transmit
and receive interrupts are generated.
0 Loop back disabled
1 Loop back enabled
11–8
Reserved, must be cleared.
7
SMP
Sampling mode. Determines whether the FlexCAN module samples each received bit one time or three times to
determine its value.
0 One sample, taken at the end of phase buffer segment 1, is used to determine the value of the received bit.
1 Three samples are used to determine the value of the received bit. The samples are taken at the normal sample
point and at the two preceding periods of the S-clock; a majority rule is used.
6
BOFFREC
Bus off recovery mode. Defines how FlexCAN recovers from bus off state. If this bit is cleared, automatic recovering
from bus off state occurs according to the CAN Specification 2.0B. If the bit is set, automatic recovering from bus
off is disabled and the module remains in bus off state until the bit is cleared by the user. If the bit is cleared before
128 sequences of 11 recessive bits are detected on the CAN bus, then bus off recovery happens as if the
BOFFREC bit had never been set. If the bit is cleared after 128 sequences of 11 recessive bits occurred, FlexCAN
re-synchronizes to the bus by waiting for 11 recessive bits before joining the bus. After clearing, the BOFFREC bit
can be set again during bus off, but it is only effective the next time the module enters bus off. If BOFFREC was
cleared when the module entered bus off, setting it during bus off is not effective for the current bus off recovery.
0 Automatic recovering from bus off state enabled, according to CAN Spec 2.0B
1 Automatic recovering from bus off state disabled
5
TSYN
Timer synchronize mode. Enables the mechanism that resets the free-running timer each time a message is
received in Message Buffer 0. This feature provides the means to synchronize multiple FlexCAN stations with a
special SYNC message (global network time).
0 Timer synchronization disabled.
1 Timer synchronization enabled.
Note: There can be a bit clock skew of four to five counts between different FlexCAN modules that are using this
feature on the same network.
4
LBUF
Lowest buffer transmitted first. Defines the ordering mechanism for message buffer transmission.
0 Message buffer with lowest ID is transmitted first
1 Lowest numbered buffer is transmitted first
Table 30-3. CANCTRL Field Descriptions (continued)
Field
Description
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60