![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_230.png)
206
CHAPTER 8 I/O PORTS
MB90560 series
8.8
Port 5
Port 5 is a general-purpose I/O port. It can also be used for A/D converter analog input.
The port pins can be switched in units of bits between the I/O port and analog input.
This section focuses on the general I/O port function. It provides the configuration of
port 5, lists its pins, shows a block diagram of the pins, and describes the
corresponding registers.
I
Port 5 Configuration
Port 5 consists of the following:
General-purpose I/O pins/analog input pins (P50/AN0 to P57/AN7)
Port 5 data register (PDR5)
Port 5 data direction register (DDR5)
Analog input enable register (ADER)
I
Port 5 Pins
The port 5 I/O pins are also used as analog input pins. The pins cannot be used as general-
purpose I/O port pins when they are used for analog input. Similarly, the port 5 I/O pins cannot
be used for analog input when they are used as a general-purpose I/O port. Table 8.8-1 lists the
port 5 pins.
Table 8.8-1 Port 5 pins
See Section 1.7, "I/O Circuit Types," for information on the circuit types.
Port
Pin
Port function
(single-chip
mode)
Peripheral function
I/O form
Circuit
type
Input
Output
Port 5
P50/AN0
P50
General-
purpose I/O
AN0
Analog input 0
CMOS
(hysteresis)
CMOS
E
P51/AN1
P51
AN1
Analog input 1
P52/AN2
P52
AN2
Analog input 2
P53/AN3
P53
AN3
Analog input 3
P54/AN4
P54
AN4
Analog input 4
P55/AN5
P55
AN5
Analog input 5
P56/AN6
P56
AN6
Analog input 6
P57/AN7
P57
AN7
Analog input 7