Chapter 22 FlexCAN
MPC5602P Microcontroller Reference Manual, Rev. 4
550
Freescale Semiconductor
20
RWRN_MSK
Rx Warning Interrupt Mask
This bit provides a mask for the Rx Warning Interrupt associated with the RWRN_INT flag in the
Error and Status Register. This bit has no effect if the WRN_EN bit in MCR is negated and it is read
as zero when WRN_EN is negated.
0 Rx Warning Interrupt disabled.
1 Rx Warning Interrupt enabled.
21
LPB
Loop Back
This bit 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. Both transmit and
receive interrupts are generated.
0 Loop Back disabled.
1 Loop Back enabled.
24
SMP
Sampling Mode
This bit defines the sampling mode of CAN bits at the Rx input.
0 Just one sample determines the bit value.
1 Three samples are used to determine the value of the received bit: the regular one (sample point)
and two preceding samples, a majority rule is used.
25
BOFF_REC
Bus Off Recovery Mode
This bit defines how FlexCAN recovers from Bus Off state. If this bit is negated, automatic
recovering from Bus Off state occurs according to the CAN Specification 2.0B. If the bit is asserted,
automatic recovering from Bus Off is disabled and the module remains in Bus Off state until the bit
is negated by the user. If the negation occurs before 128 sequences of 11 recessive bits are
detected on the CAN bus, then Bus Off recovery happens as if the BOFF_REC bit had never been
asserted. If the negation occurs after 128 sequences of 11 recessive bits occurred, then FlexCAN
will resynchronize to the bus by waiting for 11 recessive bits before joining the bus. After negation,
the BOFF_REC bit can be re-asserted again during Bus Off, but it will only be effective the next time
the module enters Bus Off. If BOFF_REC was negated when the module entered Bus Off, asserting
it during Bus Off will not be effective for the current Bus Off recovery.
0 Automatic recovering from Bus Off state enabled, according to CAN Spec 2.0 part B.
1 Automatic recovering from Bus Off state disabled.
26
TSYN
Timer Sync Mode
This bit enables a mechanism that resets the free-running timer each time a message is received
in Message Buffer 0. This feature provides means to synchronize multiple FlexCAN stations with a
special “SYNC” message (that is, global network time). If the FEN bit in MCR is set (FIFO enabled),
MB8 is used for timer synchronization instead of MB0.
0 Timer Sync feature disabled
1 Timer Sync feature enabled
27
LBUF
Lowest Buffer Transmitted First
This bit defines the ordering mechanism for Message Buffer transmission. When asserted, the
LPRIO_EN bit does not affect the priority arbitration.
0 Buffer with highest priority is transmitted first.
1 Lowest number buffer is transmitted first.
Table 22-13. CTRL field descriptions (continued)
Field
Description