src/mess/drivers/votrtnt.c
| r15115 | r15116 | |
| 12 | 12 | * host. In order that we can examine it, I have connected the |
| 13 | 13 | * 'terminal' so we can enter data, and see what gets sent back. |
| 14 | 14 | * 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). |
| 18 | 16 | * |
| 19 | 17 | * ACIA status code is set to E2 for no data and E3 for data. |
| 20 | 18 | * |
| r15115 | r15116 | |
| 26 | 24 | * are: 08, 0D, 1B, 20. I didn't investigate what the codes do. |
| 27 | 25 | * |
| 28 | 26 | * 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. |
| 33 | 28 | * - Reconnect the ACIA when serial coms become viable in MESS. |
| 34 | 29 | * |
| 35 | 30 | ******************************************************************************/ |
| r15115 | r15116 | |
| 63 | 58 | required_device<generic_terminal_device> m_terminal; |
| 64 | 59 | //required_device<device_t> m_acia; |
| 65 | 60 | 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); |
| 70 | 64 | UINT8 m_term_data; |
| 71 | 65 | UINT8 m_term_status; |
| 72 | 66 | }; |
| r15115 | r15116 | |
| 82 | 76 | return m_term_data; |
| 83 | 77 | } |
| 84 | 78 | |
| 85 | | WRITE8_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 | | } |
| 91 | 79 | |
| 92 | | |
| 93 | | |
| 94 | 80 | /****************************************************************************** |
| 95 | 81 | Address Maps |
| 96 | 82 | ******************************************************************************/ |
| r15115 | r15116 | |
| 103 | 89 | //AM_RANGE(0x2001, 0x2001) AM_NOP AM_MIRROR(0xffe)//AM_DEVREADWRITE("acia_0",aciadata_r,aciadata_w)/* 6850 ACIA */ |
| 104 | 90 | AM_RANGE(0x2000, 0x2000) AM_MIRROR(0xffe) AM_READ(votrtnt_acia_status_r) AM_WRITENOP// temp testing |
| 105 | 91 | 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) */ |
| 107 | 93 | AM_RANGE(0x6000, 0x6fff) AM_ROM /* ROM in potted block */ |
| 108 | 94 | ADDRESS_MAP_END |
| 109 | 95 | |
| r15115 | r15116 | |
| 143 | 129 | DEVCB_DRIVER_MEMBER(votrtnt_state, votrtnt_kbd_put) |
| 144 | 130 | }; |
| 145 | 131 | |
| 146 | | static 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 | | |
| 154 | 132 | static struct votrax_sc01_interface votrtnt_votrax_interface = |
| 155 | 133 | { |
| 156 | | DEVCB_NULL |
| 134 | DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0) |
| 157 | 135 | }; |
| 158 | 136 | |
| 159 | 137 | /****************************************************************************** |
| r15115 | r15116 | |
| 175 | 153 | /* sound hardware */ |
| 176 | 154 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 177 | 155 | 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) |
| 179 | 157 | |
| 180 | 158 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, votrtnt_terminal_intf) |
| 181 | | MCFG_TIMER_ADD_PERIODIC("votrtnt_timer", votrtnt_poll_votrax, attotime::from_hz(70) ) |
| 182 | 159 | MACHINE_CONFIG_END |
| 183 | 160 | |
| 184 | 161 | |
| r15115 | r15116 | |
| 215 | 192 | ******************************************************************************/ |
| 216 | 193 | |
| 217 | 194 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 218 | | COMP( 1980, votrtnt, 0, 0, votrtnt, votrtnt, 0, "Votrax", "Type 'N Talk", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 195 | COMP( 1980, votrtnt, 0, 0, votrtnt, votrtnt, 0, "Votrax", "Type 'N Talk", GAME_NOT_WORKING ) |
| 219 | 196 | |