RU1784963C - Code translator from gray to parallel binary one - Google Patents

Code translator from gray to parallel binary one

Info

Publication number
RU1784963C
RU1784963C SU904872816A SU4872816A RU1784963C RU 1784963 C RU1784963 C RU 1784963C SU 904872816 A SU904872816 A SU 904872816A SU 4872816 A SU4872816 A SU 4872816A RU 1784963 C RU1784963 C RU 1784963C
Authority
RU
Russia
Prior art keywords
input
inputs
output
trigger
elements
Prior art date
Application number
SU904872816A
Other languages
Russian (ru)
Inventor
Зикаф Мидхатович Гафаров
Ренат Мидгатович Гафаров
Original Assignee
Опытно-Конструкторское Бюро Микроэлектроники И Информационно-Измерительной Техники При Башкирском Государственном Университете Им.40-Летия Октября
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 Опытно-Конструкторское Бюро Микроэлектроники И Информационно-Измерительной Техники При Башкирском Государственном Университете Им.40-Летия Октября filed Critical Опытно-Конструкторское Бюро Микроэлектроники И Информационно-Измерительной Техники При Башкирском Государственном Университете Им.40-Летия Октября
Priority to SU904872816A priority Critical patent/RU1784963C/en
Application granted granted Critical
Publication of RU1784963C publication Critical patent/RU1784963C/en

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

Изобретение относитс  к устройствам автоматики и вычислительной техники. Цель изобретени  - повышение достоверности и быстродействи  преобразовател . Преобразователь содержит регистр 1 с разр дами 2-5, двухразр дный счетчик 6. дешифратор 7, триггер 8, элементы И 9-13, элемент И- ИЛИ 14-17. элементы ИЛИ 18,19, элементы задержки 20-22. 1 ил.The invention relates to automation devices and computer technology. The purpose of the invention is to increase the reliability and speed of the converter. The converter contains register 1 with bits 2-5, two-bit counter 6. decoder 7, trigger 8, elements 9-13, element AND-OR 14-17. elements OR 18.19, delay elements 20-22. 1 ill.

Description

Г77G77

7 7

2828

2323

Изобретение относитс  к устройствам автоматике и вычислительной техники, а бо- лее конкретно - к преобразовател м кодов, и может быть использовано, например, в преобразовател х перемещение-код по- движных звеньев роботов.The invention relates to automation and computer devices, and more particularly, to code converters, and can be used, for example, in moving-code converters of mobile parts of robots.

Известен преобразователь кода Гре  в параллельный двоичный код 1, содержа- щий регистр, триггер, информационные и управл ющие элементы И, элемент задерж- ки и распределитель импульсов. Импульсы кода Гре , поступающего младшими разр дами вперед, подаютс  на счетный вход триггера, определ ющего четность данного кода. При этом в регистр записываетс  на- чальное состо ние триггера, а также состо ние триггера, вызванные поступлением на его счетный вход импульсов, определ ющих младшие разр ды кода Гре . После поступлени  на счетный вход импульса старшего разр да кода Гре  с одного из выходов распределител  подаетс  последний импульс Если в момент его подачи триггер находитс  в единичном состо нии, то на выходе управл ющего элемента И возникает импульс, по- ступающий одновременно на счетные входы всех триггеров регистра, инвертиру  их состо ни . Если же триггер-находитс  в О, инвертирование содержимого регистра не происходитThe Gre converter to parallel binary code 1 is known. It contains a register, a trigger, information and control elements AND, a delay element, and a pulse distributor. The pulses of the Gre code, coming in the lower order, are fed to the counting input of a trigger that determines the parity of the code. In this case, the initial state of the trigger, as well as the state of the trigger, caused by the arrival of pulses that determine the lower bits of the Gre code, are entered into the register. After a high-order code pulse is received at the counting input of the Gre code, one of the outputs of the distributor gives the last pulse. If at the moment of its supply the trigger is in a single state, then a pulse appears at the output of the control element And, which arrives simultaneously at the counting inputs of all the triggers register, inverting their state. If the trigger is in O, the contents of the register are not inverted

Особенностью работы данного устройства  вл етс  то, что исходное состо ние триггера безразлично, а перед преобразованием происходит (за один такт) установка младшего разр да регистра в то же состо - ние, что и у триггера.A feature of the operation of this device is that the initial state of the trigger is indifferent, and before the conversion (in one clock cycle), the least significant bit of the register is set to the same state as the trigger.

Недостаток данного устройства заключаетс  в его низком быстродействии. Дл  преобразовани  m чисел, каждый из которых представл ет в n-разр дном коде Гре , требуетс  не менее m(n+3) тактов (с учетом такта выдачи информации с регистра).The disadvantage of this device is its low speed. To convert m numbers, each of which is represented in an n-bit Gre code, at least m (n + 3) clock cycles are required (taking into account the clock output of the information from the register).

