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

I need to "talk" to HD44780 commun LCD by 2 wires

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



Joined: 07 Jan 2006
Posts: 64
Location: Braga

View user's profile Send private message Send e-mail MSN Messenger

I need to "talk" to HD44780 commun LCD by 2 wires
PostPosted: Sun Oct 08, 2006 8:56 am     Reply with quote

I need to "talk" to HD44780 commun LCD by 2 wires, with a pic coverting serial to parallel LCD or some circuit to convert serial data to parallel data .

Anyone can post " driver code " and " master code " ?

Thank you ALL
bsodmike



Joined: 05 Aug 2006
Posts: 52

View user's profile Send private message Visit poster's website AIM Address MSN Messenger

PostPosted: Sun Oct 08, 2006 9:57 am     Reply with quote

There's some schematics for the 3-wire method if you search google (data, clock, enable) using a serial-in parallel-out shift register, and you can tie this down to a 2-wire by shifting in 9bits, and use the 9th bit to trigger the 'enable' line Smile

The shift register allows to pass the serial data in 4-bit mode to the LCD. If speed is important, go parallel, but serial is great if i/o lines are critical.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 08, 2006 1:31 pm     Reply with quote

This company has serial LCD products.
http://www.seetron.com/slcds.htm
They have a "backpack" board that you can solder onto your existing
LCD, and it will provide a serial interface (Tx and Rx pins).
It's called "LCD Serial Backpack®".
They also sell several LCDs with the serial interface built-in.
Download the manuals for information on the LCD commands.


Here is another company that sells serial interface LCDs.
http://www.crystalfontz.com/products/index-ser.html
The LCDs will work with RS232 or SPI interface.
Download the manuals to see the list of commands.


You don't need to start a new thread every time you get a new
idea on serial LCDs. Just add a post onto this existing thread.
MGP



Joined: 11 Sep 2003
Posts: 57

View user's profile Send private message

PostPosted: Tue Oct 10, 2006 2:44 am     Reply with quote

SparkFun also sells serial LCDs and LCD serial "backpacks":

http://www.sparkfun.com/commerce/product_info.php?products_id=461

http://www.sparkfun.com/commerce/product_info.php?products_id=812

http://www.sparkfun.com/commerce/product_info.php?products_id=813

http://www.sparkfun.com/commerce/product_info.php?products_id=814

http://www.sparkfun.com/commerce/product_info.php?products_id=462

http://www.sparkfun.com/commerce/product_info.php?products_id=258
bsodmike



Joined: 05 Aug 2006
Posts: 52

View user's profile Send private message Visit poster's website AIM Address MSN Messenger

PostPosted: Tue Oct 10, 2006 7:38 am     Reply with quote

I have got two of their serial backpacks, which have been coded via the CC5X compiler.

The latest version (iirc v2.5) is ok, but doesn't boot up properly every single time. I plan on porting it over to CCS and see if I can sort it out at some point. The backpacks are great as the total cost is cheaper than getting the PCB prototyped + parts, and it has an ICSP header so you can always re-flash the PIC :D
jruibarroso



Joined: 07 Jan 2006
Posts: 64
Location: Braga

View user's profile Send private message Send e-mail MSN Messenger

I have too much standar display and i would like to make my
PostPosted: Tue Oct 10, 2006 7:46 am     Reply with quote

I have too much standard display and i would like to make my one serial to parallel converter with a pic or 74LS174, maybe ? my problem is i can design code for this kind of controller, i need a "driver" code to add at my project.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

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

PostPosted: Tue Oct 10, 2006 8:17 am     Reply with quote

Hex D flip flop?????


I think you would want to use 74HC595
and the driver is here
C:\Program Files\PICC\Drivers\74595.C


Notice that this is the HC type chip.. LS type chips are getting old.
jruibarroso



Joined: 07 Jan 2006
Posts: 64
Location: Braga

View user's profile Send private message Send e-mail MSN Messenger

Yes , something like that but to connect an standart LCD16x2
PostPosted: Tue Oct 10, 2006 10:07 am     Reply with quote

Yes , something like that but to connect an standart LCD16x2

driver code and main program
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 10, 2006 11:50 am     Reply with quote

Quote:
I have too much standard display and i would like to make
my one serial to parallel converter with a pic or 74LS174.

Look at the bottom of this page:
http://www.myke.com/lcd.htm
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