ABSTRACT

This chapter provides general information about an MSP432P401R microcontroller general-purpose 16-bit timer programming, including the different timer modules programming for TA0-TA3 and the PWM modules. It discusses the GPIO ports concentrates on the architectures and programming interfaces applied on GPTMs specially designed for the MSP432P401R MCU system. Special or alternative control functions for different GPIO pins related to different peripherals are also discussed and introduced with example projects. The chapter analyzes different implementations of using Timer_A modules. These implementations include the free-running timer, input edge-count mode, input edge-time mode, and PWM mode. The related API functions supporting those modes and provided by the MSPWare Peripheral Driver Library are also introduced with example projects. Functions are provided to configure and control the timer, to modify timer/counter values, and to manage interrupt handling for the timer.