Configure PWM using MSPWare APIs
Opened this issue · 0 comments
thaletterb commented
The following code should configure a 0.5ms pulse width, within a 20ms period but does not. Determine why
// // Start TIMER_A
// Timer_A_outputPWMParam timerA_params = {0};
// timerA_params.clockSource = TIMER_A_CLOCKSOURCE_SMCLK;
// timerA_params.clockSourceDivider = TIMER_A_CLOCKSOURCE_DIVIDER_2;
// timerA_params.compareOutputMode = TIMER_A_OUTPUTMODE_RESET_SET;
// timerA_params.compareRegister = TIMER_A_CAPTURECOMPARE_REGISTER_1;
// timerA_params.dutyCycle = 525;
// timerA_params.timerPeriod = 20972;
// Timer_A_outputPWM(__MSP430_BASEADDRESS_T0A5__, &timerA_params);