![NXP Semiconductors LPC84x Скачать руководство пользователя страница 206](http://html.mh-extra.com/html/nxp-semiconductors/lpc84x/lpc84x_user-manual_1721742206.webp)
UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
206 of 515
12.1 How to read this chapter
All GPIO registers refer to 32 pins on each port. Depending on the package type, not all
pins are available, and the corresponding bits in the GPIO registers are reserved.
12.2 Basic configuration
For the GPIO port registers, enable the clock to the GPIO port in the SYSAHBCLKCTRL
register (
12.3 Features
•
GPIO pins can be configured as input or output by software.
•
All GPIO pins default to inputs with interrupt disabled at reset.
•
Pin registers allow pins to be sensed and set individually.
•
Direction (input/output) can be set and cleared individually.
12.4 General description
The GPIO pins can be used in several ways to set pins as inputs or outputs and use the
inputs as combinations of level and edge sensitive interrupts.
The GPIOs can be used as external interrupts together with the pin interrupt block.
The GPIO port registers configure each GPIO pin as input or output and read the state of
each pin if the pin is configured as input or set the state of each pin if the pin is configured
as output.
12.5 Register description
Note: In all GPIO registers, bits that are not shown are reserved.
GPIO port addresses can be read and written as bytes, halfwords, or words.
Remark:
ext in this table and subsequent tables indicates that the data read after reset
depends on the state of the pin, which in turn may depend on an external source.
UM11029
Chapter 12: LPC84x General Purpose I/O (GPIO)
Rev. 1.0 — 16 June 2017
User manual
Table 253. GPIO pins available
Package
GPIO Port 0
GPIO Port 1
HVQFN33
PIO0_0 to PIO0_28
N/A
HVQFN48
PIO0_0 to PIO0_31
PIO1_0 to PIO1_9
LQFP48
PIO0_0 to PIO0_31
PIO1_0 to PIO1_9
LQFP64
PIO0_0 to PIO0_31
PIO1_0 to PIO1_21