SMC_MODE

SMC Mode Register

This register can only be written if the WPEN bit is cleared in the “SMC Write Protection Mode Register”.

The user must confirm the SMC configuration by writing any one of the SMC_MODE registers.

  0x0C + n*0x10 [n=0..3] 32 R/W 0x10001003   4 16

SMC Mode Register

Bit  31 30 29 28 27 26 25 24  
      PS[1:0]       PMEN  
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
        TDF_MODE TDF_CYCLES[3:0]  
Access                   
Reset                   
Bit  15 14 13 12 11 10 9 8  
        DBW       BAT  
Access                   
Reset                   
Bit  7 6 5 4 3 2 1 0  
      EXNW_MODE[1:0]     WRITE_MODE READ_MODE  
Access                   
Reset                   

Bit 0 – READ_MODE: Read Mode

Read Mode

ValueDescription
0

The read operation is controlled by the NCS signal.

– If TDF cycles are programmed, the external bus is marked busy after the rising edge of NCS.

– If TDF optimization is enabled (TDF_MODE =1), TDF wait states are inserted after the setup of NCS.

1

The read operation is controlled by the NRD signal.

– If TDF cycles are programmed, the external bus is marked busy after the rising edge of NRD.

– If TDF optimization is enabled (TDF_MODE =1), TDF wait states are inserted after the setup of NRD.

Bit 1 – WRITE_MODE: Write Mode

Write Mode

ValueDescription
0

The write operation is controlled by the NCS signal.

– If TDF optimization is enabled (TDF_MODE =1), TDF wait states will be inserted after the setup of NCS.

1

The write operation is controlled by the NWE signal.

– If TDF optimization is enabled (TDF_MODE =1), TDF wait states will be inserted after the setup of NWE.

Bits 5:4 – EXNW_MODE[1:0]: NWAIT Mode

NWAIT Mode

The NWAIT signal is used to extend the current read or write signal. It is only taken into account during the pulse phase of the read and write controlling signal. When the use of NWAIT is enabled, at least one cycle hold duration must be programmed for the read and write controlling signal.

ValueNameDescription
0 DISABLED

Disabled–The NWAIT input signal is ignored on the corresponding chip select.

1  

Reserved

2 FROZEN

Frozen Mode–If asserted, the NWAIT signal freezes the current read or write cycle. After deassertion, the read/write cycle is resumed from the point where it was stopped.

3 READY

Ready Mode–The NWAIT signal indicates the availability of the external device at the end of the pulse of the controlling read or write signal, to complete the access. If high, the access normally completes. If low, the access is extended until NWAIT returns high.

Bit 8 – BAT: Byte Access Type

Byte Access Type

This field is used only if DBW defines a 16-bit data bus.

ValueNameDescription
0 BYTE_SELECT

Byte select access type:

- Write operation is controlled using NCS, NWE, NBS0, NBS1.

- Read operation is controlled using NCS, NRD, NBS0, NBS1.

1 BYTE_WRITE

Byte write access type:

- Write operation is controlled using NCS, NWR0, NWR1.

- Read operation is controlled using NCS and NRD.

Bit 12 – DBW: Data Bus Width

Data Bus Width

ValueNameDescription
0 8_BIT

8-bit Data Bus

1 16_BIT

16-bit Data Bus

Bits 19:16 – TDF_CYCLES[3:0]: Data Float Time

Data Float Time

This field gives the integer number of clock cycles required by the external device to release the data after the rising edge of the read controlling signal. The SMC always provide one full cycle of bus turnaround after the TDF_CYCLES period. The external bus cannot be used by another chip select during TDF_CYCLES + 1 cycles. From 0 up to 15 TDF_CYCLES can be set.

Bit 20 – TDF_MODE: TDF Optimization

TDF Optimization

ValueDescription
0

TDF optimization disabled–the number of TDF wait states is inserted before the next access begins.

1

TDF optimization enabled–the number of TDF wait states is optimized using the setup period of the next read/write access.

Bit 24 – PMEN: Page Mode Enabled

Page Mode Enabled

ValueDescription
0

Standard read is applied.

1

Asynchronous burst read in page mode is applied on the corresponding chip select.

Bits 29:28 – PS[1:0]: Page Size

Page Size

If page mode is enabled, this field indicates the size of the page in bytes.

ValueNameDescription
0 4_BYTE

4-byte page

1 8_BYTE

8-byte page

2 16_BYTE

16-byte page

3 32_BYTE

32-byte page