Hi guys, long term lurker first time poster!
I have a silly problem...
I have salvaged an old 1x16 lcd from a phone, I am sure it is HD44780 compatible.
I am using a pic16f628, but when I try the program all I get is this;
Any ideas?
TIA![]()
Hi guys, long term lurker first time poster!
I have a silly problem...
I have salvaged an old 1x16 lcd from a phone, I am sure it is HD44780 compatible.
I am using a pic16f628, but when I try the program all I get is this;
Any ideas?
TIA![]()
Hi TIA,
Looks like it is working, you need to add a contrast control.
http://www.picbasic.co.uk/forum/showthread.php?t=49
JS
Last edited by Archangel; - 24th February 2008 at 21:55.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I have a variable resistor for the contrast, all I get is those blocks though...
This is the code I have;
PAUSE 1000
LCDOUT $FE,1
LCDOUT "Hello World!"
STOP
END
Is that correct?
TIA - Thanks In Advance.![]()
Show us the whole code. Might be something in the defines.
Dave
Always wear safety glasses while programming.
I found a major problem! Pin 5 of the PIC was going to +5v not ground! [/sheepish]
Now the display works, ish, but I am only getting the first 8 chars displayed...?
![]()
And don't forget this lcdisplay is a 2x8 and not a 1x16 line display.
So tell this in the beginning of your program when defining everything.
I hate to write this but Read The Fine Manual. Sorry but you really have to. This PIC has analog comparators that need to be set prior at the top of your program. Something like:
cmcon = 7 ' to disable portA comparators
vrcon = 0 'disable reference voltage output at porta.2
Also don't forget to use some DEFINE's (in capital letters!) to tell PBP what LCD you have and where it is connected (see at LCDout on page 95 of 3.04 manual version).
Ioannis
Bookmarks