Skip to main content
anagy9
Associate II
May 25, 2020
Question

I have an issue with ADC and Vrefint

  • May 25, 2020
  • 1 reply
  • 1472 views

Hi,

I working with an STM32L010 controller. I have a confusing issue with one of ADC channel.

Here is the configuration:

0693W000001pPovQAE.png

I using ADC channels 1, 3, 6 and Vrefint.

Here is the ADC configuration:

0693W000001pPpKQAU.png

I forgot the clock configuration:

0693W000001pPvNQAU.png

My problem is while the voltage on CH3 increasing from 0 to about 2V the calculated VDD will started to increasing to 3.9V until the CH3 reach 2.4V. In above the VDD falling down to 3.3V. As I see Vrefint value changing. Like it would have a negative characteristic. I using formula from refmanual to convert raw values to mV. On VDD(a) pin I can see about 20mV changes during I increasing voltage on CH3. Could it cause this kind of ADC behavior?

Thank you!

Attila

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
May 25, 2020

You did not tell us the ADC clock frequency/APB frequency, but I bet 19.5 cycles sampling time violates the min 5us typ. (read recommended ) 10us ADC sampling time when reading the internal reference voltage value given in the datasheet.

JW