Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: Time between output/input

$
0
0
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?

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>