@@ -60,11 +60,11 @@ Mephisto III program module:
60
60
- DM74LS373N (latch)
61
61
- HCF4556BE (chip select?)
62
62
63
- ESB II interface (via module slot):
63
+ ESB II board interface (via module slot):
64
64
- PCB label: DH 5000 00 111 01
65
65
- CD4001, 3*74373, MDP1603-331G (resistor array)
66
66
67
- ESB 6000 interface (via external port):
67
+ ESB 6000 board interface (via external port):
68
68
- PCB label: DH 5000 00 111 12
69
69
- TC4081, TC4082, TC4017, 74373, 74374
70
70
@@ -92,7 +92,7 @@ hardware is completely different, based on a 68000.
92
92
#include " machine/cdp1852.h"
93
93
#include " machine/clock.h"
94
94
#include " machine/sensorboard.h"
95
- #include " sound/dac .h"
95
+ #include " sound/spkrdev .h"
96
96
#include " video/pwm.h"
97
97
98
98
#include " speaker.h"
@@ -112,7 +112,7 @@ class brikett_state : public driver_device
112
112
brikett_state (const machine_config &mconfig, device_type type, const char *tag) :
113
113
driver_device (mconfig, type, tag),
114
114
m_maincpu (*this , " maincpu" ),
115
- m_irq_clock (*this , " nmi_clock " ),
115
+ m_irq_clock (*this , " irq_clock " ),
116
116
m_extport (*this , " extport" ),
117
117
m_board (*this , " board" ),
118
118
m_display (*this , " display" ),
@@ -144,7 +144,7 @@ class brikett_state : public driver_device
144
144
optional_device<sensorboard_device> m_board;
145
145
required_device<mephisto_display1_device> m_display;
146
146
optional_device<pwm_display_device> m_led_pwm;
147
- required_device<dac_1bit_device > m_dac;
147
+ required_device<speaker_sound_device > m_dac;
148
148
optional_ioport_array<4 +2 > m_inputs;
149
149
150
150
emu_timer *m_speaker_off;
@@ -173,7 +173,7 @@ class brikett_state : public driver_device
173
173
void esb6_w (u8 data);
174
174
int esb6_r ();
175
175
176
- TIMER_CALLBACK_MEMBER (speaker_off) { m_dac->write (0 ); }
176
+ TIMER_CALLBACK_MEMBER (speaker_off) { m_dac->level_w (0 ); }
177
177
};
178
178
179
179
@@ -241,8 +241,8 @@ u8 brikett_state::sound_r()
241
241
// port 1 read enables the speaker
242
242
if (!machine ().side_effects_disabled ())
243
243
{
244
- m_dac->write (1 );
245
- m_speaker_off->adjust (attotime::from_usec ( 25 ));
244
+ m_dac->level_w (1 );
245
+ m_speaker_off->adjust (attotime::from_ticks ( 8 , m_maincpu-> clock () ));
246
246
}
247
247
248
248
return 0xff ;
@@ -503,7 +503,7 @@ void brikett_state::mephistoj(machine_config &config)
503
503
504
504
// sound hardware
505
505
SPEAKER (config, " speaker" ).front_center ();
506
- DAC_1BIT (config, m_dac).add_route (ALL_OUTPUTS, " speaker" , 0.25 );
506
+ SPEAKER_SOUND (config, m_dac).add_route (ALL_OUTPUTS, " speaker" , 0.5 );
507
507
}
508
508
509
509
void brikett_state::mephisto (machine_config &config)
0 commit comments