Hi guys,
I have an pulse coming in on a digital pin on Teensy 3.2 and what I want to do is have the ability to have multiples of this pulse. I'm trying to think of how I should even comprehend writing the code for it but I'm having a tough time and wondering if someone could point me in the right direction.
I thought about storing the initial time the pulse comes in, then storing the time the next pulse comes in and working out the difference in time pulses and then reducing the time difference so that it would be faster than the incoming pulse however that didn't work.
Any ideas? Simply can't think even though it seems so simple.
Thanks in advance
M
I have an pulse coming in on a digital pin on Teensy 3.2 and what I want to do is have the ability to have multiples of this pulse. I'm trying to think of how I should even comprehend writing the code for it but I'm having a tough time and wondering if someone could point me in the right direction.
I thought about storing the initial time the pulse comes in, then storing the time the next pulse comes in and working out the difference in time pulses and then reducing the time difference so that it would be faster than the incoming pulse however that didn't work.
Any ideas? Simply can't think even though it seems so simple.
Thanks in advance
M