Ticker: Obtain precise 32KHz, 44.1KHz or 48KHz Interrupts

-deleted-
04 Aug 2012

Dear mbedders, :D I was wondering if anyone here has used a ticker object to generate interrupts at 32KHz, 44.1Khz or 48KHz, which are standard audio sampling frequencies. Since I have previously worked with an ARM LPC, I know that I probably have to change one of the timer registers, such as the pre-scaler register to support a better precision than 1us, although I can't find documentation related to the Ticker object, or what timer it uses. I'm using a ticker object to generate basic waveforms using wavetable synthesis and it would be nice if I could have a 32KHz sampling frequency instead of 25, 40 or 50 KHz... Thanks in advance,

Tiago

05 Aug 2012

Mbed uses timer3 for all mbed functions (timer, ticker and timeout at least). So if you change that, you change them all, the other timers are not used, so you can also choose to use them.

-deleted-
05 Aug 2012

Hey Erik, thank you for your answer, it's greatly appreciated.