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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/11 11:11
Modified:
  06/07/11 11:14

Read: times


 
#182517 - Re: what is polling..
Responding to: ???'s previous message
Hi F Y!

The term 'polling' is used to describe the process of having your program manually check the status of a register bit/byte value, i.e. like what you're attempting to do with the RI flag in your example program.

From my observation, your code cannot work, since you are not checking if your 8051 UART has sucessfully sent out a byte of data In fact it looks to me as if you are constantly writing to SBUF (thus effectively 'resetting' the data transmisson already in progress..) while waiting for the RI flag to say 'i've got a data byte'..

So, my guess would be you will need to re-write your code to include checking of both the RI and TI flags. You may find a few ideas for this in the code library on this site..

Regards Valentin



List of 17 messages in thread
TopicAuthorDate
Help on Serial Port            01/01/70 00:00      
   Try polling the TI flag before writing to SBUF..            01/01/70 00:00      
      What is polling ?            01/01/70 00:00      
         Re: what is polling..            01/01/70 00:00      
            Re: what is polling            01/01/70 00:00      
               Polling ...            01/01/70 00:00      
               While I don't normally mind..            01/01/70 00:00      
                  Detailed answers            01/01/70 00:00      
   if you want help ...            01/01/70 00:00      
      How to post legible source code            01/01/70 00:00      
         Posting source code            01/01/70 00:00      
      Re: if you want help ...            01/01/70 00:00      
   some errors            01/01/70 00:00      
      Re: some errors            01/01/70 00:00      
   Is it working if            01/01/70 00:00      
   Worked !!!            01/01/70 00:00      
      dont forget RI            01/01/70 00:00      

Back to Subject List