CDP18S652: Memory & Tape

The emulation of the CDP18S652 is probably not aligned with the real board. This is due to the fact that I don't have a copy of the specifications. What is emulated in Emma 02 is my best guess based on the other memory boards and the MCDS specification which use the CDP18S652.

The CDP18S652 board includes:

To define a system using the CDP18S652 select 'CDP18S652 Memory & Tape' from one of the CARD Choice boxes.

To specify the RAM or ROM location, content files and/or inhibit function press the CARD x button and the CDP18S652 Setup window will open. The CDP18S652 has one 1 KB RAM and three 8 KB ROM banks. RAM location can be any 1K block. ROM start location can be selected as either 0 or hex 8000, i.e. ROM memory runs from hex 0-5FFF or hex 8000-DFFF.

Memory inhibit possibilities depend on the start location.

Note that the defined RAM or ROM should not overlap with any other defined RAM or ROM in any of the other cards, if this does happen Emma 02 will give a warning (CARD button will turn red and a message will appear in the setup window). Even if warnings are issued the configuration might run in Emma 02 however the board in the highest CARD will override the memory type of lower boards.

Multiple configurations using the CDP18S652 can be loaded (CDP18S693 MCDS, CDP18S694 MCDS, MS2000 - FDC or MS2000- HD), see also Configurations.

Real Cassette

For details on how to use a real cassette player connected to a PC and Emma 02 please see the chapter: Real Cassette Support

Wave Files

The easiest and fastest way use .wav file in the Microboard System emulator is by making sure both options 'Turbo LOAD/SAVE' and 'Auto LOAD/SAVE' are checked, this should be the default setting when the Emma 02 Emulator is started for the first time. Depending on which type you choose, i.e. automatic or manual please follow the instructions below.

Support for two cassettes is available for use in the Tape Editor and Assembler which are available in the CDP18694 MCDS configuration.

Note that we have not tried to use any of the saved wav files on a real Microboard System. If you have/need that option, please let me know and we can do some trouble shooting on this. Changing the wave file settings might impact the usability of the wav files on a real Microboard System, see also below.

Auto LOAD/SAVE

Default settings, to use this make sure 'Auto LOAD/SAVE' is checked.

When using one of the MCDS configurations:

To load a .wav file into the Microboard System, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' button. Depending on what type of loading is needed, either use PLOAD or DLOAD (and return) from within BASIC3 or R or C from within the UT62. Both command need to be given in the Microboard System emulator window after which the cassette PLAY button should go green.

To save a .wav file from the Microboard System, Select a .wav file in the Emma 02 window by selecting the 'Cassette' button. Depending on what type of loading is needed, either use PSAVE or DSAVE (and return) from within BASIC3 or W from within the UT62. Both command need to be given in the Microboard System emulator window and the cassette REC button should go red.

When using one of the MS2000 configurations:

To convert a .wav file to MicroDos, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' push button. Start MicroDos (L or B0) and give a TAPED command (TAPED #TR filename). MicroDos will ask for the tape number. To start the actual conversion press return twice and the cassette PLAY button should go green.

To convert from MicroDos to a .wav file, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' push button. Start MicroDos (L or B0) and give a TAPED command (TAPED filename #TW). MicroDos will ask for the tape number. To start the actual conversion press return twice and the cassette REC button should go red.

For save, load and conversions make sure a .wav file is selected in the Emma 02 window before using the save and load instructions otherwise the Microboard System emulator will hang on the conversions, PLOAD, C or R (until you manually start a .wav file) or with a conversion to cassette PSAVE or W the wav sound will not be written to any file.

Manual LOAD/SAVE

To use this make sure 'Auto LOAD/SAVE' is NOT checked.

When using one of the MCDS configurations:

To load a .wav file into the Microboard System, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' button. Press play and after that as soon as possible give a load command on the Microboard System.

To save a .wav file from the Microboard System, Select a .wav file in the Emma 02 window by selecting the 'Cassette' button after that Press the dark red recording button and give a save command in the Microboard System.

When using one of the MS2000 configurations:

To convert a .wav file to MicroDos, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' push button. Start MicroDos (L or B0) and give a TAPED command (TAPED #TR filename). MicroDos will ask for the tape number. To start the actual conversion press return then press the play and again return.

To convert from MicroDos to a .wav file, start the Emma 02 emulator and then the Microboard System emulator (start button on Microboard System tab). Select a .wav file in the Emma 02 window by selecting the 'Cassette' push button. Start MicroDos (L or B0) and give a TAPED command (TAPED filename #TW). MicroDos will ask for the tape number. To start the actual conversion press return then press the dark red recording button and again return.

Turbo LOAD/SAVE

When Turbo LOAD/SAVE is selected the emulator will increase speed when a wav file is played to allow faster LOAD and SAVE possibility in the emulator. The speed of the Turbo LOAD/SAVE can be changed; default is 15 MHz, which works ok on both my desktop and laptop. Too high values will not run ok on slower PCs as all CPU power will be used by the emulator. On my vista desktop vista limits CPU usage to 50% max but on my windows 2000 laptop CPU usage gets up to 100% and can possibly hang the laptop for the duration of the LOAD or SAVE command.

Wave File Settings

Via the 'Settings' drop down menu select 'Wav File and Real Cassette Settings' to change the wave file settings used for saving or loading a '.wav' file. . The following subchapters describe applicable settings in more detail. Settings for saving to a file are the 'Wave volume', 'Bit Rate' and 'Bits per sample', setting for loading a wav file are the 'Wav file conversion' and 'Reversed Polarity'. The 'Cassette conversion' and 'Input Channel' are only used for Real Cassette loading.

Wave volume

1 to 15 (where 15 is the loudest)

Bit Rate

11025, 22050, 44100 or 88200 (samples per second)

Bits per sample

8 or 16

Wav file conversion

Two conversion types can be used:
1. Amplitude: where the signal is converted to a 1 on positive amplitude and a 0 on a negative amplitude.
2. Sinus: where the signal is converted to a 1 on an upward sinus and a 0 on a downward sinus

Default this is set to 'Amplitude' which works for all my wav files. Depending on the emulated computer this might need to be changed if loading does not work or gives tape errors.

Reversed Polarity

Switch converted signal polarity (1->0 and 0->1) as described for conversion types above.