Hello Mr. can you help me on how I can create a variable that will change my duty cycle on the debugger thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 10:20 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 11:29 AM
Perhaps add some console input?
Have a named variable you can open/view the debuggers memory view, and have the code in the main loop or update interrupt write this into the TIM->CCRx register.
If you have a Peripheral View open for the TIM you could perhaps enter in the value directly.
Probably safer to have a User Interface, that way you can check value ranges, and you aren't dead-stopping the machine.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 11:29 AM
Perhaps add some console input?
Have a named variable you can open/view the debuggers memory view, and have the code in the main loop or update interrupt write this into the TIM->CCRx register.
If you have a Peripheral View open for the TIM you could perhaps enter in the value directly.
Probably safer to have a User Interface, that way you can check value ranges, and you aren't dead-stopping the machine.
Up vote any posts that you find helpful, it shows what's working..
