Tool/software: Code Composer Studio
Hello,
I want to use a SG90 servo motor with MSP430FR4133 and I dont know why don't turn on when I create a PWM at P1.6. I connect SG90 at 3V Vcc.
Need to use an external source for this?
#include "driverlib.h" int main(void) { WDTCTL = WDTPW + WDTHOLD; P1DIR |= BIT7; P1SEL0 |= BIT7; P1DIR |= BIT6; P1SEL0 |= BIT6; PM5CTL0 &= ~LOCKLPM5; TA0CCR0 = 20; TA0CCTL1 = OUTMOD_7; TA0CCR1 = 1; TA0CTL = TASSEL_2 + MC_3; __bis_SR_register(LPM0_bits); }