w78l365a Winbond Electronics Corp America, w78l365a Datasheet - Page 10

no-image

w78l365a

Manufacturer Part Number
w78l365a
Description
8-bit Microcontroller
Manufacturer
Winbond Electronics Corp America
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
w78l365a24DL
Manufacturer:
WINBOND/华邦
Quantity:
20 000
Part Number:
w78l365a24FL
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
w78l365a24PL
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
w78l365a24PL
Manufacturer:
WINBOND/华邦
Quantity:
20 000
5.6
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
Mode 1: P4.0−P4.3 are read strobe signals that are synchronized with RD signal at specified
Mode 2: P4.0−P4.3 are write strobe signals that are synchronized with WR signal at specified
Mode 3: P4.0−P4.3 are read/write strobe signals that are synchronized with RD or WR signal at
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.
The high nibble of port4(P4.4 to P4.7) can be selected to serve to the direct LED display drive outputs
by setting the HDx bit is set, the corresponding pin p4.x can sink about 20 mA current for driving LED
display directly.
5.6.1
HD47-44: Enable pins P4.4 to P4.7 individually with high drive outputs.
P0UP: Enable Port 0 weak up. The pins of Port 0 can be configured with either the open drain or
standart port with internal pull-up. By the default, Port 0 is an open drain bi-directional I/O port. When
the P0UP bit in the POR register is set, the pins of port 0 will perform a bi-directional I/O port with
internal pull-up that is structurally the same Port2.
5.6.2
Two additional external interrupts, INT2 and INT3 , whose functions are similar to those of external
interrupt 0 and 1 in the standard 80C52. The functions/status of these interrupts are
determined/shown by the bits in the XICON (External Interrupt Control) register. The XICON register is
bit-addressable but is not a standard register in the standard 80C52. Its address is at 0C0H. To
set/clear bits in the XICON register, one can use the "SETB ( CLR ) bit" instruction. For example,
"SETB 0C2H" sets the EX2 bit of XICON.
Port 4
Port Options Register
INT2
addresses. These signals can be used as chip-select signals for external peripherals.
specified addresses. These signals can be used as chip-select signals for external
peripherals.
external interrupt
addresses. These signals can be used as chip-select signals for external peripherals.
Bit:
/ INT3
7
-
PS
EN
6
-
Mnemonic: POR
and
INT
5
-
2
if enabled.
HD47
- 10 -
4
Address: 86H
HD46
3
W78LE365/W78L365A
Publication Release Date: April 28, 2008
HD45
2
HD44
1
P0UP
0
Revision A8

Related parts for w78l365a