STM32 - DMA + Timer Channel Walkthrough
DRELECTRONICS DRELECTRONICS
162 subscribers
235 views
15

 Published On Jul 6, 2024

In today's video, I go over the process involved when using DMA and Timer Channels in the STM32CUBEIDE. Both DMA and Timer Channels were needed for an ongoing project I am working on involving an MQ2 gas sensor.

If you haven't seen the previous video regarding this project, check it out here: https://www.youtube.com/watch/yeCud.... A video of the PCB along with fully implemented code for the project will be coming out shortly.

Leave a comment below and let me know your thoughts on how I implemented this code and any improvements that can be made to my content.

Time Codes:
0:00 Intro
0:30 Purpose Of DMA For This Project
1:12 Purpose Of Timer Channel For This Project
2:52 Hardware Setup
3:31 Overview Of IOC Setup
3:36 USART2 Setup
4:02 ADC Channels Setup
5:30 GPIO Pin Setup (LED Pin)
5:48 Timer Channel Setup
6:52 Clock Configuration
7:35 Code Walkthrough
15:53 Code Output Demonstration
18:13 Outro

Important Resources:
Description of STM32F4 HAL and low-layer drivers - User manual: https://www.st.com/resource/en/user_m...

STM32 Project Book:
https://www.amazon.com/Nucleo-Boards-...

Learning C Programming:
https://www.w3schools.com/c/index.php

show more

Share/Embed