SPRUJB6B November 2024 – May 2025 AM2612
The OSPI1_CONFIG_CONTROL register is used for the OSPI1 peripheral configurations.
OSPI1_CONFIG_CONTROL.ICLK_SEL is a mux select to use either the internal loopback clock OSPI1_CLKLB as the OSPI1 input clock, or the DQS signal OSPI1_DQS as the OSPI1 input clock. This is the adapter loopback device clock, used by the read delay capture circuit to sample the read data as it returns to the MCU from the flash memory device. Write 3'b111 to select the loopback clock OSPI1_CLKLB as the OSPI1 input clock. Write 3'b000 to select the DQS signal OSPI1_DQS as the OSPI1 input clock. Configuration changes must be done when the FSS is idle, not configured, and when there are no active transactions.
OSPI1_CONFIG_CONTROL.EARLY_OE_N is used to enable/disable the early OE_N signal for the OSPI1 IO pads. Setting these bits to 3'b111 enabled the early OE_N signal, which comes out one clock cycle early for the OSPI1 IO pads, which triggers the OSPI1 IO pads to switch to input mode one clock cycle earlier. This is used in high-frequency flash read use cases to account for pad delays and data Byte loss in the peripheral FIFO. Write 3'b000 to disable the early OE_N signal.
OSPI1_CONFIG_CONTROK.ADDRESS_TRANSLATE_EN is used to enable or disable address translation for ISSI PSRAM memory. Setting these bits to 3'b111 enables address translation as specified in an ISSI PSRAM memory device, as shown in Table 6-11 below:
| Clock | 1st Clock | 2nd Clock | 3rd Clock | ||
|---|---|---|---|---|---|
| Function | Command | Row Address | Column Address | ||
| SIO[7] | Command | Reserved | RA7 | CA9 | Reserved |
| SIO[6] | Reserved | RA6 | CA8 | Reserved | |
| SIO[5] | Reserved | RA5 | CA7 | Reserved | |
| SIO[4] | RA12 | RA4 | CA6 | Reserved | |
| SIO[3] | RA11 | RA3 | CA5 | CA3 | |
| SIO[2] | RA10 | RA2 | CA4 | CA2 | |
| SIO[1] | RA9 | RA1 | Reserved | CA1 | |
| SIO[0] | RA8 | RA0 | Reserved | CA0 | |
OSPI1_CONFIG_CONTROL.OSPI_DDR_MODE is used to enable or disable DDR mode on the OSPI1 peripheral. Setting these bits to 3'b111 enables DDR mode. Because the OSPI controller requires DDR transfers to be 2-Byte aligned, this will convert any non-2-Byte transfers into 2-Byte aligned transfers for OSPI1. Setting these bits to 3'b000 disables DDR mode.