OM13008,598 NXP Semiconductors, OM13008,598 Datasheet - Page 131

no-image

OM13008,598

Manufacturer Part Number
OM13008,598
Description
BOARD LPC XPRESSO LPC122X
Manufacturer
NXP Semiconductors
Series
LPCXpressor
Datasheets

Specifications of OM13008,598

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
568-6642
OM13008
NXP Semiconductors
Table 121. Register overview: GPIO (base address port 0: 0x5000 0000; port 1: 0x5001 0000, port 2: 0x5002 0000)
UM10441
User manual
Name
MASK
PIN
OUT
SET
CLR
NOT
DIR
IS
IBE
IEV
IE
RIS
MIS
IC
-
8.3.1 GPIO mask register
8.3.2 GPIO pin value register
R/W
R
R/W
R/W
R/W
R/W
R/W
R
W
Access
W
W
W
R/W
R
-
This register masks the read and/or write accesses to the following masked registers:
PIN, OUT, SET, CLR, and NOT. Only bits set to 0 in the MASK register enable the
corresponding bits in the masked registers to be changed or their value to be read.
Setting any mask bit to 0 allows the pin output to be changed by write operations to the
pin’s OUT, SET, CLR, and NOT registers. The current state of the pin can be read from the
PIN registers and the current value of the OUT registers can be read.
Setting any mask bit to 1 allows write operations to the pin’s OUT, SET, CLR, and NOT
registers to have no effect on the pin’s output level. Read operations return 0 regardless of
the pin’s level or the value of the OUT register.
Table 122. GPIO mask register (MASK - address 0x5000 0000 (GPIO0), 0x5001 0000 (GPIO1),
This register provides the current logic state of port pins that are configured to perform
digital functions. A read operation on this register will return the logic value of the pin
regardless of whether the pin is configured for input or output, or whether it is configured
as GPIO or any other applicable alternate digital function. As an example, a particular port
Bit
31:0
Address
offset
0x000
0x004
0x008
0x00C
0x010
0x014
0x020
0x024
0x028
0x02C
0x030
0x034
0x038
0x03C
0x040
Symbol
MASK
0x5002 0000 (GPIO2)) bit description
Description
Pin value mask register. Affects operations on PIN, OUT, SET,
CLR, and NOT registers.
Pin value register.
Pin output value register.
Pin output value set register.
Pin output value clear register.
Pin output value invert register.
Data direction register.
Interrupt sense register.
Interrupt both edges register.
Interrupt event register.
Interrupt mask register.
Raw interrupt status register.
Masked interrupt status register.
Interrupt clear register.
Reserved.
All information provided in this document is subject to legal disclaimers.
Description
GPIO pin PIOn_x access control.
0 = read/write not masked. 1 = read/write masked.
Rev. 1.1 — 10 March 2011
Chapter 8: LPC122x General Purpose I/O (GPIO)
UM10441
© NXP B.V. 2011. All rights reserved.
Reset
value
0x0
configuration
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
0x0000 0000
Reset value
0x0000 0000
dependent
n/a
n/a
Access
R/W
131 of 442

Related parts for OM13008,598