Previous 15994 Revisions Next

r5537 Sunday 30th August, 2009 at 05:26:25 UTC by Jonathan Gevaryahu
[dectalk] another minor comment update
[src/mess/drivers]dectalk.c

src/mess/drivers/dectalk.c
r5536r5537
1010*  Special thanks to leeeeee for helping figure out what the led selftest codes actually mean
1111*
1212*  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:   
1515*    * pins IP0, IP2, and IP3 are connected to the primary serial port:
1616*      * IP0 is CTS
1717*      * IP2 is DSR
r5536r5537
2424*      * OP0 is RTS
2525*      * OP2 is DTR
2626*  * 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.
2927*  * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit
3028*  * force sync between both processors if either one pushes or pulls the fifo
3129*      or the shared error/fifo flag regs... How can I actually do this? CPU_BOOST_INTERLEAVE?
r5536r5537
3533*  * discuss and figure out how to have an external application send data to the two serial ports to be spoken
3634*
3735* LED error code list (found by experimentation and help from leeeeee):
36*    Startup Self tests:
3837*    FF 00 - M68k address register check fail or data register check fail (test code at $21E)
3938*     (for some data register failures the processor just spins forever and no led code is generated)
4039*    FF 01 - ROM check fail @ 0x00000, rom at E8 or E22 (test code at $278)
r5536r5537
5251*    FE 04 - RAM check fail @ 0x8c000-0x8ffff, ram at E33 or E46
5352*    FE 05 - RAM check fail @ 0x90000-0x93fff, ram at E32 or E44
5453*    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]
5655*    FB 00 - DUART interrupt tests [fails in mess]
5756*    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.
5861*******************************************************************************/
5962/*the 68k memory map is such:
60630x000000-0x007fff: E22 low, E8 high
r5536r5537
3383410   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)
3393420   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]
3403430   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
3423440   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]
3433450   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
344346           |              |              |              |              |
r5536r5537
383385
384386static MACHINE_DRIVER_START(dectalk)
385387    /* 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) */
387389    MDRV_CPU_PROGRAM_MAP(m68k_mem)
388390    MDRV_CPU_IO_MAP(m68k_io)
389391    MDRV_QUANTUM_TIME(HZ(10000))
390392    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 */
392394
393395
394    MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20Mhz */
396    MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20MHz xtal */
395397    MDRV_CPU_PROGRAM_MAP(tms32010_mem)
396398    MDRV_CPU_IO_MAP(tms32010_io)
397399    MDRV_QUANTUM_TIME(HZ(10000))
398400
399401    /* 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
401403
402404    /* 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)
406408
409    /* Y2 is a 3.579545 MHz xtal for the dtmf decoder chip */
407410
411
408412MACHINE_DRIVER_END
409413
410414

Previous 15994 Revisions Next


© 1998-2018 The MESS Team