W77IE58
Publication Release Date: October 20, 2005
- 67 - Revision A5
Slave 2:
SADDR 1010 0111
SADEN 1111 1001
Given 1010 0xx1
The Given address for slave 1 and 2 differ in the LSB. For slave 1, it is a don't care, while for slave 2 it
is 1. Thus to communicate only with slave 1, the master must send an address with LSB = 0 (1010
0000). Similarly the bit 1 position is 0 for slave 1 and don't care for slave 2. Hence to communicate
only with slave 2 the master has to transmit an address with bit 1 = 1 (1010 0011). If the master
wishes to communicate with both slaves simultaneously, then the address must have bit 0 = 1 and bit
1 = 0. The bit 3 position is don't care for both the slaves. This allows two different addresses to select
both slaves (1010 0001 and 1010 0101).
The master can communicate with all the slaves simultaneously with the Broadcast Address. This
address is formed from the logical ORing of the SADDR and SADEN SFRs. The zeros in the result
are defined as don't cares In most cases the Broadcast Address is FFh. In the previous case, the
Broadcast Address is (1111111X) for slave 1 and (11111111) for slave 2.
The SADDR and SADEN SFRs are located at address A9h and B9h respectively. On reset, these two
SFRs are initialized to 00h. This results in Given Address and Broadcast Address being set as XXXX
XXXX(i.e. all bits don't care). This effectively removes the multiprocessor communications feature,
since any selectivity is disabled.
9. TIMED ACCESS PROTECTION
The W77IE58 has several new features, like the Watchdog timer, on-chip ROM size adjustment, wait
state control signal and Power on/fail reset flag, which are crucial to proper operation of the system. If
left unprotected, errant code may write to the Watchdog control bits resulting in incorrect operation
and loss of control. In order to prevent this, the W77IE58 has a protection scheme which controls the
write access to critical bits. This protection scheme is done using a timed access.
In this method, the bits which are to be protected have a timed write enable window. A write is
successful only if this window is active, otherwise the write will be discarded. This write enable window
is open for 3 machine cycles if certain conditions are met. After 3 machine cycles, this window
automatically closes. The window is opened by writing AAh and immediately 55h to the Timed
Access(TA) SFR. This SFR is located at address C7h. The suggested code for opening the timed
access window is
TA REG 0C7h ; define new register TA, located at 0C7h
MOV TA, #0AAh
MOV TA, #055h
When the software writes AAh to the TA SFR, a counter is started. This counter waits for 3 machine
cycles looking for a write of 55h to TA. If the second write (55h) occurs within 3 machine cycles of the
first write (AAh), then the timed access window is opened. It remains open for 3 machine cycles,
during which the user may write to the protected bits. Once the window closes the procedure must be
repeated to access the other protected bits.
Examples of Timed Assessing are shown below.
W77IE58
- 68 -
Example 1: Valid access
MOV TA, #0AAh 3 M/C Note: M/C = Machine Cycles
MOV TA, #055h 3 M/C
MOV WDCON, #00h 3 M/C
Example 2: Valid access
MOV TA, #0AAh 3 M/C
MOV TA, #055h 3 M/C
NOP 1 M/C
SETB EWT 2 M/C
Example 3: Valid access
MOV TA,#0AAh 3M/C
MOV TA,#055h 3M/C
ORL WDCON, #00000010B 3M/C
Example 4: Invalid access
MOV TA, #0AAh 3 M/C
MOV TA, #055h 3 M/C
NOP 1 M/C
NOP 1 M/C
CLR POR 2 M/C
Example 5: Invalid Access
MOV TA, #0AAh 3 M/C
NOP 1 M/C
MOV TA, #055h 3 M/C
SETB EWT 2 M/C
In the first two examples, the writing to the protected bits is done before the 3 machine cycle window
closes. In Example 3, however, the writing to the protected bit occurs after the window has closed,
and so there is effectively no change in the status of the protected bit. In Example 4, the second write
to TA occurs 4 machine cycles after the first write, therefore the timed access window in not opened at
all, and the write to the protected bit fails.
W77IE58
Publication Release Date: October 20, 2005
- 69 - Revision A5
10. ON-CHIP FLASH EPROM CHARACTERISTICS
The W77IE58 has several modes to program the on-chip ROM. All these 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 VPP(E
A
). Moreover, the A15A0(P2.7P2.0, P1.7P1.0) and the
D7D0(P0.7P0.0) serve as the address and data bus respectively for these operations.
Read Operation
This operation is supported for customer to read their code and the Security bits. The data will not
be valid if the Lock bit is programmed to low.
Output Disable Condition
When the OE is set to high, no data output appears on the D7…D0.
Program Operation
This operation is used to program the data to on-chip ROM and the security bits. Program operation is
done when the V
PP is reach to VCP (12.5V) level, CE set to low, and OE set to high.
Program Verify Operation
All the programming data must be checked after program operations. This operation should be
performed after each byte is programmed; it will ensure a substantial program margin.
Erase Operation
An erase operation is the only way to change data from 0 to 1. This operation will erase all the on-chip
ROM cells and the security bits from 0 to 1. This erase operation is done when the VPP is reach to
V
EP level, CE set to low, and OE set to high.
Erase Verify Operation
After an erase operation, all of the bytes in the chip must be verified to check whether they have been
successfully erased to 1 or not. The erase verify operation automatically ensures a substantial erase
margin. This operation will be done after the erase operation if V
PP = VEP(14.5V), CE is high and
OE is low.
Program/Erase Inhibit Operation
This operation allows parallel erasing or programming of multiple chips with different data. When
P3.6(
CE) = VIH, P3.7( OE ) = VIH, erasing or programming of non-targeted chips is inhibited. So,
except for the P3.6 and P3.7 pins, the individual chips may have common inputs.

W77I058A25PL

Mfr. #:
Manufacturer:
Description:
IC MCU 8BIT 32KB FLASH 44PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet