![Marvell PXA300 Скачать руководство пользователя страница 130](http://html.mh-extra.com/html/marvell/pxa300/pxa300_developers-manual_1734615130.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
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 130
Document Classification: Proprietary Information
December 13, 2006
Not approved by Document Control. For review only.
5.3.5
GPIO Pin Output Set Registers (GPSRx) and Pin Output
Clear Registers (GPCRx)
When a GPIO is configured as an output, users control the state of the port by writing to either the GPIO Pin
Output Set registers (GPSRx) or the GPIO Pin Output Clear registers (GPCRx). An output port is set by writing
a 1 to its corresponding bit within the GPSR. To clear an output port, a 1 is written to the corresponding bit
within the GPCRx (write-only registers; reads return unpredictable values).
Clearing any of the GPSRx or GPCRx bits has no effect on the port state. Setting a GPSRx or GPCRx bit
corresponding to a port that is configured as an input takes affect only after the port is configured as output.
The GPSRx and GPCRx registers contain one output set and one output clear control bit, respectively, for each of
the 128 ports.
•
GPSR0 [31:0] and GPCR0 [31:0] correspond to GPIO<31:0>
•
GPSR1 [31:0] and GPCR1 [31:0] correspond to GPIO<63:32>
•
GPSR2 [31:0] and GPCR2 [31:0] correspond to GPIO<95:64>
•
GPSR3 [31:0] and GPCR3 [31:0] correspond to GPIO<127:96>
If a 1 is written to both registers at the same location then the last write takes effect (that is, an output port cannot
be both set and cleared at the same time).
shows the locations of the GPSR0 bits.
shows the locations of the GPCR0 bits.
Table 5-5. GCDR Bit Definitions
Physical Address
0x40E0_0420
0x40E0_0424
0x40E0_0428
0x40E0_042C
GCDR0
GCDR1
GCDR2
GCDR3
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 cleared and GPIO n function is set to INPUT