I need to calculate the time between 2 subsequent interrupts and have most of the code going. I am a little confused about the timer part.
I wanted to know if there is a function like millis() or micros() as available on an Arduino.
What I need to know is that what is the current tick count of say Timer_A. If there is nothing like this present already, I am thinking of latching the timer to the ACLK governed by the shipped 32 KHz crystal and generate an interrupt where a counter increments. The counter has a value of about 30.5 uS for every tick as 1 second / 32 KHz is approx 30 uS.
Does this sound right? Or am I talking gobbledygook?