Изобретение относитс к цифровой электроизмерительной технике и может быть использовано в многоканальных телеметрических системах и системах автоматического контрол дл преобразовани информации от датчиков, частота : сигналов на выходе которых мен етс в широком диапазоне. Известно устройство дл преобразова ни частоты в код, содержит ге нератор эт ШО1шой частоты, счетчик импульсов эталонной частоты, формирователь импульсов, счетчик импульсов измер емой частоты, блок выходных ключей , дешифратор, шифратор, элементы ИЛИ, триггеры и элементы И l. Недостатками этого устройства вл с низкое быстродействие при заданной точности, а также ограниченность его грименени . Наиболее близким к изобретению по TexfuwecKou сущности вл етс устройство дл преобразовани частоты в код, содержащее генератор импульсов эталон НОЙ частоты, элементИ, два триггера, фсрмирователь импульсов, счетчик импульсов эталонной частоты, блок кйючей, элемент ИЛИ, счетчик импульсов измер емой частоты н блок автоматического масщтаб}фовани 2 . Однако в устройстве врем измерений определ етс подсчетом числа импульсов эталонной часахзты, щж KOTqpoM достигаетс требуема точность. Счет числа импульсов Э1алонной частоты продолжаетс до целого числа периодов измер емой частоты, кратного системе счислени , 1ФЮ1ЯТОЙ в устройстве, при котором происходвгг окончание измерени , что снижает быстродействие устройства. Цель изобретени - повьаиение быстродействи при обеспечении заданной точности. Поставленна цель достигаетс тем, что в устройстве дл преобразовани частоты в код, содержащее генератор импульсов эталонной частоты, элемент И, счетчик импульсов эталонной частоты, два триггера, блок ключей, формирователь импульсов, блок автоматического масштабировани , счетчик импульсов измер емой частоты и элемент ИЛИ, выход генератора импульсов эталонной частоты соединен с одним из входов элемента И, второй вход которого соеди нен с Выходом первого триггера, а выход - с входом счетчика импульсов эталонной частоты, выходы которого соединены с первой группой входов блока ключей, нулевой вход первого триггера соединен с нулевым входом второго TpH гера, выход которого соединен с одним из входов формировател импульсов, вто рой вход которого вл етс входом устройства , а вьаод - соединен с единичны входом первого триггера, первым входом блока автоматического масштабировани и входом счетчика импульсов измер емо частоты, выходы разр дов которого соед нены с вторыми входами блока автомати ческого масштабировани , первые выход которого соединены с второй группой вх дов блока ключей, третий вход блока автоматического масштабировани соединен с единичным входом второго три , который вл етс управл ющим вх дом устройства, введены третий триггер и дополнитешэный блок автоматического масштабировани , первый вход которого соединен с выходом элемента И, вторые входы - с выходами счетчика им пульсов эталонной частоты,;старший раз р д которого подключен к четвертому входу блока автоматического масштабировани , третий вход дополнительного блока автоматического масштаб1фовани соединен с единичньш входом второго триггера, четвертый вход - с выходом старшего разр да счетчика импульсов измер емой частоты, выходы разр дов которого .соединены с первой группой дополнительных; входов блока ключей, втора rpyrata дополнительных входов которого соединена с первыми выходами дополнительного блока ЕШТОматического масштабировани , второй выход которого подключен к первым входам элемента ИЛИ и третьего триггера , вторые входы которых подключены к второму выходу блока автоматического масштабировани , выход элемен та ИЛИ соединен с нулевыми входами первого и второго триггеров, управл ющий вход блока ключей соединен с выхо дом третьего триггера. На фиг. 1 представлена функциональна схема устройства; на фиг. 2 - функциональна схема блока автоматического масштабировани . Устройство содержит генератср I импульсов эталонной частоты, элемент 2 И, триггеры 3 и 4, формирователь 5 импульсов , счетчик 6 импульсов эталонной частоты , блок 7 ключей, элемент ИЛИ 8, счетчик 9 импульсов измер емой частоты и блок 1О автоматического масштабировани . Его входы первый 11 и второй 12, .первый Выход 13, третий вход 14, четвертый вход 15, второй выход 16, триггер 17, дополнительный блок 18 автоматического масштабщэовани , его входы 19 - первый, 20 - второй, первый выход 21, третий вход 22, четвертый вход 23 и второй вь1ход 24. Блок Ю автоматического масштабировани как и блок 18 может иметь, например, следующий состав: первый элемент И 25, элементы ИЛИ 26, триггеры 27, дешифратор 28, счетчик 29 масштаба- и второй элемент И ЗО. При этом вход 11 блока Ю соединен с одним из входов элемента И 25, остальные входы которого соединены с выходами элементов ИЛИ 26, первые входы которых соединены с выходами триггеров 27, а входы - с входами 12 блока 1О. Вход 14 блока Юсоединен с единичными входами триггеров 27, нулевые входы которых соединены с соответствующими выходами дешифратора 28. Входы деш ич ратора 28 соединены с выходами счетчика 29 масштаба и выходами 13 блока Ю Выход 16 блока Ю соединен с выходом элемента И О, первый вход которого соединен с выходом элемента И 25 и входом счетчика масштаба 29, а втсрой вход - с входом 15 блока 10. Устройство работает следующим образом . На управл ющий вход устройства поступает сигнал Начало преобразовани . По этому сигналу триггер 4 и триггеры 27 блоков 10 и 18 устанавливаютс в состо ние I. Потенциальный сигнал с выхода триггера 4 дает разрешение на щзохождение измер емого сигнала через формирователь 5 импульсов, импульсы с выхода которого поступают на счетчик 9 импульсов измер емой частоты, 3 и элемент И 25 блока 10. Фронтом первого импульса триггер 3 устанавливаетс в состо ние I, потенциальный сигнал котсрого псхзтупает на эпеMeirr И 2 и разрешает прохождение импульсов эталонной частоты от генераTqpa 1 на счетчнк 6 и вход элемента t И 25 блока 18, Выход каждого счетчиков 6 и 9 подключен к соответствующему элементу ИЛИ 26 блоков 10 и 18. Триггеры 27 в хфоцессе измерени в соответствии ссосто нием счетчиков 29 масштаба и дешифраторов 28 последовательно , начина с младшего разр да, перебрасываютс в состо ние О. В результате такого подключени сигнал с выхода элемента И 25 в блоках 1О и 18 поступает в соответствующий счетчик 29 масштаба и на вход элемента И ЗО только в те моменты времени, ког да содержимое счетчиков 6 и 9 кратно основанию системы счислени , прин той в устройстве, а содержимое счетчика 29 масштаба соответствует логарифму этого числа. Окончание преобразовани происходит или при на;1ичии в счетчике 6 числа N Муу,„ , где Ы - количество импульсов эталонной частоты; Nh,4n минимальное количество импульсов эталонной частоты, обеспечивающее заданну точность измерени , и по влении сигнала на выходе элемента И 25 блока ,10, или ирк наличии в счетчике 9 числа ДЛЪ ЛЛу„ где М - количество импульсов измер емой частоты; M(y,,{j - минимальное колич ство импульсов измер емой частоты, обе печивающее заданную точность измерени ( VYJIH NvMivi ) и по влении сигнала на выходе элемента И 25 блока 18. Дл исключени дополнительных преоб разований над кодом, эквивалентным периоду (частоте) измер емого сигнала, частота генератора 1- беретс равной где А - основание системы счислени , прин той в устройстве; К - целое число, которое определ етс из требуемого быстродействи и точности измерений. Период измер емой частоты соответст Т г N. FIThe invention relates to digital electrical measuring technology and can be used in multichannel telemetry systems and automatic control systems for converting information from sensors, frequency: the output signals of which vary over a wide range. A device for converting a frequency into a code is known, it contains a generator of SHO1 frequency, a pulse counter of the reference frequency, a pulse shaper, a pulse counter of the measured frequency, a block of output keys, a decoder, an encoder, OR elements, triggers, and AND elements. The disadvantages of this device are its low speed with a given accuracy, as well as its limited nature. The closest to the invention according to TexfuwecKou entity is a device for frequency conversion into a code containing a pulse generator reference frequency standard, element, two triggers, pulse generator, reference frequency pulse counter, OR block, measured frequency pulse counter n automatic block Scale} 2. However, in the device, the measurement time is determined by counting the number of pulses of the reference clock, and the required accuracy is achieved with KOTqpoM. The counting of the number of pulses of the frequency of E1 is continued up to an integer number of periods of the measured frequency that is a multiple of the number system in the device at which the end of the measurement occurs, which reduces the speed of the device. The purpose of the invention is to improve the speed while ensuring the specified accuracy. This goal is achieved by the fact that in a device for converting a frequency into a code containing a reference frequency generator, element AND, a reference frequency pulse counter, two triggers, a key block, a pulse shaper, an automatic scaling unit, a pulse counter of the measured frequency, and an OR element, the output of the pulse of the reference frequency is connected to one of the inputs of the element I, the second input of which is connected to the Output of the first trigger, and the output to the input of the pulse counter of the reference frequency, the outputs of which connected to the first group of inputs of the key block, the zero input of the first trigger is connected to the zero input of the second TpH hera, the output of which is connected to one of the inputs of the pulse former, the second input of which is the device input, and the video input is connected to the single inputs of the first trigger, the first the input of the automatic scaling unit and the input of the pulse counter of the measured frequency, the outputs of which bits are connected to the second inputs of the automatic scaling unit, the first outputs of which are connected to the second group of inputs the key block, the third input of the automatic scaling unit is connected to the single input of the second three, which is the control input of the device, the third trigger and the additional automatic scaling block are entered, the first input of which is connected to the output of the AND element, the second inputs to the pulse counter outputs the reference frequency,; the higher time series of which is connected to the fourth input of the automatic scaling unit; the third input of the additional automatic scaling unit is connected to the single input the second trigger, the fourth input — with the output of the higher bit of the pulse counter of the measured frequency, the outputs of which are connected to the first group of additional ones; inputs of the key block, the second rpyrata of the additional inputs of which are connected to the first outputs of the additional ESHTOmatic scaling unit, the second output of which is connected to the first inputs of the OR element and the third trigger, the second inputs of which are connected to the second output of the automatic scaling unit, the output of the OR element is connected to zero inputs the first and second triggers, the control input of the key block is connected to the output of the third trigger. FIG. 1 shows a functional diagram of the device; in fig. 2 - the automatic scaling block is functional. The device contains a generator of I pulses of the reference frequency, element 2 AND, triggers 3 and 4, shaper 5 pulses, counter 6 pulses of the reference frequency, block 7 of keys, element OR 8, counter 9 of pulses of the measured frequency and block 1O of automatic scaling. Its inputs are the first 11 and the second 12, the first Output 13, the third input 14, the fourth input 15, the second output 16, the trigger 17, the additional block 18 of automatic scaling, its inputs 19 are the first, 20 are the second, the first output 21, the third input 22, the fourth input 23 and the second input 24. The automatic scaling unit Yu, as well as the unit 18, may have the following composition: the first element AND 25, the elements OR 26, the triggers 27, the decoder 28, the scale counter 29 and the second element AND AOR . The input 11 of the unit Yu is connected to one of the inputs of the element And 25, the remaining inputs of which are connected to the outputs of the elements OR 26, the first inputs of which are connected to the outputs of the trigger 27, and the inputs to the inputs 12 of the block 1O. The input 14 of the block is connected to the single inputs of the flip-flops 27, the zero inputs of which are connected to the corresponding outputs of the decoder 28. The inputs of the descriptor 28 are connected to the outputs of the scale counter 29 and the outputs 13 of the block Yu. The output 16 of the block Yu is connected to the output of the element IO, the first input of which connected to the output of the element And 25 and the input of the counter scale 29, and all the input - to the input 15 of the block 10. The device works as follows. The control input of the device receives the Start of Conversion signal. According to this signal, trigger 4 and triggers 27 of blocks 10 and 18 are set to state I. A potential signal from the output of trigger 4 gives permission to the measured signal through the driver 5, pulses from the output go to counter 9 pulses of the measured frequency, 3 and element 25 of block 10. With the front of the first pulse, trigger 3 is set to state I, the potential signal is left on eMeirr AND 2 and allows the passage of pulses from the reference frequency from generator Tqpa 1 to counter 6 and the input of element t and 25 of block 18, Output each of the counters 6 and 9 is connected to the corresponding element OR 26 of blocks 10 and 18. Triggers 27 in the measurement process in accordance with the state of the scale counters 29 and decoders 28 sequentially, starting with the lowest bit, are transferred to the state O. As a result of this connection from the output of the element And 25 in blocks 1O and 18 enters the corresponding counter 29 of the scale and to the input of the element AND AOR only at those times when the contents of counters 6 and 9 are multiples of the base of the number system received in the device, and the contents of the counter 29 scale corresponds to the logarithm of this number. The end of the conversion occurs either when on; 1 in the counter 6 of the N Muy number, “where Y is the number of pulses of the reference frequency; Nh, 4n is the minimum number of pulses of the reference frequency, which ensures the specified accuracy of measurement, and the appearance of the signal at the output of the element I 25 block, 10, or irk presence in the counter 9 of the number M (y ,, {j is the minimum number of pulses of the measured frequency, which provides the specified measurement accuracy (VYJIH NvMivi) and the signal at the output of the element And 25 of the block 18. To exclude additional transformations over the code equivalent to the period (frequency) the measured signal, the frequency of the oscillator 1 is equal to where A is the base of the number system received in the device; K is an integer that is determined from the required speed and accuracy of measurements. The period of the measured frequency corresponds to T g N. FI
где TV - период измер емой частоты;where TV is the period of the measured frequency;
- код, записанный в счетчике 29 - code recorded in the counter 29
масштаба блока Ю. Исход из услови FQ А, получаемthe scale of the block Y. Proceeding from the condition FQ A, we get
Т-. l A --WA - T-. l A --WA -