>2Re: LCD Display
Archiver
Posts: 46,084
I am using the bs2 i am able to display something on the screen(some
wierd characters and 1 of my characters), but it just repeats the
first letter i ask it to be, 5 times.
I got the second line to show some text, but it looks like it
continues in the middle of the text i wrote for the second line. All
i need to know is how to make that next begin on the second line, and
i dont think i need to put some that code that i got. Thanks
> > --- In basicstamps@yahoogroups.com, "Mohamed REFKY" <refky@h...>
> > wrote:
> > > You have to initialize the LCD for 2 line:
> > >
> > > LCDinit:
> > > PAUSE 500 'let theLCD settle
> > > OUTC = %0011 '8-bit mode
> > > PULSOUT E,1
> > > PAUSE 5
> > > PULSOUT E,1
> > > PULSOUT E,1
> > > OUTC = %0010 '4-bit mode
> > > PULSOUT E,1
> > > char = %00101000 '2-line mode
> <================
> > > GOSUB LCDcommand
> > > char = %00001100 'disp on,crsr off,blind off
> > > GOSUB LCDcommand
> > > char = %00000110 'inc crsr,no disp shift
> > > GOSUB LCDcommand
> > >
> > > For using the second line:
> > >
> > > DDRAM con $80
> > > line2 con $40 'statring address of
> line
> > 2
> > >
> > > char = DDRam + line2 'go to line 2
> > > GOSUB LCDcommand
> > >
> > > >From: "virtualeast" <vea@v...>
> > > >Reply-To: basicstamps@yahoogroups.com
> > > >To: basicstamps@yahoogroups.com
> > > >Subject: [noparse][[/noparse]basicstamps] LCD Display
> > > >Date: Mon, 04 Aug 2003 15:03:42 -0000
> > > >
> > > >I got the program code from the nuts and volts magazine on
> > parallax's
> > > >website. http://www.parallax.com/dl/docs/cols/nv/vol1/col/NV31-
> > > >Demystifying_Character-based%20LCD's.pdf . i used the code on
> page
> > 10
> > > >Program Listing 31.2 . I have a 2 X 24 line display and i want
> to
> > use
> > > >4 bits for the bus. The lcd display on the program is 1 x 16.
i
> was
> > > >able to show 24 characters but i dont know how to display the
2nd
> > > >line. http://www.allelectronics.com/cgi-bin/category.cgi?
> > > >category=365&item=LCD-74&type=store is the product. The data
> sheet
> > > >for it is on that page.
> > > >
> > > >
> > > >
> > > >To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > >from the same email address that you subscribed. Text in the
> > Subject and
> > > >Body of the message will be ignored.
> > > >
> > > >
> > > >Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > >
> > >
_________________________________________________________________
> > > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail
wierd characters and 1 of my characters), but it just repeats the
first letter i ask it to be, 5 times.
I got the second line to show some text, but it looks like it
continues in the middle of the text i wrote for the second line. All
i need to know is how to make that next begin on the second line, and
i dont think i need to put some that code that i got. Thanks
> > --- In basicstamps@yahoogroups.com, "Mohamed REFKY" <refky@h...>
> > wrote:
> > > You have to initialize the LCD for 2 line:
> > >
> > > LCDinit:
> > > PAUSE 500 'let theLCD settle
> > > OUTC = %0011 '8-bit mode
> > > PULSOUT E,1
> > > PAUSE 5
> > > PULSOUT E,1
> > > PULSOUT E,1
> > > OUTC = %0010 '4-bit mode
> > > PULSOUT E,1
> > > char = %00101000 '2-line mode
> <================
> > > GOSUB LCDcommand
> > > char = %00001100 'disp on,crsr off,blind off
> > > GOSUB LCDcommand
> > > char = %00000110 'inc crsr,no disp shift
> > > GOSUB LCDcommand
> > >
> > > For using the second line:
> > >
> > > DDRAM con $80
> > > line2 con $40 'statring address of
> line
> > 2
> > >
> > > char = DDRam + line2 'go to line 2
> > > GOSUB LCDcommand
> > >
> > > >From: "virtualeast" <vea@v...>
> > > >Reply-To: basicstamps@yahoogroups.com
> > > >To: basicstamps@yahoogroups.com
> > > >Subject: [noparse][[/noparse]basicstamps] LCD Display
> > > >Date: Mon, 04 Aug 2003 15:03:42 -0000
> > > >
> > > >I got the program code from the nuts and volts magazine on
> > parallax's
> > > >website. http://www.parallax.com/dl/docs/cols/nv/vol1/col/NV31-
> > > >Demystifying_Character-based%20LCD's.pdf . i used the code on
> page
> > 10
> > > >Program Listing 31.2 . I have a 2 X 24 line display and i want
> to
> > use
> > > >4 bits for the bus. The lcd display on the program is 1 x 16.
i
> was
> > > >able to show 24 characters but i dont know how to display the
2nd
> > > >line. http://www.allelectronics.com/cgi-bin/category.cgi?
> > > >category=365&item=LCD-74&type=store is the product. The data
> sheet
> > > >for it is on that page.
> > > >
> > > >
> > > >
> > > >To UNSUBSCRIBE, just send mail to:
> > > > basicstamps-unsubscribe@yahoogroups.com
> > > >from the same email address that you subscribed. Text in the
> > Subject and
> > > >Body of the message will be ignored.
> > > >
> > > >
> > > >Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > >
> > >
_________________________________________________________________
> > > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > > http://join.msn.com/?page=features/junkmail