
W78E52
Publication Release Date: October 1997
- 7 -
Revision A3
Option Setting
Users write programs into the W78E52 by using the Winbond proprietary writer. The writer programs
the data into an internal 8 KB region and reads the data back for verification. After confirming that the
program is correct, the user can lock the data so that they can no longer be read.
Lock Bit
This bit is used to protect the customer data in the W78E52. It may be turned on after the
programmer finishes the programming and verify sequence. Once this bit is set to logic 0, no flash
data can be accessed again.
MOVC Execute
This bit is used to restrict the region accessible to the MOVC instruction. It can prevent the program
from being downloaded using this instruction if the program needs to jump outside to get data. When
this bit is set to logic 0, a MOVC instruction in external program memory space will
access code in the external memory, but it will not be able to access code in the internal memory. A
MOVC instruction in internal program memory space will always be able to access code in both
internal and external memory. If this bit is logic 1, there are no restrictions on the MOVC instruction.
be
able
to
Flash Operations
In normal operation, the W78E52 is functionally compatible with the W78C52. In the flash operating
mode, the flash EEPROM can be programmed and verified repeatedly. Once the code inside the
flash EEPROM is confirmed, the code can be protected. The flash EEPROM and the operations on it
are described below.
All of the operations are configured by the pins RST, ALE, PSEN, A9CTRL (P3.0), A13CTRL (P3.1),
A14CTRL (P3.2), OECTRL (P3.3),
CE
(P3.6),
OE
(P3.7), A0 (P1.0) and V
PP
(
EA
). In these
operations, A15 to A0 (P2.7 to P2.0, P1.7 to P1.0) and D7 to D0 (P0.7 to P0.0) serve as the address
and data bus, respectively.
Read Operation
This operation enables customers to read their codes and the option bits. The data will not be valid if
the lock bit is programmed to low.
Program Operation
This operation is used to program data to the flash EEPROM and the option bits. Programming is
initiated when V
PP
reaches V
CP
(12V) level,
CE
is set to low, and
OE
is set to high.
Program Verify Operation
All data must be checked after programming. This operation should be performed after each byte is
programmed, and it will ensure a substantial program margin.