Searching \ for 'LCD char generation' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/lcds.htm?key=lcd
Search entire site for: 'LCD char generation'.

Truncated match.
PICList Thread
'LCD char generation'
1997\04\18@190833 by deicide

flavicon
face
How do I go about generating my own characters on the LCD screen......
any info would be great....don't make it too complicated.....:)

1997\04\18@234454 by Andrew Warren

face
flavicon
face
deicide@ATHEIST.COM <spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU> wrote:

> How do I go about generating my own characters on the LCD
> screen...... any info would be great....don't make it too
> complicated.....:)

   You need to write to the Character-Generator RAM to do this.

   There are 64 bytes of CG RAM; each group of 8 bytes describes
   one custom character, so you can create up to 8 custom characters
   at once.

   To creata custom character, first send a "Set CG RAM Address"
   command (64 + the CG RAM address), then write eight bytes of
   data (one for each row of pixels in your character) using your
   Stamp's "write data to the LCD" function.  "0" bits in the data
   you write will leave pixels off; "1" bits will turn them on.
   Only the least-significant 5 bits of each byte are used.

   When you're done, send a "Set Display RAM Address" command (128 +
   the Display RAM address).  Custom characters occupy positions 0-7
   in the Character Set, so if you created a custom character by
   writing its description to CG RAM addresses 0-7, you'd display it
   by sending a "character 0" to the display.  Similarly, a custom
   character created by writing to CG RAM addresses 8-15 would be
   displayed by sending a "character 1" to the display.

   I know this sounds awfully confusing... That's mostly because I
   don't want to write a three-page message on the subject.  Don't
   you have a manual for the LCD controller?

   -Andy

   P.S.  How about signing your name to your posts?

=== Andrew Warren - .....fastfwdKILLspamspam@spam@ix.netcom.com
=== Fast Forward Engineering, Vista, California
=== http://www.geocities.com/SiliconValley/2499

1997\04\19@034504 by deicide

flavicon
face
I got it all runnin.....the first character i make seems to get screwed
up...but the rest work.....
the screen looks like it holds 16 custom characters too????

also when i was told about sending 192 through the LCD command routine i
have.....how did you get that number...is there a list...or is the the
decimal version of where the second line starts...and if so...why does
170 and a lot of other numbers seem to work too???

Thanks a lot....

John

1997\04\19@043815 by Andrew Warren

face
flavicon
face
deicide@ATHEIST.COM <PICLISTspamKILLspamMITVMA.MIT.EDU> wrote:

> also when i was told about sending 192 through the LCD command
> routine i have.....how did you get that number...is there a
> list...or is the the decimal version of where the second line
> starts...and if so...why does 170 and a lot of other numbers seem to
> work too???

John:

I have no idea why 170 works.

192 is the decimal equivalent of C0 hex, which is the command to set
the Display RAM address to 40 hex; 40 hex is the address of the first
position on the second line of the display.

Get the data sheet for your LCD controller; it's undoubtedly on the
web somewhere, and it'll make your life MUCH easier.

-Andy

=== Andrew Warren - .....fastfwdKILLspamspam.....ix.netcom.com
=== Fast Forward Engineering, Vista, California
=== http://www.geocities.com/SiliconValley/2499

More... (looser matching)
- Last day of these posts
- In 1997 , 1998 only
- Today
- New search...