From 62b6a497687135fc9d33affa867080a088623b7f Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 5 Oct 2018 13:08:32 +0200 Subject: namcos22: redo video params (nw) --- src/emu/xtal.cpp | 1 + src/mame/drivers/namcos22.cpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/emu/xtal.cpp b/src/emu/xtal.cpp index 91bf4814fe9..ee2c0c1733b 100644 --- a/src/emu/xtal.cpp +++ b/src/emu/xtal.cpp @@ -348,6 +348,7 @@ const double XTAL::known_xtals[] = { 50'000'000, /* 50_MHz_XTAL Williams/Midway T/W/V-unit system */ 50'113'000, /* 50.113_MHz_XTAL Namco NA-1 (14x NTSC subcarrier)*/ 50'349'000, /* 50.349_MHz_XTAL Sega System 18 (~3200x NTSC line rate) */ + 51'200'000, /* 51.2_MHz_XTAL Namco Super System 22 video clock */ 52'000'000, /* 52_MHz_XTAL Cojag */ 52'832'000, /* 52.832_MHz_XTAL Wang PC TIG video controller */ 53'203'400, /* 53.2034_MHz_XTAL Master System, Mega Drive PAL (~12x PAL subcarrier) */ diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp index 6af16f8c8ff..f16de058df4 100644 --- a/src/mame/drivers/namcos22.cpp +++ b/src/mame/drivers/namcos22.cpp @@ -1165,23 +1165,23 @@ #include "sound/c352.h" #include "speaker.h" +// 51.2MHz XTAL on video board, pixel clock of 12.8MHz (doubled in MAME because of unemulated interlacing) +// HSync - 15.7248 kHz -> htotal = 814.001 +// VSync - 59.9042 Hz -> vtotal = 524.998 (262+263) +#define PIXEL_CLOCK (51.2_MHz_XTAL/4*2) -#define PIXEL_CLOCK (49.152_MHz_XTAL/2) - -// VSync - 59.9042 Hz -// HSync - 15.7248 kHz (may be inaccurate) -#define HTOTAL (800) +#define HTOTAL (814) #define HBEND (0) #define HBSTART (640) -#define VTOTAL (512) +#define VTOTAL (525) #define VBEND (0) #define VBSTART (480) -#define MCU_SPEEDUP 1 /* mcu idle skipping */ -#define SERIAL_IO_PERIOD (60) /* lower DSP serial I/O period */ -// actual dsp serial freq is unknown, should be much higher than 60hz of course +#define MCU_SPEEDUP 1 /* mcu idle skipping */ +#define SERIAL_IO_PERIOD (100) /* lower DSP serial I/O period */ +// actual dsp serial freq is unknown, should be much higher than 100Hz of course // serial comms doesn't work yet anyway /*********************************************************************************************/ -- cgit v1.2.3