HI Caleb ' Thanks a lot . your answer is appreciated . I have anther question about the timer clock . the code i use as follows CCTL0 = CCIE; // CCR0 interrupt enabled CCR0 = 80 ; TACTL = TASSEL_2 + MC_1; // SMCLK, upmode _BIS_SR(LPM0_bits + GIE); // Enter LPM0 w/ interrupt #pragma vector=TIMER0_A0_VECTOR __interrupt void timerA0ISR(void) { read_signal(); } Is that code correct as i am using the timer interrupt every 80 cycle to excite the function( read_signal) thanks in advance .
↧