Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
void F281X_EV1_BLDC_PWM_Update(PWMGEN *p) { int32 Tmp; int16 Period, GPR0_BLDC_PWM; // State s1: current flows to motor windings from phase A->B, de-energized phase = C if (p->CmtnPointer==0) EvaRegs.ACTRA.all = 0x00C2;// State s2: current flows to motor windings from phase A->C, de-energized phase = B else if (p->CmtnPointer==1) EvaRegs.ACTRA.all = 0x0C02;// State s3: current flows to motor windings from phase B->C, de-energized phase = A else if (p->CmtnPointer==2) EvaRegs.ACTRA.all = 0x0C20; // State s4: current flows to motor windings from phase B->A, de-energized phase = C else if (p->CmtnPointer==3) EvaRegs.ACTRA.all = 0x002C;// State s5: current flows to motor windings from phase C->A, de-energized phase = B else if (p->CmtnPointer==4) EvaRegs.ACTRA.all = 0x020C;// State s6: current flows to motor windings from phase C->B, de-energized phase = A else if (p->CmtnPointer==5) EvaRegs.ACTRA.all = 0x02C0;