Известен преобразователь кода Гре  в параллельный двоичный код 2, содержащий регистр, триггер, информационные и управл ющие элементы И, элемент задержки и распределитель импульсов. Особенностью схемы данного устройства  вл етс  то, что установочный вход триггера и установочные входы всех разр дов регистра, включа  установочный вход его младшего разр да, соединены вместе и подключены к соответствующему выходу распределител  импульсов. В итоге перед преобразованием каждого очередного числа в коде Гре  про- изводитс  установка триггера и всех разр дов регистра, включа  его младший разр д, в исходное состо ние О.A Gre converter to parallel binary code 2 is known, comprising a register, a trigger, information and control elements AND, a delay element, and a pulse distributor. A feature of the circuit of this device is that the trigger installation input and the installation inputs of all bits of the register, including the installation input of its lowest bit, are connected together and connected to the corresponding output of the pulse distributor. As a result, before converting each successive number in the Gre code, the trigger and all bits of the register, including its least significant bit, are set to the initial state O.

Недостатком данного устройства  вл етс  также его низкое быстродействие, Дл The disadvantage of this device is its low speed, for

преобразовани  m чисел, каждый из которых представлен в n-разр дном коде Гре , требуетс  m(n+1)тактовconverting m numbers, each of which is represented in an n-bit Gre code, requires m (n + 1) clock cycles

Наиболее близким изобретением к предлагаемому по технической сущности и схемному решению  вл етс  преобразователь кода Гре  в параллельный двоичный код, описанный в 3. Такой преобразователь ,, выбранный в качестве прототипа, содержит счетчик, выходы разр дов которого соединены с соответствующими информационными входами дешифратора, триггер, пр мой выход которого соединен с первыми входами информационных элементов И и первого управл ющего элемента И, выход которого через первый элемент задержки соединен с информационным входом младшего разр да регистра и первым входом первого элемента ИЛИ, второй вход которого объединен с установочным входом младшего разр да регистра, выход первого элемента ИЛИ соединен с установочными входами всех разр дов регистра, кроме младшего, выходы информационных элементов И соединены с информационными входами соответствующих разр дов регистра , кроме младшего, инверсный выход триггера соединен с первым входом второго управл ющего элемента И, выход которого соединен с входом второго элемента задержки , выход которого подключен к первому входу второго элемента ИЛИ, выход которого соединен со вторым входом первого элемента ИЛИ, пр мые и инверсные выходы разр дов регистра подключены к одним из сходов элементов И соответственно первой и второй групп, выходы которых соединены с первыми и вторыми входами соответствующих элементов ИЛИ, выходы которых  вл ютс  выходами преобразовател , другие входы элементов И первой и второй групп подключены к выходам соответствующих управл ющих элементов И, а третьи входы указанных элементов И подключены к выходу блокирующего триггера, установочный вход которого подключен к установочному входу преобразовател , разрешающие элементы И, первые входы которых подключены к соответствующим выходам дешифратора, вторые входы - к выходу третьего элемента ИЛИ. а выходы соединены со вторыми входами соответствующих информационных и управл ющих элементов И, и блокирующий элемент И, первый и второй входы и выход которого подключены соответственно к тактовому входу преобразовател , пр мому выходу блокирующего триггера и первому входу третьего элемента ИЛИ, второй вход и выход которого соединены соответственно с тактовым входомThe closest invention to the proposed technical essence and circuit solution is a Gre code to parallel binary code converter described in 3. Such a converter, selected as a prototype, contains a counter whose bit outputs are connected to the corresponding information inputs of the decoder, a trigger, the direct output of which is connected to the first inputs of the information elements AND and the first control element And, the output of which through the first delay element is connected to the information input its register bit and the first input of the first OR element, the second input of which is combined with the installation input of the lowest register bit, the output of the first OR element is connected to the installation inputs of all bits of the register, except the lower one, the outputs of the information elements AND are connected to the information inputs of the corresponding bits register, in addition to the younger, the inverse trigger output is connected to the first input of the second control element AND, the output of which is connected to the input of the second delay element, the output of which is connected to the first the input of the second OR element, the output of which is connected to the second input of the first OR element, the direct and inverse outputs of the register bits are connected to one of the outputs of the AND elements, respectively, of the first and second groups, the outputs of which are connected to the first and second inputs of the corresponding OR elements, the outputs which are the outputs of the converter, the other inputs of the AND elements of the first and second groups are connected to the outputs of the corresponding AND control elements, and the third inputs of the specified AND elements are connected to the output of the blocking trigger and, adjusting the input of which is connected to the mounting input transducer allowing AND gates, the first inputs of which are connected to respective outputs of the decoder, the second input - to the output of the third OR gate. and the outputs are connected to the second inputs of the corresponding information and control elements AND, and the blocking element AND, the first and second inputs and the output of which are connected respectively to the clock input of the converter, the direct output of the blocking trigger and the first input of the third OR element, the second input and output of which connected respectively to the clock input

