Turn off the pwm timer if running 100% duty cycle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-05 2:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-01-05 2:42 PM
I have a very simple motor control design that will always run the motor at 100% duty cycle with the supply voltage changes being used to control the motor speed. The only concern in the code is to commutate the motor.
I got started with the B-G431 board and used the motor control work bench to generate a 6 step driver, which mostly works.
This code will need to be ported to a custom board - with far less capabilities than the eval board - another task that I'd like to use the motor workbench to solve by code generating the code for me.
If I am running the 3 sets of hi/lo gpio pins at 100% duty cycle, do I need timers and PWM associated with these pins? Can I simplify the code - any suggestions where in the code to look?
