SU1649526A1 - Decimal-to-binary converter - Google Patents

Decimal-to-binary converter Download PDF

Info

Publication number
SU1649526A1
SU1649526A1 SU894694735A SU4694735A SU1649526A1 SU 1649526 A1 SU1649526 A1 SU 1649526A1 SU 894694735 A SU894694735 A SU 894694735A SU 4694735 A SU4694735 A SU 4694735A SU 1649526 A1 SU1649526 A1 SU 1649526A1
Authority
SU
USSR - Soviet Union
Prior art keywords
keyboard
outputs
input
output
register
Prior art date
Application number
SU894694735A
Other languages
Russian (ru)
Inventor
Валентин Сергеевич Говоров
Владимир Константинович Маригодов
Михаил Васильевич Пузанов
Владимир Бенцианович Полинский
Сергей Николаевич Пыжов
Original Assignee
Севастопольский Приборостроительный Институт
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Севастопольский Приборостроительный Институт filed Critical Севастопольский Приборостроительный Институт
Priority to SU894694735A priority Critical patent/SU1649526A1/en
Application granted granted Critical
Publication of SU1649526A1 publication Critical patent/SU1649526A1/en

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

Изобретение относитс  к цифровой технике и может быть использовано в системах автоматики, телемеханики и вычислительной техники дл  преобразовани  чисел, задаваемых нажатием клавиш на пульте, из дес тичной системы счислени  в двоичную. Цель изобретени  - упрощение устройства и повышение его надежности. Устройство содержит клавиатуру, п ть элементов ИЛИ, регистр, блок сравнени , три счетчи-1 ка, генератор импульсов, элемент запрета, элемент И. Цель изобретени  достигаетс  за счет исключени  из состава устройства посто нных запомина- кнтих устройств с их схемами управлени . 2 ил., 1 табл. S fcThe invention relates to digital technology and can be used in automation, telemechanics and computer systems for converting the numbers specified by pressing keys on the remote from a decimal number system to a binary one. The purpose of the invention is to simplify the device and increase its reliability. The device contains a keyboard, five OR elements, a register, a comparison unit, three counters-1 ka, a pulse generator, a prohibition element, element I. The object of the invention is achieved by eliminating permanent memory devices with their control circuits from the composition of the device. 2 ill., 1 tab. S fc

Description

Изобретение относитс  к цифровой технике и может быть использовано в ч системах автоматики, телемеханики и вычислительной техники дл  преобразовани  чисел, задаваемых нажатием клавиш на пульте, из дес тичной системы счислени  в цифровой двоичный код.The invention relates to digital technology and can be used in h automation systems, telemechanics and computer technology for converting the numbers specified by pressing keys on the remote from a decimal number system to a digital binary code.

Цель изобретени  - упрощение устройства и повышение его надежности.The purpose of the invention is to simplify the device and increase its reliability.

На фиг. 1 приведена функциональна  схема устройства; на фиг. 2 - эпюры сигналов, по сн ющие его работу .FIG. 1 shows a functional diagram of the device; in fig. 2 - signal plots explaining his work.

Устройство содержит клавиатуру 1, регистр 2, второй 3, первый 4 и треThe device contains a keyboard 1, register 2, second 3, first 4 and three

тий 5 счетчики, первый 6, второй 7, третий 8, четвертый 9 и п тый 10 элементы ИЛИ, элемент 11 задержки, элемент 12 запрета, элемент И 13, генератор 14 импульсов и блок 15 сравнени .5 counters, first 6, second 7, third 8, fourth 9 and fifth 5 OR elements, delay element 11, prohibition element 12, AND element 13, pulse generator 14 and comparison block 15.

Клавиатура 1 предназначена дл  задани  числа в дес тичной системе счислени  путем последовательного их нажати . Ее дев ть выходов от клавиш 1.0-1.9 по закону одной декады кода 8-4-2-1 подключены к входам первого, второго, третьего и четвертого элементов ИЛИ.Keyboard 1 is designed to set the number in the decimal number system by pressing them sequentially. Its nine outputs from the keys 1.0–1.9, according to the law of one decade, of code 8–4–2–1 are connected to the inputs of the first, second, third, and fourth elements OR.

Счетчик 5 предназначен дл  формировани  числа в коде 8-4-2-1, эквива3Counter 5 is designed to form a number in code 8-4-2-1, equivalent to 3

