Hands-On with STM32 Timers: Trigger Periodic ADC Conversions

  Рет қаралды 27,255

STMicroelectronics

STMicroelectronics

3 жыл бұрын

Find out more information: bit.ly/AN-4013
STM32H745 Reference Manual: bit.ly/RM-0399
STM32H745 Datasheet: bit.ly/STM32H745-datasheet
In this video, we will learn how to use a STM32 Timer to trigger ADC conversions at a configurable sampling frequency. We will toggle a GPIO every ADC conversion to show that the ADC is sampling at the expected frequency. We will use STM32CubeIDE to develop our code, and then test it on a Nucleo board.
Zip file link to download the materials needed for this exercise: www.st.com/content/dam/AME/20...

Пікірлер: 17
@user-jz6xz7kj1m
@user-jz6xz7kj1m 2 жыл бұрын
Great video. I`ve used your project as an example to configure my old stm32f407 discovery board for adc conversion from tim. And its working. Thank you. you saved my day
@nhanphaminh8490
@nhanphaminh8490 2 жыл бұрын
hi, Can u help me explain how to adc conversion from time. I have problem with it
@joshuachettiar86
@joshuachettiar86 2 жыл бұрын
Is it okay to vary sampling frequency from 2.4msps to 10ksps?
@user-ep4zt9ct5k
@user-ep4zt9ct5k Жыл бұрын
Thank you very much for your expanation, Sir.
@ishuvarshney9162
@ishuvarshney9162 11 ай бұрын
I want to read analog waveform of 1khz at rising edge after 50us for ev charging station only can I use this method
@belarbinaouel7670
@belarbinaouel7670 Жыл бұрын
hi, i'm using 2 differnets ADC registers each one with its timer, the problem is on th e callback function i can't specify either call hadc1 or hadc2 , can any one help me please?
@shettymalnad1978
@shettymalnad1978 6 ай бұрын
how to do it for multiple channels in same ADC and using 2 ADC's
@shettymalnad1978
@shettymalnad1978 Жыл бұрын
How Store ADC Data to DMA without Any trigger/timer/withoutinterupt only by polling method .
@sugiyartosugiyarto1587
@sugiyartosugiyarto1587 Жыл бұрын
Sir please make video input adc potensio..output pwm duty cycle..thanks
@yanhuiyuan5686
@yanhuiyuan5686 3 жыл бұрын
PWM frequency is 5kHz, not 10kHz, as shown on the scope. The ADC sampling rate should also be 5kHz?
@stmicroelectronics
@stmicroelectronics 3 жыл бұрын
Hi there, thanks for your question - may we point you towards our community.st.com, where you will find a team of people who can answer you directly ?
@ingenieriasetelsat8583
@ingenieriasetelsat8583 2 жыл бұрын
Hello man, the timer trigger the adc when counts 24000 and this happens always at 24000 so the frecuency of the adc is 10 KHz. the toggle only shows when de adc works. if am I wrong, please show me the aswer
@yanhuiyuan5686
@yanhuiyuan5686 2 жыл бұрын
@@ingenieriasetelsat8583 Thank you for your reply. I watched the video again. Indeed the PWM frequency is 10kHz. I got confused by the ADC conversion rate and the LED toggling frequency. The scope shows LED toggling not the ADC output. LED goes high every two ADC conversions. This is why the LED toggling frequency is half the ADC conversion rate.
@Debraj1978
@Debraj1978 2 жыл бұрын
Since 10KHz blink is not visible to human eye, it will appear as constant ON, why not put a code in ADC call back to count in software till 10,000 and after that, toggle the LED? That will cause a 1 second blink, which anyone can admire.
@gundaharishkumar6856
@gundaharishkumar6856 2 жыл бұрын
How to see the adc output data in this case
@mimimmimmimim
@mimimmimmimim 2 жыл бұрын
Close your eyes and imagine what's inside the adc_value variable... Or you can always debug too...
@ManchesterBlackSheep
@ManchesterBlackSheep 2 ай бұрын
This is not a very useful video. It's just a follow this, follow that, use the bloaty cube code, without actually explaining how the registers work and how timers and ADC knit together.
STM32 Guide #3: PWM + Timers
20:24
Mitch Davis
Рет қаралды 136 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 14 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 3,7 МЛН
Despicable Me Fart Blaster
00:51
_vector_
Рет қаралды 23 МЛН
Workings of ADC with HAL | VIDEO 24
48:39
Matej Blagšič
Рет қаралды 3,4 М.
Tutorial On ADC MultiChannel Interrupt method.
28:15
PR TechTalk
Рет қаралды 1,6 М.
[#23] FFT Spectrum Analysis - Audio DSP On STM32 (24 Bit / 48 kHz)
14:33
YetAnotherElectronicsChannel
Рет қаралды 30 М.
Scientific Concepts You're Taught in School Which are Actually Wrong
14:36
STM32 Guide #4: Generated Code, HAL, and Bare Metal
26:20
Mitch Davis
Рет қаралды 78 М.
HAL #12: ADC with IT
11:31
Web learning
Рет қаралды 17 М.
SMT32 ADC Interrupts with STM32CubeIDE
9:49
Random Rick
Рет қаралды 11 М.
ADC in STM32 || Single Channel || Keil
16:08
ControllersTech
Рет қаралды 33 М.
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 12 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 759 М.