BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:08 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: LCD 4x20 (HD44780) with serial backpack
PostPosted: Mon Oct 17, 2011 11:31 am 
Offline
Citizen

Joined: Thu Jul 15, 2010 5:07 am
Posts: 6
Hi all,
I´m wondering what "serout" command should i use on my atom to see text on all rows.

I actually took that serial backpack from 2x16 lcd display so i´m not even sure if it can drive
4x20 display.

Currently i´m using these commands to row 1 and 2 witch are working just fine.

serout 4, I9600, [27,91,50,74] 'cls
serout 4, i9600, [27,91,49,59,49,72, "Coloum 1 Row 1"]
serout 4, i9600, [27,91,50,59,49,72, "Coloum 2 Row 2"]

but i can't figure out how to write to Row 3 and 4,
if that is even possible with that backpack. ?
Any ideas what command to use, please.

Thank you
Poikkis


Top
 Profile  
 
 Post subject: Re: LCD 4x20 (HD44780) with serial backpack
PostPosted: Wed Oct 19, 2011 12:29 am 
Offline
Citizen

Joined: Thu Jul 15, 2010 5:07 am
Posts: 6
I will answer on my own question :)

That serial backpack what i´m using dosen't support 4x20 mode.
Simple as that. New one ordered :)

Poikkis


Top
 Profile  
 
 Post subject: Re: LCD 4x20 (HD44780) with serial backpack
PostPosted: Wed Oct 26, 2011 7:57 am 
Offline
Citizen

Joined: Thu Jul 15, 2010 5:07 am
Posts: 6
Got BV4618 backpack serial controller
http://www.byvac.com/downloads/datashee ... aSheet.pdf

Following code works nicely.


pause 1000
'setting up BV4618 serial LCD controller.
serout 4, I9600, [13] 'send "cr" for auto baud detection
pause 2000
serout 4, I9600,100, [27,91,52,76] '4 row mode
serout 4, I9600,100, [27,91,50,48,99] '20 character mode
serout 4, I9600,100, [27,91,63,50,53,73] 'cursor off esc[?25I
serout 4, I9600,100, [27,91,50,74] 'clear screen


serout 4, i9600, [27,91,49,59,49,72, "Coloum 1 Row 1"]
serout 4, i9600, [27,91,50,59,49,72, "Coloum 2 Row 2"]
serout 4, i9600, [27,91,51,59,49,72, "Coloum 1 Row 3"]
serout 4, i9600, [27,91,52,59,49,72, "Coloum 2 Row 4"]

regards
Poikkis


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO