Close

It pays to read the manual, carefully

A project log for CDP18S030: A Microcomputer in a Briefcase

Breathing life into a half a century old RCA COSMAC Micromonitor emulator of CDP1802 microprocessor

lauri-pirttiahoLauri Pirttiaho • 10/06/2026 at 16:23•0 Comments

In past it was common to refer to the computer communication data rates like in teletype lines, in terms of characters in a second, regardless the type of communication. The manual of the Micromonitor, when describing the terminal line communication refers to the data rates also that way, in characters per second. Modern careless reader after a quick glance may confuse that to bit rate, and wonder, how slow that can be, like 10, 30, or 120. No modern system handles that slow bit rates, but, nah!, "I can hack it!", with modern microcontroller and bit banging or configurable logic, easy piece.

And that I did, for a short while. Rather than reading, I studied the schematic, and looked at the actual bit rate. Micromonitor has a HW UART and derives the bit rate by dividing from the processor crystal frequency 2.112 MHz (What an odd frequency?!) Though there may have been some baud rate generators available, like Motorola MC14411 used in their MEK6802D5 evaluation kit and was available already in 1975, rather than using competitor's chop, RCA used their CMOS BCD divider CD4059A for generating multiple clock rates. It takes some hacking mindset and engineering ingenuity to generate with this chip three different bit rates that are standard, in this case 110, 300, and 1200 bits per second, common rates for terminal equipment at that time. That juggling also explains the strange processor clock frequency.

How the DC4059A datasheet describes the function of the divider and its configuration isn't exactly the clearest way of doing it, so it took some time to decipher the division and the rates from the schematic. The division goes in three steps. The first is inverting output fed back DFF, and the last is divide by 16 in the UART. In the middle there is the CD4059A. The rate calculation is visualized below.

The RS-232 DB-25 connector has been standard for decades with the pin numbering of the functions and the voltage level set in the EIA standard RS-232-C in 1969. Therefore this interface of the Micormonitor is compatible with the modern serial-to-USB adapter cables. The U232-P9 with DE-9 to DB-25 adapter worked just fine.

These days the 8N1 (8-bits, no parity, one stop bit) is the most commonly used, but in past it was common to use 7-bit ASCII with one of the parity modes to detect errors in transmission (over long terminal cables) and two stop bits to avoid loss of synchronization due to small differences in the clock rates of the two connected devices. The Micromonitor uses 7E2 (7-bits, even parity, 2 stop bits) for the 110 baud communication and 7E1 for 300 and 1200 baud. The slow 110 baud terminal could be a mechanical one with less accurate timing (like Teletype model 33, for which reason the Micromonitor has also the 20 mA current  loop interface) while the higher data rate terminals at the time were electronic, with clock derived from a crystal, so the loss of synchronization is less a issue with those.

With PuTTY and 1200 baud line, it became much easier to use the debugger than from the flaky keypad:

Now, with a 2 kB RAM and a working debugger, what to do next...

Discussions