![Marvell PXA300 Developer'S Manual Download Page 129](http://html.mh-extra.com/html/marvell/pxa300/pxa300_developers-manual_1734615129.webp)
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
General-Purpose I/O Unit
Copyright © 12/13/06 Marvell
CONFIDENTIAL
Doc. No. MV-TBD-00 Rev. A
December 13, 2006
Document Classification: Proprietary Information
Page 129
Not approved by Document Control. For review only.
5.3.4
GPIO Pin Bit-Wise Clear Direction Registers (GCDRx)
Users control pin direction by programming the GPIO Pin Bit-Wise Clear Direction registers (GCDR0, GCDR1,
GCDR2, and GCDR3). The GCDR registers contain one direction control bit for each of the 128 pins.
•
GCDR0 [31:0] correspond to GPIO<31:0>
•
GCDR1[31:0] correspond to GPIO<63:32>
•
GCDR2[31:0] correspond to GPIO<95:64>
•
GCDR3[31:0] correspond to GPIO<127:96>
If a direction bit is programmed to a 1, the corresponding bit in GPDR is cleared and the GPIO function is
configured as an input. If it is programmed to a 0, no change in the GPIO functionality or the GPDR 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, GCDR0.
Table 5-4. GSDR Bit Definitions
Physical Address
0x40E0_0400
0x40E0_0404
0x40E0_0408
0x40E0_040C
GSDR0
GSDR1
GSDR2
GSDR3
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
W
PD{n}
Set GPIO port direction n (where n = 0 through 31)
0 – GPDR bit not affected
1 – GPDR bit is set and GPIOx function is set to OUTPUT