cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 PWM output blocked ?

hanser
Associate II
Posted on January 27, 2011 at 15:17

STM32 PWM output blocked ?

#pwm-systick-dma-nvic #tim4 #pwm #pwm #stm32f #tim4 #stm32f103 #outputs
13 REPLIES 13
hanser
Associate II
Posted on May 17, 2011 at 14:23

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6Zq&d=%2Fa%2F0X0000000br4%2FuDMk_Wdwcxvqjl7YUQeLKx6OTJBSa0SyZnm2yMwaXWk&asPdf=false
werbung
Associate II
Posted on January 02, 2014 at 00:46

I dont know how anyone in the multiple pwm timer examples for STM32 can manage to work the PWM-Output without enabling the PWM main-switch:

TIMx->BDTR |= TIM_BDTR_MOE;

e.g. with this function:

void TIM_CtrlPWMOutputs  (TIM1, enable);

In case there is no PWM available on the outputs, check that you have enabled this very important switch !!!!!

werbung
Associate II
Posted on January 02, 2014 at 00:48

I dont know how anyone in the multiple pwm timer examples for STM32 can manage to work the PWM-Output without enabling the PWM main-switch:

TIMx->BDTR |= TIM_BDTR_MOE;

e.g. with this function:

void
TIM_CtrlPWMOutputs (TIM1, enable);

In case there is no PWM available on the outputs, check that you have enabled this very important switch !!!!!
Posted on January 02, 2014 at 02:14

I dont know how anyone in the multiple pwm timer examples for STM32 can manage to work the PWM-Output without enabling the PWM main-switch:

Probably because it's only relevant for a specific sub-set of TIM units?

@param  TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..