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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/01/09 10:55
Modified:
  10/01/09 10:55

Read: times


 
#169331 - Debugging techniques
Responding to: ???'s previous message
Juergen Christoph said:
Print out the program and go through step by step on the paper with a pencil


Andy Neil said:
It is an excellent suggestion and, as he said, would very quickly answer your question!

A somewhat less laborious approach would be to run the code in a Simulator - there you could single-step it and watch exactly what happens.

If you had a chip with on-chip debug, you could use that to single-step in the real hardware and watch exactly what happens.

These are basic and very powerful debugging techniques - make the most of them!

More tips here: http://www.8052.com/faqs/120313


List of 28 messages in thread
TopicAuthorDate
TEMPERATURE MONITORING DEVICE USING AT89C51            01/01/70 00:00      
   Divide your problem into parts            01/01/70 00:00      
      ADC is working fine            01/01/70 00:00      
   29.9 is what you implemented            01/01/70 00:00      
      I don't get it.            01/01/70 00:00      
         OR this way also            01/01/70 00:00      
         Did you try?            01/01/70 00:00      
            Debugging techniques            01/01/70 00:00      
            tried it            01/01/70 00:00      
   Test your Display routines using DIP switches            01/01/70 00:00      
   Excellent question            01/01/70 00:00      
      agreed, but one thing missing            01/01/70 00:00      
         8 data lines for 7-seg            01/01/70 00:00      
            I see no con2 connections on your schematic and ...            01/01/70 00:00      
               also            01/01/70 00:00      
               CON2 is good.            01/01/70 00:00      
         7 segments, plus DP            01/01/70 00:00      
            the 8 data lines are each segment + dot            01/01/70 00:00      
      Thank you            01/01/70 00:00      
   Look at your code            01/01/70 00:00      
      You're right            01/01/70 00:00      
         First try to solve the simplest things like DELAY            01/01/70 00:00      
   Problem Solved!            01/01/70 00:00      
      We ought to have this as an example of a well-framed query!            01/01/70 00:00      
         Absolutely            01/01/70 00:00      
            Fix the FAQs?            01/01/70 00:00      
            agreed, but there is one fly in the ointment            01/01/70 00:00      
               it's not a big fly            01/01/70 00:00      

Back to Subject List