Jump to content
IGNORED

Joystick to PC-style Digital IO pins


danwinslow

Recommended Posts

Does anyone have any insight into what's needed generally to hook up the atari joystick ports to a block of digital IO pins on a small 386 PC board? These are just generic AD pins such as you find on small embedded controllers. They are read and written via memory mapped ports in the 386 io space. Just looking for general hints, unless you feel like being specific :)

Link to comment
Share on other sites

When you say AD does that mean Analog to Digital or is it a general purpose I/O pin (GPIO)?

 

If it's a regular GPIO, what you need to do is to get the pinout of the connector from Google (Deathskull labs for instance) and then you need to wire it up so that each of the GPIO inputs is pulled high through a resistor and the switches in the joystick (left/right/up/down and fire) pull the input to ground.

 

I've seen 47K and 100K resistors used as pullups on a 5V GPIO

 

Here's some information

http://arcadecontrols.com/arcade_sneskey.html#Amos

 

http://users.erols.com/tiltonj/games/tech/2600cont.html

Link to comment
Share on other sites

Assuming your pins can be configured as inputs with weak pullups, all you need to do is connect the common pin to ground and the other five pins to your I/O pins.

 

When a switch is closed it will pull an input to ground (zero). Debounce in software.

 

Steve

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...