Shop OBEX P1 Docs P2 Docs Learn Events
QY–162A LCD module in 4 bits mode - how to troubleshoot? — Parallax Forums

QY–162A LCD module in 4 bits mode - how to troubleshoot?

vaclav_salvaclav_sal Posts: 451
edited 2009-01-19 05:29 in BASIC Stamp
I have BS2 hooked up to QY-162A LCD module and cannot make it work in 4 bits mode.
·
The Hitachi doc says that it comes up in 8-bit mode on power up and needs to be set (initialized) to 4-bit mode in several attempts using single (nibble) output if the control data variable is a byte.
To output characters it says that you need to output the high nibble first and than the low and than read the busy flag (four times).
·
I have not found a working BS2 sample code (4 bits interface) anywhere.
Some of the samples even state not to worry about the busy flag and are using PAUSE liberally!
·
My basic question is – do I need to send both high and low nibbles even when only one is required to set a· “function” and than send four (enable) pulses to satisfy the busy flag?
·
·
Right now I do not know if I have hardware or software problem.
There is no feedback from any of the initialization steps described by Hitachi.
So, how do I troubleshoot this?
Any constructive help is appreciated.
Vaclav

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-01-19 05:22
    Hello,

    If your display is truly Hitachi compatible then the code examples on the following page should help. Take care.

    CLICK HERE

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • MrBi11MrBi11 Posts: 117
    edited 2009-01-19 05:29
    here is some info on the HD44780 that it is suppose to be a clone of:
    home.iae.nl/users/pouweha/lcd/lcd.shtml



    [noparse][[/noparse]I couldn't find to much on QY-162A]
Sign In or Register to comment.