Low Power ADC readback issue on STM32L052x6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-05-03 2:27 PM
Posted on May 03, 2016 at 23:27
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?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-05-03 5:25 PM
Posted on May 04, 2016 at 02:25
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?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
