src/mess/drivers/dectalk.c
| r5517 | r5518 | |
| 9 | 9 | * which is invaluable for work on this driver. |
| 10 | 10 | * |
| 11 | 11 | * TODO: |
| 12 | | * * Attach 2681(M68681 clone?) DUART |
| 13 | | * * Attach m68k interrupts properly |
| 12 | * * Fix hookup of duart, I suspect there's an address line shift problem, either that or modes 0-6 of the duart being unimplemented prevents this from working at all. |
| 13 | * * Attach m68k interrupts properly; i suspect the duart int is hooked up wrong |
| 14 | 14 | * * Figure out why status LEDS are flashing 00 FD 00 FD etc... some sort of 68k selftest DUART error? |
| 15 | 15 | * * NICETOHAVE: figure out what all the LED error codes actually mean, as DEC didn't document them anywhere. |
| 16 | 16 | * * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit |
| r5517 | r5518 | |
| 18 | 18 | * or the shared error/fifo flag regs... How can I actually do this? CPU_BOOST_INTERLEAVE? |
| 19 | 19 | * otherwise i need to have the two in some mad insane sync... |
| 20 | 20 | * * Hook the 'output' FIFO up to the 10khz sampling rate generator xtal using SPEAKER |
| 21 | | * * emulate/simulate the MT8060 dtmf decoder as an input device |
| 21 | * * emulate/simulate the MT8060 dtmf decoder as a 16-key input device? |
| 22 | 22 | * * discuss and figure out how to have an external application send data to the two serial ports to be spoken |
| 23 | 23 | * |
| 24 | 24 | *******************************************************************************/ |
| r5517 | r5518 | |
| 65 | 65 | /* Components */ |
| 66 | 66 | |
| 67 | 67 | /* Devices */ |
| 68 | static void duart_irq_handler(const device_config *device, UINT8 vector) |
| 69 | { |
| 70 | cputag_set_input_line_and_vector(device->machine, "maincpu", 6, HOLD_LINE, vector); |
| 71 | }; |
| 72 | |
| 73 | static const duart68681_config dectalk_duart68681_config = |
| 74 | { |
| 75 | duart_irq_handler, |
| 76 | // duart_tx, |
| 77 | NULL, |
| 78 | NULL |
| 79 | }; |
| 80 | |
| 68 | 81 | static struct |
| 69 | 82 | { |
| 70 | 83 | UINT8 data[8]; // ? what is this for? |
| r5517 | r5518 | |
| 299 | 312 | AM_RANGE(0x000000, 0x03ffff) AM_ROM AM_MIRROR(0x740000) /* ROM */ |
| 300 | 313 | AM_RANGE(0x080000, 0x093fff) AM_RAM AM_MIRROR(0x760000) /* RAM */ |
| 301 | 314 | AM_RANGE(0x094000, 0x0943ff) AM_READWRITE(led_sw_nvr_read, led_sw_nv_write) AM_MIRROR(0x763C00) /* LED array and Xicor X2212 NVRAM */ |
| 302 | | //AM_RANGE(0x094001, 0x094001) AM_READWRITE(x2212_read, x2212_write) AM_MIRROR(0x763C00) /* Xicor X2212 NVRAM (SRAM) */ |
| 303 | | //AM_RANGE(0x094201, 0x094201) AM_READWRITE(x2212_recall, x2212_store) AM_MIRROR(0x763C00) /* Xicor X2212 NVRAM (EEPROM commands) */ |
| 304 | | //AM_RANGE(0x098000, 0x09bfff) AM_READWRITE(1) AM_MIRROR(0x760000) /* DUART */ |
| 305 | | AM_RANGE(0x09C000, 0x09C001) AM_READWRITE(m68k_spcflags_r, m68k_spcflags_w) AM_MIRROR(0x761FF8) /* SPC flags reg */ |
| 306 | | AM_RANGE(0x09C002, 0x09C003) AM_WRITE(m68k_infifo_w) AM_MIRROR(0x761FF8) /* SPC fifo reg */ |
| 307 | | AM_RANGE(0x09C004, 0x09C005) AM_READWRITE(m68k_tlcflags_r, m68k_tlcflags_w) AM_MIRROR(0x761FF8) /* telephone status flags */ |
| 308 | | AM_RANGE(0x09C006, 0x09C007) AM_READ(m68k_tlc_dtmf_r) AM_MIRROR(0x761FF8) /* telephone dtmf read */ |
| 315 | AM_RANGE(0x098000, 0x09801f) AM_DEVREADWRITE8( "duart68681", duart68681_r, duart68681_w, 0xff) AM_MIRROR(0x763FE0) /* DUART */ |
| 316 | AM_RANGE(0x09C000, 0x09C001) AM_READWRITE(m68k_spcflags_r, m68k_spcflags_w) AM_MIRROR(0x763FF8) /* SPC flags reg */ |
| 317 | AM_RANGE(0x09C002, 0x09C003) AM_WRITE(m68k_infifo_w) AM_MIRROR(0x763FF8) /* SPC fifo reg */ |
| 318 | AM_RANGE(0x09C004, 0x09C005) AM_READWRITE(m68k_tlcflags_r, m68k_tlcflags_w) AM_MIRROR(0x763FF8) /* telephone status flags */ |
| 319 | AM_RANGE(0x09C006, 0x09C007) AM_READ(m68k_tlc_dtmf_r) AM_MIRROR(0x763FF8) /* telephone dtmf read */ |
| 309 | 320 | ADDRESS_MAP_END |
| 310 | 321 | |
| 311 | 322 | // do we even need this below? |
| r5517 | r5518 | |
| 335 | 346 | |
| 336 | 347 | static MACHINE_DRIVER_START(dectalk) |
| 337 | 348 | /* basic machine hardware */ |
| 338 | | MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2) |
| 349 | MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2) /* Y2 20Mhz (/2) */ |
| 339 | 350 | MDRV_CPU_PROGRAM_MAP(m68k_mem) |
| 340 | 351 | MDRV_CPU_IO_MAP(m68k_io) |
| 341 | 352 | MDRV_QUANTUM_TIME(HZ(10000)) |
| 342 | 353 | MDRV_MACHINE_RESET(dectalk) |
| 354 | MDRV_DUART68681_ADD( "duart68681", XTAL_3_6864MHz, dectalk_duart68681_config ) /* Y3 3.6864Mhz */ |
| 343 | 355 | |
| 344 | | MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) |
| 356 | |
| 357 | MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20Mhz */ |
| 345 | 358 | MDRV_CPU_PROGRAM_MAP(tms32010_mem) |
| 346 | 359 | MDRV_CPU_IO_MAP(tms32010_io) |
| 347 | 360 | MDRV_QUANTUM_TIME(HZ(10000)) |