frillip / averclock

Winter 2012/2013: Just an exercise in timers. Oh, it's a clock. It can be controlled via bluetooth for no reason.
http://frillip.com/
2 stars 0 forks source link

Independant timers for scheduler and timekeeping #7

Closed frillip closed 11 years ago

frillip commented 11 years ago

Currently they use the same timer.

Would be better if the workload was scheduled independantly from the timekeeping.

naggie commented 11 years ago

Why? If your scheduler timer fires an interrupt every 1ms or 10ms, no need to use 2 timers. Right?

naggie commented 11 years ago

or am I missing something?

frillip commented 11 years ago

32.768kHz crystal is +/- 20ppm, the 16MHz is cheap and less accurate. Also I will eventually set timer1 as a high priority interrupt so it can interrupt other interrupts. On 8 Aug 2013 19:00, "Callan Bryant" notifications@github.com wrote:

Why? If your scheduler timer fires an interrupt every 1ms or 10ms, no need to use 2 timers. Right?

— Reply to this email directly or view it on GitHubhttps://github.com/frillip/averclock/issues/7#issuecomment-22341824 .

naggie commented 11 years ago

or just use a better 16MHz crystal?