преобразовател  и входом третьего элемента задержки, выход которого подключен к счетному входу счетчика и информационному входу блокирующего триггера, при этом вход и выход четвертого элемента задержки подключены соответственно к информационному входу преобразовател  и счетному входу триггера.the converter and the input of the third delay element, the output of which is connected to the counting input of the counter and the information input of the blocking trigger, while the input and output of the fourth delay element are connected respectively to the information input of the converter and the counting input of the trigger.

Алгоритм преобразовани  кодов, реализованный в данном устройстве, требует предварительной установки младшего разр да регистра в то же состо ние, что и со- сто ние триггера. В процессе такой установки, дл  предотвращени  несанкционированной выдачи кода на выход устройства , осуществл етс  блокировка элементов И первой и второй групп. А это требует, в свою очередь, посто нной поддержки в процессе преобразовани  кодов высокого потенциала на п тых и шестых входах этих элементов И. Очевидно, что незначительные сбои в работе блокирующего триггера, блокирующего элемента И и третьего элемента задержки могут приводить к нестабильной работе элементов И первой и второй групп. Это, в конечном счете, снижает устойчивость в работе преобразовател , а следовательно, надежность (достоверность ) преобразовани  кодов.The code conversion algorithm implemented in this device requires the preliminary setting of the low order of the register to the same state as the state of the trigger. During this installation, to prevent unauthorized issuing of a code to the output of the device, the elements of the first and second groups are blocked. And this, in turn, requires constant support in the process of converting high potential codes at the fifth and sixth inputs of these elements I. Obviously, minor malfunctions in the operation of the blocking trigger, the blocking element And, and the third delay element can lead to unstable operation of the elements And the first and second groups. This ultimately reduces the stability of the converter and, consequently, the reliability (reliability) of the code conversion.

Цель изобретени  - повышение достоверности и быстродействи  преобразовател .The purpose of the invention is to increase the reliability and speed of the converter.

Цель достигаетс  преобразователем кода Гре  в параллельный двоичный код, содержащий счетчик, выходы разр дов которого соединены с соответствующими информационными входами дешифратора, триггер, пр мой выход которого соединен с первыми входами информационных элементов И и первогоуправл ющего элемента И, выход которого через первый элемент задержки соединен с информационным входом младшего разр да регистра, выход первого элемента ИЛИ соединен с установочными входами всех разр дов регистра, кроме младшего, выходы информационных элементов И соединены с информационными входами соответствующих разр дов регистра , кроме младшего, инверсный выход триггера соединен с первым входом второго управл ющего элемента И, выход которого соединен с входом второго элемента задержки , второй элемент ИЛИ и третий элемент задержки, который отличаетс  от известного тем, что в него введены элементы И-ИЛИ. выходы которых  вл ютс  выходами преобразовател , пр мые и инверсные выходы разр дов регистра соединены соответственно с первыми и вторыми входами соответствующих элементов И-ИЛИ, третьи иThe goal is achieved by the Gre code converter in parallel binary code containing a counter whose bit outputs are connected to the corresponding information inputs of the decoder, a trigger whose direct output is connected to the first inputs of the information elements AND and the first control element AND, the output of which is connected through the first delay element with the information input of the lower order of the register, the output of the first OR element is connected to the installation inputs of all bits of the register, except the low, the outputs of information ele And contacts are connected to the information inputs of the corresponding bits of the register, except for the junior one, the inverse output of the trigger is connected to the first input of the second control element And, the output of which is connected to the input of the second delay element, the second OR element and the third delay element, which differs from the known that the elements are AND-OR. the outputs of which are the outputs of the converter, the direct and inverse outputs of the bits of the register are connected respectively to the first and second inputs of the corresponding AND-OR elements, the third and

четвертые входы которых подключены к выходам соответственно первого и второго управл ющих элементов И, первые выходы дешифратора соединены с вторыми входами соответствующих информационных элементов И, второй выход дешифратора соединен с вторыми входами управл ющих элементов И, выход второго элемента за- держки соединен с первым входом второгоthe fourth inputs of which are connected to the outputs of the first and second control elements And, respectively, the first outputs of the decoder are connected to the second inputs of the corresponding information elements And, the second output of the decoder is connected to the second inputs of the control elements And, the output of the second delay element is connected to the first input of the second

0 элемента ИЛИ, выход которого соединен с вторым входом первого элемента ИЛИ, выход третьего элемента задержки и счетный вход счетчика объединены и  вл ютс  тактовым входом преобразовател , второй0 OR element, the output of which is connected to the second input of the first OR element, the output of the third delay element and the counter counting input are combined and are the clock input of the converter, the second

5 вход второго элемента ИЛИ и установочные входы триггера и счетчика объединены и  вл ютс  установочным входом преобразовател .5, the input of the second OR element and the installation inputs of the trigger and counter are combined and are the installation input of the converter.

