6.8 Software Data Protection
A software-controlled data protection feature is available on the AT28HC64B/AT28HC64BF. When enabled, the software data protection (SDP) will prevent inadvertent writes. The SDP feature may be enabled or disabled by the user; the AT28HC64B/AT28HC64BF are shipped from Microchip with SDP disabled.
SDP is enabled when the user issues a series of three write commands in which three specific bytes of data are written to three specific addresses (see Software Data Protection Enable Algorithm and Software Data Protection Disable Algorithm). After writing the 3-byte command sequence and waiting tWC, the entire AT28HC64B/AT28HC64BF 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/AT28HC64BF 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 transitions do not disable SDP, and SDP protects the AT28HC64B/AT28HC64BF during power-up and power-down conditions. All command sequences must conform to the page write timing specifications. The data in the enable and disable command sequences are 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 duration of tWC, read operations will effectively be polling operations.