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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/02/02 07:37
Read: times


 
#30003 - RE: software interrupt
"after internal timer time up"

I presume you mean one of the 8051's hardware timers?

In your Interrupt Service Routine (ISR) for the hardware timer interrupt, just set a flag; eg,
time_up = 1;
Then the rest of your program can check this flag, and take appropriate action when it's set; eg,
if( time_up )
{
   time_up = 0;
   // do the necessary
   :
}


List of 4 messages in thread
TopicAuthorDate
software interrupt            01/01/70 00:00      
RE: software interrupt            01/01/70 00:00      
RE: software interrupt            01/01/70 00:00      
RE: software interrupt            01/01/70 00:00      

Back to Subject List