filmov
tv
STM32C0 workshop - 10 DMA, DMAMUX - simple configuration
Показать описание
The objective of this lab is to generate a simple project using our ST IDE called the STM32CubeIDE software.
In this example we will control Green LED by Timer1 working in PWM mode (constant frequency, variable duty cycle). Duty cycle of Timer1 will be modified by DMAMUX on each blue button press.
Who should attend this course?
- Engineers looking for a general purpose microcontroller for their embedded applications
- Engineers who wish to better understand the STM32C0's innovative architecture and embedded smart peripherals
- Engineers looking to design applications using a user-friendly development ecosystem
Prerequisites:
- NUCLEO-C031C6 board
- type A to type B micro USB cable
- Laptop PC running Windows® 7, 8, 10 or 11 with administrator rights and with preinstalled software from below link:
Complete list of prerequisites is available within the below link:
Code to be added:
in main.c:
within initialization part:
/* USER CODE BEGIN PV */
uint32_t Pulses[10] = {0,10,20,30,40,50,60,70,80,90};
and further within main():
/* USER CODE BEGIN 2 */
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, Pulses, 10);
In case of any questions, suggestions, feel free to contact us at our forum at:
Please share with us your feedback on this MOOC using anonymous survey at:
In this example we will control Green LED by Timer1 working in PWM mode (constant frequency, variable duty cycle). Duty cycle of Timer1 will be modified by DMAMUX on each blue button press.
Who should attend this course?
- Engineers looking for a general purpose microcontroller for their embedded applications
- Engineers who wish to better understand the STM32C0's innovative architecture and embedded smart peripherals
- Engineers looking to design applications using a user-friendly development ecosystem
Prerequisites:
- NUCLEO-C031C6 board
- type A to type B micro USB cable
- Laptop PC running Windows® 7, 8, 10 or 11 with administrator rights and with preinstalled software from below link:
Complete list of prerequisites is available within the below link:
Code to be added:
in main.c:
within initialization part:
/* USER CODE BEGIN PV */
uint32_t Pulses[10] = {0,10,20,30,40,50,60,70,80,90};
and further within main():
/* USER CODE BEGIN 2 */
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, Pulses, 10);
In case of any questions, suggestions, feel free to contact us at our forum at:
Please share with us your feedback on this MOOC using anonymous survey at:
Комментарии