前言:Nor Flash datasheet的内容那么多,哪里内容是我们在移植驱动的时候需要用到的呢?本文下面以MX25L3236F为例,提供了简单的方法,旨在用快速的方式帮助驱动初学者,完成Nor Flash的驱动移植。
MX25L3236F datasheet地址:http://www.macronix.com/Lists/Datasheet/Attachments/7416/MX25L3236F,%203V,%2032Mb,%20v1.2.pdf
一、重要的特性参数
GENERAL
• Supports Serial Peripheral Interface -- Mode 0 and Mode 3 //支持spi_0、spi_3模式
• 33,554,432 x 1 bit structure or 16,777,216 x 2 bits (two I/O read mode) structure or 8,388,608 x 4 bits (four I/O mode) structure
• 1024 Equal Sectors with 4K bytes each - Any Sector can be erased individually //支持4k大小的扇区擦除
• 128 Equal Blocks with 32K bytes each - Any Block can be erased individually //支持32k大小的块擦除
• 64 Equal Blocks with 64K bytes each - Any Block can be erased individually //支持64k大小的块擦除
• Power Supply Operation - 2.65 ~ 3.6 volt for read, erase, and program operations //读写擦除的指令在2.65~3.6V工作
• Latch-up protected to 100mA from -1V to Vcc +1V
PERFORMANCE
• High Performance VCC = 2.65~3.6V
- Normal read
- 50MHz(普通读模式工作在50M即可)
- Fast read
- FAST_READ, DREAD, QREAD: 133MHz with 8 dummy cycles//这些模式最大的频率是133MHz
- 2READ: 104MHz with 4 dummy cycle, 133MHz with 8 dummy cycle
- 4READ: 104MHz with 6 dummy cycle, 133MHz with 10 dummy cycle
- Configurable dummy cycle number for 2READ and 4READ operation
- 8/16/32/64 byte Wrap-Around Burst Read Mode
• Low Power Consumption
• Typical 100,000 erase/program cycles
• 20 years data retention
二、支持的读指令
READ(普通1bit读)
FAST_READ(高速1bit读)
DREAD(2bit读数据,写地址时还是1bit)
2READ(写地址和读数据都是2bit)
4READ(写地址和读数据都是4bit)
三、支持的写指令
PP(写地址和写数据都是1bit)
4PP(写地址和写数据都是4bit)
四、支持的擦除指令
SE(4K的扇区擦除)
BE(64K的块擦除)
BE32(32K的块擦除)