Skip to main content
Associate III
November 20, 2023
Question

STM32G030k8 ADC sequencer set not fully configuarable

  • November 20, 2023
  • 2 replies
  • 1305 views

Hi I already asked for multi channel ADC in STM32G030K8 PA0,PA2,PA5,PA9,PA11,PA12.while debugging I am getting all ADC values as same if I made one by one its working properly Can any one help how to proceed with that.

This topic has been closed for replies.

2 replies

Tinnagit
Senior II
November 20, 2023

set Sequencer to "fully configurable"
set Enable in Scan Conversion Mode

in ADC_Regular_ConversionMode
set Sampling Time
Set Number of Conversion to quantity of your channel needed
and set each channel in Rank.

in your code, you can get data for each channel by run polling and getADC for each channel.
And I suggest to use interrupt or DMA is easier than polling.

meenaAuthor
Associate III
November 20, 2023

I cant do as fully configuarable as I am using PA12 and PA11 I can give a try with DMA

thanks