at 0x0080, and the space from 0x0080 to 0x008F is used by the one MB. The
memory space from 0x0090 to 0x017F is available. The space between 0x0180
and 0x087F is reserved. The space from 0x0880 to 0x0883 is used by the one
Individual Mask and the available memory in the Mask Registers space would be
from 0x0884 to 0x08BF. From 0x08C0 through 0x09DF there are reserved
words for internal use which cannot be used as general purpose RAM. As a
general rule, free memory space for general purpose depends only on MAXMB.
50.6 Initialization/application information
This section provide instructions for initializing the FlexCAN module.
50.6.1 FlexCAN initialization sequence
The FlexCAN module may be reset in three ways:
• Chip level hard reset, which resets all memory mapped registers asynchronously
• SOFTRST bit in MCR, which resets some of the memory mapped registers
synchronously. See
to see what registers are affected by soft reset.
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:
Initialization/application information
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
1468
NXP Semiconductors
Содержание KE1xF Series
Страница 2: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 2 NXP Semiconductors...
Страница 60: ...SysTick Clock Configuration Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 60 NXP Semiconductors...
Страница 114: ...Initialization application information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 114 NXP Semiconductors...
Страница 138: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 138 NXP Semiconductors...
Страница 320: ...Private Peripheral Bus PPB memory map Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 320 NXP Semiconductors...
Страница 342: ...Functional Description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 342 NXP Semiconductors...
Страница 360: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 360 NXP Semiconductors...
Страница 490: ...Interrupts Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 490 NXP Semiconductors...
Страница 550: ...Memory map and register definition Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 550 NXP Semiconductors...
Страница 562: ...Boot Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 562 NXP Semiconductors...
Страница 662: ...Power supply supervisor Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 662 NXP Semiconductors...
Страница 694: ...On chip resource access control mechanism Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 694 NXP Semiconductors...
Страница 706: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 706 NXP Semiconductors...
Страница 724: ...Application Information Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 724 NXP Semiconductors...
Страница 736: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 736 NXP Semiconductors...
Страница 750: ...Debug and Security Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 750 NXP Semiconductors...
Страница 798: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 798 NXP Semiconductors...
Страница 808: ...Functional description Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 808 NXP Semiconductors...
Страница 866: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 866 NXP Semiconductors...
Страница 1164: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1164 NXP Semiconductors...
Страница 1178: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1178 NXP Semiconductors...
Страница 1380: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1380 NXP Semiconductors...
Страница 1472: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1472 NXP Semiconductors...
Страница 1482: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1482 NXP Semiconductors...