Quantcast
Viewing all articles
Browse latest Browse all 63733

Forum Post: MSP432 PWM setting Output PIN problem

Hi, i am using the Timer A0 and set a PWM on PIN 2.4 The frequency ist right and everything works fine. Now i want to use PIN 2.5 instead of 2.4 but that doesnt work. imer_A_PWMConfig pwmConfig = { TIMER_A_CLOCKSOURCE_SMCLK, TIMER_A_CLOCKSOURCE_DIVIDER_1, 24000, TIMER_A_CAPTURECOMPARE_REGISTER_1, TIMER_A_OUTPUTMODE_RESET_SET, 12000 }; MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P2, GPIO_PIN5,GPIO_PRIMARY_MODULE_FUNCTION); MAP_Timer_A_generatePWM(TIMER_A0_BASE, &pwmConfig); Any idea? Next question, is it possible to set two PINs for the same PWM? Like if i use PIN 2.4 and PIN 2.5 together? The Timer A0 can be assigned to this PINS: 7.3, 2.4, 2.5, 2.6, 2.7 Can all output the PWM signal from Timer A0 at the same time too? I also testet on the "timer_a_pwm_mode" example and set instead of PIN 2.4 the PIN2.5 and the PWM didnt output on the PIN. I am using the MSP432 Launchpad in RED (Release) and the example was from the MSP432Ware - 3.40.00.25 Is there a Bug on the Software/Hardware from TimerA0?

Viewing all articles
Browse latest Browse all 63733

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>