ADC Sample Rate
Posted: Wed Jan 08, 2014 12:34 am
Hi,
I have started to use ChibiOS and find its design is excellent. Yesterday started to try to write some code to use the ADC. I wish to sample analogue audio at a specific sample rate, 48 to 96khz would be nice. The problem is that I do not know or understand how to configure the ADC to run at this sample rate, from what I can tell the ADC is just running in continuous mode performing DMA transfers into the supplied buffer as fast as it can.
My question is, Is there a way to slow down the ADC to the desired sample rate, or am I going about this completely wrong?
I have started to use ChibiOS and find its design is excellent. Yesterday started to try to write some code to use the ADC. I wish to sample analogue audio at a specific sample rate, 48 to 96khz would be nice. The problem is that I do not know or understand how to configure the ADC to run at this sample rate, from what I can tell the ADC is just running in continuous mode performing DMA transfers into the supplied buffer as fast as it can.
My question is, Is there a way to slow down the ADC to the desired sample rate, or am I going about this completely wrong?