Chapter 50General-Purpose Input/Output (GPIO)50.1 IntroductionNOTEFor the chip-specific implementation details of this module'sinstances, see the chip configuration information.The GPIO registers support 8-bit, 16-bit or 32-bit accesses.The GPIO data direction and output data registers control the direction and output data ofeach pin when the pin is configured for the GPIO function. The GPIO input data registerdisplays the logic value on each pin when the pin is configured for any digital function,provided the corresponding Port Control and Interrupt module for that pin is enabled.Efficient bit manipulation of the general-purpose outputs is supported through theaddition of set, clear, and toggle write-only registers for each port output data register.50.1.1 FeaturesFeatures of the GPIO module include:• Port Data Input register visible in all digital pin-multiplexing modes• Port Data Output register with corresponding set/clear/toggle registers• Port Data Direction registerNOTEThe GPIO module is clocked by system clock.50.1.2 Modes of operationThe following table depicts different modes of operation and the behavior of the GPIOmodule in these modes.K22F Sub-Family Reference Manual, Rev. 4, 08/2016NXP Semiconductors 1375