Author Topic: Joystick Port Pin 8 (COM) to GND?  (Read 371 times)

0 Members and 1 Guest are viewing this topic.

Offline MickGyver

  • CPC464
  • **
  • Posts: 4
  • Country: fi
    • DaemonBite.com
  • Liked: 1
Joystick Port Pin 8 (COM) to GND?
« on: 12:00, 26 April 18 »
Hi! I'm new here at this community and not very familiar with the Amstrad range of computers. I have developed a gamepad for the Amiga CD32 that has some nice features. I'm currently working on a MSX and C64 versions (two button support and fully configurable, including mapping of the dpad to other buttons etc.)


I was looking into the Amstrad CPC, I read that the joystick port is compatible with the MSX so I started looking into the possibility of using my gamepad on the CPC. Problem is that the joystick port does not have a +5V signal. The voltage of the power supply is +5V so I thought I could make an adapter that takes +5V directly from a splitter cable.


This leads me to asking, is it safe to have Pin 8 on the joystick port (COM) connected to GND? My gamepad requires +5V so it would need a ground connection.


Grateful for any insight!

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.652
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3711
Re: Joystick Port Pin 8 (COM) to GND?
« Reply #1 on: 13:25, 26 April 18 »
No, it's not particularly unsafe, but it will stop the keyboard from working and the screen will fill with characters. The COM pin is a pulsed 0V signal that's part of the keyboard scanning circuitry.

Bryce.

Offline MickGyver

  • CPC464
  • **
  • Posts: 4
  • Country: fi
    • DaemonBite.com
  • Liked: 1
Re: Joystick Port Pin 8 (COM) to GND?
« Reply #2 on: 13:41, 26 April 18 »
Thanks, damn, the circuitry of the gamepad would need to be reworked then...

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 935
  • Country: de
  • Reincarnation of TFM
  • Liked: 489
Re: Joystick Port Pin 8 (COM) to GND?
« Reply #3 on: 15:34, 26 April 18 »
To connect COM to GND happens more often and works, for example here:

http://cpcwiki.eu/index.php/Atari-ST_mouse_adapter

I used this solution routinely and it works fine (with both, Trackball and ST mouse)


Maybe I mixed something up, then Bryce please correct me :-)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.01.14)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Ver.: 2018.08.15)

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 10.652
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3711
Re: Joystick Port Pin 8 (COM) to GND?
« Reply #4 on: 16:49, 26 April 18 »
Yes, you are mistaking the floating negative of a battery and CPC GND, which are not the same thing. MickGyver was talking about connecting the CPC GND to COM, which essentially would be the same as permanently setting I1 of the keyboard matrix to 0V and cause clashes in the keyboard scanning.
In the example you show, the battery minus is only equal to GND during the negative pulse of the COM signal, the rest of the time the ST Mouse GND is floating.

Bryce.

Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 935
  • Country: de
  • Reincarnation of TFM
  • Liked: 489
Re: Joystick Port Pin 8 (COM) to GND?
« Reply #5 on: 16:22, 27 April 18 »
Uups got it, the direct shortcut I wouldn't suggest either  ;) :)
http://futureos.de --> Get the revolutionary FutureOS (Recent update: 2019.01.14)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Ver.: 2018.08.15)