Previous 199869 Revisions Next

r26286 Tuesday 19th November, 2013 at 21:06:26 UTC by Phil Bennett
capbowl.c: Implemented the watchdog correctly from a fuzzy auction photo of the schematics. Hooray for eBay/gregf! -nw-

If anybody has the schematics in PDF form, I'd like a copy please...
[src/mame/drivers]capbowl.c

trunk/src/mame/drivers/capbowl.c
r26285r26286
3232               (Each row appears vertically because the monitor is rotated)
3333
3434    6000          Sound command
35    6800            Trackball Reset. Double duties as a watchdog.
36    7000          Input port 1    Bit 0-3 Trackball Vertical Position
35    6800          Trackball Reset. Double duties as a watchdog.
36    7000          Input port 1  Bit 0-3 Trackball Vertical Position
3737                                Bit 4   Player 2 Hook Left
3838                                Bit 5   Player 2 Hook Right
3939                                Bit 6   Upright/Cocktail DIP Switch
40                               Bit 7   Coin 2
41    7800          Input port 2    Bit 0-3 Trackball Horizontal Positon
42                               Bit 4   Player 1 Hook Left
43                               Bit 5   Player 1 Hook Right
44                               Bit 6   Start
45                               Bit 7   Coin 1
46    8000-ffff       ROM
40                                Bit 7   Coin 2
41    7800          Input port 2  Bit 0-3 Trackball Horizontal Positon
42                                Bit 4   Player 1 Hook Left
43                                Bit 5   Player 1 Hook Right
44                                Bit 6   Start
45                                Bit 7   Coin 1
46    8000-ffff     ROM
4747
4848
4949    Sound Board:
r26285r26286
5252    1000-1001       YM2203
5353                Port A D7 Read  is ticket sensor
5454                Port B D7 Write is ticket dispenser enable
55                Port B D6 looks like a diagnostics LED to indicate that
56                          the PCB is operating. It's pulsated by the
57                          sound CPU. It is kind of pointless to emulate it.
58    2000            Not hooked up according to the schematics
55                Port B D6 Write is Sound OK LED
56    2000            Sound watchdog clear
5957    6000            DAC write
6058    7000            Sound command read (0x34 is used to dispense a ticket)
6159    8000-ffff       ROM
r26285r26286
9492#include "sound/2203intf.h"
9593#include "sound/dac.h"
9694
97#define MASTER_CLOCK        8000000     /* 8MHz crystal */
95#define MASTER_CLOCK      XTAL_8MHz
9896
9997
10098/*************************************
r26285r26286
257255static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, capbowl_state )
258256   AM_RANGE(0x0000, 0x07ff) AM_RAM
259257   AM_RANGE(0x1000, 0x1001) AM_DEVREADWRITE("ymsnd", ym2203_device, read, write)
260   AM_RANGE(0x2000, 0x2000) AM_WRITENOP                /* Not hooked up according to the schematics */
258   AM_RANGE(0x2000, 0x2000) AM_WRITENOP /* watchdog */
261259   AM_RANGE(0x6000, 0x6000) AM_DEVWRITE("dac", dac_device, write_unsigned8)
262260   AM_RANGE(0x7000, 0x7000) AM_READ(soundlatch_byte_r)
263261   AM_RANGE(0x8000, 0xffff) AM_ROM
r26285r26286
368366   MCFG_CPU_ADD("maincpu", M6809E, MASTER_CLOCK)
369367   MCFG_CPU_PROGRAM_MAP(capbowl_map)
370368   MCFG_CPU_VBLANK_INT_DRIVER("screen", capbowl_state,  capbowl_interrupt)
371   MCFG_WATCHDOG_VBLANK_INIT(8) // Unverified
369   MCFG_WATCHDOG_TIME_INIT(PERIOD_OF_555_ASTABLE(100000.0, 100000.0, 0.1e-6) * 15.5) // ~0.3s
372370
373371   MCFG_CPU_ADD("audiocpu", M6809E, MASTER_CLOCK)
374372   MCFG_CPU_PROGRAM_MAP(sound_map)
373//   MCFG_WATCHDOG_TIME_INIT(PERIOD_OF_555_ASTABLE(100000.0, 100000.0, 0.1e-6) * 15.5) // TODO
375374
376375   MCFG_NVRAM_ADD_RANDOM_FILL("nvram")
377376
378377   MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW)
379378
380379   /* video hardware */
381
382380   MCFG_SCREEN_ADD("screen", RASTER)
383381   MCFG_SCREEN_SIZE(360, 256)
384382   MCFG_SCREEN_VISIBLE_AREA(0, 359, 0, 244)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team