summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Alex Marshall <trap15@raidenii.net>2017-12-12 00:58:19 -0800
committer GitHub <noreply@github.com>2017-12-12 00:58:19 -0800
commit0dc02e58a8f08f54d1eec4151f5d719d5dda4b79 (patch)
tree580e06acee224980fe4ad5db106a794343023581
parentfa4997dd187c68d447a414cc1220d270a5e70364 (diff)
Fix Batrider's audio CPU clock.
Was doing a repair today that required me to hook up a different clock source to the YM2151, so we tried to use the Z80's clock. Turns out, it's not at all 4MHz, so it was wrong. We put the 32MHz oscillator and the Z80 clock on an oscilloscope and determined the Z80 clock was divided by 6 instead of 8. So instead we divided the 68k's clock by 4 and got 4MHz, so the 68k is indeed 16MHz.
-rw-r--r--src/mame/drivers/toaplan2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/toaplan2.cpp b/src/mame/drivers/toaplan2.cpp
index e9e9d56cffa..85c9dcb81b9 100644
--- a/src/mame/drivers/toaplan2.cpp
+++ b/src/mame/drivers/toaplan2.cpp
@@ -4069,10 +4069,10 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_START( batrider )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M68000, XTAL_32MHz/2) /* 16MHz , 32MHz Oscillator */
+ MCFG_CPU_ADD("maincpu", M68000, XTAL_32MHz/2) /* 16MHz , 32MHz Oscillator (verified) */
MCFG_CPU_PROGRAM_MAP(batrider_68k_mem)
- MCFG_CPU_ADD("audiocpu", Z80, XTAL_32MHz/8) /* 4MHz , 32MHz Oscillator */
+ MCFG_CPU_ADD("audiocpu", Z80, XTAL_32MHz/6) /* 5.333MHz , 32MHz Oscillator (verified) */
MCFG_CPU_PROGRAM_MAP(batrider_sound_z80_mem)
MCFG_CPU_IO_MAP(batrider_sound_z80_port)
@@ -4109,7 +4109,7 @@ static MACHINE_CONFIG_START( batrider )
MCFG_GENERIC_LATCH_8_ADD("soundlatch3")
MCFG_GENERIC_LATCH_8_ADD("soundlatch4")
- MCFG_YM2151_ADD("ymsnd", XTAL_32MHz/8)
+ MCFG_YM2151_ADD("ymsnd", XTAL_32MHz/8) /* 4MHz , 32MHz Oscillator (verified) */
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MCFG_OKIM6295_ADD("oki1", XTAL_32MHz/10, PIN7_HIGH)