SU560222A1 - Device for converting binary code to gray code and vice versa - Google Patents
Device for converting binary code to gray code and vice versaInfo
- Publication number
- SU560222A1 SU560222A1 SU2071412A SU2071412A SU560222A1 SU 560222 A1 SU560222 A1 SU 560222A1 SU 2071412 A SU2071412 A SU 2071412A SU 2071412 A SU2071412 A SU 2071412A SU 560222 A1 SU560222 A1 SU 560222A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- code
- binary code
- counter
- vice versa
- elements
- Prior art date
Links
- 238000000034 method Methods 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 description 12
- 101150007919 Gper1 gene Proteins 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000002401 inhibitory effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Particle Accelerators (AREA)
Description
1one
Изобретение относитс к автоматике и вычислительиой технике и предназначено дл использовани в различных устройствах дл преобразовани данных.The invention relates to automation and computing technology and is intended for use in various data conversion devices.
Известны устройства дл преобразовани двоичного кода в код Гре , устройства дл преобразовани кода Гре в двоичный код 1 и устройства, в которых эти преобразовани совмещены.Devices are known for converting a binary code into a Gre code, devices for converting a Gre code into binary code 1, and devices in which these conversions are combined.
Из известных устройств дл преобразовани кода наиболее близким по технической сущности к изобретению вл етс нреобразователь двоичного кода в код Гре и обратно, содержащий элементы задержки, элементы И и счетчик, информационные входы каждого разр да которого подключены к информационным входным щинам 2.Of the known devices for converting the code, the closest in technical essence to the invention is a binary code converter to the Gray code and back, containing delay elements, AND elements and a counter, the information inputs of each bit of which are connected to the information input 2.
Однако в этом преобразователе дл предотвращени ложных срабатываний триггеров сигнал преобразовани из двоичного кода в код Гре по длительности не должен превыщать времени переключени триггеров. Дл выполнени дагшого услови в преобразователе необходпмо примен ть медленнодействующие тригг.,рь или искусственно увеличивать врем переключени триггеров.However, in this converter, to prevent false triggering of the triggers, the conversion signal from the binary code to the Gre code should not exceed the switching time of the triggers in duration. To fulfill the conditions in the converter, it is necessary to use slow-acting triggers, or to artificially increase the switching time of the flip-flops.
Цель изобретени - повышение быстродействи устройства преобразовани двоичного кода в код Гре и обратно при одновременном повышении надежности.The purpose of the invention is to increase the speed of the device for converting a binary code to a Gre code and vice versa while improving reliability.
Это достигаетс тем, что устройство содержит формирователи в каждом разр де счетчика , при этом выход старщего разр да счетчика подключен к входу соответствующего формировател , выход этого формировател - к входу элемента задержки данного разр да счетчика, выход которого св зан с входом соседнего младщего разр да счетчика, выходы остальных разр дов счетчика, кроме младшего, - к входам соответствующих формирователей , выходы которых соединены с первыми входами элементов И соответствующих разр дов счетчпка, выходы элемеитов этих И подключены к входам элементов задержки тех же разр дов счетчика, выходы которых соединены с входами соседних младщих разр дов счетчика, а вторые входы всех элементов И - к управл ющей входной шине.This is achieved by the fact that the device contains drivers in each digit of the counter, while the output of the high discharge of the counter is connected to the input of the corresponding driver, the output of this driver is connected to the input of the delay element of this counter, the output of which is connected to the input of the next low bit the counter, the outputs of the remaining bits of the counter, except the younger one, are connected to the inputs of the corresponding drivers, the outputs of which are connected to the first inputs of the elements AND the corresponding counter bits, the outputs of these AND elements Connected to the inputs of the delay elements of the same counter bits, the outputs of which are connected to the inputs of the neighboring lower-order bits of the counter, and the second inputs of all I elements to the control input bus.
При таком выполнении устройства управл ющий вход дл пр мого и обратного преобразовани между двоичным кодом и кодом Гре вл етс общим, отсутствует необходимость в малых по длительности сигналах преобразовани , так как дл преобразовани двоичного кода в код Гре на управл ющий вход подаетс импульс, закрывающий элементы И после прохождени с формирователей первых импульсов после поступлени двоичного кода на триггерный регистр. При преобразовании кода Гре в .-хвоичный код необ.ходимость в управл ющих импульсах вообще отпадает , элементы И посто нно открыты разрешающим потенциалом на управл ющем входе . В св зи с этим в устройстве могут быть использованы триггеры с любым быстродействием , что определ ет высокое быстродействие всего устройства преобразовани кодов. Кроме того, процесс преобразовани кодов начинаетс непосредственно с момента поступлени кода на триггерный регистр, а не по команде с управл ющего входа.With such a device implementation, the control input for direct and inverse conversion between the binary code and the Gre code is common, there is no need for small duration conversion signals, since to convert a binary code into the Gre code, a pulse is applied to the control input And after passing the first pulses from the formers after the arrival of the binary code on the trigger register. When converting the Gre code into a.-Needle code, the need for control pulses generally disappears, the elements AND are constantly open by the resolving potential at the control input. In this connection, triggers with any speed can be used in the device, which determines the high speed of the entire code conversion device. In addition, the code conversion process starts immediately from the moment the code is received on the trigger register, and not by a command from the control input.
На чертеже представлена схема устройства дл преобразовани двоичного кода в код Гре и обратно.The drawing shows a diagram of a device for converting a binary code to a Gre code and vice versa.
Устройство содержит счетчик 1 из триггеров 2 со счетными входами, подключенные к выходам триггеров 2 формирователи 3, вырабатывающие имцульс при смене состо ни триггеров , элементы 4 временной задержки, выходы которых подключены к счетным входам триггеров, и элементы И 5, управл ющие входы которых объединены и образуют вход управлени преобразованием по управл ющей входной шине 6.The device contains a counter 1 of the flip-flops 2 with counting inputs connected to the outputs of the flip-flops 2 shapers 3 generating impulses when the status of the flip-flops changes, the time delay elements 4, the outputs of which are connected to the counting inputs of the triggers, and the AND elements 5 whose control inputs are combined and form a conversion control input on control input bus 6.
В исходном состо нии триггерный счетчик 1 сброшен в нуль и все триггеры 2 наход тс в нулевом состо нии. Подлежащий преобразованию код поступает в триггеры 2, при этом состо ние триггеров измен етс с нулевого на единичное в тех разр дах, в которых код равен единице. Подключенные к выходам триггеров 2 формирователи 3 вырабатывают импульс при каждой смене состо ни соответствующего триггера независимо от того, изменилось ли это состо ние из нулевого в единичное , или, наоборот, из единичного в нулевое. Формирователь 3 может быть выполнен не только по активной, но и по пассивной схеме, например он может состо ть из двух дифференцирующих цепочек, одна из которых подключена к единичному, а друга - к нулевому выходам триггера 2. В этом случае выходы дифференцирующих цепочек объедин ютс схемой ИЛИ, выход которой подключаетс к соответствующему элементу И 5. Импульсы с выходов формирователей 3 проход т через элементы И 5, если в этот момент на управл ющем входе 6 действует разрешающий потенциал . В старшем разр де наличие схемы И необ зательно, и она отсутствует. С выходов схем И 5 импульсы поступают на элементы 4, врем задержки ty которых выбираетс 4 , где Гпер - врем нереключени триггера . В случае преобразовани из кода Гре в двоичный код элементы И 5 открыты по управл ющему входу 6 на все врем преобразовани . Дл преобразовани из двоичного кода в код Гре элементы И - остаютс открытыми лищь дл первых импульсов с формирователей 3, после чего закрываютс ; 7пер закр 7пер+ 3, ГДе 4акр - врем смены разрешающего потенциала на запрещающий на управл ющем входе 6, отсчитываемое от момента поступлени кода на счетчик 1.In the initial state, the trigger counter 1 is reset to zero and all triggers 2 are in the zero state. The code to be converted enters triggers 2, and the status of the triggers changes from zero to one in those bits in which the code is equal to one. Connected to the outputs of the flip-flops 2, the shapers 3 produce a pulse at each change of state of the corresponding trigger, regardless of whether this state changes from zero to one, or, conversely, from one to zero. The imaging unit 3 can be executed not only by the active, but also by the passive circuit, for example, it can consist of two differentiating chains, one of which is connected to the unit circuit and the other to the zero outputs of trigger 2. In this case, the outputs of the differentiating chains are combined the OR circuit, the output of which is connected to the corresponding element AND 5. The pulses from the outputs of the drivers 3 pass through the elements 5, if at this moment the control potential acts on the control input 6. In the higher order, the presence of the scheme is also optional, and it is absent. From the outputs of the AND 5 circuits, the pulses arrive at elements 4, the delay time ty of which is 4, where Gper is the non-switching time of the trigger. In the case of a conversion from the Gre code to a binary code, the And 5 elements are open via control input 6 for the entire conversion time. To convert from the binary code to the Gre code, the AND elements remain open only for the first pulses from the formers 3, after which they are closed; 7per closed 7per + 3, where 4acr is the time of changing the permissive potential to the inhibitory one at control input 6, counted from the moment code arrives at counter 1.
Пример 1. Преобразование кода Гре в двоичный код. Предположим, в счетчик поступает код 1010 (в дес тичной системе - двенадцать ). Формирователи 3 четвертого и второго разр дов вырабатывают импульсы, которые через врем t ts поступают па счетные входы триггеров 2 соответственно третьего и первого разр дов, измен их состо ниеExample 1. Converting a Gre code into a binary code. Suppose the counter receives the code 1010 (in the decimal system - twelve). The shapers 3 of the fourth and second bits produce pulses that, after a time t ts, receive the counting inputs of the flip-flops 2 of the third and first bits, respectively, changing their state
1010 1011010 101
11111111
В св зи с изменением состо ни триггера третьего разр да, соответствующий формирователь вырабатывает имнульс, который, пройд элемент И 5 и элемент 4 задержки, поступает через врем 4 на счетный вход триггера второго разр да, измен его состо ние 1111 10In connection with the change in the state of the third bit trigger, the corresponding driver generates an impulse which, having passed the element 5 and the delay element 4, arrives through time 4 to the counting input of the second bit trigger, changing its state 1111 10
11011101
Так как состо ние триггера второго разр да измен етс , то импульс с подключенного к нему формировател через врем / з подаетс на счетный вход триггера первого разр даSince the trigger state of the second bit changes, the pulse from the shaper connected to it through time / s is fed to the counting input of the first bit trigger
1101 11101 1
ТГооTgo
в результате в регистре оказываетс двоичное число 1100 (в дес тичной системе - 12).as a result, the binary number 1100 appears in the register (12 in the decimal system).
Пример 2. Преобразование двоичного кода в код Гре . Пусть в счетчик поступает код числа 1101 (тринадцать). В св зи с изменением состо ни триггеров 2 четвертого и третьего разр дов нодключенные к ним формирователи 3 вырабатывают импульсы, которые через врем t t поступают на счетные входы триггеров соответственно третьего и второго разр довExample 2. Converting binary code to Gre code. Let the counter receives the code number 1101 (thirteen). In connection with the change in the state of the flip-flops 2 of the fourth and third bits, the drivers 3 connected to them generate pulses that after a time t t arrive at the counting inputs of the triggers of the third and second digits, respectively.
1101 ПО1101 software
10111011
Состо ние триггеров третьего и второго разр дов измен етс , и подключенные к ним формирователи 3 вырабатывают импульс, однако, к этому времени все элементы И оказываютс закрытыми по управл ющему входу 6, и в счетчике 1 остаетс результат 1011 (тринадцать в коде Гре ).The state of the third and second bit triggers changes, and the drivers 3 connected to them produce a pulse, however, by this time all elements AND are closed by control input 6, and the result 1 remains result 1011 (thirteen in the Gray code).
Экспериментальна проверка устройства подтвердила значительное повышение скорости преобразовани кодов, обусловленное отсзтствием ограничений по быстродействию, св занных с параметрами сигналов управлени преобразованием.An experimental verification of the device confirmed a significant increase in the rate of conversion of codes, due to the lack of speed limits associated with the parameters of the conversion control signals.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU2071412A SU560222A1 (en) | 1974-10-24 | 1974-10-24 | Device for converting binary code to gray code and vice versa |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU2071412A SU560222A1 (en) | 1974-10-24 | 1974-10-24 | Device for converting binary code to gray code and vice versa |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU560222A1 true SU560222A1 (en) | 1977-05-30 |
Family
ID=20599581
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU2071412A SU560222A1 (en) | 1974-10-24 | 1974-10-24 | Device for converting binary code to gray code and vice versa |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU560222A1 (en) |
-
1974
- 1974-10-24 SU SU2071412A patent/SU560222A1/en active
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| SU560222A1 (en) | Device for converting binary code to gray code and vice versa | |
| US3145292A (en) | Forward-backward counter | |
| SU1264165A1 (en) | Adder-accumulator | |
| SU428385A1 (en) | ||
| SU1174919A1 (en) | Device for comparing numbers | |
| SU1478316A1 (en) | Digital pulse-width modulator | |
| SU921094A1 (en) | Decimal counter | |
| SU470922A1 (en) | Pulse counting device | |
| SU643870A1 (en) | Parallel-action arithmetic device | |
| SU824446A1 (en) | Reversible binary coded decimal pulse counter | |
| SU894710A1 (en) | Priority device | |
| SU1076950A1 (en) | Shift register | |
| SU871341A2 (en) | Calculating device | |
| SU466508A1 (en) | Device for comparing binary numbers | |
| SU468237A1 (en) | Number Comparison Device | |
| SU999048A1 (en) | Unit counting squaring converter | |
| SU941991A1 (en) | Binary to binary-decimal code converter | |
| SU391560A1 (en) | DEVICE FOR CONSTRUCTION IN SQUARES | |
| SU658556A1 (en) | Gray code-to -binary code converter | |
| SU407313A1 (en) | DEVICE TO CALCULATE THE REMAINATION BY MODULE OF NUMBER | |
| SU1599850A1 (en) | Generator of basic function systems | |
| SU733109A1 (en) | Reversible ternary n-bit pulse counter | |
| SU763891A1 (en) | Numbers comparator | |
| SU411453A1 (en) | ||
| SU368598A1 (en) | CONVERTER BINARY DECIMAL CODE "12222" TO UNITARY CODE |