Note
A chosen format is applied to all entries of the filter table. It is
not possible to mix formats within the table.
Every frame available in the FIFO has a corresponding IDHIT (Identifier Acceptance
Filter Hit Indicator) that can read in the IDHIT field from C/S word, as shown in the Rx
FIFO Structure description. Another way the CPU can obtain this information is by
accessing the CAN_RXFIR register. The CAN_RXFIR[IDHIT] field refers to the
message at the output of the FIFO and is valid while the CAN_IFLAG1[BUF5I] flag is
asserted. The CAN_RXFIR register must be read only before clearing the flag, which
guarantees that the information refers to the correct frame within the FIFO.
Up to 16 elements of the filter table are individually affected by the Individual Mask
Registers (CAN_RXIMRx), according to the setting of CAN_CTRL2[RFFN], allowing
very powerful filtering criteria to be defined. If the CAN_MCR[IRMQ] bit is negated,
then the FIFO filter table is affected by CAN_RXFGMASK.
50.5.7.1 Rx FIFO under DMA Operation
The receive-only FIFO can support DMA, this feature is enabled by asserting both the
CAN_MCR[RFEN] and CAN_MCR[DMA] bits. The reset value of CAN_MCR[DMA]
bit is zero to maintain backward compatibility with previous versions of the module that
did not have the DMA feature.
The DMA controller can read the received message by reading a Message Buffer
structure at the FIFO output port at the 0x80-0x8C address range.
When CAN_MCR[DMA] is asserted the CPU must not access the FIFO output port
address range. Before enabling the CAN_MCR[DMA], the CPU must service the
IFLAGs asserted in the Rx FIFO region. Otherwise, these IFLAGs may show that the
FIFO has data to be serviced, and mistakenly generate a DMA request. Before disabling
the CAN_MCR[DMA], the CPU must perform a clear FIFO operation.
The CAN_IFLAG1[BUF5I] (Frames available in Rx FIFO) is asserted when there is at
least one frame available to be read from the FIFO, consequently a DMA request is
generated simultaneously. Upon receiving the request, the DMA controller can read the
message (accessing the output of the FIFO as a Message Buffer). The DMA reading
process must end by reading address 0x8C, which clears the CAN_IFLAG1[BUF5I] and
updates both the FIFO output with the next message (if FIFO is not empty) and the
CAN_RXFIR register with the attributes of the new message. If there are more messages
stored in the FIFO, the CAN_IFLAG1[BUF5I] will be re-asserted and another DMA
request is issued. Otherwise, the flag remains negated.
Functional description
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
1452
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...