Claims (2)
кэ Изобретение относитс к вычислительной технике и может быть исполь зовано дл ввода информации с двухпозиционных датчиков в АСУ ТП. Целью изобретени вл етс упрощение устройства. На фиг. 1 представлена структрна схема устройства дл ввода информации; па фиг. 2 - схема формировател импульсов; на фиг. 3 - схема клавиатуры; на фиг. 4 - временна диаграм ма работы устройства. Устройство содержит (фиг. I) клавиатуру , регистр 2, первьй формирователь 3 импульсов, генератор 4, блок 5 определени четности, второй формирователь 6 импульсов, элемент ШМ 7, выход 8 управл ющий, выход 9 информационный. Формирователь содержит (фиг. 2) первый триггер 10, второй триггер И элемент НЕ 12, элемент И 3, вход 14 информационный, вход 15 синхронизации , выход 16, Устройство работает следующим образом . С клавиатуры на входы регистра 2 и блока 5 определени четности посту пает двоичный код, в котором 1 соответствует незамкнутому состо нию контактной пары, О - замкнутому. Дл примера возьмем исходное состо ние клавиатуры с четным количеством 1 в коде, причем перва контактна пара замкнута, а К - разомкнута (фиг. 4). В этом случае на пр мом выходе блока 5 определени присутствует О уровень, на инверсном - 1 уровень сигнала. Следовательно, на ft-входах триггеров 10 и 11 формировател 3 присутствует низкий О уровень сигнала и оба триггера наход тс в исходном состо нии. На R-входах триггеров в формирователе 6 присутствует высокий уровень и оба триггера наход тс в 1 состо нии, так как на D-вход триггера 10 подаетс уровень логической 1, D-вход триггера 11 соединен с выходом триггера 10, а на входы 15 обоих формирователей посто нно поступают сигналы с генератора 4. I При размыкании контактной пары через врем Tjp, определ емое дребезгом контактов, на выходах блоков 5 устанавливаютс сигналы, инверсиь е по отношению к их предьшущему состо нию. Во врем действи переходного процесса триггеры обоих формирователей устанавливаютс в исходное О состо ние. Период следовани сигналов с генератора выбираетс , исход из соотношени Т, Т . Следовательно, ни один из формирователей не может сформировать сигнал на выходе до окончани переходного процесса. Через врем Т,р на входе формировател 6 устанавливаетс низкий уровеньJ блокирующий его запуск , а на входе формировател 3 высокий . По перепаду очередного синхросигнала триггер 10 формировател 3 .установитс в 1 состо ние. Следующий синхросигнал через элементы НЕ 12 и И 13 поступает на выход формировател , а по заднему фронту перебрасывает триггер 11 в 1 состо ние. Такое состо ние триггеров 10 и 11 подтверждаетс последующими синхросигналами . Сигнал с вькода формировател 3 поступает через элемент ИЛИ 7 на выход 8 и одновременно на управл ющий вход регистра 2. Таким образом, в регистр записываетс установившеес значение кода с клавиатуры и одновременно контрольный разр д с инверсного выхода блока определени четности. При замыкании контактной группы К блокируетс по запуску формирователь 3, в то врем как с выхода формировател 6 сигнал через элемент ИЛИ 7 организует запись кода с клавиатуры и соответственно контрольного разр да в регистр. Таким образом, блок определени четнос;ти при таком включени позвол ет формировать контрольный код на вводимую информацию, тем самым повышает ее достоверность и одновременно использовать ее как устройство, чувствительное к изменению состо ни кнопочной клавиатуры. Такое решение упрощает схему, повьш1ает ее надежность . Формула изобретени 1, Устройство дл ввода информации , содержащее клавиатуру, регистр первый формирователь импульсов и генератор , выход которого соединен с входом синхронизации первого формиро-.kek The invention relates to computing and can be used to enter information from on-off sensors in an automated process control system. The aim of the invention is to simplify the device. FIG. 1 is a block diagram of an information input device; pas figs. 2 - pulse driver circuit; in fig. 3 - keyboard layout; in fig. 4 is a time diagram of the device operation. The device contains (Fig. I) a keyboard, a register 2, the first driver of 3 pulses, a generator 4, a parity determination unit 5, a second driver of 6 pulses, a CM element 7, a control output 8, an output 9 of information. The shaper contains (Fig. 2) the first trigger 10, the second trigger AND the element NOT 12, element 3, information input 14, synchronization input 15, output 16, the device works as follows. A binary code is entered from the keyboard to the inputs of register 2 and parity determination unit 5, in which 1 corresponds to the open state of the contact pair, O is closed. For example, let's take the initial state of the keyboard with an even number of 1 in the code, the first contact pair being closed, and K being open (Fig. 4). In this case, at the direct output of the detection unit 5, the O level is present, at the inverse level, 1 signal level. Consequently, on the ft inputs of the triggers 10 and 11 of the imaging unit 3, a low O signal level is present and both the triggers are in the initial state. At the R inputs of the triggers in the former 6, there is a high level and both triggers are in the 1 state, since the D input of the trigger 10 is applied to the logic level 1, the D input of the trigger 11 is connected to the output of the trigger 10, and to the inputs 15 of both Formers constantly receive signals from generator 4. I When the contact pair opens, Tjp, determined by the contact bounce, the signals on the outputs of block 5 are set to be inverted relative to their previous state. During a transient action, the triggers of both drivers are reset. The period of the signals from the generator is selected based on the ratio T, T. Therefore, none of the drivers can generate a signal at the output before the end of the transient process. After time T, p at the input of the former 6, a low level J blocks its start, and at the entrance of the former 3 a high level is established. By the difference of the next synchronization signal, the trigger 10 of the driver 3 is set to 1 state. The next clock signal through the elements NOT 12 and I 13 enters the output of the driver, and on the trailing edge throws trigger 11 into 1 state. This state of the triggers 10 and 11 is confirmed by subsequent clock signals. The signal from the driver's modifier 3 enters through the OR element 7 at output 8 and simultaneously to the control input of register 2. Thus, a steady-state code value from the keyboard and a control bit from the inverse output of the parity block are written to the register. When the contact group K is closed, the driver 3 is blocked by the start, while from the generator 6 output, the signal through the OR 7 element organizes the writing of a code from the keyboard and, accordingly, the check bit in the register. Thus, the parity determination unit, when turned on this way, makes it possible to generate a control code for the entered information, thereby increasing its reliability and at the same time using it as a device sensitive to changes in the state of the keypad. This solution simplifies the scheme, increases its reliability. Claim 1, A device for inputting information, comprising a keyboard, a register, a first pulse shaper, and a generator, the output of which is connected to the synchronization input of the first generator.
вател импульсов, выходы клавиатуры соединены с информационными входами группы регистра, выходы которого вл ютс информационными вькодами устройства, отличающеес тем, что, с целью упрощени устройства , оно содержит блок определени четности , второй формирователь импульсов и элемент ИШ, выход которого соединен с управл ющим входом регистра и вл етс управл ющим выходом устройства , входы синхронизации первого и второго формирователей импульсов объединены выходы первого и второго формирователей импульсов соединены соответственно с первым и вторым входами элемента ИЛИ, входы блока определени четности объединены с информационными входами группы регистра, пр мой выход блока определени четнести соединен с информационным входом регистра и информационным входомpulse puller, keyboard outputs are connected to information inputs of a register group whose outputs are information codes of a device, characterized in that, in order to simplify the device, it contains a parity determination unit, a second pulse driver and an IC element, the output of which is connected to a control input register and is the control output of the device, the synchronization inputs of the first and second pulse formers are combined the outputs of the first and second pulse formers are connected, respectively of the first and second inputs of OR member, the inputs of parity determining unit combined with the data inputs of the register groups, a straight exit determination unit chetnesti connected to data input and data input register
второго формировател импульсов.second pulse former.
1one
2. Устройство по п. 1, отличающеес тем, что первый и второй формирователи импульсов содержат два триггера, элемент И и элемент НЕ, R-входы триггеров объединены и вл ютс информационным входом формировател , С-входы триггеров и вход элемента НЕ объединены и вл ютс входом синхронизации формировател , выход второго триггера соединен с первым входом элемента И, выход первого триггера соединен с вторым входом элемента И и D-входом вто :рого триггера, выход элемента НЕ со-) единен с третьим входом элемента И, выход которого вл етс -выходом формировател , D-вход первого триггера подключен к шине логической единицы.2. The device according to claim 1, characterized in that the first and second pulse formers comprise two triggers, the element AND and the element NOT, the R inputs of the triggers are combined and are the information input of the driver, the inputs of the triggers and the input of the element are NOT combined and the synchronization input of the generator, the output of the second trigger is connected to the first input of the element I, the output of the first trigger is connected to the second input of the element AND and the D input of the second: trigger, the output of the element is NOT connected to the third input of the element AND, whose output is - exit f rmirovatel, D-input of the first flip-flop is connected to the bus logic unit.
JJ
8eight