mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
New machines marked as NOT_WORKING
---------------------------------- Kawai KSP10 Digital Piano [DBWBP]
This commit is contained in:
parent
669b0fd475
commit
562cb2139f
@ -2575,6 +2575,8 @@ if (CPUS["TLCS900"]~=null) then
|
||||
MAME_DIR .. "src/devices/cpu/tlcs900/tmp95c061.h",
|
||||
MAME_DIR .. "src/devices/cpu/tlcs900/tmp95c063.cpp",
|
||||
MAME_DIR .. "src/devices/cpu/tlcs900/tmp95c063.h",
|
||||
MAME_DIR .. "src/devices/cpu/tlcs900/tmp96c141.cpp",
|
||||
MAME_DIR .. "src/devices/cpu/tlcs900/tmp96c141.h",
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -2664,6 +2664,7 @@ files {
|
||||
MAME_DIR .. "src/mame/drivers/kawai_k1.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/kawai_k4.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/kawai_k5.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/kawai_ksp10.cpp",
|
||||
MAME_DIR .. "src/mame/drivers/kawai_r100.cpp",
|
||||
}
|
||||
|
||||
|
197
src/devices/cpu/tlcs900/tmp96c141.cpp
Normal file
197
src/devices/cpu/tlcs900/tmp96c141.cpp
Normal file
@ -0,0 +1,197 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/****************************************************************************
|
||||
|
||||
Toshiba TMP96C141 microcontroller
|
||||
|
||||
TMP96CM40 is the same as TMP96C141 with the addition of 32K of on-chip
|
||||
ROM. TMP96PM40 is similar but with 32K OTP. TMP96C041 is RAMless as well
|
||||
as ROMless.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "tmp96c141.h"
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// GLOBAL VARIABLES
|
||||
//**************************************************************************
|
||||
|
||||
// device type definition
|
||||
DEFINE_DEVICE_TYPE(TMP96C141, tmp96c141_device, "tmp96c141", "Toshiba TMP96C141")
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// DEVICE CONSTRUCTION AND INITIALIZATION
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// tmp96c141_device - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
tmp96c141_device::tmp96c141_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: tlcs900_device(mconfig, TMP96C141, tag, owner, clock)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_config_complete - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::device_config_complete()
|
||||
{
|
||||
if (m_am8_16 == 0)
|
||||
m_program_config = address_space_config("program", ENDIANNESS_LITTLE, 16, 24, 0, address_map_constructor(FUNC(tmp96c141_device::internal_mem), this));
|
||||
else
|
||||
m_program_config = address_space_config("program", ENDIANNESS_LITTLE, 8, 24, 0, address_map_constructor(FUNC(tmp96c141_device::internal_mem), this));
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::device_start()
|
||||
{
|
||||
tlcs900_device::device_start();
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_reset - device-specific reset
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::device_reset()
|
||||
{
|
||||
tlcs900_device::device_reset();
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// INTERNAL REGISTERS
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// internal_mem - memory map for internal RAM and
|
||||
// I/O registers
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::internal_mem(address_map &map)
|
||||
{
|
||||
map(0x000000, 0x00007f).unmaprw();
|
||||
//map(0x000000, 0x000000).rw(FUNC(tmp96c141_device::p0_r), FUNC(tmp96c141_device::p0_w));
|
||||
//map(0x000001, 0x000001).rw(FUNC(tmp96c141_device::p1_r), FUNC(tmp96c141_device::p1_w));
|
||||
//map(0x000002, 0x000002).w(FUNC(tmp96c141_device::p0cr_w));
|
||||
//map(0x000004, 0x000004).w(FUNC(tmp96c141_device::p1cr_w));
|
||||
//map(0x000005, 0x000005).w(FUNC(tmp96c141_device::p1fc_w));
|
||||
//map(0x000006, 0x000006).rw(FUNC(tmp96c141_device::p2_r), FUNC(tmp96c141_device::p2_w));
|
||||
//map(0x000007, 0x000007).rw(FUNC(tmp96c141_device::p3_r), FUNC(tmp96c141_device::p3_w));
|
||||
//map(0x000008, 0x000008).w(FUNC(tmp96c141_device::p2cr_w));
|
||||
//map(0x000009, 0x000009).w(FUNC(tmp96c141_device::p2fc_w));
|
||||
//map(0x00000a, 0x00000a).w(FUNC(tmp96c141_device::p3cr_w));
|
||||
//map(0x00000b, 0x00000b).w(FUNC(tmp96c141_device::p3fc_w));
|
||||
//map(0x00000c, 0x00000c).rw(FUNC(tmp96c141_device::p4_r), FUNC(tmp96c141_device::p4_w));
|
||||
//map(0x00000d, 0x00000d).r(FUNC(tmp96c141_device::p5_r));
|
||||
//map(0x00000e, 0x00000e).w(FUNC(tmp96c141_device::p4cr_w));
|
||||
//map(0x000010, 0x000010).w(FUNC(tmp96c141_device::p4fc_w));
|
||||
//map(0x000012, 0x000012).rw(FUNC(tmp96c141_device::p6_r), FUNC(tmp96c141_device::p6_w));
|
||||
//map(0x000013, 0x000013).rw(FUNC(tmp96c141_device::p7_r), FUNC(tmp96c141_device::p7_w));
|
||||
//map(0x000014, 0x000014).w(FUNC(tmp96c141_device::p6cr_w));
|
||||
//map(0x000015, 0x000015).w(FUNC(tmp96c141_device::p6fc_w));
|
||||
//map(0x000016, 0x000016).w(FUNC(tmp96c141_device::p7cr_w));
|
||||
//map(0x000017, 0x000017).w(FUNC(tmp96c141_device::p7fc_w));
|
||||
//map(0x000018, 0x000018).rw(FUNC(tmp96c141_device::p8_r), FUNC(tmp96c141_device::p8_w));
|
||||
//map(0x000019, 0x000019).rw(FUNC(tmp96c141_device::p9_r), FUNC(tmp96c141_device::p9_w));
|
||||
//map(0x00001a, 0x00001a).w(FUNC(tmp96c141_device::p8cr_w));
|
||||
//map(0x00001b, 0x00001b).w(FUNC(tmp96c141_device::p8fc_w));
|
||||
//map(0x00001c, 0x00001c).w(FUNC(tmp96c141_device::p9cr_w));
|
||||
//map(0x00001d, 0x00001d).w(FUNC(tmp96c141_device::p9fc_w));
|
||||
//map(0x000020, 0x000020).rw(FUNC(tmp96c141_device::trun_r), FUNC(tmp96c141_device::trun_w));
|
||||
//map(0x000022, 0x000023).w(FUNC(tmp96c141_device::treg01_w));
|
||||
//map(0x000024, 0x000024).w(FUNC(tmp96c141_device::tmod_w));
|
||||
//map(0x000025, 0x000025).rw(FUNC(tmp96c141_device::tffcr_r), FUNC(tmp96c141_device::tffcr_w));
|
||||
//map(0x000026, 0x000027).rw(FUNC(tmp96c141_device::treg23_r), FUNC(tmp96c141_device::treg23_w));
|
||||
//map(0x000028, 0x000029).rw(FUNC(tmp96c141_device::pwmod_r), FUNC(tmp96c141_device::pwmod_w));
|
||||
//map(0x00002a, 0x00002a).rw(FUNC(tmp96c141_device::pffcr_r), FUNC(tmp96c141_device::pffcr_w));
|
||||
//map(0x000030, 0x000033).w(FUNC(tmp96c141_device::treg45_w));
|
||||
//map(0x000034, 0x000037).r(FUNC(tmp96c141_device::cap12_r));
|
||||
//map(0x000038, 0x000038).rw(FUNC(tmp96c141_device::t4mod_r), FUNC(tmp96c141_device::t4mod_w));
|
||||
//map(0x000039, 0x000039).rw(FUNC(tmp96c141_device::t4ffcr_r), FUNC(tmp96c141_device::t4ffcr_w));
|
||||
//map(0x00003a, 0x00003a).rw(FUNC(tmp96c141_device::t45cr_r), FUNC(tmp96c141_device::t45cr_w));
|
||||
//map(0x000040, 0x000043).w(FUNC(tmp96c141_device::treg67_w));
|
||||
//map(0x000044, 0x000047).r(FUNC(tmp96c141_device::cap34_r));
|
||||
//map(0x000048, 0x000048).rw(FUNC(tmp96c141_device::t5mod_r), FUNC(tmp96c141_device::t5mod_w));
|
||||
//map(0x000049, 0x000049).rw(FUNC(tmp96c141_device::t5ffcr_r), FUNC(tmp96c141_device::t5ffcr_w));
|
||||
//map(0x00004c, 0x00004d).rw(FUNC(tmp96c141_device::pgreg_r), FUNC(tmp96c141_device::pgreg_w));
|
||||
//map(0x00004e, 0x00004e).rw(FUNC(tmp96c141_device::pg01cr_r), FUNC(tmp96c141_device::pg01cr_w));
|
||||
//map(0x000050, 0x000050).rw(FUNC(tmp96c141_device::sc0buf_r), FUNC(tmp96c141_device::sc0buf_w));
|
||||
//map(0x000051, 0x000051).rw(FUNC(tmp96c141_device::sc0cr_r), FUNC(tmp96c141_device::sc0cr_w));
|
||||
//map(0x000052, 0x000052).rw(FUNC(tmp96c141_device::sc0mod_r), FUNC(tmp96c141_device::sc0mod_w));
|
||||
//map(0x000053, 0x000053).rw(FUNC(tmp96c141_device::br0cr_r), FUNC(tmp96c141_device::br0cr_w));
|
||||
//map(0x000054, 0x000054).rw(FUNC(tmp96c141_device::sc1buf_r), FUNC(tmp96c141_device::sc1buf_w));
|
||||
//map(0x000055, 0x000055).rw(FUNC(tmp96c141_device::sc1cr_r), FUNC(tmp96c141_device::sc1cr_w));
|
||||
//map(0x000056, 0x000056).rw(FUNC(tmp96c141_device::sc1mod_r), FUNC(tmp96c141_device::sc1mod_w));
|
||||
//map(0x000057, 0x000057).rw(FUNC(tmp96c141_device::br1cr_r), FUNC(tmp96c141_device::br1cr_w));
|
||||
//map(0x000058, 0x000058).rw(FUNC(tmp96c141_device::ode_r), FUNC(tmp96c141_device::ode_w));
|
||||
//map(0x00005c, 0x00005c).rw(FUNC(tmp96c141_device::wdmod_r), FUNC(tmp96c141_device::wdmod_w));
|
||||
//map(0x00005d, 0x00005d).w(FUNC(tmp96c141_device::wdcr_w));
|
||||
//map(0x00005e, 0x00005e).rw(FUNC(tmp96c141_device::admod_r), FUNC(tmp96c141_device::admod_w));
|
||||
//map(0x000060, 0x000067).r(FUNC(tmp96c141_device::adreg_r));
|
||||
//map(0x000068, 0x00006a).w(FUNC(tmp96c141_device::bcs_w));
|
||||
//map(0x000070, 0x000078).rw(FUNC(tmp96c141_device::inte_r), FUNC(tmp96c141_device::inte_w));
|
||||
//map(0x00007b, 0x00007b).w(FUNC(tmp96c141_device::iimc_w));
|
||||
//map(0x00007c, 0x00007f).w(FUNC(tmp96c141_device::dmav_w));
|
||||
map(0x000080, 0x00047f).ram();
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// EXECUTION CALLBACKS
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// tlcs900_check_hdma -
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::tlcs900_check_hdma()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// tlcs900_check_irqs -
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::tlcs900_check_irqs()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// tlcs900_handle_ad -
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::tlcs900_handle_ad()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// tlcs900_handle_timers -
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::tlcs900_handle_timers()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// execute_set_input - called when a synchronized
|
||||
// input is changed
|
||||
//-------------------------------------------------
|
||||
|
||||
void tmp96c141_device::execute_set_input(int inputnum, int state)
|
||||
{
|
||||
}
|
98
src/devices/cpu/tlcs900/tmp96c141.h
Normal file
98
src/devices/cpu/tlcs900/tmp96c141.h
Normal file
@ -0,0 +1,98 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/****************************************************************************
|
||||
|
||||
Toshiba TMP96C141 microcontroller
|
||||
|
||||
*****************************************************************************
|
||||
|
||||
(AN0)PS0 73 ----------------+ +---------------- 72 P42(_CS2/_CAS2)
|
||||
(AN1)PS1 74 --------------+ | | +-------------- 71 P41(_CS1/_CAS1)
|
||||
(AN2)PS2 75 ------------+ | | | | +------------ 70 P40(_CS0/_CAS0)
|
||||
(AN3)PS3 76 ----------+ | | | | | | +---------- 69 P37(_RAS)
|
||||
VCC 77 --------+ | | | | | | | | +-------- 68 P36(R/_W)
|
||||
VREF 78 ------+ | | | | | | | | | | +------ 67 P35(_BUSAK)
|
||||
AGND 79 ----+ | | | | | | | | | | | | +---- 66 P34(_BUSRQ)
|
||||
VSS 80 --+ | | | | | | | | | | | | | | +-- 65 P33(_WAIT)
|
||||
_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_
|
||||
(PG00)P60 1 | _ | 64 P32(_HWR)
|
||||
(PG01)P61 2 | (_) | 63 P31(_WR)
|
||||
(PG02)P62 3 | | 62 P30(_RD)
|
||||
(PG03)P63 4 | | 61 P27(A7/A23)
|
||||
(PG10)P64 5 | | 60 P26(A6/A22)
|
||||
(PG11)P65 6 | | 59 P25(A5/A21)
|
||||
(PG12)P66 7 | | 58 P24(A4/A20)
|
||||
(PG13)P67 8 | | 57 P23(A3/A19)
|
||||
(TI0)P70 9 | | 56 P22(A2/A18)
|
||||
(TO1)P71 10 | | 55 P21(A1/A17)
|
||||
(TO2)P72 11 | | 54 P20(A0/A16)
|
||||
(TO3)P73 12 | TMP96C141AF | 53 VSS
|
||||
(INT4/TI4)P80 13 | (QFP80) | 52 P17(AD15/A15)
|
||||
(INT5/TI5)P81 14 | | 51 P16(AD14/A14)
|
||||
(TO4)P82 15 | | 50 P15(AD13/A13)
|
||||
(TO5)P83 16 | | 49 P14(AD12/A12)
|
||||
(INT6/TI6)P84 17 | | 48 P13(AD11/A11)
|
||||
(INT7/TI7)P85 18 | | 47 P12(AD10/A10)
|
||||
(TO6)P86 19 | | 46 P11(AD9/A9)
|
||||
(TO7)P87 20 | | 45 P10(AD8/A8)
|
||||
_NMI 21 | | 44 P07(AD7)
|
||||
_WDTOUT 22 | | 43 P06(AD6)
|
||||
_RESET 23 | | 42 P05(AD5)
|
||||
CLK 24 |_________________________________| 41 P04(AD4)
|
||||
| | | | | | | | | | | | | | | |
|
||||
VSS 25 --+ | | | | | | | | | | | | | | +-- 40 P03(AD3)
|
||||
X1 26 ----+ | | | | | | | | | | | | +---- 39 P02(AD2)
|
||||
X2 27 ------+ | | | | | | | | | | +------ 38 P01(AD1)
|
||||
_EA 28 --------+ | | | | | | | | +-------- 37 P00(AD0)
|
||||
(TXD0)P90 29 ----------+ | | | | | | +---------- 36 VCC
|
||||
(RXD0)P91 30 ------------+ | | | | +------------ 35 ALE
|
||||
(_CTS0)P92 31 --------------+ | | +-------------- 34 P95(SCLK1)
|
||||
(TXD1)P93 32 ----------------+ +---------------- 33 P94(RXD1)
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef MAME_CPU_TLCS900_TMP96C141_H
|
||||
#define MAME_CPU_TLCS900_TMP96C141_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "tlcs900.h"
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
|
||||
// ======================> tmp96c141_device
|
||||
|
||||
class tmp96c141_device : public tlcs900_device
|
||||
{
|
||||
public:
|
||||
// device type constructor
|
||||
tmp96c141_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
|
||||
// TODO: configuration helpers
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_config_complete() override;
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
|
||||
// device_execute_interface overrides
|
||||
virtual void execute_set_input(int inputnum, int state) override;
|
||||
|
||||
// tlcs900_device overrides
|
||||
virtual void tlcs900_check_hdma() override;
|
||||
virtual void tlcs900_check_irqs() override;
|
||||
virtual void tlcs900_handle_ad() override;
|
||||
virtual void tlcs900_handle_timers() override;
|
||||
|
||||
private:
|
||||
void internal_mem(address_map &map);
|
||||
};
|
||||
|
||||
// device type declaration
|
||||
DECLARE_DEVICE_TYPE(TMP96C141, tmp96c141_device)
|
||||
|
||||
#endif // MAME_CPU_TLCS900_TMP96C141_H
|
54
src/mame/drivers/kawai_ksp10.cpp
Normal file
54
src/mame/drivers/kawai_ksp10.cpp
Normal file
@ -0,0 +1,54 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/****************************************************************************
|
||||
|
||||
Skeleton driver for Kawai KSP10 digital piano.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/tlcs900/tmp96c141.h"
|
||||
|
||||
class kawai_ksp10_state : public driver_device
|
||||
{
|
||||
public:
|
||||
kawai_ksp10_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag)
|
||||
, m_maincpu(*this, "maincpu")
|
||||
{
|
||||
}
|
||||
|
||||
void ksp10(machine_config &config);
|
||||
|
||||
private:
|
||||
void mem_map(address_map &map);
|
||||
|
||||
required_device<tmp96c141_device> m_maincpu;
|
||||
};
|
||||
|
||||
|
||||
void kawai_ksp10_state::mem_map(address_map &map)
|
||||
{
|
||||
map(0x000000, 0x07ffff).rom().region("firmware", 0);
|
||||
map(0x400000, 0x407fff).ram(); // NVRAM?
|
||||
}
|
||||
|
||||
|
||||
static INPUT_PORTS_START(ksp10)
|
||||
INPUT_PORTS_END
|
||||
|
||||
void kawai_ksp10_state::ksp10(machine_config &config)
|
||||
{
|
||||
TMP96C141(config, m_maincpu, 10'000'000); // clock unknown
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &kawai_ksp10_state::mem_map);
|
||||
}
|
||||
|
||||
ROM_START(ksp10)
|
||||
ROM_REGION16_LE(0x80000, "firmware", 0)
|
||||
ROM_LOAD("u3_hp041b_e8dp_tms27c240.bin", 0x00000, 0x80000, CRC(b64e7a97) SHA1(bac0f345d0a039a3315883a6ca8eefe659709a26))
|
||||
|
||||
ROM_REGION16_LE(0x40000, "samples", 0)
|
||||
ROM_LOAD("u21_hp042a_e7dp_mbm27c2048.bin", 0x00000, 0x40000, CRC(e21b1141) SHA1(181c2beed18da2efa2f0e45cb3233adf6b932127))
|
||||
ROM_END
|
||||
|
||||
SYST(199?, ksp10, 0, 0, ksp10, ksp10, kawai_ksp10_state, empty_init, "Kawai Musical Instruments Manufacturing", "KSP10 Digital Piano", MACHINE_IS_SKELETON)
|
@ -18663,6 +18663,9 @@ k4r //
|
||||
k5 //
|
||||
k5m //
|
||||
|
||||
@source:kawai_ksp10.cpp
|
||||
ksp10 //
|
||||
|
||||
@source:kawai_r100.cpp
|
||||
r100 //
|
||||
|
||||
|
@ -460,6 +460,7 @@ k8915.cpp
|
||||
kawai_k1.cpp
|
||||
kawai_k4.cpp
|
||||
kawai_k5.cpp
|
||||
kawai_ksp10.cpp
|
||||
kawai_r100.cpp
|
||||
kaypro.cpp
|
||||
kc.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user