Freescale Semiconductor MCF52277 Reference Manual page 518

Table of Contents

Advertisement

FlexCAN
Field
25
Soft reset. When set, the FlexCAN resets its internal state machines (sequencer, error counters, error flags, and
SOFTRST
timer) and the host interface registers (CANMCR [except the MDIS bit], TIMER, ERRCNT, ERRSTAT, IMASK, and
IFLAG).
The configuration registers that control the interface with the CAN bus are not changed (CANCTRL, RXGMASK,
RX14MASK, RX15MASK). Message buffers are also not changed. This allows SOFTRST to be used as a debug
feature while the system is running.
Because soft reset is synchronous and has to follow a request/acknowledge procedure across clock domains, it
may take some time to fully propagate its effect. The SOFTRST bit remains set while reset is pending and is
automatically cleared when reset completes. The user should poll this bit to know when the soft reset has
completed.
0 Soft reset cycle completed
1 Soft reset cycle initiated
24
Freeze acknowledge. Indicates that the FlexCAN module has entered freeze mode. The user should poll this bit
FRZACK
after freeze mode has been requested, to know when the module has actually entered freeze mode. When freeze
mode is exited, this bit is cleared after the FlexCAN prescaler is enabled. This is a read-only bit.
0 The FlexCAN has exited freeze mode and the prescaler is enabled.
1 The FlexCAN has entered freeze mode, and the prescaler is disabled.
23
Supervisor/user data space. Places the FlexCAN registers in supervisor or user data space.
SUPV
0 Registers with access controlled by the SUPV bit are accessible in user or supervisor privilege mode.
1 Registers with access controlled by the SUPV bit are restricted to supervisor mode.
22–21
Reserved, must be cleared.
20
Low power mode acknowledge. Indicates that FlexCAN is disabled. Disabled mode cannot be entered until all
LPMACK
current transmission or reception processes have finished, so the CPU can poll the LPMACK bit to know when the
FlexCAN has actually entered low power mode. See
"Power Management,"
0 FlexCAN not disabled.
1 FlexCAN is in disabled mode.
19–17
Reserved, must be cleared.
16
Backwards compatibility configuration. This bit is provided to support backwards compatibility with legacy FlexCAN
BCC
software. When this bit is cleared, the following configuration is applied:
• Individual Rx ID masking is disabled. Instead of individual ID masking per MB, the FlexCAN uses its previous
masking scheme with RXGMASK, RX14MASK, and RX15MASK.
• The reception queue feature is disabled. Upon receiving a message, if the first MB with a matching ID remains
occupied by a previous unread message, FlexCAN does not look for another matching MB. It overrides this MB
with the new message and set the CODE field to 0110 (overrun).
Upon reset this bit is cleared, allowing legacy software to work without modification.
0 Individual Rx masking and queue feature are disabled
1 Individual Rx masking and queue feature are enabled
15–4
Reserved, must be cleared.
–0
Maximum number of message buffers. Defines the maximum number of message buffers that take part in the
MAXMB
matching and arbitration process. The reset value (0xF) is equivalent to16 message buffer (MB) configuration. This
field should be changed only while the module is in freeze mode.
Maximum MBs in Use = MAXMB + 1
Note:
23-8
Table 23-2. CANMCR Field Descriptions (continued)
for more information. This bit is read-only.
MCF52277 Reference Manual, Rev. 1
Description
Section 23.1.3.3, "Module Disabled Mode,"
and
Chapter 8,
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents