09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Flexible static memory controller (FSMC) <strong>RM0090</strong><br />

This register contains the control information of each memory bank, used for SRAMs, ROMs<br />

and NOR Flash memories. When the EXTMOD bit is set in the FSMC_BCRx register, then<br />

this register is active for write access.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Res.<br />

ACCM<br />

OD<br />

DATLAT CLKDIV BUSTURN DATAST ADDHLD ADDSET<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

Bits 29:28 ACCMOD: Access mode.<br />

Specifies the asynchronous access modes as shown in the next timing diagrams.These bits are<br />

taken into account only when the EXTMOD bit in the FSMC_BCRx register is 1.<br />

00: access mode A<br />

01: access mode B<br />

10: access mode C<br />

11: access mode D<br />

Bits 27:24 DATLAT: Data latency (for synchronous burst NOR Flash).<br />

For NOR Flash with Synchronous burst mode enabled, defines the number of memory clock cycles<br />

(+2) to issue to the memory before getting the first data:<br />

0000: (0x0) Data latency of 2 CLK clock cycles for first burst access<br />

...<br />

1111: (0xF) Data latency of 17 CLK clock cycles for first burst access (default value after reset)<br />

Note: This timing parameter is not expressed in HCLK periods, but in Flash clock (CLK) periods. In<br />

asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care. In case of<br />

CRAM, this field must be set to 0<br />

Bits 23:20 CLKDIV: Clock divide ratio (for CLK signal).<br />

Defines the period of CLK clock output signal, expressed in number of HCLK cycles:<br />

0000: Reserved<br />

0001 CLK period = 2 × HCLK periods<br />

0010 CLK period = 3 × HCLK periods<br />

1111: CLK period = 16 × HCLK periods (default value after reset)<br />

In asynchronous NOR Flash, SRAM or ROM accesses, this value is don’t care.<br />

Bits 19:16 BUSTURN: Bus turnaround phase duration<br />

These bits are written by software to add a delay at the end of a write transaction to match the<br />

minimum time between consecutive transactions (t EHEL from ENx high to ENx low):<br />

(BUSTRUN + 1) HCLK period ≥ t EHELmin .<br />

0000: BUSTURN phase duration = 0 HCLK clock cycle added<br />

...<br />

1111: BUSTURN phase duration = 15 HCLK clock cycles added (default value after reset)<br />

Bits 15:8 DATAST: Data-phase duration.<br />

These bits are written by software to define the duration of the data phase (refer to Figure 404 to<br />

Figure 416), used in SRAMs, ROMs and asynchronous NOR Flash accesses:<br />

0000 0000: Reserved<br />

0000 0001: DATAST phase duration = 1 × HCLK clock cycles<br />

0000 0010: DATAST phase duration = 2 × HCLK clock cycles<br />

...<br />

1111 1111: DATAST phase duration = 255 × HCLK clock cycles (default value after reset)<br />

Note: In synchronous accesses, this value is don't care.<br />

1349/1416 Doc ID 018909 Rev 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!