Bottom Line Up Front: I think you probably have your switch hooked up to the wrong address pin.hidden0 wrote:I tried it with m27c160 and another repro board
On this i am using a19 biggest address available when it is tied to vcc the first game works and when it is tied to gnd i m getting black screen.
Let me see if I understand the situation.
First, you followed a tutorial to create a two-game image for the M27C801 (1Mbx8) EPROM on a more standard SNES PCB. This packs one game starting at address 0x0_0000 and another starting at 0x8_0000. It switched between the two games just fine. Success.
Note: I may be misunderstanding something here, since the video appears to be in Portguese, and I don't speak it. It kind of looks like he hooked the switch up to pin 30, which is A17, NOT the highest-order bit. That would make it look like the games are smaller, with game 0 starting at 0x0_0000 and game 1 starting at 0x2_0000. Is Top Gear just a 2MBit game?
Then, you moved to the mousebitelabs PCB, which takes 16-bit-word EPROMS.
For the M27C322 (2Mbx16). I don't have a schematic of the mousebitelabs board, so I am kind of guessing here. He mentioned using a mux to read each of the two bytes in each 16-bit word. That makes me thing that the Address0 signal from the SNES is actually running to the mux, and the rest of the address lines are down-shifted accordingly.
Regardless, if you are using the same two-game image you used in the M27C801, you should not be using the highest-order address bit to switch between the two. That will just set the SNES looking at unprogrammed memory. Rather, you need to be toggling the appropriate address bit.
This is still based upon some guesses on my part, but:
IF you successfully build a two-game image that works on the M27C801 then:
Note which address pin you have your switch hooked up to. Check the data sheet to figure out which address bit it is.
Subtract 1 from that address bit. So, if it's A19, subtract 1 to get A18.
Figure out which pin on the M27C322 is A18.
Hook your switch to that one.
The process should be the same with the m27c160.
EDIT TO ADD:
Are you sure that the first game is loading properly when you have that high address pin pulled hooked to Vcc and it's failing to load when it's grounded? That seems backwards to me, but I didn't check that part of the datasheets. Are the address pins inverted?