Hi,
I have a complex encoder I need to data log each of the rising and falling edges of the encoder. I wish to save the time stamp of each edge into a memory for later processing.
Given the nature of what I am measuring, the maximum time between edges can be several minutes, and the minimum time is likely to be a few milliseconds.
My questions:
1. What is the best way to set up a virtual counter in the N2HET for around 64bit operation. Is it best to use the CNT instruction to define a 25bit counter and then is there possibility to check for a rollover?
2. If I can use a rollover, or CNT = 0 or similar approach, what next?. Is it best to use DADM64 or similar?
3. On each rising of falling edge of a pin, I wish to snapshot this 64 bit counter to a memory location using HTU. Is this the best approach?
Any feedback would be great.
Thanks
Stomp!.