• SOFTRST bit in MCR, which resets some of the memory mapped registers
synchronously. See
to see what registers are affected by soft reset.
• MCU level soft reset, which has the same effect as the SOFTRST bit in MCR
Soft reset is synchronous and has to follow an internal request/acknowledge procedure
across clock domains. Therefore, it may take some time to fully propagate its effects. The
CAN_MCR[SOFTRST] bit remains asserted while soft reset is pending, so software can
poll this bit to know when the reset has completed. Also, soft reset can not be applied
while clocks are shut down in a low power mode. The low power mode should be exited
and the clocks resumed before applying soft reset.
The clock source should be selected while the module is in Disable mode (see
CAN_CTRL1[CLKSRC] bit). After the clock source is selected and the module is
enabled (CAN_MCR[MDIS] bit negated), FlexCAN automatically goes to Freeze mode.
In Freeze mode, FlexCAN is un-synchronized to the CAN bus, the HALT and FRZ bits
in CAN_MCR Register are set, the internal state machines are disabled and the FRZACK
and NOTRDY bits in the CAN_MCR Register are set. The Tx pin is in recessive state
and FlexCAN does not initiate any transmission or reception of CAN frames. Note that
the Message Buffers and the Rx Individual Mask Registers are not affected by reset, so
they are not automatically initialized.
For any configuration change/initialization it is required that FlexCAN is put into Freeze
mode (see
). The following is a generic initialization sequence applicable to
the FlexCAN module:
• Initialize the Module Configuration Register (CAN_MCR)
• Enable the individual filtering per MB and reception queue features by setting
the IRMQ bit
• Enable the warning interrupts by setting the WRNEN bit
• If required, disable frame self reception by setting the SRXDIS bit
• Enable the Rx FIFO by setting the RFEN bit
• If Rx FIFO is enabled and DMA is required, set DMA bit
• Enable the abort mechanism by setting the AEN bit
• Enable the local priority feature by setting the LPRIOEN bit
• Initialize the Control 1 Register (CAN_CTRL1) and optionally the CAN Bit Timing
Register (CAN_CBT).
• Determine the bit timing parameters: PROPSEG, PSEG1, PSEG2, RJW
Initialization/application information
KV4x Reference Manual, Rev. 2, 02/2015
1166
Preliminary
Freescale Semiconductor, Inc.
Содержание freescale KV4 Series
Страница 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Страница 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Страница 82: ...JTAG Controller Configuration KV4x Reference Manual Rev 2 02 2015 82 Preliminary Freescale Semiconductor Inc...
Страница 88: ...System Register file KV4x Reference Manual Rev 2 02 2015 88 Preliminary Freescale Semiconductor Inc...
Страница 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Страница 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Страница 150: ...Pinout diagrams KV4x Reference Manual Rev 2 02 2015 150 Preliminary Freescale Semiconductor Inc...
Страница 170: ...Functional description KV4x Reference Manual Rev 2 02 2015 170 Preliminary Freescale Semiconductor Inc...
Страница 212: ...Functional description KV4x Reference Manual Rev 2 02 2015 212 Preliminary Freescale Semiconductor Inc...
Страница 284: ...Functional description KV4x Reference Manual Rev 2 02 2015 284 Preliminary Freescale Semiconductor Inc...
Страница 294: ...Functional description KV4x Reference Manual Rev 2 02 2015 294 Preliminary Freescale Semiconductor Inc...
Страница 330: ...Functional description KV4x Reference Manual Rev 2 02 2015 330 Preliminary Freescale Semiconductor Inc...
Страница 450: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 450 Preliminary Freescale Semiconductor Inc...
Страница 512: ...Interrupts and DMA Requests KV4x Reference Manual Rev 2 02 2015 512 Preliminary Freescale Semiconductor Inc...
Страница 520: ...Memory Map and Register Descriptions KV4x Reference Manual Rev 2 02 2015 520 Preliminary Freescale Semiconductor Inc...
Страница 580: ...Initialization Application information KV4x Reference Manual Rev 2 02 2015 580 Preliminary Freescale Semiconductor Inc...
Страница 660: ...Functional description KV4x Reference Manual Rev 2 02 2015 660 Preliminary Freescale Semiconductor Inc...
Страница 1038: ...Example configuration for chained timers KV4x Reference Manual Rev 2 02 2015 1038 Preliminary Freescale Semiconductor Inc...
Страница 1074: ...Functional description KV4x Reference Manual Rev 2 02 2015 1074 Preliminary Freescale Semiconductor Inc...
Страница 1168: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 1168 Preliminary Freescale Semiconductor Inc...
Страница 1264: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 1264 Preliminary Freescale Semiconductor Inc...
Страница 1336: ...Functional description KV4x Reference Manual Rev 2 02 2015 1336 Preliminary Freescale Semiconductor Inc...
Страница 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...