2003-05-12 11:19 PM
2003-05-02 04:15 AM
Hello,
how can I create a delay of 3 seconds? tia Christophe2003-05-08 07:43 AM
Best method is to use the timer in output compare mode, if you download the ST7 library there is an example of an RTC with the timer.
Hope this helps SJO2003-05-12 11:19 PM
Another way is to call function like-
void delay(void) { unsigned int a,b,c; for (a=0xffff;a>=0;a--) { for ( b=0xffff;b>=0;b--) { for (c=0xffff;c>=0;c--); } } } You can set the value of a,b,c or add another variable to according to delay time & cpu clock frequency.[ This message was edited by: Ranjeet on 13-05-2003 12:12 ]