8
www.fairchildsemi.com
FM34W02U Rev. A.1
F
w
Device Addressing
(Continued)
Slave Addresses (Figure 4).
Refer to the following table for Slave Address string details:
Device
A0
A1
A2
Page
Blocks
Page Block
Addresses
FM34W02U
A
A
A
1 (2K)
(None)
Write Operations
The last bit of the slave address defines whether a write or read
condition is requested by the master. A '1' indicates that a read
operation is to be executed, and a '0' initiates the write mode.
A simple review: After the FM34W02U recognizes the start
condition, the devices interfaced to the IIC bus wait for a slave
address to be transmitted over the SDA line. If the transmitted
slave address matches an address of one of the devices, the
designated slave pulls the SDA line LOW with an acknowledge
signal and awaits further transmissions.
Byte Write
For a write operation a second address field is required which is
a byte address that is comprised of eight bits and provides access
to any one of the 256 bytes in the selected page block of memory.
Upon receipt of the byte address the FM34W02U responds with
an acknowledge and waits for the next eight bits of data, again,
responding with an acknowledge. The master then terminates the
transfer by generating a stop condition, at which time the
FM34W02U begins the internal write cycle to the nonvolatile
memory. While the internal write cycle is in progress the FM34W02U
inputs are disabled, and the device will not respond to any
requests from the master. Refer to Figure 5 for the address,
acknowledge and data transfer sequence.
Page Write
The FM34W02U is capable of a sixteen byte page write operation.
It is initiated in the same manner as the byte write operation; but
instead of terminating the write cycle after the first data byte is
transferred, the master can transmit up to fifteen more bytes. After
acknowledge.
After the receipt of each byte, the internal address counter
increments to the next address and the next SDA data is accepted.
If the master should transmit more than sixteen bytes prior to
generating the stop condition, the address counter will 'roll over'
and the previously written data will be overwritten. As with the byte
write operation, all inputs are disabled until completion of the
internal write cycle. Refer to Figure 6 for the address, acknowl-
edge, and data transfer sequence.
Acknowledge Polling
Once the stop condition is issued to indicate the end of the host
’
s
write operation the FM34W02U initiates the internal write cycle.
ACK polling can be initiated immediately. This involves issuing the
start condition followed by the slave address for a write operation.
If the FM34W02U is still busy with the write operation no ACK will
be returned. If the FM34W02U has completed the write operation
an ACK will be returned and the host can then proceed with the
next read or write operation.
Software Write Protect
Software write protection on the FM34W02U protects the first 128
bytes of the EEPROM memory. Software write protection is
implemented through a seperate register called the WRITE PRO-
TECT (WP) Register and writing to this WP register permanently
WRITE protects the memory.
This WP register is a "one-time-
only-write" register. Once this register is written, it cannot be
erased. After the first WRITE to this register, all future access'
to this register are ignored as if an invalid IIC cycle occured.
To write protect, the user must perform a byte write to the WP
register. This will permanently disable programming to the first
128 bytes of memory.
Addressing the WP Register
Addressing the WP register is very similar to accessing any
memory array with the following difference:
Instead of the conventional "1010" IIC device address, the unused
IIC device address "0110" is used to access just the WP register.
Device address "1010" will be used for all the typical memory array
access. With this difference in place, accessing the WP register is
same as a typical IIC byte write cycle as described under "Write
Operations" section. All timing information and waveform details
remain the same. The "Byte Address" and the "Data" fields of the
Byte write cycle serve as place holders and can be of any value
(Don't Care). Refer to Figure 7.
Hardware Write Protect
Programming of the memory will not take place if the WP pin of the
FM34W02U is connected to V
CC
, regardless of whether the
software write protect register has been implemented or not. The
FM34W02U will accept slave and word addresses; but if the
memory accessed is write protected by the WP pin, the FM34W02U
will not generate an acknowledge after the first byte of data has
been received, and thus the program cycle will not be started when
the stop condition is asserted. (Note: if the WP pin is set to V
CC
,
it will prevent the software write protect register from being
written.)
Device Type
Identifier
Device
Address
1
0
1
0
A2
A1
A0
R/W
(LSB)
34W02