Цитата(CAHTA_1939 @ Aug 19 2007, 00:55)

а примерчик можешь дать?
Де жа вю...
//******* DELAY SUPPORT *******//
__no_init int delay_count;
void StartDelay(int t)
{ delay_count=t; }
void Delay(int t)
{ StartDelay(t); while(delay_count>0) CheckTimeAndResetWDT() ; }
void BackgroundService()
{ // Delay service
if (delay_count) delay_count--;
}
void TimerBConfiguration(void)
{ __bic_SR_register OSCOFF;
TBCTL = TBSSEL_2 + TBCLR + MC_0; // Timer B counts SMCLK clocks continuos
TBCCTL0 = CCIE; // module 0 configuration
TBCCR0 = MaxB; // period of timer overflow
TBCTL |= MC_1; // timer start to "UP" mode
};
#pragma vector=TIMERB0_VECTOR
__interrupt void TimerB_modul0()
{ __enable_interrupt();
ResetWDT1;
BackgroundService();
}
Уходя, оставьте свет...