4
3358C–FLASH–3/05
AT49BV040A
4.2 Command Sequences
When the device is first powered on it will be reset to the read or standby mode depending upon
the state of the control line inputs. In order to perform other device functions, a series of com-
mand sequences are entered into the device. The command sequences are shown in the
“Command Definition Table” on page 6. The command sequences are written by applying a low
pulse on the WE
or CE input with CE or WE low (respectively) and OE high. The address is
latched on the falling edge of CE
or WE (except for the sixth cycle of the Sector Erase com-
mand), whichever occurs last. The data is latched by the first rising edge of CE
or WE. Standard
microprocessor write timings are used. The address locations used in the command sequences
are not affected by entering the command sequences.
4.3 Erasure
Before a byte can be reprogrammed, the main memory blocks or parameter blocks which con-
tains the byte must be erased. The erased state of the memory bits is a logical “1”. The entire
device can be erased at one time by using a 6-byte software code. The software chip erase
code consists of 6-byte load commands to specific address locations with a specific data pattern
(please refer to the Chip Erase Cycle Waveforms).
After the software chip erase has been initiated, the device will internally time the erase opera-
tion so that no external clocks are required. The maximum time needed to erase the whole chip
is t
EC
. If the boot block lockout feature has been enabled, the data in the boot sector will not be
erased.
4.3.1 Chip Erase
If the boot block lockout has been enabled, the Chip Erase function will erase Parameter Block
1, Parameter Block 2, Main Memory Block 1 - 8, but not the boot block. If the Boot Block Lockout
has not been enabled, the Chip Erase function will erase the entire chip. After the full chip erase
the device will return back to read mode. Any command during chip erase will be ignored.
4.3.2 Sector Erase
As an alternative to a full chip erase, the device is organized into sectors that can be individually
erased. There are two 8K-byte parameter block sections and eight main memory blocks. The
8K-byte parameter block sections and the eight main memory blocks can be independently
erased and reprogrammed. The Sector Erase command is a six bus cycle operation. The sector
address is latched on the rising WE
edge of the sixth cycle while the 30H data input command is
also latched at the rising edge of WE
. The sector erase starts after the rising edge of WE of the
sixth cycle. The erase operation is internally controlled; it will automatically time to completion.
4.4 Byte Programming
Once the memory array is erased, the device is programmed (to a logical “0”) on a byte-by-byte
basis. Please note that a data “0” cannot be programmed back to a “1”; only erase operations
can convert “0”s to “1”s. Programming is accomplished via the internal device command register
and is a 4 bus cycle operation (please refer to the “Command Definition Table” on page 6). The
device will automatically generate the required internal program pulses.
The program cycle has addresses latched on the falling edge of WE
or CE, whichever occurs
last, and the data latched on the rising edge of WE
or CE, whichever occurs first. Programming
is completed after the specified t
BP
cycle time. The DATA polling feature may also be used to
indicate the end of a program cycle.
5
3358C–FLASH–3/05
AT49BV040A
4.5 Boot Block Programming Lockout
The device has one designated block that has a programming lockout feature. This feature pre-
vents programming of data in the designated block once the feature has been enabled. The size
of the block is 16K bytes. This block, referred to as the boot block, can contain secure code that
is used to bring up the system. Enabling the lockout feature will allow the boot code to stay in the
device while data in the rest of the device is updated. This feature does not have to be activated;
the boot block’s usage as a write protected region is optional to the user. The address range of
the boot block is 00000 to 03FFF.
Once the feature is enabled, the data in the boot block can no longer be erased or programmed.
Data in the main memory block can still be changed through the regular programming method.
To activate the lockout feature, a series of six program commands to specific addresses with
specific data must be performed. Please refer to the “Command Definition Table” on page 6.
4.5.1 Boot Block Lockout Detection
A software method is available to determine if programming of the boot block section is locked
out. When the device is in the software product identification mode (see “Software Product Iden-
tification Entry and Exit” sections) a read from address location 00002H will show if
programming the boot block is locked out. If the data on I/O0 is low, the boot block can be pro-
grammed; if the data on I/O0 is high, the program lockout feature has been activated and the
block cannot be programmed. The software product identification code should be used to return
to standard operation.
4.6 Product Identification
The product identification mode identifies the device and manufacturer as Atmel. It may be
accessed by hardware or software operation. The hardware operation mode can be used by an
external programmer to identify the correct programming algorithm for the Atmel product.
For details, see Operating Modes (for hardware operation) or Software Product Identification.
The manufacturer and device code is the same for both modes.
4.7 DATA Polling
The AT49BV040A features DATA polling to indicate the end of a program cycle. During a pro-
gram cycle an attempted read of the last byte loaded will result in the complement of the loaded
data on I/O7. Once the program cycle has been completed, true data is valid on all outputs and
the next cycle may begin. DATA
polling may begin at any time during the program cycle.
4.8 Toggle Bit
In addition to DATA polling the AT49BV040A provides another method for determining the end
of a program or erase cycle. During a program or erase operation, successive attempts to read
data from the device will result in I/O6 toggling between one and zero. Once the program cycle
has completed, I/O6 will stop toggling and valid data will be read. Examining the toggle bit may
begin at any time during a program cycle.
4.9 Hardware Data Protection
Hardware features protect against inadvertent programs to the AT49BV040A in the following
ways: (a) V
CC
sense: if V
CC
is below 1.8V (typical), the program function is inhibited. (b) Program
inhibit: holding any one of OE
low, CE high or WE high inhibits program cycles. (c) Noise filter:
pulses of less than 15 ns (typical) on the WE
or CE inputs will not initiate a program cycle.
6
3358C–FLASH–3/05
AT49BV040A
Notes: 1. The DATA FORMAT in each bus cycle is as follows: I/O7 - I/O0 (Hex). The address format in each bus cycle is as follows:
A11 - A0 (Hex); A11 - A18 (don’t care).
2. Since A11 is don’t care, AAA can be replaced with 2AA.
3. The 16K byte boot sector has the address range 00000H to 03FFFH.
4. Either one of the Product ID Exit commands can be used.
5. SA = sector addresses:
SA = 00000 to 03FFF for BOOT BLOCK
SA = 04000 to 05FFF for PARAMETER BLOCK 1
SA = 06000 to 07FFF for PARAMETER BLOCK 2
SA = 08000 to FFFF for MAIN MEMORY ARRAY BLOCK 1
SA = 10000 to 1FFFF for MAIN MEMORY ARRAY BLOCK 2
SA = 20000 to 2FFFF for MAIN MEMORY ARRAY BLOCK 3
SA = 30000 to 3FFFF for MAIN MEMORY ARRAY BLOCK 4
SA = 40000 to 4FFFF for MAIN MEMORY ARRAY BLOCK 5
SA = 50000 to 5FFFF for MAIN MEMORY ARRAY BLOCK 6
SA = 60000 to 6FFFF for MAIN MEMORY ARRAY BLOCK 7
SA = 70000 to 7FFFF for MAIN MEMORY ARRAY BLOCK 8
5. Command Definition Table
Command
Sequence
Bus
Cycles
1st Bus
Cycle
2nd Bus
Cycle
3rd Bus
Cycle
4th Bus
Cycle
5th Bus
Cycle
6th Bus
Cycle
Addr Data Addr Data Addr Data Addr Data Addr Data Addr Data
Read 1 Addr D
OUT
Chip Erase 6 555 AA AAA
(2)
55 555 80 555 AA AAA 55 555 10
Sector Erase 6 555 AA AAA 55 555 80 555 AA AAA 55 SA
(5)
30
Byte Program 4 555 AA AAA 55 555 A0 Addr D
IN
Boot Block Lockout
(3)
6 555 AA AAA 55 555 80 555 AA AAA 55 555 40
Product ID Entry 3 555 AA AAA 55 555 90
Product ID Exit
(4)
3 555 AA AAA 55 555 F0
Product ID Exit
(4)
1 XXX F0
6. Absolute Maximum Ratings
Temperature Under Bias................................ -55°C to +125°C
*NOTICE: Stresses beyond those listed under “Absolute Maxi-
mum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional
operation of the device at these or any other condi-
tions beyond those indicated in the operational sec-
tions of this specification is not implied. Exposure to
absolute maximum rating conditions for extended
periods may affect device reliability.
Storage Temperature ..................................... -65°C to +150°C
All Input Voltages
(including NC Pins)
with Respect to Ground ...................................-0.6V to +6.25V
All Output Voltages
with Respect to Ground .............................-0.6V to V
CC
+ 0.6V
Voltage on OE
with Respect to Ground ...................................-0.6V to +13.5V

AT49BV040A-90JI

Mfr. #:
Manufacturer:
Description:
IC FLASH 4M PARALLEL 32PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union