Previous 15994 Revisions Next

r3902 Saturday 20th December, 2008 at 00:38:36 UTC by Hobie Troxell
Changed the last few hz to Hz in comments(rest are in code), and corrected a few KHz to kHz
[src/mess]messdriv.c
[src/mess/audio]dave.c mea8000.c
[src/mess/drivers]3do.c newbrain.c thomson.c
[src/mess/machine]tc8521.c thomson.c

src/mess/audio/mea8000.c
r3901r3902
111111
112112#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
113113
114/* digital filters work at 8KHz */
114/* digital filters work at 8 kHz */
115115#define F0 8096
116116
117117/* filtered output is supersampled x 8 */
r3901r3902
477477
478478
479479
480/* next sample in frame, sampling at 64 KHz */
480/* next sample in frame, sampling at 64 kHz */
481481static TIMER_CALLBACK( mea8000_timer_expire )
482482{
483483   device_config* device = (device_config*) ptr;
src/mess/audio/dave.c
r3901r3902
77
88   - pure tone
99   - sampled sounds
10   - 1kHz, 50Hz and 1Hz ints
10   - 1 kHz, 50 Hz and 1 Hz ints
1111   - external ints (int1 and int2) - not correct speed yet
1212
1313*/
r3901r3902
678678b4 = 1: Enable INT1
679679b3 = 1: Reset 1Hz interrupt latch
680680b2 = 1: Enable 1Hz interrupt
681b1 = 1: Reset 1kHz/50hz/TG latch
681b1 = 1: Reset 1kHz/50Hz/TG latch
682682b0 = 1: Enable 1kHz/50Hz/TG latch
683683*/
684684
src/mess/messdriv.c
r3901r3902
552552//   DRIVER( ti84pse )   /* 2004 TI-84 Plus Silver Edition               */
553553
554554   /* NEC */
555   DRIVER( pc88srl )   /* PC-8801mkIISR(Low res display, VSYNC 15KHz)      */
556   DRIVER( pc88srh )   /* PC-8801mkIISR(High res display, VSYNC 24KHz)      */
555   DRIVER( pc88srl )   /* PC-8801mkIISR(Low res display, VSYNC 15 kHz)      */
556   DRIVER( pc88srh )   /* PC-8801mkIISR(High res display, VSYNC 24 kHz)      */
557557
558558   /* CANTAB */
559559   DRIVER( jupiter )   /* Jupiter Ace                              */
src/mess/machine/tc8521.c
r3901r3902
6868         bit 1: test 1
6969         bit 0: test 0
7070      0x0f: RESET etc
71         bit 3: 1hz enable
72         bit 2: 16hz enable
71         bit 3: 1 Hz enable
72         bit 2: 16 Hz enable
7373         bit 1: timer reset
7474         bit 0: alarm reset
7575
r3901r3902
226226
227227   /* what happens when all are enabled? I assume they are all or'd together */
228228
229   /* 16hz enabled? */
229   /* 16 Hz enabled? */
230230    if ((rtc->registers[TC8521_RESET_REGISTER] & (1<<2))==0)
231231    {
232232      /* yes */
233233
234      /* add in state of 16hz output */
234      /* add in state of 16 Hz output */
235235      alarm_output |= (rtc->alarm_outputs & ALARM_OUTPUT_16HZ);
236236   }
237237
238238   if ((rtc->registers[TC8521_RESET_REGISTER] & (1<<3))==0)
239239   {
240240      /* yes */
241      /* add in stat of 1hz output */
241      /* add in stat of 1 Hz output */
242242      alarm_output |= ((rtc->alarm_outputs & ALARM_OUTPUT_1HZ)>>1);
243243   }
244244
r3901r3902
296296   tc8521_t *rtc = get_token(device);
297297
298298   /* Assumption how it works */
299   /* 16hz output = 16 cycles per second, 16 cycles of high-low from counter */
299   /* 16 Hz output = 16 cycles per second, 16 cycles of high-low from counter */
300300
301   /* toggle 16hz wave state */
301   /* toggle 16 Hz wave state */
302302   rtc->alarm_outputs ^= ALARM_OUTPUT_16HZ;
303303   /* set in alarm output */
304304   tc8521_set_alarm_output(device);
r3901r3902
309309   {
310310      rtc->thirty_two_hz_counter = 0;
311311
312      /* toggle 1hz output */
312      /* toggle 1 Hz output */
313313      rtc->alarm_outputs ^= ALARM_OUTPUT_1HZ;
314314      /* set in alarm output */
315315      tc8521_set_alarm_output(device);
r3901r3902
478478      {
479479         if ((data & 0x08)==0)
480480         {
481            LOG(("1hz enable\n"));
481            LOG(("1 Hz enable\n"));
482482         }
483483
484484         if ((data & 0x04)==0)
485485         {
486            LOG(("16hz enable\n"));
486            LOG(("16 Hz enable\n"));
487487         }
488488
489489         if (data & 0x02)
src/mess/machine/thomson.c
r3901r3902
4444
4545/* On the TO7 & compatible (TO7/70,TO8,TO9, but not MO5,MO6), bits are coded
4646   in FM format with a 1.1 ms period (900 bauds):
47   - 0 is 5 periods at 4.5 KHz
48   - 1 is 7 periods at 6.3 KHz
47   - 0 is 5 periods at 4.5 kHz
48   - 1 is 7 periods at 6.3 kHz
4949
5050   Moreover, a byte is represented using 11 bits:
5151   - one 0 start bit
r3901r3902
5858
5959   The computer outputs a modulated wave that is directly put on the cassette.
6060   However, the input is demodulated by the cassette-reader before being
61   sent to the computer: we got 0 when the signal is around 4.5 KHz and
62   1 when the signal is around 6.3 KHz.
61   sent to the computer: we got 0 when the signal is around 4.5 kHz and
62   1 when the signal is around 6.3 kHz.
6363*/
6464
6565#define TO7_BIT_LENGTH 0.001114
r3901r3902
7070
7171
7272/* 1-bit cassette input to the computer
73   inside the controller, two frequency filters (adjusted to 6.3 and 4.5 KHz)
73   inside the controller, two frequency filters (adjusted to 6.3 and 4.5 kHz)
7474   and a comparator demodulate the raw signal into 0s and 1s.
7575*/
7676static int to7_get_cassette ( running_machine *machine )
src/mess/drivers/3do.c
r3901r3902
4242
4343Sound:
4444- 16bit stereo sound
45- 44.1KHz sound sampling rate
45- 44.1 kHz sound sampling rate
4646- Fully support Dolby(tm) Surround Sound
4747
4848Memory:
src/mess/drivers/thomson.c
r3901r3902
338338  - AZERTY keyboard, 58-keys, French with accents
339339  - cartridge 16 KB (up to 64 KB using bank-switching),
340340    the MESS cartridge device is named -cart
341  - cassette 900 bauds (frequency signals: 0=4.5Khz, 1=6.3KHz)
341  - cassette 900 bauds (frequency signals: 0=4.5 kHz, 1=6.3 kHz)
342342    the MESS cassette device is named -cass
343343  - 1-bit internal buzzer
344344  - lightpen, with 8-pixel horizontal resolution, 1-pixel vertical
r3901r3902
10011001    . the right SHIFT key has been replaced with a BASIC key
10021002    . no caps-lock led
10031003  - the famous lightpen is optional
1004  - cassette 1200 bauds (frequency signals: 0=4.5Khz, 1=6.3KHz),
1004  - cassette 1200 bauds (frequency signals: 0=4.5kHz, 1=6.3kHz),
10051005    TO7-incompatible
10061006  - optional cartridge, up to 64 KB, incompatible with TO7,
10071007    masks the integrated BASIC ROM
src/mess/drivers/newbrain.c
r3901r3902
652652      0      _USERP      0 enables user data bus interrupt and also parallel latched data output (or centronics printer) interrupt
653653      1      ANP         1 enables ADC conversion complete interrupt and also calling indicator interrupt
654654      2      MLTMD      1 enables serial receive clock into multiplier input of DAC and signals data terminal not ready
655      3      MSPD      1 enables 50K Baud serial data rate to be obtained ie. CTC input clock of 800KHz. 0 selects xxx.692KHz
655      3      MSPD      1 enables 50K Baud serial data rate to be obtained ie. CTC input clock of 800 kHz. 0 selects xxx.692 kHz
656656      4      ENOR      1 enables serial receive clock to sound output summer, and also selects serial input from the printer port. 0 selects serial input from the comms port
657657      5      ANSW      1 enables second bank of 4 analogue inputs (voltage, non-ratiometric), ie. ch4-7, and enabled sound output, 0 selects ch03
658658      6      ENOT      1 enables serial transmit clock to sound ouput summer, and also selects serial output to the printer port. 0 selects serial output to the comms port

Previous 15994 Revisions Next


© 1998-2018 The MESS Team