Part Number: DRV8312-69M-KIT
Dear team:
Background: lab01b (InstaSPIN Projects and Labs User’s Guide)
I have changed the program according to the document requirements. After load the project, The LD2 can blink, But the motor did not rotate and I can't measure any waveform (Only DC waveform) at J6-DAC1, DAC2, DAC3 or MOTOR-MOA, MOB, MOC on the broad.
Questions:
1, Can I directly measure the waveform in the figure below on the DRV8312EVM? If so, which terminal should I test?
2, In stap 2a, I need to set the right offset and gain for each PWMDAC channel in proj_lab01b.c and hal.c as below:
// set DAC parameters gDacData.ptrData[0] = &gPwmData.Tabc.value[0]; gDacData.ptrData[1] = &gPwmData.Tabc.value[1]; gDacData.ptrData[2] = &gPwmData.Tabc.value[2]; gDacData.ptrData[3] = &gAdcData.V.value[0]; HAL_setDacParameters(halHandle, &gDacData);
But in lab01b, do the other lines of parameters in the same location need to be commented out?
// set DAC parameters gDacData.ptrData[0] = &gPwmData.Tabc.value[0]; gDacData.ptrData[1] = &gPwmData.Tabc.value[1]; gDacData.ptrData[2] = &gPwmData.Tabc.value[2]; gDacData.ptrData[3] = &gAdcData.V.value[0]; // gDacData.ptrData[0] = &angle_gen.Angle_pu; // gDacData.ptrData[1] = &gAdcData.I.value[0]; // gDacData.ptrData[2] = &gPwmData.Tabc.value[0]; // gDacData.ptrData[3] = &gAdcData.V.value[0]; HAL_setDacParameters(halHandle, &gDacData);
The same problem can be found in Step 2b, set the right offset and gain for each PWMDAC channel in proj_lab01b.c and hal.c:
// set DAC parameters gDacData.ptrData[0] = &angle_gen.Angle_pu; gDacData.ptrData[1] = &gAdcData.I.value[0]; gDacData.ptrData[2] = &gPwmData.Tabc.value[0]; gDacData.ptrData[3] = &gAdcData.V.value[0]; HAL_setDacParameters(halHandle, &gDacData);
Maybe the problem is relatively elementary. I hope you can give me some advice.
Best regards
But the motor did not rotate.
