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: Using the LPT port as a programmable controller  (Read 903 times)

0 Members and 1 Guest are viewing this topic.

ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Using the LPT port as a programmable controller
« on: February 09, 2006, 09:33:35 pm »
I have gone done this road once before....
I found a piece of C code that accesses the printer port and can set pins high or low. To turn the LPT port into a programmer to control a joystick shouldn't be hard....
However, how can I control the speed of it, in order to slow it down to a 60 or 120 hz refresh?
Also, are there enough outputs to control 2 joysticks(20 switches) simultaneously? I don't want to add hardware just to be able to swap between joysticks.

Has anyone done anything resembling this?
An ounce of image is worth a pound of performance.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Using the LPT port as a programmable controller
« Reply #1 on: February 10, 2006, 08:36:52 am »
NO,NO,NO!!!

The parallel port only has 8 input pins, not enough to do anything useful without circuitry.

Direct access to the parallel port is also blocked on 2k/xp without special drivers/software. 

Also the parallel port in terms of joysticks is best utilized in a serial configuration.  That means the joystick in question needs special drivers and an onboard timing chip. 

So before you ask, you can't control the timing... thus the need for drivers and a timing chip. 

The parallel port can be used to interface console cotrollers, however via special drivers (such as snes key) and a custom wiring harness. 

Hate to be so blunt, but a quick google search would have told you all of this instanty.


ShinAce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 152
  • Last login:January 16, 2007, 07:38:14 pm
  • Building the unbuildable since 2001
Re: Using the LPT port as a programmable controller
« Reply #2 on: February 10, 2006, 09:34:51 am »
Back to serial eeprom and microcontrollers I go....

Thank you Howard.
An ounce of image is worth a pound of performance.