View previous topic :: View next topic |
Author |
Message |
jruibarroso
Joined: 07 Jan 2006 Posts: 64 Location: Braga
|
I need to "talk" to HD44780 commun LCD by 2 wires |
Posted: Sun Oct 08, 2006 8:56 am |
|
|
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
|
|
Posted: Sun Oct 08, 2006 9:57 am |
|
|
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
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
|
|
Posted: Sun Oct 08, 2006 1:31 pm |
|
|
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
|
|
|
bsodmike
Joined: 05 Aug 2006 Posts: 52
|
|
Posted: Tue Oct 10, 2006 7:38 am |
|
|
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
|
I have too much standar display and i would like to make my |
Posted: Tue Oct 10, 2006 7:46 am |
|
|
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
|
|
Posted: Tue Oct 10, 2006 8:17 am |
|
|
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
|
Yes , something like that but to connect an standart LCD16x2 |
Posted: Tue Oct 10, 2006 10:07 am |
|
|
Yes , something like that but to connect an standart LCD16x2
driver code and main program |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Oct 10, 2006 11:50 am |
|
|
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 |
|
|
|