English
Language : 

AT89C51CC01_14 Datasheet, PDF (5/167 Pages) ATMEL Corporation – Boot Code Section with Independent Lock Bits
Read-Modify-Write
Instructions
Figure 2. Port 0 Structure
ADDRESS LOW/
DATA
CONTROL
READ
LATCH
1
INTERNAL
BUS
D
Q
0
P0.X
WRITE
LATCH
TO
LATCH
A/T89C51CC01
VDD
(2)
P0.x (1)
READ
PIN
Notes:
1. Port 0 is precluded from use as general-purpose I/O Ports when used as
address/data bus drivers.
2. Port 0 internal strong pull-ups assist the logic-one output for memory bus cycles only.
Except for these bus cycles, the pull-up FET is off, Port 0 outputs are open-drain.
Figure 3. Port 2 Structure
ADDRESS HIGH/ CONTROL
VDD
READ
LATCH
1
INTERNAL
BUS
D
Q
0
P2.X
WRITE
TO
LATCH
LATCH
INTERNAL
PULL-UP (2)
P2.x (1)
READ
PIN
Notes:
1. Port 2 is precluded from use as general-purpose I/O Ports when as address/data bus
drivers.
2. Port 2 internal strong pull-ups FET (P1 in FiGURE) assist the logic-one output for
memory bus cycle.
When Port 0 and Port 2 are used for an external memory cycle, an internal control signal
switches the output-driver input from the latch output to the internal address/data line.
Some instructions read the latch data rather than the pin data. The latch based instruc-
tions read the data, modify the data and then rewrite the latch. These are called "Read-
Modify-Write" instructions. Below is a complete list of these special instructions (see
Table ). When the destination operand is a Port or a Port bit, these instructions read the
latch rather than the pin:
5
4129N–CAN–03/08