## Early Joy Van/Idea-Tek/TXC Mappers

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

I am assuming that the 24-pin 01-22000-400 IC is functionally identical to the 28-pin JV001 IC except in pin count, and that the difference in pin count is solely due to the JV001 having six input and six output data bits, while the 01-22000-400 has only four input and four output data bits:

Code: Select all

``````28-pin  24-pin  Function (normative)
------  ------  --------------------
2       -       Input D5
3       -       Input D4
4       9       Input D3
5       10      Input D2
6       11      Input D1
7       12      Input D0
8       13      Input A0
9       14      Input A1
10      15      Input A8
11      16      M2
12      17      CPU /ROMSEL
13      18      CPU R/W
14      ?       Vcc
15      20      CPU A14
16      21      CPU A13
17      ?       CHR /OE
18      -       Output D5
19      -       Output D4
20      24      Output D3
21      1       Output D2
22      2       Output D1
23      3       Output D0``````
The JV001 also has a Mirroring control, using three pins: Input PA10, Input PA11, and Output CIRAM A10. PA10, PA11 are the inputs from the cartridge connector. \$4101 D0 selects whether PA10 or PA11 is relayed to the JV001's CIRAM A10 output, effective once \$8000-\$FFFF is written to:

Code: Select all

``````28-pin  24-pin  Function (normative)
------  ------  --------------------
24      ?       Input PA10
25      ?       Input PA11
26      22      Output CIRAM A10
27      ?       PPU R/W
28      ?       GND
``````
We know from the Mapper 173 analysis that the 01-22000-400 IC also has a pin that is similarly affected by \$4101 D0: Pin 22, so it is most likely the CIRAM A10 equivalent. The question then is which pins are the equivalent input PA10 and PA11 pins. Unfortunately, no known board actually uses that IC for mirroring control, so we cannot observe that directly. But:
• On the Mapper 173 board, Pin 22 is connected to CHR A14. To deterministically be a 0 or 1 depending on \$4101 D0, the Input PA10 pin must be connected to Vcc, and the Input PA11 pin must be connected to GND (or vice-versa).
• On the Mapper 036 board, Pin 22 is not connected to anything, but is reportedly always high but somewhat unstable depending on register values being written. This may be the result of a broken chip, as previously claimed, but I think it's the result of one of the two inputs being connected to Vcc, and the other floating but mostly picking up a high signal.
On Mapper 173, GND is on Pins 8 and 19 and VCC is on Pins 5 and 7. On Mapper 036, VCC is also on Pins 5 and 7, GND is Pin 19, while Pin 8 is not connected. I would suspect then that Pin 7 is Input PA10 and Pin 8 is Input PA11. Which means that if both were connected to GND, then Pin 22 should deterministically go Low after all.

After that, there are still three of the 24 pins with functions to distribute: Pins 4, 6 and 23. Of the JV001's functions, we still have PA13, CHR /OE, and PPU R/W. I'm not sure what the JV001 would need them for, but that's how they are connected on the Mapper 172 board.

Please note that my designations of D0-D5 are from the chip's point of view. Because the Mapper 172 board connects the CPU bits in reverse order, D5 is D0, D4 is D1 and so on, and Mapper 036's CPU D4/D5 are the chip's D0/D1.

MLX
Posts: 110
Joined: Tue Feb 14, 2017 9:50 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

lidnariq wrote:'161 pins 1, 7, 10, 16 - tied to +5V
'161 pin 8 - tied to ground
'161 pins 11, 15 - floating
'161 pin 2 - /ROMSEL - ASIC pin 17
'161 pin 9 - R/W - ASIC pin 18
Correct.
lidnariq wrote:'161 pins 3-6 - CPU D0-D3 - ASIC pins 12-9
D0 - 161.3 - ASIC.12
D1 - 161.4 - ASIC.11
D2 - ASIC.10 only
D3 - ASIC.9 only
161.5 - PRG.16
161.6 - PRG.17
lidnariq wrote:'161 pin 12 - ASIC 1 - PRG ROM pin 1
'161 pin 13 - ASIC 2 - CHR ROM pin 26
'161 pin 14 - ASIC 3 - CHR ROM pin 27
161.12 - PRG.1 - ASIC.1
161.13 - CHR.27 - ASIC.2
161.14 - CHR.26 - ASIC.3
Last edited by MLX on Thu Mar 01, 2018 1:33 pm, edited 2 times in total.

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

The 01-22111-100 PCB has the ASIC wired identically to the 01-22270-000 PCB, the only difference between the two is that the 01-22270-000 PCB has the spot for the 74LS161 while the 01-22111-100 PCB does not.

Comparing the 74LS161 pin functions to the ASIC pin functions as I find them, the 74LS161 at address \$8000-\$FFFF does exactly the same as the ASIC, only without the \$4100-\$4103 adder/inverter, which I understand basically as a protection method. I suppose that the 74LS161 configuration is then used for prototypes and development, while the ASIC configuration for production. The 74LS161 configuration would then have its data bits indeed like Mapper 133, but at \$8000-\$FFFF instead of \$4100.

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

NewRisingSun wrote:I am assuming that the 24-pin 01-22000-400 IC is functionally identical to the 28-pin JV001 IC except in pin count, and that the difference in pin count is solely due to the JV001 having six input and six output data bits, while the 01-22000-400 has only four input and four output data bits:
But I know that to be untrue?

