Timers, When is it done?
TJHJ
Posts: 243
So lets take example A. Measure the time of the low part of a pulsing signal. The specific signal is low about 90% of the time, I am looking to capture that low time.
I have been able to do this before, but now I am looking to offload this task to the counters.
So Mode %01100 Apin = 0, No feedback seems well suited to accomplish this task.
Lets say I clear the phsA register so now its 0. Waiting for pin low.
Pin goes low, it starts accumulating.
How can I know when the cycle is done, and not miss is and not accidentally get two pulses? My high time to grab it is very short.
There is not flag set that I can seem to find. ( I suck at counters if you couldn't tell. )
Thanks
TJ
I have been able to do this before, but now I am looking to offload this task to the counters.
So Mode %01100 Apin = 0, No feedback seems well suited to accomplish this task.
Lets say I clear the phsA register so now its 0. Waiting for pin low.
Pin goes low, it starts accumulating.
How can I know when the cycle is done, and not miss is and not accidentally get two pulses? My high time to grab it is very short.
There is not flag set that I can seem to find. ( I suck at counters if you couldn't tell. )
Thanks
TJ