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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/10/04 18:41
Read: times


 
#77215 - Debugging time
Responding to: ???'s previous message
Huzefa Khairullah said:
i have tried three diffrent programs and i have even assembled them using the 8051 ide simulator

What have you leanred from this excercise?

A simulator should allow you to verify that the logic of your code is as you expected.
Was it?

Huzefa Khairullah said:
these programs are showing no errors at all

All this tells you is that you have not broken any of the syntax rules of your assembler - it gives absolutely no indication whatsoever that the behaviour of what you've written will be as you expected - let alone that it will be correct!

Huzefa Khairullah said:
using the keyboard im not getting any response from the microcontroller

What "response" do you expect?

What have you done to verify that anything is happening at all?
Have you used a scope to check if the strobe lines are working correctly?
And that pressing a key does actually cause the correct state change at the processor pin?

As Craig suggested, can you even flash a LED?

Once you can flash a LED (or, preferably, several LEDs), you can use them to indicate the state of your code and thus help you to debug it.
Better still if you can get the serial port working to give debug messages to a terminal.


List of 15 messages in thread
TopicAuthorDate
matrix keyboard interfacing to 8051            01/01/70 00:00      
   RE: matrix keyboard interfacing to 8051            01/01/70 00:00      
   Schematic, code, and test the circuit            01/01/70 00:00      
      RE: Schematic, code, and test the circuit            01/01/70 00:00      
      RE: Schematic, code, and test the circuit            01/01/70 00:00      
         RE: Schematic, code, and test the circuit            01/01/70 00:00      
         Port0 cannot emit high level            01/01/70 00:00      
            RE: Port0 cannot emit high level            01/01/70 00:00      
               RE: Port0 cannot emit high level            01/01/70 00:00      
   Debugging time            01/01/70 00:00      
   RE: matrix keyboard interfacing to 8051            01/01/70 00:00      
      RE: LEDs and UART debug            01/01/70 00:00      
      ALE vs LED            01/01/70 00:00      
         RE: ALE vs LED            01/01/70 00:00      
   Flow chart            01/01/70 00:00      

Back to Subject List