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.

DRV8842: Current not able to control(MSP430F5438A) for the DRV8842PWPR motor driver

Part Number: DRV8842
Other Parts Discussed in Thread: MSP430F5438A,

MSP430F5438A Controller is unable to control the current of DRV8842PWPR motor driver with I0 to I4 pins.

The below is configuation from MSP controller side side. Current control is responding only for the PINs I0 and I4. Could you suggest where could be wrong?

P1DIR |= (1 << 2);

P1SEL |= (1 << 2);

P1DIR |= (1 << 3);
P1SEL |= (1 << 3);

TA0CCTL0 |= CCIE;
TA0CCR0 = 0x60;                  //50Khz frequency
TA0CCTL1 = OUTMOD_4;
TA0CCR1 = 0;

TA0CCTL2 = OUTMOD_4;
TA0CCR2 = 0;
TA0CTL = TASSEL_2 + ID_0 + MC__UPDOWN;