69rlq62d-f714peg4 * Memec (Headquar
ter
s) - Unique
Tec
h,
Insight,
Impact
MAR
VELL CONFIDENTIAL,
UNDER ND
A# 12101050
69rlq62d-f714peg4 * Memec (Headquar
ter
s) - Unique
Tec
h,
Insight,
Impact
MAR
VELL CONFIDENTIAL,
UNDER ND
A# 12101050
69r
lq62d-f714peg4 * Memec (Headquar
ters) - Unique
T
ech, Insight, Impact * UNDER ND
A# 12101050
MAR
VELL CONFIDENTIAL - UNA
UTHORIZED DISTRIB
UTION OR USE STRICTL
Y PR
OHIBITED
PXA300 Processor and PXA310 Processor
Vol. I: Timer and System Configuration Developers Manual
Doc. No. MV-TBD-00 Rev. A
CONFIDENTIAL
Copyright © 12/13/06 Marvell
Page 128
Document Classification: Proprietary Information
December 13, 2006
Not approved by Document Control. For review only.
5.3.3
GPIO Pin Bit-Wise Set Direction Registers (GSDRx)
Users control port direction by programming the GPIO Pin Bit-Wise Set Direction registers (GSDR0, GSDR1,
GSDR2, and GSDR3). The GSDRx registers contain one direction control bit for each of the 128 ports.
•
GSDR0 [31:0] correspond to GPIO<31:0>
•
GSDR1[31:0] correspond to GPIO<63:32>
•
GSDR2[31:0] correspond to GPIO<95:64>
•
GSDR3[31:0] correspond to GPIO<127:96>
If a direction bit is programmed to a 1, the corresponding bit in GPDRx is set and the GPIO function is
configured as an output. If it is programmed to a 0, no change in the GPIO functionality or the GPDRx register
occurs.
Note:
At reset, all bits in this register are cleared configuring all GPIO ports as inputs.
shows the location of each port direction bit in the GPIO Pin Direction register, GSDR0.
Table 5-3. GPDR Bit Definitions
Physical Address
0x40E0_000C
0x40E0_0010
0x40E0_0014
0x40E0_010C
GPDR0
GPDR1
GPDR2
GPDR3
GPIO Controller
User
Settings
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
PD[31:0]
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bits
Access
Name
Description
n
R/W
PD{n}
GPIO port direction n (where n = 0 through 31)
0 – Port configured as an input
1 – Port configured as an output