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;