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

implementing diode keyboard matrix

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



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

implementing diode keyboard matrix
PostPosted: Tue May 10, 2005 1:27 am     Reply with quote

Hi,

I want to implement a 9 x 8 keyboard matrix (72 keys) with some diodes for simultaneous keypress detection. So I will have rows and columns. How does the algorithm works? Are the Rows outputs and the columns inputs? Are there any examples?

http://www.sensotec.be/ASP/Catalog.asp?ID=Sensotec%20EUROSCOPE&LC=10 You can see the device with the buttons..
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Tue May 10, 2005 10:46 am     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=19726

This will give you an idea of how to start.
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu May 12, 2005 1:51 am     Reply with quote

He's using portB interrupts.. I cannot use that code because I have 9 rows x 8 columns
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Thu May 12, 2005 8:30 am     Reply with quote

Right. I didn't say that you could use that code as is, only that it would help give you ideas about what to do. Now that you see how it's done with 16 buttons, couldn't you "scale" that approach to get your 72 buttons?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu May 12, 2005 8:47 am     Reply with quote

..

Last edited by treitmey on Thu May 12, 2005 10:03 am; edited 3 times in total
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu May 12, 2005 8:51 am     Reply with quote

Well the matrix can be divided into 3 matrices:

* 3R x 8C matrix : simultaneous press detection needed
* 1 x 8 matrix : simultaneous
* 5 x 8 matrix: only single press detection needed
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu May 12, 2005 9:00 am     Reply with quote

..

Last edited by treitmey on Thu May 12, 2005 10:04 am; edited 1 time in total
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Thu May 12, 2005 9:20 am     Reply with quote

Of course that is possible..

set row '1'

read 8 column bits

=> decode bits to keypresses
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu May 12, 2005 10:00 am     Reply with quote

Sory, I guess you have this solved.
Guest








PostPosted: Mon May 16, 2005 1:48 pm     Reply with quote

I mean it is possible without extra IC's ... with a pic only and diodes.. I'm just asking for some tips/code samples , algorithms, something that can get me started...
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