CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Need help with 4x20 LCD model WH4004A of Winstar

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
el_tigre



Joined: 23 Dec 2007
Posts: 12
Location: Bs As : Argentina

View user's profile Send private message Visit poster's website

Need help with 4x20 LCD model WH4004A of Winstar
PostPosted: Tue Dec 14, 2010 8:48 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 15, 2010 4:40 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Dec 15, 2010 1:15 pm     Reply with quote

There is a 4x40 LCD driver in the CCS code library forum:
http://www.ccsinfo.com/forum/viewtopic.php?t=32091
el_tigre



Joined: 23 Dec 2007
Posts: 12
Location: Bs As : Argentina

View user's profile Send private message Visit poster's website

PostPosted: Wed Dec 15, 2010 2:47 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group