5.5
Block Diagram of I/O Port (With Open-Drain Output
Function)
This section provides a block diagram of an I/O port with open-drain output function.
I Block diagram of I/O port with open-drain output function
Figure 5.5-1 "Block diagram of I/O port with open-drain output function" shows a block diagram
of an I/O port with open-drain output function.
Figure 5.5-1 Block diagram of I/O port with open-drain output function
Data Bus
The ports that have the above function are PJ0 and PJ1.
Note:
•
When the pin is used as input port or for resource input, set the PDR and resource output to
1.
•
In RMW read mode, the PDR value, not the pin value, is read.
RMW
RMW = 0
RMW = 1
PDR read
PDR
Resource output
PDR : Port Data Register
CHAPTER 5 I/O PORTS
Resource input
pin
155