Part Number: TMS320F28379D
Other Parts Discussed in Thread: DRV8305, CONTROLSUITE,
Hello,
I am working on BLDC hall sensor based motor. when i am trying to rotate the motor with 30% to 65% dutycycle it rotate fine. but i want to improve this duty cycle range like 10% to 90%(high speed to low speed) .
My question is: Does delay make any difference or affect the motor? in my code i am using 1ms delay after reading hall sensor. i am using DRV8305 and code composer studio.
Also when i put initEPWM() function + delay 1 msec in for loop that time only it worked fine.
main()
{
for(;;)
{
initpwm();
if (hall sensorA=0 && hall sensorB=1 && hall sensorC=0)
{
pwm1&PWM4 generate;
2,3,5,6 PWM disable;
}
else if (hall sensorA=0 && hall sensorB=1 && hall sensorC=0)........
{
....
}
//similarly for other 5 commutation
delay_us(1000);
}
}
Other parameter is: PWM frequency 1khz
Deadnad 490 nsec
AQCTL CAU =set
AQCTL CAD =clear
Can anybody suggest me where i am wrong?