Основными признаками, отличающимиThe main features that distinguish

0 за вл емое устройство от прототипа,  вл ютс :0 of the claimed device from the prototype are:

1.Подключение установочных входов триггера и младшего разр да регистра (через второй элемент ИЛИ) к установочному1.Connecting the trigger and low-order register inputs (through the second OR element) to the installation

5 входу преобразовател .5 input converter.

2.Подключение счетного входа триггера непосредственно к информационному входу преобразовател .2. Connecting the counting input of the trigger directly to the information input of the converter.

3.Изменение схемы подключени  вто- 0 рого и третьего элементов задержки.3. Changing the connection scheme of the second and third delay elements.

А. Введение в схему элементов И-ИЛИ. Наличие указанных признаког в за вл емом устройстве обеспечивает ei о соответствие критерию новизна.A. Introduction to the circuit of AND-OR elements. The presence of these characteristics in the inventive device ensures ei that the novelty criterion is met.

5 Сравнение за вл емого устройства не только с прототипом, но и с другими техническими решени ми в данной и смежных област х техники показало, что подключение установочных входов суммирующего5 Comparison of the claimed device not only with the prototype, but also with other technical solutions in this and related fields of technology showed that the connection of the installation inputs of the summing

0 триггера и младшего разр да регистра к установочному входу распределител  в устройстве 2 требует дополнительного такта установки перед преобразованием каждого очередного кода Гре , т.е. приводит к сни5 жению скорости преобразовани  кодов. Аналогична  св зь в за вл емом устройстве позвол ет избежать этого недостатка и, кроме того, повысить достоверность преобразовани .0 trigger and low-order register to the installation input of the distributor in device 2 requires an additional installation cycle before converting each successive Gre code, i.e. reduces the speed of code conversion. A similar connection in the inventive device avoids this drawback and, in addition, improves the reliability of the conversion.

00

Из вышесказанного следует, что за вл емое техническое решение  вл етс  новым и обуславливает соответствие его существенных признаков критерию существен5 ные отличи .From the foregoing, it follows that the claimed technical solution is new and determines the compliance of its essential features with the criterion of significant differences.

Сущность изобретени  заключаетс  в. 1. Предварительной установке перед . началом преобразовани  суммирующего триггера и младшего разр да регистра в одно и то же состо ние О.SUMMARY OF THE INVENTION 1. Preinstallation before. the beginning of the conversion of the summing trigger and the least significant bit of the register in the same state O.

2. Смещении всего процесса преобразовани  кодов в за вл емом устройстве примерно на полтакта Если в схеме прототипа разр ды кода Гре  на вход суммирующего триггера подаютс  в промежутках между тактовыми импульсами, то в за вл емом устройстве они подаютс  одновременно с этими импульсами.2. The shift of the entire process of code conversion in the claimed device by about a half-cycle. If in the prototype circuit the bits of the Gre code are fed to the input of the summing trigger in the intervals between clock pulses, then they are supplied to the claimed device simultaneously with these pulses.

Наличие этих особенностей позвол ет достичь указанного положительного эффекта .The presence of these features allows one to achieve the indicated beneficial effect.

Структурна  схема преобразовател  кода Гре  в параллельный двоичный код. выполненна  согласно данному изобретению, приведена на чертеже.Block diagram of a Gre code to parallel binary code converter. made according to this invention is shown in the drawing.

Устройство соде ржит триггер 1 с разр дами 2-5, двухразр дный счетчик б, дешифратор 7, триггер 8, первый 9 и второй 10 управл ющие элементы И, информационные элементы 11-13 И. элементы 14-17 И- ИЛИ, первый 18 и второй 19 элементы ИЛИ и первый 20, второй 21 и трет ий 22 элементы задержки.The device contains trigger 1 with bits 2-5, two-bit counter b, decoder 7, trigger 8, first 9 and second 10 control elements AND, information elements 11-13 I. elements 14-17 AND- OR, first 18 and second 19 OR elements and first 20, second 21 and third 22 delay elements.

