![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 828](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847828.webp)
GPIOx_PDIR field descriptions
Field
Description
PDI
Port Data Input
Reads 0 at the unimplemented pins for a particular device. Pins that are not configured for a digital
function read 0. If the Port Control and Interrupt module is disabled, then the corresponding bit in PDIR
does not update.
0
Pin logic level is logic 0, or is not configured for use by digital function.
1
Pin logic level is logic 1.
41.3.6 Port Data Direction Register (GPIOx_PDDR)
The PDDR configures the individual port pins for input or output.
Address: Base a 14h offset
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
R
W
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
GPIOx_PDDR field descriptions
Field
Description
PDD
Port Data Direction
Configures individual port pins for input or output.
0
Pin is configured as general-purpose input, for the GPIO function.
1
Pin is configured as general-purpose output, for the GPIO function.
41.4 Functional description
41.4.1 General-purpose input
The logic state of each pin is available via the Port Data Input registers, provided the pin
is configured for a digital function and the corresponding Port Control and Interrupt
module is enabled.
Functional description
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
828
Freescale Semiconductor, Inc.