View previous topic :: View next topic |
Author |
Message |
el_tigre
Joined: 23 Dec 2007 Posts: 12 Location: Bs As : Argentina
|
Need help with 4x20 LCD model WH4004A of Winstar |
Posted: Tue Dec 14, 2010 8:48 pm |
|
|
Hi, I bought a 4x20 LCD model WH4004A of Winstar, here is the spec:
http://www.winstar.com.tw/products_detail_ov.php?lang=es&ProID=41
This is the first time that I see two lines for ENABLE function, somebody knows how can I use it?
Cause all examples are for single line ENABLE.
Thanks |
|
|
Geps
Joined: 05 Jul 2010 Posts: 129
|
|
Posted: Wed Dec 15, 2010 4:40 am |
|
|
That LCD screen is for a 4x40 LCD - not a 4x20.
If that is the screen you're using than the datasheet suggests (I don't know for certain as I haven't used it), the output is two 20x4 controllers concatenated.
Use the flex_lcd driver for a 20x4 using the first enable pin, and try to write data. It should appear on the top two lines.
Then refine the enable pin for the second enable and recompile. Again try to write data to the screen and it should appear on the bottom two.
It's then up to you to manually set/clear the correct enable pin for the half of the controller you want to write to.
Heads up though....the gotoXY subroutine in the driver won't work as intended and you should keep that in mind for any other subroutines that call it to read data back. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
el_tigre
Joined: 23 Dec 2007 Posts: 12 Location: Bs As : Argentina
|
|
Posted: Wed Dec 15, 2010 2:47 pm |
|
|
Hi, thanks for information.
The driver works fine, I had to change the delay time, it´s showing garbage on the second LCD screen, but making that change worked perfectly.
Thanks |
|
|
|