/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / ADC speed setup

Username:     
Password:     
             

Forum

# 1   2009-12-04 11:56:47 ADC speed setup

M_E
New member
Registered: 2009-12-04
Posts: 2

ADC speed setup

Hi

Has anybody some experiance when it comes to ADC frequency and sample time setup. Is it safe to run the ADC-clock in 32MHz, i.e. ADCPRE set to PLCK2 devided by 2. Will this speed generate accurate samples? How do you know what individual sample time to use for every channel, i.e. 1,5cycles, 55,5cycles...

I really need all the speed I can get for sampling and digital filtering.

Thanks

/M

Offline

 

# 2   2009-12-09 16:32:07 ADC speed setup

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: ADC speed setup

Just a warning: we experienced problems when connecting several inputs on a single ADC, because of the internal capacitor. if you dont have to commute the input, it should work as fast as described in the datasheet.

Offline

 

# 3   2010-03-04 14:10:35 ADC speed setup

brhans
New member
Registered: 2010-02-11
Posts: 1

Re: ADC speed setup

I'd guess that the problems you saw when sampling different inputs is probably due to the fact that your analog inputs are connected to high-impedance sources - for example the 1M resistors in the Vbat voltage divider on analog channel 9.

This high resistance only allows a very small current to flow in or out of the pin, so correspondingly takes a relatively long time to charge the ADC's internal sampling capactitor.
If you sample faster than the time it takes to charge/discharge the cap when switching between channels then your readings will be incorrect.

If you construct a circuit to connect to the expansion connector and drive the CX_ADC1 and CX_ADC2 pins with a good low-impedance source (like an opamp), then you should have no trouble sampling these two analog channels (14 & 15) at a high rate.

Last edited by brhans (2010-03-04 14:11:17)

Offline

 

Board footer