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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/03/05 14:48
Read: times


 
#100540 - So debug it!
Responding to: ???'s previous message
D.narender Reddy said:
i have seen all that stuff , but iam unable to work out with it

You'd have done yourself a great service if you'd explained that in the first place!

i have written this code it does [not?] contain any errors and is compiled but when i dump this onto the controller , i get some irrelavent data on the screen of lcd.

You are not going to get far if you just give up when it doesn't work perfectly first time!

If all code always worked perfectly first time, why would there be so many simulators, debuggers, ICEs, oscilloscopes, logic analysers, etc, etc, etc on the market...?!!

Don't just give up on your code - start debugging it!

As a first stage, try just stepping through your LCD_write() code manually, and draw the transitions that it should generate on your LCD control & data pins. Compare this with the required timings shown in the LCD datasheet - do they match?
If not - fix it!

If they do match, use an oscilloscope to verify that the real lines in your target hardware are actually behaving as required...

etc, etc,...



List of 5 messages in thread
TopicAuthorDate
lcd_init() function            01/01/70 00:00      
   open it:)            01/01/70 00:00      
   i had but its not working            01/01/70 00:00      
      So debug it!            01/01/70 00:00      
   8-bit or 4-bit?            01/01/70 00:00      

Back to Subject List