The credit card sized DM-15CC/DM-15 and the DM15L in original size are HP-15C clones offered by SwissMicros. They feature a miniUSB-RS232 command line interface for reading and writing data. Via this interface the HP-15C Simulator can exchange data with these devices.
This documentation does not distinguish between the DM-15CC, the DM-15 and the DM15L. They are all called DM15.
If you order a DM15 because of my simulator please mention that in your order at SwissMicros. For "How did you find us?" select "email@example.com".
An illustrated walkthrough of the setup procedure for Windows can be found here.
USB To Serial Driver InstallationBefore the DM15 interface can be used, a CP2102 USB to UART bridge driver must be installed on your computer. Drivers for various operating systems can be downloaded here. Recent Linux systems should come with the necessary cp210x kernel modules. The module might not be actived or loaded by default. Please see the modprobe and lsusb man pages for more details.
Simulator DM15 SupportTo enable the DM15 support on the Simulator open the Preferences dialogue and activate "DM15 Support" on the "DM15" tab. While the DM15 support is activated, the following additional menu entries are available:
- the ON pop-up menu has an additional submenu "DM15" with the two entries "Read" and "Write".
- the "File" menu in the main menu bar has two additional entries "Read DM15" and "Write DM15".
Serial Port ConfigurationStart the DM15 with C–ON (Press and hold C, then press and release ON). The display will read "
SERIAL CONSOLE". Connect the DM15 to your computer and determine the "Serial Interface Port" number the USB connection is mapped to:
Open the Windows Device Manager. In "Ports (COM & LPT)" find the entry "Silicon Labs CP210x USB to UART Bridge (COM
##)" and note the port number.
Look for a device /dev/ttyUSB*. By default, and if no other serial interface is connected, the port number should be 0.
Make sure that you are a member of the same UNIX group, usually dialout, as the tty device. Otherwise you might not be able to read from or write to the device.
- Mac OS X
The device /dev/cu.SLAB_USBtoUART does not take a port number.
FirmwareThere are three types of DM15 firmwares. Each of them provides a different number of registers:
- Standard: 64 registers
- MEM80 or M80: 128 registers
- MEM1B or M1B: 229 registers
Start the DM15 with E–ON. The firmware information is displayed as long as you hold the ON key. On the Simulator select the "Number of registers" that complies with the firmware of your DM15.
It is recommended to have the same number of registers on the HP-15C Simulator and the DM15. If the number of registers differs, it is likely that not all data can be exchanged between the two devices. The data transfer also depends on the allocation of memory. For more details on allocation of memory see "Appendix C Memory Allocation" in the HP-15C LE Owner's Handbook.
The setup is completed. You should now be able to exchange data between the DM15 and the HP-15C Simulator.
Verifying The SetupTo verify the connection start the DM15 into the serial console and connect it to your computer. On the Simulator open the ON pop-up menu and select "DM15 ▶ Read" or use the shortcut Ctrl–↑. A dialogue box titled "DM15 read" opens. Ensure that a least one of the four options is checked and click "OK". You should get a message "Data read successfully.". If you get a different message, see the Messages section below.
The following sections assume that you have successfully set up DM15 support in the HP-15C Simulator. The option "Ask for each operation" should be switched off.
First load a program, e.g. one of the examples that comes with the Simulator, into the Simulator. Then start the DM15 into the serial interface and connect it to your computer. From the ON pop-up menu select "DM15 ▶ Write" or use the shortcut Ctrl–↓. In the dialogue box titled "DM15 write" check "Program", uncheck the other options and click "OK". You should get the message "Data written successfully.".
Disconnect the DM15 from your computer and restart it or wait until the serial interfaces times out. Switch the DM15 to Program mode and press SST several times to verfiy that the program has been successfully transferred to the DM15.
To read a program from the DM15 into the HP-15C Simulator start the DM15 into the serial interface and connect it to your computer. From the ON pop-up menu select "DM15 ▶ Read". In the dialogue box titled "DM15 read" check "Program", uncheck the other options and click "OK". You should get the message "Data read successfully.".
Reading and Writing Other Data
In the dialogue box that opens when you select to read or write you can choose which data is to be exchanged between the DM15 and the Simulator. You can select any combination of program memory, data storage registers, stack or flags. An area not selected for exchange remains unchanged on the target device.
The settings are saved as default. If you do not want to be asked on every read or write operation, uncheck the option "Ask for each operation" under preferences.
Differing ConfigurationsThe HP-15C Simulator and the DM15 can be configured independently. This applies to the number of available registers, the memory allocation and all states like Complex mode, trigonometric modes etc. The memory allocation on the target device is never changed automatically, even if not all data can be transferred. This leads to the following behaviour:
A program is transferred if the target device configuration provides at least as many registers in the common pool as the program allocates. Let us assume an HP-15C Dimulator with 46 program registers and a DM-15C with the 128 register firmware and the standard layout with 110 program registers. All programs from the Simulator can be written to the DM15, but not the other way round.
Increasing the number of data storage registers on the DM15 to 100, key sequence 1 0 0 f DIM (i), reduces the number of registers in the common pool to 29. Now only simulator programs allocating up to 29 registers can be written to the DM15. Although the total number of registers on the DM15 (128) is higher than that on the Simulator (64).
- Data Storage
The data storage registers are transferred only if the target device has at least as many data storage registers as the source device. Otherwise, the error "Too many storage registers for current memory configuration." will occur. If you see this message, check the memory configuration on both devices with g MEM.
Example: The Simulator shows 19.110 0-0 and the DM15 shows 30. 99 0-0. The 19 storage registers on the Simulator can be transfered to the first 19 of the 30 registers on the DM15 without a problem. If you try to transfer data in the opposite direction, not all 30 register can be transfered and the message is shown.
Additional data storage registers on the target device remain unchanged.
The real stack can always be transferred. The complex stack can be transferred only if both the source and the target device are in Complex mode. No warning or error message is shown, if the complex stack is not transferred.
Only the flags 0 through 7 can be transferred. Flag 8, Complex mode, and flag 9, display blinking, are never transferred.
- Error when connecting via serial port #
This error occurs if no device is connected to the serial port interface configured under 'Preferences'.
- Connection timed out
After some time of inactivity (~ 60 seconds) the command line interface on the DM15 times out and switches to Run mode. Restart the DM15 with C–ON to reactivate the command line interface.
- Error while writing [reading]
An error occured while writing [reading] the DM15 memory.
Please ensure that you have installed firmware version 9 or higher on your DM15. If the problem persists, please contact me.
- Memory not initialised
The DM15 memory was not loaded completely.
- Firmware requires ## register mode. See Preferences dialogue
The DM15 firmware provides more registers than configured in the Simulator. Open the 'DM15' tab in the Preferences dialogue and select a suitable register size.
- Too many data storage registers for current memory configuration
More data storage registers are configured on the source device than on the target device.
- Unknown code '##'.
The program to be loaded contains an unknown key code.
- Program too large for current memory configuration
A program allocates more registers than are available on the target device.
- '/dev/ttyUSB#' was not recognised as a serial device
On some Linux systems '/dev/ttyUSB#' might not be recognized as a serial device.