| RTOS_MSPM0 1.1 ECE445M starter code

Macros | Functions
RTOS_PWM.h File Reference
RTOS_PWM

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 | PWM0_Init (uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
| Initialize PWM. More...
void | PWM0_SetDuty (uint32_t duty0, uint32_t duty1)
| Set duty cycles. More...
void | PWM1_Init (uint32_t timerClkSrc, uint32_t timerClkPrescale, uint32_t period, uint32_t duty0, uint32_t duty1)
| Initialize PWM. More...
void | PWM1_SetDuty (uint32_t duty0, uint32_t duty1)
| Set duty cycles. More...

## Detailed Description

Pulse width modulation.

Hardware creates fixed period, variable duty cycle waves

Version
  ECE319K v1.0

Author
  Daniel Valvano and Jonathan Valvano

Copyright
  Copyright 2025 by Jonathan W. Valvano, valva.nosp@m.no@m.nosp@m.ail.u.nosp@m.texa.nosp@m.s.edu,

Warning
  AS-IS

Note
  For more information see http://users.ece.utexas.edu/~valvano/

Date
  June 19, 2025

  PWM pins on the MSPM0G3507
  Pin | Description
  --- | ---
  PA8 | TA0_C0 PWM output
  PA9 | TA0_C1 PWM output
  PB4 | TA1_C0 PWM output
  PB1 | TA1_C1 PWM output