Первые входы информационных элементов 11-13 И подключены к пр мому выходу триггера. 8, а выходы соединены с соответствующими информационными входами старших разр дов 3-5 регистра 1, пр мые и инверсные выходы разр дов 2-5 которого подключены соответственно к первым и вторым входам элементов 14-17 И- ИЛИ, выходы которых  вл ютс  выходами 23-26 преобразовател . Установочный и счетный входы триггера 8 подключены соответственно к установочному 27 и информационному 28 входам преобразовател , а пр мой и инверсный выходы триггера 8 соединены с первыми входами соответственно первого 9 и второго 10 управл ющих элементов И, выходы которых подключены соответственно к третьим и четвертым входам элементов 14-17 И-ИЛИ. Вход установки О и счетный вход счетчика б подключены соответственно к установочному 27 и тактовому 29 входам преобразовател , а разр дные выходы счетчика 6 соединены с соответствующими информационными входами дешифратора 7, один из входов которого подключен ко вторым входам первого 9 и второго 10 управл ющих элементов И, а остальные выходы дешифратора 7 соединены со вторыми входами соответствующих информационных элементов 11-13 И. Первый и второй входы первого элемента 18 ИЛИ подключены соответственно к информационному и установочному входам младшего разр да 2. а выход соеди- н,ен с установочными входами остальных разр дов 3-5 регистра 1. Входы первого 20 и второго 21 элементов задержки подключены к выходам соответственно первого 9 и второго 10 управл ющих элементов И, а выходы первого 20 и второго 21 элементов задержки соединены с первыми входами соответственно первого 18 и второго 19 элементов ИЛИ, причем второй вход и выход второго элемента 19 ИЛИ подключены соответственно к установочному входу 27 преоб- разовател  и установочному входуThe first inputs of information elements 11-13 are connected to the direct output of the trigger. 8, and the outputs are connected to the corresponding information inputs of high-order bits 3-5 of register 1, the direct and inverse outputs of bits 2-5 of which are connected respectively to the first and second inputs of elements 14-17 AND-OR, the outputs of which are outputs 23 -26 converter. The installation and counting inputs of trigger 8 are connected respectively to the installation 27 and information 28 inputs of the converter, and the direct and inverse outputs of trigger 8 are connected to the first inputs of the first 9 and second 10 control elements And, the outputs of which are connected respectively to the third and fourth inputs of the elements 14-17 AND-OR. The input of the installation O and the counting input of the counter b are connected respectively to the installation 27 and clock 29 inputs of the converter, and the bit outputs of the counter 6 are connected to the corresponding information inputs of the decoder 7, one of the inputs of which is connected to the second inputs of the first 9 and second 10 control elements AND and the remaining outputs of the decoder 7 are connected to the second inputs of the corresponding information elements 11-13 I. The first and second inputs of the first element 18 OR are connected respectively to the information and installation input low-order odes 2. and the output is connected to the installation inputs of the remaining bits 3-5 of register 1. The inputs of the first 20 and second 21 delay elements are connected to the outputs of the first 9 and second 10 control elements AND, and the outputs of the first 20 and the second 21 delay elements are connected to the first inputs of the first 18 and second 19 OR elements, respectively, the second input and output of the second OR element 19 are connected respectively to the installation input 27 of the converter and the installation input

0 младшего разр да 2 регистра 1, а вход и выход третьего элемента 22 задержки соединены соответственно с тактовым входом 29 преобразовател  и тактовым входом дешифратору 7.0 low order bit 2 of register 1, and the input and output of the third delay element 22 are connected respectively to the clock input 29 of the converter and the clock input to the decoder 7.

5 Согласно выполн емым функци м каждый из элементов 14-17 это элемент 2-2И- ИЛИ.5 According to the functions performed, each of the elements 14-17 is an element 2-2 AND- OR.

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

0 Пусть требуетс  преобразовать коды Гре  1101 и 1011, поступающие на информационный вход 28 преобразовател  последовательно младшими разр дами вперед. Перед началом преобразовани  с внеш5 него по отношению к данному преобразователю устройства (на чертеже не показан) на установочный вход 27 подаетс  импульс установки преобразовател  в исходное состо ние . По этому импульсу счетчик 6, триггер0 Suppose that it is required to convert the Gre codes 1101 and 1011, arriving at the information input 28 of the converter sequentially in lower order bits. Before starting the conversion from an external device with respect to a given converter of the device (not shown in the drawing), a pulse to reset the converter to its initial state is supplied to the installation input 27. On this impulse counter 6, trigger

0 8, з также разр ды 2-5 регистра устанавливаютс  в состо ние О.0 8, also bits 2-5 of the register are set to O.

В следующий момент времени с внешнего устройства на вход 29 преобразовател  подаетс  тактовый импульс. ОдновременноAt the next point in time, a clock pulse is supplied from the external device to the input 29 of the converter. At the same time

5 с ним на вход 28 преобразовател  поступает сигнал первого (младшего) разр да кода Гре , равный в данном случае 1. В результате этого в счетчик 6 записываетс  1, а триггер 8 переходит в единичное состо ние.5, with the input 28 of the converter, a signal of the first (least significant) bit of the Gre code is received, which is equal to 1 in this case. As a result of this, 1 is written to counter 6, and trigger 8 goes into a single state.

0 Задержанный на врем  записи информации в счетчик 6 и триггер 8 импульс проходит на выход элемента 22 и поступает на тактовый вход дешифратора 7. В результате этого, так к-ак в счегчике 6 записана 1, формируетс 0 The pulse delayed during the recording of information in counter 6 and trigger 8 passes to the output of element 22 and goes to the clock input of decoder 7. As a result of this, since 1 is recorded in counter 6, it is formed

