Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Read data from LCD?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive
View previous topic :: View next topic  
Author Message
LWesthaver

Bascom Member



Joined: 26 Jan 2006
Posts: 11

usa.gif
PostPosted: Tue Mar 07, 2006 3:25 pm    Post subject: Read data from LCD? Reply with quote

Currently I use the BASCOM-8051 LCD routines to write to and control my LCD (they are very convenient) but I see no way to retrieve data from the LCD's DDRAM. This would be a really useful feature for me.

I would think a function like:

Dim X as Byte
Locate 1,5 ' point to LCD character
X = LCD ' retrieve LCD character

might be a good way to implement such a feature.

What do you think?
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Tue Mar 07, 2006 6:47 pm    Post subject: Reading LCD Reply with quote

Have even seen a program that uses the non-used RAM locations of a LCD. If you use a 16 x 2 LCD, you will have 40 x 2 byte of RAM and only 16 x 2 are used (visible). So you will have 80 - 32 = 48 bytes you can use as pure RAM.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
LWesthaver

Bascom Member



Joined: 26 Jan 2006
Posts: 11

usa.gif
PostPosted: Tue Mar 07, 2006 6:57 pm    Post subject: Reply with quote

Exactly! If you have extra RAM available in the LCD, why not put it to use?

Also, I use password protection in my firmware and it bugs me that I have the password the user entered sitting there in the LCD's RAM and yet I can't easily read it. I have to keep another copy of the password in scratch RAM. What a waste.

-wes
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-8051 Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum