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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/23/09 14:56
Read: times


 
#170009 - Remove all the silly code lines!
Responding to: ???'s previous message
Ghulam,

your two codes "first after it" and "second after it" are full of mistakes and entirely senseless! Look only at the line "SKIP", for instance, which seems to be a part of the original code, but now makes no sense any more.

As long as such silly lines are in your code, not anyone will help you, I guess...

Try to avoid this interrupt coding at all, if you are a newbie. Instead of this, try to solve this with polling the TI flag:

Transmit the DPL register by moving it to the SBUF register, poll the TI flag until it goes high, clear it, then transmit the DPH register by moving it into the SBUF register, poll the TI flag until it goes high and clear it.

Now you can change the DPTR and jump back to the instructions above.

Kai Klaas

List of 26 messages in thread
TopicAuthorDate
Is this Code Correct for 16 Bit Serial Transmission            01/01/70 00:00      
   No.            01/01/70 00:00      
      Sir            01/01/70 00:00      
         Insert program code            01/01/70 00:00      
            How to post legible source code            01/01/70 00:00      
            Who would bother to read uncommented code?            01/01/70 00:00      
               Worse than that            01/01/70 00:00      
         So you will understand            01/01/70 00:00      
   what code?            01/01/70 00:00      
      Program with comments            01/01/70 00:00      
         The first after it            01/01/70 00:00      
            Second after it.......            01/01/70 00:00      
               Simulators            01/01/70 00:00      
               Remove all the silly code lines!            01/01/70 00:00      
                  Comments first, then discussing intention/reality            01/01/70 00:00      
                     Careful Commenting Catches Cruddy Coding!            01/01/70 00:00      
            So where did all the comments go?!            01/01/70 00:00      
               To achieve 16 bit communication            01/01/70 00:00      
                  Exactly what was your "target"?            01/01/70 00:00      
                  How?            01/01/70 00:00      
            Return from interrupt            01/01/70 00:00      
               Of course not            01/01/70 00:00      
                  But how it could be different            01/01/70 00:00      
                     Any more information required            01/01/70 00:00      
                        As previously stated            01/01/70 00:00      
                           and summarised...            01/01/70 00:00      

Back to Subject List