Previous 15994 Revisions Next

r3132 Monday 1st September, 2008 at 08:42:15 UTC by Jonathan Gevaryahu
Add Votrax PSS skeleton driver
[src/mess]mess.mak messdriv.c
[src/mess/drivers]votrpss.c*

src/mess/messdriv.c
r3131r3132
924924   DRIVER( newbraia )
925925   DRIVER( newbraiv )
926926
927   /* Votrax */
928//   DRIVER( votrtnt ) /* Votrax Type-N-Talk */
929   DRIVER( votrpss ) /* Votrax Personal Speech System */
930
927931/****************Games*******************************************************/
928932   /* Computer Electronic */
929933   DRIVER( mk1 )      /* Chess Champion MK I                        */
src/mess/mess.mak
r3131r3132
446446   $(MESSOBJ)/ut88.a \
447447   $(MESSOBJ)/vc4000.a \
448448   $(MESSOBJ)/veb.a \
449   $(MESSOBJ)/votrax.a \
449450   $(MESSOBJ)/vtech.a \
450451   $(MESSOBJ)/shared.a \
451452
r3131r3132
12871288   $(MESS_VIDEO)/newbrain.o \
12881289   $(MESS_MACHINE)/adc080x.o
12891290
1291$(MESSOBJ)/votrax.a: \
1292   $(MESS_DRIVERS)/votrpss.o \
1293
12901294#-------------------------------------------------
12911295# layout dependencies
12921296#-------------------------------------------------
src/mess/drivers/votrpss.c
r0r3132
1/******************************************************************************
2*
3*  Votrax Personal Speech System Driver
4*  By Jonathan Gevaryahu AKA Lord Nightmare
5*  with help from Kevin 'kevtris' Horton
6*  Special thanks to Professor Nicholas Gessler for loaning several PSS units
7*
8*  The votrax PSS was sold from around 35th week of 1982 until october, 1990 (LONG product life)
9
10<kevtris> timer0 = baud clock
11<kevtris> timer1 = pitch (duty cycle output to modify RC)
12<kevtris> timer2 = volume (duty cycle output to control trans. gate which does vol. control)
13<kevtris> portb: pin 6 thru pin 13 of parallel port
14<kevtris> portc 0 = NC, 1 = GND, 2 = pin 5, 3 = /RXINTEN, 4 = pin 15, 5 = pin 14 thru inverter, 6 = 8910 enable, 7 = from pin 4 thru inverter (I believe that's for the parallel port)
15<kevtris> porta: pin 16 thru 23 of parallel port
16<kevtris> that's the 8255
17<kevtris> on the AY-3-8910:
18<kevtris> IOA0-A5 = phoneme #
19<kevtris> IOA6 = strobe (SC-01)
20<kevtris> IOA7 = vochord control, 0 = off, 1 = on
21<kevtris> IOB0-IOB7 = dip switches
22<kevtris> there ya go, complete IO port map
23<LordNLptp> cool :)
24<kevtris> I pinned the IO to the serial port from the 8251 but I don't think it's too useful
25<LordNLptp> eh, its useful
26<kevtris> I drew out the schematic for the analog section
27<LordNLptp> oh that will be useful
28<kevtris> but I didn't draw out the digital part, just made an I/O and memory map but I can't find them
29<LordNLptp> i also see the ay is running at 2mhz
30<kevtris> sounds about right
31<kevtris> got it
32<kevtris> I drew out the clocking section too
33<kevtris> 8MHz xtal
34<kevtris> 4MHz for the Z80
35<kevtris> 2MHz for the 8253 and '8910
36<kevtris> then the dividers also generate the system reset signals for the 8251
37<kevtris> and a periodic IRQ
38<LordNLptp> on the z80?
39<LordNLptp> ok how does that work?
40<kevtris> IRQ rate is umm
41<kevtris> 122Hz
42<kevtris> (8MHz / 65536)
43<kevtris> oh the 8251 is not reset by the counters
44<kevtris> it just takes a positive reset off an inverter that resets the counters
45<kevtris> PIT2 is gated by 8MHz / 256
46<kevtris> PIT1 is gated by 8MHz / 4096
47<kevtris> PIT0 is not gated
48<kevtris> (i.e. it always runs)
49<LordNLptp> oh boy, this is sounding more fun by the minute
50<kevtris> aaand your luck is about to run out
51<kevtris> that's all I got
52<LordNLptp> thats good enough, saved me a lot of work
53<kevtris> but that's everything you need
54<LordNLptp> yeah
55
56*  (driver structure copied from vtech1.c)
57******************************************************************************/
58
59/* the following is needed for making mess not crash immediately on startup due to a bug involving systems which have absolutely no display whatsoever */
60#define SCREENLESS_BROKEN 1
61
62/* Core includes */
63#include "driver.h"
64
65/* Components */
66//#include "sound/ay8910.h"
67//#include "sound/votrax.h"
68//#include "machine/8255ppi.h"
69//#include "machine/pit8253.h"
70//#include "machine/msm8251.h"
71
72/* Devices */
73
74
75/******************************************************************************
76 Address Maps
77******************************************************************************/
78
79/* Note: Expansion memory is dynamically mapped in machine/vtech1.c */
80
81static ADDRESS_MAP_START(z80_mem, ADDRESS_SPACE_PROGRAM, 8)
82    ADDRESS_MAP_UNMAP_HIGH
83    AM_RANGE(0x0000, 0x3fff) AM_ROM /* main roms (in potted module) */
84    AM_RANGE(0x4000, 0x7fff) AM_NOP   /* open bus/space for expansion rom (reads as 0xFF) */
85    AM_RANGE(0x8000, 0x8fff) AM_RAM   /* onboard memory (2x 6116) */
86    AM_RANGE(0x9000, 0xbfff) AM_NOP   /* open bus (space for memory expansion, checked by main roms, will be used if found)*/
87    AM_RANGE(0xc000, 0xdfff) AM_ROM /* 'personality rom', containing self-test code and optional user code */
88    AM_RANGE(0xe000, 0xffff) AM_NOP   /* open bus (space for more personality rom, not normally used) */
89ADDRESS_MAP_END
90
91static ADDRESS_MAP_START(z80_io, ADDRESS_SPACE_IO, 8)
92   ADDRESS_MAP_GLOBAL_MASK(0xff)
93   AM_RANGE(0x00, 0xff) AM_NOP /* temporary */
94   //AM_RANGE(0x00, 0x03) AM_READWRITE(8255ppi_r, 8255ppi_w)
95   //AM_RANGE(0x04, 0x3f) AM_MIRROR (0x00, 0x03)
96   //AM_RANGE(0x40, 0x41) AM_READWRITE(msm8251_r, msm8251_w)
97   //AM_RANGE(0x42, 0x7f) AM_MIRROR (0x40, 0x41)
98   //AM_RANGE(0x80, 0x83) AM_READWRITE(pit8253_r, pit8253_w)
99   //AM_RANGE(0x84, 0xbf) AM_MIRROR (0x80, 0x83)
100   //AM_RANGE(0xc0, 0xc3) AM_READWRITE(ay8910_r, ay8910_W)
101   //AM_RANGE(0xc4, 0xff) AM_MIRROR (0xc0, 0xc3)
102ADDRESS_MAP_END
103
104
105/******************************************************************************
106 Input Ports
107******************************************************************************/
108
109static INPUT_PORTS_START(votrpss)
110   PORT_START("DSW1")
111   PORT_DIPNAME( 0x07, 0x00, "Baud Rate" )   PORT_DIPLOCATION("SW1:1,2,3")
112   PORT_DIPSETTING(    0x00, "9600" )
113   PORT_DIPSETTING(    0x01, "4800" )
114   PORT_DIPSETTING(    0x02, "2400" )
115   PORT_DIPSETTING(    0x03, "1200" )
116   PORT_DIPSETTING(    0x04, "600" )
117   PORT_DIPSETTING(    0x05, "300" )
118   PORT_DIPSETTING(    0x06, "150" )
119   PORT_DIPSETTING(    0x07, "75" )
120   PORT_DIPNAME( 0x08, 0x00, "Serial Handshaking" )   PORT_DIPLOCATION("SW1:4")
121   PORT_DIPSETTING(    0x00, "RTS/CTS" )
122   PORT_DIPSETTING(    0x08, "XON/XOFF" )
123   PORT_DIPNAME( 0x10, 0x00, "Parity bit behavior" )   PORT_DIPLOCATION("SW1:5") /* note: only firmware 3.C (1984?) and up handle this bit; on earlier firmwares, its function is 'unused' */
124   PORT_DIPSETTING(    0x00, "Bit 8 ignored/zeroed" )
125   PORT_DIPSETTING(    0x10, "Bit 8 treated as data" )
126   PORT_DIPNAME( 0x20, 0x20, "Startup Message" )   PORT_DIPLOCATION("SW1:6")
127   PORT_DIPSETTING(    0x00, DEF_STR ( Off ) )
128   PORT_DIPSETTING(    0x20, DEF_STR ( On ) )
129   PORT_DIPNAME( 0x40, 0x00, "Default Communications Port" )   PORT_DIPLOCATION("SW1:7")
130   PORT_DIPSETTING(    0x00, "Serial/RS-232" )
131   PORT_DIPSETTING(    0x40, "Parallel" )
132   PORT_DIPNAME( 0x80, 0x00, "Self Test Mode" )   PORT_DIPLOCATION("SW1:8")
133   PORT_DIPSETTING(    0x00, DEF_STR ( Off ) )
134   PORT_DIPSETTING(    0x80, DEF_STR ( On )  )
135INPUT_PORTS_END
136
137
138/******************************************************************************
139 Audio Initialisation
140******************************************************************************/
141
142#ifdef SCREENLESS_BROKEN
143static VIDEO_START( votrpss )
144{
145}
146 
147static VIDEO_UPDATE( votrpss )
148{
149    return 0;
150}
151#endif
152
153/******************************************************************************
154 Machine Drivers
155******************************************************************************/
156
157static MACHINE_DRIVER_START(votrpss)
158    /* basic machine hardware */
159    MDRV_CPU_ADD("main", Z80, XTAL_8MHz/2)  /* 4.000 Mhz, verified */
160    MDRV_CPU_PROGRAM_MAP(z80_mem, 0)
161    MDRV_CPU_IO_MAP(z80_io, 0)
162    MDRV_INTERLEAVE(1)
163
164    /* video hardware */
165    // PSS has no video hardware
166#ifdef SCREENLESS_BROKEN
167    MDRV_SCREEN_ADD("main", RASTER)
168    MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
169    MDRV_SCREEN_SIZE(640, 480)
170    MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479)
171    MDRV_PALETTE_LENGTH(4)
172    MDRV_SCREEN_REFRESH_RATE(30)
173 
174    MDRV_VIDEO_START(votrpss)
175    MDRV_VIDEO_UPDATE(votrpss)
176#endif
177
178    /* sound hardware */
179   //MDRV_SPEAKER_STANDARD_MONO("mono")
180   //MDRV_SOUND_ADD("ay1", AY8910, XTAL_8MHz/4) /* 2.000 Mhz, verified */
181   //MDRV_SOUND_CONFIG(ay8910_config)
182   //MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
183   //votrax goes here too
184
185   /* printer */
186   //MDRV_DEVICE_ADD("printer", PRINTER)
187
188MACHINE_DRIVER_END
189
190
191
192/******************************************************************************
193 ROM Definitions
194******************************************************************************/
195
196ROM_START(votrpss)
197    ROM_REGION(0xe000, "main", 0)
198    /* old logo PSS, version 3.A (1982), selftest 3.0? (1982) */
199    //ROM_LOAD("u-2.3.A.bin",   0x0000, 0x2000, NO_DUMP )) /* 3.A 1982 */
200    //ROM_LOAD("u-3.3.A.bin",   0x2000, 0x2000, NO_DUMP )) /* 3.A 1982 */
201    //ROM_LOAD("u-4.3.0.bin", 0xc000, 0x2000, NO_DUMP )) /* 3.0? */
202
203    /* old logo PSS, version 3.B (late 82/early83), selftest 3.0? (1982) */
204    //ROM_LOAD("u-2.3.B.bin",   0x0000, 0x2000, NO_DUMP )) /* 3.B 1983? */
205    //ROM_LOAD("u-3.3.B.bin",   0x2000, 0x2000, NO_DUMP )) /* 3.B 1983? */
206    //ROM_LOAD("u-4.3.0.bin", 0xc000, 0x2000, NO_DUMP )) /* 3.0? */
207
208    /* old or new logo PSS, Version 3.C (1984?), selftest 3.1 (1985) */
209    ROM_LOAD("u-2.1985.bin",   0x0000, 0x2000, CRC(410c58cf) SHA1(6e181e61ab9c268e3772fbeba101302fd40b09a2)) /* 3.C 1984? */
210    ROM_LOAD("u-3.1985.bin",   0x2000, 0x2000, CRC(1439492e) SHA1(46af8ccac6fdb93cbeb8a6d57dce5898e0e0d623)) /* 3.C 1984? */
211    ROM_LOAD("u-4.100985.bin", 0xc000, 0x2000, CRC(0b7c4260) SHA1(56f0b6b1cd7b1104e09a9962583121c112337984)) /* 3.1 10/09/85 */
212
213    /* new logo PSS, Version 3.C* (1988), selftest 3.1 (1985) (the 3.C version here is probably different as it has a 1988 datecode, and it may have fixed the ram test bug. chip is soldered in making dumping difficult. note that the 1988 pss does NOT have the module potted!) */
214    //ROM_LOAD("u-2.090788.bin", 0x0000, 0x2000, NO_DUMP )) /* 3.C* 09/07/88 */
215    //ROM_LOAD("u-3.unmarked.bin",   0x2000, 0x2000, NO_DUMP )) /* 3.C* 1988? may match the 1984 one */
216    //ROM_LOAD("u-4.100985.bin", 0xc000, 0x2000, CRC(0b7c4260) SHA1(56f0b6b1cd7b1104e09a9962583121c112337984)) /* 3.1 10/09/85 */
217ROM_END
218
219
220
221/******************************************************************************
222 System Config
223******************************************************************************/
224static SYSTEM_CONFIG_START(votrpss)
225// write me!
226SYSTEM_CONFIG_END
227
228
229/******************************************************************************
230 Drivers
231******************************************************************************/
232
233/*    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT   INIT CONFIG      COMPANY                     FULLNAME                            FLAGS */
234COMP( 1983, votrpss,   0,          0,      votrpss,   votrpss, 0,   votrpss,   "Votrax",        "Personal Speech System",                        GAME_NOT_WORKING )
235

Previous 15994 Revisions Next


© 1998-2018 The MESS Team