лентног) числу в дес тичной системе счислени , задаваемого на клавиатурa tape number in the decimal number system specified on keyboards

Устройство работает следующим образом .The device works as follows.

Первоначально на клавиатуре 1 нажимаетс  клавиша R, чем достигаетс Initially, on the keyboard 1, the R key is pressed, which is achieved

формирование импульса UR (фиг, 2), Этот импульс устанавливает элементы устройства в исходное состо ние. Затем последовательно нажимаютс  клавиши в соответствии с требуемым числом в дес тичной системе счислени , например 9781, т.е. ,the formation of a pulse UR (Fig 2). This pulse sets the elements of the device to the initial state. Then, the keys are sequentially pressed in accordance with the required number in the decimal numbering system, for example, 9781, i.e. ,

Сигналы от информационных клавиш поступают на соответствующие входы первого 6, второго 7, третьего 8 и четвертого 9 элементов ИЛИ, как это показано в таблице. Единица в этой таблице означает, что на соответствующий вход i-то элемента ИЛИ поступает сигнал с выхода j-й клавиши (единица находитс  на пересечении 1-го элемента и j-й клавиши).The signals from the information keys arrive at the corresponding inputs of the first 6, second 7, third 8 and fourth 9 elements OR, as shown in the table. The unit in this table means that the corresponding input of the i-th element OR the signal from the j-th key output (the unit is located at the intersection of the 1st element and the j-th key).

При нажатии дев той клавиши на блоке 1 формируетс  импульс 11-, который поступает на п тый вход элемента ИЛИ 6 и на второй вход элемента ИЛИ 9, проходит через эти элемен ты и поступает на первый и четверты информационные входы регистра 2, че достигаетс  запись в первые четыре разр да регистра 2 числа 1001,When the ninth key is pressed on block 1, a pulse 11- is formed, which is fed to the fifth input of the element OR 6 and to the second input of the element OR 9, passes through these elements and enters the first and fourth information inputs of the register 2, then the record in the first four bits of the register 2 are the numbers 1001,

Импульс U проходит через элемен ИЛИ 10 на вход элемента 11 задержки в котором задерживаетс  на врем  записи числа в регистр 2, С выхода элемента 11 задержки снимаетс  импульс U , который подводитс  к второму входу элемента 12 запрета.и, так как сигнал запрета на втором ег входе в момент отсутствует, по ступает на вход сдвига регистра 2, чем достигаетс  сдвиг содержимого регистра 2 на четыре разр да влево.The pulse U passes through the element OR 10 to the input of the delay element 11 which is delayed by the time the number is written to the register 2. From the output of the delay element 11, the pulse U is removed, which is supplied to the second input of the prohibition element 12 and since the inhibit signal on the second er the input is absent at the moment; it enters the register shift 2, which results in a shift of the contents of register 2 by four bits to the left.

Импульс с выхода элемента 12 увеличивает содержимое счетчика 4 на единицу.The pulse from the output of the element 12 increases the content of the counter 4 by one.

После нажати  дев той клавиши нажимают седьмую клавишу, затем вось- мую, а затем первую клавишу и описанный процесс повтор етс . Так как после нажати  дев той клавиши последо вательно нажимают клавиши восьмую, седьмую и первую, то с соответствующего выхода клавиатуры прследовате но снимаютс  импульсы Ug, U7 и U., (фиг. 2). Временной интервал между смежным нажатием клавиш значительно превышает врем  работы устройства.After pressing the nine key, the seventh key is pressed, then the eighth key, and then the first key and the described process is repeated. Since after pressing the ninth key, the eighth, seventh and first keys are pressed successively, the pulses Ug, U7 and U. are removed from the corresponding keyboard output (Fig. 2). The time interval between adjacent keystrokes is much longer than the device operation time.

Поэтому временные оси на графиках разрываютс , что показано точками. После нажати  последней клавиши (применительно к рассматриваемому примеру - первой) в регистре 2 оказываетс  записано число 9781 в двоично-дес тичном коде (UDQ), т.е. число 1001 0111 1000 0001, а в счетчике 4 - количество разр дов набранного числа в дес тичной системе счислени  (UCT). Наличие в соответствующем разр де регистра 2 и счетчика 4 единицы на графиках обозначено вертикальным отрезком, а нул  - точкой. Симвот- лами шиш обозначено количество разр дов этого регистра и счетчика.Therefore, the time axes on the graphs are broken, as indicated by dots. After pressing the last key (as applied to the considered example - the first), the register 2 contains the number 9781 in the binary-decimal code (UDQ), i.e. the number is 1001 0111 1000 0001, and in the counter 4 - the number of bits of the dialed number in the decimal number system (UCT). The presence in the corresponding register of register 2 and counter 4 units on the graphs is indicated by a vertical segment, and zero - by a point. The symbols shish denotes the number of bits of this register and counter.

