Flexible memory controller (FMC)
18.5
NOR Flash/PSRAM controller
The FMC generates the appropriate signal timings to drive the following types of memories:
•
Asynchronous SRAM, FRAM and ROM
–
–
•
PSRAM (CellularRAM™)
–
–
–
•
NOR Flash memory
–
–
–
The FMC outputs a unique chip select signal, NE[4:1], per bank. All the other signals
(addresses, data and control) are shared.
The FMC supports a wide range of devices through a programmable timings among which:
•
Programmable wait states (up to 15)
•
Programmable bus turnaround cycles (up to 15)
•
Programmable output enable and write enable delays (up to 15)
•
Independent read and write timings and protocol to support the widest variety of
memories and timings
•
Programmable continuous clock (FMC_CLK) output.
The FMC Clock (FMC_CLK) is a submultiple of the HCLK clock. It can be delivered to the
selected external device either during synchronous accesses only or during asynchronous
and synchronous accesses depending on the CCKEN bit configuration in the FMC_BCR1
register:
•
If the CCLKEN bit is reset, the FMC generates the clock (CLK) only during
synchronous accesses (Read/write transactions).
•
If the CCLKEN bit is set, the FMC generates a continuous clock during asynchronous
and synchronous accesses. To generate the FMC_CLK continuous clock, Bank 1 must
be configured in Synchronous mode (see
registers). Since the same clock is used for all synchronous memories, when a
continuous output clock is generated and synchronous accesses are performed, the
AHB data size has to be the same as the memory data width (MWID) otherwise the
FMC_CLK frequency will be changed depending on AHB data transaction (refer to
Section 18.5.5: Synchronous transactions
The size of each bank is fixed and equal to 64 Mbytes. Each bank is configured through
dedicated registers (see
The programmable memory parameters include access times (see
for wait management (for PSRAM and NOR Flash accessed in Burst mode).
480/2083
8 bits
16 bits
Asynchronous mode
Burst mode for synchronous accesses
Multiplexed or non-multiplexed
Asynchronous mode
Burst mode for synchronous accesses
Multiplexed or non-multiplexed
Section 18.5.6: NOR/PSRAM controller
Section 18.5.6: NOR/PSRAM controller
for FMC_CLK divider ratio formula).
RM0440 Rev 1
RM0440
registers).
Table
112) and support
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?