Previous 15994 Revisions Next

r15116 Monday 7th May, 2012 at 14:38:55 UTC by Robbbert
VOTRTNT - hook up to the 'new' votrax device; produces horrible noise now.
[src/mess/drivers]votrtnt.c

src/mess/drivers/votrtnt.c
r15115r15116
1212*             host. In order that we can examine it, I have connected the
1313*             'terminal' so we can enter data, and see what gets sent back.
1414*             I've also connected the 'votrax' device, but it is far from
15*             complete (the phoneme-to-sample table does not exist), and
16*             therefore produces no sound. Selected phonemes would show in
17*             the error log if the status return was working properly.
15*             complete (the sounds are not understandable).
1816*
1917*             ACIA status code is set to E2 for no data and E3 for data.
2018*
r15115r15116
2624*                 are: 08, 0D, 1B, 20. I didn't investigate what the codes do.
2725*
2826*  ToDo:
29*  - Fix votrax audio device to produce sound.
30*  - Fix votrax device to perform a callback on change of status rather than
31*           having to poll it.
32*  - Allow votrax frequency to be changed via a callable routine.
27*  - Votrax device needs considerable improvement in sound quality.
3328*  - Reconnect the ACIA when serial coms become viable in MESS.
3429*
3530******************************************************************************/
r15115r15116
6358   required_device<generic_terminal_device> m_terminal;
6459   //required_device<device_t> m_acia;
6560   required_device<votrax_sc01_device> m_votrax;
66   DECLARE_READ8_MEMBER( votrtnt_acia_status_r );
67   DECLARE_READ8_MEMBER( votrtnt_acia_data_r );
68   DECLARE_WRITE8_MEMBER( votrtnt_votrax_w );
69   DECLARE_WRITE8_MEMBER( votrtnt_kbd_put );
61   DECLARE_READ8_MEMBER(votrtnt_acia_status_r);
62   DECLARE_READ8_MEMBER(votrtnt_acia_data_r);
63   DECLARE_WRITE8_MEMBER(votrtnt_kbd_put);
7064   UINT8 m_term_data;
7165   UINT8 m_term_status;
7266};
r15115r15116
8276   return m_term_data;
8377}
8478
85WRITE8_MEMBER( votrtnt_state::votrtnt_votrax_w )
86{
87   data &= 0x3f;  // intonation bits are grounded
88   //printf("%X ",data);
89   m_votrax->write(space, 0, data);
90}
9179
92
93
9480/******************************************************************************
9581 Address Maps
9682******************************************************************************/
r15115r15116
10389   //AM_RANGE(0x2001, 0x2001) AM_NOP AM_MIRROR(0xffe)//AM_DEVREADWRITE("acia_0",aciadata_r,aciadata_w)/* 6850 ACIA */
10490   AM_RANGE(0x2000, 0x2000) AM_MIRROR(0xffe) AM_READ(votrtnt_acia_status_r) AM_WRITENOP// temp testing
10591   AM_RANGE(0x2001, 0x2001) AM_MIRROR(0xffe) AM_READ(votrtnt_acia_data_r) AM_DEVWRITE(TERMINAL_TAG, generic_terminal_device, write) // temp testing
106   AM_RANGE(0x4000, 0x5fff) AM_WRITE(votrtnt_votrax_w) /* low 6 bits write to 6 bit input of sc-01-a; high 2 bits are ignored (but by adding a buffer chip could be made to control the inflection bits of the sc-01-a which are normally grounded on the tnt) */
92   AM_RANGE(0x4000, 0x5fff) AM_DEVWRITE("votrax", votrax_sc01_device, write) /* low 6 bits write to 6 bit input of sc-01-a; high 2 bits are ignored (but by adding a buffer chip could be made to control the inflection bits of the sc-01-a which are normally grounded on the tnt) */
10793   AM_RANGE(0x6000, 0x6fff) AM_ROM /* ROM in potted block */
10894ADDRESS_MAP_END
10995
r15115r15116
143129   DEVCB_DRIVER_MEMBER(votrtnt_state, votrtnt_kbd_put)
144130};
145131
146static TIMER_DEVICE_CALLBACK( votrtnt_poll_votrax )
147{
148   votrtnt_state *state = timer.machine().driver_data<votrtnt_state>();
149   UINT8 status = state->m_votrax->request();
150   //printf("%X ",status);
151   device_set_input_line(timer.machine().device("maincpu"), INPUT_LINE_IRQ0, status ? ASSERT_LINE : CLEAR_LINE);
152}
153
154132static struct votrax_sc01_interface votrtnt_votrax_interface =
155133{
156   DEVCB_NULL
134   DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0)
157135};
158136
159137/******************************************************************************
r15115r15116
175153   /* sound hardware */
176154   MCFG_SPEAKER_STANDARD_MONO("mono")
177155   MCFG_VOTRAX_SC01_ADD("votrax", 1700000, votrtnt_votrax_interface ) /* 1.70 MHz? needs verify */
178   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
156   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
179157
180158   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, votrtnt_terminal_intf)
181   MCFG_TIMER_ADD_PERIODIC("votrtnt_timer", votrtnt_poll_votrax, attotime::from_hz(70) )
182159MACHINE_CONFIG_END
183160
184161
r15115r15116
215192******************************************************************************/
216193
217194/*    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT   INIT      COMPANY                     FULLNAME                            FLAGS */
218COMP( 1980, votrtnt,   0,          0,      votrtnt,   votrtnt, 0,     "Votrax",        "Type 'N Talk", GAME_NOT_WORKING | GAME_NO_SOUND)
195COMP( 1980, votrtnt,   0,          0,      votrtnt,   votrtnt, 0,     "Votrax",        "Type 'N Talk", GAME_NOT_WORKING )
219196

Previous 15994 Revisions Next


© 1998-2018 The MESS Team