There are six data bus pins on the 05-00002-010 IC, divided into two functional groups of three.

Pin 24 on the 05-00002-010 is unequivocally carry-out from the bits latched into pins 12-10 and exported on pins 3-1.
On the Mapper 036 board, Pin 22 is not connected to anything, but is reportedly always high but somewhat unstable depending on register values being written. This may be the result of a broken chip, as previously claimed, but I think it's the result of one of the two inputs being connected to Vcc, and the other floating but mostly picking up a high signal.
I mean, it unequivocally can switch between two different amounts of current sourced when pulling up. I don't see an obvious way for that to happen short that either being deliberately designed in (but I have no idea why), or damage to the IC.

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

lidnariq wrote:Pin 24 on the 05-00002-010 is unequivocally carry-out from the bits latched into pins 12-10 and exported on pins 3-1.
That's what I said: Input bit 0 (pin 12), Input bit 1(pin 11) and Input bit 2 (pin 10) relayed to Output bit 0 (3), Output bit 1 (2) and Output bit 2 (1), and Input bit 3 (9) relayed to Output bit 3 (24). But have you checked, or are you just assuming based on what looks like functional groups, that a fifth and sixth bit are indeed directly relayed as well? Right now, the Mapper 036 article says that if Pin 22 weren't defective, you assume it would relay some other pin, but that's just conjecture and directly contradicted by Mapper 173's connection.
Edit: No, actually it doesn't say that. It says that Pin 22 is always defective, and Pins 23 and 24 relay something else, although I am note quite sure what.
lidnariq wrote:I mean, it unequivocally can switch between two different amounts of current sourced when pulling up.
With the inputs that two other pins have, yes. What I am proposing is that if certain other pins (possibly 7 and 8, but I am not sure about that yet) were not connected as they are on the Mapper 36 board, but as they are e.g. on the Mapper 173 board, things would be different, and you would observe normal high and low states.
Last edited by NewRisingSun on Thu Mar 01, 2018 2:07 pm, edited 1 time in total.

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

NewRisingSun wrote:Input bit 3 (9) relayed to Output bit 3 (24). But have you checked,
I am confident that pin 9 is not relayed to pin 24, even though this contradicts what you've found on other ICs with the same marking.
or are you just assuming based on what looks like functional groups, that a fifth and sixth bit are indeed directly relayed as well?
Pin 6 was definitely relayed to pin 23.

Pin 6, 8, and 9 in that order obeyed increment behavior when set to increment mode and reading back from the register inside, separate from pins 12, 11, and 10 in that order.

I'd want a less cranky test system than my current hot-swappable thing if I'm going to do more testing.
What I am proposing is that if certain other pins (possibly 7 and 8, but I am not sure yet) were not connected as they are on the Mapper 36 board, but as they are e.g. on the Mapper 173 board, things would be different, and you would observe normal high and low states.
I'm going to have to desolder this, aren't I...

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

No, don't desolder anything just for me. The original question was what the 74LS161 spot was for, and that was answered thanks to MLX' testing, so let's leave it at that for now.

I think the current pinout should be rewritten though to clearly state which pin is relayed to which, instead of how the pins are connected on that particular board, as the current description is giving me a headache.

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

MLX wrote:D0 - 161.3 - ASIC.12
D1 - 161.4 - ASIC.11
D2 - ASIC.10 only
D3 - ASIC.9 only
161.5 - PRG.16
161.6 - PRG.17
[...]
161.12 - PRG.1 - ASIC.1
161.13 - CHR.27 - ASIC.2
161.14 - CHR.26 - ASIC.3
.... fascinating. That's latching D0, D1, D4, and D5. Looks like ... GNROM? Yeah, specifically MHROM.

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

Ah, now it's becoming clear that 6, 8 and 9 are connected in reverse order from 10, 11 and 12. Now the increment can work on both triples without breaking the Mapper 173 games. The \$4101 part still needs to be added to the Mapper 036 page (or better yet, the IC's page). Was it that Invert is applied to the 10/11/12 tuple when writing to \$4100 and Mode=0, and to the 6/8/9 tuple when reading from \$4100?

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

Invert appeared to be applied on a bit-by-bit basis (i.e. "XOR") when I did testing last time - https://forums.nesdev.com/viewtopic.php ... 83#p196783

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

Unfortunately, that will not work with Puzzle, which writes \$01 to \$4101 yet expects all bits to be inverted. That, and the mystery pin 22 still need to be investigated, and since all Mapper 173 games explicitly vary their \$4101 value between 00 and FF to select CHR A14, which is connected to Pin 22, the two must *somehow* be connected, possibly with the help of another pin.

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

Given that mapper 173 flows data from pins 12, 11, 10 to, in order, pins 3, 22, 2 ... I have to wonder if it's actually the same part or just close enough to be trolling us.

NewRisingSun
Posts: 1198
Joined: Thu May 19, 2005 11:30 am

### Re: Early Joy Van/Idea-Tek/TXC Mappers

No, 11 explicitly doesn't flow to 22. That's the whole point of Xiao Mali's protection. Like I said, CHR A14 only comes from the \$4101 value, not from anything ever written to \$4102.

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

### Re: Early Joy Van/Idea-Tek/TXC Mappers

Oh... somehow I'd gotten confused.