Force hard reset of z80 cpu on neogeo

ack

Ninja Combat Warrior
15 Year Member
Joined
Apr 9, 2009
Posts
538
Assuming the z80 is defunct and not being responsive to REG_SOUND commands (0x01/0x03) is they any way to force a hard reset of it?

I would have thought the 68k's RESET instruction would do it, since it suppose to reset external devices, but testing it on hardware it resets the whole board.

thanks
 

shadowkn55

Genbu's Turtle Keeper
15 Year Member
Joined
Dec 9, 2006
Posts
2,386
The Z80 reset line is connected to the common reset line used by the 68k and other devices. If you want to reset the Z80 only, you'll have to disconnect it from the main reset, build a dedicated reset circuit w/ button, and then logically AND them together.
 

ack

Ninja Combat Warrior
15 Year Member
Joined
Apr 9, 2009
Posts
538
That sucks, thanks for the info.
 

shadowkn55

Genbu's Turtle Keeper
15 Year Member
Joined
Dec 9, 2006
Posts
2,386
What are you trying to do exactly? If it's for a noble cause, I can put some thought into it when I have some spare time.
 

ack

Ninja Combat Warrior
15 Year Member
Joined
Apr 9, 2009
Posts
538
I'm working on making the diag bios handle z80 issues better. In doing failure testing with the ram it usually results in the sm1 code having issues handling the 0x01/0x03 slot switch requests as would be expected. It seems pretty rare that the z80 actually crashes, but the PC could be anything when the cut over to the diag m1 happens.

Since the 68k reset instruction doesn't help, I've been looking at / experimenting with other ways to recover.

- Hope NMI's are still enabled from sm1, trigger one and have nmi code that recovers
- Hope IRQ's are still enabled from sm1 and the ym2610 triggers one and recover that way
- Have code very early on in the bios that the user can trigger that will hard cut over to the diag m1 and hopefully never give the sm1 a chance to run
 

shadowkn55

Genbu's Turtle Keeper
15 Year Member
Joined
Dec 9, 2006
Posts
2,386
Would using the /reset line be suitable for your needs? The process I detailed above isn't super involved. You just need to remove the z80 and install a socket. I could design a daughterboard that sits between the two and provides the dual reset functionality.
 

ack

Ninja Combat Warrior
15 Year Member
Joined
Apr 9, 2009
Posts
538
I appreciate the offer. Having to desolder the z80 and put it in a custom board just to run a test to tell you if the z80's ram is bad is a bit overkill :)
 

shadowkn55

Genbu's Turtle Keeper
15 Year Member
Joined
Dec 9, 2006
Posts
2,386
I may combine this with a z80 keyboard reset for the msx so you don't have to feel bad about having a single purpose board designed to test one or two things.
 
Top