Searching \ for 'LCD Problem II' 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 Problem II'.

Truncated match.
PICList Thread
'LCD Problem II'
1998\10\08@193217 by Sean Breheny

face picon face
Hi all,

Thanks for the quick help on the original problem, but now I have another.

I can write to the first line of the LCD fine, but I can't find any way
that lets me write to the second. If I try just sending more than 16 chars,
the ones that come after 16 don't get printed. If I try to set the address
register, the same thing happens. Apparently, I can't find the right
address for the second line. Some body had suggested that the address for
the first line was 0x80 and 0xC0 for the second. Well 0x80 works for the
first line, but when I write to 0xC0, I get no output. I also tried 0xA0
and 0x90, and neither worked.

Thanks in advance for your help,

Sean

+--------------------------------+
| Sean Breheny                   |
| Amateur Radio Callsign: KA3YXM |
| Electrical Engineering Student |
+--------------------------------+
Save lives, please look at http://www.all.org
Personal page: http://www.people.cornell.edu/pages/shb7
spam_OUTshb7TakeThisOuTspamcornell.edu  Phone(USA): (607) 253-0315 ICQ #: 3329174

1998\10\08@200136 by Tony Nixon

flavicon
picon face
Sean Breheny wrote:

> I can write to the first line of the LCD fine, but I can't find any

I'm not sure of the command value, but you need to set the display up
for 2 lines instead of 1 line when you initialise the display at
powerup.


--
Best regards

Tony

Multimedia 16F84 Beginners PIC Tools.
**New Improved PicNPost**

http://www.picnpoke.com
Email .....picnpokeKILLspamspam@spam@cdi.com.au

1998\10\08@201137 by Todd Peterson

flavicon
face
At 07:30 PM 10/8/98 -0400, you wrote:

>I can write to the first line of the LCD fine, but I can't find any way
>that lets me write to the second. If I try just sending more than 16 chars,
>the ones that come after 16 don't get printed. If I try to set the address
>register, the same thing happens. Apparently, I can't find the right
>address for the second line. Some body had suggested that the address for
>the first line was 0x80 and 0xC0 for the second. Well 0x80 works for the
>first line, but when I write to 0xC0, I get no output. I also tried 0xA0
>and 0x90, and neither worked.

Sean,

If it's a 16x1, $80 is the first 8, and $C0 starts the second 8.

Are you certain you are senidn ghte $C0 properly, as an instruction and not
as data?



Ê Todd Peterson
Ê E-Lab Digital Engineering, Inc.
Ê (816) 257-9954
Ê Embedded Control & Integrated Circuit Solutions...
<http://www.elabinc.com/>http://www.elabinc.com

-> NEW: EDE702 OEM Serial to LCD Interface IC <-
(Production Quantity version of our popular EDE700 IC)

1998\10\08@204123 by Sean Breheny

face picon face
Thanks to all who responded, I just figured it out.

Just as Tony said, I had the second line turned off. I was actually setting
it up for two line, but the next instruction after that was a "display on"
which apparently resets the setting to single line. When I moved the
instruction which set the bit to the position just AFTER the reset, it
started working.

Also, all of those who suggested the address 0xC0 were correct, that is the
address for the second line, and it WON'T just go over to the second line,
you must actually set the address, just as you all said.

Thanks,

Sean

At 06:58 PM 10/8/98 -0600, you wrote:
{Quote hidden}

+--------------------------------+
| Sean Breheny                   |
| Amateur Radio Callsign: KA3YXM |
| Electrical Engineering Student |
+--------------------------------+
Save lives, please look at http://www.all.org
Personal page: http://www.people.cornell.edu/pages/shb7
shb7spamKILLspamcornell.edu  Phone(USA): (607) 253-0315 ICQ #: 3329174

1998\10\08@210032 by Ralph Landry
flavicon
face
Sean,
I believe you should be writing to the second line at 40h and 0h for the
first line.  Set the cursor address to 40h and then print your line.

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

1998\10\08@210616 by Ralph Landry

flavicon
face
I believe that 0h is the first line and 40h is the second line,
although I can see where using 80h for the first line and
C0h for the second line would do the same as it appears
as bit 7 is getting lost in the bit bucket.

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

1998\10\09@065003 by Caisson

flavicon
face
> Van: Ralph Landry <rlandryspamspam_OUThaywood.main.nc.us>
> Aan: @spam@PICLISTKILLspamspamMITVMA.MIT.EDU
> Onderwerp: Re: LCD Problem II
> Datum: vrijdag 9 oktober 1998 6:03
>
> I believe that 0h is the first line and 40h is the second line,
> although I can see where using 80h for the first line and
> C0h for the second line would do the same as it appears
> as bit 7 is getting lost in the bit bucket.

wasn't bit 7 set to tell the LCD to do something with the cursor-position
adres, and not with the re-definable characters ?   I do not have the doc's
here with me, so I can't verify it ...

Greetz,
 Rudy Wieser

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