ABSTRACT

This chapter provides general information about an MSP432P401R microcontroller general-purpose I/O (GPIO) port programming. It focuses on the GPIO ports related to serial peripherals used in the MSP432P401R MCU system. The chapter discusses the general and special or alternative control functions for different GPIO ports and pins, and peripheral programming applications in the MSP432P401R MCU system. The major serial peripherals include the serial peripheral interface, inter-integrated circuit (I2C) interface, and universal asynchronous receivers/transmitters. The API functions provided by the MSPWare Peripheral Driver Library are discussed with some real example projects. Before using the I2C module to perform related data operations, all eUSCI_B modules must be properly initialized and configured. An example UART project is built to echo each character sent via the UART transmitter with the eUSCI_A2 module for UART mode. This project can be considered as a self-testing project to check the UART transmit and receive functions.