AnsweredAssumed Answered

Low Power ADC readback issue on STM32L052x6

Question asked by wang.andy.005 on May 3, 2016
Latest reply on May 4, 2016 by Clive One
We set ADC1 on the M0 micro-controller to listen to a GPIO pin. Under low power mode, the reading is shifted.

The low power mode for ADC setup is as following:
    .Instance = ADC1,
    .Init.ClockPrescaler = ADC_CLOCKPRESCALER_PCLK_DIV2,
    .Init.OversamplingMode = DISABLE,
    .Init.DataAlign = ADC_DATAALIGN_RIGHT,
    .Init.LowPowerAutoWait = DISABLE,
    .Init.LowPowerAutoPowerOff = DISABLE,
    .Init.LowPowerFrequencyMode = ENABLE,
    .Init.ContinuousConvMode = ENABLE,
    .Init.DiscontinuousConvMode = DISABLE,

These lines are taken from samples from the dev package. Some how, the readings are shifted. Does anyone have any idea?