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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/03/03 12:08
Read: times


 
#40539 - exiting Interrupts in Pascal
hey,

i'm trying to program a PC keyboard on my 80C54 uC in pascal. i've connected the PC keyboard to an interrupt port 1.

in my interrupt routine i made some loops for waiting on clockpulses. for preventing that my programm doesn't keep i a loop, i made a counter. if this counter exceed the value 500 then the interrupt routine must be exit. but i read that using the "exit" procedure in an interrupt make my program unpredictable.

the way i made those loops, looks like this:
t:=0;
repeat
inc(t);
if t=500 then exit;
until p1.2;

does someone know how to exit an interrupt procedure in pascal

thanks in advance


List of 7 messages in thread
TopicAuthorDate
exiting Interrupts in Pascal            01/01/70 00:00      
   RE: exiting Interrupts in Pascal            01/01/70 00:00      
      RE: exiting Interrupts in Pascal            01/01/70 00:00      
   RE: exiting Interrupts in Pascal            01/01/70 00:00      
      RE: exiting Interrupts in Pascal            01/01/70 00:00      
   RE: exiting Interrupts in Pascal            01/01/70 00:00      
      RE: exiting Interrupts in Pascal            01/01/70 00:00      

Back to Subject List