Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/02 16:29
Read: times


 
#22156 - RE: Custom chars on LCD
Hosman,

First build the bitmaps of the characters you intend to store into the LCD. Each character is an 8 byte array. Below are two examples for left and right arrows, each arrow result from the display of two contiguous CG chars:

db 1eh,1ch,18h,10h ;Left Arrow = 1
db 18h,1ch,1eh,00h

db 0fh,07h,03h,01h ;Right Arrow = 2
db 03h,07h,0fh,00h

db 1fh,1fh,01h,01h ;Left Arrow Ext = 3
db 01h,1fh,1fh,00h

db 1fh,1fh,10h,10h ;Right Arrow Ext = 4
db 10h,1fh,1fh,00h

For instance a left arrow displays when you write two bytes for display [01H][03H].

The CG RAM is written as follows:

First write 40H to the CONTROL register. This sets up to write CG RAM location 0.
Now output you tabled character bit maps to the DATA register until you are done or it is full (8 chars x 8 bytes).

regards,
p





List of 4 messages in thread
TopicAuthorDate
Custom chars on LCD            01/01/70 00:00      
RE: Custom chars on LCD            01/01/70 00:00      
RE: Custom chars on LCD            01/01/70 00:00      
RE: Custom chars on LCD            01/01/70 00:00      

Back to Subject List