39.8.4 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.

Table 39-10. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: MODE
Offset: 0x0C + n*0x04 [n=0..3]
Reset: 0x00
Property: Read/Write

Bit 3130292827262524 
   PS[1:0]   PMEN 
Access R/WR/WR/W 
Reset 000 
Bit 2322212019181716 
    TDF MODETDF CYCLES[3:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 15141312111098 
    DBW   BAT 
Access R/WR/W 
Reset 00 
Bit 76543210 
   EXNW MODE[1:0]  WRITE MODEREAD MODE 
Access R/WR/WR/WR/W 
Reset 0000 

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

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

Value NameDescription
o4 BYTE4-byte page
18 BYTE8-byte page
216 BYTE16-byte page
332 BYTE32-byte page

Bit 24 – PMEN Page Mode Enabled

ValueDescription
0Standard read is applied.
1Asynchronous burst read in page mode is applied on the corresponding chip select.

Bit 20 – TDF MODE TDF, Data Float Time, Optimization

ValueDescription
0TDF optimization disabled-the number of TDF wait states is inserted before the next access begins.
1TDF optimization enabled-the number of TDF wait states is optimized using the setup period of the next read/write access.

Bits 19:16 – TDF CYCLES[3:0] 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 12 – DBW Data Bus Width

ValueNameDescription
o8 BIT8-bit Data Bus
116 BIT16-bit Data Bus
232 BIT32-but Data Bus
3-Reserved

Bit 8 – BAT Byte Access Type

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

ValueNameDescription
oBYTE SELECTByte select access type:
  • Write operation is controlled using NCS, NWE, NBS0, NBS1, NBS2 and NBS3
  • Read operation is controlled using NCS, NRD, NBS0, NBS1, NBS2 and NBS3
1BYTE WRITEByte write access type:
  • Write operation is controlled using NCS, NWR0, NWR1, NWR2,NWR3
  • Read operation is controlled using NCS and NRD

Bits 5:4 – EXNW MODE[1:0] 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.

Value NameDescription
oDISABLEDDisabled-The NWAIT input signal is ignored on the corresponding chip select.
1Reserved
2FROZENFrozen 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.
3READYReady 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 1 – WRITE MODE Write Mode

ValueNameDescription
0NCS_CTRLWrite operation controlled by NCS signal—If TDF optimization is enabled (TDF_MODE = 1), TDF wait states will be inserted after the setup of NCS.
1NWE_CTRLWrite operation controlled by NWE signal—If TDF optimization is enabled (TDF_MODE = 1), TDF wait states will be inserted after the setup of NWE.

Bit 0 – READ MODE Read Mode

ValueNameDescription
0NCS_CTRLRead operation controlled by 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.
1NRD_CTRLRead operation controlled by 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.