Although Keith answered your question quite well, this information is documented on page 94 of the PicBasic Pro manual under the LCDOUT command section (pg 94 of the online version here http://www.melabs.com/downloads/pbpm304.pdf )
Although Keith answered your question quite well, this information is documented on page 94 of the PicBasic Pro manual under the LCDOUT command section (pg 94 of the online version here http://www.melabs.com/downloads/pbpm304.pdf )
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Oops
Cant find my printed manual at the moment to check if it is in there but on my Intranet I have the HTML version of the manual which I use as my reference.
It must be a much older version as it doesnt have the sentance about
LCDOUT $FE, $80+4.
It just says "See the data sheet for the particular LCD device for the character memory locations and additional commands"
Keith
www.diyha.co.uk
www.kat5.tv
This will cover everything
LCDOUT $FE,1, $80 + X, "your text here"
OR
LCDOUT $FE,1, $80 + X, #VAR here
Where X is the number of needed space.
Can also be broken in 2 instructions: LCDOUT $FE,1 : LCDOUT $FE, $80 + X, ...
Note: I strongly recommend against using spaces, mainly because it eats up more program memory, hard to see on source code too:
Can make a big difference if used extensively!Code:ex 1 : lcdout $FE,$80," 99" ---> 294 bytes used ex 2 : lcdout $FE,$80+15,"99" ---> 200 bytes used
Hope It helps you sirvo and bill12780
Last edited by GrandPa; - 30th July 2007 at 01:45.
Feels like I am at the Church of the Blessed PIC!
Ok so here is a prime example of why you should read the entire section of the commmand.
I glazed over it to get to the defines section so I could change the default port from A to D. I totally skipped the section on memory mapping.
If I had read it, it would not have been such a revelation that the "commands" has they are refered to (in the manual) are actually "pointers" (for lack of a better term) to memory location within the LCD. I thought it was all PBP thing. Not LCD specific. Now I now...hahaha
I am going to go over the Datasheet for the HD44780 when I get a sec. Cause I bet I can finally figure out how they do scrolling (horizontal and vertical). But for now still working on my Keypad project...
Thanks you two! Time here is never wasted in my opinion. I learn something new each and everytime I come in here.
Oh and by the way...I have just (like a month ago) ordered the upgrade from MElabs to 2.47. My orginal (your not gonna belive this) came on a FLOPPY! So I ordered the printed manual as well. My manual is the same as the online version. I am a bit old school (Still have my old TI Logic Databooks!) I like having the printed book. You can order just the manual from MELabs for like 10-15 bucks...
Thanks again everyone!
Bill12780
Bill
Ask (search) about BIG number whenever you feel ready. Someone made a really nice routine to display 4*4 number on LCD.
J-P
Grandpa,
Here is the the link of which you speak of.
Its mostly all over my head at this point. But I am learning fast. I book marked it and post it here for others refrence.
http://www.picbasic.co.uk/forum/showthread.php?p=26736
Thanks all!
Bill12780
Bookmarks