2015-04-18 05:13 PM
Hello, I'm using a nucle 411 to test a RC servo driver. Si I configure 4 TIM3 channel to output PWM signal. Everithing is Ok, except that I can't finde a function to change PWM Duty Cycle.
Is there any? BR!2015-04-18 09:16 PM
try
__HAL_TIM_SET_COMPARE(htim, tim_channel, cnt);
where cnt is the new pulse interval.
cnt /htim->Init.Period would be theduty cycle.
2015-04-19 01:53 PM
Ok! thank!!!
BTW, it should call HAL_TIM_SET_PWM_DC...