6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 9:51 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Blocking current
PostPosted: Fri Jul 26, 2013 10:11 pm 
Offline
User avatar

Joined: Wed Jul 10, 2013 3:13 pm
Posts: 67
I am trying to build a 6502 computer, and I am making a bootleg keyboard for the 6502 using push buttons. I don't want more than one button to be pushed at once so I need help building circuitry that drops current if two buttons are pressed., I know this is probably really simple, but im a noob :P

_________________
JMP $FFD2


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Fri Jul 26, 2013 10:46 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
James_Parsons wrote:
I am trying to build a 6502 computer, and I am making a bootleg keyboard for the 6502 using push buttons. I don't want more than one button to be pushed at once so I need help building circuitry that drops current if two buttons are pressed., I know this is probably really simple, but im a noob :P

You can put diodes in series with the buttons so one output line can't fight another one. Another way around it is that in the scanning, you only let one of the output bits be active at a time, and the others are high-impedance while the active one is pulling down. It has the effect of being like an open-collector output, and the only pull-ups are passive. There's no excess current that way. You might have outputs feeding the rows and inputs reading the columns, or vice-versa.

There are some keyboard and keypad ideas in the keypads and keyboards section of the potpourri page of the 6502 primer.

You'll want to pay attention to debouncing. Do it in software to make it easier.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Sun Jul 28, 2013 5:41 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
James_Parsons wrote:
I am trying to build a 6502 computer, and I am making a bootleg keyboard for the 6502 using push buttons. I don't want more than one button to be pushed at once so I need help building circuitry that drops current if two buttons are pressed., I know this is probably really simple, but im a noob :P

How many push buttons are you planning to use? If it's more than a few you may want to rethink their use. Cheap matrix keyboards are readily available and you can rig up a 65C22 to decode one and generate a unique number for each keypress.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Sun Jul 28, 2013 2:08 pm 
Offline
User avatar

Joined: Wed Jul 10, 2013 3:13 pm
Posts: 67
its only going to be a hex keyboard with some command buttons, but if you could suggest one of the matrx keyboards id be more than happy to try them

_________________
JMP $FFD2


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Sun Jul 28, 2013 7:44 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
James_Parsons wrote:
its only going to be a hex keyboard with some command buttons, but if you could suggest one of the matrx keyboards id be more than happy to try them

Search engines are your friend with stuff like this. Fire up Ixquick and see what you can find. Also, don't forget eBay.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Sun Jul 28, 2013 8:30 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
James_Parsons wrote:
its only going to be a hex keyboard with some command buttons, but if you could suggest one of the matrx keyboards id be more than happy to try them

A couple that look good are these two at Jameco:
http://www.jameco.com/webapp/wcs/stores ... _196171_-1 (2x8)
http://www.jameco.com/webapp/wcs/stores ... _152063_-1 (4x4)
Image

I have used, and like, the Grayhill 87 type. They take .5" square per key, and can be stacked into whatever dimensions you want, all soldered into standard prototyping board with holes on .1" centers. They have transparent key caps that you can put your own labled under. I used them in this keypad shown in the potpourri page of the 6502 primer:

Image

and in the automated test equipment:

Image

Grayhill's .pdf page on it is at http://www.grayhill.com/assets/1/7/Keypads_87.pdf

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: Blocking current
PostPosted: Mon Jul 29, 2013 5:05 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8513
Location: Midwestern USA
GARTHWILSON wrote:
I have used, and like, the Grayhill 87 type.

Same here. It's a high quality unit.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 41 guests


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

Search for:
Jump to: