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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/21/12 00:04
Read: times


 
#186082 - Oscilloscope
Responding to: ???'s previous message
For all baudrate-related situations, you should send some data and verify the baudrate using an oscilloscope. Then you would quickly notice if you have misscalculated something.

Just trying to debug the receiver means you will not know if it's a baudrate issue, an interrupt handler issue or something else if you fail to receive data. Always look at your source code lines and make yourself this question: "what part of this code can I prove? And how do I prove it?"

After a while, you will be better and better writing testable code. So you will spend less and less time debugging, because your errors will be caught that much quicker. But it's important to try to debug the small LEGO pieces one-by-one instead of combining 1000 pieces and then start to debug the complex system. There will be too many unknowns, making it very, very hard to figure out why something fails if you start directly with system testing before having done all possible module testing.

List of 17 messages in thread
TopicAuthorDate
Help. Writing Hex code from serial port to External device            01/01/70 00:00      
   Look at this            01/01/70 00:00      
      Using 8051            01/01/70 00:00      
   Why ASM?            01/01/70 00:00      
      Design your subroutine(s)            01/01/70 00:00      
   RI Flag            01/01/70 00:00      
      READ_SERIAL            01/01/70 00:00      
         RI setup            01/01/70 00:00      
            are you sure?            01/01/70 00:00      
               CKCON            01/01/70 00:00      
                  well, then            01/01/70 00:00      
                     Correct            01/01/70 00:00      
                        RI and TI            01/01/70 00:00      
                           Ok            01/01/70 00:00      
                              Diff Of TI and RI            01/01/70 00:00      
                                 Uart stall            01/01/70 00:00      
                        Oscilloscope            01/01/70 00:00      

Back to Subject List