stm32 /stm32h7rs /STM32H7R /FMC /FMC_BCR1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as FMC_BCR1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)MBKEN 0 (B_0x0)MUXEN 0 (B_0x0)MTYP 0 (B_0x0)MWID 0 (B_0x0)FACCEN 0 (B_0x0)BURSTEN 0 (B_0x0)WAITPOL 0 (B_0x0)WAITCFG 0 (B_0x0)WREN 0 (B_0x0)WAITEN 0 (B_0x0)EXTMOD 0 (B_0x0)ASYNCWAIT 0 (B_0x0)CPSIZE 0 (B_0x0)CBURSTRW 0 (B_0x0)CCLKEN 0 (B_0x0)WFDIS 0 (B_0x0)BMAP 0 (B_0x0)FMCEN

WAITPOL=B_0x0, FACCEN=B_0x0, EXTMOD=B_0x0, BMAP=B_0x0, MUXEN=B_0x0, CCLKEN=B_0x0, WFDIS=B_0x0, MBKEN=B_0x0, WREN=B_0x0, MWID=B_0x0, ASYNCWAIT=B_0x0, MTYP=B_0x0, WAITCFG=B_0x0, CBURSTRW=B_0x0, FMCEN=B_0x0, BURSTEN=B_0x0, CPSIZE=B_0x0, WAITEN=B_0x0

Description

SRAM/NOR-flash chip-select control registers for bank 1

Fields

MBKEN

Memory bank enable bit This bit enables the memory bank. After reset Bank1 is enabled, all others are disabled. Accessing a disabled bank causes an ERROR on AXI bus.

0 (B_0x0): Corresponding memory bank is disabled

1 (B_0x1): Corresponding memory bank is enabled

MUXEN

Address/data multiplexing enable bit When this bit is set, the address and data values are multiplexed on the data bus, valid only with NOR and PSRAM memories:

0 (B_0x0): Address/Data non-multiplexed

1 (B_0x1): Address/Data multiplexed on databus (default after reset)

MTYP

Memory type These bits define the type of external memory attached to the corresponding memory bank:

0 (B_0x0): SRAM (default after reset for Bank 2…4)

1 (B_0x1): PSRAM (CRAM)

2 (B_0x2): NOR flash/OneNAND flash (default after reset for Bank 1)

MWID

Memory data bus width Defines the external memory device width, valid for all type of memories.

0 (B_0x0): 8 bits

1 (B_0x1): 16 bits (default after reset)

2 (B_0x2): 32 bits

FACCEN

Flash access enable This bit enables NOR flash memory access operations.

0 (B_0x0): Corresponding NOR flash memory access is disabled

1 (B_0x1): Corresponding NOR flash memory access is enabled (default after reset)

BURSTEN

Burst enable bit This bit enables/disables synchronous accesses during read operations. It is valid only for synchronous memories operating in Burst mode:

0 (B_0x0): Burst mode disabled (default after reset). Read accesses are performed in Asynchronous mode

1 (B_0x1): Burst mode enable. Read accesses are performed in Synchronous mode.

WAITPOL

Wait signal polarity bit This bit defines the polarity of the wait signal from memory used for either in Synchronous or Asynchronous mode:

0 (B_0x0): NWAIT active low (default after reset)

1 (B_0x1): NWAIT active high.

WAITCFG

Wait timing configuration The NWAIT signal indicates whether the data from the memory are valid or if a wait state must be inserted when accessing the memory in Synchronous mode. This configuration bit determines if NWAIT is asserted by the memory one clock cycle before the wait state or during the wait state:

0 (B_0x0): NWAIT signal is active one data cycle before wait state (default after reset)

1 (B_0x1): NWAIT signal is active during wait state (not used for PSRAM).

WREN

Write enable bit This bit indicates whether write operations are enabled/disabled in the bank by the FMC:

0 (B_0x0): Write operations are disabled in the bank by the FMC, an AXI slave error is reported

1 (B_0x1): Write operations are enabled for the bank by the FMC (default after reset).

WAITEN

Wait enable bit This bit enables/disables wait-state insertion via the NWAIT signal when accessing the memory in Synchronous mode.

