11 special operating modes, 1 debug mode, 2 low-power stop mode for power saving – Motorola ColdFire MCF5281 User Manual

Page 485: 11special operating modes -15

Advertising
background image

FlexCAN

Freescale Semiconductor

25-15

5. Negate the HALT bit in the module configuration register

a) At this point, the FlexCAN will attempt to synchronize with the CAN bus.

NOTE

In both the transmit and receive processes, the first action in preparing a
message buffer should be to deactivate the buffer by setting its code field to
the proper value. This requirement is mandatory to assure data coherency.

25.4.11 Special Operating Modes

25.4.11.1 Debug Mode

Debug mode is entered by setting the HALT bit in the CANMCR, or by assertion of the BKPT line. In both
cases, the FRZ bit in CANMCR must also be set to allow HALT or BKPT to place the FlexCAN in debug
mode.

Once entry into debug mode is requested, the FlexCAN waits until an intermission or idle condition exists
on the CAN bus, or until the FlexCAN enters the error passive or bus off state. Once one of these
conditions exists, the FlexCAN waits for the completion of all internal activity. When this happens, the
following events occur:

The FlexCAN stops transmitting/receiving frames.

The prescaler is disabled, thus halting all CAN bus communication.

The FlexCAN ignores its Rx pins and drives its Tx pins as recessive.

The FlexCAN loses synchronization with the CAN bus and the NOTRDY and FRZACK bits in
CANMCR are set.

The CPU is allowed to read and write the error counter registers.

After engaging one of the mechanisms to place the FlexCAN in debug mode, the user must wait for the
FRZACK bit to be set before accessing any other registers in the FlexCAN, otherwise unpredictable
operation may occur.

To exit debug mode, the BKPT line must be negated or the HALT bit in CANMCR must be cleared.

Once debug mode is exited, the FlexCAN will resynchronize with the CAN bus by waiting for 11
consecutive recessive bits before beginning to participate in CAN bus communication.

25.4.11.2 Low-Power Stop Mode for Power Saving

Before entering low-power stop mode, the FlexCAN will wait for the CAN bus to be in an idle state, or
for the third bit of intermission to be recessive. The FlexCAN then waits for the completion of all internal
activity (except in the CAN bus interface) to be complete. Afterwards, the following events occur:

The FlexCAN shuts down its clocks, stopping most internal circuits, thus achieving maximum
power savings.

The bus interface unit continues to operate, allowing the CPU to access the module configuration
register.

The FlexCAN ignores its Rx pins and drives its Tx pins as recessive.

The FlexCAN loses synchronization with the CAN bus, and the STOPACK and NOTRDY bits in
the module configuration register are set.

MCF5282 and MCF5216 ColdFire Microcontroller User’s Manual, Rev. 3

Advertising
This manual is related to the following products: