Hi,
I see in the datasheet of the AT91SAM7A3 that the real-time timer (RTT) is fed by the Slow Clock, which is an internal RC oscillator (f=22 kHz to 42 kHz). The RTT has a 16-bit prescaler and a 32-bit counter.
How are we supposed to use such an inaccurate clock as the source for a real-time timer? The only way I can think of is to add a crystal (which will not always be running (otherwise, there would be no reason to use the RC oscillator)) and use it to "calibrate" the RC oscillator every once in a while. The 16-bit prescaler of the RTT allows to do this. This way, the 32-bit counter could count more or less exact seconds. The datasheet (preliminary), however, does not say anything about the drift of such an RC oscillator. How often would you say it would be needed to perform such a calibration? Has anyone done this?
Is there a simpler method to use the RTT as what it is supposed to be?
Thanks,