STM32F4 disco TIM1 PWM DMA mode not work.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-21 5:36 AM
i want to generate variable duty PWM using TIM1 & DMA but it not work.
uint16_t variable_duty[10] = {0,1000,2000,3000,4000,5000,6000,7000,8000,9000};
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_1,(uint32_t*)variable_duty,10);
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_2,(uint32_t*)variable_duty,10);
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_3,(uint32_t*)variable_duty,10);
Labels:
- Labels:
-
DMA
-
STM32F4 Series
-
TIM
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-21 5:47 AM
The correct setup of everything (not shown in your code) is important. You might look at this example http://fabioangeletti.altervista.org/blog/stm32-interface-ws2812b/
KnarfB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-03-23 10:13 AM
Hello,
Please find attached a document which helps you to solve your problem.
As I mentioned, you must add the instructions and variables and check all configurations.
Regards
