RM0082
RS_Flexible static memory controller (FSMC)
Doc ID 018672 Rev 1
671/844
31.4.8 GenMemCtrl_Comm(i)/GenMemCtrl_Attrib(i) registers
Each GenMemCtrl_Comm(i)/GenMemCtrl_Attrib(i) (with i = 0...3) is a RW register which
contain the timing control information of each bank used for NAND Flash memories. The
GenMemCtrl_Comm(i)/GenMemCtrl_Attrib(i) bit assignments are given in
.
Note:
For information on programming the timing registers refer to
the FSMC timing parameters on page 673
31.4.9 GenMemCtrl_ECCr(i)
registers
Each GenMemCtrl_ECCr(i) (with i = 0, 1) is a 32-bit RO register which contains the ECC
(Error Correction Code) computation result for the corresponding NAND flash memory. The
GenMemCtrl_ECCr(i) bit assignments are given in
The ECC is actually a Hamming-based code which is used to preserve the consistency of
data stored in NAND flash memories. The ECC algorithm consists in calculating the row and
column parity of a page of memory and to place the 3-byte result in an ECC table, where it
can be retrieved in order to check the consistency of the data. The GenMemCtrl_ECCr(i)
reports this ECC 3-byte result.
Table 600.
GenMemCtrl_Comm(i)/GenMemCtrl_Attrib(i) register bit assignments
Bit
Name
Reset
value
Description
[31:24]
Thiz
8'hFC
Time from address valid to data bus driven. (Write cycle only)
The total time is: thiz = Tclk * Thiz.
Min value for Thiz is 0.
[23:16]
Thold
8'hFC
Time from enable off to when address/data goes to high
impedance. (Read and write cycle).
The total time is: thold = Tclk * Thold.
T period = tset + twait+ thold
Min value for Thold is 1.
[15:08]
Twait
8'hFC
Time from enable on to enable off for all signals (Read and write
cycle)
The total time is: twait = Tclk * (Twait + 1).
Min value for Twait is 1.
[07:00]
Tset
8'hFC
Time from address valid to RE/WE activation. (Read and write
cycle)
The total time is: tset = Tclk * (Tset + 1).
Min value for Tset is 0.
Table 601.
GenMemCtrlECCr(i) register bit assignments
Bit
Name
Reset
value
Description
[31:24]
-
-
Reserved. Read undefined. Write: should be zero.
[23:16]
ECC3
8'hFF
MSB part of ECC
[15:08]
ECC2
8'hFF
ECC
[07:00]
ECC1
8'hFF
LSB part of ECC