From fae8777edf497497189c39fada16d16f74d777ce Mon Sep 17 00:00:00 2001 From: briantro Date: Tue, 11 Jul 2017 21:50:39 -0500 Subject: targeth.cpp update [Brian Troha] Added PCB layout Base CPU clocks on actual OSC/Resonator Corrected OKI clock Corrected program rom labels for Target Hits v1.1 --- src/mame/drivers/targeth.cpp | 47 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/src/mame/drivers/targeth.cpp b/src/mame/drivers/targeth.cpp index ecbf747fa57..2da6b711d3e 100644 --- a/src/mame/drivers/targeth.cpp +++ b/src/mame/drivers/targeth.cpp @@ -8,6 +8,45 @@ Driver by Manuel Abadia The DS5002FP has 32KB undumped gameplay code making the game unplayable :_( +** NOTE: Merge with wrally.ccp??? Address map nearly identical & PCB + is reworked to add connections for light guns and different RAM + +REF.940531 ++-------------------------------------------------+ +| C1 6116 | +| VOL C2 6116 | +| 30MHz | +| M6295 +----------+ | +| 1MHz |TMS | | +| 6116 |TPC1020AFN| | +|J 6116 | -084C | I7 | +|A +------------+ +----------+ H8* I9 | +|M |DS5002FP Box| +----------+ I11| +|M +------------+ |TMS | H12* I13| +|A 65756 |TPC1020AFN| | +| JP4 65756 | -084C | | +| JP5 +----------+ | +|SW1 PAL 65764| +| 24MHz MC68000P12 65764| +|SW2 C22 6116 | +| PAL C23 6116 | ++-------------------------------------------------+ + + CPU: MC68000P12 & DS5002FP (used for protection) +Sound: OKI M6295 + OSC: 30MHz, 24MHz & 1MHz resonator + RAM: MHS HM3-65756K-5 32K x 8 SRAM (x2) + MHS HM3-65764E-5 8K x 8 SRAM (x2) + UM6116BK-35 2K x 8 SRAM (x6) + PAL: TI F20L8-25CNT DIP24 (x2) + VOL: Volume pot + SW: Two 8 switch dipswitches (SW1 unpopulated) + JP4: 5 pin header for light gun player 2 + JP5: 5 pin header for light gun player 1 + +* NOTE: PCB can use four 27C040 eproms at I7, I9, I11 & I13 or two 8Meg MASK + roms at H8 & H12. Same set up as used on the World Rally PCBs + ***************************************************************************/ #include "emu.h" @@ -184,7 +223,7 @@ INPUT_PORTS_END static MACHINE_CONFIG_START( targeth ) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", M68000,24000000/2) /* 12 MHz */ + MCFG_CPU_ADD("maincpu", M68000, XTAL_24MHz/2) /* 12 MHz */ MCFG_CPU_PROGRAM_MAP(main_map) MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", targeth_state, interrupt, "screen", 0, 1) @@ -204,15 +243,15 @@ static MACHINE_CONFIG_START( targeth ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_OKIM6295_ADD("oki", 1056000, PIN7_HIGH) // clock frequency & pin 7 not verified + MCFG_OKIM6295_ADD("oki", XTAL_1MHz, PIN7_HIGH) // 1MHz resonator - pin 7 not verified MCFG_DEVICE_ADDRESS_MAP(0, oki_map) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END ROM_START( targeth ) ROM_REGION( 0x100000, "maincpu", 0 ) /* 68000 code */ - ROM_LOAD16_BYTE( "targeth.c23", 0x000000, 0x040000, CRC(840887d6) SHA1(9a36b346608d531a62a2e0704ea44f12e07f9d91) ) - ROM_LOAD16_BYTE( "targeth.c22", 0x000001, 0x040000, CRC(d2435eb8) SHA1(ce75a115dad8019c8e66a1c3b3e15f54781f65ae) ) + ROM_LOAD16_BYTE( "th2_b_c_23.c23", 0x000000, 0x040000, CRC(840887d6) SHA1(9a36b346608d531a62a2e0704ea44f12e07f9d91) ) // The "B" was hand written + ROM_LOAD16_BYTE( "th2_b_c_22.c22", 0x000001, 0x040000, CRC(d2435eb8) SHA1(ce75a115dad8019c8e66a1c3b3e15f54781f65ae) ) // The "B" was hand written ROM_REGION( 0x10000, "mcu", 0 ) /* DS5002FP code */ ROM_LOAD( "targeth_ds5002fp.bin", 0x00000, 0x8000, NO_DUMP ) -- cgit v1.2.3