RTOS_MSPM0  1.1
ECE445M starter code
Macros | Functions
PWMG6.h File Reference

Pulse width modulation. More...

Go to the source code of this file.

Macros

#define PWMUSELFCLK   2
 use PWMUSELFCLK to select LFCLK
 
#define PWMUSEMFCLK   4
 use PWMUSEMFCLK to select MFCLK
 
#define PWMUSEBUSCLK   8
 use PWMUSEBUSCLK to select bus CLK
 

Functions

void PWMG6_Init (uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty)
 Initialize PWMG6. More...
 
void PWMG6_SetDuty (uint32_t duty)
 Set duty cycles. More...
 

Detailed Description

Pulse width modulation.

Hardware creates fixed period, variable duty cycle waves

Version
RTOS v1.0
Author
Daniel Valvano and Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
November 24, 2025
PWM pins on the MSPM0G3507
Pin Description
PB6 CCP0 PWM output