ABSTRACT

This chapter provides general information about MSP432P401R microcontroller general-purpose I/O (GPIO) port programming. It focuses on the GPIO ports-related peripherals used in the MSP432P401R MCU system. The chapter discusses the GPIO port architecture and configurations, general and special or PM control functions for different GPIO ports and pins, and peripheral programming applications in the MSP432P401R MCU system. The peripherals include the on-board keypads, analog to digital converter ADC_14, and analog comparators. The peripheral-related API functions provided by the MSPWare Peripheral Driver Library are also discussed. The ADC14 core is used to convert an analog input to a 14-bit digital value. The core uses two programmable-selectable voltage references to define the upper and lower limits of the conversion. The chapter introduces the most control and configuration registers used in the COMP_E modules with a discussion about the architecture of the COMP_E modules.