CHAPTER 4 I/O PORTS
4.5
Port 5
Port 5 is a general-purpose I/O port and may also serve the input/output for peripherals.
The pins of this port can be used for peripherals or normal port function that can be
selected according to the setting of the bit corresponding to the pin on a specific
register.
This section explains the general-purpose I/O function of the port.
This section also describes port 5 concerning to the structure, pins, a block diagram of
pins, and associated registers.
■
Structure of Port 5
Port 5 comprises the following four elements:
•
General-purpose I/O pins (P50/PWM)
•
Port 5 data register (PDR5)
•
Port 5 data direction register (DDR5)
•
Port 5 pull-up setting register (PUL5)
■
Pins of Port 5
Port 5 has one CMOS I/O pin.
Table 4.5-1 provides information on the pin of port 5.
Table 4.5-1 Pin of Port 5
Port
Pin name
name
Port 5
P50/PWM
For circuit type, see Section "1.7 Pin Functions Description " and "1.8 I/O Circuit Types ".
94
Peripherals for which the
Function
P50 general-
PWM (8-bit PWM/timer
purpose I/O
pin may serve
output)
Input and output
form
Input
Output
CMOS
CMOS
Circuit
type
E