8. Program and Erase Commands
8.1
8
Byte/Page Program
The Byte/Page Program command allows anywhere from a single byte of data to 256 bytes of
data to be programmed into previously erased memory locations. An erased memory location is
one that has all eight bits set to the logical “1” state (a byte value of FFh). Before a Byte/Page
Program command can be started, the Write Enable command must have been previously
issued to the device (see Write Enable command description) to set the Write Enable Latch
(WEL) bit of the Status Register to a logical “1” state.
To perform a Byte/Page Program command, an opcode of 02h must be clocked into the device
followed by the three address bytes denoting the first byte location of the memory array to begin
programming at. After the address bytes have been clocked in, data can then be clocked into the
device and will be stored in an internal buffer.
If the starting memory address denoted by A23-A0 does not fall on an even 256-byte page
boundary (A7-A0 are not all 0), then special circumstances regarding which memory locations
will be programmed will apply. In this situation, any data that is sent to the device that goes
beyond the end of the page will wrap around back to the beginning of the same page. For exam-
ple, if the starting address denoted by A23-A0 is 0000FEh, and three bytes of data are sent to
the device, then the first two bytes of data will be programmed at addresses 0000FEh and
0000FFh while the last byte of data will be programmed at address 000000h. The remaining
bytes in the page (addresses 000001h through 0000FDh) will be unaffected and will not change.
In addition, if more than 256 bytes of data are sent to the device, then only the last 256 bytes
sent will be latched into the internal buffer.
When the CS pin is deasserted, the device will take the data stored in the internal buffer and pro-
gram it into the appropriate memory array locations based on the starting address specified by
A23-A0 and the number of complete data bytes sent to the device. If less than 256 bytes of data
were sent to the device, then the remaining bytes within the page will not be altered. The pro-
gramming of the data bytes is internally self-timed and should take place in a time of t PP .
The three address bytes and at least one complete byte of data must be clocked into the device
before the CS pin is deasserted; otherwise, the device will abort the operation and no data will
be programmed into the memory array. In addition, if the address specified by A23-A0 points to
a memory location within a sector that is in the protected state (see “Protect Sector” on page
12 ), then the Byte/Page Program command will not be executed, and the device will return to the
idle state once the CS pin has been deasserted. The WEL bit in the Status Register will be reset
back to the logical “0” state if the program cycle aborts due to an incomplete address being sent,
an incomplete byte of data being sent, or because the memory location to be programmed is
protected.
While the device is programming, the Status Register can be read and will indicate that the
device is busy. For faster throughput, it is recommended that the Status Register be polled
rather than waiting the t PP time to determine if the data bytes have finished programming. At
some point before the program cycle completes, the WEL bit in the Status Register will be reset
back to the logical “0” state.
The device also incorporates an intelligent programming algorithm that can detect when a byte
location fails to program correctly. If a programming error arises, it will be indicated by the EPE
bit in the Status Register.
AT26DF161
3599H–DFLASH–8/09
相关PDF资料
AT26DF161A-MU IC FLASH 16MBIT 70MHZ 8QFN
AT26DF321-SU IC FLASH 32MBIT 66MHZ 8SOIC
AT27BV010-90JU IC OTP 1MBIT 90NS 32PLCC
AT27BV020-90JU IC OTP 2MBIT 90NS 32PLCC
AT27BV040-12JU IC OTP 4MBIT 120NS 32PLCC
AT27BV1024-90JU IC OTP 1MBIT 90NS 44PLCC
AT27BV256-70JU IC OTP 256KBIT 70NS 32PLCC
AT27BV4096-12VI IC OTP 4MBIT 120NS 40VSOP
相关代理商/技术参数
AT26DF321 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-megabit 2.7-volt Only Serial Firmware DataFlash Memory
AT26DF321_06 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-megabit 2.7-volt Only Serial Firmware DataFlash Memory
AT26DF321_07 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-megabit 2.7-volt Only Serial Firmware DataFlash Memory
AT26DF321-S3U 功能描述:闪存 32M SERIAL FLASH - IND TEMP RoHS:否 制造商:ON Semiconductor 数据总线宽度:1 bit 存储类型:Flash 存储容量:2 MB 结构:256 K x 8 定时类型: 接口类型:SPI 访问时间: 电源电压-最大:3.6 V 电源电压-最小:2.3 V 最大工作电流:15 mA 工作温度:- 40 C to + 85 C 安装风格:SMD/SMT 封装 / 箱体: 封装:Reel
AT26DF321-SU 功能描述:闪存 32M SERIAL FLASH - IND TEMP RoHS:否 制造商:ON Semiconductor 数据总线宽度:1 bit 存储类型:Flash 存储容量:2 MB 结构:256 K x 8 定时类型: 接口类型:SPI 访问时间: 电源电压-最大:3.6 V 电源电压-最小:2.3 V 最大工作电流:15 mA 工作温度:- 40 C to + 85 C 安装风格:SMD/SMT 封装 / 箱体: 封装:Reel
AT26DF321-SU SL514 制造商:Atmel Corporation 功能描述:
AT26F004 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:4-megabit 2.7-volt Only Serial Firmware DataFlash Memory
AT26F004_06 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:4-megabit 2.7-volt Only Serial Firmware DataFlash Memory