T89C51CC02 Atmel, T89C51CC02 Datasheet - Page 6

no-image

T89C51CC02

Manufacturer Part Number
T89C51CC02
Description
8-Bit MCU
Manufacturer
Atmel
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
T89C51CC02CA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02CA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SITIM
Manufacturer:
Atmel
Quantity:
10 000
T89C51CC02
4.1. I/O Configurations
Each Port SFR operates via type-D latches, as illustrated in Figure 1 for Ports 3 and 4. A CPU "write to latch"
signal initiates transfer of internal bus data into the type-D latch. A CPU "read latch" signal transfers the latched
Q output onto the internal bus. Similarly, a "read pin" signal transfers the logical level of the Port pin. Some Port
data instructions activate the "read latch" signal while others activate the "read pin" signal. Latch instructions are
referred to as Read-Modify-Write instructions. Each I/O line may be independently programmed as input or output.
4.2. Port Structure
Figure 1 shows the structure of Ports 1 and 3, which have internal pull-ups. An external source can pull the pin
low. Each Port pin can be configured either forgeneral-purpose I/O or for its alternate input output function.
To use a pin for general-purpose output, set or clear the corresponding bit in the Px register (x=1,3 or 4). To use
a pin for general purpose input, set the bit in the Px register. This turns off the output FET drive.
To configure a pin for its alternate function, set the bit in the Px register. When the latch is set, the "alternate
output function" signal controls the output level (see Figure 1). The operation of Ports 1, 3 and 4 is discussed
further in "quasi-Bidirectional Port Operation" paragraph.
NOTE:
1. The internal pull-up can be disabled on P1 when analog function is selected.
6
READ
LATCH
INTERNAL
BUS
WRITE
TO
LATCH
READ
PIN
D
CL
LATCH
Port.X
Q
Figure 1. Port Structure
Preliminary
ALTERNATE
OUTPUT
FUNCTION
ALTERNATE
INPUT
FUNCTION
VCC
INTERNAL
PULL-UP (1)
Port.x
Rev.A - May 17, 2001

Related parts for T89C51CC02