The Mostek MK5065 is an 8-bit microprocessor introduced by Mostek in early 1974. The design was originally developed by Motorola for use in an Olivetti electronic calculator, and was licensed to Mostek for use in non-calculator roles. It features three sets of processor registers, allowing it to switch to an interrupt handler in a single cycle, and a wait-for-data mode that aided direct memory access. Despite a relatively low cost (for the era) of $58 in quantities of 100, the 5065 appears to have seen little use. The Fairchild F8 was introduced at about the same time, aimed at the same markets. The F8 had a number of advantages over the 5065 due to its more modern design. In June 1975, Mostek licensed the F8 under a second source arrangement. The 5065 disappeared from Mostek's 1975 catalog, which mentions only their F8, the MK3850. Still convinced that they needed a microprocessor, and learning from their experience on the 5065, Motorola began design of their Motorola 6800 almost immediately after licensing the 5065 to Mostek.
History The 5065 began as a custom PMOS CPU design by Motorola for a desktop calculator being built by Olivetti. The design effort was led by Rod Orgill and Bill Mensch, producing the 5065. Motorola's existing fabs proved unable to produce the design and they were forced to license it to Mostek under the condition they did not sell into the calculator market. Mostek launched their version in February 1974. By early 1975 it was in volume production and sold for $58 in lots from 100 to 499. In September 1974, Fairchild Semiconductor launched the Fairchild F8 with sample shipments starting the next April and full production later that year. The F8 was almost identical to the 5065 in purpose, originally designed as a calculator CPU for Olympia-Werke, a German competitor to Olivetti. The F8 had a number of design features that made it very easy to implement, with typical designs requiring only two chips to provide all the needed ROM, RAM, clock, and I/O. It also improved on the 5065 in that it was an NMOS-based chip, allowing it to be fabricated at a smaller feature size which lowered its cost and allowed it to run much faster. In June 1975, Mostek licensed the F8 design from Fairchild and brought it up on their new NMOS line. Mentions of the 5065 disappear by the time their 1975 catalog, which mentions only their version of the F8, the MK3850. Mostek aggressively lowered the price of their F8 over the next year, reaching $10 in plastic packaging by 1976.
Description
Basic design
In the early 1970s the idea of a microprocessor being used as the basis for a standalone computer was still not common, and designs of the era generally included features intended to make them easy to use in what today would be known as microcontrollers: processors that are used to control a device like a cash register or gas pump. These systems have to respond quickly to different inputs, which is often accomplished via interrupts. As this is a common operation in these settings, many designs focused on ways to improve interrupt performance or implementation. In the case of the 5065, this is accomplished by providing three separate sets of registers for the accumulator, program counter and the internal "main link" register, along with the carry flag. On the receipt of an interrupt, the processor completes the current instruction and then points to the selected set of these registers, or as were called, "levels". This allows the system to track three separate sections of code, corresponding to normal operation and two interrupt levels. External devices can raise an interrupt on two pins, INT 1 and INT 2, both of which may be turned on or off in software. So for instance, if INT 2 is enabled and triggered, the processor responds by completing the current instruction, switching to the level 2 registers, and continuing. Normal operation was level 3, which it returns to when a return-from-interrupt instruction was executed. This makes interrupt servicing very rapid because the state information is being stored automatically in dedicated registers, whereas many designs require this information to be stored out using user-written code that may take multiple cycles to complete. The same system can also be used for fast subroutine calls instead of having to store out the register contents. As the processor state is saved separately, only the return address has to be explicitly written out in code. In this case, the first 256 locations in memory, the zero page, was used as a call stack. For this to work, this area has to be implemented in some form of writable memory. The page can hold up to 128 16-bit addresses, with the current value indicated by the "pointer register", what would be known as the stack pointer on other designs. To aid direct memory access (DMA) implementations, the system included a WAIT pin that can be raised by an external device that wants to access to memory. When this signal was received, the processor would continue with the current instruction, including any required reading and writing from memory. When the instruction was complete, it would raise the DMA pin to indicate it was ready and then went into a paused state. The external device would then perform its DMA operations and then drop WAIT when it was finished. The processor would then drop the DMA pin, unpause, and pick up where it left off.
… excerpt ends here. Continue reading the full article.