Readme

Example Summary

The following example configures TimerG0 to output an edge aligned PWM signal that increases and decreases in duty cycle in a heartbeat manner to drive an LED.

Peripherals, Pin Functions, MCU Pins, Launchpad Pins

Peripheral Function MCU Pin Launchpad Pin Launchpad Settings
GPIOA Open-Drain Output PA0 Red LED1 Populate Jumper(s): J1[1:2]
SYSCTL
TIMG0 Capture/Compare Pin 1 PA13 J2_14
EVENT
BOARD Debug Clock PA20 J22_16
BOARD Debug Data In Out PA19 J22_14

Visit LP_MSPM0L1117 for LaunchPad information, including user guide and hardware files.

Device Migration Recommendations

This project was developed for a superset device included in the LP_MSPM0L1117 LaunchPad. Please visit the CCS User’s Guide for information about migrating to other MSPM0 devices.

Low-Power Recommendations

TI recommends to terminate unused pins by setting the corresponding functions to GPIO and configure the pins to output low or input with internal pullup/pulldown resistor.

SysConfig allows developers to easily configure unused pins by selecting Board→Configure Unused Pins.

For more information about jumper configuration to achieve low-power using the MSPM0 LaunchPad, please visit the LP-MSPM0L1117 User’s Guide.

Example Usage

Compile, load, and run the example. TimerG0 will output a 62.5Hz edge aligned PWM signals on PA13. Duty cycle of the PWM output will range from 10% to 90% in 1% increments. Monitor the PWM signals on PA13.