слcl
0000
00 Изобретение относитс к вычисли тельной технике и может быть исполь вано в устройствах ввода информации в контроллер, в частности, построен ный на базе микропроцессора. Известно устройство дл ввода ий формации, содержащее блок коммутационных элементов, блок формировате лей импульсов, мультиплексор, счетч регистр, блок логических элементов генератор тактовых импульсов, формирователь импульсов, в этом устрой ве срабатывание любого коммутационного элемента приводит к запуску счетчика, который по синхроимпульса от генератора тактовых импульсов из мен ет свое состо ние. По сигналам, поступающим от счетчика в мультипл сор, происходит определение номера сработавшего коммутационного злемента , после чего информаци записываетс в регистр, в котором информ цн хранитс до следующего срабатывани коммутационных элементов Недостатком этого устройства вл |втс его громоздкость, сложность, большой объем аппаратурных затрат при его реализации. Наиболее близким по технической сущности к предлагаемому вл етс ус ройство дл ввода информации в ЦВМ, содержащее последовательно включенны регистр ввода, шифратор, блок вентилей , регистр обмена и блок задержки сигнала готовности, соединенный с шифратором . В известном устройстве при переключении одного из органов управлени регистра ввода возбуждаетс соответствующий вход шифратора. На кодовых входах шифратора устанавливаетс код вводимой величины. Независимо от выбора входа шифратора сигнал готовноети , возбуждаемый при любых манипул ци х устройства ввода, поступает на блок задержки сигнала готовности Сигнал готовности выдаетс в ЦВМ по окончании времени задержки, задаваемого блоком задержки сигнала готов ности, исход из времени переходного процесса переключени электрических контактов органов управлени . Кодовые выходы шифратора подключены ко входам блока вентилей, через который код вводимой величины не проходит, пока не придет признак ввода из ЦВМ Получив сигнал готовности, ЦВМ выдае устройству сигнал признака ввода из ЦВМ, и код величины передаетс в регистр обмена, из которого поступает в ЦВМ по шине данных C2J. Нар ду с такими преимуществами, как защита от дребезга контактов, синхронизаци работы по сигналу приз нака ввода из ЦВМ, приведенное устро ство дл ввода информации имеет и р недостатков: наличие врем задающих цепей, применение которых в блоке за)1ержки сигналов готовности требует дополнительных аппаратурных и регулировочных затрат; во-вторых, информаци из регистра ввода в регистр обмена поступает через промежуток времени , определ емый временем задержки сигнала готовности и временем установки сигнала признака ввода из ЦВМ, который устанавливаетс асинхронно, так как в момент переключени одного из органов управлени регистра: ввода ЦВМ может выполн ть программу, не св занную с вводом информации, следовательно , орган управлег и регистра ввода должен иметь фиксированные положени переключени , что приводит к усложнению их конструкции. Кроме того, в устройстве отсутствует возможность программной коррекции вводимой информации. При построении контроллеров на базе микропроцессора зачастую необходимо предварительно откорректировать вводимую информацию в соответствии с той программой, которую выполн ет контроллер. Предварительна коррекци позвол ет избежать ввода «дибочной, например, управл ющей информации. Вводима информаци воспринимаетс контроллером и в соответствии с программой коррекции анализируетс на предвиет ошибок . При обнаружении ошибок информаци программно корректируетс , . а результаты коррекции индицируютс . Цель изобретени - упрощение устройства и расширение области применени за счет обеспечени возможности коррекции вводимой информации. Поставленна цель достигаетс тем, что в устройство дл ввода информации , содержащее блок коммутационных элементов, регистр и блок ключей, введены элемент И и элемент ИЛИ, выход которого вл етс выходом устройства , а первый вход соединен с выходом элемента И, входы которого соединены с соответствующими выходами блока коммутационных элементов и входами первой группы регистра, выходы первой группы которого вл ютс выходами группы устройства, выходы второй группы регистра соединены с входами группы блока ключей, выходы которого соединены с входами второй группы регистра, вход которого вл етс первым входом устройства, первый вход блока ключей вл етс вторым входом устройства, вторые входы блока ключей и элемента ИЛИ вл ютс третьим входом устройства, входы выходы блбка ключей вл ютс входами выходами устройства. представлена функциоНа чертеже устройства дл ввода нальна схема информации. содержит блок 1 клюУстройство блок 3 коммутациончей , регистр 2 элемент 4 И, элемент ных элементов, вход 6, третий вход 5 ИЛИ, второй00 The invention relates to computing technology and can be used in information input devices in a controller, in particular, built on a microprocessor base. A device for input formation is known, which contains a block of switching elements, a block of pulse formers, a multiplexer, a count register, a block of logic elements, a clock pulse generator, a pulse shaper, in this device the triggering of any switching element leads to the start of a counter, which is synchronized from the generator clock pulses change their state. The signals from the counter to the multiplexer determine the number of the triggered switching element, after which the information is written to the register in which the information is stored until the next switching element operation. The disadvantage of this device is its cumbersome complexity, large amount of hardware costs for its implementation. The closest in technical essence to the present invention is a device for inputting information into a digital computer comprising a sequentially included input register, an encoder, a valve block, an exchange register and a readiness signal delay block connected to the encoder. In a known device, when switching one of the input register controls, the corresponding encoder input is excited. The code value of the input value is set at the code inputs of the encoder. Regardless of the choice of the encoder's input, the ready signal, excited during any manipulation of the input device, goes to the ready signal delay block. The ready signal is output to the digital computer after the delay time specified by the ready signal delay block, based on the transition time of the electrical contacts of control elements . The code outputs of the encoder are connected to the inputs of the valve block, through which the code of the input value does not pass until the input sign comes from the digital computer. Upon receiving the ready signal, the digital computer outputs the input sign signal from the digital computer, and the value code is transferred to the exchange register from which it enters the digital computer on the C2J data bus. Along with such advantages as the protection of contact bounce, synchronization of work on the signal of the input sensor from a digital computer, the above device for entering information also has p drawbacks: the presence of master circuits, the use of which in the unit requires readiness signals that require additional hardware and adjustment costs; Secondly, information from the register of entry into the exchange register enters through a period of time determined by the delay time of the ready signal and the time of setting the input sign signal from the digital computer, which is established asynchronously, because at the moment of switching one of the register control elements: The program is not related to the input of information. Therefore, the control body and the input register must have fixed switching positions, which complicates their design. In addition, the device does not have the ability to programmatically correct the input information. When building controllers based on a microprocessor, it is often necessary to pre-adjust the input information in accordance with the program that the controller executes. Pre-correction allows you to avoid entering "dibochny, for example, control information. The input information is perceived by the controller and is analyzed for error prediction in accordance with the correction program. When errors are detected, the information is programmatically corrected. and the results of the correction are indicated. The purpose of the invention is to simplify the device and expand the scope by providing the possibility of correcting the input information. The goal is achieved by entering the AND input element, the output of which is the output of the device, and the first input connected to the output of the AND input, the inputs of which are connected to the corresponding information input device containing the switching element block, register and key block. the outputs of the switching elements block and the inputs of the first register group, the outputs of the first group of which are the outputs of the device group, the outputs of the second register group are connected to the inputs of the key block group, the outputs of which are connected The inputs of the second register group, the input of which is the first input of the device, the first input of the key block, the second input of the device, the second inputs of the key block and the OR element, are the third input of the device, the inputs of the key block are the inputs of the device. Functional drawing of the device for inputting the information schematic is presented. contains block 1 of the switch unit; block 3 of switching points; register 2; element 4 AND; element elements; input 6;