English
Language : 

W925E240 Datasheet, PDF (21/73 Pages) Winbond – 8-BIT CID MICROCONTROLLER
W925E/C240
P4H:
Port4 pins pull-high resistor enable/disable
1: enable
0: disable
PORT 4
(initial = FFH,input mode)
Bit:
7
P4.7
Mnemonic: P4
6
P4.6
5
P4.5
4
P4.4
3
2
1
P4.3 P4.2 P4.1
Address: A6h
0
P4.0
P4.7-0: Port 4 is an I/O port with internal pull-high resistor. P4 can be selected as input or output mode
by the P4IO register. At initial reset, P4IO is set to 0FFh, P4 is used as input mode. When
P4IO is set to 00h, P4 is used as CMOS output mode. Special function of P4 is described
below.
P4.4
VPOS
Positive input of the comparator
P4.2
VNEG
Negative input of the comparator
P4.1
SDATA Serial port data I/O
P4.0
SCLK
Serial port clock I/O with Smith trigger in input path
INTERRUPT ENABLE
Bit:
7
6
5
EA
ES1
-
(initial = 00H)
4
3
2
1
0
-
ET1 EX1 ET0 EX0
Mnemonic: IE
EA: Global enable. Enable/disable all interrupts.
ES1: Enable Serial port interrupt
ET1: Enable Timer 1 interrupt
EX1: Enable external interrupt 1
ET0: Enable Timer 0 interrupt
EX0: Enable external interrupt 0
Address: A8h
P4 I/O PORT CONTROL
(initial = FFH)
Bit:
7
6
5
4
3
2
1
0
P4.7IO P4.6IO P4.5IO P4.4IO P4.3IO P4.2IO P4.1IO P4.0IO
Mnemonic: P4IO
P4IO: P4 pins I/O control.
1: input mode
0: output mode
Address: AEh
- 21 -
Publication Release Date: July 12, 2005
Revision A10