summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/milwaukee.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-12-01 21:40:42 -0500
committer AJR <ajrhacker@users.noreply.github.com>2017-12-01 21:42:31 -0500
commitcf79c7b3f6daa2ecb1adb5a559a33b724c094bc8 (patch)
treec137c9ddf0168674cde57a81d515e87850c87be1 /src/mame/drivers/milwaukee.cpp
parente1771185d2a8766f95733554c643d0fcad268745 (diff)
milwaukee.cpp: Add XTAL and PIT clocks from barely legible schematics (nw)
Diffstat (limited to 'src/mame/drivers/milwaukee.cpp')
-rw-r--r--src/mame/drivers/milwaukee.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/drivers/milwaukee.cpp b/src/mame/drivers/milwaukee.cpp
index 8e29012b07f..097130f15d0 100644
--- a/src/mame/drivers/milwaukee.cpp
+++ b/src/mame/drivers/milwaukee.cpp
@@ -7,7 +7,7 @@
Milwaukee Computer MC-1000 series (MC-1000/1100/1200/1300/1400) all the same except for disk options.
Chips: SY6502, 2x 6821, 2x MC6850P, 6852, INS8253
-Other: 2x 7-position rotary "dips" to select baud rates on each 6850.
+Other: 2x 7-position rotary "dips" to select baud rates on each 6850 (19.2K, 9600, 4800, 2400, 1200, 600, 300).
************************************************************************************************************************************/
@@ -50,16 +50,21 @@ static INPUT_PORTS_START( milwaukee )
INPUT_PORTS_END
static MACHINE_CONFIG_START( milwaukee )
- MCFG_CPU_ADD("maincpu", M6502, 1'000'000) // can't read crystal, but clock is correct
+ MCFG_CPU_ADD("maincpu", M6502, XTAL_16MHz / 16)
MCFG_CPU_PROGRAM_MAP(mem_map)
MCFG_DEVICE_ADD("pit", PIT8253, 0)
+ MCFG_PIT8253_CLK0(XTAL_16MHz / 16 / 4) // 250 Hz
+ MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("pit", pit8253_device, write_gate0)) MCFG_DEVCB_INVERT
+ MCFG_PIT8253_CLK1(double(XTAL_16MHz) / 2 / 13 / 2048 / 5) // 60.09 Hz?
+ MCFG_PIT8253_OUT1_HANDLER(DEVWRITELINE("pit", pit8253_device, write_clk2)) MCFG_DEVCB_INVERT
+
MCFG_DEVICE_ADD("pia1", PIA6821, 0)
MCFG_DEVICE_ADD("pia2", PIA6821, 0)
MCFG_DEVICE_ADD("acia2", ACIA6850, 0)
MCFG_DEVICE_ADD("ssda", MC6852, 0)
- MCFG_DEVICE_ADD("acia_clock", CLOCK, 153600)
+ MCFG_DEVICE_ADD("acia_clock", CLOCK, XTAL_16MHz / 2 / 13 / 4)
MCFG_CLOCK_SIGNAL_HANDLER(DEVWRITELINE("acia1", acia6850_device, write_txc))
MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("acia1", acia6850_device, write_rxc))