5 импульс на единичном выходе дешифратора 7, проход щий через подготовленный триггером 8 элемент 11 И на информационный вход разр да 3 регистра 1, записыва  в него 1.5 pulse at the single output of decoder 7 passing through element 11 prepared by trigger 8 And to the information input of bit 3 of register 1, writing to it 1.

0 Второй тактовый импульс аналогичным образом поступает через вход 29 преобразовател  на счетный вход счетчика б и на вход элемента 22 задержки, Одновременно с ним на вход 28 преобразовател  поступает0 The second clock pulse is likewise supplied through the input 29 of the converter to the counting input of the counter b and to the input of the delay element 22. At the same time, it enters the input of the converter 28

5 сигнал второго разр да кода Гре . Но так как он равен О, состо ние триггера 8 не мен етс  и он сохран ет свое значение 1. Одновременно импульс на счетном входе счетчика 6 записывает в него вторую 1. Задержанный импульс с выхода элемента5 signal of the second bit of the Gre code. But since it is equal to O, the state of trigger 8 does not change and it retains its value 1. At the same time, the pulse at the counter input of counter 6 writes the second one to it 1. The delayed pulse from the output of the element

22 поступает на дешифратор 7. Сформированный на его втором выходе импульс через элемент 12 И записывает 1 в разр д 4 регистра 1.22 is supplied to the decoder 7. The pulse generated at its second output through element 12 AND writes 1 to bit 4 of register 1.

Третий тактовый импульс аналогично указанному выше поступает на счетный вход счетчика 6 и на вход элемента 22 задержки . Одновременно с ним на счетный вход триггера 8 поступает сигнал третьего разр да кода Гре , равный 1. В результате в счетчик 6 записываетс  треть  1, а триггер 8 перебрасываетс  в противоположное состо ние (состо ние О). Задержанный импульс с выхода элемента 22 формирует на третьем выходе дешифратора 7 импульс. Однако, так как триггер 8 находитс  в О, элемент 13 И не подготовлен и разр д 5 регистра 1 сохран ет исходное состо ние О.The third clock pulse, similar to the above, is fed to the counting input of the counter 6 and to the input of the delay element 22. At the same time, the counting input of trigger 8 receives a third-digit signal of the Gre code equal to 1. As a result, third 1 is written to counter 6, and trigger 8 is flipped to the opposite state (state O). The delayed pulse from the output of the element 22 generates a pulse at the third output of the decoder 7. However, since trigger 8 is in O, element 13 AND is not prepared and bit 5 of register 1 retains the original state of O.

Четвертый тактовый импульс возвраща- ет счетчик 6 в исходное состо ние О, а четвертый (старший) разр д кода Гре , равный 1, переводит триггер 8 в 1. Задержанный импульс с выхода элемента 22 формирует на нулевом выходе дешифра- тора 7 импульс проход щий через подготовленный элемент 9 И на третьи входы элементов 14-17И-ИЛИ и на вход элемента 20 задержки. В результате этого на информационные выходы 23-26 преобразовател  считываетс  параллельный двоичный код 1001, соответствующий обратному коду чис- ла, сформированному в регистре 1.The fourth clock pulse returns counter 6 to the initial state O, and the fourth (senior) bit of the Gre code, equal to 1, translates trigger 8 into 1. The delayed pulse from the output of element 22 forms a pulse passing at the zero output of decoder 7 through the prepared element 9 AND to the third inputs of the elements 14-17 AND-OR and to the input of the delay element 20. As a result, a parallel binary code 1001 corresponding to the inverse number code generated in register 1 is read to the information outputs 23-26 of the converter.

Импульс, задержанный на элементе20, на врем  считывани  информации с разр - дов 2-5, поступает на установочные входы разр дов 3-5 и на информационный вход разр да регистра 1. Тем самым обеспечиваетс  установка в исходное состо ние О его разр дов 3-5 и передача и запоминание ис- ходного состо ни  1 триггера 8 в младшем разр де регистра 1 перед преобразованием следующего кода Гре .The pulse delayed by element 20, while reading information from bits 2-5, is supplied to the setting inputs of bits 3-5 and to the information input of bit of register 1. This ensures that its bits 3- are reset to their initial state О 5 and transmitting and storing the initial state 1 of trigger 8 in the low order of register 1 before converting the next Gre code.

П тый тактовый импульс аналогично указанному выше поступает на счетный вход счетчика 6 и на вход элемента 22 задержки . Одновременно на счетный вход триггера 8 поступает первый разр д следующего кода Гре , равный 1. В результате в счетчик 6 записываетс  1, а триггер 8 перехо- дит в состо ние О. Задержанный импульс с выхода элемента 22 задержки формирует на третьем выходе дешифратора 7 импульс , проход щий через элемент 13 И и записывающий 1 в разр д 5 регистра 1. The fifth clock pulse, similarly to the above, is supplied to the counting input of the counter 6 and to the input of the delay element 22. At the same time, the first bit of the next Gre code equal to 1 is received at the counting input of trigger 8. As a result, 1 is written to counter 6, and trigger 8 goes into state O. The delayed pulse from the output of delay element 22 generates a pulse at the third output of decoder 7 passing through the And element 13 and writing 1 to bit 5 of register 1.

