How is possible, that period when ' ' apears on usart0 is 10 times longer, 
than calculated period ( 8MHz/8=SMCLK,
SMCLK/2 =500KHz;period=1/500*65535=~0.125sec)
interrupt (TIMERA_VECTOR)TAISR(void);
static i = 0;

interrupt (TIMERA_VECTOR)TAISR(void){
i =1;
}
int main(){
TACTL = ID_1|TASSEL_2|TACLR             //SMCLK/2
TACCTL0 = CCIE;
        for(;;){
                if (i==1){
                i=0;
                while(!(U0IFG & UTXIFG)) U0TXBUF=' ';
                }
        }
}
-- 
Regards
Robert Seczkowski 
robert.seczkow...@sz.onet.pl
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

Reply via email to