CHAPTER 4 I/O PORTS
4.2
Port 0
Port 0 is a general-purpose I/O port.
The port 2 also serves as the external interrupt 2 input pins in the MB89120A series.
This section principally describes the port functions when operating as a general-
purpose I/O port.
The section describes the port structure and pins, the pin block diagram, and the port
registers for port 0.
Structure of Port 0
Port 0 consists of the following three components.
•
General-purpose I/O pins/external interrupt 2 input pins (P00/INT20 to P07/INT27)
•
Port 0 data register (PDR0)
•
Port 0 data direction register (DDR0)
Check:
The external interrupt 2 input is the function available only on the MB89120A series.
Port 0 Pins
Port 0 consists of eight I/O pins of a CMOS input and CMOS output type respectively.
When these pins are used as input pins, they can also serve as external interrupt input pins at
the same time.
100