Famicom World

Family Computer => Technical & Repair Assistance => Topic started by: sys64738 on January 31, 2024, 12:00:33 pm

Title: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on January 31, 2024, 12:00:33 pm
Hi,

This is my first post here. I started to collect clones as I find the variety fascinating. I am relatively new to to NES/Famicom space. My last addition is from Argentina "SonSon Family Computer Game". It came with nothing. I connected a 10V 850mA 3rd party adapter meant for Genesis, and a pair of 15-pin generic controllers from AliExrpress. I set my TV to PAL-N. I got video and audio but no response from the controllers. What is my next move for troubleshooting? I have heard things like controllers being PAL/NTSC or region locked. Could it be the case? I have a small portable scope and a multimeter but not sure where to check. Thanks in advance.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on January 31, 2024, 12:07:56 pm
Check whether the controllers are wired up Famicom-style or Famiclone-style, because those are different, despite sharing the same plug.

https://www.nesdev.org/wiki/Controller_port_pinout
https://www.nesdev.org/wiki/Expansion_port

Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on January 31, 2024, 02:16:00 pm
Scope shows 60Hz for the CLK (pin 9) and OUT0 (pin 12) for the Player 1 port on the console. Does this mean it fits the general Famiclone schematics? The controller is wired to pins 1(Orange), 8(White), 9(Blue), 12(Brown), 15(Yellow) but I have no idea how to verify what standard the controller follows.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on January 31, 2024, 02:56:33 pm
EDIT:
Nevermind, it seems like the diagrams floating on the internet contradict one another, and I can't make out heads or tails of it all.
I did find this, though, which is a diagram showing how to wire up a controller to one of the Dendy clones

