2022-05-03 02:39 AM
Using an input capture ch2 of TIM1 ,i want to generate interrupts at every rising edge of input signal(square wave) and call a call back function to do something.The output is is an output compare ch1 of the same timer1. Can you help me?
2022-05-05 09:52 AM
in the photo above is represented what I want to have but at the moment i have made what is represented in the photo of oscilloscope. My idea was to generate the pulses on the rising edge(first output compare) and to generate the pulses on the falling edge (second output compare) having the same input capture which is the square wave. I dont know that is a good idea or not, but what i want to do is to have 2 different output as the photo. If you have another idea , i will appreciate it... please help