Hi,
I am using a LM3S9D92 for a project and I need to get the "running time" of how long ago the system was powered on. The more accurate the better. The running time can be hours and days and should have a resolution of milliseconds.
I looked at the SysTickValueGet() but it is only a 24 bit clockcount and will overflow/zero out quickly at 50 MHz.
I tried registering an interrupt using the SysTickPeriodSet() + SysTickIntEnable() + SysTickEnable() and incrementing a variable for each interrupt call, but it seems pretty inaccurate.
I think the best solution is using the SysTickValueGet() method, but I need to know how many times it has reloaded to be able to calculate the running time accurately.
Any suggestions?