Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years 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:
1 Answer
10 years 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)