Synchronizing PWM Signal through an external Signal
I'm using NucleoG071RB for this experiment. I have an (periodic) external signal that should reset the Timer counter to zero, so that the PWM is synchronized to the external signal. I used the external signal to generate an interrupt (EXTI), and reset the counter in software (TIM1->CNT = 0). There is latency detected when the signals are measured with an oscilloscope. I tried to use Timer Input Capture as an alternative but to no avail. Is there any other alternative to approach this? Thank you in advance.
