![Marvell PXA300 Скачать руководство пользователя страница 127](http://html.mh-extra.com/html/marvell/pxa300/pxa300_developers-manual_1734615127.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 127
Not approved by Document Control. For review only.
Note:
At reset, it is possible that the level of each GPIO port will be determined by any pull-up or
pull-downs conditions on each physical pin.
shows the locations of the 32 port-level bits within the GPLR0 registers.
5.3.2
GPIO Pin Direction Registers (GPDRx)
Users control port direction by programming the GPIO Pin Direction registers (GPDR0, GPDR1, GPDR2, and
GPDR3). The GPDR registers contain one direction control bit for each of the 128 ports.
•
GPDR0 [31:0] correspond to GPIO<31:0>
•
GPDR1[31:0] correspond to GPIO<63:32>
•
GPDR2[31:0] correspond to GPIO<95:64>
•
GPDR3[31:0] correspond to GPIO<127:96>
If a direction bit is programmed to a 1, the GPIO is an output. If it is programmed to a 0, it is an input.
A pair of set/clear registers (GSDRx and GCDRx) is also provided to enable the setting and clearing of
individual bits of the GPDRx register.
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, GPDR0.
Table 5-2. GPLR Bit Definitions
Physical Address
0x40E0_0000
0x40E0_0000
0x40E0_0008
0x40E0_0100
GPLR0
GPLR1
GPLR2
GPLR3
GPIO Controller
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
PL[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
PL{n}
GPIO port level n (where n = 0 through 31)
0 – Port state is low
1 – Port state is high