Nand Flash 接口实验
来源:互联网 发布:电子地图软件 编辑:程序博客网 时间:2024/05/22 06:36
上面的图少了special function register控制流,具体的可以参考,S3C2410的。
During reset, Nand flash controller will get information about the connected NAND flash through Pin status (NCON(Adv flash), GPG13(Page size), GPG14(Address cycle), GPG15(Bus width) – refer to PIN CONFIGURATION), After power-on or system reset is occurred, the NAND Flash controller load automatically the 4-KBytes boot loader codes. After loading the boot loader codes, the boot loader code in steppingstone is executed.
引脚配置(仅仅列出本开发板配置情况):
OM[1:0] = 00: Enable NAND flash memory boot
NCON: NAND flash memory selection(Normal / Advance)
0: Normal NAND flash(256Words/512Bytes page size, 3/4 address cycle)
GPG13: NAND flash memory page capacitance selection
1: Page=512Bytes(NCON = 0) or Page=2KBytes(NCON = 1)
GPG14: NAND flash memory address cycle selection
1: 4 address cycle(NCON = 0) or 5 address cycle(NCON = 1)
GPG15: NAND flash memory bus width selection
0: 8-bit bus width
My Nand flash configuration setting
Parts
Page size/Total size
NCON0
GPG13
GPG14
GPG15
K9F1208
512Byte/512Mbit
0
1
1
0
NAND FLASH MEMORY TIMING
TACLS和TWRPH0和TWRPH1这三个参数控制的是Nand Flash信号线CLE和ALE与写控制信号nWE的时序关系。
SOFTWARE MODE
S3C2440A supports only software mode access. Using this mode, you can completely access the NAND flash memory. The NAND Flash Controller supports direct access interface with the NAND flash memory。
下面是通过寄存器操作Nand Flash的方法,操作的寄存器和相应Nand Flash的对应关系:
- Writing to the command register = the NAND Flash Memory command cycle
- Writing to the address register = the NAND Flash Memory address cycle
- Writing to the data register = write data to the NAND Flash Memory (write cycle)
- Reading from the data register = read data from the NAND Flash Memory (read cycle)
- Reading main ECC registers and Spare ECC registers = read data from the NAND Flash Memory
In the software mode, you have to check the RnB status input pin by using polling or interrupt.
Data Register Configuration
8-bit NAND Flash Memory Interface
Register
Endian
Bit [31:24]
Bit [23:16]
Bit [15:8]
Bit [7:0]
NFDATA
little
4th I/O[ 7:0]
3rd I/O[ 7:0]
2nd I/O[ 7:0]
1st I/O[ 7:0]
相应的引脚含义如下:
S3C2440A相应的pin:
ALE:Address latch enable
CLE:Command latch enable
nFCE:Nand flash chip enable
nFRE:Nand flash read enable
nFWE:Nand flash write enable
FRnB:Nand flash ready/busy
NCON:Nand flash configuration(上面已经有解释了)
Nand Flash(非线性存储器,即不是通过线性、连续的地址进行寻址)不同于Nor Flash(线性存储器,即通过连续的地址进行寻址),是通过指令对其进行读、写、块擦除等各种操作的,而指令又通过8位I/O端口进行传输,这样有效的减少了引脚的数量,也能保证不同容量在引脚、封装上的兼容,利于系统升级。
分析pin configuration的时候手册上有address cycle selection,这里分析它的原因-Nand Flash的寻址方式。Nand Flash存储容量以page、block为单位,64MB的Nand Flash共有4096个block,每个block有32个page,每个page包含512 Btyes+16Btye(冗余区,用于存放坏块标志、块逻辑地址页内数据的ECC checksum等)。具体见下图(K9f1208U0M):
转自:
http://blogold.chinaunix.net/u2/69404/showart.php?id=1944816
- Nand Flash 接口实验
- Nand flash实验
- nand flash 接口
- S3C2440裸机实验(6) ----NAND FLASH
- 基于fl2440的nand flash 实验
- WinCE下访问Nand Flash接口
- zynq Nand flash,QSPI,EMMC接口
- Nand Flash
- NAND Flash
- nand flash
- NAND FLASH
- NAND FLASH
- nand flash
- Nand Flash
- NAND Flash
- NAND FLASH
- nand flash
- nand flash
- ets和dets的效率建议
- js 常用操作页面方法 属性
- J2SE学习笔记3 — Java基本语法(1)基本语法规则
- Jdbc复习资料
- 绅士一瞥
- Nand Flash 接口实验
- J2SE学习笔记3 — Java基本语法(2)基本数据类型
- 内网连接慢之一——mysql慢
- Ubuntu 10.04中安装dotproject
- 有关于视图
- 网络驱动器无法显示SVN图标问题
- 带预览功能的图片上传
- J2SE学习笔记3 — Java基本语法(3)变量和运算符
- ISO 26262 结构图