STM32 ADC multiple channels || DMA || True studio || CubeMx

STM32 ADC multiple channels || DMA || True studio || CubeMx

ControllersTech

5 лет назад

65,899 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AZelectronics
AZelectronics - 11.05.2023 19:30

i just copy what you write ... but in my case while(1) never be run until i commented hal_adc_start_dma ! whats the problem!

Ответить
Jack Jack
Jack Jack - 03.08.2022 09:51

Those 17.1µs is the MAXIMUM sampling time, so it should be faster than that.

Ответить
sushma kdh
sushma kdh - 26.06.2022 15:03

sir, is it possible for you to upload a video on external ADC like MCP3424?

Ответить
Furkan Doğan
Furkan Doğan - 20.11.2021 20:41

Hİ sir. Normally I dont take any debug error by ST-linK V2. But When I do this project, I take some debug errors. How can I solve this problem for multi adc project with dma?
Error message: Error in final launch sequence:

Failed to execute MI command:
load D:\\stm32_proje\\adc_dmaa\\Debug\\adc_dmaa.elf

Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load D:\\stm32_proje\\adc_dmaa\\Debug\\adc_dmaa.elf

Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load D:\\stm32_proje\\adc_dmaa\\Debug\\adc_dmaa.elf

Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation

Ответить
Tiến Lê Minh
Tiến Lê Minh - 17.11.2021 06:33

How many ADC channels in STM32F103C8 we can use in oversampling mode simultaneously? I use 6 channels at the same time, but when I tried to get the value from the last channel, it got the value from the first channel

Ответить
Foxy
Foxy - 05.03.2021 13:50

Where to download lcd-i2c.h and lcd-i2c.c please help

Ответить
OK OK
OK OK - 10.01.2021 13:45

Thank you.

Ответить
Martin Mwila
Martin Mwila - 26.12.2020 23:38

Why did you select WORD instead of Half Word for a data width of 12 Bits? Wouldn't half-word be enough (16 Bits)?

Ответить
Mark Day
Mark Day - 08.12.2020 05:58

Isn't the word size 32 bits? I think you could (and should) have picked half-word for the DMA size.

Ответить
Aptakam Rath
Aptakam Rath - 07.11.2020 09:00

Supppse I want data acquisition at adc1 ch1 at first and getting certain disirable data I just want to stop data acquisition at adc 1 ch1 and switch to adc1 ch2 only ,how can I manage to do that? Please help regards 🙏

Ответить
Rahul Jathar
Rahul Jathar - 27.10.2020 13:55

Which programmer are you using. I have st-link V2. But it is not detecting properly

Ответить
Hatem Soussi
Hatem Soussi - 04.10.2020 20:43

Fucking music of shit!!!!!

Ответить
Marco Semenzato
Marco Semenzato - 20.09.2020 17:47

Hi, I cannot understand why you write "VSENSE = VSENSE * variable;" while in the datasheet is wrote ("5. Read the resulting Vsense data in the ADC data register", so I was expecting VSENSE = variable. In addition i cannot understand why you initialize VSENSE = 3.3 / 4096 but in the function you always modify this value and, at the next call to getTemperature, VSENSE is totally different from the value initialized. Please help me to understand this. Thanks

Ответить
Mr. Engineer
Mr. Engineer - 31.08.2020 22:27

Just a Half-Word is needed for data width

Ответить
do-vitas
do-vitas - 25.08.2020 18:36

like! from Russia!

Ответить
Joseph M
Joseph M - 10.08.2020 00:23

When using interrupts and have a sequence of 3 channels to convert the interrupt routine is only enterered once. I would of thought it would be entered 3 times, once per EOC. ADC_EOC_SINGLE_CONV is assigned to EOCSelection. The 3 channels appear in the ADC channel selection register. This seems like a bug to me.

Ответить
Kym Cainday
Kym Cainday - 08.08.2020 17:43

hahahahaha.. my goodness , that music. my 2 year old niece approached me when she heard it.. haha

Ответить
brandsanat
brandsanat - 02.08.2020 11:23

hi how are you?how i can show adc stm32 in android app by wifi?im android developer and arm

Ответить
Jakub Stejskal
Jakub Stejskal - 16.04.2020 00:55

Hi. I want read 3 channel with DMA (setting prescaler to fill +- 3x1000 samples per sec) and separately read temperature and Vbat from internal sensors without DMA. Is that posibble? Using DMA for all those channels is memory wasting in my opinion. I have read few tutorials but did not help. Thank you.

Ответить
Antonio Rivera
Antonio Rivera - 09.04.2020 08:26

Can I use Interrupts for the conversion??? I mean, use the ConvCpltCallback() and inside manage the data channels?

Ответить