Previous 15994 Revisions Next

r5518 Friday 28th August, 2009 at 23:04:49 UTC by Jonathan Gevaryahu
[dectalk] preliminary duart hookup, still doesn't work
[src/mess/drivers]dectalk.c

src/mess/drivers/dectalk.c
r5517r5518
99*  which is invaluable for work on this driver.
1010*
1111*  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
1414*  * Figure out why status LEDS are flashing 00 FD 00 FD etc... some sort of 68k selftest DUART error?
1515*    * NICETOHAVE: figure out what all the LED error codes actually mean, as DEC didn't document them anywhere.
1616*  * Actually store the X2212 nvram's eeprom data to disk rather than throwing it out on exit
r5517r5518
1818*      or the shared error/fifo flag regs... How can I actually do this? CPU_BOOST_INTERLEAVE?
1919*      otherwise i need to have the two in some mad insane sync...
2020*  * 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?
2222*  * discuss and figure out how to have an external application send data to the two serial ports to be spoken
2323*
2424*******************************************************************************/
r5517r5518
6565/* Components */
6666
6767/* Devices */
68static 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
73static const duart68681_config dectalk_duart68681_config =
74{
75   duart_irq_handler,
76   // duart_tx,
77   NULL,
78   NULL
79};
80
6881static struct
6982{
7083UINT8 data[8]; // ? what is this for?
r5517r5518
299312    AM_RANGE(0x000000, 0x03ffff) AM_ROM AM_MIRROR(0x740000) /* ROM */
300313    AM_RANGE(0x080000, 0x093fff) AM_RAM AM_MIRROR(0x760000) /* RAM */
301314    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 */
309320ADDRESS_MAP_END
310321
311322// do we even need this below?
r5517r5518
335346
336347static MACHINE_DRIVER_START(dectalk)
337348    /* basic machine hardware */
338    MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2)
349    MDRV_CPU_ADD("maincpu", M68000, XTAL_20MHz/2) /* Y2 20Mhz (/2) */
339350    MDRV_CPU_PROGRAM_MAP(m68k_mem)
340351    MDRV_CPU_IO_MAP(m68k_io)
341352    MDRV_QUANTUM_TIME(HZ(10000))
342353    MDRV_MACHINE_RESET(dectalk)
354   MDRV_DUART68681_ADD( "duart68681", XTAL_3_6864MHz, dectalk_duart68681_config ) /* Y3 3.6864Mhz */
343355
344    MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz)
356
357    MDRV_CPU_ADD("dsp", TMS32010, XTAL_20MHz) /* Y1 20Mhz */
345358    MDRV_CPU_PROGRAM_MAP(tms32010_mem)
346359    MDRV_CPU_IO_MAP(tms32010_io)
347360    MDRV_QUANTUM_TIME(HZ(10000))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team