2012-11-20 08:57 AM
Does anyone know of a way to tell if the TIM1_ETR input has shortened the PWM signal being generated on TIM1 (assuming CCMR bit 7 is set)?
Thanks in advance #bldc-motor-control2012-11-21 12:38 AM
Ciao Richard
Reading the reference manual I see that is possible to enable the interrupt on TRGI (TIM1_IER bit TIE), so if you set the input trigger (TRGI = ERTF) in the TIM1_SMCR, then you can have an interrupt when the ETR acts on the PWM signals. Let me know if it works Ciao Gigi