Part Number: TMS320F280025C
Other Parts Discussed in Thread: TIDM-02010
I have successfully driven the motor to rotate using the tidm_02010_dmpfc_002x example code.
My needs are very simple. I don’t need PFC or compressor. I just need to use TIDM-02010 hardware to drive dual motors. It can be understood that it drives two fans. The reason for using TIDM-02010 is because it supports high voltage. And with the dual motor routine, I can quickly verify the project.
But regarding the tidm_02010_dmpfc_002x example, I have the following questions. Please ask motor control experts to answer my questions one by one. Thank you:
1. In the initialization code, I saw the HAL_setupPWMsPhaseShift function, which sets the phase displacement of motor 1 and motor 2 (PFC is automatically ignored in this question). Why do I need to set the phase displacement? Is it just to avoid interruption? I tried not setting the phase shift, but the acquisition of the adc voltage will be about 5v higher than the average? why is that?
2. As mentioned above, I only need to drive 2 motors for speed loop control, but the processing of motor 1 and motor 2 seems to be different in the code, because my motor ultimately rotates through the motor 2 channel. Motor 1 is working abnormally. Do I need to modify the logic of motor 2 to motor 1?