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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Per Westermark
02/20/12 17:04
Read: 529 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
Help. Writing Hex code from serial port to External device      Dave McNamara      01/27/12 15:42      
   Look at this      Michael Karas      01/27/12 18:46      
      Using 8051      Dave McNamara      01/28/12 03:19      
   Why ASM?      Andy Neil      01/30/12 14:43      
      Design your subroutine(s)      David Prentice      01/30/12 15:20      
   RI Flag      Dave McNamara      02/20/12 08:48      
      READ_SERIAL      Michael Karas      02/20/12 09:25      
         RI setup      Dave McNamara      02/20/12 09:57      
            are you sure?      Erik Malund      02/20/12 10:04      
               CKCON      Dave McNamara      02/20/12 10:22      
                  well, then      Erik Malund      02/20/12 11:17      
                     Correct      Dave McNamara      02/20/12 12:11      
                        RI and TI      Erik Malund      02/20/12 12:24      
                           Ok      Dave McNamara      02/20/12 12:32      
                              Diff Of TI and RI      Michael Karas      02/20/12 12:57      
                                 Uart stall      Maarten Brock      02/22/12 07:01      
                        Oscilloscope      Per Westermark      02/20/12 17:04      

Back to Subject List