Repair & Schematics
Sega Mega-Tech Arcade
Master System Game Load (Sega Mega-Tech)
21min
depending on which game you insert, the 68k and z80 come out of reset differently choose a master system game like after burner for master system load this is a great way to completely bypass the 68k and its upper ram ( the lower ic55 is still required ) if you suspect they are faulty the mega tech will fully boot and load master system games with the 68k completely removed if the 68k is faulty it could pull the data or address pins bad still if you are unsure which type of game you have, measure with a multimeter in the cartridge between the !m3 (pin b30) and ground (a1 / a32) b30 is the third pin in from the right when looking at the game, and grounds are the outer 2 pins on the back plane if the pin is shorted, it is a master system game detecting master system games the 315 5308 is responsible for querying the cartridge slots !m3 (pin 78) this pin is pulled to ground when a master system game is inserted (indicating a mark 3 master system game) if you observe the 315 5308 !m3 (pin 78) during boot, if the game is a master system game it will pulse low every time the circuit connects that cartridge slot to the 315 5308 this means before game load it will be high, during title read it will be low, between resets it will be high, and when the game is loaded it will remain low it is best to do this test with a single game inserted so you know the m3 line is always related to that cartridge coming out of reset with a master system game, the 68k is not needed even during title read the master system (red trace) will come out of reset during title read, then again when loading the game if the game fails to load the master system will go back into reset (go low) shortly after coming out of reset for the second time game loading game data involves many circuits z80 main game processing mb8464a z80 work ram 315 5313 work ram control and video processing 315 5308 controls 68k/z80/wram/vram bus control flow the z80 is entirely responsible for reading in and processing the cartridge game data of master system games successful boot here are what the various signals from the z80 look like for a successful boot all these tests were done with the game after burner use the same game if you want to guarantee identical results !zioreq the !zioreq won't toggle until the game has loaded, then will toggle periodically in long bursts !zmeq the !zmeq toggles constantly once out of reset !zhalt / !znmi both !zhalt and !znmi should remain constantly high at all times !zint the !zint will pulse a few times during header read, then stay high until the game loads once it successfully loads, it pulses low for a period, then periodically pulses low 3 times every 150ms !zrd the !zrd pulses constantly any time it is out of reset !zwr the !zwr pulses only on the second out of reset (so not during header read) it pulses briefly at the start of game load, then will not pulse again until the game has fully loaded once the game has loaded it will pulse for a long period, then intermittent, then long again as the game progresses !zbusack / !zbusreq the !zbusack and !zbusreq should remain high at all times except the header read it will be low while reading headers !zwait the !zwait should remain high at all times except the header read it will pulse low while reading headers !zm1 the !zm1 will pulse constantly while out of reset but not during header load !zoe the !zoe will pulse constantly while out of reset but not during header load notice it is only 3 3v not 5v address za0 to za11 the address pins 0 to 11 toggle during header read, and constantly during game load and play during game load they toggle constantly, and during play they become more random and less frequent address za12 to za15 the higher address pins 12 to 15 only toggle briefly at the start of game load, then stay low until the game has loaded before starting again note that as the z80 doesn't have address pins higher than a15, the ic42 buffer is not even used data pins zd0 to zd7 all the data pins toggle constantly any time they are out of reset, with the notable exception of d5 which toggles at the start of game load briefly then is high until the game has loaded this is likely specific to the exact game after burner, and other games will likely toggle all the time for the data pins failed game load monitor that the z80 comes out of reset after header load and stays out firstly if not, that will need fixing and tracking down why it isn't coming out of reset once the z80 is out of reset and you are seeing activity like above, but the games are not loading, the following pins are not needed to show the game title, but are needed to load the game, so are worth paying special attention to 315 5313 data pins d4 to d6 (would show corrupt title text however if bad) z80 data pins d4 to d6 (would show corrupt title text however if bad) 315 5313 address pins over and including a6 onwards a failed game load often shows the following on each z80 pin if the data loaded is corrupt or there is bad ram, address or data pins to and from the 315 5313, cartridge, z80 and z80 ram z80 !ioreq pulses constantly !zhalt sometimes drops low (halting the z80) after about half a second out of reset !zint will stay high never dropping low za12 to 15 which would typically pulse briefly at load then idle until game play, will pulse constantly !zwr will pulse constantly so, focus your attention primarily on broken traces between the 315 5313, z80 and address buffers specifically, the a6 and higher pins if that fails, it is less likely but could be the 315 5313 itself, higher data pins, data buffers, a bad z80, or anything else probe away with your scope to hunt for the problem