cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L100 ADC Result Error On wakeup from Stop Mode

aboyarski
Associate II
Posted on November 24, 2014 at 10:56

Hi,

   My application wakes-up from Stop Mode every 100mSec, takes ADC conversion from two channels in Scan mode to DMA then makes some processing. I get roughly +1.5% error. When i disable the Stop Mode but sampling remain in 100mSec intervals, the result seems correct.  If i add 2mSec delay after Wakeup, then also the results seems correct. I left the Vref module ON  (PWR_UltraLowPowerCmd(DISABLE)  to eliminate the 3mSec stabilization time when turning it ON, but this did not solve my problem. Any ideas please ?
3 REPLIES 3
aboyarski
Associate II
Posted on November 27, 2014 at 16:58

Hi,

   I have the problem is related with hardware problem: On every Wakeup from Stop, there is a short voltage glitch on Vdd and Vdda (digital and analog supply pins), but no glitch on the sampled analog inputs. So this is causing the error.  the solution would be to read the Vref on AN17 (VREFINT_DATA) and compare it with the factory calibrated Vref value (VREFINT_CAL). Not tested it yet.

frankmeyer9
Associate II
Posted on November 27, 2014 at 17:04

On every Wakeup from Stop, there is a short voltage glitch on Vdd and Vdda (digital and analog supply pins), ...

 

This may be related to your power supply circuitry, and it's control characteristics.

Larger buffer capacitors might help to mitigate the glitch, too.

aboyarski
Associate II
Posted on December 01, 2014 at 12:21

Thanks,

   I am aware of this, our hardware guy is already checking this.