Microcontroller › AVR › frequency variated 24-2 pulse genration › Hey lovely,As my thinking you
Hey lovely,
As my thinking you can count the incoming high or low pulse and mesure the duration of high or low pulse.Based on duration you can generate another pulse at output pin. Use the external interrupt for counting pulse and time. Suppose if high pulse coming in external interrupt pin then jump in ISR and count the pulse and start timer to calculate duration of high pulse and return back.Do same for measure low pulse duration.After counting and Same time based on duration of incoming pulse generate outgoing pulse.
I hope it should be work and as my understanding you want to generate 22 pulse at output pin and want to skip next two pulse and again repeated.Clear about this point so i can help you.