Searching \ for 'Hitachi LCD custom characters' 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: 'Hitachi LCD custom characters'.

Truncated match.
PICList Thread
'Hitachi LCD custom characters'
1998\11\29@213036 by Brian Striggow

flavicon
face
       I have numerous sources of data which specify the command to send
to a Hitachi driven LCD display for defining custom characters.  However,
none actually specify how to map out the character.

       Has anybody done this or seen a source for the info??

tnx
bcs

1998\11\29@215538 by Ralph Landry

flavicon
face
Brian,
Here is one I did for another processor the character is 5 bits wide by
7 bits.

I wanted to display an up arrow like
    X                '04h value
 XXX             '0Eh value
X  X  X           '15h value
    X               '04h value
    X               '04h value
    X               '04h value
                      '00h value  end of the character
here is an example of my code.
ld a, 0x04
call dumpcg
ld a, 0x0e
call dumpcg
ld a, 0x15
call dumpcg
ld a, 0x04
call dumpcg
ld a, 0x04
call dumpcg
ld a, 0x04
call dumpcg
ld a, 0x04
call dumpcg
ld a, 0x0
call dumpcg

All of the above is just a bit pattern of the character, line by line, it is
sent
and stored in the display memory.  Then by printing that character to a
location on the display you'll get that character.

You first need to address the character ram area which is at 40h for the
first of 8 available characters you can send.  Just by writing the one line
of the character will automatically position the ram pointer to the next
location so you can just keep dumping the characters you need to build
without having to reposition the ram counter.

I made an up arrow, a down arrow and a combination up and down arrow.
These were mapped as characters 0, 1, 2 (with up to 8 available).  When
I wanted to display the down arrow for example I would load the character
value of 1 into the accum and send it to the display routine.  If I loaded
the
value of 41h and displayed it I'd get the letter 'A', is this making any
sense to you??


-Ralph
spam_OUTrlandryTakeThisOuTspamhaywood.main.nc.us
"If they call it Tourist Season why can't we shoot 'em?"
ICQ# 19545315
{Original Message removed}

1998\11\29@220618 by Michael Hagberg

flavicon
face
i have a printed manual with this info. here is a quick description of how
to write a character 'R' to the map. using the common 5x7 dot pattern

set the cg ram address as follows
7 6 5 4 3 2 1 0
x x c c c L L L
x - don't care
c - custom character number ( 0 - 7 )
L - dot line number ( 0 - 7 )

the data is written into the lower 5 bits of the cg data
xxx11110
xxx10001
xxx10001
xxx11110
xxx10100
xxx10010
xxx10001
xxx00000

connect all the '1's to see the pattern

michael

You may leave the list at any time by writing "SIGNOFF PICLIST" in the
   body of a message to .....LISTSERVKILLspamspam@spam@MITVMA.MIT.EDU.

{Original Message removed}

1998\11\29@223941 by mkeitz

picon face
On Sun, 29 Nov 1998 21:28:44 -0500 Brian Striggow <striggbspamKILLspamBAE.UGA.EDU>
writes:
>        I have numerous sources of data which specify the command to
>send
>to a Hitachi driven LCD display for defining custom characters.
>However,
>none actually specify how to map out the character.
>
>        Has anybody done this or seen a source for the info??

The character data is a bitmap.  Each byte is one horizontal row.  Since
the character cells are only 5 pixels wide, only the low 5 bits of each
byte are used.  The LSB is rightmost.  The first byte is the top row.  If
you're using the x8 or x16 modes, each character uses 8 bytes.  If you
use the x11 mode, each character uses 16 bytes, with only the first 11
visible (there are only 4 custom characters possible in that mode).

For example, the stock character "P" would be something like:

00011110  (First byte)
00010001
00010001
00011110
00010000
00010000
00010000
00000000  (Last byte)

The high 3 bits of the bytes are stored in RAM, but never used on the
screen.  So they can be used for general-purpose storage if the PIC has a
way to read back from the LCD controller.


___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

1998\11\30@123831 by uter van ooijen / floortje hanneman

picon face
I guess you mean where each bit will end up when you display the character?
For the 5x8 mode which I use the first byte is the top row, the 0'th bit
the flast collumn etc.
In my home-brew HLL I use

  HD44780_define(
     0,
     0b_00100,
     0b_01110,
     0b_11111,
     0b_00100,
     0b_00100,
     0b_00100,
     0b_00100,
     0b_00100
  )

to define character 0 as an up-arrow.

Wouter.

----------
{Quote hidden}

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