Claims (1)
Фиг Изобретение относитс к автомати зированным системам управлени и вы числительной технике. Цель изобретени - повьппение надежности работы в услови х посто нных импульсных помех и расширение области применени устройства,, На фиг. 1 представлена функциональна схема устройства дл устранени дребезга контактов; на фиг,2 временные диаграммы напр жени . Устройство дл устранени дребез га контактов содержит генератор 1 импульсов и на каждый канал (первый второй и т.д.) логический элемент ИСКЛЮЧАЮЩЕЕ ИЛИ 2.1, 2.2, ,.., 2,п соответственно, счетчик 3 ,1 . ,3. 2,,. З.п соответственно5 а также логичес кий элемент И 4.1, 4,2, ..,, 4.п соответственно, В исходном состо нии, когда на входной шине удерживаетс логический О (фиг. 20., момент времени to, ti) на выходе логического элемента И 4 будет также логический О (фиг. 2г), наличие двух йулей на входе логического элемента 2 ИСКЛЮЧАЮЩЕЕ .ИЛИ дает нуль на его выходе (фиг, 2Ь),тем самым на вход V счетчика 3 подаетс сигнал, запрещающий счет импульсов с генерато ра 1 импульсов (фиг.25). Моменту времени tj соответствует включение контактов с длительностью дребезга Сцклг 9 при этом на выходе логического элемента ИСКЛЮЧАКЩЕЕ ИЛИ ,2 так же установитс логическа 1 (фиг. 2Ь), этим сигналом даетс раз решение на счет импульсон, поступаю щих на счетный вход С счетчика 3 д тех пор, пока на всех входах логического элемента И 4 не установитс сигнал Логической 1, соответстве но на выходе логического элемента И 4 также установитс сигнал логической 1 (фиг„ 21, момент времени t), который одновременно посту пит на вход логического элемента ИСКЛЮЧАМДЕЕ ИЛИ 2 и установит на е выходе сигнал логического О (фиг. и по входу V счетчика 3 запретит дальнейший импульсов. Если теперь на вход устройства подать логический О (момент време tt), то весь процесс повторитс только с той разницей, что на выход логи11еского элемента И 4 должен уст овитьс сигнал логического О, котоьш как и в первом случае сравниваетс логическим: элементом ИСКПЙЧАЩЕЕ Ш 2 и, когда входной и выходной сигналы окажутс одного уровн , на выходе логического элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 2 установитс сигнал логического О, который и запретит счет импульсов счетчика 3. Максимальна задержка выходного сигнала относительно входного в данном устройстве осуществл етс при изменении входного сигнала из логического О в логическую 1 и будет равна t;; Т 1 2 , где Т - период следовани импульсов генератора 1; п - количество разр дов счетчика 3; с - количество входов логического элемента И 4, а задержка переключени выходного сигнала из 1 в О по отношению к входному будет равна , где L - п-с счетчика количество выходов 3 не соединенных с входами элемента И 4, На фиг о 2й в моменты времени t. t-, И tg показаны импульсы помех, кото рыв, проход через логический элемент ИСКГПОЧАЮЩЕЕ ИЛИ 2, не оказывают вли ни на работу cxejsibi, так как эти сигналы поступают на вход V счетчика Зэ с помощью которого разрешаетс или запрещаетс производить счет импульсов ; поступающих на тактовый вход С, 3-5 как видно из (фиг.2Ь), люба приход ща помеха всегда устанавливает на входе V счетчика 3 сигнал, запрещающий его работу на врем , равное длительности этой помехи Формула изобретени Устройство дл устранени дребезга контактов, содержащее генератор и канал формировани , состо щий из счетчика и элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, первый вход которого соединен с входной шиной, а счетный вход счетчика - с выходом генератора, отличающеес тем, что, с целью повьпаени надежности работы б услови х посто ;нных импульсных помех и расширени области применени , в него дополнительно введено п-1 каналов формировани , причем в каждьш из п каналов формировани The invention relates to automated control systems and computing techniques. The purpose of the invention is to improve the reliability of operation in conditions of constant impulse noise and to expand the field of application of the device. In FIG. 1 is a functional diagram of an apparatus for debouncing contacts; FIG. 2 are timing charts. A device for eliminating the bounce of contacts contains a generator of 1 pulses and for each channel (first second, etc.) a logical element EXCLUSIVE OR 2.1, 2.2, ..., 2, n, respectively, counter 3, 1. 3 2 ,,. Z.p., respectively, 5 and the logical element AND 4.1, 4.2, .., 4. 4.p., Respectively, in the initial state, when logical O is held on the input bus (Fig. 20., the time to, ti) on the output of the logical element AND 4 will also be a logical O (fig. 2d), the presence of two yules at the input of the logical element 2 EXCLUSIVE. OR gives zero at its output (fig. 2b), thereby the signal prohibiting the counting of pulses is fed to the input V of the counter 3 from the pulse generator 1 (Fig. 25). The time tj corresponds to the switching on of contacts with the bounce duration Scklg 9 at the output of the logical element EXCLUSIVE OR, 2 also sets logical 1 (Fig. 2b), this signal gives the time for the account of the impulse input to the counting input C of the counter 3 d As long as the logical 1 signal is installed at all inputs of the logical element 4, the logical 1 signal is also installed at the output of the 4th logical element 4 (fig 21, time t), which is also connected to the input of the logic element KEY ORDE 2 and sets a logical O signal on its output (FIG. And input V of counter 3 prevents further impulses. If the logical O input is now applied to the device’s input (time tt), then the whole process is repeated with the difference that the logical element 4 And 4 should establish a logical O signal, which, as in the first case, is compared with a logical element: EXTREME W 2 and, when the input and output signals turn out to be of the same level, the logical EXO signal 2 will be set at the output of the logical element EXCLUSIVE OR 2 and disables the counting of the pulses of the counter 3. The maximum delay of the output signal relative to the input signal in this device occurs when the input signal changes from logical O to logical 1 and will be equal to t ;; T 1 2, where T is the period of the following pulses of the generator 1; n is the number of bits of the counter 3; c is the number of inputs of the logic element AND 4, and the delay in switching the output signal from 1 to O with respect to the input will be equal, where L is the pc of the counter, the number of outputs 3 not connected to the inputs of the element I 4, t. t-, and tg shows the interference pulses that pass through the logical element SPARKS OR 2, do not affect the operation cxejsibi, since these signals are fed to the input V of the counter Ze by which the pulse is allowed to be counted; arriving at the clock input C, 3-5 as can be seen from (FIG. 2b), any incoming interference always sets at the input V of the counter 3 a signal that prohibits its operation for a time equal to the duration of this interference Formula of the invention The device for eliminating contact bounce, containing a generator and a formation channel, consisting of a counter and an EXCLUSIVE OR element, the first input of which is connected to the input bus, and the counter input of the counter - with the output of the generator, characterized in that, in order to ensure the reliability of fixed pulse conditions omeh and scope expansion it additionally introduced n1 forming channels, wherein in forming kazhdsh of n channels
312692/.44312692 / .44
введен логический элемент И, входы входом элемента ИСЖЛЮЧЛРИЛ ИЛИ, ныкоторого .соединены с разр дными вы- ход которого соединен с входами заходами счетчика, а выход - с вторым прета счетчика.A logical element I was introduced, the inputs of the element ISKLYUCHRIL OR, now connected to the bit, the output of which is connected to the inputs of the counter, and the output to the second counter of the counter.