0 (B_0x0): NWAIT signal is disabled (its level not taken into account, no wait state inserted after the programmed flash latency period)

1 (B_0x1): NWAIT signal is enabled (its level is taken into account after the programmed latency period to insert wait states if asserted) (default after reset)

EXTMOD

Extended mode enable. This bit enables the FMC to program the write timings for asynchronous accesses inside the FMC_BWTR register, thus resulting in different timings for read and write operations. Note: When the Extended mode is disabled, the FMC can operate in Mode1 or Mode2 as follows: Mode 1 is the default mode when the SRAM/PSRAM memory type is selected (MTYP =0x0 or 0x01) Mode 2 is the default mode when the NOR memory type is selected (MTYP = 0x10).

0 (B_0x0): values inside FMC_BWTR register are not taken into account (default after reset)

1 (B_0x1): values inside FMC_BWTR register are taken into account

ASYNCWAIT

Wait signal during asynchronous transfers This bit enables/disables the FMC to use the wait signal even during an asynchronous protocol.

0 (B_0x0): NWAIT signal is not taken in to account when running an asynchronous protocol (default after reset)

1 (B_0x1): NWAIT signal is taken in to account when running an asynchronous protocol

CPSIZE

CRAM Page Size These are used for Cellular RAM 1.5 which does not allow burst access to cross the address boundaries between pages. When these bits are configured, the FMC splits automatically the burst access when the memory page size is reached (refer to memory datasheet for page size). Other configuration: reserved.

0 (B_0x0): No burst split when crossing page boundary (default after reset).

1 (B_0x1): 128 bytes

2 (B_0x2): 256 bytes

4 (B_0x4): 1024 bytes

CBURSTRW

Write burst enable For PSRAM (CRAM) operating in Burst mode, the bit enables synchronous accesses during write operations. The enable bit for synchronous read accesses is the BURSTEN bit in the FMC_BCRx register.

0 (B_0x0): Write operations are always performed in Asynchronous mode

1 (B_0x1): Write operations are performed in Synchronous mode.

CCLKEN

Continuous Clock Enable This bit enables the FMC_CLK clock output to external memory devices. Note: The CCLKEN bit of the FMC_BCR2…4 registers is dont care. It is only enabled through the FMC_BCR1 register. Bank 1 must be configured in Synchronous mode to generate the FMC_CLK continuous clock. Note: If CCLKEN bit is set, the FMC_CLK clock ratio is specified by CLKDIV value in the FMC_BTR1 register. CLKDIV in FMC_BWTR1 is dont care. Note: If the Synchronous mode is used and CCLKEN bit is set, the synchronous memories connected to other banks than Bank 1 are clocked by the same clock (the CLKDIV value in the FMC_BTR2…4 and FMC_BWTR2…4 registers for other banks has no effect.)

0 (B_0x0): The FMC_CLK is only generated during the synchronous memory access (read/write transaction). The FMC_CLK clock ratio is specified by the programmed CLKDIV value in the FMC_BCRx register (default after reset).

1 (B_0x1): The FMC_CLK is generated continuously during asynchronous and synchronous access. The FMC_CLK clock is activated when the CCLKEN is set.

WFDIS

Write FIFO Disable This bit disables the Write FIFO used by the FMC. Note: The WFDIS bit of the FMC_BCR2…4 registers is dont care. It is only enabled through the FMC_BCR1 register.

0 (B_0x0): Write FIFO enabled (Default after reset)

1 (B_0x1): Write FIFO disabled

BMAP

FMC bank mapping These bits allow different remap or swap of the FMC NOR/PSRAM and SDRAM banks (refer to Table 144). Note: The BMAP bits of the FMC_BCR2…4 registers are dont care. It is only enabled through the FMC_BCR1 register.

0 (B_0x0): Default mapping (refer to Figure 108 and Table 144).

1 (B_0x1): NOR/PSRAM bank and SDRAM bank 1 are swapped.

FMCEN

FMC Enable This bit enables/disables the FMC. Note: The FMCEN bit of the FMC_BCR2…4 registers is dont care. It is only enabled through the FMC_BCR1 register.

0 (B_0x0): Disable the FMC

1 (B_0x1): Enable the FMC

Links

()