analyse K9F2G08X0A nand flash

来源:互联网 发布:在淘宝买片怎么搜 编辑:程序博客网 时间:2024/05/24 04:26

First. you need to know the G M KB B unit.

1G = 1024M

1M = 1024KB

1KB = 1024Byte, are not bits.

when considering the range of memory address, you must use the 2^7= 128

2^8 = 256

2^10=1024 These units are not M.

for 256 M Memory, we need the 28 address line that will contain the 2^8 + 2^10 + 2^10 Bytes.

If you convert these data from Byte to M, You will find that the data is 256M.

The explanation is very important for you and me.

K9F2G08X0A chip will send 28 address lines to access memory of K9F2G08X0A.

Each bytes has 8 bits, So when you are accessing address, you need to send 5 cycles.

 


http://blog.csdn.net/pengrui18/article/details/32337297#quote

http://blog.csdn.net/feihuxiaozi/article/details/6943124


Nand Flash 是有块 页,页内地址组成的,分析第二个链接,你就知道如何从页内地址分析。

对于这个28根地址线,哪几位是页内地址,哪几位是页地址,哪几位是块地址。

解答:

A[11:0]是页内地址,12位,值应该是1208;
A[17:12]是页地址,6位,值应该是25;
A[28:18]是块地址,11位,值应该是1500。
把他们拼起来,在分割为5个字节,从低到高刚好是B8、04、19、77和01。

以K9F2G08U0A为例,此nand flash,一共有2048个块,每个块内有64页,每个页是2K+64 Bytes,假设,我们要访问其中的第1500个块中的第25页中的1208字节处的地址,此时,我们就要先把具体的地址算出来:
物理地址=块大小×块号+页大小×页号+页内地址=1500×128K+25×2K+1208=0xBB8CCB8(196660408),

第一个周期:A[0:7]  也就是B8

第二个周期:A[8:11]  取四位 1100, 再添4位0,也就是0000 1100   即0C

第三个周期:A[12:19]  取八位 1000 1100  即8C

第四个周期:A[20:27]  取八位 1011 1011  即BB

第五个周期:A[28]     取一位 0,补齐八位 即 0000 0000 也就是00



我想说明的问题是A[11:0]总共12位,能够寻址范围为0-4096,但是K9F2G08U0B的页大小为0-2048









0 0
原创粉丝点击