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.

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

Bit 2 PBKEN: PC Card/NAND Flash memory bank enable bit.<br />

Enables the memory bank. Accessing a disabled memory bank causes an ERROR on AHB<br />

bus<br />

0: Corresponding memory bank is disabled (default after reset)<br />

1: Corresponding memory bank is enabled<br />

Bit 1 PWAITEN: Wait feature enable bit.<br />

Enables the Wait feature for the PC Card/NAND Flash memory bank:<br />

0: disabled<br />

1: enabled<br />

Note: For a PC Card, when the wait feature is enabled, the MEMWAITx/ATTWAITx/IOWAITx<br />

bits must be programmed to a value as follows:<br />

xxWAITx ≥ 4 + max_wait_assertion_time/HCLK<br />

Where max_wait_assertion_time is the maximum time taken by NWAIT to go low once<br />

nOE/nWE or nIORD/nIOWR is low.<br />

Bit 0 Reserved, must be kept at reset value.<br />

FIFO status and interrupt register 2..4 (FSMC_SR2..4)<br />

Address offset: 0xA000 0000 + 0x44 + 0x20 * (x-1), x = 2..4<br />

Reset value: 0x0000 0040<br />

This register contains information about FIFO status and interrupt. The FSMC has a FIFO<br />

that is used when writing to memories to store up to16 words of data from the AHB.<br />

This is used to quickly write to the AHB and free it for transactions to peripherals other than<br />

the FSMC, while the FSMC is draining its FIFO into the memory. This register has one of its<br />

bits that indicates the status of the FIFO, for ECC purposes.<br />

The ECC is calculated while the data are written to the memory, so in order to read the<br />

correct ECC the software must wait until the FIFO is empty.<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 />

Reserved<br />

Bit 6 FEMPT: FIFO empty.<br />

Read-only bit that provides the status of the FIFO<br />

0: FIFO not empty<br />

1: FIFO empty<br />

Bit 5 IFEN: Interrupt falling edge detection enable bit<br />

0: Interrupt falling edge detection request disabled<br />

1: Interrupt falling edge detection request enabled<br />

Bit 4 ILEN: Interrupt high-level detection enable bit<br />

0: Interrupt high-level detection request disabled<br />

1: Interrupt high-level detection request enabled<br />

Bit 3 IREN: Interrupt rising edge detection enable bit<br />

0: Interrupt rising edge detection request disabled<br />

1: Interrupt rising edge detection request enabled<br />

Doc ID 018909 Rev 3 1360/1416<br />

FEMPT<br />

IFEN<br />

ILEN<br />

IREN<br />

IFS<br />

ILS<br />

IRS<br />

r rw rw rw rw rw rw

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

Saved successfully!

Ooh no, something went wrong!