Jump to content
Sign in to follow this  
danwinslow

Pins and Needles

Recommended Posts

I have a small IO board that I was considering trying to interface to a joystick port. The board has AD type pin inputs. I was wondering what actually happens electrically to the pins on a joy stick port...that is, if a pin is configured for output, and I write a 1 on it, does the external pin now carry a voltage? I know very little about the hardware side of this kind of interfacing. I see a lot about pins and +5/-5 or 0 volts, which makes me think that turning 'on' a pin means applying a voltage...eh to it, or across it, or whatever. Any clues from you hardware gurus?

Share this post


Link to post
Share on other sites

Dan,

 

The PIA outputs for the joystick ports are push-pull outputs. They are driven to 5v+ for high, and driven to 0v for low.

 

If you need to configure the inputs for your outside device, configure it as a high imepdance TTL compatible input. Turn off any pull-ups, though weak pull-ups like those in PICs wont be strong enough to effect the 0v low state of the PIA pin.

 

Steve

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...