AV Famicom JIO Chip Replacement Idea

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

Post Reply
Great Hierophant
Posts: 769
Joined: Tue Nov 23, 2004 9:35 pm

AV Famicom JIO Chip Replacement Idea

Post by Great Hierophant » Fri Dec 01, 2017 9:36 am

In the AV Famicom and rare revised NES Top Loaders, Nintendo replaced three chips, a 74LS139 and two 74HC368s, with a single 32-pin chip designated BU3266 or BU3270. Nintendo may also have incorporated a resistor pack inside the chip to pull up the input lines. In my opinion, at least for the AV Famicom, the chip should be replaced for one or more of the following reasons :

1. Easier to reimplement the Famicom Microphone functionality
2. Restore Famicom Expansion Audio mixing levels to old-style Famicom
3. Restore the missing NES functionality of Zapper support for Controller Port One
4. Replace a dead JIO chip

How can the chip be replaced? I think the best solution would be to use a PCB with small (SOIC) versions of the three chips in a flat-pack form factor. This PCB would be placed over the holes where the JIO used to be and attached via a pair of interposer-style sockets supporting the shrink/skinny DIP pitch of the JIO chip. That pitch should be .070" or 1.78mm. These sockets would seem to fit the bill : https://www.mill-max.com/assets/pdfs/127.pdf (Use two of the 16-pin sockets to get 32 pins). With the added height of the interposers, you should be able to fit a board on top which may be slightly wider and longer than the JIO chip and give you more room to work.

The 32-pin chip has several redundant or not-connected pins : http://nesdev.com/nes_pio_pinout.txt It looks like the holes where pins 2, 12, 15, 31 & 32 went can be repurposed for inverter input and output.

Now let us look at how the inverters were used on the Famicom and AV Famicom

Famicom AV Famicom
4016 D0 4016 D0
4016 D1 4016 D1
4016 D2
4017 D0 4017 D0
4017 D1 4017 D1
4017 D2 4017 D2
4017 D3 4017 D3
4017 D4 4017 D4
M2
M2
Aud Out Aud Out
PA13 PA13

As you can see, the Famicom used all twelve inverters provided by the 74HC386s for various signals. The AV Famicom only ended up using nine inverters. It has been established that M2 is sufficiently strong that it does not require buffering. My NES controllers with their long cables work just fine in my AV Famicom. Each 74HC368 is a hex buffer/inverter (3-state) with six inverters. We can use the three extra inverters provided by the 74HC386 to handle microphone and zapper inputs.

The AV Famicom's Controller Ports do not connect the D3 and D4 pins. I restored Controller Port 2 Zapper functionality by connecting those pins to the corresponding $4017 D3 and D4 on the Famicom Expansion Port. However, we can instead use one of those pins for the microphone input and connect a Controller Port 2 Zapper to the Expansion Port via a physical adapter. One inverter will be used to handle the microphone input at $4016 D2.

Two inverters will be used to implement $4016 D3 and D4 on Controller Port 1. This is where things may get a little aesthetically unpleasing. We only have five unused pins, but we need six to implement all three inverters. While some wiring will need to be added, I would like to have done so entirely on the underside of the board to keep things looking as neat as possible. However, one wire will need to go topside from the board across to some of the bare metal of the exposed pin for D4 on Controller Port 1. It may be possible to design the board to extend to the Controller Port pin and require only a little bit of solder rather than a wire stretched like a clothesline.

It has been discovered by Ace that the reason why the Famicom's internal audio goes to the cartridge so quietly is because of the amp constructed with the JIO inverter. He got Famicom audio levels to match his old, pre-GPM Famicoms by recreating the amp found in those Famicoms and bypassing the JIO chip. I thought the quieter audio levels were due to the higher CPU revisions (G & H) found in the later consoles, but they were not. We do not know what kind of resistance is being applied inside the JIO chip. GPM Famicoms were first introduced in 1988, so games developed on the earlier models' boards would likely expect the mixing levels of those boards. That includes most FDS games and probably the majority of the cartridge games. The new board revisions probably took a while to percolate and it was mostly the oldest Japanese licensees that dabbled in expansion audio.

One issue with board design would be to make the board in such a way that it would not conflict with the NESRGB board, which is a very popular mod for AV Famicoms. The NESRGB is a large board that sits on top of the PPU and covers more surface area than just the PPU. The Hi-Def NES's PPU interposer is much smaller. The board's pin holes may have to be shifted toward the front of the console somewhat to give enough clearance to the NESRGB. Another issue is that the mode contemplates wires running from the data bus to the JIO pins, and the nearest convenient place to obtain some of these signals is across the PPU. This could add noise to the AV Famicom's renowned jailbar-free video signal.

lidnariq
Posts: 10463
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: AV Famicom JIO Chip Replacement Idea

Post by lidnariq » Fri Dec 01, 2017 9:43 am

I don't suppose you have one of these ICs (or both) and would be willing to produce a pinout?

IMO, this would be an easy thing to make using some pin header or a castellated PCB and a handful of 74xx parts.

Great Hierophant
Posts: 769
Joined: Tue Nov 23, 2004 9:35 pm

Re: AV Famicom JIO Chip Replacement Idea

Post by Great Hierophant » Fri Dec 01, 2017 10:09 am

lidnariq wrote:I don't suppose you have one of these ICs (or both) and would be willing to produce a pinout?

IMO, this would be an easy thing to make using some pin header or a castellated PCB and a handful of 74xx parts.
I did provide the link, but my post may not have been sufficiently clear. This is the pinout of the 32-pin BU3270 : http://nesdev.com/nes_pio_pinout.txt

I assume the BU3266 is the same, but I can't be sure and my AV Famicom (HVCN-CPU-02) has the BU3270.

