9 years, 5 months ago.

OK, I think I got it.

Discussion goes here?

How often is a RAMClock hit? From a HW timer interrupt every msec? This timer won't keep going when we go to sleep during the minutes the EggTimer is running, will it? When we go to sleep while timing, I assume we'll use the WDT or some other low power slow timer.

One HW timer point - when I used a HW timer for outputting audio samples, I found that the system would not let me change the timer value from within the program - only fixed at setup. KH

Question relating to:

versiom 0.01

1 Answer

9 years, 5 months ago.

The clock can be hit at any frequency, but you need to adjust the counter value accordingly. So if you run at 1kHz, and want to have a 1 second timer, you would set the clock counter to 1000; however, I would anticipate we use a granularity of 1 second, this should be perfectly accurate enough. The timer will continue to count in sleep mode, and wakes the system up every 1s. There should be multiple timers (I have not looked), so we can dedicate a timer to the clocks and you can have another for the audio. I am a complete newbie here, so bear with me as I come up to speed. You will notice all the device drivers added to the project. Any stuff you want to do should be done through these API's. There has to be a timer update setting, you just write to the timer counter register through the API (all this is me guessing, but I am sure I am close to being right)

Accepted Answer