Posted on October 26, 2015 at 16:29
I'm using STM32F303 Discovery board.
I try to evaluate how much code can be performed intimer's IRQHandler without causing desynchronization with PWM of the same timer.
//interrupt code
if (T...
Posted on October 28, 2015 at 16:55Thank you for all. Probably i'll have questions about hardware interfaces soon. Now just want to ask you where i can find examples for combined mode of PWM?
Posted on October 27, 2015 at 16:07
That's all code without init part.
void TIM3_IRQHandler(void)
{
if (TIM_GetITStatus(TIMX.name, TIM_IT_Update) != RESET)
{
TIM_ClearITPendingBit(TIMX.name, TIM_IT_Update);
GPIO_SetBits(GPIOE, GPIO_Pin_0)...
Posted on October 27, 2015 at 10:25I understood it but as i said I expected saw that in case when IRQHandler execution time is close to PWM duty cycle but not it half. I have project with clear main loop and one interrupt for timer's update.I try to...
Posted on October 26, 2015 at 17:09Thank you, Clive for so fast reply. Try to clarify my problem.It's success situation when IRQHandler execution is less than half of PWM duty cycle. As you see software toggling of GPIO in IRQHandler (blue signal) f...