- Sun Oct 06, 2013 3:05 pm
#164195
Hello everyone,
I want to create single square wave signal on a output pin, based on the edge of another signal. This is an example of what I want to do.
1. Interrupt on the rising edge of a square wave signal using Input Capture ICP1.
2. In the ICP interrupt function, schedule another pin to be set high after 1ms, and then low after 2ms.
The captured and created signal are not a PWM. They are random frequency single square wave signals.
How can this be done. Does output compare do this ?
Ray.
I want to create single square wave signal on a output pin, based on the edge of another signal. This is an example of what I want to do.
1. Interrupt on the rising edge of a square wave signal using Input Capture ICP1.
2. In the ICP interrupt function, schedule another pin to be set high after 1ms, and then low after 2ms.
The captured and created signal are not a PWM. They are random frequency single square wave signals.
How can this be done. Does output compare do this ?
Ray.