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 15:31
Read: times


 
#40579 - RE: exiting Interrupts in Pascal
Responding to: ???'s previous message
It would be better to organize the interrupt routine to process when the clock edge occurs and poll in then just that bit of data. Have the interrupt manage a simple state variable that keeps track of such things as:
0=Waiting for start
1=waiting for 1st bit
...
...
...
n=Waiting for parity.
n+1=Last data received
The interrupt routune would then do nothing
but fetch data and setup for the next interrupt and state.

Timeouts can then be managed in the mainline code, where it may even be useful to use a timer interrupt and software timer counters to determine timeout period.

Michael Karas



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