No video

STM32 Multi ADC DMA method

  Рет қаралды 5,829

PR TechTalk

PR TechTalk

Күн бұрын

STM32 Multi ADC DMA method timer triggered.
Learn how to use the STM32 microcontroller's multi ADC and DMA features with our G071_ADC_Multi_DMA tutorial. We'll also show you a macro for converting voltage readings to temperature in degrees Celsius. I will also show how you use a timer to trigger conversations.
Master the STM32 microcontroller with our easy-to-follow guide.
Link to my STM32 Playlist
• STM32

Пікірлер: 16
@deo-max9229
@deo-max9229 7 ай бұрын
This is fantastic! I've been working on ADC but didn't know how to implement multi-ADC DMA method. Thank you so much!! 👏
@prtechtalk416
@prtechtalk416 6 ай бұрын
Thank you for your kind words! I'm glad I could assist you in implementing the multi-ADC DMA method. If you have any more questions, feel free to ask!
@mortenlund1418
@mortenlund1418 2 ай бұрын
Really great video. I hope you continue. This is very educational. Thank you. Best wishes from Denmark!
@prtechtalk416
@prtechtalk416 Ай бұрын
Davs Morten, Thanks for your kind words. Pls hit the Subscribe button also :-) /PR TechTalk
@andax2007
@andax2007 3 ай бұрын
Why do you enable MSM bit? It is not related to what you want to achieve.
@r_be
@r_be 6 ай бұрын
Is it just me or STM32G0 series microcontroller ADC peripheral is noisier than the previous gen (STM32F0). Even in your video vref converted data readings are bouncing by few counts, but that voltage should be very stable in my opinion? In addition, I recently swapped STM32F051K4 for STM32G071K8 MCU. While using exact same ADC timing configuration I noticed that most of the sampled channel values are bouncing by +/-3. I performed a good few tests (different sequencer modes, longer sample times from 1.5 ADC clocks to 3.5 ADC clocks), but no success really. Another interesting observation is that by using 0.1% resistors (43K || 43K) to provide an offset in the differential amplifier circuit the measured offset is 2036 - 2038 counts which is 6 - 8 counts off from 2048. This is a repetitive result in at least 5 more boards that I tested, but it was NEVER a problem with F0 based MCU while using exact same components and very similar layout. I know that in F0 series MCUs had a dedicated VDDA that was decoupled, do you think that is the main different regarding the measurement accuracy consistency or is there something else at play?
@prtechtalk416
@prtechtalk416 6 ай бұрын
Decoupling VDDA is for a reason to stabilise the analog circuits. But the downside is loosing pins that could be used for alternative funtions. You can also try to over sample and make an average to gain stability and more ENOB. /PR TechTalk
@viniciuspassini1803
@viniciuspassini1803 7 ай бұрын
Excellent tutorial, what kind of change do I need to make to set the DMA to Circular mode?
@prtechtalk416
@prtechtalk416 6 ай бұрын
Thanks for your reply, You select regular or Circular buffer in a dropdown menu when enabling DMA for your peripheral. If you dont find it let me know. You acan also ofcourse enable it yourself in code if you dont prefer CubeMX do do the work for you. /PR TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 2 ай бұрын
hello! this tutorial is awesome! an interesting aspect regarding the reading of the Vbat would be to be able to include the reading of the Vbat only every now to preserve its charge (usually I read it once every hour), it is possible to programmatically disconnect the reading leaving the number of conversions (rank) unchanged so that I don't have to worry about restructuring the length of the DMA buffer? (i am assuming to use the 20+ buffer to check and managed the value only after a couple of compleate reading). best reguards!
@prtechtalk416
@prtechtalk416 2 ай бұрын
If i understand your application correct you have a set of ADC channels you regulary sample and only the Vbat you would like to sample less often. If this is the case the i would set a separate timer to trigger only the Vbat channel. /PR TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 2 ай бұрын
@@prtechtalk416 yes you understanded very well my application! i want to not discharge the battery with to much readings , so it is possible to have a dma based readings for all the channel except the vbat and a single channel software activated polling for the Vbat? how can be possible to select this method with the cube ? if i select scan mode isnt for ALL the channel? thank you!
@LucaSpezzani-gz7no
@LucaSpezzani-gz7no 2 ай бұрын
how did you set the NVIC ?
@prtechtalk416
@prtechtalk416 2 ай бұрын
You can enable the NVIC using CubeMX. /PR TechTalk
@belarbinaouel7670
@belarbinaouel7670 6 ай бұрын
Thank for this great tutorial, Can you do it with the LL library please ?
@prtechtalk416
@prtechtalk416 6 ай бұрын
Thank you for your comment! I'm glad you found the tutorial helpful. Unfortunately, I don't have any plans to cover the LL library at the moment, but you never know so stay tuned :-)
Tutorial On ADC MultiChannel Interrupt method.
28:15
PR TechTalk
Рет қаралды 1,9 М.
STM32 Programming for Beginners | Introduction to GPIO Pins
23:39
Mikrotronics Academy
Рет қаралды 8 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 12 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН
ThreadX on STM32 Made Easy: Step-by-Step Startup Tutorial
23:37
PR TechTalk
Рет қаралды 3,5 М.
STM32H7 ADC + DMA + Timer Firmware Tutorial - Phil's Lab #138
35:22
Tutorial STM32 DAC Timer Triggered DMA
34:08
PR TechTalk
Рет қаралды 3,4 М.
STM32 for Beginners | Using HAL Library to control GPIO Pins
36:15
Mikrotronics Academy
Рет қаралды 5 М.
STM32 UART #5 || Receive Data using IDLE Line || Interrupt || DMA
21:40
STM32 ADC Complete Guidance: Polling, Interrupt, and DMA Modes.
17:55
Steppe School
Рет қаралды 1,7 М.
STM32 UART #4 || Receive Data using the DMA
20:29
ControllersTech
Рет қаралды 8 М.
stm32 timed multichannel ADC DMA conversions on STM32F030k6
12:06
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН