Professional Documents
Culture Documents
Section 7 Gpio: Motorola DSP56011 User's Manual 7-1
Section 7 Gpio: Motorola DSP56011 User's Manual 7-1
SECTION 7
GPIO
Freescale Semiconductor, Inc...
7.1 INTRODUCTION
The General Purpose Input/Output (GPIO) pins are used for control and handshake
functions between the DSP and external circuitry. The GPIO port has eight I/O pins
(GPIO0–GPIO7) that are controlled through a memory-mapped register. Each GPIO
pin may be individually programmed as an output or as an input.
The GPIO pins are controlled through the GPIO control/data Register (GPIOR),
which is illustrated in Figure 7-1. The register is described in the following
paragraphs.
7 6 5 4 3 2 1 0
GPIOR
GD7 GD6 GD5 GD4 GD3 GD2 GD1 GD0
X:$FFF7
15 14 13 12 11 10 9 8
GDD7 GDD6 GDD5 GDD4 GDD3 GDD2 GDD1 GDD0
23 22 21 20 19 18 17 16
GC7 GC6 GC5 GC4 GC3 GC2 GC1 GC0
AA0441.11
The read/write GPIO Data bits (GD[7:0]) are used to read from or write to the
corresponding GPIO[7:0] pins. If the GPIOx pin is defined as an input, the GDx bit
will reflect the logic value present on the GPIOx pin. If the GPIOx pin is defined as an
output, the GPIOx pin will reflect the value written to the GDx bit. The GD[7:0] bits
are cleared during hardware reset and software reset.
The read/write GPIO Data Direction bits (GDD[7:0]) select the direction of data
transfer for each of the GPIO[7:0] pins (see Table 7-1). When the GDDx bit is cleared,
the corresponding GPIOx pin is defined as an input. When the GDDx bit is set, the
corresponding GPIOx pin is defined as an output. The GDD[7:0] bits are cleared
during hardware reset and software reset.
0 0 Disconnected
0 1 Input
1 1 Open-drain output
The read/write GPIO Control bits (GC[7:0]) select the type of output buffer for each
of the GPIO[7:0] pins when the pins are defined as outputs, and select whether or not
the input buffer is connected to the pin when the pin is defined as an input.
• When the GCx bit is cleared and the GDDx bit is cleared (the pin is defined as
an input), the corresponding GPIOx pin input buffer is disconnected from the
pin and does not require an external pull-up (see Table 7-1 and Figure 7-2).
• When the GCx bit is set and the GDDx bit is cleared (the pin is defined as
input), the corresponding GPIOx pin input buffer is connected to the pin (see
Table 7-1 and Figure 7-2).
• When the GCx bit is cleared and the GDDx bit is set (the pin is defined as
output), the corresponding GPIOx pin output buffer is defined as a standard
active high/active low type (see Table 7-1 and Figure 7-2).
• When the GCx bit is set and the GDDx bit is set (the pin is defined as output),
Freescale Semiconductor, Inc...
GDD
GC
GDD
GD0–GD7 Buffer
Control* PIN
GDD