I have designed my own PCB similar to the TMDSHVMTRPFCKIT using the F28035 microcontroller. I've run through all the levels in HVACI_Scalar completing Level3. For my purposes I need to be able to spin the motor in both forward and reverse direction. The motor spins fine in the forward direction but it doesn't spin at all in the reverse direction when using a negative value SpeedRef. I have tried to modify the original code with the following to swap the A and B lines using software but it didn't make a difference.
if(rc1.SetpointValue >= 0)
{
pwm1.MfuncC1 = svgen_mf1.Ta;
pwm1.MfuncC2 = svgen_mf1.Tb;
}
else
{
pwm1.MfuncC1 = svgen_mf1.Tb;
pwm1.MfuncC2 = svgen_mf1.Ta;
}
pwm1.MfuncC3 = svgen_mf1.Tc;
PWM_MACRO(1,2,3,pwm1) // Calculate the new PWM compare values
Anybody have an idea what may be the issue?
Regards,