HOME

TheInfoList



OR:

The Elektronika MK-52 (russian: Электро́ника МК-52) is an RPN-
programmable calculator Programmable calculators are calculators that can automatically carry out a sequence of operations under control of a stored computer programming, program. Most are Turing complete, and, as such, are theoretically general-purpose computers. Howe ...
manufactured in the
Soviet Union The Soviet Union,. officially the Union of Soviet Socialist Republics. (USSR),. was a transcontinental country that spanned much of Eurasia from 1922 to 1991. A flagship communist state, it was nominally a federal union of fifteen national ...
from 1983 to 1992 at the Quasar and Kvadr plants in Ukraine. It belongs to the third generation of Soviet programmable calculators. Its original selling price was 115
rubles The ruble (American English) or rouble (Commonwealth English) (; rus, рубль, p=rublʲ) is the currency unit of Belarus and Russia. Historically, it was the currency of the Russian Empire and of the Soviet Union. , currencies named ''rub ...
. The MK-52 is a backwards compatible improvement to the Elektronika MK-61, the main changes being the addition of an internal non-volatile EEPROM module for permanent data storage, a diagnostic slot, and a slot for separately sold ROM modules. The
machine code In computer programming, machine code is any low-level programming language, consisting of machine language instructions, which are used to control a computer's central processing unit (CPU). Each instruction causes the CPU to perform a ve ...
and functionality of the MK-52 and MK-61 calculators were extensions of the earlier MK-54, B3-34, and
B3-21 Elektronika B3-21 (Cyrillic: Электроника Б3-21) was the first Soviet programmable calculator. It was released in 1977 and was sold initially for 350 rubles (190 in 1980-81, and just 80 rubles at late 1981). For comparison, 120 ruble ...
Elektronika Elektronika, also spelt Electronika and Electronica (russian: Электроника, "Electronics"), is the brand name used for many different electronic products built by factories belonging to the Soviet Ministry of Electronic Industry, incl ...
calculators. The MK-52 is the only calculator known to have internal storage in the form of an EEPROM module. As with many Soviet calculators, the MK-52 has a number of undocumented functions. In November 1988, the MK-52 went into space on the
Soyuz TM-7 Soyuz TM-7 was a crewed Soyuz spaceflight to Mir.The mission report is available here: http://www.spacefacts.de/mission/english/soyuz-TM7.htm It launched on 26 November 1988, at 15:49:34, and was the start of the fourth long duration expedition t ...
spacecraft, where it could have been used as a backup to the onboard computers.


Architecture

The MK-52 has 105 locations of volatile program memory, an internal EEPROM module (with 512 bytes of memory), and 15 7-byte registers. It uses four AA-size battery cells or can be plugged into a power adapter. It has a relatively dim, ten-digit ИЛЦ2-12/8Л green
vacuum fluorescent display A vacuum fluorescent display (VFD) is a display device once commonly used on consumer electronics equipment such as video cassette recorders, car radios, and microwave ovens. A VFD operates on the principle of cathodoluminescence, roughly ...
; these ten digits are apportioned into an 8 digit mantissa and a 2 digit exponent. The MK-52 has an expansion port to which various
ROM Rom, or ROM may refer to: Biomechanics and medicine * Risk of mortality, a medical classification to estimate the likelihood of death for a patient * Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac * ...
modules can be attached. Its system clock speed is approximately 75 kHz (derived from a К745ГФ3-2 four-phase clock generator chip), and it weighs approximately 400 grams. The MK-52 is the first Soviet micro-calculator with non-volatile memory; this is provided by a КР1601РР1 EEPROM, with a capacity of 4 kilobits and capable of 10,000 rewrites, ensuring security for programs and working memory when powered off. This memory is capable of storing up to 512 1-byte program words (or the contents of 72 7-byte registers) and exchanging its contents with the calculator's
RAM Ram, ram, or RAM may refer to: Animals * A male sheep * Ram cichlid, a freshwater tropical fish People * Ram (given name) * Ram (surname) * Ram (director) (Ramsubramaniam), an Indian Tamil film director * RAM (musician) (born 1974), Dutch * ...
. The calculator is fully compatible with the second-generation models (B3-34 and MK-54), using the same command system and machine codes. On average, a program that takes all 105 steps of program memory and 15 registers on the MC-52 will be equivalent in capability to approximately 140-150 steps and 18 registers on the B3-34. Additionally, the MC-52 has an extended set of commands that can allocate integer and fractional parts of numbers, search for absolute and maximum values of numbers, and perform certain logical operations.


ROM

In addition, you can connect an external
ROM Rom, or ROM may refer to: Biomechanics and medicine * Risk of mortality, a medical classification to estimate the likelihood of death for a patient * Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac * ...
which is a memory expansion unit with stored games and mathematical programs, produced by the manufacturer, that constitute the user library. Manufacturers have produced 4 types of
ROM Rom, or ROM may refer to: Biomechanics and medicine * Risk of mortality, a medical classification to estimate the likelihood of death for a patient * Rupture of membranes, a term used during pregnancy to describe a rupture of the amniotic sac * ...
cartridges, three of them containing various mathematical functions, and one, the BRP-4, containing game programs: BRP-2 "Astro" (Russian: БРП-2 "Астро"), with a set of programs for navigational tasks, information about which was published in issue 12, of 1988, of the Russian-language monthly magazine '' Морском сборнике'' (''Marine Digest''); BRP-3 (Russian: БРП-3), containing 60 programs for solving mathematical problems. In 1988, 15,200 units of this ROM were manufactured, and were sold at a price of 16 rubles; BRP-4 (Russian: БРП-4) was produced in 1989, containing game programs; GRP "Geo". Another expansion port was used for diagnostics during manufacture; this port could also be used to connect the calculator to external peripherals.


