(54) ЦИФРОВОЕ УСРЕДНЯЮЩЕЕ УСТРОЙСТВО Изобретение относитс к вычиспите ь ной технике н может быть применено дл статических исследований случайных процессов в низкочастотной обпастн. Известно устройство l дл усредне ни случайного процесса, содержащее аналого-цифровой преобразователь (АЦП) вычитатель, Триггер, реверсивный счетчик, сумматор - вычктатель с триггером знака, блок управлени , блок перезаписи и регистр. Наиболее близким по технической сущ ности к изобретению вл етс цифровое усредн ющее устройство 2 , содержащее накапливающий сумматор, счетчик замеров, нуль - орган, тритт, блок управлени , блок пам ти и генератор им пульсов. Недостатками таких устройств вл ют . с спожность и низка точность работы. Целью вэобретениа вл етс пс1вышенив точвостн работы и упрощение устрой ства. Поставленна цель достигаетс тем, что в цифровое усредн ющее устройство введены первый и второй реверсивные счетчики, блок сравнени и И. Первый выход блока управлени подключен к первым входам элемента И, накапливающего сумматора, ко входу установки в нуль триггера и к счетному входу счетчика замеров, выход которого соединен со вторым входом накапливающегч сумматора, третий вход которого объединен с информац1ЕЮНным входом первого реверсивного счетчика и подключен ко второму выходу 6jioKa управлени , вход которого соединен с выходом блока сравнени , первый вход которого подключен к выходу накапливающего сумматора. Второй вход блока сравнени объединен со входом нуль-органа и подключен к выходу второго реверсивного счетчика, первый вход которого вл етс входом устройства. Выход Нуль-органа соединен со входом установки в единицу триггера, выход которого подключен к управл ю37 щим входам первого и второго реверсивных счетчиков. Второй вход второго; реверсивного счётчика подключен к выходу элемента И, Второй вход которого соединен о выходом первого реверсивного счетчика и вл етс выходом устройства . . Структурна схема устройства представлена на чертеже. Устройство содержит накапливающий сумматор 1, счвтчик замеров 2, триг .гер 3, блок 4 управлени , первый, и вто рой реверсивные счетчики 5, 6, блок 7 сравнени , элемент И 8, нуль-орган 9, Устройстёо реализует рекуррентньтй алгоритм, не содержащий делени . Устройство работает следующим образом . В исходном положении все устройства наход тс в нулевом состо нии, кроме счетчика 5, в старщем разр де которого записываетс единица, т.е. - число 2 равное половинноыузначейШб тапазона входных чисел. Так как в первом счетчике всегда находитс текущее среднее значение потока входных чисел, то данное число можно рассматривать в качестве AQ . Оно никоим образом не вли ет на последующий результат и утрачиваетс после первого же усреднени , но его введение Целесообразно. Каждый цикл усреднени начинаетс с по влением начального импульса на выходе блока 4 управлени . Этот т пульс увеличивает содержимое счетч.ика замеров на единицу, сбрасывает в нул сумматор 1 и триггер 3 и замыкает элемент И 8 на врем своей длительности . В результате содержимое счетчиKia 5 записываетс в счетчик 6. Нулевое состо ние триггера 3 определ ет режим вычитани дл счетчиков 5 и 6. По окончанииначатлэного импуЛьса на вход устройства подаетс , пачка импульсовв количестве, пропорционально текущему значению входного сигнала X Эти импульсы вычитаютс в счетчике 6 из кода среднего значени предыдущих поступлений, т .е. из , в соответ ствии с правой частью первого выражени алгоритме (1). TaKrovt образом,при первом усреднен они вычитаютс из А Q . Бели А . Л . то в счетчике 6 фиксируетс отрицатель на разность, и состо ние триггера 3 не мен етс , вследствие чего на его выходе остаетс тот же потенциал, определ ющий режим вычитани . Если Л р{. п то при вычитании содержимое счетчика 6 в какой - то момент уменьщитс до нул . Этот момент регистрируетс нуль-органом 9, переключакэщимтриггер 3 в единичное состо ние и мен оощим, таким образом, потенциал на выходе триггера 3, т.е. счетчики 6 и 5 переключаютс в режим суммировани . Поэтому оставша с часть импульсов от входного значени X суммируетс счетчиком 6 и фиксируетс как положительна разность. После этого блок 4 управлени на.чинает вырабатывать тактовые импульсы, « которые поступают на тактовый вход сумматора 1. В результате в сумматоре происходит накопление кода номера замера , т.е. код. замерасуммируетс сам с собой столько раз,, сколько будет выработано тактовых импульсов. Накопленна сумма непрерывно сравниваетс с разностью, зафиксированной в счетчике 6. Как только эти величины сравн ютс , или же сумма превысит разнбсть, блок 7 сравнени вьфабатывает запрет на щину . 13 блока 4 управлени . В этот момент накопленна сумма будет равна .-п в соответствии с левой частью первого равенства алгоритма (1 ), где п номер замера, а - чисел тактовых импульсов, вьфаботанных блоком 4 управлени . . Поскольку тактовые импульсы одновременно поступают и на счетный вход счетчика 5, то они либо вычитаютс из кода наход щегос в счетчике 5, либо прибавл ютс к этому коду в зависимости от потёнциапа на выходе триггера 3|Как было указано выше (если в счетчике 6 была зафиксирована отрицательна разность , то тактовые импульсы всчетчике 5 вычитаютс из кода А И - наоборот ) . Таким образом, счетчик 5 реализует второе равенство алгоритма (1). На этом цикл усреднени заканчиваетс .С. С наступлением нового цикла по вл етс начальный импульс на выходе блока 4, который увеличивав код номера замера до (n+l), сбрасыбаёт в нуль сумматор I и триггер 3 и разрещает запись в счетчик 6 через элемент И 8 кода Лр с выхода счетчика 5. В дальнейшеам цикл работы устройства повто етс .(54) DIGITAL AVERAGING DEVICE The invention relates to a computing technique and can be used for static studies of random processes in a low-frequency environment. A device l is known for averaging a random process containing an analog-to-digital converter (A / D converter) subtractor, trigger, reversible counter, combinator adder with sign trigger, control unit, rewriter unit, and register. The closest in technical terms to the invention is a digital averaging device 2, which contains an accumulator, a meter, a zero, an organ, tritt, a control unit, a memory unit, and a pulse generator. The disadvantages of such devices are. With accuracy and low accuracy. The purpose of the invention is a p1 elevation of operation and simplification of the device. The goal is achieved by the fact that the first and second reversible counters, a comparison unit and an I are entered into the digital averaging device. The first output of the control unit is connected to the first inputs of the AND element, the accumulating adder, to the input of the zero setting of the trigger, the output of which is connected to the second input of the accumulating adder, the third input of which is combined with the information input of the first reversible counter and connected to the second control output 6jioKa, the input of which is connected to the output Lok comparator having a first input connected to the output of the accumulator. The second input of the comparison unit is combined with the input of the null organ and connected to the output of the second reversible counter, the first input of which is the input of the device. The output of the zero-organ is connected to the input of the installation in the trigger unit, the output of which is connected to the control inputs of the first and second reversible counters. The second entrance of the second; the reversible counter is connected to the output of the element I, whose second input is connected to the output of the first reversible counter and is the output of the device. . The block diagram of the device is shown in the drawing. The device contains accumulator adder 1, measurement counter 2, trigger 3, control block 4, first, and second reversible counters 5, 6, comparison block 7, AND 8 element, null organ 9, the Device implements a recurrent algorithm that does not contain division. The device works as follows. In the initial position, all devices are in the zero state, except for counter 5, in the first digit of which one is written, i.e. - the number 2 is equal to the half-digit number of the input numbers. Since in the first counter there is always the current average value of the stream of input numbers, this number can be considered as AQ. It does not in any way affect the subsequent result and is lost after the first averaging, but its introduction is advisable. Each averaging cycle begins with the appearance of an initial pulse at the output of control unit 4. This pulse increases the content of the meter counter by one, resets adder 1 and trigger 3, and closes the AND 8 element for the duration of its duration. As a result, the contents of the Kia 5 are written to counter 6. The zero state of trigger 3 determines the subtraction mode for counters 5 and 6. Upon completion of the start pulse, the device is fed a number of pulses in proportion to the current value of the input signal X These pulses are subtracted in counter 6 from the code of the average value of previous receipts, i .e. of, in accordance with the right side of the first expression to algorithm (1). TaKrovt way, with the first averaged they are subtracted from A Q. Beli A. L then in the counter 6 the negative is fixed to the difference, and the state of the trigger 3 does not change, as a result of which the same potential defining the subtraction mode remains at its output. If l p {. Then, when subtracting, the contents of counter 6 at some point decrease to zero. This moment is recorded by the zero-body 9, switching the trigger 3 to a single state and changing, thus, the potential at the output of the trigger 3, i.e. counters 6 and 5 are switched to the summation mode. Therefore, the remaining part of the pulses from the input value X is summed by counter 6 and is fixed as a positive difference. After that, the control unit 4 starts producing clock pulses “that arrive at the clock input of the adder 1. As a result, the accumulator numbers code accumulates in the adder, i.e. code. It counts itself with itself as many times as the clock pulses will be generated. The accumulated amount is continuously compared with the difference recorded in meter 6. As soon as these values are equal or the amount exceeds the difference, block 7 compares the ban on splint. 13 unit 4 controls. At this moment, the accumulated amount will be equal. -N in accordance with the left part of the first equality of the algorithm (1), where n is the number of the measurement, and is the number of clock pulses that the test unit 4 controls. . Since the clock pulses simultaneously arrive at the counting input of counter 5, they are either subtracted from the code in counter 5 or added to this code depending on the potential at the output of trigger 3 | As mentioned above (if in counter 6 was fixed if the difference is negative, the clock pulses in the counter 5 are subtracted from the code A, and vice versa). Thus, counter 5 implements the second equality of algorithm (1). At this averaging cycle ends. With the onset of a new cycle, an initial impulse appears at the output of block 4, which, by increasing the measurement number code to (n + l), resets the adder I and trigger 3 and allows writing to counter 6 through the And 8 element of the Lr code from the counter 5 In the following, the operation cycle of the device is repeated.