(https://obrazki.elektroda.pl/2801585000_1696445675.png)
(looking at console port)

That seems to match what you're reading on the scope and checking the continuity on your controller.
So... hm.

I remember that I had a famiclone where the buttons of an official Hudson Joycard would only work while one of the D-Pad directions was being held. Is that the case for you?
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on January 31, 2024, 05:21:52 pm
Thanks for the picture. I actually found out something else. It is weird. When both controllers connected the unit does not power on. Pin 15 on left port somehow connected to the pins 1 and 11 on the right port (when nothing is connected). Multimeter just shows direct connection. Was there ever a design like this? - Edit: I mixed the left/right ports up since the board is upside down so pins 1 and 11 on the left port shorting with pin 15 on the right port.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on January 31, 2024, 05:58:47 pm
You sure the connection between 15 and 1 isn't just a capacitor charging up?
'cause that would be a short between ground and 5v
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on January 31, 2024, 06:07:46 pm
To be sure, I was measuring the voltage between pins 1 and 15. One port is +4.85V other port is -4.85. Pin 1 is 5V instead of pin 15 for one of the ports.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on January 31, 2024, 06:14:37 pm
Oh, so... they're probably mirrors of each other, then. And the pads are not, so plugging both in makes that short actually happen.

That does not appear to be standard.

(https://obrazki.elektroda.pl/3757089000_1365798371.gif)
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on January 31, 2024, 08:21:55 pm
Thanks for all the info, I really appreciate it. I switched the polarity on one of the controllers. At least it is not  shorting now. Other pins seem to be where they are supposed to be. Still not working though. I will try to find a different controller.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on January 31, 2024, 08:37:35 pm
Might be worth tracing if the signals actually get to the 368E chips.

Might also be worth trying to add a pull up 1K resistor between 5V and CLK
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 01, 2024, 07:16:06 am
I will do the tracing at some point. I saw that they already put a resistor between 5V and CLK (2.2K) is that too much?

Edit: Or not enough. Here it says PAL controllers had 3.6K resistors. Not just CLK and 5V but also 5V and Latch.
https://www.nesdev.org/wiki/Standard_controller

I will do the tracing first before jumping to conclusions.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on February 01, 2024, 07:46:32 am
In my experience 3K was too much for my Famiclones and made it so holding B inverted your D-Pad input, and only the CLK actually needed the pull-up.

But if there's a resistor already there, then I guess it's fine.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 01, 2024, 10:48:49 am
This is what I gathered with the multimeter:

Left Port PinLeft Chip Pin
1 and 1116 (5V)
127
142
158 and 15 (GND)


Right Port PinRight Chip Pin
18
410
56
612
75
814
93
1516 (5v)

P2 matches what is here: https://www.nesdev.org/Ntd_8bit.jpg
As for P1, I can only read 2 pins on the chip.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on February 01, 2024, 12:18:46 pm
Huh, so, pin 14 goes to pin 2 on the 368, which should be D0, but pin 14 isn't connected on the joypad side?

Well, uh, cross-reference the Famicom schematic with what you got by tracing out the pins on the board and also the typical famiclone controller schematic and try running some wires?
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 01, 2024, 12:51:09 pm
I did a quick test by running the white wire (Pin 8 ) on the controller to pin 14 on the port. That did not do anything. I will investigate more.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 07, 2024, 08:26:32 am
I got a Hudson controller to test it out, and it works with couple quirks. 1. It only works on the right port (the port that reads everything correctly) 2. It does not work on some of the games - I believe this has something to do with some games not supporting the official 15-pin input. I also ordered a Subor controller from Ukraine for few bucks, I will also test that one out once it arrives. I am still not clear if the ports were configured this way intentionally for a modified set of controllers or something is shot.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on February 07, 2024, 10:24:47 am
According to the post 7 here
https://www.famicomworld.com/forum/index.php?topic=7315.0

That's expected behaviour for mismatched clone/official pinouts

 
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: krzy on February 08, 2024, 02:04:04 pm
This is exactly how it should be - Hudson/Hori joypads use $4016.D1 and this pin i present only in the 15pin expansion connctor (which in famiclones it is either the 15pin exp port if console has 9+9+15p ports or second player port if it has 15+15p ports).

This bit need to be explicitly read by the game, because "default" player1 bit is $4016.D0. That's why not all games can be controlled using such joypad.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: P on February 09, 2024, 03:04:49 pm
We have an incomplete list here (https://www.famicomworld.com/forum/index.php?topic=6701.msg167005#msg167005) (scroll down for more additions) of games that ignores the $4016.D1 and $4017.D1 input pins.

The Nesdev Wiki (https://www.nesdev.org/wiki/Controller_port_pinout) also covers most of the hardware details including some regarding clones.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 11, 2024, 07:07:14 am
I ordered a 15-pin cable so I will try to build an adapter.

Has there been a system where P1 and P2 controllers are strictly sperate but also detachable?
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: P on February 11, 2024, 03:53:22 pm
What do you mean by P1 and P2? All 4 controller inputs are always separate on all Famicom variants.

On the original Famicom and the Twin, con1 ($4016.D0) and con2 ($4017.D0) are hardwired while on AV Famicom and NES they are detachable using 7-pin connectors.
Con3 ($4016.D1) and con4 ($4017.D1) uses pins in the 15-pin expansion port on all Famicoms and in the 48-pin expansion port on the bottom of the NES frontloader, so it's always detachable. No official peripheral for NES uses the 48-pin expansion port, but the pins are technically there.

Multitaps like the Four Score uses only con1 and con2 and multiplexes them into two more controllers and ignores con3 and con4 (the two expansion port inputs). There is a Famicom variant of it as well (Hori multitap) which multiplexes con3 and con4 instead and ignores con1 and con2 (the two normal controller ports).
So we have two different and incompatible methods to use 4 controllers on the system, though a few game supports both methods.
More details here (https://www.nesdev.org/wiki/Four_player_adapters).
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 13, 2024, 10:13:49 am
Quote from: P on February 11, 2024, 03:53:22 pmWhat do you mean by P1 and P2?

Let me clarify. The console has two 15-pin ports, one for each controller. Even though they are not labeled I call them P1 and P2. Their readings (even the 5V pin) are different. Meaning, a controller meant for port #1 should not work for the other port, unless they have over-engineered controllers that can detect and compensate accordingly. That's what I was asking, has there been a console where controllers must be plugged in to the ports they were meant to be plugged in, or are they always interchangeable? I know the ones that cannot be detached has some differences (start/select on one, microphone on the other). If I fail to build an adapter I will go after used controllers but I don't want to go after  the wrong ones.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: P on February 13, 2024, 03:19:47 pm
Oh I see, interchangeable with each other. I don't really know about clones but for official Famicom and NES controllers they have always been interchangeable for port 1 and 2.

However if the Pegasus pinout diagram that Skawo posted is correct it seems like the clone controllers used for Pegasus are also interchangeable since both ports uses pin 8 for the input data from the controller (D0) and the Nesdev wiki also seems to confirm this. The second port is missing GND, +5V and strobe but that must be a mistake in the diagram since the controller wouldn't be working without them.

However, the Pegasus port does not seem to be wired the same as a Famicom's 15-pin expansion port, so those Hudson/Hori joypads would not work (they use pin 13 for input (D1) and pin 14 for clock), assuming your clone is wired the same way as a Pegasus that would explain your problem. The Hudson controller only works with games that merges D0 and D1 (i.e. games that supports expansion port controllers).
You would need to build an adapter (I use NeoGeo joypad extension cables (https://www.tototek.com/store/index.php?main_page=product_info&cPath=23&products_id=192) to source the connectors) that changes pin 13 to pin 8 and pin 14 to pin 9. The pins for GND, +5V and strobe pins are already correct.


Famicom Expansion Port Pinout DA-15M (viewed from front of Famicom):

  1___________________8
   \ o o o o o o o o /
  9 \ o o o o o o o / 15
     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   1:  GND                  2:  Audio >              3:  IRQ <>
   4:  Input 1 D4 <         5:  Input 1 D3 <         6:  Input 1 D2 <
   7:  Input 1 D1 <         8:  Input 1 D0 <         9:  CLK ($4017) >
   10: Output D2 >          11: Output D1 >          12: Output D0 (strobe) >
   13: Input 0 D1 <         14: CLK ($4016) >        15: +5V

      <: Input, >: Output, <>: Bidirectional

Input 0 is for con1 (D0) & con3 (D1) and input 1 is for con2 (D0) & con4 (D1).
Output D0 is also available in both controller ports and is used as strobe by all controllers (a signal sent by the game to tell the controllers it wants to know the states of the buttons).
Con1 (D0) is not available in the expansion port, only in controller port 1. Con2 (D0) however is available for some reason and may cause a conflict with the same pin in controller port 2 if both are used at the same time.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on February 13, 2024, 07:27:35 pm
That's the thing - from his testing it appears the 5V and ground are the other way around between Controller 1 and 2, so they are not interchangeable.
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 15, 2024, 11:50:12 am
Update: When the Hudson is connected on the 2nd port, voltage on the 1st port reads correctly somehow? I built a simple frankenstein 9-to-15 pin adapter, and interestingly generic 9-pin controller (2nd player for Super Joy III) was able to send some signals while the Hudson was connected (no directions, and buttons A/B register as "right"). This gives me hope. I still cannot reach the pin 14 until I receive my cable (the pin I believe is D0)
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: Skawo on February 15, 2024, 03:44:26 pm
That really does sound like a problem with the pull up resistors. Buttons working as directions is what you sometimes get in that case.

You sure those resistors on the board haven't failed open?
Title: Re: PAL-N Famiclone with generic 15-pin controllers unresponsive
Post by: sys64738 on February 16, 2024, 08:19:01 am
Quote from: Skawo on February 15, 2024, 03:44:26 pmThat really does sound like a problem with the pull up resistors. Buttons working as directions is what you sometimes get in that case.

You sure those resistors on the board haven't failed open?

I don't see anything visual. Should I verify each resistor value?
EDIT: I forgot to mention that current adaptor wouldn't work anyways because it cannot reach pin 14 which I believe D0 on this console. So I will wait until I get the full cable from Ali Express /EDIT

In the meantime I got a Hori card controller. Works just like Hudson on port 2, no response on port 1 by itself BUT while Hudson is on port 2, it pushes multiple buttons at once. Multi cart game list keeps scrolling up, and if I manage to start a game it moves and shoots all over the place. As soon as I pull the Hudson from the second port it stops. Looks like they fighting over control lol.