Тёмный
No video :(

Tutorial STM32 DAC Timer Triggered DMA 

PR TechTalk
Подписаться 1,9 тыс.
Просмотров 3,5 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@capistor1
@capistor1 Месяц назад
Thanks for such a detailed video!
@prtechtalk416
@prtechtalk416 21 день назад
Glad you enjoyed it! / PR TechTalk
@PalczakWombiasty
@PalczakWombiasty 4 месяца назад
Amazing video, thank you. Finally somebody explained this subject, so even I can understand it :)
@prtechtalk416
@prtechtalk416 4 месяца назад
Thanks for your kind words. Great that you learned something. /PR TechTalk
@psycox8758
@psycox8758 Месяц назад
Excellent tutorial! Thanks. I found that the higher sample waveforms look clipped on the scope but can be scaled to avoid clipping by changing line 75 to... sine_val[i] =((sin(i*2*pi/MAX_SAMPLES)+1.1)) * res_12b / 2.2; Not sure if that's the proper way to do it but it works ;)
@prtechtalk416
@prtechtalk416 21 день назад
Thanks, greate you did put this in the comment so many other can benefit also from your findings, PLs dont forget to hit the Subscribe button also :-) / PR TechTalk
@psycox8758
@psycox8758 21 день назад
I subbed immediately after watching the video 👍
@GuadrianBM
@GuadrianBM 27 дней назад
Hello Sir I am trying to use multiple DAC to produce two sine waves of different frequencies. I am not able to do it. Can you help me with this?
@prtechtalk416
@prtechtalk416 21 день назад
Hi, i am Sorry but i do not have bandwidth to write customer code, have you checked with a site called Fiverr.com their are several freelancers for varius tasks and also STM32 Coding. Good Luck. /Pr TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 2 месяца назад
hello! i have a question , is it possible to have a interrupt when the DMA is at the middle and at the end of the buffer? to "refill" the buffer with new value taked from external memory or calculated. Also is it possible to use the DMA to feed a pwm duty cycle ? thankyou for the awesome videos! best reguards
@prtechtalk416
@prtechtalk416 2 месяца назад
Hi Andrea, Sure you can get half full interrupt also. Test this code: void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc) { if (hadc->Instance == ADC1) { // Handle half buffer full interrupt } } Good Luck /Peter Ranemyr
@prtechtalk416
@prtechtalk416 2 месяца назад
Sorry missed their was 2 questions. Also yes on this question, you can direct the DMA result from ADC directly to TIM1_CCR1 ( for tim1) Good Luck /PR TechTalk
@AndreaBasilico-eo4pl
@AndreaBasilico-eo4pl 2 месяца назад
@@prtechtalk416 Hi! i think this is for a ADC conversion, in this video we are using DAC , so its equal for memory to periferal direction? thank you for your kind responce
@edgarwcl
@edgarwcl 5 месяцев назад
Nice lecture. May I ask two questions? Q1: Can the output amplitude be control (For example: Out swings only 2vpp)? Q2: Can generate the sine wave with offset (For example: +0.3v)? . Hopefully, you can help, thanks!
@prtechtalk416
@prtechtalk416 5 месяцев назад
Hi, No you cant modulate the output swing from the STM32. If you need lower swing an easy way is to use resistor divider and a buffer
@user-fx9op9rf8o
@user-fx9op9rf8o 5 месяцев назад
Hello and thank you for the video. I'm developing the same project for audio purposes. I am now facing problems on changing the values of the DAC while the program is running. If I use const values or if I set the DAC buffer before the while(1), all good. After that, the buffer doesn't get the correct values. Can you help me out? thanks in advance
@prtechtalk416
@prtechtalk416 5 месяцев назад
Hi, Sorry but i do not have resources to offer this kind of software support, hope you will succeed anyway.
@antonioriccelli7932
@antonioriccelli7932 5 месяцев назад
if i want to reach a 300Khz with DAC with 32 point of sinus table wich evaluation board is necessary?
@prtechtalk416
@prtechtalk416 5 месяцев назад
I haven’t made the calculation but if you want high resolution and fast signal you need a fast clock. Some devices have a HR Timer. Take a look at STM32G474.
@user-rl4ix1ws5s
@user-rl4ix1ws5s 4 месяца назад
I have a problem. My Transfer interrupt calls 2 steps before done the buffer. what is happening? i am using stm32u575ri
@prtechtalk416
@prtechtalk416 3 месяца назад
Hi, that is impossible to answer need to see whole project to being able to respond,
@user-rl4ix1ws5s
@user-rl4ix1ws5s 3 месяца назад
@@prtechtalk416 how to send you the project?
@user-rl4ix1ws5s
@user-rl4ix1ws5s 3 месяца назад
@@prtechtalk416 but you can try. please enable dma interrupt toggle a pin. i have tried with G4 and U5.
@codures
@codures 7 месяцев назад
12:00 sir please accept my apologies, but your pi is not good.
@prtechtalk416
@prtechtalk416 7 месяцев назад
Hi Codures. Firstly no one need to apologise for having a stament of any sort. But i was thinking of what your concern, is it that do not have enough decimals or the way i bluntly set pi using a #define. Since i have included math.h i could also declare pi as " double pi = M_PI; " Or if i miss your point totaly pls clarify so we all can learn. /PR TechTalk
@codures
@codures 7 месяцев назад
@@prtechtalk416 the pun was intended, because there was a typo in the π decimals (3.1415 *5* 926). On the programming side, given the number of samples, even float would work with a π=3.1416. I just discovered your videos the other day, they are really awesome!
@prtechtalk416
@prtechtalk416 7 месяцев назад
Haha i didn’t even notice this typo. I Think you are equipped with Hawkeyes 😁 Thanks for the comments and corrections. /PR TechTalk
Далее
STM32 Multi ADC DMA method
29:42
Просмотров 6 тыс.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
Просмотров 9 млн
#345 ESP32 vs STM32: Which one is better (Bluepill)?
15:37
Understanding SPI
11:50
Просмотров 82 тыс.
Analog output from PWM and a low-pass filter
14:13
Просмотров 10 тыс.
Lecture 13: Timer PWM Output
16:47
Просмотров 105 тыс.
STM32 Guide #3: PWM + Timers
20:24
Просмотров 140 тыс.
Google's Open Source Hardware Dreams
10:00
Просмотров 192 тыс.
DAC in STM32 || Sine wave || HAL || CubeIDE
16:07
Просмотров 65 тыс.
How to Make Custom ESP32 Board in 3 Hours | Full Tutorial
2:57:20