CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Multiplexing LCD & Keypad

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Pilot



Joined: 06 Jul 2004
Posts: 9

View user's profile Send private message ICQ Number

Multiplexing LCD & Keypad
PostPosted: Fri Sep 03, 2004 3:38 am     Reply with quote

Hi,

I couldnt find :( Coluld you pls shortly explain the logic, give example code & shematic? Thanks (LCD is driven in 4 bit data mode)
Trampas



Joined: 04 Sep 2004
Posts: 89
Location: NC

View user's profile Send private message MSN Messenger

PostPosted: Sun Sep 05, 2004 5:55 pm     Reply with quote

Pilot,

I guess we need some more detail, or this was part of another thread?

Trampas
Pilot



Joined: 06 Jul 2004
Posts: 9

View user's profile Send private message ICQ Number

PostPosted: Mon Sep 06, 2004 12:17 am     Reply with quote

Trampas wrote:
Pilot,

I guess we need some more detail, or this was part of another thread?

Trampas


I mean how can LCD and Keyboard share same pins?
My project has 3 buttons & 7 pins connected to LCD.
I wonder, can I use 3 or 4 lines of the LCD to read the buttons?
Guest








PostPosted: Mon Sep 06, 2004 12:59 am     Reply with quote

Replace D2 ... D6 with 470 ~ 1k ohm should work

That's how I made it work.

Best wishes
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Sep 06, 2004 6:42 am     Reply with quote

You should not need to replace the diodes. To read the keypad, set each "row" to 0. Start and the first row and set it high (1). Now look at each column. Any column that is high will mean that the key at that row/column is pressed. Now set the first row back low and move to the next row and repeat the process until all the rows are done. So long as the LCD is now enabled this should not affect the operation of the LCD.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
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


Powered by phpBB © 2001, 2005 phpBB Group