Problem in constantly frequency changing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-14 10:56 PM - edited ‎2023-09-14 10:58 PM
Hii, i am using NUCLEO-G474RE board and i want to generate pwm signal in which frequency change frequently .But i dont know why this code is not working.
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-15 1:34 AM
Hello @Harsh_18
First, you need to declare the PWM_start() function before the while(1) (in the main function).
Also, what is the original value of your arr variable.
Best regards.
II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-15 1:34 AM
Hello @Harsh_18
First, you need to declare the PWM_start() function before the while(1) (in the main function).
Also, what is the original value of your arr variable.
Best regards.
II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-15 4:54 AM
I have already declare PWM_Start() globally. And the original value of arr is 200 that i mention globally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-15 5:04 AM
