I wrote this to display Geez on a lcd and it showed nothing. Can this be due to the code. Circuitry is the one in the manual next to lcdout. PIC 16F628A.
GreetingsCode:Define OSC 20 Go: LCDOUT "Geez" Sleep 100 GOTO Go
I wrote this to display Geez on a lcd and it showed nothing. Can this be due to the code. Circuitry is the one in the manual next to lcdout. PIC 16F628A.
GreetingsCode:Define OSC 20 Go: LCDOUT "Geez" Sleep 100 GOTO Go
Last edited by selbstdual; - 20th January 2008 at 11:20.
Be well - whoever you are.
Whe you read the book that came with your version of picbasic you will see that some declarations must be made for the LCD.
In the declartions the display driver will know how much pins and where the pins come from.
like this:
Code:DEFINE LCD_DREG PORTB DEFINE LCD_DBIT 0 DEFINE LCD_RSREG PORTB DEFINE LCD_RSBIT 4 DEFINE LCD_EREG PORTB DEFINE LCD_EBIT 5 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE LCD_COMMANDUS 2000 DEFINE LCD_DATAUS 50
I thought this was only necessary if you do not use the standard setup....
I tried and it did not change anything. So.
I got this:
Code:Define OSC 20 DEFINE LCD_DREG PORTB DEFINE LCD_DBIT 0 DEFINE LCD_RSREG PORTB DEFINE LCD_RSBIT 4 DEFINE LCD_EREG PORTB DEFINE LCD_EBIT 5 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE LCD_COMMANDUS 2000 DEFINE LCD_DATAUS 50 Go: LCDOUT "Geez" Sleep 100 GOTO Go
Last edited by selbstdual; - 20th January 2008 at 11:38.
Be well - whoever you are.
Let us see how you connected everything from the chip to the display.
Try to adjust the background voltage, may be that is the problem!
Put a pause of 1 sec. between the declaration and your programm. Maybe the display was not yet setup.
I have not told you yet that the LCD's functionality is not proven. I was given it by someone in a waste utilization for free.
How do I figure out whether it works or not? I was able to make the lcd's points show(two rows, all matrices black). What can I conclude from that?
Be well - whoever you are.
selbstdual, If you can see all black pixels then it sounds like the contrast is set too high. How do you have the contrast circuit setup? It should be at minimum a 5k pot between VCC and ground with the center wiper connected to the contrast input pin.
Dave Purola,
N8NTA
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.
Bookmarks