The BU3266 can be found in the Australian PAL Top Loaders :

https://www.youtube.com/watch?v=xTRyxJvXbAg

In the rare revised NES Top Loader RF version :

https://www.youtube.com/watch?v=PM-PqovO2zA

And in the HVCN-CPU-01 AV Famicoms :

http://offgao.blog112.fc2.com/blog-entry-38.html

The BU3270 can be found in the rare revised NES Top Loader AV version :

https://www.youtube.com/watch?v=mEhNt5q7Hl0
Last edited by Great Hierophant on Wed Dec 06, 2017 11:12 am, edited 4 times in total.

lidnariq
Posts: 10463
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: AV Famicom JIO Chip Replacement Idea

Post by lidnariq » Fri Dec 01, 2017 10:31 am

:oops:

krzysiobal
Posts: 847
Joined: Sun Jun 12, 2011 12:06 pm
Location: Poland

Re: AV Famicom JIO Chip Replacement Idea

Post by krzysiobal » Fri Dec 08, 2017 8:04 pm

What's the distance between two adjacent rows of pins? 0.4" ?

Great Hierophant
Posts: 769
Joined: Tue Nov 23, 2004 9:35 pm

Re: AV Famicom JIO Chip Replacement Idea

Post by Great Hierophant » Sat Dec 09, 2017 10:05 am

krzysiobal wrote:What's the distance between two adjacent rows of pins? 0.4" ?
I believe so.

There was a mistake or two in the original post. First, there is no need to run wires to the CPU or PPU. D0-D4 is already available at the socket to be made by removing the BU chip. Only three additional pins maximum are needed, and those are for output.

krzysiobal
Posts: 847
Joined: Sun Jun 12, 2011 12:06 pm
Location: Poland

Re: AV Famicom JIO Chip Replacement Idea

Post by krzysiobal » Sat Dec 09, 2017 12:59 pm

The Small Hierophant :
Check if the schematics is what u want (i dont quite get if what u want from the additional n/c pins)

PCB can be routed so that everything is just almost as the size of chip
Image Image

I really not recomend using 368 as sound amplifier, it is:
1. unpredictable (hc/hct probably wont work at all), it adds additional noise in comparision to one-transistor amp
2. its volume level probably might vary

Great Hierophant
Posts: 769
Joined: Tue Nov 23, 2004 9:35 pm

Re: AV Famicom JIO Chip Replacement Idea

Post by Great Hierophant » Sat Dec 09, 2017 3:44 pm

Famicoms use H, HC for the '368 and typically use LS (but occasionally HC) for '139. A pure restoration should use the '368 as an amp, even if it would be less than ideal from a noise perspective.

I like your design, it can be extended easily in 3 of 4 directions to add passives like decoupling caps and the negative feedback resistor. I would not like to add any unnecessary space on the right side of the pins, that could conflict with the NESRGB mod.

Great Hierophant
Posts: 769
Joined: Tue Nov 23, 2004 9:35 pm

Re: AV Famicom JIO Chip Replacement Idea

Post by Great Hierophant » Thu Jan 11, 2018 3:36 pm

I have not forgotten about this mod, but I believe I was not quite right with the components I need. I want all five D-inputs for $4016 and $4017. When you add in /PA13 and SNDIN, you need twelve inverters. While a 40HC386 has six tri-state inverters, but four are enabled by one pin and two are enabled by another pin. The inverters for /PA13 and SNDIN always has to be active, however. This is done on real hardware by using the pair of inverters on one 40HC386 controlled by the secondary enable. I cannot do that with 40HC386 because the other five inverters must be devoted to the data inputs. So I have to add a 74HC04 to the board, just like a NES front loader. In addition, I forgot about the 10K pullups for the input lines, a 10x10K package is needed. Finally, for the microphone the canonical circuit requires a 10K resistor and a 0.1uF capacitor before the inverter plus another 10K to mix into the audio circuit (optional). Finally, to eliminate noise, each of the four ICs should have its own decoupling capacitor. So in short, the BOM looks like this :

2 x 40HC368
74LS139
74HC04
2 x 10K
10x10K common terminal
5 x 0.1uF
2 x 16-pin shrink-DIP header
Custom PCB that somebody should design :)

krzysiobal
Posts: 847
Joined: Sun Jun 12, 2011 12:06 pm
Location: Poland

Re: AV Famicom JIO Chip Replacement Idea

Post by krzysiobal » Fri Mar 12, 2021 2:48 pm

I have have Famicom AV at the moment accidently with BU3266S
Unknown pins (2, 30, 31) seems to have some internal connections and they all seem to be outputs:
* Pin 2 is at +5V
* Pin 30, 31 are at 0V

* CPU reading any of address from $0000-$ffff does not seem to change their state
* Pressing any joypad button in either port 1 or port 2 does not seeem to change their state

Double GNDs and double +5Vs are suspicious too. Reading from $4016 or $4017 (when no joypad is connected) returns $40.

I wonder if pin 12 (+5V) might be P0.D2.
Confirmed - it is! (and despite disconnecting it from +5V, it is still internally pulled to +5V)

New finds:
Pin 15 - GND (the only true)
Pin 1 - INV3I (tied to GND), not pulled up internally
Pin 2 - INV3O (not connected to anything)

Pins 30 and 31 seems to be a little delayed (buffered?) signal from pin 1.
Attachments
CH1=pin1, CHR2=pin31.png
CH1=pin1, CHR2=pin31.png
CH1=pin1, CHR2=pin30.png
CH1=pin1, CHR2=pin30.png
CH1=pin1, CH2=pin2.png
CH1=pin1, CH2=pin2.png

Post Reply