SU1325708A1 - Binary code-to-code with arbitrary less significant order - Google Patents
Binary code-to-code with arbitrary less significant order Download PDFInfo
- Publication number
- SU1325708A1 SU1325708A1 SU853993677A SU3993677A SU1325708A1 SU 1325708 A1 SU1325708 A1 SU 1325708A1 SU 853993677 A SU853993677 A SU 853993677A SU 3993677 A SU3993677 A SU 3993677A SU 1325708 A1 SU1325708 A1 SU 1325708A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- output
- input
- counter
- code
- inputs
- Prior art date
Links
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
Изобретение относитс к вычислительной технике и цифровой измерительной аппаратуре и может быть использовано дл преобразовани кода с программируемым отношением результата и исходного числа. Целью изобретени вл етс повышение точности и быстродействи преобразовател . Поставленна цель достигаетс тем. что в преобразователь, содержащий выходной счетчик 17, регистр 14, сум- ,матор 13, первый блок 10 пам ти констант , двоичный счетчик 6, первый 7 и второй 8 дешифраторы, генератор 1 импульсов , первый 2 и второй 16 элементы И,введены второй блок 11 пам ти констант, буферный регистр 9, делитель 5 частоты, элемент НЕ 15, формирователь 12 и триггер 3. Причем выходы блоков 10 и 11 пам ти констант подключены к входам сумматора 13, выход переполнени которого через элементы НЕ 1 5 и И 16 подключен к счетному входу выходного счетчика 17, информационный вход которого соединен с выходом регистра 14. Адресные входы блоков пам ти констант 10 и 11 соединены с выходом буферного регистра 9, а выход триггера 3 управл ет старшим адресным входом первого блока 10 пам ти констант. 1 ил. а (ЛThe invention relates to computing and digital instrumentation and can be used to convert a code with a programmable relationship of result and reference number. The aim of the invention is to improve the accuracy and speed of the converter. The goal is achieved by those. that the converter containing the output counter 17, register 14, sum-, mat 13, the first block of constant memory 10, the binary counter 6, the first 7 and second 8 decoders, 1 pulse generator, the first 2 and second 16 And elements, entered the second block 11 of memory constants, buffer register 9, frequency divider 5, element NOT 15, driver 12 and trigger 3. Moreover, the outputs of blocks 10 and 11 of memory constants are connected to the inputs of adder 13, the overflow output of which is through elements HE 1 5 and 16 connected to the counting input of the output counter 17, the information input of which is It is connected with the output of the register 14. The address inputs of the memory blocks of constants 10 and 11 are connected to the output of the buffer register 9, and the output of the trigger 3 controls the senior address input of the first memory block 10 of the constants. 1 il. a (L
Description
Изобретение относитс к цифровой вычислительной технике, к цифровой измерительной аппаратуре и может быть использовано дл преобразовани кода числа в соответствии с программируемым значением отношени результата и исходного числа.The invention relates to digital computing, to digital measuring equipment and can be used to convert a code of a number in accordance with the programmed value of the ratio of the result and the original number.
Цель изобретени - повышение, точности и быстродействи преобразовател .The purpose of the invention is to improve the accuracy and speed of the converter.
На чертеже изображена схема преобразовател кода.The drawing shows a diagram of the code converter.
Преобразователь содержит генератор 1 импульсов, элемент И 2, триг- .гер 3, выход 4 преобразовател , делитель 5 частоты, двоичный счетчик 6, дешифратор 7 и 8. буферный регистр 9 блок 10 пам ти констант, второй блок 11 пам ти констант, формирователь 12 импульсов,сумматор . 13, регистр 14, элемент НЕ 15, элемент И 16, выходной счетчик 17, вход 18 установки, информационный вход 19.The converter contains 1 pulse generator, element 2, trigger 3, output 4 of converter, frequency divider 5, binary counter 6, decoder 7 and 8. buffer register 9 constant memory block 10, second constant memory block 11, driver 12 pulses, adder. 13, register 14, element 15, element 16, output counter 17, installation input 18, information input 19.
.Преобразователь работает следующим образом.The converter works as follows.
В исходном состо нии, соответствующем началу работы устройства, в двоичный счетчик 6 записи записан кодIn the initial state corresponding to the start of operation of the device, the code is recorded in the binary counter 6 of the record
старших разр дов преобразуемого числа,ЗО этом код, введенный в старшие разр дыmost significant bits of the number being converted, this is the code entered into the high bits
в буферный регистр 9 записан полный код преобразуемого числа, регистр 14 и выходной счетчик 17 установлены в исходное - нулевое состо ние. Формирователь 12 в исходном состо нии фор- g тижении вторым делителем 5 частотыthe full code of the number to be converted is written into the buffer register 9, register 14 and output counter 17 are set to the initial — zero state. Shaper 12 in the initial state of the forg-ing by the second frequency divider 5
мирует сигнал записи в младшие разр ды счетчика 17 и управл ет работой Генератора 1 импульсов. Триггер 3 при установке исходного состо ни сигналом по входу 18 приводитс в единичное состо ние, при котором делитель 5 частоты удерживаетс в нулевом состо нии . При этом сигнал на первом выходе дешифратора 8, воздейству на первый блок 10 пам ти констант, включает указанный блок в активное состо ние, в то врем как второй блок 11 находитс в третьем состо нии (выходы в высокоимпендансном состо нии),generates a write signal to the lower bits of the counter 17 and controls the operation of the Pulse Generator 1. The trigger 3, when the initial state is set by a signal at input 18, is brought to the one state, in which the frequency divider 5 is kept in the zero state. At the same time, the signal at the first output of the decoder 8, affecting the first constant memory unit 10, turns the specified block into an active state, while the second block 11 is in the third state (the outputs are in high-impedance state)
При поступлении импульсов генератора через открытый элемент И 2 на вход двоичного счетчика 6 происходит последовательное вычитание из содержимого счетчика до по влени сигнала заема на выходе дешифратора 7, Выходной импульс последнего записывает в триггер 3 логический ноль, что приводит к закрыванию элемента И 2 и разблокировке делител 5 частоты.When the generator pulses through the open element And 2 to the input of the binary counter 6, the consecutive subtraction from the counter contents occurs before the loan signal appears at the output of the decoder 7. The output pulse of the latter writes a zero to trigger 3, which causes the divider to unlock 5 frequencies.
В процессе работы на вычитание двоичного счетчика 6 с каждым вычитаемым импульсом, поступающим на вход двоичного счетчика 6, производитс суммирование целой части веса младшего разр да двоичного счетчика 6 с помощью сумматора 13, регистра: 14, элемента НЕ 15, элемента И 16 и выходного счетчика 17. При этом регистр 14 срабатывает по перепаду логических уровней сигнала на входе синхронизации. Сигнал переноса с выхода сумматора 13 через элемент НЕ 15 и элемент И 16In the course of work on subtracting the binary counter 6 with each subtracted pulse arriving at the input of the binary counter 6, the whole part of the low-order bit of the binary counter 6 is summed with the help of adder 13, register: 14, element 15, element 16 and output counter 17. In this case, the register 14 is triggered by the differential logical levels of the signal at the synchronization input. The transfer signal from the output of the adder 13 through the element is NOT 15 and the element And 16
передаетс на суммирующий вход старших разр дов выходного счетчика 17. Бес младшего разр да двоичного счетчика 6 выдаетс в виде соответствующего кода на выход первого блока 10It is transmitted to the summing input of the higher bits of the output counter 17. The lower half of the binary counter 6 is outputted as a corresponding code to the output of the first block 10
и в тет1ение всего времени нахождени триггера 3 в единичном состо нии. После установки триггера 3 выходным импульсом дешифратора 7 в нулевое состо ние измен етс адрес на входеand in a tetraenie all the time the trigger 3 is in a single state. After the trigger 3 is set, the output pulse of the decoder 7 to the zero state changes the address at the input
первого блока 10 и на его выход поступает код, соответствующий произведению числа, введенного в двоичный счетчик 6 на дробную часть веса младшего разр да указанного счетчика. Приthe first block 10 and its output receives a code corresponding to the product of the number entered in binary counter 6 and the fractional part of the low-order bit weight of the specified counter. With
буферного регистра 9 (и в двоичный счетчик 6), вл етс адресом соответствующего произведени в первом запоминающем устройстве 10. При доссосто ни , соответствующего срабатыванию дешифратора 8 по второму выходу , происходит включение в активное состо ние второго блока 11 при одно40 временном отключении первого блока 1 ( переводе блока 10 в третье состо ние ) . На адресные входы второго блока 1 1 поступает код младших разр дов преобразуемого числа. На выход бло45 ка 11 выдаетс код, соответствующий произведению веса младшего разр да преобразуемого кода на число, представленное в указанных младших разр дах .the buffer register 9 (and in the binary counter 6) is the address of the corresponding product in the first memory device 10. When the condition of the decoder 8 on the second output is reached, the second unit 11 is switched to the active state during one 40 time off (transfer of block 10 to the third state). To the address inputs of the second block 1 1, the code of the lower bits of the number to be converted is fed. The output of block 11 is given a code corresponding to the product of the weight of the lowest bit of the code being converted by the number represented in the specified lower bits.
gQ Таким образом, в процессе преобразовани кода, происходит последовательное считывание информации из блоков и суммирование с накоплением результата в выходном счетчике. Возgg никающие в сумматоре 13 переносы учитываютс путем суммировани зтих переносов в форме счетных импульсов, поступающих через о.ткрываемый сигналом переноса элемент НЕ 15, элементgQ Thus, in the process of code conversion, sequential reading of information from blocks and summation with accumulation of the result in the output counter occur. The transfers occurring in the adder 13 are taken into account by summing these transfers in the form of counting pulses, coming through the element 15 opened by the transfer signal, the element 15
И 16 на суммирующий счетный вход старших разр дов счетчика. В выходном счетчике 17 в конце работы устройства: образуетс преобразованныйAnd 16 to the summing counting input of the higher bits of the counter. In the output counter 17 at the end of the operation of the device: a transformed
ч код, который выдаетс на выход 4. Преобразование заканчиваетс в момент переключени делител 5 частоты из состо ни , при котором возбужден второй выход дешифратора 8, в следующее состо ние. При этом по перепаду сигнала на первой входе формировател 12 на его выход выдаетс единичный сигнал, который, поступив на вход генератора 1 импульсов , блокирует выдачу тактовых импульсов , поскольку младша часть счетчика 17 во врем преобразовани находитс в режиме записи, то состо ние регистра 14 оказываетс пере . писанным в соответствующие разр ды счетчика 17. Следующий цикл преобразовани начинаетс после прихода очередного импульса на вход 18 установки исходного состо ни .The code that is outputted to output 4. The conversion ends at the moment the frequency divider 5 switches from the state in which the second output of the decoder 8 is excited to the next state. At the same time, by the signal differential at the first input of the imager 12, a single signal is output to its output, which, having entered the pulse generator 1, blocks the output of clock pulses, since the younger part of the counter 17 is in recording mode during the conversion, then the state of the register 14 is trans. written to the corresponding bits of the counter 17. The next conversion cycle begins after the arrival of the next pulse at the input 18 of the initial state setting.
Структура предлагаемого преобразовател позвол ет за счет расширени числа выходов дешифратора 8 и соответствующего числа блоков пам ти констант увеличить секционирование выходного счетчика. Наличие счетных цчепей в младпшх разр дах выходного счетчика 17 позвол ет принимать дополнительную поправку в число-импуль ном коде от независимого источника.The structure of the proposed converter allows, by expanding the number of outputs of the decoder 8 and the corresponding number of constant memory blocks, to increase the partitioning of the output counter. The presence of countable chips in the low-order bits of output counter 17 allows one to receive an additional correction to the number-pulse code from an independent source.
Пример. Пусть отношение весо младших разр дов результату преобразовани и входного кода составл ет 0,3346652, а преобразуемое число представлено 16-разр дным двоичным крдом. В первом блоке 10 пам ти констант хран тс веса младшего разр да двоичного счетчика 6. Исход из имеющейс элементной базы запоминающих устройств (микросхемы 556РТ7) с орга низацией 2048x8 выбирают вариант с 8-разр дным сумматором 13. Определ ют максимальное число младших разр дов входного кода, которые можно преобразовать непосредственно во втором блоке 11 пам ти.Example. Let the ratio of the low-order bits to the result of the conversion and the input code be 0.3346652, and the number to be converted is represented by the 16-bit binary code. In the first block of 10 memory constants, the weights of the lower bits of the binary counter 6 are stored. On the basis of the available element base of memory devices (556PT7 chips) with the organization 2048x8, choose the variant with the 8-bit adder 13. Determine the maximum number of lower-order bits of the input code that can be converted directly in the second memory block 11.
Максимальное число, код которого с учетом восьми выходных разр дов блока пам ти, можно непосредственноThe maximum number, whose code, taking into account the eight output bits of the memory block, can be directly
использовать °в качестве 1дреса во втором блоке 11 пам ти, код числа равен 761,95553. Это число соответствует дев ти разр дам преобразуемого двоичного кода, так как емuse ° as 1dress in the second memory block 11, the number code is 761.95553. This number corresponds to nine bits of the binary code being converted, since
10ten
1515
2020
- , -,
4545
325708325708
кость дес ти разр дов составл ет 1024, Таким образом, дев ть младпшх разр дов входного кода, записанные в буферном регистре 9, преобразованы в код с новым весом разр да непосредственно с помощью второго блока 11 пам ти.The bone of ten bits is 1024. Thus, the nine minor bits of the input code recorded in buffer register 9 are converted into code with a new bit weight directly using the second memory block 11.
Оставшиес семь старших разр дов преобразуемого кода также записываютс в буферный регистр 9 и адресуют в первый блок 10 пам ти. Определ ют вес младшего разр да двоичного р дного счетчика 6, в который также записываютс старшие семь разр дов преобразуемого кода. В преобразуемом коде этот разр д вл етс дес тым, т.е. имеет вес 512 единиц младшего разр да преобразуемого кода. С .учетом требуемого соотношени весов результата преобразовани и исходного кода получают вес младшего разр да двоичного счетчика 6, равный 171,34858. В первом блоке 10 пам ти заноситс код 25 числа 171 во все чейки, соответству- щие единичному состо нию триггера 3.- В процессе вычитани из содержимого двоичного счетчика 6 произведено суммирование чисел 171 столько раз, сколько соответствует введенному в счетчик 6 исходному коду, т.е. происходит умножение на 171 и результат зафиксируетс в счетчике 17 результата . При установке триггера 3 в нулевое состо ние на выход первого запоминающего устройства поступает одно из произведенийThe remaining seven most significant bits of the code to be converted are also written to the buffer register 9 and addressed to the first memory block 10. The low bit weight of the binary row counter 6 is determined, into which the upper seven bits of the code to be converted are also written. In the convertible code, this bit is the tenth, i.e. It has a weight of 512 units of low-order convertible code. Taking into account the required ratio of the weights of the conversion result and the source code, the weight of the lower bit of the binary counter 6 is equal to 171.34858. In the first block of 10 memory, the code 25 of the number 171 is entered into all the cells corresponding to the unit state of the trigger 3.- During the process of subtracting from the contents of the binary counter 6, the numbers 171 are summed as many times as the initial code entered into the counter 6 . multiplication occurs by 171 and the result is fixed in the counter 17 of the result. When the trigger 3 is set to the zero state, one of the products enters the output of the first memory device.
30thirty
3535
П . N -0,34858,P . N = 0.34858,
где П - произведение;where P is the work;
N- - число, представленное вN- is the number represented in
старших семи разр дах преобразуемого кода (максималь-. ное значение N „акс 127; 0,34858 - дробна часть веса младшего разр да старших семи разр дов преобразуемого числа.the upper seven bits of the code being converted (the maximum value is N "ax 127; 0.34858 is a fractional part of the weight of the lower bit of the senior seven bits of the number being converted.
Дл максимального числа на выходе первого запоминающего устройства 10 сформирован код целой части числа, равный 44,26966.For the maximum number at the output of the first storage device 10, the code of the integer part of the number is formed, equal to 44.26966.
Дробна часть при этом отброшена и входит в погрешность преобразовани .The fractional part is thus dropped and enters into the error of transformation.
Из примера видно, что максимальное . значение погрешности в предлагаемом устройстве не превысит двух единиц младшего разр да результата преобразовани , которое возникает при отбраFrom the example we see that the maximum. the error value in the proposed device will not exceed two units of the least significant bit of the conversion result that occurs during selection
сыванин дробных частей дл чисел, представленных в первом блоки 10.(при нулевом состо нии триггера 3), а также дл чисел, представленных во втором блоке пам ти. Врем преобразова- НИН в предлагаемом устройстве приsyvanin of fractional parts for the numbers represented in the first block 10. (with the zero state of trigger 3), as well as for the numbers represented in the second memory block. The conversion time is NIN in the proposed device when
частоте 1 МГц составл ет около 130 мксa frequency of 1 MHz is about 130 µs
//
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853993677A SU1325708A1 (en) | 1985-12-23 | 1985-12-23 | Binary code-to-code with arbitrary less significant order |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU853993677A SU1325708A1 (en) | 1985-12-23 | 1985-12-23 | Binary code-to-code with arbitrary less significant order |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1325708A1 true SU1325708A1 (en) | 1987-07-23 |
Family
ID=21211324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU853993677A SU1325708A1 (en) | 1985-12-23 | 1985-12-23 | Binary code-to-code with arbitrary less significant order |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1325708A1 (en) |
-
1985
- 1985-12-23 SU SU853993677A patent/SU1325708A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 744545, кл. Н 03 М 7/12, 1977. Авторское свидетельство СССР № 1266008, кл. Н 03 М 7/12, 17.12.84. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5491703A (en) | Cam with additional row cells connected to match line | |
US4506348A (en) | Variable digital delay circuit | |
SU1325708A1 (en) | Binary code-to-code with arbitrary less significant order | |
US4352181A (en) | Device for synchronising multiplex lines in a time-division exchange | |
SU1264239A1 (en) | Buffer storage | |
SU1216652A1 (en) | Recorder | |
SU459800A1 (en) | Memory device | |
SU1270897A1 (en) | Parallel code-to-serial code converter | |
RU2037190C1 (en) | Multichannel system for recording physical quantities | |
JPS5758280A (en) | Method for making memory address | |
SU1718276A1 (en) | Self-test storage unit | |
SU1712964A1 (en) | Device for writing and reading voice signals | |
SU1494001A1 (en) | Device for sorting numeric array | |
SU1631560A1 (en) | Signal synthesizer | |
SU1010731A1 (en) | Counting device | |
SU453662A1 (en) | ||
SU720507A1 (en) | Buffer memory | |
SU1197147A1 (en) | Device for controlling columns of television matrix screen | |
SU443486A1 (en) | Decimal Pulse Counter | |
SU920379A1 (en) | Digital registrator | |
SU568079A1 (en) | Arrangement for writing information into store | |
SU663113A1 (en) | Binary counter | |
RU2020749C1 (en) | Bit-by-bit comparison analog-to-digital converter | |
SU809182A1 (en) | Memory control device | |
SU1056188A1 (en) | Generator of random numbers with uniform distributing |