English
Language : 

W77LE516 Datasheet, PDF (20/89 Pages) Winbond – 8-BIT MICROCONTROLLER
W77LE516/W77L516A
other words, device is not indeed in IDLE mode is set bit PCON.1 while ISP is enabled. Clear
this bit to disable ISP mode, device get back to normal operation including IDLE state.
Software Reset
Set CHPCON = 0X83, timer and enter IDLE mode. CPU will reset and restart from APFLASH after
time out.
PORT 2
Bit:
7
6
5
4
3
2
1
0
P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0
Mnemonic: P2
Address: A0h
P2.7-0: Port 2 is a bi-directional I/O port with internal pull-ups. This port also provides the upper
address bits for accesses to external memory.
PORT 4 CHIP-SELECT POLARITY
Bit:
7
6
5
4
3
2
1
0
P43INV P42INV P42INV P40INV -
-
-
P0UP
Mnemonic: P4CSIN
Address: A2h
P4xINV: The active polarity of P4.x when set it as chip-select signal. High = Active High. Low = Active
Low.
P0UP: Enable Port 0 weak pull up.
PORT 4
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
P4.3 P4.2 P4.1 P4.0
Mnemonic: P4
Address: A5h
P4.3-0: Port 4 is a bi-directional I/O port with internal pull-ups. Port 4 can not use bit-addressable
instruction (SETB or CLR).
INTERRUPT ENABLE
Bit:
7
6
5
4
3
2
1
0
EA
ES1 ET2
ES
ET1 EX1 ET0 EX0
Mnemonic: IE
Address: A8h
EA:
ES1:
ET2:
ES:
ET1:
EX1:
ET0:
Global enable. Enable/disable all interrupts except for PFI.
Enable Serial Port 1 interrupt.
Enable Timer 2 interrupt.
Enable Serial Port 0 interrupt.
Enable Timer 1 interrupt
Enable external interrupt 1
Enable Timer 0 interrupt
- 20 -