#include <msp430.h>
unsigned int dau=0,i=0;
unsigned int a[]={0,0,0,0};
void setup_timer(){
TA0CTL=TASSEL_2+ID_3+MC_2+TAIE;
TA0CCTL0 = CM_3 + CCIS_0 + CAP + CCIE+ SCS;
}
void setup_port(){
// CCI1A -> P1.1 (datasheet)
P1SEL |= BIT1;
P1SEL2 &= ~BIT1;
P1DIR &= ~BIT1...