jamestastic
02-10-06, 08:55 AM
I have seen the other threads in this forum about timing, and still can't solve a problem I've had.
I need to count seconds, and have tried both the EVERY 50000 CYCLES SCHEDULE-RUNS method as well as monitoring TCFTICKS variable, and neither method keeps time to any decent accuracy. It seems to run a few seconds slow every several minutes (sorry for the lack of numbers, if desired I can put them up later.)
Could it be that my MCU isn't exactly running at 5MHz? How can I find the exact operating frequency programmatically?
I need to count seconds, and have tried both the EVERY 50000 CYCLES SCHEDULE-RUNS method as well as monitoring TCFTICKS variable, and neither method keeps time to any decent accuracy. It seems to run a few seconds slow every several minutes (sorry for the lack of numbers, if desired I can put them up later.)
Could it be that my MCU isn't exactly running at 5MHz? How can I find the exact operating frequency programmatically?