Other Parts Discussed in Thread: TMS570LS3137, DRV8312
Tool/software: Code Composer Studio
I have FOC controlled BLDC motor by using TMS570LS3137 controller and DRV8312. Also, I read position of encoder which is not connected to same bldc motor, and that position information is not used anywhere for now.
That encoder work with Biss-c protocol, and I used MIBSPI1CLK and MIBSPISOMI pin. MIBSPI1CLK frequency is 1 Mhz.
If I do not use MIBSPICLK pin to read encoder position, there is no problem control the BLDC motor. However if I use MIBSPICLK pin to read encoder position, motor vibrating and sink more current. Also position information of the encoder is wrong always that time.
If I do not rotate motor ( cut off power source 24 V of drv8312, controller PWM's are still produced), I can read correct data of the position encoder by using MIBSPICLK and MIBSPISOMI pin.
In other words both system (controlling bldc motor, reading position information encoder) work without problem if they work SEPARATELY. However if both system are combined they do not function properly.
Not1: If I used N2HET1_13 pin to generate 1 Mhz CLK frequency instead of MIBSPI1CLK pin everything is fine except for some CRC mistake but i think that problem is synchronization problem of N2HET1_13 and MIBSPISOMI pin.
Do you have any idea what can be the problem?