4
0274L–PEEPR–2/3/09
AT28HC64B
4.5 Toggle Bit
In addition to DATA Polling, the AT28HC64B provides another method for determining the end
of a write cycle. During the write operation, successive attempts to read data from the device
will result in I/O6 toggling between one and zero. Once the write has completed, I/O6 will stop
toggling, and valid data will be read. Toggle bit reading may begin at any time during the write
cycle.
4.6 Data Protection
If precautions are not taken, inadvertent writes may occur during transitions of the host system
power supply. Atmel® has incorporated both hardware and software features that will protect
the memory against inadvertent writes.
4.6.1 Hardware Protection
Hardware features protect against inadvertent writes to the AT28HC64B in the following ways:
(a) VCC sense – if VCC is below 3.8 V (typical), the write function is inhibited; (b) VCC power-on
delay – once VCC has reached 3.8 V, the device will automatically time out 5 ms (typical)
before allowing a write; (c) write inhibit – holding any one of OE low, CE high or WE high inhib-
its write cycles; and (d) noise filter – pulses of less than 15 ns (typical) on the WE or CE inputs
will not initiate a write cycle.
4.6.2 Software Data Protection
A software-controlled data protection feature has been implemented on the AT28HC64B.
When enabled, the software data protection (SDP), will prevent inadvertent writes. The SDP
feature may be enabled or disabled by the user; the AT28HC64B is shipped from Atmel with
SDP disabled.
SDP is enabled by the user issuing a series of three write commands in which three specific
bytes of data are written to three specific addresses (refer to the “Software Data Protection
Algorithm” diagram on page 10). After writing the 3-byte command sequence and waiting tWC,
the entire AT28HC64B will be protected against inadvertent writes. It should be noted that
even after SDP is enabled, the user may still perform a byte or page write to the AT28HC64B.
This is done by preceding the data to be written by the same 3-byte command sequence used
to enable SDP.
Once set, SDP remains active unless the disable command sequence is issued. Power transi-
tions do not disable SDP, and SDP protects the AT28HC64B during power-up and power-
down conditions. All command sequences must conform to the page write timing specifica-
tions. The data in the enable and disable command sequences is not actually written into the
device; their addresses may still be written with user data in either a byte or page write
operation.
After setting SDP, any attempt to write to the device without the 3-byte command sequence
will start the internal write timers. No data will be written to the device, however. For the dura-
tion of tWC, read operations will effectively be polling operations.
4.7 Device Identification
An extra 64 bytes of EEPROM memory are available to the user for device identification. By
raising A9 to 12 V ±0.5 V and using address locations 1FC0H to 1FFFH, the additional bytes
may be written to or read from in the same manner as the regular memory array.