View Single Post
Old 13 June 2021, 15:50   #3
BeamCoder
Registered User
 
Join Date: Dec 2020
Location: Philippines
Posts: 45
Quote:
Originally Posted by Rotareneg View Post
Write once to POTGO. The built-in pull-up resistor will apply +5v to the pin. When you read POTINP (POTGOR in newer HRM) the relevant data bit will be 0 if that pin is currently grounded via a button, or 1 if not, that's all there is to it.

No idea about Megadrive or CD32 pads.
Thanks for the answer! It is clear to me now.

Regarding the Megadrive and CD32 I look at the pinouts here: http://wiki.icomp.de/wiki/DE-9_Joystick

With Megadrive, since I write to Pin5(Button3), it will apply +5v which on the Megadrive side Pin5 is +5v. I assume nothing bad will happen here and the controller will work as a 2 button controller because of Pin 7(+5v) of Amiga sending high signal to Pin7(Select out) of Megadrive?

For CD32, again Pin5(Button3) is set and high signal is send on the Pin5(Shift Load Out) of the CD32 controller. When shift load is high, CD32 will treat the controller as gamepad mode(2 buttons only). So I guess nothing bad will also happen here?

I don't know anything about electronics...
BeamCoder is offline  
 
Page generated in 0.04605 seconds with 10 queries