Восьмой тактовый импульс возвращает счетчик 6 в исходное состо ние О, а четвертый (старший) разр д кода Гре , равный 1, переводит триггер 8 в состо ние О. Задержанный импульс с выхода элементаThe eighth clock pulse returns counter 6 to the initial state O, and the fourth (senior) bit of the Gre code equal to 1 transfers trigger 8 to state O. The delayed pulse from the output of the element

22 формирует на нулевом выходе дешифратора 7 импульс, проход щий через подготовленный элемент 10 И на четвертые входы элементов 14-17 И-ИЛИ и на вход элемента 21 задержки. В результате этого на информационные выходы 23-26 преобразовател  считываетс  параллельный двоичный код 1101, соответствующий пр мому коду числа, сформированному в регистре 1.22 generates a pulse at the zero output of the decoder 7 passing through the prepared AND element 10 to the fourth inputs of the AND-OR elements 14-17 and to the input of the delay element 21. As a result of this, a parallel binary code 1101 corresponding to the direct code of the number generated in register 1 is read to the information outputs 23-26 of the converter.

По завершении такого процесса импульс , задержанный на элементе 21. поступает на установочные входы разр дов 2-5 регистра 1. Тем самым обеспечиваетс  подготовка устройства к преобразованию следующего кода Гре , а именно:Upon completion of such a process, the pulse delayed at element 21. enters the installation inputs of bits 2-5 of register 1. This ensures the preparation of the device for converting the following Gre code, namely:

1.Установка разр дов 3-5 регистра 1 в исходное положение О.1. Setting bits 3-5 register 1 in the initial position O.

2.Установка разр да 2 регистра. 1 в состо ние , соответствующее состо нию триггера 8.2. Setting bit 2 registers. 1 to the state corresponding to the state of trigger 8.

Таким образом, дл  преобразовани  двух четырехразр дных чисел в предлагаемом устройстве требуетс  тактов. В общем случае дл  преобразовани  m чисел, представленных каждый в n-разр дном коде Гре  требуетс  всего m n тактов. В схеме прототипа дл  этого требуетс  (m-n+1) так- TOD. Повышение быстродействи  достигнуто благодар  отсутствию в предлагаемом устройстве специального такта передачи суммирующего триггера в младший разр д накапливающего регистра перед началом преобразовани  А это, в свою очередь, не требует организации специального сигнала блокировки элементов И-ИЛИ, а, следовательно , блокирующего триггера и блокирую щего элемента И. поддерживающих на п тых и шестых входах элементов И первой и второй групп прототипа -определенный уровень напр жени  в процессе преобразовани  кодов Отсутствие необходимости блокировки в предлагаемом устройстве способствует повышению достоверности преобразовани  кодов.Thus, clocks are required to convert two four-digit numbers in the proposed device. In general, a total of m n clock cycles is required to convert m numbers represented each in an n-bit Gre code. In the prototype scheme, this requires (m-n + 1) so-TOD. The increase in speed was achieved due to the absence in the proposed device of a special clock cycle for transmitting the summing trigger to the low order of the accumulating register before starting the conversion. And this, in turn, does not require the organization of a special signal for blocking the AND-OR elements, and, consequently, the blocking trigger and blocking element I. supporting at the fifth and sixth inputs of the elements And the first and second groups of the prototype - a certain voltage level in the process of converting codes No need locks in the proposed device improves the reliability of code conversion.

Claims (1)

