Searching \ for '[PIC]:help seting up an LCD' 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/io/lcd/pic.htm?key=lcd
Search entire site for: 'help seting up an LCD'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:help seting up an LCD'
2001\02\16@135635 by cas Fenoll Molina

flavicon
face
Hi I´ve got a pic16f877 wired up with an 16X4 LCD
It´s working fine but just line 1 and 3 can be written
How do you set up all 4 lines to be on all the time?
Thanks in advance
the device is 14 pin and has just one hitachi chip and the support chip

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\16@141656 by Wayne Hortensius

flavicon
face
At 06:54 PM 2/16/01 +0000, Lucas Fenoll Molina
<spam_OUTlucas.fenollTakeThisOuTspamLIBERTYSURF.CO.UK> wrote:
>Hi I´ve got a pic16f877 wired up with an 16X4 LCD
>It´s working fine but just line 1 and 3 can be written
>How do you set up all 4 lines to be on all the time?

IIRC,
Line 1: starts at address 0x00
Line 2: starts at address 0x40
Line 3: starts at address 0x14
Line 4: starts at address 0x54

Regards,
Wayne

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\16@142531 by cas Fenoll Molina

flavicon
face
Hi Wayne
I´ve tried lots of differents addresses and still nothing happend with line
2 and 4
shouldn´t the lcd at least show on this lines the squares that mean they are
on?
when I start the lcd line 1 and 3 are like this
but the other two are dead
Also I tried setting the bit that tells the lcd to be in 1 line mode or 2
line mode....
and eve when this bit is set to 0 this is 1 line mode still show the squares
for line 1 and 3
any thoughts for this?

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\16@145750 by Wayne Hortensius

flavicon
face
At 07:23 PM 2/16/01 +0000, you wrote:
>I´ve tried lots of differents addresses and still nothing happend with line
>shouldn´t the lcd at least show on this lines the squares that mean they are
>on?
>when I start the lcd line 1 and 3 are like this
>but the other two are dead
>Also I tried setting the bit that tells the lcd to be in 1 line mode or 2
>line mode....

This almost sounds like the controller is staying in one line mode and not
switching to 2(N) mode. Check the RS line to make sure it's getting
through. Can you issue other commands (e.g. clear, cursor on/off, etc)
successfully?

Wayne

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\16@151102 by Tim Hamel

picon face
Aside from what Wayne mentioned, it could be that you're not initializing it properly. You'll need to put it into 2-line mode by sending 0011 1000 binary. If that doesn't do anything then check your contrast adj.

Regards,

Tim Hamel

In a message dated 2/16/01 11:27:41 AM Pacific Standard Time, .....lucas.fenollKILLspamspam@spam@LIBERTYSURF.CO.UK writes:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\16@151715 by John Doe

picon face
Lucas Fenoll Molina wrote:

> I4ve tried lots of differents addresses and still nothing happend
> with line
> 2 and 4
> shouldn4t the lcd at least show on this lines the squares that
> mean they are
> on?
> when I start the lcd line 1 and 3 are like this
> but the other two are dead
> Also I tried setting the bit that tells the lcd to be in 1 line mode or 2
> line mode....
> and eve when this bit is set to 0 this is 1 line mode still show
> the squares
> for line 1 and 3
> any thoughts for this?

Well, I had exactly the same problem recently. It turned out to be a bug in
my
initialization routine. Are you also using the device in 4-bit mode?
I was using a subroutine to split 8 bit commands in 2 nibbles that were sent
to
the LCD. But, during initialization, the LCD seems to expect only one 4 bit
command
at a time. Strange thing was, everything else worked fine. So if I had been
using
a 1 or 2 line display, I would never have found this error. By the way: the
LCD should
be put in 2 line mode. Hope this helps (if it doesn't, please post you init
code).

Happy coding, John.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2001\02\17@004438 by cas Fenoll Molina

flavicon
face
part 1 73 bytes content-type:text/plain; (decoded 7bit)

here is my code if this help
thanks



part 2 7915 bytes content-type:application/octet-stream; (decode)

part 3 144 bytes
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\02\17@010646 by Tim Hamel

picon face
In a message dated 2/16/01 9:47:06 PM Pacific Standard Time,
lucas.fenollspamKILLspamLIBERTYSURF.CO.UK writes:

> here is my code if this help
>  thanks
>
Found a bug:

lcd_com
       nop
       bsf     PORTA,0         ; A0 high this is Enable in the LCD
       bsf     PORTA,2         ; A2 high This is RS in the LCD

***You need need to bring RS low for command mode. Other than that, it looks
ok.

Regards,

Tim Hamel

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\02\18@084432 by cas Fenoll Molina

flavicon
face
Yes I can send  other comands, and move arround the locations of line 1 and
3
but still can´t get line 2 and 4 to work
If you know of anything else please let me know
Thanks for your time Wayne

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\02\19@145049 by Steve Smith

picon face
There are some lcd's that cheat seen this on a 2 x 16 line device the
addresses are not concurrent (0-15 line 1 31-46 line 2) it maybe that this is
ine of the eco modules with less drive chips on it try spooling out .80
char's to it and see if the two dead lines then light up......

Steve.....

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


2001\02\19@145709 by Robert Shady

picon face
Actually, NONE of LCD's use concurrent memory for the
1st & 2nd line, do they?  It always seemed to me to
go from 1st -> 3rd -> 2nd -> 4th...

-- Rob

--- Steve Smith <EraseMEXYGAXspam_OUTspamTakeThisOuTAOL.COM> wrote:
{Quote hidden}

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body


2001\02\19@150127 by Steve Smith

picon face
They made some cheep ones some time ago i found one with different addresses
on the same line i think it was a 1 x 16

Steve.....

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body


2001\02\20@162935 by Gennette, Bruce

flavicon
face
If intending to operate in 4 bit mode be aware that the LCD *ALWAYS* wakes
up ion 8 bit mode.
You should tie the Lo nibble to 0V (so that it is read as 0000 in 8 bit
mode), and send the set up commands
(which *ALL* end in 0000) as just the Hi nibbles.

*AFTER* you swap to 4 bit mode the 8 bits then need to be sent as 2 nibbles.

Does the 16x4 lcd perhaps have 2 controllers with 2 enable pins, with the
display mapped like -

E1L1
E2L1
E1L2
E2L2

Bye

{Original Message removed}

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