Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Simple serial port interfacing?  (Read 1775 times)

0 Members and 1 Guest are viewing this topic.

laFrog

  • Guest
  • Trade Count: (0)
Simple serial port interfacing?
« on: July 17, 2002, 10:32:59 pm »
I noticed there wasn't much info on this page on serial port stuff.
I'm currently doing a little project where I'm using an old computer as a
"console" box for emulation.

I'm putting in a TV-output graphics card, 1 4-button joystick,
2 original NES controllers on the parallel port, no keyboard or mouse:
the thing boots to a joystick menu that starts (among other things) NES
emulation.
The problem was: I needed another button: for returning to the menu (which is
my own software) Since I didn't want to hack a keyboard and the parallel port
was used, I made a ridiculously simple interface on the serial port:

(DB9)
pin 5 (GND) ----- PC power supply GND
pin 9 (RI) --o/ o--- PC power supply +5V

Switching on/off the Ring Indicator, very simple on the software side too:
buttonstatus = inp(0x3F8 + 6)&0x40;  /* (DOS) */

It seems to work just fine. Has anyone else here given any thought to using
the RS232 like this for squeezing out a few more buttons?
It seems simple enough, and there are more lines that can be used
(e.g. CTS, DSR..)

I was thinking of writing a joystick driver for this kind of interface,
is there any interest? What do you people think?

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Simple serial port interfacing?
« Reply #1 on: July 18, 2002, 02:15:06 am »
http://kitsrus.com

Kits 74 and 108\

Maybe they will give you an idea.
« Last Edit: July 18, 2002, 02:15:27 am by SirPoonga »