cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 ADC Result error

borzoo
Associate
Posted on May 05, 2017 at 11:47

0690X00000606weQAA.png

hello guys,

I've some problem with my STM32F103RE ADC converter.Converted result from analog input in all channels have errors around some specific values.I have a precise Vref of 3.0v and use all 16 channels of ADC1 but the problem is that when each converted input values reaches around 3072 (in Decimal) they holds on this value for some samples.All channels have this problem.In fact, the ADC1 raw value holds on some values like 3072 and 5816 and after some samples left they changes to its correct value.

Any kind of help would be appreciated.

2 REPLIES 2
Zt Liu
Senior III
Posted on June 05, 2017 at 19:59

Don't know what is your adc code.

It seems that you are doing some manipulations like average?

or there is a dma error?

Anyway, what is the adc input, can it be controlled?

Zt Liu
Senior III
Posted on June 05, 2017 at 20:05

hey, how can you get raw value 5816 from a 12-bit adc(max 4095)?

you are doing something like over-sampling?