2016-05-03 02: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 05: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?