ADC sampling frequency

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
motyf
Posts: 4
Joined: Sun Oct 25, 2009 1:07 pm

ADC sampling frequency

Post by motyf »

Hi,

What is the sampling frequency of the A/D.

What is the maximum samples per second I can read from the ADC by SW (using C++) ?

Thanks.

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: ADC sampling frequency

Post by xol »

The maximum ADC frequency is 15K samples/sec in 10 bit resolution mode.
ADC can be connected to 128 bytes FIFO. SW can read fifo with sub_fifo_read.

Can you tell me what is your application and what ADC sample rate and number of channels required?

mgsb
Posts: 3
Joined: Sun Dec 04, 2011 11:48 pm

Re: ADC sampling frequency

Post by mgsb »

I would like to sample a single channel at 10KHz. How do I setup the ADC for use with the FIFO? I don't see a definition for ADC in the fifo_config(). Thanks,

Mark

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: ADC sampling frequency

Post by xol »

This feature is not implemented yet.
Can you tell us a bit more about your project? Sampling at 10KHz with 128 bytes FIFO may be a bit problematic.

mgsb
Posts: 3
Joined: Sun Dec 04, 2011 11:48 pm

Re: ADC sampling frequency

Post by mgsb »

I want to measure the measure the voltage drop across a current-sense resistor on the power supply line for a processor as I vary the frequency and CPU calculations to see the effect on power consumption.

Mark

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: ADC sampling frequency

Post by xol »

I see.
Well, what measurement precision do you need in mV ?
Is it something on-time or will it go to a number of products/items ?
This is not a simple feature to implement and I want to know all details.

mgsb
Posts: 3
Joined: Sun Dec 04, 2011 11:48 pm

Re: ADC sampling frequency

Post by mgsb »

This is a one-time school project. I was just trying to leverage my existing sub20 rather than buying another DAQ system. I don't expect you to implement this - I just thought from the earlier posts on this thread that the functionality was already in the firmware, hence the question.

Mark

Post Reply