Thanks for the reply, So for example WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer BCSCTL1 = CALBC1_1MHZ; DCOCTL = CALDCO_1MHZ; P1DIR |= BIT1; P1SEL |= BIT1; P1DIR |= BIT5; P1IN |= BIT5; TA0CCR0 = 1000; TA0CCTL0 = OUTMOD_4; TA0CTL = TASSEL_2 + MC_1; will output a pwm at P1.1 and input in P1.5 then to capture time would I do something like, TA1CTL = TASSEL_2 + MC_2; TA1CCTL= CM_1+CAP so in this case in would use 2 timers, one for my pwm and another for my capture timer. would this be the correct way to go about?
↧