■ 4-Kbit ferroelectric random access memory (F-RAM) logically
organized as 512 × 8
❐ High-endurance 100 trillion (10
❐ 151-year data retention (See the Data Retention and
14
) read/writes
Endurance table)
❐ NoDelay™ writes
❐ Advanced high-reliability ferroelectric process
■ Fast 2-wire Serial interface (I
❐ Up to 1-MHz frequency
❐ Direct hardware replacement for serial (I
❐ Supports legacy timings for 100 kHz and 400 kHz
■ Low power consumption
❐ 100 A active current at 100 kHz
❐ 4 A (typ) standby current
■ Voltage operation: V
■ Industrial temperature: –40 C to +85 C
■ 8-pin small outline integrated circuit (SOIC) package
■ Restriction of hazardous substances (RoHS) compliant
DD
2
C)
= 4.5 V to 5.5 V
2
C) EEPROM
The FM24C04B is a 4-Kbit nonvolatile memory employing an
advanced ferroelectric process. A ferroelectric random access
memory or F-RAM is nonvolatile and performs reads and writes
similar to a RAM. It provides reliable data retention for 151 years
while eliminating the complexities, overhead, and system-level
reliability problems caused by EEPROM and other nonvolatile
memories.
Unlike EEPROM, the FM24C04B performs write operations at
bus speed. No write delays are incurred. Data is written to the
memory array immediately after each byte is successfully
transferred to the device. The next bus cycle can commence
without the need for data polling. In addition, the product offers
substantial write endurance compared with other nonvolatile
memories. Also, F-RAM exhibits much lower power during writes
than EEPROM since write operations do not require an internally
elevated power supply voltage for write circuits. The FM24C04B
is capable of supporting 10
14
read/write cycles, or 100 million
times more write cycles than EEPROM.
These capabilities make the FM24C04B ideal for nonvolatile
memory applications, requiring frequent or rapid writes.
Examples range from data logging, where the number of write
cycles may be critical, to demanding industrial controls where the
long write time of EEPROM can cause data loss. The
combination of features allows more frequent data writing with
less overhead for the system.
The FM24C04B provides substantial benefits to users of serial
2
C) EEPROM as a hardware drop-in replacement. The device
(I
specifications are guaranteed over an industrial temperature
range of –40 C to +85 C.
Cypress Semiconductor Corporation•198 Champion Court•San Jose, CA 95134-1709•408-943-2600
Document Number: 001-84446 Rev. *D Revised February 19, 2014
Cypress Developer Community .................................17
Technical Support .....................................................17
Document Number: 001-84446 Rev. *D Page 2 of 17
FM24C04B
Pinout
WP
SCL
1
2
3
4
5
NC
8
7
6
V
DD
SDA
A1
Top View
not to scale
V
SS
A2
Figure 1. 8-pin SOIC pinout
Pin Definitions
Pin NameI/O TypeDescription
A2-A1InputDevice Select Address 2-1. These pins are used to select one of up to 4 devices of the same type on
the same I
sponding bits contained in the slave address. The address pins are pulled down internally.
SDAInput/Output Serial Data/Address. This is a bi-directional pin for the I
to be wire-AND'd with other devices on the I2C bus. The input buffer incorporates a Schmitt trigger for
noise immunity and the output driver includes slope control for falling edges. An external pull-up resistor
is required.
SCLInputSerial Clock. The serial clock pin for the I
edge, and into the device on the rising edge. The SCL inp ut also incorporates a Schmitt trigger in put
for noise immunity.
WPInputWrite Protect. When tied to V
WP is connected to ground, all addresses are write enabled. This pin is pulled down internally.
V
SS
V
DD
Power supply Ground for the device. Must be connected to the ground of the system.
Power supply Power supply input to the device.
2
C bus. To select the device, the address value on the three pins must match the corre-
2
C interface. It is open-drain and is intended
2
C interface. Data is clocked out of the device on the falling
, addresses in the entire memory map will be write-protected. When
DD
Document Number: 001-84446 Rev. *D Page 3 of 17
FM24C04B
Overview
Microcontroller
Vcc
SDA
SCL
Vcc
Vcc
1A1A1A
A2
A2
A2
LCSLCSLCS
SDA
ADSADS
PWPWPW
#0
#1
#3
R
Pmin
= (VDD - VOLmax) / I
OL
R
Pmax
= tr / (0.8473 * Cb)
The FM24C04B is a serial F-RAM memory. The memory array
is logically organized as 512 × 8 bits and is accessed using an
industry-standard I
F-RAM is similar to serial (I
between the FM24C04B and a serial (I
2
C interface. The functional operation of the
2
C) EEPROM. The major difference
2
C) EEPROM with the
same pinout is the F-RAM's superior wri te performance, high
endurance, and low power consumption.
Memory Architecture
When accessing the FM24C04B, the user addresses 512
locations of eight data bits each. These eight data bits are shifted
in or out serially. The addresses are accessed using the I
protocol, which includes a slave address (to distinguish other
non-memory devices), a page address bit, and a word address.
The word address consists of 8-bits that specify one of the 256
addresses. The page address is 1-bit and so there are 2 pages
of 256 locations. The complete address of 9-bits specifies each
byte address uniquely.
The access time for the memory operation is essentially ze ro,
beyond the time needed for the serial protocol. That is, the
memory is read or written at the speed of the I
2
serial (I
C) EEPROM, it is not necessary to poll the device for a
2
C bus. Unlike a
ready condition because writes occur at bus speed. By the time
2
a new bus transaction can be shifted into the device, a write
operation is complete. This is explained in more detail in the
interface section.
Note that the FM24C04B contains no power management
circuits other than a simple internal power-on reset. It is the
user’s responsibility to ensure that V
tolerances to prevent incorrect operation.
is within data sheet
DD
I2C Interface
The FM24C04B employs a bi-directional I2C bus protocol using
few pins or board space. Figure 2 illustrates a typical system
configuration using the FM24C04B in a microcontroller-based
system. The industry standard I
C
but is described in this section.
By convention, any device that is sending data onto the bus is
the transmitter while the target device for this data is the receiver.
The device that is controlling the bus is the master. The master
is responsible for generating the clock signal for all operations.
Any device on the bus that is being controlled i s a slave. The
FM24C04B is always a slave device.
The bus protocol is controlled by transition states in the SDA and
SCL signals. There are four conditions including START, STOP,
data bit, or acknowledge. Figure 3 and Figure 4 illustrates the
signal conditions that specify the four states. Detailed timing
diagrams are shown in the electrical specifications section.
2
C bus is familiar to many users
STOP Condition (P)
A STOP condition is indicated when th e bu s ma ste r dri v e s SDA
from LOW to HIGH while the SCL signal is HIGH. All operations
using the FM24C04B should end with a STOP condition. If an
operation is in progress when a STOP is asserted, the operation
will be aborted. The master must have control of SDA in order to
assert a STOP condition.
Document Number: 001-84446 Rev. *D Page 4 of 17
Figure 2. System Configuration using Serial (I
2
C) nvSRAM
START Condition (S)
A STAR T condition is indicated when the bus master drives SDA
from HIGH to LOW while the SCL signal is HIGH. All commands
should be preceded by a START condition. An operation in
progress can be aborted by asserting a START condition at any
time. Aborting an operation using the STAR T condition will ready
the FM24C04B for a new operation.
If during operation the power supply drops below the specified
V
DD
to performing another operation.
minimum, the system should issue a START condition prior
FM24C04B
Figure 3. START and STOP Conditions
full pagewidth
SDA
SCL
P
STOP Condition
SDA
SCL
S
START Condition
handbook, full pagewidth
S
or
P
SDA
S
P
SCL
STOP or
START
condition
S
START
condition
234 - 89
ACK
9
ACK
78
12
MSB
Acknowledgement
signal from slave
Byte complete
Acknowledgement
signal from receiver
1
handbook, full pagewidth
S
START
Condition
9821
Clock pulse for
acknowledgement
No Acknowledge
Acknowledge
DATA OUTPUT
BY MASTER
DATA OUTPUT
BY SLAVE
SCL FROM
MASTER
Figure 4. Data Transfer on the I2C Bus
Data/Address Transfer
All data transfers (including addresses) take place while the SCL
signal is HIGH. Except under the three conditions described
above, the SDA signal should not change while SCL is HIGH.
Acknowledge / No-acknowledge
The acknowledge takes place after the 8th data bit has been
transferred in any transaction. During this state the transmitter
should release the SDA bus to allow the receiver to drive it. The
receiver drives the SDA signal LOW to acknowledge receipt of
the byte. If the receiver does not drive SDA LOW, the condition
is a no-acknowledge and the operation is aborted.
The receiver would fail to acknowledge for two distinct reasons.
First is that a byte transfer fails. In this case, the no-acknowledge
ceases the current operation so that the device can be
addressed again. This allows the last byte to be recovered in the
event of a communication error.
Second and most common, the receiver does not acknowledge
to deliberately end an operation. For example, during a read
operation, the FM24C04B will continue to place data onto the
bus as long as the receiver sends acknowledges (and clocks).
When a read operation is complete and no more data is needed,
the receiver must not acknowledge the last byte. If the receiver
acknowledges the last byte, this will cause the FM24C04B to
attempt to drive the bus on the next clock while the master is
sending a new command such as STOP.
Figure 5. Acknowledge on the I2C Bus
Document Number: 001-84446 Rev. *D Page 5 of 17
FM24C04B
Slave Device Address
handbook, halfpage
R/W
LSBMSB
Slave ID
10
1
0
A2A0A1
Device
Select
Page
select
SASlave Address0
Word Address
AData ByteA P
By Master
By F-RAM
StartAddress & DataStop
Acknowledge
The first byte that the FM24C04B expects after a START
condition is the slave address. As shown in Figure 6, the slave
address contains the device type or slave ID, the device select
address bits, a page select bit, and a bit that specifies if the
transaction is a read or a write.
Bits 7-4 are the device type (slave ID) and should be set to 1010b
for the FM24C04B. These bits allow other function types to
reside on the I
2
C bus within an identical address range. Bits 3-2
are the device select address bits. They must match the corresponding value on the external address pins to select the device.
Up to four FM24C04B devices can reside on the same I
2
C bus
by assigning a different address to each. Bit 1 is the page select
bit. It specifies the 256-byte block of memory that is targeted for
the current operation. Bit 0 is the read/write bit (R/W
indicates a read operation and R/W
= ‘0’ indicates a write
). R/W = ‘1’
operation.
Figure 6. Memory Slave Device Address
Addressing Overview (Word Address)
After the FM24C04B (as receiver) acknowledges the slave
address, the master can place the word address on the b us for
a write operation. The word address is the lower 8-bits of the
address to be combined with the 1-bit page select to specify
exactly the byte to be written. The complete 9-bit address is
latched internally. No word address occurs for a read operation.
Reads always use the lower 8-bits that are held internally in the
address latch and the 9th address bit is part of the slave address.
Reads always begin at the address following the previous
access. A random read address can be loaded by doing a write
operation as explained below.
After transmission of each data byte, just prior to the
acknowledge, the FM24C04B increments the internal address
latch. This allows the next sequential byte to be accessed with
no additional addressing. After the last address (1FFh) is
reached, the address latch will roll over to 000h. There is no limit
to the number of bytes that can be accessed with a single read
or write operation.
Data Transfer
After the address bytes have been transmitted, data transfer
between the bus master and the FM24C04B can begin. F or a
read operation the FM24C04B will place 8 data bits on the bus
then wait for an acknowledge from the master. If the
acknowledge occurs, the FM24C04B will transfer the next
sequential byte. If the acknowledge is not sent, the FM24C04B
will end the read operation. For a write operation, the FM24C04B
will accept 8 data bits from the master then send an
acknowledge. All data transfer occurs MSB (most significant bit)
first.
Memory Operation
The FM24C04B is designed to operate in a manner very similar
to other I
result from the higher performance write capability of F-RAM
technology. These improvements result in some differences
between the FM24C04B and a similar configuration EEPROM
during writes. The complete operation for both writes and reads
is explained below.
Write Operation
All writes begin with a slave address, then a word address. The
bus master indicates a write operation by setting the LSB of the
slave address (R/W
sends each byte of data to the memory and the memory
generates an acknowledge condition. Any number of sequential
bytes may be written. If the end of the address range is reached
internally, the address counter will wrap from 1FFh to 000h.
Unlike other nonvolatile memory technologies, there is no
effective write delay with F-RAM. Since the read and write
access times of the underlying memory are the same, the user
experiences no delay through the bus. The entire memory cycle
occurs in less time than a single bus clock. Therefore, any
operation including read or write can occur immediately following
a write. Acknowledge polling, a technique used with EEPROMs
to determine if a write is complete is unnecessary and will always
return a ready condition.
Internally, an actual memory write occurs after the 8th data bit is
transferred. It will be complete before the acknowledge is sent.
Therefore, if the user desires to abort a write without altering the
memory contents, this should be done using START or STOP
condition prior to the 8th data bit. The FM24C04B uses no page
buffering.
The memory array can be write-protected using the WP pin.
Setting the WP pin to a HIGH condition (V
all addresses. The FM24C04B will not acknowledge data bytes
that are written to protected addresses. In addition, the address
counter will not increment if writes are attempted to these
addresses. Setting WP to a LOW state (V
protect. WP is pulled down internally.
Figure 7 and Figure 8 below illustrate a single-byte and
multiple-byte write cycles.
2
C interface memory products. The major differences
bit) to a '0'. After addressing, the bus master
) will write-protect
DD
) will disable the write
SS
Document Number: 001-84446 Rev. *D Page 6 of 17
Figure 7. Single-Byte Write
Loading...
+ 11 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.