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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/28/07 07:33
Read: times


 
#146310 - Step-by-step - learning to debug
Responding to: ???'s previous message
Shilpa Chakravarthy said:
it isnt working

Your first step must be to determine what, exactly, "isn't working";

Once you know what isn't working, then you can find out why it isn't working;

Once you know what isn't working and why, then you can fix it!

This process is known as debugging.

See: http://www.8052.com/forum/read.phtml?id=118587

i have to measure the frequencies of the waves that the sensors pass through to the microcontroller... the wave obtained is a square wave...and afterwards there is some calculation part and finally the value should be displayed on an LCD...

You have several distinct functions here:
  • measure the frequencies;
  • some calculation;
  • display on an LCD.

    You need to isolate each one and make sure it's working before adding the next.

    I recommend starting with the LCD - as that will give you a way to display results of the other steps.

    As others have suggested, for the frequency measurement, start with just one. I would also suggest that you start with a known square-wave generator before using the actual sensors.

    Have you tried it in a Simulator?

  • List of 28 messages in thread
    TopicAuthorDate
    problem            01/01/70 00:00      
       Equality vs. assignment            01/01/70 00:00      
          which begs the question            01/01/70 00:00      
             Probably not, but...            01/01/70 00:00      
                Keil does            01/01/70 00:00      
       Only one pass through main...            01/01/70 00:00      
       Does it work with one sensor?            01/01/70 00:00      
          Which sensor are you asking about?            01/01/70 00:00      
       How to post legible source code            01/01/70 00:00      
       Step-by-step - learning to debug            01/01/70 00:00      
          Before debugging...            01/01/70 00:00      
       problem is            01/01/70 00:00      
          See DanĀ“s comment            01/01/70 00:00      
          Error information            01/01/70 00:00      
             Macros introducing more errors            01/01/70 00:00      
                Case sensitivity            01/01/70 00:00      
                thanks            01/01/70 00:00      
       where is that...            01/01/70 00:00      
          Not all equal            01/01/70 00:00      
             problem            01/01/70 00:00      
                DESCRIBE THE PROBLEMS            01/01/70 00:00      
       Obvious errors            01/01/70 00:00      
       Error Description            01/01/70 00:00      
          No, that won't work            01/01/70 00:00      
       Verify the hardware?            01/01/70 00:00      
          Pullups don't solve toolchain errors            01/01/70 00:00      
       reply to ur prblm            01/01/70 00:00      
          Try a spell checker            01/01/70 00:00      

    Back to Subject List