STM32L475VG ADC usage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-09 1:47 AM
Hi All
We are using STM32L475VG IoT discovery board.
We want to use the ADC1 on the board and get the Analog data input on PA0.
But we are unable to get it going using the HAL code generated using the MX cube software.
What all are the configurations needed to use the ADC?
It will also be helpful if a working example can be provided.
Our environment is visualGDB in visual studio 2017 community edition.
Regards
Sagar Verma
#stm32-l4 #adc-configuration- Labels:
-
ADC
-
STM32L4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-14 4:44 PM
Can anyone please assist us ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-14 6:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-14 6:29 PM
Formatted source now out of moderation, removing it here
https://community.st.com/0D70X000006Sr84SAC
I lifted and ported the code from
STM32Cube_FW_L4_V1.11.0\Projects\NUCLEO-L496ZG\Examples\ADC\ADC_DMA_Transfer
Didn't see any calibration stuff there, or other samples I looked at.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-14 6:33 PM
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-14 9:19 PM
I can't see the ADC calibrate functionality,
Does this processor have a calibrate function for the ADC ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-06-04 10:51 PM
Thanks Clive,
using these configurations I have been able to make the ADC work in my application.
But this configuration doesn't work if I use
ContinuousConvMode = DISABLE
Any suggestion regarding this ?
