cancel
Showing results for 
Search instead for 
Did you mean: 

I cant change my duty cycle in LL TIM Library. I cant change my signal too. I want change my motor power. How can i do this?

İDAĞL.1
Associate
 
2 REPLIES 2

Should be a macro or wrapper,

Typically one just writes the register TIM2->CCR1 = (TIM2->ARR + 1) / 2; // 50/50 duty

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

LL_TIM_OC_SetCompareCH1 does this.

If you're modifying ARR or PSC, you may need to generate or wait for an update event for them to become active.

If you feel a post has answered your question, please click "Accept as Solution".