Previous 199869 Revisions Next

r31027 Wednesday 18th June, 2014 at 19:48:58 UTC by Wilbert Pol
(MESS) msx.c: Adding MIDI ports to midisaurus. Can't test these yet because of missing software (nw)
[src/emu/bus/msx_cart]bm_012.c bm_012.h

trunk/src/emu/bus/msx_cart/bm_012.c
r31026r31027
66- hook up all the other signals for the CTC, SIO
77- which type of SIO hookup is used? tmpz84c015af supports SIO/0, SIO/1, and SIO/2
88- since the SIO signals are not hooked up, the midi in/thru/out ports are also not
9  implemented yet
9  implemented yet. Channel A seems to be used for sending midi data.
1010- proper irq handling taking the irq priority into account is not implemented
1111- the hookup between 2 PIOs is educated guess work; it could be incorrect
1212
r31026r31027
2828   , m_tmpz84c015af_sio(*this, "tmpz84_sio")
2929   , m_irq_priority(0)
3030   , m_bm012_pio(*this, "bm012_pio")
31   , m_mdthru(*this, "mdthru")
3132{
3233}
3334
r31026r31027
9394
9495   MCFG_Z80SIO0_ADD("tmpz84_sio", XTAL_12MHz/2, 0, 0, 0, 0)
9596   MCFG_Z80DART_OUT_INT_CB(INPUTLINE("tmpz84_cpu", INPUT_LINE_IRQ0))
97   MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE("mdout", midi_port_device, write_txd))
9698
9799   // Sony CXK5864BSP-10L  (8KB ram)
98100   // Sharp LH0081A Z80A-PIO-0 - For communicating between the MSX and the TMP
r31026r31027
103105   MCFG_Z80PIO_IN_PB_CB(DEVREAD8("tmpz84_pio", z80pio_device, pb_r))
104106   MCFG_Z80PIO_OUT_BRDY_CB(DEVWRITELINE("tmpz84_pio", z80pio_device, strobe_b))
105107
108   // MIDI ports
109   MCFG_MIDI_PORT_ADD("mdin", midiin_slot, "midiin")
110   MCFG_MIDI_RX_HANDLER(WRITELINE(msx_cart_bm_012, midi_in))
111
112   MCFG_MIDI_PORT_ADD("mdthru", midiout_slot, "midiout")
113
114   MCFG_MIDI_PORT_ADD("mdout", midiout_slot, "midiout")
106115MACHINE_CONFIG_END
107116
108117
r31026r31027
145154}
146155
147156
157WRITE_LINE_MEMBER(msx_cart_bm_012::midi_in)
158{
159   m_mdthru->write_txd(state);
160   m_tmpz84c015af_sio->rxb_w(state);
161}
162
163
trunk/src/emu/bus/msx_cart/bm_012.h
r31026r31027
55#include "machine/z80pio.h"
66#include "machine/z80ctc.h"
77#include "machine/z80dart.h"
8#include "bus/midi/midi.h"
89
910
1011extern const device_type MSX_CART_BM_012;
r31026r31027
2324   virtual void device_reset();
2425
2526   DECLARE_WRITE8_MEMBER(tmpz84c015af_f4_w);
27   DECLARE_WRITE_LINE_MEMBER(midi_in);
2628
2729private:
2830   // TMPZ84C015AF related
r31026r31027
3234   UINT8 m_irq_priority;
3335
3436   required_device<z80pio_device> m_bm012_pio;
37   required_device<midi_port_device> m_mdthru;
3538};
3639
3740

Previous 199869 Revisions Next


© 1997-2024 The MAME Team