This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: Control of BLDC motor

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

I want to run my BLDC motor with the help of my DSP(TMS320F28335). However it is able to detect change in Hall State ( I confirmed it by rotating rotor with hand). But as soon as Hall State is changing, corresponding pulses is not developed. However after when I stop the debugging and debug it again then corresponding correct pulses are produced. I am not getting how to develop pulses continuously according to change in hall state. I am using following code-

#define H_A   GpiodataRegs.GPADAT.bit.GPIO24

#define H_ B  GpiodataRegs.GPADAT.bit.GPIO25

#define H_C   GpiodataRegs.GPADAT.bit.GPIO26

if (H_A == 1)

H1=1;

else H1=0;

if (H_2 == 1)

H2=1;

else H2=0;

if (H_C == 1)

H3=1;

else H3=0;

then calculating corresponding hall state and the switching.