mirror of
https://github.com/holub/mame
synced 2025-07-01 00:09:18 +03:00
Default input clocks for ADC083x and ADC084x (nw)
This commit is contained in:
parent
86f6dd0c6c
commit
280f9b9413
@ -97,7 +97,7 @@ MACHINE_CONFIG_START(electron_plus1_device::device_add_mconfig)
|
|||||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||||
|
|
||||||
/* adc */
|
/* adc */
|
||||||
ADC0844(config, m_adc, 0);
|
ADC0844(config, m_adc);
|
||||||
m_adc->intr_callback().set(FUNC(electron_plus1_device::ready_w));
|
m_adc->intr_callback().set(FUNC(electron_plus1_device::ready_w));
|
||||||
m_adc->ch1_callback().set_ioport("JOY1");
|
m_adc->ch1_callback().set_ioport("JOY1");
|
||||||
m_adc->ch2_callback().set_ioport("JOY2");
|
m_adc->ch2_callback().set_ioport("JOY2");
|
||||||
|
@ -92,28 +92,28 @@ private:
|
|||||||
class adc0831_device : public adc083x_device
|
class adc0831_device : public adc083x_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class adc0832_device : public adc083x_device
|
class adc0832_device : public adc083x_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
adc0832_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0832_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class adc0834_device : public adc083x_device
|
class adc0834_device : public adc083x_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
adc0834_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0834_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class adc0838_device : public adc083x_device
|
class adc0838_device : public adc083x_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
adc0838_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0838_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class adc0844_device : public device_t
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// construction/destruction
|
// construction/destruction
|
||||||
adc0844_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0844_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
|
|
||||||
// configuration
|
// configuration
|
||||||
auto intr_callback() { return m_intr_cb.bind(); }
|
auto intr_callback() { return m_intr_cb.bind(); }
|
||||||
@ -70,7 +70,7 @@ class adc0848_device : public adc0844_device
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// construction/destruction
|
// construction/destruction
|
||||||
adc0848_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
adc0848_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||||
|
|
||||||
// configuration
|
// configuration
|
||||||
auto ch5_callback() { return m_ch5_cb.bind(); }
|
auto ch5_callback() { return m_ch5_cb.bind(); }
|
||||||
|
@ -625,7 +625,7 @@ MACHINE_CONFIG_START(einstein_state::einstein)
|
|||||||
m_psg->port_a_write_callback().set(FUNC(einstein_state::keyboard_line_write));
|
m_psg->port_a_write_callback().set(FUNC(einstein_state::keyboard_line_write));
|
||||||
m_psg->add_route(ALL_OUTPUTS, "mono", 0.20);
|
m_psg->add_route(ALL_OUTPUTS, "mono", 0.20);
|
||||||
|
|
||||||
adc0844_device &adc(ADC0844(config, "adc", 0));
|
adc0844_device &adc(ADC0844(config, "adc"));
|
||||||
adc.intr_callback().set(m_adc_daisy, FUNC(z80daisy_generic_device::int_w));
|
adc.intr_callback().set(m_adc_daisy, FUNC(z80daisy_generic_device::int_w));
|
||||||
adc.ch1_callback().set_ioport("analogue_1_x");
|
adc.ch1_callback().set_ioport("analogue_1_x");
|
||||||
adc.ch2_callback().set_ioport("analogue_1_y");
|
adc.ch2_callback().set_ioport("analogue_1_y");
|
||||||
|
@ -1792,7 +1792,7 @@ void konamigx_state::opengolf(machine_config &config)
|
|||||||
|
|
||||||
m_maincpu->set_addrmap(AS_PROGRAM, &konamigx_state::gx_type1_map);
|
m_maincpu->set_addrmap(AS_PROGRAM, &konamigx_state::gx_type1_map);
|
||||||
|
|
||||||
adc0834_device &adc(ADC0834(config, "adc0834", 0));
|
adc0834_device &adc(ADC0834(config, "adc0834"));
|
||||||
adc.set_input_callback(FUNC(konamigx_state::adc0834_callback));
|
adc.set_input_callback(FUNC(konamigx_state::adc0834_callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2143,7 +2143,7 @@ void ksys573_state::konami573(machine_config &config)
|
|||||||
|
|
||||||
M48T58(config, "m48t58", 0);
|
M48T58(config, "m48t58", 0);
|
||||||
|
|
||||||
adc0834_device &adc(ADC0834(config, "adc0834", 0));
|
adc0834_device &adc(ADC0834(config, "adc0834"));
|
||||||
adc.set_input_callback(FUNC(ksys573_state::analogue_inputs_callback));
|
adc.set_input_callback(FUNC(ksys573_state::analogue_inputs_callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1132,7 +1132,7 @@ void mcr3_state::maxrpm(machine_config &config)
|
|||||||
{
|
{
|
||||||
mono_tcs(config);
|
mono_tcs(config);
|
||||||
|
|
||||||
ADC0844(config, m_maxrpm_adc, 0);
|
ADC0844(config, m_maxrpm_adc);
|
||||||
m_maxrpm_adc->ch1_callback().set_ioport("MONO.IP1");
|
m_maxrpm_adc->ch1_callback().set_ioport("MONO.IP1");
|
||||||
m_maxrpm_adc->ch2_callback().set_ioport("MONO.IP1.ALT1");
|
m_maxrpm_adc->ch2_callback().set_ioport("MONO.IP1.ALT1");
|
||||||
m_maxrpm_adc->ch3_callback().set_ioport("MONO.IP1.ALT2");
|
m_maxrpm_adc->ch3_callback().set_ioport("MONO.IP1.ALT2");
|
||||||
|
@ -959,7 +959,7 @@ MACHINE_CONFIG_START(mcr68_state::spyhunt2)
|
|||||||
MCFG_DEVICE_ADD("tcs", MIDWAY_TURBO_CHEAP_SQUEAK)
|
MCFG_DEVICE_ADD("tcs", MIDWAY_TURBO_CHEAP_SQUEAK)
|
||||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 1.0)
|
||||||
|
|
||||||
ADC0844(config, m_adc, 0);
|
ADC0844(config, m_adc);
|
||||||
m_adc->ch1_callback().set_ioport("AN1");
|
m_adc->ch1_callback().set_ioport("AN1");
|
||||||
m_adc->ch2_callback().set_ioport("AN2");
|
m_adc->ch2_callback().set_ioport("AN2");
|
||||||
m_adc->ch3_callback().set_ioport("AN3");
|
m_adc->ch3_callback().set_ioport("AN3");
|
||||||
|
@ -372,7 +372,7 @@ MACHINE_CONFIG_START(micro3d_state::micro3d)
|
|||||||
monitor_vgb.rxd_handler().set(m_vgb_uart, FUNC(mc2661_device::rx_w));
|
monitor_vgb.rxd_handler().set(m_vgb_uart, FUNC(mc2661_device::rx_w));
|
||||||
monitor_vgb.dsr_handler().set(m_vgb_uart, FUNC(mc2661_device::dsr_w));
|
monitor_vgb.dsr_handler().set(m_vgb_uart, FUNC(mc2661_device::dsr_w));
|
||||||
|
|
||||||
ADC0844(config, m_adc, 0);
|
ADC0844(config, m_adc);
|
||||||
m_adc->intr_callback().set("mfp", FUNC(mc68901_device::i3_w));
|
m_adc->intr_callback().set("mfp", FUNC(mc68901_device::i3_w));
|
||||||
m_adc->ch1_callback().set_ioport("THROTTLE");
|
m_adc->ch1_callback().set_ioport("THROTTLE");
|
||||||
m_adc->ch2_callback().set(FUNC(micro3d_state::adc_volume_r));
|
m_adc->ch2_callback().set(FUNC(micro3d_state::adc_volume_r));
|
||||||
|
@ -1082,7 +1082,7 @@ void midvunit_state::midvunit(machine_config &config)
|
|||||||
{
|
{
|
||||||
midvcommon(config);
|
midvcommon(config);
|
||||||
|
|
||||||
ADC0844(config, m_adc, 0);
|
ADC0844(config, m_adc);
|
||||||
m_adc->intr_callback().set_inputline("maincpu", 3);
|
m_adc->intr_callback().set_inputline("maincpu", 3);
|
||||||
m_adc->ch1_callback().set_ioport("WHEEL");
|
m_adc->ch1_callback().set_ioport("WHEEL");
|
||||||
m_adc->ch2_callback().set_ioport("ACCEL");
|
m_adc->ch2_callback().set_ioport("ACCEL");
|
||||||
|
@ -270,7 +270,7 @@ void midxunit_state::midxunit(machine_config &config)
|
|||||||
/* serial prefixes 419, 420 */
|
/* serial prefixes 419, 420 */
|
||||||
m_midway_serial_pic->set_upper(419);
|
m_midway_serial_pic->set_upper(419);
|
||||||
|
|
||||||
adc0848_device &adc(ADC0848(config, "adc", 0));
|
adc0848_device &adc(ADC0848(config, "adc"));
|
||||||
adc.intr_callback().set(FUNC(midxunit_state::adc_int_w)); // ADC INT passed through PLSI1032
|
adc.intr_callback().set(FUNC(midxunit_state::adc_int_w)); // ADC INT passed through PLSI1032
|
||||||
adc.ch1_callback().set_ioport("AN0");
|
adc.ch1_callback().set_ioport("AN0");
|
||||||
adc.ch2_callback().set_ioport("AN1");
|
adc.ch2_callback().set_ioport("AN1");
|
||||||
|
@ -1255,7 +1255,7 @@ MACHINE_CONFIG_END
|
|||||||
void midyunit_state::term2(machine_config &config)
|
void midyunit_state::term2(machine_config &config)
|
||||||
{
|
{
|
||||||
yunit_adpcm_6bit_faster(config);
|
yunit_adpcm_6bit_faster(config);
|
||||||
ADC0844(config, m_term2_adc, 0); // U2 on Coil Lamp Driver Board (A-14915)
|
ADC0844(config, m_term2_adc); // U2 on Coil Lamp Driver Board (A-14915)
|
||||||
m_term2_adc->ch1_callback().set_ioport("STICK0_X");
|
m_term2_adc->ch1_callback().set_ioport("STICK0_X");
|
||||||
m_term2_adc->ch2_callback().set_ioport("STICK0_Y");
|
m_term2_adc->ch2_callback().set_ioport("STICK0_Y");
|
||||||
m_term2_adc->ch3_callback().set_ioport("STICK1_X");
|
m_term2_adc->ch3_callback().set_ioport("STICK1_X");
|
||||||
|
@ -8780,7 +8780,7 @@ void zombraid_state::zombraid(machine_config &config)
|
|||||||
|
|
||||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||||
|
|
||||||
adc0834_device &adc(ADC0834(config, "adc", 0));
|
adc0834_device &adc(ADC0834(config, "adc"));
|
||||||
adc.set_input_callback(FUNC(zombraid_state::adc_cb));
|
adc.set_input_callback(FUNC(zombraid_state::adc_cb));
|
||||||
|
|
||||||
m_x1->set_addrmap(0, &zombraid_state::zombraid_x1_map);
|
m_x1->set_addrmap(0, &zombraid_state::zombraid_x1_map);
|
||||||
|
@ -837,7 +837,7 @@ void zr107_state::zr107(machine_config &config)
|
|||||||
k054539_2.add_route(0, "lspeaker", 0.75);
|
k054539_2.add_route(0, "lspeaker", 0.75);
|
||||||
k054539_2.add_route(1, "rspeaker", 0.75);
|
k054539_2.add_route(1, "rspeaker", 0.75);
|
||||||
|
|
||||||
adc0838_device &adc(ADC0838(config, "adc0838", 0));
|
adc0838_device &adc(ADC0838(config, "adc0838"));
|
||||||
adc.set_input_callback(FUNC(zr107_state::adc0838_callback));
|
adc.set_input_callback(FUNC(zr107_state::adc0838_callback));
|
||||||
|
|
||||||
KONPPC(config, m_konppc, 0);
|
KONPPC(config, m_konppc, 0);
|
||||||
|
@ -125,7 +125,7 @@ void konami573_cassette_xi_device::device_add_mconfig(machine_config &config)
|
|||||||
{
|
{
|
||||||
X76F041( config, m_x76f041 );
|
X76F041( config, m_x76f041 );
|
||||||
DS2401( config, m_ds2401 );
|
DS2401( config, m_ds2401 );
|
||||||
ADC0838( config, m_adc0838, 0 );
|
ADC0838( config, m_adc0838 );
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_LINE_MEMBER(konami573_cassette_xi_device::write_line_d0)
|
WRITE_LINE_MEMBER(konami573_cassette_xi_device::write_line_d0)
|
||||||
|
Loading…
Reference in New Issue
Block a user