Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/23/04 06:06
Read: times


 
#67235 - Problem with delays
Hi everyone

I'm using Keil uVision2, C compliler. I have a program with delays in it, but when I run it on the software and hardware platfrom the delays doen not seem to work. Am I calling the delays wrong or what? Can someone help me. Here is a sample code of my delay and how I call it. I call my delays in the main program as well as in my interrupt. A 12MHz X-tal is used. This is a 2 second delay.

delay( ) reentrant
{
unsigned int x;
for (x=0;x<50000;x++);
}

extenal( ) interrupt 0

do something;
do something;
delay( );
do something etc;


main( )

do something;
do something;
delay( );
do something etc;

Please help!


List of 17 messages in thread
TopicAuthorDate
Problem with delays            01/01/70 00:00      
   RE: Problem with delays            01/01/70 00:00      
   RE: Problem with delays            01/01/70 00:00      
      RE: Problem with delays            01/01/70 00:00      
         RE: Problem with delays            01/01/70 00:00      
            RE: Problem with delays            01/01/70 00:00      
               RE: Problem with delays            01/01/70 00:00      
                  RE: Problem with delays            01/01/70 00:00      
                     RE: Problem with delays            01/01/70 00:00      
                        RE: Problem with delays            01/01/70 00:00      
                           RE: Problem with delays            01/01/70 00:00      
                              RE: Problem with delays            01/01/70 00:00      
   RE: Problem with delays            01/01/70 00:00      
   RE: Problem with delays            01/01/70 00:00      
      RE: Problem with delays            01/01/70 00:00      
         RE: Problem with delays            01/01/70 00:00      
   RE: Problem with delays            01/01/70 00:00      

Back to Subject List