Chapter 22 FlexCAN
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
545
Table 22-11. MCR field descriptions
Field
Description
0
MDIS
Module Disable
This bit controls whether FlexCAN is enabled or not. When disabled, FlexCAN shuts down the
clocks to the CAN Protocol Interface and Message Buffer Management submodules. This is the only
bit in MCR not affected by soft reset. See
Section 22.4.9.2, “Module disable mode
for more
information.
0 Enable the FlexCAN module.
1 Disable the FlexCAN module.
1
FRZ
Freeze Enable
The FRZ bit specifies the FlexCAN behavior when the HALT bit in the MCR is set or when Debug
Mode is requested at MCU level. When FRZ is asserted, FlexCAN is able to enter Freeze Mode.
Negation of this bit field causes FlexCAN to exit from Freeze Mode.
0 Not able to enter Freeze Mode.
1 Able to enter Freeze Mode.
2
FEN
FIFO Enable
This bit controls whether the FIFO feature is enabled or not. When FEN is set, MBs 0 to 7 cannot
be used for normal reception and transmission because the corresponding memory region
(0x80–0xFF) is used by the FIFO engine. See
Section 22.3.3, “Rx FIFO structure
and
for more information.
0 FIFO disabled.
1 FIFO enabled.
3
HALT
Halt FlexCAN
Assertion of this bit puts the FlexCAN module into Freeze Mode. The CPU should clear it after
initializing the Message Buffers and Control Register. No reception or transmission is performed by
FlexCAN before this bit is cleared. While in Freeze Mode, the CPU has write access to the Error
Counter Register, that is otherwise read-only. Freeze Mode can not be entered while FlexCAN is in
any of the low power modes. See
Section 22.4.9.1, “Freeze mode
for more information.
0 No Freeze Mode request.
1 Enters Freeze Mode if the FRZ bit is asserted.
4
NOT_RDY
FlexCAN Not Ready
This read-only bit indicates that FlexCAN is either in Disable Mode, Stop Mode or Freeze Mode. It
is negated once FlexCAN has exited these modes.
0 FlexCAN module is either in Normal Mode, Listen-Only Mode or Loop-Back Mode.
1 FlexCAN module is either in Disable Mode, Stop Mode or Freeze Mode.
5
WAK_MSK
Wake Up Interrupt Mask
This bit enables the Wake Up Interrupt generation.
0 Wake Up Interrupt is disabled.
1 Wake Up Interrupt is enabled.