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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/28/05 11:29
Read: times


 
#94040 - RE: inetrrupt driven serial
Responding to: ???'s previous message
Well, that's because EVERY time after you have sent out a byte, there will be a serial (tx) interrupt, no matter where you have come to in your main loop. And what does your serial ISR do on a tx interrupt? That's right: unconditionally send out a byte. It will go on forever.

A serial transmit ISR should check if there is something to be sent and send that, or else exit (almost) immediately. The rough idea is that all that checking if the transmitter is ready shouldn't be necessary in your main, and scanning the array and putting it in "outgoing" is exactly the sort of stuff that you normally put in your tx ISR.


List of 10 messages in thread
TopicAuthorDate
inetrrupt driven serial            01/01/70 00:00      
   RE: inetrrupt driven serial            01/01/70 00:00      
      interrupt driven serial            01/01/70 00:00      
         It means Done            01/01/70 00:00      
         RE: interrupt driven serial            01/01/70 00:00      
            one of ways            01/01/70 00:00      
            thanks to all            01/01/70 00:00      
               RE: thanks to all            01/01/70 00:00      
   Wheel re-invention award            01/01/70 00:00      
      good subject !            01/01/70 00:00      

Back to Subject List