Skip to main content
abodi.1
Associate II
March 29, 2023
Solved

Hello Mr. can you help me on how I can create a variable that will change my duty cycle on the debugger thank you

  • March 29, 2023
  • 1 reply
  • 758 views

0693W00000bh8bTQAQ.png

This topic has been closed for replies.
Best answer by Tesla DeLorean

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.

1 reply

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
March 29, 2023

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.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..