I have a fast pseudo-serial signal that I'm trying to decode manually by looking at the state at certain intevals. so when I detect the start of the packet I start an interval timer that lands me in the middle of each bit. So far so good.
The problem I had with the 3.2 was that by the time the timer started I had lost the first bit of the packet.
I got a 4.0 thinking I could throw speed at the problem. The results are odd, though.
The amount of time it takes to detect the beginning of the packet (interrupt falling) went down dramatically, from 1.5uS to 200nS
But the amount of time it takes to start the clock didn't change at all. I still miss the first bit of the packet.
Timer commands:
IntervalTimer myTimer;
myTimer.begin(tripClk, 8.6);
myTimer.end();
So my questions are whether there is architecturally a better way to do this, or whether there is something I can do to start the timer more quickly? (maybe a hidden suspend/resume command?)
Just for clarity it is key that I am able to align a clock pulse to (or close to) the beginning of the packet. So starting the clock indeterminately mid-cycle won't really help
Thank you
The problem I had with the 3.2 was that by the time the timer started I had lost the first bit of the packet.
I got a 4.0 thinking I could throw speed at the problem. The results are odd, though.
The amount of time it takes to detect the beginning of the packet (interrupt falling) went down dramatically, from 1.5uS to 200nS
But the amount of time it takes to start the clock didn't change at all. I still miss the first bit of the packet.
Timer commands:
IntervalTimer myTimer;
myTimer.begin(tripClk, 8.6);
myTimer.end();
So my questions are whether there is architecturally a better way to do this, or whether there is something I can do to start the timer more quickly? (maybe a hidden suspend/resume command?)
Just for clarity it is key that I am able to align a clock pulse to (or close to) the beginning of the packet. So starting the clock indeterminately mid-cycle won't really help
Thank you
Last edited: