Академический Документы
Профессиональный Документы
Культура Документы
Read Array
Figure 1
The Read Array is the default mode.
BUS Read The flash memory enters this mode upon
power-up. It stays in this mode until a valid
command is received that puts it in a different
The read interface of a typical flash
mode. While in this mode, all read operations
memory is identical to a standard EPROM.
return memory contents. This is exactly
The address is applied along with an active
what an EPROM does, and unless
low control signal, CE# . After the tACC, the
commanded otherwise, the flash will act just
data will be available, and the Output Enable
like an EPROM. Incidentally, disabling the
(OE#) input will gate the data onto the bus.
WE# input (tying it high) will prevent any
This data will usually be the contents of the
commands from being received, so the flash
addressed location, but it can also be status
will always be in the Read Array mode.
information about a program or erase
operation. The current operating mode
Since Read Array is the default mode,
selects what is placed on the bus in response
the rest of the command sequences discussed
to a read.
will assume that the flash is in Read Array.
Read Status
Finished
Programming
? Both program and erase operations
post their results in the status register. When
Yes
the flash receives the data 0x70, it enters the
Return Read Status mode. In this mode, any read
operation returns the contents of the status
register.
Figure 2
Upon receiving a valid program PROTECTION
sequence the WSM turns on the charge
pumps and programs the location. It does this Flash devices incorporate some form
by internally applying program pulses until of protection. The concern is that if a
the location verifies correctly. Once the processor were operating in some erroneous
location is verified, it reflects this successful way, it could erroneously issue program or
operation in the status register. Failure of the erase commands to the flash memory. To
programming operation sets one or more error prevent this, a flash memory will usually
flags. Once begun, all this happens without support some combination of two basic types
the intervention of the external controller, and of protection schemes: hardware and
for a typical location in a new device, takes software.
about 10 microseconds.
A hardware scheme requires that
Most flash memories can only do one specific voltages be applied to pins on the
thing at a time, so while a location is being device before the device can be altered. The
programmed or erased, the rest of the device voltages can be TTL logic levels or some
is unavailable. This means that a CPU cannot special voltage like 12v, and the pins can be
execute code from a flash that is not in the dedicated or shared with other functions. An
Read Array mode. Systems with other example of hardware protection is the VPP pin
execution memory locate the low-level flash
driver there. Those without typically copy a
on a flash memory; if no voltage is applied,
the device will not program or erase. The boot code is in a separate block
so that data or application code can be erased
and reprogrammed without affecting the boot
BYTE
ADDRESS program.
0x3FFFF
128 K B
SUSPEND FEATURES
M A IN S E G M E N T
C O D E or D A TA
Normally, the boot code will be Flash, EEPROM and EPROM all
located in one segment, the application code store data the same way. Figure 4 shows a
placed in several other segments and some simplified diagram of one of these cells. It is
non-volatile data stored in another. Figure 3 a N-channel transistor with a second gate, the
shows an address map of an Intel 28F200. Floating Gate, sandwiched between the
Its blocks are sized to fulfill these three Control Gate, and the channel.
functions.
while the block is transferred out of the
The Control Gate (CG) is connected memory array and into an on-chip SRAM
to other circuitry and works like a normal buffer. It can be transferred out of the buffer
gate would. When sufficient positive voltage at a rate of 20 Mbytes/s.
is applied to it, greater than the threshold
voltage, the transistor turns on, and a The type of reading supported by an
conduction path will be established between architecture determines if the memory can be
the Source and the Drain. executed from. The former example supports
direct execution, or eXecution In Place (XIP),
The Floating Gate(FG) modulates the the latter does not.
affect of the CG. If the Floating Gate has a
sufficient negative charge, it will prevent the PROGRAMMING OR ERASING
transistor from turning on when the normal
threshold voltage is applied to the Control These devices store data by injecting
Gate. electrons onto the Floating Gate. On today’s
devices, a cell is programmed when
approximately 50,000 excess electrons are in
OXIDE the FG. They stay in the FG for 10 years or
CONTROL GATE more, because there is no conduction path to
FLOATING GATE
the FG--the FG is completely isolated from
the rest of the transistor. The only way for
SOURCE DRAIN electrons to get into it is for them to be driven
CHANNEL
through the oxide that surrounds the FG. The
cell is erased by removing the electrons.
FLASH
ARRAY
The Common Flash Interface allows
a single software driver to work with a variety
of flash components from different
manufacturers.
CFI COMPLIANT FLASH
MULTI-LEVEL CELL
The CFI data is stored in a separate ROM Multi-Level Cell (MLC) technology
located on-chip. The memory locations in the
ROM do not detract from the size of the array. stores two bits in a single flash memory
This illustration shows a 2 Mbit device that transistor, twice the density of existing
supports CFI. It has a 2 Mbit Flash array and a
ROM with about 50 locations. When 0x98 is devices that store one bit. An MLC flash
written to 0x0005, the interface is switched memory with
over to the ROM. To access the Flash again,
write 0xFF to location 0x0005.
Charge on the Floating Gate
00
Figure 5
0
01
PROGRAMMING ALGORITHMS
'373 LATCHES
tools that support it.
ADDRESS
TAPPING INTO THE INTERFACE LOGIC
FLASH MEMORY
If the CPU does not support a back
door into the bus, perhaps the interface logic
LOGIC / PLD
CE#
CONTROL
will. Figure 7 shows a block diagram of a OE#
CPU
typical system. There are latches and drivers WE#
for the address lines; there is some logic to
generate and drive control signals, and
buffers on the data bus. Some systems
'245 XCEIVERS
DATA BUS
incorporate this into a single PLD, others use
octal devices and no logic.
MECHANICAL OVERVIEW
Figure 9
A Type I PC Card is 3.3 mm thick, 54
Designing a socket with restricted
mm wide and 85.6 mm long. It uses a
access is easier and less expensive. A socket
polarized, 68 pin connector. The host socket
without an eject mechanism, like the one in
has male contacts; the card has female
Figure 9, can be mounted inside the system,
contacts.
and some or all of the electrical issues are
eliminated.
Selecting a PC Card Socket
• No cabling will be necessary because
If inserting and/or removing the card
the socket can be mounted in a
will be part of the system’s normal operation,
location that is convenient for the
then the user must have ready access to the
designer—on the host PCB.
socket. User accessibility raises several
electrical issues.
• Hot-swapping can be implemented
only if the designer chooses.
• Since the socket and hence the
interface will be located near the
products cabinet, cabling may be • Inserting the wrong kind of card is
required to connect the PC Card less likely if a cover or access plate
socket to the host PCB. It will must be removed to get to the socket.
Voltage Keying
Card Detect
PC Card socket are polarized to
prevent a card from being inserted upside- These two card outputs are connected
down. They are also keyed to prevent to ground on the card. They have shorter pins
mismatch between the card’s VCC requirement in the host connector than the other signals,
and the host’s capability. There are two keys, so they make contact after all the others.
5 volt and low volt; they are illustrated in They are located at opposite ends of the
Figure 10. Besides keying, there are signals connector. When the socket sees both CD1#
from the card to tell the host what the VCC and CD2# asserted, it is safe to assume the
requirements of the PC card are. Today, most other signals are connected, and the card is
flash PC Cards support 5v operation. installed.
Voltage Sense
2 74HCT245
(PCICs) are single-chip controllers that
D0-D15 handle all of the signals in a PC Card socket.
In addition to buffering the address, data and
PC Card Socket
Host CPU Memory Bus
An embedded system can write data to the Flash memory, both in card and
card in a way that is convenient for it. The component form, add flexibility to the
flash-to-File utility will transfer the contents manufacturing process and benefits to the end
of the card verbatim to a file on disk. A user. All with adding little or no cost.
special application on the PC that uses the
data can read it off the disk.
GENERAL PURPOSE
The PCMCIA Developer's Guide Second Edition, Mori, Michael and W. Welder
available from PCMCIA
The PC Card Standard, PCMCIA, 2635 N. First St., Suit 209, San Jose, CA 95134 (408) 433 2273
SOFTWARE
F2FLSH AND FLSH2F, File to PC Card transfer utility for PC Cards that use Intel components
http://cove.intel.com/template/design/tpvtool/list.cfm?architecture=7
EMBED, File to PC Card transfer utility for PC Cards that use Advanced Micro Devices* components
http://www.amd.com/products/nvd/tools/embed.html
* Third-party marks and brands are the property of their respective owners