Chapter 21
General Purpose I/O (GPIO)
21.1
Introduction
This chapter describes the general-purpose I/O module, including pin descriptions, register settings, and
interrupt capabilities.
Figure 21-1
To/From
Peripheral Bus
gpio_int
21.1.1
Overview
The GPIO module supports 32 general-purpose I/O ports. Each port can be configured as an input or as an
output. If a port is configured as an input, it can optionally generate an interrupt on detection of a change.
If a port is configured as an output, it can be individually configured as an open-drain or a fully active
output.
21.1.2
Features
The GPIO unit implements the following features:
•
32 input/output ports
•
Some ports have dedicated processor signals. Others are multiplexed together with other functional
signals. See
Chapter 3, "Signal Descriptions."
•
All signals are configured as inputs when the device comes out of reset and also when HRESET is
asserted.
MPC8313E PowerQUICC II Pro Integrated Processor Family Reference Manual, Rev. 3
Freescale Semiconductor
shows the block diagram of the GPIO module.
Register
Interface
GPIER/
GPIMR/
GPICR
Registers
Figure 21-1. GPIO Module Block Diagram
GPDAT
Register
GPDIR/
GPODR
Registers
GPIO[0:31]
21-1