summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2019-12-07 22:11:04 -0500
committer arbee <rb6502@users.noreply.github.com>2019-12-07 22:11:04 -0500
commit3c5fa83a80bfa49da03d05e55f2df8eeea705243 (patch)
tree3143891fbf265fd2a315029f84502d2789b568aa /src
parent772ed229587239195b098a38416de1454c1362c8 (diff)
parent3ead76ec21b150f56b164c10e8f7f854d8ee47a8 (diff)
Merge branch 'master' of https://github.com/mamedev/mame
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/itc4.cpp100
-rw-r--r--src/mame/mame.lst3
-rw-r--r--src/mame/mess.flt1
3 files changed, 104 insertions, 0 deletions
diff --git a/src/mame/drivers/itc4.cpp b/src/mame/drivers/itc4.cpp
new file mode 100644
index 00000000000..b1b2f20120a
--- /dev/null
+++ b/src/mame/drivers/itc4.cpp
@@ -0,0 +1,100 @@
+// license:BSD-3-Clause
+// copyright-holders:AJR
+/************************************************************************************************************
+
+ Skeleton driver for temperature controller by Oxford Instruments Ltd.
+
+************************************************************************************************************/
+
+#include "emu.h"
+#include "bus/rs232/rs232.h"
+#include "cpu/z80/z80.h"
+#include "machine/i8251.h"
+#include "machine/nvram.h"
+#include "machine/z80ctc.h"
+
+
+class itc4_state : public driver_device
+{
+public:
+ itc4_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ {
+ }
+
+ void itc4(machine_config &config);
+
+private:
+ void mem_map(address_map &map);
+ void io_map(address_map &map);
+
+ required_device<z80_device> m_maincpu;
+};
+
+
+void itc4_state::mem_map(address_map &map)
+{
+ map(0x0000, 0x3fff).rom().region("program", 0);
+ map(0x8000, 0x87ff).ram().share("nvram");
+}
+
+void itc4_state::io_map(address_map &map)
+{
+ map.global_mask(0xff);
+ map(0x78, 0x7b).rw("ctc", FUNC(z80ctc_device::read), FUNC(z80ctc_device::write));
+ map(0xd8, 0xd9).rw("usart", FUNC(i8251_device::read), FUNC(i8251_device::write));
+ map(0xb8, 0xbf).noprw(); // 7-segment display?
+ map(0xe8, 0xe8).nopw();
+}
+
+
+static INPUT_PORTS_START(itc4)
+INPUT_PORTS_END
+
+
+static const z80_daisy_config daisy_chain[] =
+{
+ { "ctc" },
+ { nullptr }
+};
+
+void itc4_state::itc4(machine_config &config)
+{
+ Z80(config, m_maincpu, 8_MHz_XTAL / 2); // Z84C0006PEC
+ m_maincpu->set_addrmap(AS_PROGRAM, &itc4_state::mem_map);
+ m_maincpu->set_addrmap(AS_IO, &itc4_state::io_map);
+ m_maincpu->set_daisy_config(daisy_chain);
+
+ NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // DS1220Y
+
+ z80ctc_device &ctc(Z80CTC(config, "ctc", 8_MHz_XTAL / 2)); // Z84C3006PEC
+ ctc.intr_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0);
+ ctc.set_clk<0>(8_MHz_XTAL / 4); // guess
+ ctc.set_clk<1>(8_MHz_XTAL / 4); // guess
+ ctc.set_clk<2>(8_MHz_XTAL / 4); // guess
+
+ i8251_device &usart(I8251(config, "usart", 8_MHz_XTAL / 4)); // µPD8251AFC
+ usart.txd_handler().set("rs232", FUNC(rs232_port_device::write_txd));
+ usart.rts_handler().set("rs232", FUNC(rs232_port_device::write_rts));
+ usart.dtr_handler().set("rs232", FUNC(rs232_port_device::write_dtr));
+
+ rs232_port_device &rs232(RS232_PORT(config, "rs232", default_rs232_devices, nullptr));
+ rs232.rxd_handler().set("usart", FUNC(i8251_device::write_rxd));
+ rs232.dsr_handler().set("usart", FUNC(i8251_device::write_dsr));
+ rs232.cts_handler().set("usart", FUNC(i8251_device::write_cts));
+}
+
+ROM_START(itc4)
+ ROM_REGION(0x4000, "program", 0)
+ ROM_LOAD("itc4_2.04_70fa.u2", 0x0800, 0x0800, CRC(f2d3f050) SHA1(77947dd9584ffec22c67940582efbeb3e9553e07)) // M27128
+ ROM_CONTINUE(0x0000, 0x0800) // "(c) OXFORD 1988"
+ ROM_CONTINUE(0x1800, 0x0800)
+ ROM_CONTINUE(0x1000, 0x0800)
+ ROM_CONTINUE(0x2800, 0x0800)
+ ROM_CONTINUE(0x2000, 0x0800)
+ ROM_CONTINUE(0x3800, 0x0800)
+ ROM_CONTINUE(0x3000, 0x0800)
+ROM_END
+
+SYST(1988, itc4, 0, 0, itc4, itc4, itc4_state, empty_init, "Oxford Instruments", "ITC-4 Intelligent Temperature Controller (Version 2.04)", MACHINE_NOT_WORKING | MACHINE_NO_SOUND)
diff --git a/src/mame/mame.lst b/src/mame/mame.lst
index 36326499a66..6049f552d52 100644
--- a/src/mame/mame.lst
+++ b/src/mame/mame.lst
@@ -16391,6 +16391,9 @@ istellar // (c) 1983 Funai / Gakken
istreb //
motogonki //
+@source:itc4.cpp
+itc4 //
+
@source:iteagle.cpp
bbh2sp //
bbh2spa //
diff --git a/src/mame/mess.flt b/src/mame/mess.flt
index 5f09de11ea3..66595060eb0 100644
--- a/src/mame/mess.flt
+++ b/src/mame/mess.flt
@@ -400,6 +400,7 @@ isbc.cpp
isbc8010.cpp
isbc8030.cpp
iskr103x.cpp
+itc4.cpp
itt1700.cpp
itt3030.cpp
itt9216.cpp