2016-05-03 2:27 PM
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.ScanConvMode = ADC_SCAN_DIRECTION_FORWARD, .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?2016-05-03 5:25 PM
Shifted how exactly?
You think it might be more illustrative it you provided actual values that you are seeing here vs the value you expect to be seeing?We’re moving the ST Community to a new platform to give you a better and more reliable community experience.