![](https://csdnimg.cn/release/download_crawler_static/4246506/bg9.jpg)
9General-Purpose Input/Output (GPIO)SPRU584A
General-Purpose Input/Output (GPIO)
This document describes the general-purpose input/output (GPIO) peripheral
in the digital signal processors (DSPs) of the TMS320C6000 DSP family.
1 Overview
The general-purpose input/output (GPIO) peripheral provides dedicated
general-purpose pins that can be configured as either inputs or outputs. When
configured as an output, you can write to an internal register to control the state
driven on the output pin. When configured as an input, you can detect the state
of the input by reading the state of an internal register.
In addition, the GPIO peripheral can produce CPU interrupts and EDMA
events in different interrupt/event generation modes.
Figure 1 shows the GPIO peripheral in the TMS320C64x DSP. Figure 2
shows the GPIO peripheral block diagram.
Figure 1. TMS320C64x DSP Block Diagram
C6000 DSP core
Instruction Fetch
Instruction Dispatch
Instruction Decode
Data Path A
A Register File
L1 S1 M1 D1
Control
Registers
Control
Logic
Test
In−Circuit
Emulation
Interrupt
Control
Data Path B
B Register File
L2S2M2D2
L1P Cache
L2
Memory
L1D Cache
Enhanced
DMA
Controller
Power Down
Logic
EMIF
Other
Peripherals
Boot
Configuration
Interrupt
Selector
PLL
GPIO