Hi, Thank you for your answer. The time may vary for example due to temperature conditions so that is the reason why I have been waiting for crystal to start its operation using for loop and lower cycle rate with integer counter in loop. Isn't it better solution? I mean the XT1 may stabilize sooner or later. Or are there any side effects. int count = 50000; do { UCSCTL7 &= ~XT1LFOFFG; SFRIFG1 &= ~OFIFG; _delay_cycles(50); } while((UCSCTL7 & XT1LFOFFG) && --count); }
↧