Module stm32ral::stm32g4::peripherals::fdcan [−][src]
Expand description
FDCAN
Used by: stm32g431, stm32g441, stm32g471, stm32g473, stm32g474, stm32g483, stm32g484, stm32g491, stm32g4a1
Modules
For details about setting and resetting of single bits see Software initialization.
FDCAN CFG clock divider register
FDCAN Core Release Register
This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point.
FDCAN Error Counter Register
FDCAN Core Release Register
This register is updated every time a Message ID filter element configured to generate a priority event match. This can be used to monitor the status of incoming high priority messages and to enable fast access to these messages.
The settings in the Interrupt Enable register determine which status changes in the Interrupt Register will be signaled on an interrupt line.
Each of the two interrupt lines to the CPU can be enabled/disabled separately by programming bits EINT0 and EINT1.
The Interrupt Line Select register assigns an interrupt generated by a specific interrupt flag from the Interrupt Register to one of the two module interrupt lines. For interrupt generation the respective interrupt line has to be enabled via ILE[EINT0] and ILE[EINT1].
The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the Host clears them. A flag is cleared by writing a 1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signaled.
FDCAN_NBTP
FDCAN Protocol Status Register
The RAM Watchdog monitors the READY output of the Message RAM. A Message RAM access starts the Message RAM Watchdog Counter with the value configured by the RWD[WDC] bits. The counter is reloaded with RWD[WDC] bits when the Message RAM signals successful completion by activating its READY output. In case there is no response from the Message RAM until the counter has counted down to 0, the counter stops and interrupt flag IR[WDI] bit is set. The RAM Watchdog Counter is clocked by the fdcan_pclk clock.
CAN Rx FIFO 0 Acknowledge Register
FDCAN Rx FIFO 0 Status Register
FDCAN Rx FIFO 1 Acknowledge Register
FDCAN Rx FIFO 1 Status Register
Global settings for Message ID filtering. The Global Filter Configuration controls the filter path for standard and extended messages as described in Figure706: Standard Message ID filter path and Figure707: Extended Message ID filter path.
FDCAN Transmitter Delay Compensation Register
Write access to the Test Register has to be enabled by setting bit CCCR[TEST] to 1 . All Test Register functions are set to their reset values when bit CCCR[TEST] is reset. Loop Back mode and software control of Tx pin FDCANx_TX are hardware test modes. Programming TX differently from 00 may disturb the message transfer on the CAN bus.
FDCAN Timeout Counter Configuration Register
FDCAN Timeout Counter Value Register
FDCAN Timestamp Counter Configuration Register
FDCAN Timestamp Counter Value Register
FDCAN Tx Buffer Add Request Register
FDCAN Tx Buffer Configuration Register
FDCAN Tx Buffer Cancellation Finished Register
FDCAN Tx Buffer Cancellation Finished Interrupt Enable Register
FDCAN Tx Buffer Cancellation Request Register
FDCAN Tx Buffer Request Pending Register
FDCAN Tx Buffer Transmission Interrupt Enable Register
FDCAN Tx Buffer Transmission Occurred Register
FDCAN Tx Event FIFO Acknowledge Register
FDCAN Tx Event FIFO Status Register
The Tx FIFO/Queue status is related to the pending Tx requests listed in register TXBRP. Therefore the effect of Add/Cancellation requests may be delayed due to a running Tx scan (TXBRP not yet updated).
FDCAN Extended ID and Mask Register