PDA

View Full Version : Newbee How to get LCD to display 4-6 var words



emmett brown
- 12th August 2006, 03:35
This is the file that will run the 16x2 LCD that comes with my development board What do I need to integrate this into a program to output 4 to 6 var words two at a time. 16F877 Thanks Again all for putting up with my ignorance!

DEFINE LCD_DREG PORTD
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTD
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTD
DEFINE LCD_EBIT 3
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2

LCDOUT $FE,1," var word stuff here "
LCDOUT $FE,$C0," var word bla here "
etc.

mister_e
- 12th August 2006, 11:20
LCDOUT $FE,1,DEC Word1,$FE,$C0,DEC Word2,DEC Word3,..

emmett brown
- 13th August 2006, 03:22
I'll give it a shot, Makes sense but I don't know how you do it! (know all this stuff that is) Thanks much dude! Emmett

emmett brown
- 13th August 2006, 04:02
Very cool, works excellent! One more proclamation of my ignorance. How do I put a space between the digits? Tried putting an actual space everywhere but it only works in the text. Thanks again for your time

mister_e
- 13th August 2006, 10:35
simple as LCDOUT $fe,1,DEC Var1," ",Dec var2

emmett brown
- 15th August 2006, 01:11
Most excellent Sir! I love when stuff works! Thank you So Much!! Emmett