Формула изобретени  Преобразователь кода Гре  в парал; лельный двоичный код, содержащий счетчик , выходы разр дов которого соединены с соответствующими информационными входами дешифратора, триггер, пр мой выход которого соединен с первыми входами информационных элементов И и первого управл ющего элемента И, выход которого через первый элемент задержки соединен с информационным входом младшего разр да регистра и первым входом первого элемента ИЛИ, второй вход которого объединен с установочным входом младшего разр да регистра, выход первого элемента ИЛИ соединен с установочными входамиSUMMARY OF THE INVENTION Grea to Parallel Code Converter; a binary code containing a counter whose bit outputs are connected to the corresponding information inputs of the decoder, a trigger, the direct output of which is connected to the first inputs of the information elements AND and the first control element AND, the output of which is connected through the first delay element to the information input of the lowest bit yes of the register and the first input of the first OR element, the second input of which is combined with the installation input of the least significant bit of the register, the output of the first OR element is connected to the installation input and всех разр дов регистра, кроме младшего, выходы информационных элементов И соединены с информационными входами соответствующих разр дов регистра, кроме младшего, инверсный выход триггера соединен с первым входом второго управл ющего элемента И, выход которого соединен с входом второго элемента задержки, второй элемент ИЛИ и третий элемент задержки , отличающийс  тем, что, с целью повышени  достоверности и быстродействи  преобразовател , в него введены элементы И-ИЛИ, вуходы которых  вл ютс  выходами преобразовател , пр мые и инверсные выходы разр дов регистра соединены соответственно с первыми и вторыми входами соответствующих элементов И-ИЛИ , третьи и четвертые входы которых подключены к выходам соответственно первого и второго управл ющих элементов И, первые выходы дешифратора соединены с- вторыми входами соответствующих информационных элементов И, второй выход дешифратора соединен с вторыми входами управл ющих элементов И, выход второго элемента задержки соединен с первым входом второго элемента ИЛИ, выход которого соединен с вторым входом первого элементаof all bits of the register, except the lowest, the outputs of the information elements AND are connected to the information inputs of the corresponding bits of the register, except the younger, the inverse output of the trigger is connected to the first input of the second control element And, the output of which is connected to the input of the second delay element, the second OR element and the third delay element, characterized in that, in order to increase the reliability and speed of the converter, AND-OR elements are introduced into it, the inputs of which are the outputs of the converter, direct and inverse the output outputs of the register bits are connected respectively to the first and second inputs of the corresponding AND-OR elements, the third and fourth inputs of which are connected to the outputs of the first and second control elements AND, the first outputs of the decoder are connected to the second inputs of the corresponding information elements AND, the second output the decoder is connected to the second inputs of the AND control elements, the output of the second delay element is connected to the first input of the second OR element, the output of which is connected to the second input of the first element nta ИЛИ, выход третьего элемента задержки соединен с тактовым входом дешифратора, вход третьего элемента задержки и счетный вход счетчика объединены и  вл ютс  тактовым входом преобразовател , второй входOR, the output of the third delay element is connected to the clock input of the decoder, the input of the third delay element and the counting input of the counter are combined and are the clock input of the converter, the second input второго элемента ИЛИ и установочные-входы триггера и счетчика объединены и  вл ютс  установочным входом преобразовател , счетный вход триггера  вл етс  информационным входом преобразовател .the second OR element and the setup-inputs of the trigger and the counter are combined and are the setup input of the converter, the counting input of the trigger is the information input of the converter.
SU904872816A 1990-10-09 1990-10-09 Code translator from gray to parallel binary one RU1784963C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU904872816A RU1784963C (en) 1990-10-09 1990-10-09 Code translator from gray to parallel binary one

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU904872816A RU1784963C (en) 1990-10-09 1990-10-09 Code translator from gray to parallel binary one

Publications (1)

Publication Number Publication Date
RU1784963C true RU1784963C (en) 1992-12-30

Family

ID=21539749

Family Applications (1)

Application Number Title Priority Date Filing Date
SU904872816A RU1784963C (en) 1990-10-09 1990-10-09 Code translator from gray to parallel binary one

Country Status (1)

Country Link
RU (1) RU1784963C (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР Ms 431512. кл. G 06 F 5/02. 1973. 2.Авторское свидетельство СССР № 788104, кл. G 06 F 5/02, 1979. 3.Авторское свидетельство СССР № 1070541,кл.Н 03 М 7/16, 1983. *

Similar Documents

Publication Publication Date Title
RU1784963C (en) Code translator from gray to parallel binary one
SU1262479A1 (en) Adder-accumulator
RU2248033C1 (en) Converter of grey code to parallel binary code
SU1621140A2 (en) Counting device with check
SU1103226A1 (en) Device for computing square root
SU479109A1 (en) Device for comparing binary numbers
SU767766A1 (en) Device for determining data parity
SU1765825A1 (en) Zero counting device
SU1070541A1 (en) Gray/code parallel binary code translator
SU1174919A1 (en) Device for comparing numbers
SU1591192A1 (en) Code checking device
SU1562966A1 (en) Device for selection of asynchronous signals on basis of criterion "m out of n"
SU1273919A1 (en) Device for adding in binary and binary-coded decimal number system
SU1156057A1 (en) Translator of n-bit binary code to p-bit code
SU1383505A1 (en) Converter of binary code to binary-coded decimal code of angular units
SU420129A1 (en) COUNTER WITH PRESET
SU1709530A1 (en) Code-to-frequency converter
SU1388995A1 (en) Device for converting binary numbers to binary decimal numbers and backwards
SU567208A2 (en) Multidigit decade counter
SU369715A1 (en) THIRD POTENTIAL TRIGGER
SU1599858A1 (en) Device for cyclic interrogation of initiative signals
SU1285605A1 (en) Code converter
SU960814A1 (en) Microprogram control device
SU1368880A1 (en) Control device
SU1185325A1 (en) Device for searching given number