11 Изобретение относитс к автоматик и вычислительной технике и может быт использова-но дл организации ручного ввода информации в вычислительное или управл ющие устройства. , Цель изобретени - повышение надежности путем повышени помехоустой чивости. На чертеже изображена функциональ на схема устройства. Устройство содержит элемент И 1, счетчик 2, дешифратор 3, блок А коммутационных элементов, первый блок 5 элементов ИЛИ, регистр 6, шифратор 7 второй блок 8 элементов ИЛИ, первый формирователь 9, триггер 10, элемент ИЛИ 11, элемент 12 задержки, второй формирователь 13. Устройство работает следующим образом , . На первый-вход элемента И 1 поступают тактовые импульсы от устройства , в которое вводитс информаци . В исходном состо нии на втором вход элемента И.1 имеетс уровень 1, и импульсы,поступающие на его первый вход, проход т на вход счетчика 2. Код на выходе счетчика 2 мен етс с приходом каждого тактового импульса и через дешифратор 3- включает поочередно одну из групп .блока 4 коммутационных элементов. В исходном состо нии все коммутационные элементы разомкнуты , на всех входах блока 5 эле ментов ИЛИ и информационных входах регистра 6 имеетс уровень О, регистр 6 и триггер 10 наход тс в сброшенном состо нии, следовательно, на выходе элемента ИЛИ 11 будет уровень О, на инверсном выходе элемента 12 задержки - уровень 1, который поступает на второй вход элемента И 1. При замыкании одного из коммутационных элементов блока А счетчик 2 продолжает счет тактовых импульсов до тех пор, пока код на его выходе не совпадет с кодом, соответствующим группе коммутационных элементов блока 4 в соответствии с таблицей состо ний дешифратора 3. При этом уровень 1 с выхода дешифратора проходит через замкнутый коммутационный элемент блока 4 и поступает на один из входов блока 5 и на один из информационных входов регистра 6. С выхода блока 5 уровень проходит через элемент 11 на элемент 12 за2 держки, где инвертируетс , и уровень О поступает на второй вход элемента И 1 . После этого элемент И 1 не пропускает тактовых импульсов на вход счетчика 2, последний останавливаетс , и код на его выходе соответствует группе, в которой замкнут коммутационный элемент. Одновременно устанавливаетс один из триггеров регистра 6. Сигнал от него поступает на вход шифратора 7 и на выходе последнего устанавливаетс код, соответствующий номеру замкнутого коммутационного элемента в группе. Сигнал от регистра 6 поступает через блок элементов ИЖ 8 на вход формировател 9, на выходе которого по вл етс импульс, поступающий на вход установки триггера 10. Уровень 1 с выхода триггера 10 проходит через элемент ИЛИ 11 и поступает на вход элемента 12. Врем задержки среза импульса в элементе 12 выбираетс таким, чтобы оно превьш1ало разницу времени прохождени сигнала через блок 5 и времени прохождени сигнала через регистр 6, блок 8, формирователь 9, триггер 10 и элемент 11. Благодар этому при наличии дребезга контактов коммутационного элемента в момент замыкани первый имбезгом , проходит на элемент 12 задержки среза импульса и останавливает работу счетчика 2, а по окончании процесса переключени регистра 6, блока 8, формировател 9, триггера 10 и элемента 11 на входе элемента 12 задержки устанавливаетс уровень 1, поступающий на устройство, в которое вводитс информаци . Устройство считывает код с выхода счетчика 2 и шифратора 7, после чего сбрасывает триггер 10, подава сигнал на его вход сброса. После этого возможно два слича . В первом случае коммутационный элемент блока 4, который был до этого замкнут, остаетс замкнутым. Тогда на одном из входов блока 5 сохран етс уровень 1, элемент 11 пропускает этот уровень на вход элемента 12 задержки , на втором входе злемента И 1 имеетс уровень О и счетчик 2 сохран ет свое состо ние. Защита от помех при размыкании коммутационного элемента блока 4 обеспечиваетс тем,. что врем задержки среза импульса выбираетс большим, чем интервал времени между двум соседними импульсами помех. Дл безусловного выполнени этого услови врем задержки среза i импульса должно быть больше времени переключени коммутационного элемента . Раст нутые во времени импульсы помех перекрываютс , на вход элемента И 1 поступает уровень О, и счетчик 2 сохран ет свое состо ние. После завершени помех при размыкании ком-. мутационного элемента блока 4 уровень О с выхода блока 5 через элемент 11 проходит на вход элемента 12 задержки и через интервал времени, равный времени задержки, уровень 1 с выхода элемента 12 поступает на второй вход элемента И 1, разреша работу счетчика 2. Одновременно формирователь 13 вырабатывает импульс, сбрасывающий триггеры регистра 6, и устройство ввода информации приходит в исходное состо ние.11 The invention relates to automation and computing and can be used to organize manual entry of information into computing or control devices. , The purpose of the invention is to increase reliability by improving noise immunity. The drawing shows the functional scheme of the device. The device contains an element AND 1, a counter 2, a decoder 3, a block A of switching elements, a first block 5 of elements OR, a register 6, an encoder 7 a second block 8 of elements OR, a first driver 9, a trigger 10, a element OR 11, a delay element 12, a second shaper 13. The device works as follows,. At the first input element And 1 receive clock pulses from the device into which information is entered. In the initial state, the second input of element I.1 has a level 1, and the pulses arriving at its first input pass to the input of counter 2. The code at the output of counter 2 changes with the arrival of each clock pulse and through the decoder 3- turns on alternately one of the groups .block 4 switching elements. In the initial state, all switching elements are open, at all inputs of block 5 of the OR elements and information inputs of register 6 there is a level O, register 6 and trigger 10 are in a reset state, therefore, at the output of the element OR 11 there will be level O, inverse output of the delay element 12 - level 1, which arrives at the second input of the element I 1. When one of the switching elements of the block A is closed, counter 2 continues counting the clock pulses until the code at its output matches the code corresponding to the group switching elements of block 4 in accordance with the state table of the decoder 3. In this case, the level 1 from the output of the decoder passes through the closed switching element of block 4 and goes to one of the inputs of block 5 and to one of the information inputs of the register 6. From the output of block 5 through the element 11 to the element 12 of the holder, where it is inverted, and the level O is fed to the second input of the element I 1. After that, the AND 1 element does not pass the clock pulses to the input of the counter 2, the latter stops, and the code at its output corresponds to the group in which the switching element is closed. At the same time, one of the triggers of register 6 is established. The signal from it is fed to the input of the encoder 7 and the output of the latter is set to the code corresponding to the number of the closed switching element in the group. The signal from register 6 enters through a block of elements of the IL 8 to the input of the imager 9, the output of which is a pulse arriving at the input of the trigger setup 10. Level 1 from the output of trigger 10 passes through the element OR 11 and enters the input of the element 12. Delay time the pulse slice in element 12 is chosen so that it exceeds the difference between the time the signal passes through block 5 and the time the signal passes through register 6, block 8, driver 9, trigger 10 and element 11. Due to this, there is a bounce of switching contacts At the moment of closing, the first signal passes to the pulse cutoff delay element 12 and stops the operation of counter 2, and after the register switching process 6, block 8, driver 9, trigger 10 and element 11 is completed, input level 1 is set to the device into which the information is entered. The device reads the code from the output of the counter 2 and the encoder 7, then resets the trigger 10, giving a signal to its reset input. After that, two possible. In the first case, the switching element of block 4, which was previously closed, remains closed. Then at one of the inputs of block 5, level 1 is saved, element 11 passes this level to input of delay element 12, at the second input of element I 1 there is level O and counter 2 retains its state. Protection against interference in the opening of the switching element of the block 4 is provided by. that the delay time of the pulse slice is chosen longer than the time interval between two adjacent interference pulses. To satisfy this condition unconditionally, the cut-off delay time i of the pulse must be greater than the switching time of the switching element. The time-spread interference pulses overlap, the O level arrives at the input of the AND 1 element, and the counter 2 retains its state. After the completion of interference when opening com-. mutational element of block 4 level O from the output of block 5 through element 11 passes to the input of delay element 12 and after a time interval equal to the delay time, level 1 from the output of element 12 enters the second input of element I 1, allowing counter 2 to work. At the same time, driver 13 produces a pulse resetting the triggers of register 6, and the input device returns to its initial state.
Во втором случае коммутационный элемент блока 4 в момент сбрасывани триггера 10 уже разомкнут. Тогда уровень О проходит через элемент 11 на вход элемента 12 задержки среза импульса и через интервал времени, равный времени задержки, уровень 1 с выхода элемента 12 поступает на второй вход элемента И 1, разреша работу счетчика 1. Одновременно формирователь 13 вырабатывает импульс, сбрасывающий триггеры регистра 6, и устройство ввода информации приходит в исходное состо ние.In the second case, the switching element of block 4 at the time of dropping trigger 10 is already open. Then the level O passes through the element 11 to the input of the element 12 of the pulse slice cutoff and after a time interval equal to the delay time, the level 1 from the output of the element 12 enters the second input of the element I 1, allowing the counter 1 to work. At the same time, the imaging unit 13 generates a pulse resetting the triggers register 6, and the input device returns to its original state.
Дл уменьшени числа логических элементов можно использовать блок 5 элементов с дополнительным входом, подключенным к выходу триггера 10, Выход блока 5 подключаетс к входу элемента 12, а элемент 11 исключаетс . Работа такого варианта схемы не отличаетс от описанной.To reduce the number of logic elements, a block of 5 elements can be used with an additional input connected to the output of trigger 10, the output of block 5 is connected to the input of element 12, and element 11 is eliminated. The operation of such a variant of the scheme does not differ from that described.