(54)УСТРОЙСТВО ДЛЯ ВВОДА ИНФОРМАЦИИ Изобретение относитс к вычислите ной технике и предназначено дл ввод информации. Известно устройство дл ввода информации , содержащее клавиатуру, шиф ратор, счетчик, блок пам ти, логичес кие элементы 1 J. Наиболее близким техническим решением к предлагаемому вл етс устройство дл ввода информации, содержащее блок коммутационных элементов, соединенный с коммутатором, блокпам ти , первые входы которого соединен со счетчиком 3Недостатки ,устройств - низка надежность. Цель изобретени - повьшение надежности устройства. Поставленна цель достигаетс тем что устройство содержит блок элементов И, распределитель импульсов и блок сравнени , первый вход которого соединен с выходом блока пам ти, вторые входы - с первыми выходами распределител импульсов, третий входсо входом устройства и входом распределител импульсов, выход - с первым входом блока элементов И, второй вход которого соединен с выходом коммутатора, третий вход - с первым выходом распределител импульсов, выход - со вторым входом блока пам тиj третьи входы которого соединены со вторыми выходами распределител импульсов , третий выход которого подключен к входу счетчика, выходы которого соединены с соответствующими входами коммутатора, четвертый вход блока пам ти соединен с четвертым выходом распределител импульсов. На чертеже представлена структур-, на схема устройства. Устройство содержит блок 1 коммутационных элементов, коммутатор 2, блок элементов И 3, блок 4 пам ти, счетчик 5, распределитель 6 импульсов , блок 7 сравнени .(54) DEVICE FOR INPUT OF INFORMATION The invention relates to a computing technique and is intended to enter information. A device for inputting information is known, comprising a keyboard, an encoder, a counter, a memory unit, logic elements 1 J. The closest technical solution to the present invention is an information input device comprising a unit of switching elements connected to a switchboard, blocks, first the inputs of which are connected to the counter 3 Disadvantages, devices - low reliability. The purpose of the invention is to increase the reliability of the device. The goal is achieved by the fact that the device contains a block of elements AND, a pulse distributor and a comparison block, the first input of which is connected to the output of the memory block, the second inputs to the first outputs of the pulse distributor, the third input to the device input and the input of the pulse distributor, the output to the first input the block of elements I, the second input of which is connected to the output of the switch, the third input is connected to the first output of the pulse distributor, the output is connected to the second input of the memory block the third inputs of which are connected to the second outputs and the pulse distributor, the third output of which is connected to the input of the counter, the outputs of which are connected to the corresponding inputs of the switch, the fourth input of the memory unit is connected to the fourth output of the pulse distributor. The drawing shows the structure, on the device diagram. The device comprises a block 1 of switching elements, a switch 2, a block of elements AND 3, a block 4 of memory, a counter 5, a distributor 6 pulses, a block 7 of comparison.
Устройство работает следукидим образом .The device works in the following way.
Период опроса каждого коммутационного элемента разделен на две половины , в первую из которых происходит считывание ранее записанной в чейки блока 4 пам ти информации, соответствующей данному коммутационному элементу , определенному кодом счетчика 5, а во вторую - запись в эти же чейки обновленной информации.The polling period of each switching element is divided into two halves, the first of which is the reading of the information previously recorded in the cells of memory 4, corresponding to this switching element defined by counter code 5, and the second is the update of the information in the same cells.
Информаци , считываема из блока 4 пам ти, поступает на вход блока 7 сравнени и запоминаетс . Затем следуе период записи информации в блок 4 пам ти, в начальный момент которого на выходе распределител 6 импульсов вырабатываетс стробимпульс, который инициирует работу блока 7 сравнени . Если в нескольких циклах подр д коммутатор 2 вырабатывает сигналы включени определенного коммутационного элемента блока 1 коммутационных элементов , то блок 7 сравнени , вырабатывает синхросигнал, посгупающий на выход устройства. В это врем на кодовых шинах счетчика 5 присутствует код, соответствующий включенному коммутационному э ементу. Затем с выхода распределител 6 импульсов вы рабатываютс импульсы записи и в пер вую чейку пам ти коммутационтого элемента записываетс информаци из коммутатора 2, поступающа на вход блока элементов И 3, так как в этот момент на его управл ншшй вход поступает стробимпульс с выхода распре делител 6 импульсов. . После окончани стробимпульса выбираетс втора чейка, соответствующ включенному коммутационному элементу, а переключатель подключае его выход ко входу. При этом во вто рую и следующие чейки записываетс информаци из блока 7 сравнени сдвинута на один такт. За счет этого в каждый цикл происходит обновление информации в чейках блока 4 пам ти, отведенных под каждый коммутационный элемент, В первую . чейку записываетс информаци из коммутатора 2 о состо нии коммутационного элемента, а в последующие чейки - информаци со сдвигом на шаг. После записи информации в последнюю чейку пам ти коммутационного элемента распределитель 6 импульсов вырабатывает сигнал опроса, поступающий на тактовый вход счетчика 5, подключак ций коммутатор 2 и блок 4 пам ти к следуннцему коммутационному элементу. Дальнейша работа происходит аналогично.The information read out from memory block 4 is fed to the input of comparison block 7 and is memorized. Then, the following period of recording information in the memory block 4, at the initial moment of which, at the output of the distributor 6 pulses, a strobe pulse is generated, which initiates the operation of the comparison block 7. If in several cycles another switch 2 generates the enable signals of a specific switching element of the switching elements block 1, then the comparison block 7 generates a synchronization signal that is output by the device. At this time, there is a code on the code buses of counter 5 that corresponds to the switched switching element. Then, recording pulses are generated from the output of the pulse distributor 6 and information from switch 2 is input to the first memory cell of the switching element, arriving at the input of the AND 3 block, because at this moment the control pulse from the distributor 6 arrives at its control input pulses. . After the end of the strobe pulse, the second cell is selected corresponding to the switched on element, and the switch connects its output to the input. At the same time, the information from the comparison block 7 is shifted by one measure to the second and next cells. Due to this, in each cycle, information is updated in the cells of the memory block 4 allocated for each switching element, B first. the cell records information from the switch 2 on the state of the switching element, and in subsequent cells the information is shifted by a step. After recording the information in the last memory cell of the switching element, the pulse distributor 6 generates a polling signal, which arrives at the clock input of the counter 5, the connections switch 2 and the memory block 4 to the next switching element. Further work is similar.