cancel
Showing results for 
Search instead for 
Did you mean: 

Turn off the pwm timer if running 100% duty cycle

ABlak.1
Associate III
1 REPLY 1
ABlak.1
Associate III

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?