00

5five

00

5 five

5five

00

5five

00

Счетчик 4 совместно с элементом И 13 предназначен дл  формировани  сиг- н 1 запрета, если количество разр де набираемого числа в дес тичной сиеiеме счислени  превышает допустимое .Counter 4, together with element 13, is intended to form a prohibition signal 1 if the number of bits of the dialed number in the decimal number exceeds the allowable one.

После нажати  клавиши младшего разр да числа в дес тичной системе счислени  нажимают клавишу S. С соответствующего выхода клавиатуры снимаетс  импульс Uj, который поступает на вход генератора 14 и запускает его. С выхода генератора 14 снимаютс  кратковременные импульсы U, которые поступают на счетные входы счетчика 3 и счетчика 5. В момент времени, когда содержимое счетчика 5 становитс  равным содержимому регистра 2, с выхода блока 15 сравнени  снимаетс  импульс U ,е-, который поступает на генератор 14 и останавливает его. Таким образом, к моменту формировани  импульса U содержимое счетчика 3 в цифровом двоичном коде соответствует числу в дес тичной системе счислени , каждый разр д которого набран на клавиатуре путем последовательного нажати  клавиш на нем,After pressing the low-order key of the number in the decimal number system, press the S key. A pulse Uj is taken from the corresponding keyboard output, which is fed to the input of the generator 14 and starts it. Short-time pulses U are taken from the output of generator 14, which arrive at the counting inputs of counter 3 and counter 5. At the time when the contents of counter 5 become equal to the contents of register 2, a pulse U is removed from the output of comparison block 15, which is fed to the generator 14 and stops him. Thus, by the time U is generated, the contents of counter 3 in the digital binary code correspond to the number in the decimal number system, each digit of which is typed on the keyboard by successively pressing keys on it,