Basic operations

The MK-52 has two main modes of operation: automatic mode and programming mode. General calculations and operations are performed in automatic mode, while programs are fed as input in programming mode. The keystroke sequence switches the MK-52 to automatic mode, while switches it to programming mode. Manual calculations in automatic mode are in accordance with
Reverse Polish Notation Reverse Polish notation (RPN), also known as reverse Łukasiewicz notation, Polish postfix notation or simply postfix notation, is a mathematical notation in which operators ''follow'' their operands, in contrast to Polish notation (PN), in whi ...
logic. For example, to evaluate 2+3, the following keystrokes are required: + + + .


Bitwise binary operations

The MK-52 is fully capable of performing Boolean operations on
binary Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two digits (0 and 1) * Binary function, a function that takes two arguments * Binary operation, a mathematical operation that ta ...
numbers. The following example demonstrates the OR
logical operation In logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. They can be used to connect logical formulas. For instance in the syntax of propositional logic, the binary ...
on the binary numbers 111000 and 100001: Binary numbers are input into the calculator as hexadecimal numbers prepended by an 8. First, the operator must divide the numbers into groups of four digits, adding leading zeros if necessary, e.g. splitting 111000 into groups of four gives 0011 and 1000. The equivalent hexadecimal values of these two four-digit binary numbers are 3 and 8, respectively, which equal hexadecimal 38. Similarly, 100001 is equivalent to hexadecimal 21. So, the numbers 8.38 and 8.21 are entered into the MK-52 and the OR operation is performed on them. The OR operation is achieved by pressing . The result displayed should be 8.39, which translates into binary 0011 and 1001, and, hence, the binary number 111001, which is the result. The following list details the MK-52's graphical representation of hexadecimal numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -, L, C, Г, E, (blank). Normal hexadecimal representation is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.


Programming

The MK-52's programming commands are typed into the MK-52 in programming mode and are then executed. The MK-52 is fully capable of being programmed to manage memory and to use both conditional and unconditional branching. In programming mode, the screen displays information about the program in memory, represented by two hexadecimal-digit operation codes. For example, if 10 01 0E 03 is displayed, then this means that 0E is stored at program step 00, 01 is stored at program step 01, 10 is stored at program step 02, and the machine is prompting for data to be input, to be stored at program step 03.


Saving to EEPROM

Before entering a program to
volatile memory Volatile memory, in contrast to non-volatile memory, is computer memory that requires power to maintain the stored information; it retains its contents while powered on but when the power is interrupted, the stored data is quickly lost. Volatile ...
with the intention of saving this program to EEPROM memory, the EEPROM program space to be saved to must be cleared first, which clears the volatile memory as well as the selected area of the EEPROM memory. Each program step requires 1
byte The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable unit ...
of memory and each data register requires 7 bytes of memory. When clearing, reading, or writing to the EEPROM memory, the address and range are specified by a six-digit number, preceded by a non-zero number, in automatic mode: e.g. 1aaaadd specifies that dd bytes are to be stored starting at memory address aaaa. A two-position data/program switch controls whether data (from the registers) or program memory is transferred; a three-position switch is used to select read, write, and clear operations.


Additional information

The Eketronika MK-52 originally sold for 115
rubles The ruble (American English) or rouble (Commonwealth English) (; rus, рубль, p=rublʲ) is the currency unit of Belarus and Russia. Historically, it was the currency of the Russian Empire and of the Soviet Union. , currencies named ''rub ...
. It was produced in a variety of colorways, including black and grey, turquoise and blue, white and grey, and orange. As typical for Soviet electronics, technical schematics were provided for the MK-52 when it was purchased, facilitating user modification and repair of the machine.


Error message

When an error was encountered on the machine, the display produced a message similar to the English word "error". The word, written in this fashion, cut down on the number of display segments used to display the error message; however, this spelling, read as Cyrillic, would instead be pronounced "eggog".


Games

There is a host of games available for the MK-52. The MK-52's undocumented functions tend to be heavily used in the games due to their ability to make unusual calculations and produce specialized displays. A simple example of the modification of the display is accomplished by the repeated squaring of (and ignoring error messages).


Use in outer space

In November 1988, the MK-52 went into space on the
Soyuz TM-7 Soyuz TM-7 was a crewed Soyuz spaceflight to Mir.The mission report is available here: http://www.spacefacts.de/mission/english/soyuz-TM7.htm It launched on 26 November 1988, at 15:49:34, and was the start of the fourth long duration expedition t ...
spacecraft, where it could have been used to calculate the trajectory of landing in the event of an onboard computer failure.


Bugs

There is currently only 1 known bug in the MK-52: the MAX function returns zero if one of its two arguments is zero.


References

{{Reflist


External links


Russian to English translation of the MK-52's keyboard



Sergei Frolov's "Soviet Calculators Collection"

Website detailing programmable calculators





Alfred Klomp's page on "Hacking the MK-61"








easy programming on the MK-61 and MK-52.
MK-54


Emulators


Here you can download an emulator of all Soviet Programmable Calculators



Sources

Elektronika programmable calculators