mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Added new file xtal.h with commonly known/used clock XTALs.
Added #include "drivers/xtal.h" to driver.h so that these values are always available.
This commit is contained in:
parent
bc7cef9498
commit
fffa20252e
3 changed files with 121 additions and 0 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -500,6 +500,7 @@ src/emu/drawgfx.h svneol=native#text/plain
|
|||
src/emu/driver.c svneol=native#text/plain
|
||||
src/emu/driver.h svneol=native#text/plain
|
||||
src/emu/drivers/empty.c svneol=native#text/plain
|
||||
src/emu/drivers/xtal.h svneol=native#text/plain
|
||||
src/emu/eigccppc.h svneol=native#text/plain
|
||||
src/emu/eigccx86.h svneol=native#text/plain
|
||||
src/emu/eminline.h svneol=native#text/plain
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
#include "output.h"
|
||||
#include "tilemap.h"
|
||||
#include "romload.h"
|
||||
#include "drivers/xtal.h"
|
||||
#include "machine/generic.h"
|
||||
#include "audio/generic.h"
|
||||
#include "video/generic.h"
|
||||
|
|
119
src/emu/drivers/xtal.h
Normal file
119
src/emu/drivers/xtal.h
Normal file
|
@ -0,0 +1,119 @@
|
|||
/*************************************************************************
|
||||
|
||||
xtal.h
|
||||
|
||||
Documentation and consistent naming for known existing crystals.
|
||||
|
||||
Copyright (c) 1996-2007, Nicola Salmoria and the MAME Team.
|
||||
Visit http://mamedev.org for licensing and usage restrictions.
|
||||
|
||||
***************************************************************************
|
||||
|
||||
PCB Crystal Reference
|
||||
----------------------
|
||||
_____ ________
|
||||
|16 | |o |
|
||||
|MHZ| |16.0MHZ |
|
||||
|___| |________|
|
||||
| |
|
||||
|
||||
There is a finite list of _manufactured_ crystals. This file aims
|
||||
to document all of the known speeds that crystals were available in.
|
||||
Feel free to add to the list if you find another speed crystal on
|
||||
a PCB, but please DON'T GUESS!
|
||||
|
||||
Remember that some very high frequencies (typically above 100MHz) are
|
||||
generated by a frequency multiplying IC from a lower frequency
|
||||
crystal.
|
||||
|
||||
This is intended as a reference of existing parts to prevent incorrect
|
||||
clock speed measurements with digital frequency counters being used
|
||||
in drivers. When measuring clocks, remember that most parts have a
|
||||
tolerance so be sure to reference existing parts only and not just
|
||||
accept direct readings as 100% true.
|
||||
|
||||
(Thanks to Guru for starting this documentation.)
|
||||
|
||||
**************************************************************************/
|
||||
|
||||
enum
|
||||
{
|
||||
/*
|
||||
Name = Frequency Examples
|
||||
------------------ ------------ ------------------------------------------------------------ */
|
||||
XTAL_32_768kHz = 327680, /* 32.768kHz, used to drive RTC chips */
|
||||
XTAL_1MHz = 1000000,
|
||||
XTAL_2MHz = 2000000,
|
||||
XTAL_3MHz = 3000000, /* Probably only used to drive 68705 or similar MCUs on 80's Taito PCBs */
|
||||
XTAL_3_579545MHz = 3579545,
|
||||
XTAL_3_6864MHz = 3686400, /* CPS3 */
|
||||
XTAL_4MHz = 4000000,
|
||||
XTAL_4_224MHz = 4224000, /* Used to drive OKI M6295 chips, usually with /4 divider */
|
||||
XTAL_4_9152MHz = 4915200,
|
||||
XTAL_6MHz = 6000000,
|
||||
XTAL_7_3728MHz = 7372800,
|
||||
XTAL_8MHz = 8000000,
|
||||
XTAL_10MHz = 10000000,
|
||||
XTAL_10_595MHz = 10595000, /* Mad Alien */
|
||||
XTAL_11_289MHz = 11289000, /* Vanguard */
|
||||
XTAL_12MHz = 12000000,
|
||||
XTAL_12_288MHz = 12288000, /* Sega Model 3 digital audio board */
|
||||
XTAL_13_3MHz = 13300000, /* BMC bowling */
|
||||
XTAL_13_33056MHz = 13330560, /* Taito L */
|
||||
XTAL_14MHz = 14000000,
|
||||
XTAL_14_31818MHz = 14318180,
|
||||
XTAL_14_705882MHz = 14705882, /* Aleck64 */
|
||||
XTAL_14_7456MHz = 14745600, /* Namco System 12 & System Super 22/23 for H8/3002 CPU */
|
||||
XTAL_15_468MHz = 15468000, /* Bank Panic h/w, Sega G80 */
|
||||
XTAL_16MHz = 16000000,
|
||||
XTAL_16_9344MHz = 16934400, /* Usually used to drive 90's Yamaha OPL/FM chips */
|
||||
XTAL_18MHz = 18000000,
|
||||
XTAL_18_432MHz = 18432000,
|
||||
XTAL_19_968MHz = 19968000, /* Used mostly by Space Invaders games by Taito/Midway and clones */
|
||||
XTAL_20MHz = 20000000,
|
||||
XTAL_21_3MHz = 21300000,
|
||||
XTAL_21_4772MHz = 21477200, /* BMC bowling */
|
||||
XTAL_22MHz = 22000000,
|
||||
XTAL_24MHz = 24000000,
|
||||
XTAL_24_576MHz = 24576000, /* Pole Position h/w, Model 3 CPU board */
|
||||
XTAL_25MHz = 25000000, /* Namco System 22, Taito GNET */
|
||||
XTAL_25_1748MHz = 25174800, /* Sega S16A, S16B */
|
||||
XTAL_26_66666MHz = 26666660, /* Irem M92 but most use 27MHz */
|
||||
XTAL_26_686MHz = 26686000, /* Typically used on 90's Taito PCBs to drive the custom chips */
|
||||
XTAL_27MHz = 27000000, /* Some Banpresto games macrossp and Irem M92 */
|
||||
XTAL_27_164MHz = 27164000, /* Typically used on 90's Taito PCBs to drive the custom chips */
|
||||
XTAL_28MHz = 28000000,
|
||||
XTAL_28_63636MHz = 28636360, /* later Leland games and Atari GT */
|
||||
XTAL_30_4761MHz = 30476100, /* Taito JC */
|
||||
XTAL_32MHz = 32000000,
|
||||
XTAL_32_22MHz = 32220000, /* Typically used on 90's Data East PCBs */
|
||||
XTAL_32_5304MHz = 32530400, /* Seta 2 */
|
||||
XTAL_33MHz = 33000000, /* Sega Model 3 video board */
|
||||
XTAL_33_333MHz = 33333000, /* Sega Model 3 CPU board, Vegas */
|
||||
XTAL_33_8688MHz = 33868800, /* Usually used to drive 90's Yamaha OPL/FM chips with /2 divider */
|
||||
XTAL_36MHz = 36000000, /* Sega Model 1 video board */
|
||||
XTAL_38_76922MHz = 38769220, /* Namco System 21 video board */
|
||||
XTAL_40MHz = 40000000,
|
||||
XTAL_42_9545MHz = 42954500, /* CPS3 */
|
||||
XTAL_45MHz = 45000000, /* Eolith with Hyperstone CPUs */
|
||||
XTAL_45_158MHz = 45158000, /* Sega Model 2A video board, Model 3 CPU board */
|
||||
XTAL_48MHz = 48000000,
|
||||
XTAL_49_152MHz = 49152000, /* Used on some Namco PCBs, Baraduke h/w, System 21, Super System 22 */
|
||||
XTAL_50MHz = 50000000,
|
||||
XTAL_52MHz = 52000000, /* Cojag */
|
||||
XTAL_53_693175MHz = 53693175, /* PSX-based h/w, Sony ZN1-2-based */
|
||||
XTAL_54MHz = 54000000, /* Taito JC */
|
||||
XTAL_57_2727MHz = 57272700, /* Psikyo SH2 with /2 divider */
|
||||
XTAL_60MHz = 60000000,
|
||||
XTAL_61_44MHz = 61440000, /* dkong */
|
||||
XTAL_64MHz = 64000000, /* BattleToads */
|
||||
XTAL_66_6667MHz = 66666700, /* later Midway games */
|
||||
XTAL_67_7376MHz = 67737600, /* PSX-based h/w, Sony ZN1-2-based */
|
||||
XTAL_100MHz = 100000000, /* PSX-based Namco System 12, Vegas, Sony ZN1-2-based */
|
||||
XTAL_101_4912MHz = 101491200, /* PSX-based Namco System 10 */
|
||||
|
||||
/* Resonators (There are probably more. Almost always used for driving OKI sound chips) */
|
||||
|
||||
XTAL_384kHz = 384000,
|
||||
XTAL_640kHz = 640000
|
||||
};
|
Loading…
Reference in a new issue