English
Language : 

W78E365 Datasheet, PDF (9/40 Pages) Winbond – 8-BIT MICROCONTROLLER
W78E365
Continued
B8
+IP
00000000
B0
+P3
00000000
A8
+IE
00000000
A0
+P2
XRAMAH
11111111 00000000
98
+SCON
SBUF
00000000 xxxxxxxx
90
+P1
11111111
88
+TCON
TMOD
TL0
TL1
00000000 00000000 00000000 00000000
80
+P0
11111111
SP
00000111
DPL
00000000
DPH
00000000
P43AL
00000000
P42AL
00000000
P41AL
00000000
TH0
00000000
P40AL
00000000
P43AH
00000000
P42AH
00000000
P41AH
00000000
TH1
00000000
P40AH
00000000
Notes:
1. The SFRs marked with a plus sign(+) are both byte- and bit-addressable.
2. The text of SFR with bold type characters are extension function registers.
P4CSIN
00000000
AUXR
00000000
POR
00000000
CHPCON
0xx00000
WDTC
00000000
PCON
00110000
6.6 Port 4
Port 4, address D8H, is a 8-bit multipurpose programmable I/O port. Each bit can be configured
individually by software. The Port 4 has four different operation modes.
Mode 0: P4.0−P4.3 is a bi-directional I/O port which is same as port 1. P4.2 and P4.3 also serve as
external interrupt PSENand INT2 if enabled.
Mode 1: P4.0−P4.3 are read strobe signals that are synchronized with RD signal at specified
addresses. These signals can be used as chip-select signals for external peripherals.
Mode 2: P4.0−P4.3 are write strobe signals that are synchronized with WR signal at specified
addresses. These signals can be used as chip-select signals for external peripherals.
Mode 3: P4.0−P4.3 are read/write strobe signals that are synchronized with RD or WR signal at
specified addresses. These signals can be used as chip-select signals for external
peripherals.
When Port 4 is configured with the feature of chip-select signals, the chip-select signal address range
depends on the contents of the SFR P4xAH, P4xAL, P4CONA and P4CONB. The registers P4xAH
and P4xAL contain the 16-bit base address of P4.x. The registers P4CONA and P4CONB contain the
control bits to configure the Port 4 operation mode.
Publication Release Date: April 20, 2005
-9-
Revision A5