Discussion forum for the BasicX family of microcontroller chips.
|
The Atmel info sheet specifies between 22 and 66 uSecs depending on precision of 1.5 to 0.5 LSB. In the real world, how many samples per second can I take with the BX24 on one channel, and how quickly can I poll the other 7 ADC channels? There is no instruction to PAUSE in the documentation. |
|
|
|
> From: > > The Atmel info sheet specifies between 22 and 66 uSecs depending > on precision of 1.5 to 0.5 LSB. > > In the real world, how many samples per second can I take with > the BX24 on one channel, and how quickly can I poll the other > 7 ADC channels? The maximum sample rate is about 6000 samples per second if you call GetADC. > There is no instruction to PAUSE in the documentation. Pause between samples, you mean? GetADC automatically handles timing, so there's no need to add a pause between calls to GetADC. Of course it's possible -- although I haven't tried it -- to get direct low-level register access to the ADC. Timing would become an issue in that case. I doubt that you could improve on the sample rate, though. -- Frank Manning -- NetMedia, Inc. |
|
At 10:15 PM 2/3/00 +0000, wrote: >The Atmel info sheet specifies between 22 and 66 uSecs depending on >precision of 1.5 to 0.5 LSB. > >In the real world, how many samples per second can I take with the BX24 >on one channel, and how quickly can I poll the other 7 ADC channels? There is >no instruction to PAUSE in the documentation. Someone from Netmedia once said that if you were sampling all eight channels it would run at about 750 samples/sec/channel. Obviously, this figure will be higher if you're checking fewer channels... Hope this helps, Duncan |