Retriggering pulse
- 6 replies
- 1806 views
Hello dear friends
I use the stm32f4 series. I am looking for some code to retrigger a similar pulse. To be clear, I have some circuits for zero-cross detection. Now, for each input pulse before the next in[ut pulse, I want some output pulse that would be triggered after some specific delay time, by which the output pulse is zero in delay time and active after delay, and would become zero when the next input pulse is caught. I considered using Either external interrupt or timer input capture mode for the input pulse. But for external output, my research has led me to timer one pulse mode. I couldn't find some example code with results on the internet.
The signaling is as shown in the image. T1 is the delay and T2 is the time that signal is active. For a 50hz input pulse, T1+T2 will be 20ms. What I want is a code that doesn't block MCU in the interrupt routine and T1 could be controlled.
The .ioc file is attached.
help me, please
