src/mess/drivers/dectalk.c
| r5536 | r5537 | |
| 10 | 10 | * Special thanks to leeeeee for helping figure out what the led selftest codes actually mean |
| 11 | 11 | * |
| 12 | 12 | * TODO: |
| 13 | | * * 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. |
| 14 | | * * seems more likely to be the mode problem? |
| 13 | * * DUART: I suspect the duart test fails because modes 0-6 of the duart are currently unimplemented in 68681.c |
| 14 | * * DUART needs its i/o pins connected as well: |
| 15 | 15 | * * pins IP0, IP2, and IP3 are connected to the primary serial port: |
| 16 | 16 | * * IP0 is CTS |
| 17 | 17 | * * IP2 is DSR |
| r5536 | r5537 | |
| 24 | 24 | * * OP0 is RTS |
| 25 | 25 | * * OP2 is DTR |
| 26 | 26 | * * Attach m68k interrupts properly; I suspect the DUART INT and SPC INTs are both hooked up wrong |
| 27 | | * * Figure out why status LEDS are flashing 00 FD 00 FD etc... some sort of 68k selftest DUART error? |
| 28 | | * * NICETOHAVE: figure out what all the LED error codes actually mean, as DEC didn't document them anywhere. |
| 29 | 27 | * * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit |
| 30 | 28 | * * force sync between both processors if either one pushes or pulls the fifo |
| 31 | 29 | * or the shared error/fifo flag regs... How can I actually do this? CPU_BOOST_INTERLEAVE? |
| r5536 | r5537 | |
| 35 | 33 | * * discuss and figure out how to have an external application send data to the two serial ports to be spoken |
| 36 | 34 | * |
| 37 | 35 | * LED error code list (found by experimentation and help from leeeeee): |
| 36 | * Startup Self tests: |
| 38 | 37 | * FF 00 - M68k address register check fail or data register check fail (test code at $21E) |
| 39 | 38 | * (for some data register failures the processor just spins forever and no led code is generated) |
| 40 | 39 | * FF 01 - ROM check fail @ 0x00000, rom at E8 or E22 (test code at $278) |
| r5536 | r5537 | |
| 52 | 51 | * FE 04 - RAM check fail @ 0x8c000-0x8ffff, ram at E33 or E46 |
| 53 | 52 | * FE 05 - RAM check fail @ 0x90000-0x93fff, ram at E32 or E44 |
| 54 | 53 | * FD 00 - DUART test (test code at $046C) [fails in mess] |
| 55 | | * FC 00 - TMS32010 'SPC' and DTMF 'TLC' status register test (test code at $051E) [passes in mess] |
| 54 | * FC 00 - TMS32010 'SPC' and DTMF-decoder 'TLC' status register test (test code at $051E) [passes in mess] |
| 56 | 55 | * FB 00 - DUART interrupt tests [fails in mess] |
| 57 | 56 | * Jump to $102C to skip the self tests |
| 57 | * During normal operation: |
| 58 | * D3 - ? some sort of failure |
| 59 | * FF - normal, status OK |
| 60 | * * figure out what all the other LED error codes actually mean, as DEC didn't document them anywhere. |
| 58 | 61 | *******************************************************************************/ |
| 59 | 62 | /*the 68k memory map is such: |
| 60 | 63 | 0x000000-0x007fff: E22 low, E8 high |
| r5536 | r5537 | |
| 338 | 341 | 0 x x x 1 x x 1 1 0 x x x x x x x x x * * * * x RW DUART (keep in mind that a0 is not connected) |
| 339 | 342 | 0 x x x 1 x x 1 1 1 x x x x x x x x x x x 0 0 * RW SPC flags: fifo writable (readonly, d7), spc irq suppress (readwrite, d6), fifo error status (readonly, d5), 'fifo release'/clear-tms-fifo-error-status-bits (writeonly, d1), speech initialize/clear (readwrite, d0) [see schematic sheet 4] |
| 340 | 343 | 0 x x x 1 x x 1 1 1 x x x x x x x x x x x 0 1 0? W SPC fifo write (clocks fifo) |
| 341 | | |
| 342 | 344 | 0 x x x 1 x x 1 1 1 x x x x x x x x x x x 1 0 * RW TLC flags: ring detect (readonly, d15), ring detected irq enable (readwrite, d14), answer phone (readwrite, d8), tone detected (readonly, d7), tone detected irq enable (readwrite, d6) [see schematic sheet 6] |
| 343 | 345 | 0 x x x 1 x x 1 1 1 x x x x x x x x x x x 1 1 * R TLC tone chip read, reads on bits d0-d7 only, d4-d7 are tied low; d15-d8 are probably open bus |
| 344 | 346 | | | | | | |
| r5536 | r5537 | |
| 383 | 385 | |
| 384 | 386 | static MACHINE_DRIVER_START(dectalk) |
| 385 | 387 | /* basic machine hardware */ |
| 386 | | MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2) /* Y2 20Mhz (/2) */ |
| 388 | MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2) /* E74 20MHz OSC (/2) */ |
| 387 | 389 | MDRV_CPU_PROGRAM_MAP(m68k_mem) |
| 388 | 390 | MDRV_CPU_IO_MAP(m68k_io) |
| 389 | 391 | MDRV_QUANTUM_TIME(HZ(10000)) |
| 390 | 392 | MDRV_MACHINE_RESET(dectalk) |
| 391 | | MDRV_DUART68681_ADD( "duart68681", XTAL_3_6864MHz, dectalk_duart68681_config ) /* Y3 3.6864Mhz */ |
| 393 | MDRV_DUART68681_ADD( "duart68681", XTAL_3_6864MHz, dectalk_duart68681_config ) /* Y3 3.6864MHz Xtal */ |
| 392 | 394 | |
| 393 | 395 | |
| 394 | | MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20Mhz */ |
| 396 | MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20MHz xtal */ |
| 395 | 397 | MDRV_CPU_PROGRAM_MAP(tms32010_mem) |
| 396 | 398 | MDRV_CPU_IO_MAP(tms32010_io) |
| 397 | 399 | MDRV_QUANTUM_TIME(HZ(10000)) |
| 398 | 400 | |
| 399 | 401 | /* video hardware */ |
| 400 | | MDRV_DEFAULT_LAYOUT(layout_dectalk) // hack to avoid screenless system crash |
| 402 | MDRV_DEFAULT_LAYOUT(layout_dectalk) // hack to avoid screenless system crash |
| 401 | 403 | |
| 402 | 404 | /* sound hardware */ |
| 403 | | //MDRV_SPEAKER_STANDARD_MONO("mono") |
| 404 | | //MDRV_SOUND_ADD("dectalk_snd", SPEAKER, XTAL_10Khz) |
| 405 | | //MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 405 | //MDRV_SPEAKER_STANDARD_MONO("mono") |
| 406 | //MDRV_SOUND_ADD("dectalk_snd", SPEAKER, XTAL_10KHz) /* E88 10KHz OSC */ |
| 407 | //MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 406 | 408 | |
| 409 | /* Y2 is a 3.579545 MHz xtal for the dtmf decoder chip */ |
| 407 | 410 | |
| 411 | |
| 408 | 412 | MACHINE_DRIVER_END |
| 409 | 413 | |
| 410 | 414 | |