This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LCD interfacing

Hi all,
I am interfacing 16x2 character LCD to P89LV51 and using 8bit interface mode, I am initializing the LCD by this sequence
function set - 0x38
display control- 0x0f
entry mode set- 0x06
cursur shift- 0x14
clear display - 0x01
and finally displaying the string
but after initializing, display is blank, instead of busy check, i used delay then, still the display is void. I used the LCD initialization as given HD44780U datasheet. Still No display. But Same LCD is working actually with some other code. Can somebody tell me the exact problem.

Parents Reply Children
  • But Same LCD is working actually with some other code

    look at her code and seee the direfences.

  • Hi my frend,

    Please post your project (simplified if you want) in a zipped or rared form to rapidshare, including also the asm with the working hardcoded delays.

    Sorry but I dont' have a program with busy checking but Im'm working with code also in very diffucult assembly, hope I can help you.

    However, my quick ideas are here:

    1. Also for check only the busy flag (bit 7) you must read back the whole byte (both nybbles) !!
    2. Do you make the proper port (data pins) direction alterings ? (onley the busy checking needs ouput(and input ?????) 0...3 as inputs)

    zuisti

    (chief programmer)