Если на клавиатуре ошибочно набрано число в дес тичной системе счислени  с количеством разр дов, превышающим максимально возможное, на которое рассчитано устройство (N), то в момент нажати  клавиши NMQli;O разр да содержимое счетчика 4 становитс  равным N.AQ(tc, и с выхода элемента И 13 снимаетс  сигнал, который поступает на первый вход элемента 12 запрета, импульс U с выхода элемента 11 через него не проходит.If the keyboard mistakenly dials a number in the decimal number system with the number of bits exceeding the maximum possible for which the device is designed (N), then at the moment the NMQli key is pressed; The discharge digit 4 is equal to N.AQ (tc, and the signal from the output of the element 13 is removed, which is fed to the first input of the prohibition element 12, the pulse U from the output of the element 11 does not pass through it.

Claims (1)

Формула изFormula of 5five обрarr 16495261649526 Устройство дл  преобразовани  чисел из дес тичной1 в двоичную систе- му счислени , содержащее клавиатуру, первый, второй, третий и четвертый элементы ИЛИ, элемент запрета и регистр, первый информационный .вход которого через первый элемент ИЛИ соединен с первым, третьим, п тым, седьмым и дев тым выходами клавиатуры, второй - через второй элемент ИЛИ с третьим, четвертым, седьмым и восьмым выходами клавиатуры , третий - через третий элемент ИЛИ с п тым, шестым, седьмым и восьмым выходами клавиатуры, четвертый - через четвертый элемент ИЛИ с дев тым и дес тым выходами клавиатуры, вход сброса регистра соединен с двенадцатым выходом клавиатуры, отличающеес  тем, что, с целью упрощени  устройства и повышени  его надежности, в него введены три счетчика , блок сравнени , элемент И, элемент задержки, генератор импульсовA device for converting numbers from decimal1 to binary numbering system, comprising a keyboard, first, second, third and fourth OR elements, a prohibition element and a register, the first information input of which is connected through the first OR element to the first, third, fifth, the seventh and ninth keyboard outputs, the second through the second element OR with the third, fourth, seventh and eighth keyboard outputs, the third through the third element OR with the fifth, sixth, seventh and eighth keyboard outputs, the fourth through the fourth element OR nine The fifth and tenth keyboard outputs, the register reset input is connected to the twelfth keyboard output, characterized in that, in order to simplify the device and increase its reliability, three counters, a comparison unit, the And element, a delay element, a pulse generator are entered into it. е т е н и   и п тый элемент ИЛИ, входы которого соединены с первого по дес тый выходами клавиатуры, выход п того элемене та ИЛИ через элемент задержки соединен с вторым входом элемента запрета, выход которого соединен со счетным входом первого счетчика и входом сдвига регистра, выходы которого соединеныthe third element OR, whose inputs are connected to the first to ten keyboard outputs, the output of the first OR element, is connected to the second input of the prohibition element, the output of which is connected to the counting input of the first counter and the register shift input. whose outputs are connected Ю с входами элемента И, выход которого соединен с первым входом элемента запрета, выходы регистра соединены с входами первой группы блока сравнени , выход которого соединен с пер )5 вым входом генератора импульсов, второй вход которого соединен с одиннадцатым выходом клавиатуры, входы сброса первого, второго и третьего счетчиков соединены с двенадцатым выходомYu with the inputs of the element And whose output is connected to the first input of the prohibition element, the outputs of the register are connected to the inputs of the first group of the comparison unit, the output of which is connected to the first 5 input of the pulse generator, the second input of which is connected to the eleventh keyboard output the second and third counters are connected to the twelfth exit 20 клавиатуры, выход генератора импульсов соединен со счетными входами второго и третьего счетчиков, выходы второго счетчика  вл ютс  информационными выходами устройства, выходы треть-20 of the keyboard, the output of the pulse generator is connected to the counting inputs of the second and third counters, the outputs of the second counter are information outputs of the device, the outputs of the third 25 его счетчика соединены с входами второй группы блока сравнени .25 of its counter is connected to the inputs of the second group of the comparator unit. 16495261649526
SU894694735A 1989-05-19 1989-05-19 Decimal-to-binary converter SU1649526A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU894694735A SU1649526A1 (en) 1989-05-19 1989-05-19 Decimal-to-binary converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU894694735A SU1649526A1 (en) 1989-05-19 1989-05-19 Decimal-to-binary converter

Publications (1)

Publication Number Publication Date
SU1649526A1 true SU1649526A1 (en) 1991-05-15

Family

ID=21449199

Family Applications (1)

Application Number Title Priority Date Filing Date
SU894694735A SU1649526A1 (en) 1989-05-19 1989-05-19 Decimal-to-binary converter

Country Status (1)

Country Link
SU (1) SU1649526A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ОСТ 11.340.909-80. Микросхемы интегральные полупроводниковые серий 131, К131, 155, К155, 158, К158: Руководство по применению, ч. 1, с.227. Говоров B.C., Семь нинов В.И. Принципы построени радиоэлектронной аппаратуры на интегральных микросхемах, 1978, с. 57. *

Similar Documents

Publication Publication Date Title
US4139864A (en) Security system for a solid state device
US4048621A (en) Coding system for an alarm system and the like
US4441095A (en) Code translator
US4118783A (en) Digital grade averager
SU1649526A1 (en) Decimal-to-binary converter
US3518660A (en) Encoder
SU1187161A1 (en) Modulo multiplying device
SU1659996A1 (en) Information input device
JPS592934B2 (en) Niyuuriyokusouchi
SU1403055A1 (en) Information input device
SU1532923A1 (en) Device for addition and subtraction of numbers by modulo
SU1493994A1 (en) Haar function generator
US4044398A (en) System for interfacing keyboard-operated apparatus with electrical data signals
SU1730614A1 (en) Device for conversion of numbers
SU1206784A1 (en) Device for generating and storing modulo 3 residues
SU1756881A1 (en) Modulo arithmetic unit
SU1451690A1 (en) Modulo-m adding and subtracting device
SU1667055A1 (en) Device for modulo m multiplication
SU432487A1 (en) CONVERTER BINDING-DECIMAL CODE TO UNITARY CODE
SU1211714A1 (en) Information input device
SU888103A1 (en) Pulse-number code-to-range indicator code converter
SU1388850A1 (en) Device for modulo p addition and subtraction of numbers
SU1734212A1 (en) Device for computing of modulo @@@+1 reminder
SU1282109A1 (en) Information input device
SU801252A1 (en) Counter