SU1714575A1 - Process equipment programmable controller - Google Patents

Process equipment programmable controller Download PDF

Info

Publication number
SU1714575A1
SU1714575A1 SU894702553A SU4702553A SU1714575A1 SU 1714575 A1 SU1714575 A1 SU 1714575A1 SU 894702553 A SU894702553 A SU 894702553A SU 4702553 A SU4702553 A SU 4702553A SU 1714575 A1 SU1714575 A1 SU 1714575A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
inputs
outputs
information
Prior art date
Application number
SU894702553A
Other languages
Russian (ru)
Inventor
Вячеслав Сергеевич Харченко
Борис Олегович Сперанский
Сергей Феофентович Тюрин
Валентин Павлович Улитенко
Григорий Николаевич Тимонькин
Сергей Николаевич Ткаченко
Дмитрий Зиновьевич Крюков
Original Assignee
Предприятие П/Я Г-4651
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Предприятие П/Я Г-4651 filed Critical Предприятие П/Я Г-4651
Priority to SU894702553A priority Critical patent/SU1714575A1/en
Application granted granted Critical
Publication of SU1714575A1 publication Critical patent/SU1714575A1/en

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

Изобретение относитс  к системам программного управлени  и может быть использовано в автоматизированных системах дл  управлени  технологическим оборудованием. Цель изобретени  - повышение быстродействи  и расширение области применени  КС. Устройство дл  программного управлени  технологическим оборудованием 'содержит микропроцессор 1, тактовый генератор 2, системный контроллер 3, буферные усилители 4, дешифратор 5 адреса, блок 6 посто нной пам ти программ, блок 7 оперативной пам ти данных. шинный формирователь 8 оперативнойa,.LZ.2The invention relates to software control systems and can be used in automated systems for controlling process equipment. The purpose of the invention is to increase the speed and expansion of the field of application of the COP. A device for software control of process equipment includes a microprocessor 1, a clock generator 2, a system controller 3, buffer amplifiers 4, an address decoder 5, a program memory 6 unit, a data memory unit 7. tire driver 8 operative, .LZ.2

Description

пам ти, дешифратор 9 устройств вводавывода , шинный формирователь 10 ввода-вывода , шесть элементов ИЛИ 11-16, два элемента И 17 и 18, три триггера , шинный формирователь 22, регистр 23, схему 2k сравнени , приоритетный шифратор 25J мультиплексор 26, элемент 27 задержки Цель достигаетс  за счет реализации режима логического прерывани . Новыми в системе  вл ютс  три элемента ИЛИ 1A-16 два триггера 20 и 21, приоритетный шифратор 25, мультиплексор 26, элемент 27 задержки. 2 табл., k ил.memory, decoder 9 input-output devices, bus driver 10 input-output, six elements OR 11-16, two elements AND 17 and 18, three triggers, bus driver 22, register 23, comparison circuit 2k, priority encoder 25J multiplexer 26, element 27 delays The goal is achieved by implementing a logical interrupt mode. New in the system are the three elements OR 1A-16 two triggers 20 and 21, priority encoder 25, multiplexer 26, delay element 27. 2 tabl., K Il.

Изобретение относитс  к устройствам программного управлени  и может быть использовано в автоматизирован- ных системах дл  управлени  технолог гическим оборудованием, например, в системах числового программного упраjieHMfl производственных комплексов, роботов, манипул торов и т.д.The invention relates to software control devices and can be used in automated systems for controlling technological equipment, for example, in computer numerical control systems of production complexes, robots, manipulators, etc.

Известно устройство программного управлени , содержащее датчики.состоний , генератор импульсов, триггеры,A software control device is known comprising sensors, a pulse generator, triggers,

дешифраторы, счетчики единиц и дес тков, блок набора программ, элемент; И, ИЛИ, НЕ„ Его недостатком  вл етс  низка  произаодительность, НаиСюлее близким к предлагаемому  вл етс  устройство дл  программного управлени  технологическими процессами , состо щее из микропроцессора, тактового генератора; системного контроллера, дешифратора адреса пам ти , оперативной пам ти, посто нной пам ти; шинного формировател  пам ти дешифратора адресов ввода-вывода, шинных формирователей ввода-вывода, Tijiex шинных формирователей триггера, регистра, схемы сравнени , четырех схем И, трех схем ИЛИ.decoders, unit and tens counters, program block block, element; AND, OR, NOT. Its disadvantage is low productivity. The closest to the offer is a device for programmed control of technological processes consisting of a microprocessor, a clock generator; a system controller, a memory address decoder, a RAM, a fixed memory; bus driver memory of I / O address decoder, bus driver I / O, Tijiex bus driver for trigger, register, comparison circuit, four AND schemes, three OR schemes.

Недостатком его  вл етс  низкое быстродействие и узка  область применени . Это обусловлено следующими обсто тельствами.The disadvantage of it is low speed and narrow scope. This is due to the following circumstances.

Технические средства прототипа обеспечивают многоальтернативное ветвление по значению логических условий , поступающих от датчиков, в строго определенные моменты времени, при подключении соответствующей подпрограммы основной программой. При этом заранее неизвестен факт изменени  логических условий, т.е. если они не изменились, то многоальтернативное ветвление будет проведено вхолостую - сформируетс  управл юа1ий сигнал такой же, как и в предыдущем 8efвлeнии. Если логические услови  уже изменились, а врем  их опросаThe technical means of the prototype provide multi-alternative branching according to the value of the logical conditions coming from the sensors, at strictly defined moments of time, when the corresponding subprogram is connected to the main program. In this case, the fact of a change in the logical conditions, i.e. if they have not changed, then the multi-alternative branching will be idle - a control signal will be generated the same as in the previous 8e. If the logical conditions have changed, and the time of their survey

еще не подошло, то это приводит к снижению времени реакции, .понижающему быстродействие при многоальтернативном ветвлении относительно скоросг ти изменени  логических условий; к i невозможности использовани  известно го устройства в тех задачах реального времени, которые требуют максимальной реакции, например в аварийных ситуаци х технологического оборудовани , с которых сигнализирует не один датчик, а несколько (причем в р де случаев необходим учет и предистории процесса).has not yet come, this leads to a decrease in the reaction time, which lowers the speed with multi-alternative branching with respect to the rate of change of logical conditions; I cannot use a known device in real-time tasks that require maximum response, for example, in emergency situations of process equipment, from which not one sensor signals, but several (and in some cases accounting and process history are necessary).

Все это снижает быстродействие известного устройства и снижает область его применени .All this reduces the speed of the known device and reduces its area of application.

Цель изобретени  - повышение быстродействи  и расширение области применени  .The purpose of the invention is to increase speed and expand the scope.

Сущность изобретени  заключаетс  в повышении быстродействи  и расширении области применени  устройства дл  программного управлени  -технологическим оборудованием путем введени  дисциплины логического прерывани  - прерывани  с формированием автоматных отображений, старшего по приоритету обычных прерываний; в программной записи в регистр исходного состо ни  входов логических условий; в программном разрешении логического прерывани  путем вывода логической единицы в первый триггер; в формировании обычных прерываний, а также прерываний при изменении состо ни  входов логических условий, старших по приоритету , чем обычные прерывани ; в смещении адресов посто нной пам ти дл  адресации программ реакции на логическое прерывание,котора  дл  микропроцессора расположена по тем же адресам, что и адреса подпрограмм (векторов) обычных прерываний; в программном формировании автоматных отображений дл  обработки изменени  состо ни  входов логических условий ь (реализаци  последовательностного или комбинационного автомата) с выд чей управл ющих воздействий на информационные выходы; в программном сн тии смещени  адресов посто нной пам ти после считывани  микропроцес сором команды возврата из логическо го прерывани  в основную программу, а также записи в регистр нового состо  ни  логических условий. Введение второго триггера и соответствующих ему св зей позвол ет сме щать адресное пространство блока посто нной пам ти программ, переключит мультиплексор по сигналу подтверждени  прерывани , если значени  логических условий изменились, а также записывать в регистр измененное значение логических условий при реализации новой дисциплины - логического прерывани  - с формированием авто-, Матнь1х отображений. Введение третьего триггера и соот ветствующих ему св зей позвол ет формировать запрос прерывани  как пр обычном прерывании, так и при логическом прерывании - с формированием автоматных отображений. Введение приоритетного шифратора и - соответствующих ему св зей позвол  ет формировать код запроса, старшего по приоритету,и сигнал наличи  запро са при обычных прерывани х, младших по приоритету логического прерывани  с формированием автоматных отображений . Введение мультиплексора и соответ ствующих ему св зей позвол ет формировать вектор прерывани , как при обычных прерывани х, так и при логическом прерывании с формированием автоматных отображений. Введение элемента задержки и соот ветствующих ему св зей позвол ет обнул ть второй триггер после считывани  микропроцессором команды возврата из логического прерывани  с целью устранени  смещени  блока посто иной пам ти программ вторым триг гером. Введение четвертого элемента ИЛИ и соответствующих ему св зей позвол  ет обнул ть второй триггер при начальном сбросе и по сигналу элемента задержки - по окончанию логического прерывани . Введение п того элемента ИЛИ и соответствующих ему св зей позвол ет l устанавливать третий триггер дл  формировани  запроса на прерывание как при обычном прерывании, так и при логическом прерывании. Введение шестого элемента ИЛИ и соответствующих ему св зей позвол ет обнул ть третий триггер после перехода микропроцессора в цикл обработки прерывани . При использовании предлагаемого изобретени  может быть получен положительный эффект, состо щий в повышении быстродействи  и расширении области применени . На фиг,1 изображена функциональна  схема системы дл  программного управлени ; на фиг.2 - фрагмент временной диаграммы реакции системы на обычное прерывание; на фиг.З то же, реакции на логическое прерывание с формированием автоматных отображений; на фиг. - граф последовательного автомата из примера конкретного выполнени  системы. Устройство дл  программного управлени  технологическим оборудованием содержит микропроцессор 1, содержащий выходы 1.1 адреса, группу входов-выходов 1.2 данных,выходы 1.3 управлени  записью иприемом данных , тактовые входы первой I. и второй 1.5 фаз, входы сброса 1.6, готовности 1.7, выход 1,8 синхронизации, вход 1.9 запроса прерываний, выход 1.10 разрешени  прерывани , тактовый генератор 2, содержащий входы 2.1 и 2.2 подключени  кварцевого резонатора , вход 2.3 синхронизации, тактовые выходы первой 2.4 и второй 2.5 фаз, выход 2.6 сброса, выход 2.7 готовности , выход 2.8 синхронизации, системный контроллер 3 содержащий первую группу информационных входоввыходов , вторую группу информационных выходов-входов 3.1 данных,  вл ющуюс  шиной данных устройства, выходы 32 управлени  чтением пам ти, аписью в пам ть, управлени  вводом устройстве ввода, выводом в устройстве вывода, подтверждени  прерывани ,  вл ющиес  шиной управлени  устройства, буферные усилители А, содегзгжащие выходы .1,  вл ющиес  шиной адреса устройства, дешифратор 5, адреса пам ти, содержащий выход 5.1 подключени  блока 6 посто нной пам ти программ, блок 7 оперативной пам ти данных, шинный формирователь 8 оперативной пам ти, дешифратор 9 уст ройств ввода-вывода, содержащий груп пу выходов 9И подключени  устройств ввода-вывода, выходы 9-2 и 93 шинные формирователи 10 устройств ввода-вывода , шесть элементов ИЛИ 11-16 два элемента И 17 и 18; три триггера , шинный формирователь 22, регистр 23, схему сравнени  и приоритетньм шифратор 25, имеющий информационные выходы 25о1 и выход 25.2 управлени , мультиплексор 26, элемент 27 задержки, вход 28 сброса, вход 29 готовности, вход 30 захвата, и выход 319 информационные входы 32, информационные выходы 33, входы З логических условий, входы 35 запросов на прерывание. Третий и четвертый входы тактовог генератора 2  вл ютс  входами сброса 28 л готовности 29 устройства соответственно . Первый 2Д и второй 2, тактовые выходы тактового генератора 2 подключены к первому 1. и второму 1,5 тактовым входам микропроцес сора 1 соответственно. Третий 2,6 и четвертый 2,7 выходы тактового гене ,ратора 2 подключены к входам сброса 1«6 и готовности 1.7 микропроцес сора 1 соответственно. П тый выход 2.8 тактового генератора 2 подключен к входу синхронизации системного контроллера 3. Адресные выходы 1.1 микропроцес7 сора 1 подключены к входам буферных усилителей k. Группа входов-выходов 1с2 данных и выходы 1.3 управлени  записью и приемом данных микропроцес сора 1 подключены к первой группе информационных входов-выходов и входам управлени  записью и приемом дан ных системного контроллера 3 соответственно . Вход захвата микропроцес сора 1  вл етс  входом 30 захвата си стемы. Выход ожидани  микропроцессо;ра 1  вл етс  выходом 31 ожидани  системы. Выход управлени  приемом да ных микропроцессора 1 подключен к :управл ю1цим входам блока 6 посто нно пам ти программ, шинного формировател  8 оперативной пам ти и к перво;му входу первого элемента И 17. Объединенные инверсные выходы раз решени  буферных усилителей k подключены к отрицательной шине источни ка питани  выходы которых  вл ютс  шиной Ал адреса устройства. Втора  группа информационных входов-выходов системного контроллера 3  вл етс  шиной 3.1 данных устройства. Выходы управлени  чтением пам ти, записью в пам ть, вводом, выводом, подтверждени  прерывани  системного контроллера 3  вл ютс  шиной 3.2 управлени  устройства. Группа информационных входов дешифратора 5 адреса пам ти, выходы дешифратора 9 устройств ввода-вывода, адресные входы блока 7 оперативной пам ти данных, блока.6 посто нной пам ти программ подключены к шине .1 адреса устройства. Вход разрешени  дешифратора 5 адреса подключен к выходу первого элемента ИЛИ 11, первый и второй входы которого подключены к выходам управлени  чтени  пам ти и записи в пам ть шины 3.2 управ лени  соответственно. Первый выход 5.1 дешифратора 5 адреса подключен к первому входу разрешени  блока 6 посто нной пам ти программ. -Второй выход 5.2 дешифратора 5 адреса подключен к входу разрешени  шинного формировател  8 оперативной пам ти и к входу разрешени  блока 7 оперативной пам ти данных. Информационные входы блока 7 оперативной пам ти данных подключен к второй группе информационных входоввыходов шинного формировател  8 оперативной пам ти. Информационные выходы блока 7 оперативной пам ти данных подключены к третьей группе информационных входов-выходов шинного формировател  В оперативной пам ти. I Вход разрешени  дешифратора 9 устройств ввода-вывода подключен к выходам управлени  вводом из устроиств ввода и выводом в устройства вывода системного контроллера 3 через элемент ИЛИ 12 соответственно. Группа выходов 9.1 дешифратора 9 устройств ввода-вывода подключена соответственно к группе входов разрешени  шинного формировател  10 устройств ввода-вывода, вход разрешени  которого подключен к выходу управлени  вводом из устройства ввода системного контроллера 3. Входы шинного формировател  10 устройств ввода-вывода  вл ютс  информационными входами 32 системы, а выходы - информационными выходами 33 устройстве. Выход первого элемента И 17 подключен к входу разрешени  шинного формировател  22. Входы сброса регистра 23 и перво го триггера 19 подключены к выходу 2.6 сброса тактового генератора 2. Выходы регистра 23 подключены к первой группе Ёходов схемы 2 сравнени  выход которой подключен к первому входу второго элемента И 18, второй вход которого подключен к выходу пер вого триггера 19, информационный вход которого подключен к разр ду ши ны 3.2 данных системы. Вход синхрони зации регистра 23 подключен к выходу третьего элемента ИЛИ 13, первый вход которого подключен к третьему выходу 9.3 дешифратора 9 устройства вводаг вывода, а второй вход подключен к выходу второго триггера 20,подключенному к адресному входу муль типлексора 2б, старшему адресному входу блока 6 посто нной пам ти программ и дополнительному информацион ному входу дешифратора 5 адреса. Третий выход 5.3 дешифратора 5 адреса подключен к входу элемента 27 задержки, выход которого подключен к первому входу четвертого элемента ИЛИ I. Второй инверсный вход четвертого элемента ИЛИ 1 k подключен к выходу первого триггера 19.Третий вход четвертого элемента ИЛИ I подключен к входу сброса первого триггера 19-Выход четвертого элемента ИЛИ 1 подключен к входу сброса второго триггера 20, информационный вход которого подключен к выходу схемы 2k сравнени , а выход синхронизации которого подключен к выходу подтверждени  прерывани  системного контроллера 3 Вход синхронизации первого триггера 19 подключен к второму выходу 9.2 дешиф ратора 9 устройств ввода-вывода Информационные входы регистра 23, втора  группа входов схемы 2k сравне ни  и втора  группа входов мультипле сора 26  вл ютс  входами 3 логимесКИХ условий системы. Второй вход первого элемента И 17 подключен к выходу подтверждени  прерывани  системного контроллера 3. Третий вход второго элемента И 18 подключен к выходу 1.8 синхронизации микропроцессора 1, а его четвертый вход подкгвочен к выходу 1.10 разрешени  прерывани  микропроцессора 1. ;Выход второго элвмента И 18 подключен к первому входу п того элемента ИЛИ 15, второй вход которого подключен к выходу 25.2 управлени  приоритетного шифратора 25. Входы приоритетного шифратора 25  вл ютс  входам 35 запросов на прерывание системы. Информационные выходы 25.1 приоритетного шифратора 25 подключены к первой группе входов мультиплексора 26, выходы которого подключены к первой группе информационных входов шинного формировател  22, к второй группе информационных входов которого подключены выходы блока формировател  Команды векторного перехода, выполненного путем подключени  соответствующих разр дов шинного формировател  через ограничительный резистор к положительному полюсу источника питани . Выход п того элемента ИЛИ 15 подключен к входу данных третьего три|- гера 21, вход сброса которого подключен к выходу шестого элемента ИЛИ 1б. Первый инверсный вход шестого элемента Или 1б подключен к выходу 1.10 разрешени  прерывани  микропроцессора 1 , а второй его вход подключен к выходу 2.6 сброса тактового генератора 2. Выход третьего триггера 21 подключен к выходу 1.9 запроса прерывани  микропроцессора 1. Вход синхронизации третьего триггера 21 подключен к тактовому выходу 2.4 первой фазы тактового генератора 2. Микропроцессор 1 предназначен дл  выполнени  программы, т.е последовательности команд, используемой дл  реализации алгоритма управлени  и дл  управлени  системой с шинной органи™ зацией. Микропроцессор воспринимает внешние тактовые сигналы и внешние 30-33 сигналы управлени  и генерирует сигналы адреса (1.1) данных (1.2) а также сигналы управлени  (ЬЗ). Микропроцессор 1 может быть реализован , например, на стандартной интегральной микросхеме КР580ИК89А. Тактовый генератор 2 предназначен л  формировани  двух высоковольтных (12В) неперекрывающихс  последоваельностей тактовых импульсов (2.4, ,5), формировани  управл ющих сигнаов сброса (2.6) и готовности (2.7) о внешним сигналам системы (2.8, «9) и дл  формировани  системного броса (2.8) по синхроимпульсу (2.9), оступающему с микропроцессора 1, и может быть реализован, например на стандартной интегральной микросхеме КР580ГФ24, (ножки 13,12 и 6 не задейст вуютс ). Системный контроллер 3 предназначен дл  увеличени  нагрузочной способности шины 3.1 данных и организации двунаправленной передачи MBHHBIXS дл  фиксации слова управлени  микропроцессора 1, поступающего по шине данных в момент поступлени  системно го строба (2.8) с тактового генератора 2, и формировани  в соответствии со словом управлени  и сигналами записи и приема данных (1.3) микропроцессора 1 шины 3.2 управлени  уст ройства дл  каждого машинного цикла . 11ииа управлени  устройства включает йигналы управлени  чтением пам ти , записью в пам ть, вводом в устройство ввода, выводом из устройств зыЕОда, подтверждени  прерывани , Системнь Й контроллер 3 может быть оеепизован, например, на стандартноп интегральной микросхеме КРЬ80ВК28, Буферные усилители и шинные формирователи В и 10 предназначены дл  увеличени  нагрузочной способности шины ЗИ данных системы и дл  органи зации двунапрааленной передачи данных по шине 3.1 данных (второй группы выходов-входов системного контроллера ) к блокам пам ти или из блоков пам ти, к внешним устройствам или из внешних устройств в зависимости от управл ющих сигналов Е1 и Е2, При отсутствии управл ющих сигналов выходы шинных формирователей наход тс  в высокоимпедансном состо нии,. отключены от шины данных. Шинные фор мирователи могут, быть реализованы на стандартных интегральных микросхемах 589 лтб, Шинный формирователь 8 блока оперативной пам ти данных, предназначен дл  увеличени  нагрузочной способнос ти шинных данных 3.1, д   под шючени  выходов блока 7 оперативной па:м ти к шине 3.1 данных в режиме чте ни , дл  подключени  входов данных блока 7 оперативной пам ти к шине 3« данных в режиме записи. Шинные формирователи 10 вводавывода предназначены дл  увеличени  ;нагрузочной способности шины ЗП да ных и дл  подключени  к шине З.И Сданных информационных входов 32 в р жиме ввода из устройств ввода, дл  подключени  шины 3.1 данных к информационным выходам 33 в режиме вывода в устройства вывода. Буферные усилители k предназначены дл  усилени  нагрузочной способности шины А.1 адреса системы, а также дл  перевода своих выходов в высокоимпедансное состо ние при активиро-: вании разр да Подтверждение захвата выходов 1.3 управлени  микропроцес- сора 1.i Дешифратор 5 адреса предназначен дл  дешифрации адреса, выставленного йа шине .1 адреса системы в том слуМае , если активирован выход элемента ИЛИ 11. Дл  подключени  блока посто нной пам ти программ возбуждаетс  выход 5о1 дешифратора 5, дл  подключени  блока 7 оперативной пам ти данных и шинного формировател  8 оперативной пам ти - выход 5.2. Кроме того, дешифратор 5 адреса учитывает информацию на выходе триггера 20 и дешифрирует адреса команд возврата из программ обработки логического прерывани . При этом возбуждаетс  выход 5.3. В обычном режиме работы дешифраци  шины адреа производитс  с учетом нулевого состо ни  выхода триггера 20. Дешифратор адреса может быть реализован , например, на стандартных интегральных микросхемах 155ИДЗ. Дешифратор 9 устройств ввода-вывода предназначен дл  дешифрации информации на шине j.l адреса системы в том случае, если активирован выход элемента ИЛИ 12, дл  подключени  шинных формирователей 10 вводы-вывода и инициализации системы на логическое прерывание. Дл  подключени  шинных формирователей 10 ввода-вывода активируетс  один соответствующий разр д группы выходов 9.1 подключени  внешних устройств. Дл  стробировани  триггера 19, имеющего определенный адрес при выводе по этому адресу (ввод по этому адресу не используетс ) , активируетс  выход 9.2. Дл  стробировани  триггера 23 через элемент ИЛИ 13 таким же образом возбуждаетс  выход 9.3. Дешифратор 9 устройств ввода-вы- j вода может быть реализован, напримерj на стандартных интегральных микросхе-f мах 155 ИДЗ. Первый элемент ИЛИ 11 предназначе дл  формировани  разрешающего сигнал Е1 дешифратора 5 адреса пам ти, по на личию на шине 3.2 управлени  одного из управл ющих сигналов чтени  пам ти или записи в пам ть. Второй элемент ИЛИ 12 предназначе дл  формировани  разрешающего сигнал дл  дешифратора 9 устройств ввода-вы вода при наличии на шине 3.2 управле ни  одного из управл ющих сигналов ввода из устройства ввода или вывода в устройство вывода. Третий элемент ИЛИ 13 предназначе дл  управлени  входом синхронизации регистра 23 как выходом 9.3 дешифратора 9, так и выходом второго триггера 20 дл  записи в регистр 23 или начальирго состо ни  логических условии входов 3, либо дл  записи измененного и уже обработанного значени  логических условий входов З. Четвертый элемент ИЛИ k предназна чен дл  управлени  входом обнулени  второго триггера 20 либо при начальном сбросе с выхода 2„6 генератора 2, либо сигналом с выхода элемента 27 задержки по окончанию логического прерывани  - после считывани  команды возврата микропроцессором 1, либо если отсутствует разрешение на логическое прерывание (обнулен первый триггер 19) П тый элемент ИЛИ 15 предназначен дл  управлени  входом данных третьего триггера 21 дл  формировани  запро са на прерывание либо сигналом с выхода 25.2 приоритетного шифратора 25 (обычное прерывание) либо сигналом с второго элемента (логическое прерывание). Шестой элемент ИЛИ 1б предназначен дл  управлени  входом сброса третьего триггера 21 либо при начальном сбросе - сигналом (2,6) тактового генератора 2, либо при обнулении выхода Т о 10 разрешени  прерывани  микропроцессора 1 о При активировании выхода элемента ИЛИ 16 триггер 21 обнулен независимо от информации на его выходе данных и синхронизации Первый элемент И 17 предназначен дл  управлени  входом разрешени  шинHojo формировател  22 дл  подключени  его выходов к шине 3.1 данных . в том случае, еслина шине 3.2 управлени  имеетс  управл ющий сигнал подтверждени  прерывани , а на выходах 1.3 управлени  микропроцессора 1 сигнал приема данных, т„е. когда микропроцессор считывает вектор прерывани  с шины З данных. Второй элемент И 18 предназначен дл  управлени  п тым элементом ИЛИ 15 при формировании запроса на логическое прерывание в том случае, если активирован выход схемы 2Ц сравнени  (изменились логические услови ), прерывани  разрешены ( активирован выход 1.10 микропроцессора 1), поступил синхроимпульс с выхода 1„8 микропроцессора 1 и установлен первый триггер 19. Первый триггер 19 предназначен д/1  управлени  вторым элементом И 18 и четвертым элементом ИЛИ Н с целью разрешени  дисциплины логического прерывани . Если таковы запрещены, то элемент И 18 заблокирован, а три|- гер 20 через элемент ИЛИ I удерживаетс  в нулевом состо нии Первый триггер 19 устанавливаетс  в нулевое состо ние начальным сбросом по своему асинхронному входу об нулени , устанавливаетс  и обнул етс  разр дом шины Зо1 данных по переднему фронту сигнала на выходе дешифратора 9 Первый триггер 19 может быть реализован , например, на стандартной интегральной микросхеме 155ТМ2, Второй триггер 20 предназначен дл  управлени  старшим разр дом адреса блока 6 посто нной пам ти npoi- раммы, входом адреса мультиплексора 2б и третьим элeмeнtoм ИЛИ 13 при реализации логического прерывани  Второй триггер 20 устанавливаетс  по переднему фронту управл ющего сигнала подтверждени  прерывани  шины Зо2 управлени , если активирован выход схемы 2k сравнени . Это необходимо дл  обеспечени  приоритета изменений логических условий входов 3 по отношению к запросам на входах 35 Таким образом, даже если запрос на прерывание (1.9) вызван поступившим ранее запросом по входам 35, но логические услови  уже изменились, либо апросы поступили одновременно, устаовитс  второй триггер 20 при формиовании подтверждени  прерывани , ереключит мультиплексор 20, обеспеит смещение адресов посто нной па ти 6, т.ее. обеспечит реализацию огического прерывани . Если прерывани  запрещены программно, триггер 20 никогда не установитс , так как будет отсутствовать сигнал подтверждени  прерывани , синхронизирующий его.The invention consists in increasing the speed and expanding the field of application of a device for software control of technological equipment by introducing a logical interruption-interruption discipline with the formation of automatic mappings that are higher in priority than ordinary interrupts; in the program record in the register of the initial state of the inputs of logical conditions; in the software resolution of the logical interrupt by outputting the logical unit to the first trigger; in the formation of normal interrupts as well as interruptions when the state of the inputs of logical conditions that are higher in priority than ordinary interrupts changes; in the offset of the addresses of the fixed memory for addressing the logic interrupt response programs, which for the microprocessor is located at the same addresses as the addresses of the subroutines (vectors) of the normal interrupts; in software generation of automaton mappings for processing changes in the state of the inputs of logic conditions (realization of a sequential or combinational automaton) with the issuance of control actions on information outputs; in a programmatic removal of the offset of the addresses of the permanent memory after the microprocessor reads a return command from the logical interrupt to the main program, as well as writing a new state of the logical conditions to the register.  Introducing the second trigger and the corresponding connections allows you to shift the address space of the program constant memory block, switch the multiplexer on the interrupt acknowledge signal if the values of the logical conditions have changed, and also record the changed value of the logical conditions in the implementation of the new discipline - logical interrupt - with the formation of auto-, Matn1x mappings.  The introduction of the third trigger and the corresponding links allows it to form an interrupt request both with a regular interrupt and with a logical interrupt — with the formation of automaton mappings.  The introduction of the priority encoder and its corresponding connections allows the generation of a request code that is higher in priority, and a request presence signal at ordinary interrupts, lower priority logic interrupts with the formation of automaton mappings.  The introduction of the multiplexer and the corresponding links allows the formation of an interrupt vector, both for ordinary interrupts and for logical interruptions with the formation of automaton mappings.  Introducing the delay element and its associated links allows the second trigger to be zeroed after the microprocessor reads the return command from the logical interrupt to eliminate the offset of the block of permanent program memory by the second trigger.  The introduction of the fourth OR element and the corresponding connections allows zeroing the second trigger at the initial reset and, at the end of the logical interrupt, at the signal of the delay element.  The introduction of the fifth OR element and the corresponding links allows l to set a third trigger for generating an interrupt request both for a normal interrupt and a logical interrupt.  The introduction of the sixth OR element and the corresponding links allows the third trigger to be zeroed after the microprocessor enters the interrupt-handling cycle.  When using the present invention, a positive effect can be obtained, which is to increase the speed and expand the scope of application.  FIG. 1 is a functional block diagram of the system for software control; in fig. 2 - a fragment of the timing diagram of the reaction of the system to the usual interruption; in fig. H is the same, the reaction to logical interruption with the formation of automaton mappings; in fig.  - a graph of a sequential automaton from an example of a specific system implementation.  The device for software control of the process equipment contains a microprocessor 1 containing outputs 1. 1 addresses, a group of I / O 1. 2 data outputs 1. 3 control recording and receiving data, clock inputs of the first I.  and second one. 5 phases, reset inputs 1. 6, readiness 1. 7, synchronization output 1.8, input 1. 9 interrupt request, exit 1. 10 enable interrupt clock generator 2 containing inputs 2. 1 and 2. 2 connections of the quartz resonator, input 2. 3 synchronization, clock outputs of the first 2. 4 and second 2. 5 phases, output 2. 6 reset, exit 2. 7 readiness, exit 2. 8 synchronization, system controller 3 containing the first group of information inputs and outputs, the second group of information outputs and inputs 3. 1, which is a device data bus, memory control outputs 32, memory writing, input control input, output output, interrupt acknowledgment, device control bus, buffer amplifiers A, coaxial outputs. 1, the device address bus, the decoder 5, the memory address containing output 5. 1 connection of program block 6 of program memory, block 7 of data RAM, bus driver 8 of RAM, decoder 9 of I / O devices containing a group of outputs 9 and I / O device connections, outputs 9-2 and 93 bus shapers 10 I / O devices, six elements OR 11-16 two elements AND 17 and 18; three triggers, bus driver 22, register 23, comparison circuit and priority encoder 25, having information outputs 25-1 and output 25. 2 controls, multiplexer 26, delay element 27, reset input 28, ready input 29, capture input 30, and output 319 information inputs 32, information outputs 33, inputs 3 logic conditions, interrupt request inputs 35.  The third and fourth inputs of the clock generator 2 are the reset inputs of the 28 l ready device 29, respectively.  The first 2D and second 2, the clock outputs of the clock generator 2 are connected to the first 1.  and the second 1.5 clock inputs of microprocessor 1, respectively.  The third 2.6 and fourth 2.7 outputs of the clock gene, rator 2 are connected to the reset inputs 1 6 6 and readiness 1. 7 microprocessor 1, respectively.  Fifth exit 2. 8 clock generator 2 is connected to the synchronization input of the system controller 3.  Address Outputs 1. 1 microprocessor 1 is connected to the inputs of the buffer amplifiers k.  The group of input-output data 1c2 and outputs 1. The 3 control recording and receiving data of the microprocessor 1 is connected to the first group of information input-output and the recording control input and receiving data of the system controller 3, respectively.  The microprocess trap 1 input is the system capture input 30.  The microprocess wait output; pa 1 is the system idle output 31.  The output of the data reception control of the microprocessor 1 is connected to: the control of the inputs of the block 6 of the program memory, the bus driver 8 of the RAM, and the first input of the first element I 17.   The combined inverse outputs of the resolution of the buffer amplifiers k are connected to a negative power supply bus whose outputs are the bus Al address of the device.  The second group of information inputs / outputs of the system controller 3 is bus 3. 1 device data.  The read control outputs of the memory, write to memory, input, output, confirmation of the interrupt of the system controller 3 are bus 3. 2 device controls.  The group of information inputs of the decoder 5 memory addresses, the outputs of the decoder 9 input-output devices, the address inputs of the block 7 RAM data block. 6 program memory is connected to the bus. 1 device address.  The enable input of the address decoder 5 is connected to the output of the first element OR 11, the first and second inputs of which are connected to the outputs of the memory read and write control outputs of bus 3. 2 controls laziness respectively.  First exit 5. 1 of the address decoder 5 is connected to the first resolution input of block 6 of the program permanent memory.  -Second exit 5. 2 address decoder 5 is connected to the enable input of the bus driver 8 of the RAM and to the enable input of the RAM block 7.  The information inputs of the data RAM block 7 are connected to the second group of information inputs of the bus driver 8 RAM.  The information outputs of the data RAM block 7 are connected to the third group of information inputs / outputs of the bus driver For RAM.  I The enable input of the I / O decoder 9 is connected to the input control outputs from the input and output devices to the output devices of the system controller 3 via the OR 12 element, respectively.  Exit group 9. 1 of the I / O device decoder 9 is connected respectively to the enable input group of the bus driver 10 I / O devices, the enable input of which is connected to the input control output from the input device of the system controller 3.  The inputs of the bus driver 10 I / O devices are the information inputs 32 of the system, and the outputs the information outputs 33 of the device.  The output of the first element And 17 is connected to the enable input of the bus driver 22.  The reset inputs of register 23 and the first trigger 19 are connected to output 2. 6 reset the clock generator 2.  The outputs of register 23 are connected to the first group of yodes of the comparison circuit 2, the output of which is connected to the first input of the second element I 18, the second input of which is connected to the output of the first trigger 19, the information input of which is connected to the bus 3. 2 system data.  The synchronization input of register 23 is connected to the output of the third element OR 13, the first input of which is connected to the third output 9. 3 of the decoder 9 of the input / output device, and the second input is connected to the output of the second trigger 20 connected to the address input of the multiplexer 2b, the upper address input of the program memory 6, and the additional information input of the address decoder 5.  Third exit 5. 3 decoder 5 address is connected to the input of the element 27 of the delay, the output of which is connected to the first input of the fourth element OR I.  The second inverse input of the fourth element OR 1 k is connected to the output of the first trigger 19. The third input of the fourth element OR I is connected to the reset input of the first trigger 19-The output of the fourth element OR 1 is connected to the reset input of the second trigger 20, whose information input is connected to the output of the 2k comparison circuit, and the synchronization output of which is connected to the interrupt confirmation output of the system controller 3 synchronization of the first trigger 19 is connected to the second output 9. 2 decoder 9 I / O devices The information inputs of the register 23, the second group of inputs of the 2k circuit as compared to the second group of inputs of the multiplex 26 are the inputs 3 of the logical system conditions.  The second input of the first element And 17 is connected to the output of confirmation of the interruption of the system controller 3.  The third input of the second element And 18 is connected to the output 1. 8 synchronization of the microprocessor 1, and its fourth input is connected to the output 1. 10 microprocessor interrupt enable 1.  ; The output of the second terminal And 18 is connected to the first input of the fifth element OR 15, the second input of which is connected to the output 25. 2 control priority encoder 25.  The inputs of the priority encoder 25 are the inputs 35 of system interrupt requests.  Information outputs 25. 1 of the priority encoder 25 is connected to the first group of inputs of multiplexer 26, the outputs of which are connected to the first group of information inputs of the bus driver 22, to the second group of information inputs of which are connected the outputs of the driver unit Vector transition commands performed by connecting the corresponding bit driver to the limiting resistor to positive pole of the power source.   The output of the fifth element OR 15 is connected to the data input of the third three | - Gera 21, the reset input of which is connected to the output of the sixth element OR 1b.  The first inverted input of the sixth element Or 1b is connected to output 1. 10 enable interrupt microprocessor 1, and its second input is connected to output 2. 6 reset the clock generator 2.  The output of the third trigger 21 is connected to the output 1. 9 microprocessor interrupt request 1.  The synchronization input of the third trigger 21 is connected to the clock output 2. 4 first phase clock generator 2.  The microprocessor 1 is designed to run the program, t. It is a sequence of commands used to implement a control algorithm and to control a system with bus organization.  The microprocessor senses external clock signals and external 30-33 control signals and generates address signals (1. 1) data (1. 2) as well as control signals (b3).  The microprocessor 1 can be implemented, for example, on a standard integrated circuit KR580IK89A.  The clock generator 2 is designed to form two high-voltage (12V) non-overlapping clock pulses (2. 4,, 5), the formation of control signaling reset (2. 6) and readiness (2. 7) about external signals of the system (2. 8, “9) and to form a system throw (2. 8) according to the sync pulse (2. 9), which is accessible from microprocessor 1, and can be implemented, for example, on a standard integrated circuit KR580GF24, (legs 13,12 and 6 are not connected).  The system controller 3 is designed to increase the load capacity of the bus 3. 1 of data and the organization of bi-directional MBHHBIXS transmission for fixing the control word of microprocessor 1, coming over the data bus at the moment of the system strobe arrival (2. 8) from the clock generator 2, and forming in accordance with the control word and data recording and receiving signals (1. 3) microprocessor 1 bus 3. 2 device controls for each machine cycle.  The 11th control of the device includes control signals for reading the memory, writing to the memory, inputting to the input device, outputting from the system, confirming the interrupt, System Controller 3 can be played, for example, on a standard CRF80BK28, Buffer amplifiers and bus drivers B and 10 are intended to increase the load capacity of the data bus of the system data and to organize bi-directional data transmission over bus 3. 1 data (second group of outputs-inputs of the system controller) to memory blocks or from memory blocks, to external devices or from external devices, depending on control signals E1 and E2; In the absence of control signals, the outputs of bus drivers are in high impedance condition ,.  disconnected from the data bus.  The bus formers can be implemented on standard integrated circuits 589 ltb. The bus driver 8 of the data storage unit is designed to increase the load capacity of the bus data 3. 1, d, under the outputs of the unit 7, operating system: bus to the bus 3. 1 data in read mode, for connecting the data inputs of the RAM block 7 to the data bus 3 "in record mode.   Bus bar drivers 10 for input and output are designed to increase the load capacity of the GTP bus data and to connect to the bus Z. The delivered data inputs 32 in the input mode from input devices, for connecting bus 3. 1 data to information outputs 33 in output mode to output devices.  Buffer amplifiers k are designed to increase the load capacity of the bus A. 1 addresses of the system, as well as to translate their outputs into a high-impedance state when activating the discharge. Confirmation of the capture of the outputs 1. 3 microprocessor controls 1. i The address decoder 5 is designed to decrypt the address set by the bus. 1 address of the system, if the output of the element OR 11 is activated.  To connect the block of program constant memory, the output 5-0 of the decoder 5 is excited; to connect the block 7 of the RAM and the bus driver 8 of the RAM - output 5. 2  In addition, the address decoder 5 takes into account the information at the output of the trigger 20 and decrypts the return command addresses from the logic interrupt processing programs.  At the same time, output 5 is excited. 3  In the normal operation mode, the address bus decryption is performed taking into account the zero state of the output of the trigger 20.  Address decoder can be implemented, for example, on standard integrated circuits 155IDZ.  The decoder 9 I / O devices designed to decrypt information on the bus j. l system addresses if the output of the OR 12 element is activated to connect the I / O bus driver 10 and initialize the system to a logic interrupt.  To connect the I / O bus drivers 10, one corresponding bit of the output group 9 is activated. 1 external device connection.  To gate a trigger 19 that has a specific address when outputting to that address (input to this address is not used), output 9 is activated. 2  For gating trigger 23 through the element OR 13, output 9 is excited in the same way. 3  The decoder 9 input-output-j-water devices can be implemented, for example, on standard integrated microcircuits-f max 155 Idz.  The first element, OR 11, is intended to form the E1 enabling signal of the decoder 5 of the memory address, according to the bus 3. 2 controls one of the read / write memory control signals.  The second element OR 12 is intended to form a permitting signal for the decoder 9 input-output devices with bus 3 present. 2 control none of the input control signals from an input or output device to an output device.  The third element OR 13 is designed to control the synchronization input of the register 23 as output 9. 3 of the decoder 9, and the output of the second trigger 20 for writing to the register 23 or the initial state of the logical conditions of the inputs 3, or for writing the modified and already processed value of the logical conditions of the inputs Z.  The fourth element OR k is intended to control the zeroing input of the second flip-flop 20 either at initial reset from output 2 to 6 of generator 2, or by the signal from the output of delays 27 at the end of the logical interrupt - after reading the return command by microprocessor 1, or if there is no permission for logical interrupt (the first trigger 19 is reset). The fifth element OR 15 is designed to control the data input of the third trigger 21 for generating an interrupt request or a signal from output 25. 2 priority encoder 25 (normal interrupt) or a signal from the second element (logical interrupt).  The sixth element OR 1b is designed to control the reset input of the third trigger 21, either at initial reset, with a signal (2.6) of the clock generator 2, or if the output T o 10 is zeroed and the microprocessor interrupt is enabled 1 o When the output of the OR 16 is activated, trigger 21 is reset regardless of information on its data output and synchronization. The first element And 17 is designed to control the enable input of the tires of the hojo driver 22 to connect its outputs to the bus 3. 1 data.  In the event that on the tire 3. 2 control there is a control signal for confirming an interrupt, and at the outputs 1. 3 microprocessor controls 1 data receive signal, i.  when the microprocessor reads the interrupt vector from the data bus.  The second element AND 18 is designed to control the fifth element OR 15 when generating a request for a logical interrupt if the output of the comparison circuit 2C is activated (logical conditions have changed), interruptions are enabled (output 1 is activated. 10 microprocessor 1), a clock pulse arrived from output 1 - 8 of microprocessor 1 and the first trigger 19 was set.  The first trigger 19 is intended for the d / 1 control of the second element AND 18 and the fourth element OR N in order to resolve the logical interruption discipline.  If these are forbidden, then AND 18 is blocked, and three | - ger 20 through OR OR I is held in the zero state. The first trigger 19 is set to the zero state by initial reset on its asynchronous zero input, set and zeroed by the bus. data on the leading edge of the signal at the output of the decoder 9 The first trigger 19 can be implemented, for example, on a standard integrated circuit 155TM2. The second trigger 20 is designed to control the high-order address of the block 6 of the fixed memory npoi- frame, input m address multiplexer 2b and the third elementom OR 13 when implementing second logical interrupt trigger 20 is set on the rising edge of the control signal is an interrupt acknowledge bus control SO2 if activated output circuit 2k comparison.  This is necessary to ensure the priority of changes in the logical conditions of inputs 3 with respect to requests for inputs 35 Thus, even if the interrupt request (1. 9) triggered by a request received earlier on inputs 35, but the logical conditions have already changed, or the queries were received simultaneously, the second trigger 20 is established when the interrupt acknowledgment is generated, it switches the multiplexer 20 off, providing a constant address offset of 6, m. her.  will provide the implementation of the ogic interrupt.  If interrupts are disabled by software, trigger 20 will never be set, as there will be no interrupt acknowledge signal synchronizing it.

Второй триггер 20 обнул етс  через элемент ИЛИ 1k либо начальным сброт, сом, либо по окончанию логического прерывани , либо удерживаетс  в нулевом состо нии выходом первого триг гера 19.The second trigger 20 is zeroed through the OR element 1k, either the initial slam, catfish, or at the end of the logical interrupt, or is kept in the zero state by the output of the first trigger 19.

Второй триггер 20 может быть реализован , например, на стандартно интегральной микросхеме 155ТИ2.The second trigger 20 may be implemented, for example, on a standard integrated chip 155TI2.

Третий триггер 21 предназначен дл  формировани  запроса на прерывание на соответствующий вход 1.9 микропроцессора 1 при возбуждении его входа данных выходом п того элемента ИЛИ 16 по синхроимпульсу на входе 1 .} микропроцессора i „ Триггер 21 обнул етс  через глемент ИЛИ 16 на чальным способом, либо удерживаетс  в нулевом состо нии при запрете на прерывание. При сн тии этого запрета (при обнулении выхода ИЛИ 16), если поступили очередные запросы (активирован выход элемента ИЛИ 15), третий триггер 21 установитс  в состо ние логической единицы по синхроимпульсу выхода 2, и сформирует очередной запрос прерывани ,The third trigger 21 is designed to form an interrupt request to the corresponding input 1.9 of the microprocessor 1 when its data is excited by the output of the fifth element OR 16 by the sync pulse at input 1.} Microprocessor i "The trigger 21 is zeroed by the OR 16 element or is kept in zero state when interrupt is disabled. When this prohibition is cleared (if the output is reset to OR 16), if the next requests are received (the output of the element OR 15 is activated), the third trigger 21 is set to the state of logical unit by the output 2 sync pulse, and generates the next interrupt request

Третий триггер 21 может быть реализован , например, на стандартных интегральных микросхемах 155ТМ2.The third trigger 21 can be implemented, for example, on standard integrated circuits 155TM2.

Шинный формирователь 22 предназначен дн  выдачи на шину 31 данных кода команды вектора прерывани , име ющегос  на выходе мультиплексора 26, при активировании его входа разрешени  г ерзым элементом И Г/.The bus driver 22 is intended to output to the bus 31 the data of the interrupt vector command code, having at the output of the multiplexer 26, when activating its enable input with the bold element I G /.

формирователь команды векторного перехода реализуетс , путем подключени  разр дов входов 7,6,0,1,2 шинного формировател  22 к положительному полюсу источника питани  через ограничительный резистор, как это указано на фиг.К Разр ды подключены к выходам, мультиплексора 26. Шинный формирователь 22 может быть реализован, например, на стандартных интегральных микросхемах 585 АП16. Регистр 23 предназначен дл  записи и хранени  кода логических уелоВИЙ входов 3 либо исходного кода, либо кода, об|эаботанного в последнем логическом прер лвании. Информаци  с входов 3 заноситс  в регистр 23 задним фронтом сигнала на выходе элемента ИЛИ 13. Регистр 23 обнул етс  начальным стробом - выходом 2,6 генератора 2. Регистр 23 выдает хранимый код посто нно на схему 2k сравнени .the driver of the vector-transition command is realized by connecting the bits of the inputs 7,6,0,1,2 of the bus driver 22 to the positive pole of the power source through the limiting resistor, as indicated in FIG. 22 can be implemented, for example, on standard integrated circuits 585 AP16. Register 23 is intended for recording and storing the code of logical inputs 3 or of the source code or the code processed in the last logical interrupt. The information from inputs 3 is entered into register 23 by the falling edge of the signal at the output of the element OR 13. Register 23 is zeroed by the initial gate - output 2.6 of generator 2. Register 23 outputs the stored code permanently to the 2k comparison circuit.

Регистр 23 может быть реализован, например , на стандартных интегральных микросхемах 155ИР13.Register 23 can be implemented, for example, on standard integrated circuits 155IR13.

Схема 24 сравнени  предназначена дл  сравнени  текущего кода логических условий на входе 3 с исходным кодом, либо с последним обработанным кодом, хранимым в регистре 23. При несравнении возбуждаетс  ее выход дл  управлени  элементом И 18 и триггером 20.Comparison circuit 24 is designed to compare the current code of logical conditions at input 3 with the source code, or with the last processed code stored in register 23. During non-comparison, its output is activated to control the element 18 and the trigger 20.

Схема 2 сравнени  может быть реализована , например, на стандартных интегральных микросхемах 533СП1.Scheme 2 comparison can be implemented, for example, on standard integrated circuits 533SP1.

Приоритетный шифратор 25 предназначен дл  шифрации с приоритетом обычных запросов на пребывание по входам 35. и формирует на выходах 25.1 код номера устройства, старшего по приоритету из всех устройств, выставивших логические единицы на входах 35. При наличии хот  бы одного запроса на входах 35 возбуждаетс  выход 25.2 приоритетного шифратора 25о Приоритетный шифратор 25 может быть реализован, например, на стандартных интегральных микросхемах 155ИВ1.The priority encoder 25 is designed to encrypt with the priority of ordinary requests for stay on inputs 35. and generates on device outputs 25.1 the device number code, the highest priority of all devices that put logical units on inputs 35. 25.2 Priority Encoder 25o Priority Encoder 25 can be implemented, for example, on standard integrated circuits 155IV1.

Мультиплексор 26 предназначен дл  подключени  к шинному формирователю 22 либо кода устройства (старшего по приоритету) с выходов 25-.1 приоритетного шифратора 25 (обычное прерывание ), либо собственно логических условий с входов З (логическое прерывание ). Управление адресным входом осуществл етс  выходом триггера 20. Если он обнулен, то на выход мультиплексора передаетс  информаци  с выходов 25.1 приоритетного шифратора 25, если установлен - с входов 3.The multiplexer 26 is designed to connect to the bus driver 22 either the device code (senior in priority) from the outputs 25-.1 of the priority encoder 25 (normal interrupt) or the actual logical conditions from inputs 3 (logical interrupt). The address input is controlled by trigger output 20. If it is set to zero, information from the outputs 25.1 of the priority encoder 25 is transmitted to the output of the multiplexer, if it is set, from inputs 3.

Мультиплексор 26 может быть реализован , например, на стандарных интегральных микросхемах 155КП1.The multiplexer 26 can be implemented, for example, on standard integrated circuits 155KP1.

Элемент 27 задержки предназ.начен дл  .задержки сигнала, формируемого на выходе дешифратора 5 адреса пам ти,с целью обнулени  триггера 20 после надежного считывани  микропроцессором 1 адреса возврата в основную программу из логического прерывани , так как эта команда записана в блоке 6 посто нной пам ти программ по адресу с единицей в старшем разр де, активируемом выходом второго триггеpa 20, a основна  программа располо жена по адресам с нулем в этом стар шем разр де. Когда микропроцессор 1 считает команду возврата (при этом на ее адресе возбуждаетс  выход 5,3 дешифратора 5), начнет операцию по извлечению из стэка адреса возврата (внутренние операции без обращени  к пам ти), тогда импульс на выходе элемента 27 задержки через элемент ИЛИ И обнулит триггер 20 Элемент 27 задержки может быть реализован, например, на четном коли честве последовательно соединенных инверторов. Вход 28 сброса предназначен дл  приема сигнала начального сброса системы . Вход 29 готовности предназначен дл  приема внешнего сигнала готов нос ти (например, с медленных носителей информации при загрузке блока 7 оперативной пам ти). Вход 30 захвАта предназначен дл  приема сигнала захвата, например, с внешних быстродействующих носителей информации дл  инициировани  пр мого доступа в пам ть Выход 31 ожидани  предназначен дл выдачи сигнала ожидани , если на входе 29 готовности - логический ноль о Информационные входы 32 предназна чены дл  приема информационных сигналов состо ни  оборудовани , прозер емых программно без использовани  прерываний. Информационные выходы 33 предназначены дл  выдачи управл ющих сигналов на исполнительные органы, в том числе и сигналов, (формируемых в обыч ном и логическом прерывании. В обычном прерывании часть этих выходов обнул ет флажки устройств, вызвавших прерывание после их обслуживани . Входы 3 логических условий предназначены дл  приема логических условий , состо ни  дискретных датчиков технологического оборудовани , изменени  которых обрабатываютс  с исполь ованием логического прерывани  о формированием автоматных отображений от этих сигналов. Информаци  н входах 3 измен етс  не быстрее времени выполнени  логического прерывани  с учетом ожидани  окончани  обычного прерывани , если оно уже началось. Входы 35 запросов на прерывание предназначены дл  приема сигналов запроса на прерывание (флажков устройств типа диспле , клавиатуры, пульта оператора и пр). Устройство выставл ет на соответствующем разр де входов 35 логическую единицу триггером , принадлежащим техническим средствам этого устройства, который обнул етс  в конце программы обслуживани  данного устройства. Устройство дл  программного управлени  работает следующим образом Обычное прерывание. В этом режиме устройство программно разрешает прерывани . При этом на выходе 1,10 разрешени  прерывани  микропроцессора устанавливаетс  логическа  единица (фиг.1 и 2). При по влении на входах 35 хот  бы., од ной единицы , на выходе 25о2 приоритетного шифратора устанавливаетс  логическа  единица, котора , через элемент ИЛИ 15 устанавливает триггер 21 по синхровходу 2,4, выходной сигнал которого подает на вход 1.9 запроса прерывани  микропроцессора 1 логическую единицу. Микропроцессор 1 в последнем такте последнего цикла текущей команды , обнаружив запрос прерывани , устанавливает свой внутренний триггер прерывани -и сбрасывает триггер разрешени  прерывани  и переходит в цикл обработки прерывани , В св зи с этим, на выходе 1,10 устанавливаетс  логический нуль, который по инверсному входу элемента ИЛИ 16 сбрасывает и блокирует триггер 21, запреща  ус тановку по синхровходу 2„4, Код уст-, ройства, сформировашего запрос, устаиовлен на выходе 25,1 приоритетного шифратора 25- После перехода микропроцессора 1 в цикл обработки прерывани  в первом его цикле выдаетс  слово состо ни  в системный контроллер 3 и возбуждаетс  сигнал подтверждени  прерывани  (INTA на фиг,1 и 2) шины 3.2 управлени . Затем возбуждаетс  управл ющий сигнал приема (DBIN на фиг.1 и 2) шины 3«2 управлени  и воз-, буждаетс  выход элемента И 17 акти- . вирующий вход разрешени  шинного формировател  22. С выходов 25о1 через ультиплексор 26 и шинный формироваель 22 на шину 3.1 данных выдаетс  од вектора прерывани  (RST на фиг«2) помощью формировател  команды векорного перехода. Далее, микpoJ po1 цессор организует запись ,в стек адре са возврата (содержимое счетчика команд: СК на фиг о2) в точку прерванной программы и переходит к выполнению программы по адресу, соответствующему введенному коду вектора прерывани  (RST) и снимает сигнал подтверждени . Программа обработки прерывани  может включать запись в стек с последующим извлечением информации всех регистров, обработку информации с устройства, вызвавшего его, об зательно - обнуление триггера запроса прерывани  этого устройства (с выходов 33 этот триггер относитс  к внешнему оборудованию и не указан на фиг.1). Поэтому снимаетс  логическа  единица с входов 35« выходы 25,2 при оритетного шифратора 25. 3 заключение программно устанавливаетс  внутренний триггер разрешени  прерывани  микропроцессора 1. поэтому на выходе 1,10 устанавливаетс  логическа  единица , и выполн етс  команда возврата к прерванной программе. Если другое устройство установит на входах 35 логическую единицу,то процесс прерываний повторитс  аналогично , только в соответствии с новым кодом на выходах 25.1 приоритетного шифратора будет обслужено устройство , вызвавшее прерывание. Если одновременно требуют обслуживани  несколько устройств, то на выходе 25.1 приоритетного шифратора будет установлен код старшего по приоритету устройства (старшей единицы ) . По окончанию программы обслуживани  этого устройства последовательно будут обслужены прерывани  от младших по приоритету устройств. Таким образом, обработка обычного прерывани , вызванного флажками внеш них устройств, требующих обслуживани , в предлагаемом устройстве аналогична известной дисциплине прерыва ний в системах програамного управлени . Прерывание с формированием автоматных отображений (логическое прерывание ). Если одновременно с поступлением запросов на входы 35 (до перехода выхода 1.10 в состо ние логического . нул , или в отсутствие таковых изменитс  информаци  на входах 3 логических условий, то на выходе схемы 2 сравнени  установитс  логическа  20 единица по синхроимпульсу выхода 1,8 микропроцессора 1. Так как триггер 19 предварительно установлен (при инициализации ) и прерывани  разрешены, то по импульсу на выходе 1.8 микропроцессора 1 активируетс  выход элемента И 18, устанавливающий через элемент ИЛИ 15 триггер 21 по синхроимпульсу выхода 2,k (синхроимпульс выхода 1.8 перекрывает выход 2.4). Если триггер 21 уЛе установлен - чуть раньше поступил сигнал с выхода 25.2 приоритетного шифратора 25, но еще не обнулилс  выход 1.10 микропроцессора 1, то состо ние триггера 21, сформировавшего уже запрос на обычное прерывание от входов 35, не изменитс , но обслуживатьс  будет логическое прерывание. В том случае, если поступил запрос от входов 35, выход 1.10 обьулитс  и сигнал подтверждени  прерывани  уже сформировалс , то логическое прерывание будет обслужено после обычного прерывани . На фиГоЗ показан вариант одновременного возбуждени  элемента И 18 и выхода 25.2 приоритетного шифратора 25. Аналогично триггер 21 формирует запрос прерывани  на вход 1,9 микропроцессора 1, далее снимаетс  разрешение с выхода 1.10, триггер 21 обнул етс  через элемент И 16 и удерживаетс  в логическом нуле до по влени  логической единицы на входе 1.10. Далее микропроцессор 1 переходит в цикл обработки прерываний, формируетс  управл ющий сигнал подтверждени  прерывани  на шине Зо2 управлени  (iNTA на фиг.З), по которому так как на выходе схемы 2k сравнени  единица, устанавливает триггер 20. Триггер 20 переключает мультиплексор 26 и активирует старший разр д адресных входов блока 6 посто нной пам ти, который не подключен к шине адреса, т.е. смещение адресного пространства блока 6. Через элемент ИЛИ 13 в регистр 23 записываютс  новые значени  входов 3 логических условий и выход схемы 2k сравнени  обнул етс  после того, как обнулитс  триггер 20. Последний удерживаетс  в нулевом состо нии через элемент ИЛИ 14 по его инверсному входу , если триггер 19 обнулен - т.е. логическое прерывание запрещено. Поэтому измененна  информаци  с входов 34 через мультиплексор 26, шинный формирователь 22, вход разрешени  которого активирован выходом злемент:а Й17 как описано,поступит на шину 3.1 данных, причем микропроцессор 1 воспринимает ее как вектор прерывани , но в действительности она имеет другой смысл: это не код устройства, старшего по приоритету, а состо ние логических условий 36 - т.е, собственно состо ние датчиков технологического оборудовани . Информацию (измененна , очередное состо ние) с датчиков необходимо обработать, т.е. сформировать автоматное отображение - в соответствие с некоторой системой булевых функций или таблицей истинности, которые описывают закон формировани  управл ющих воздействий на исполнительные органы технологического оборудовани  Микропроцессор 1 как и ранее, записывает в стек содержимое счетчика команд, адресует в соответствие с вектором прерывани  (RST на фиг,3), который представл ет собой код логических условий, первую  чейку пам ти программы обработки прерывани  и выполн ет ее, формиру  управл ющие воздействи  в соответствие с заданной системой булевых функций или таблицей истинности. По окончанию этой программы осуществл етс  вывод управл ющего воздействи  на выход 33 выполнение команды разрешени  прерывани  (при этом устанавливаетс  выход 1о10) и возврата в основную программу . На адресах команд возврата (RET4 на фиг.З) в основную программу программ обработки прерываний по входам 3 возбуждаетс  выход 5.3 дешифратора 5, поэтому через элемент 27 задержки, элемент ИЛИ I обнул етс  триггер 20. Элемент 27 задержки обес печивает задержку на надежное считывание команды возврата по адресу, учитывающему возбужденный выход триг гера 20. Последний обнул етс  и муль типлексор 26 переключаетс . Микропроцессор 1 выполн ет прерванную про грамму. Если во врем  выполнени  про граммы обработки прерываний от входов З поступ т запросы на входы 35, это не приведен к повторной установке триггера 21, так как обнулен возбужденным входом асинхронного сброса выходом 1.10 через элемент ИЛИ 16 Эти запросы будут обслужены по окончании обработки сигнала с входов 3 7522 Iпосле перехода в основную программуj. Скорость изменени  сигналов на входах 3 такова, что микропроцессор 1 успевает обрабатывать их изменение. Они измен ютс  не быстрее, чем обрабатываетс  очередное их изменение и прерывание с входов 35, если оно уже начато, т.е. после установки выхода 1.10 в логическую единицу вновь может быть установлен триггер 21 по синхроимпульсу выхода 2 и вновь начнетс  обработки простого или логического прерывани . Таким образом, нова  введенна  дисциплина логического прерывани  с формированием,автоматных отображений позвол ет ускорить обработку изменени  логических условий в соответствие с заданной системой булевых функций или таблицей истинности по сравнению с известным изобретением, в котором логическа  обработка (ветвление по значению логических условий ) Осуществл етс  Только в заданной точке программы. В предлагаемой системе изменение значени  логических условий сразу же вызывает прерывание, приоритет которого старше приоритетов других устройств (пульта оператора и т.д.) и формирование управл ющего воздейстаи  на исполнительные органы. При этом микропроцессор 1 формирует переходы по тем же адресам, что и обычном прерывании, а смещение адресного пространства блока 5 дл  формировани  автоматных отображений осуществл етс  по его старшему разр ду выходом мультиплексора 2.6. Если исходное положение входов 3 отлично от нулевого, то программно микропроцессор 1 возбуждает выход 9.3 дешифратора 9 (например, командой вывода по адресу, присвоенного регистру 23) и через элемент ИЛИ 13 с входов З в регистр 23 записываетс  исходное состо ние датчиков. Затем так™ же возбуждаетс  выход 9.2 дешифратора 9 и в триггер 19 с разр да шины 3.1 данных записываетс  единица, тем самым разрешаетс  нова  дисциплина огического прерывани  - с формированием автоматных отображений. При необходимости запрета дисциплины анаогично в триггер 19 заноситс  логиеский ноль, тогда контроллер реагиру т только на обычные прерывани  - по входам 35- 2317 Активирование выхода элемента И 18 производитс  по синхроимпульсу выхода 1.8 микропроцессора 1, т.е,, до анализа микропроцессором 1 наличи  прерываний - возбужденного выхода 1.9 которое происходит в последнем такте последнего цикла текущей команды три (синхроимпульс формируетс  в первом такте). Установка триггера 21 происхо дит по переднему фронту синхроимпульса на выходе 2. тактового генерато ра 2, если не активирован его вход обнулени  (в этом случае он удерживаетс  в нуле). Синхроимпульс выхода 1.8, активирующий выход элемента 19 перекрывает тактовый импульс 2,|.The delay element 27 is designed to delay the signal generated at the output of the memory address decoder 5 in order to zero the trigger 20 after the microprocessor 1 reliably reads the return address to the main program from the logical interrupt, since this command is written in block 6 of the persistent memory These programs are at the address with the unit in the higher order activated by the output of the second trigger 20, and the main program is located at the addresses with a zero in this senior rank. When microprocessor 1 reads the return command (the output 5.3 of the decoder 5 is excited at its address), starts the operation to retrieve the return address from the stack (internal operations without accessing the memory), then the pulse at the output of the delay element 27 through the element OR OR reset the trigger 20. The delay element 27 can be implemented, for example, on an even number of series-connected inverters. The reset input 28 is for receiving an initial system reset signal. The readiness input 29 is intended for receiving an external signal ready from (for example, from slow storage media when loading the memory unit 7). Capturing input 30 is for receiving a capture signal, for example, from external high-speed storage media for initiating direct memory access. Waiting output 31 is for issuing a wait signal if, at readiness input 29, a logical zero. Information inputs 32 are intended to receive information Signals of equipment status, prograzimyaemyh software without interrupts. Information outputs 33 are designed to issue control signals to the executive bodies, including signals, (generated in a normal and logical interrupt. In a normal interrupt, some of these outputs are turned on by the flags of the devices that caused the interruption after their service. Inputs 3 logical conditions are intended to receive logical conditions, the state of discrete sensors of technological equipment, the changes of which are processed using logical interruptions about the formation of automaton mappings from these The information on the inputs 3 does not change faster than the logical interrupt execution time, taking into account the waiting for the end of the normal interruption, if it has already begun. The interrupt request inputs 35 are designed to receive interrupt request signals (flags of the display, keyboard, operator panel and other The device exposes at the corresponding bit of the inputs 35 a logical unit with a trigger belonging to the technical means of this device, which is zeroed at the end of the service program of the device. The software control device operates as follows Normal interrupt. In this mode, the device software permits interrupts. In this case, at the output of the microprocessor interrupt enable 1.10, a logical unit is set (Figs. 1 and 2). When at least one unit appears at inputs 35, a logical one is set at output 25o2 of the priority encoder, which, via OR 15, sets trigger 21 via synchronous input 2.4, the output of which supplies input 1 to interrupt request 1 of microprocessor 1 unit Microprocessor 1 in the last clock of the last cycle of the current command, detecting an interrupt request, sets its internal interrupt trigger, and resets the interrupt enable trigger and goes into the interrupt processing cycle. In connection with this, the output 1,10 sets a logical zero, which is inverse the input of the element OR 16 resets and blocks the trigger 21, prohibiting the installation of the sync input 2 "4, the code of the device, which formed the request, installed on the output 25.1 of the priority encoder 25- After the microprocessor 1 goes into cycle interrupt processing cycle in a first status word is output to the system controller 3 and is driven by an interrupt acknowledgment signal (INTA in Figure 1 and 2) controlling tire 3.2. Then, the reception control signal (DBIN in FIGS. 1 and 2) of the control bus 3 "2 is energized and the output of the AND element 17 is activated. The enable input of the bus driver 22. From the outputs 25-1 through the ultiplexer 26 and the bus driver 22 to the data bus 3.1 is output one of the interrupt vector (RST in FIG. 2) using the driver of the crossover command. Next, the microprocessor organizes a write to the stack of return addresses (command counter contents: IC in FIG. 0) to the point of the interrupted program and proceeds to program execution at the address corresponding to the entered interrupt vector (RST) code and removes the confirmation signal. The interrupt processing program may include writing to the stack followed by extracting information from all registers, processing information from the device that caused it, necessarily resetting the interrupt request trigger of this device (from the outputs 33, this trigger refers to external equipment and is not indicated in Fig. 1) . Therefore, the logical unit is removed from the inputs 35 ", outputs 25.2, with the priority encoder 25. 3 the software sets the internal trigger for interrupting the microprocessor 1 output. Therefore, logical output is set at output 1.10, and the command to return to the interrupted program is executed. If the other device installs a logical unit at the inputs 35, then the interrupt process will be repeated in the same way, only in accordance with the new code at the outputs of 25.1 priority encoder the device that caused the interrupt will be served. If several devices simultaneously require servicing, then the output of the 25.1 priority encoder will set the code of the device with the highest priority (senior unit). At the end of the maintenance program of this device, interruptions will be serviced sequentially from lower priority devices. Thus, the processing of a normal interrupt caused by flags of external devices requiring servicing in the proposed device is similar to the well-known discipline of interruptions in software control systems. Interruption with the formation of automaton mappings (logical interrupt). If simultaneously with the receipt of requests for inputs 35 (before output 1.10 goes to the logical. Zero state, or in the absence of those, the information on the inputs 3 of the logical conditions changes, then the output of the comparison circuit 2 will set the logical 20 unit according to the sync pulse 1.8 of the microprocessor 1 Since the trigger 19 is preset (during initialization) and interrupts are enabled, the output of the AND 18 element is activated by the pulse at the output 1.8 of the microprocessor 1, which sets the trigger 21 via the output pulse 2, the synchro Output pulse 1.8 overlaps output 2.4.) If trigger 21 is set — a signal from output 25.2 of priority encoder 25 arrived a bit earlier, but output 1.10 of microprocessor 1 did not reset, then state of trigger 21, which has already generated a request for a normal interrupt from inputs 35, does not change, but a logical interrupt will be serviced. If a request is received from inputs 35, output 1.10 is cleared and an interrupt acknowledge signal has already been generated, then the logical interrupt will be served after a normal interrupt. The option shows the simultaneous excitation of the element 18 and the output 25.2 of the priority encoder 25. Similarly, the trigger 21 forms an interrupt request to the input 1.9 of the microprocessor 1, then the resolution is removed from the output 1.10, the trigger 21 is zeroed through the element 16 and is held at logical zero until the appearance of a logical unit at the input 1.10. Next, microprocessor 1 goes into the interrupt processing cycle, forms a control signal for confirming an interrupt on control bus So2 (iNTA in FIG. 3), according to which, as at the output of comparison circuit 2k one, sets trigger 20. Trigger 20 switches multiplexer 26 and activates high the bit address of the inputs of the block 6 of the permanent memory, which is not connected to the address bus, i.e. the offset of the address space of the block 6. Through the OR 13 element, the register 23 records the new values of the inputs 3 logical conditions and the output of the comparison circuit 2k is zeroed after the trigger 20 is reset. The latter is held in the zero state through the OR element 14 by its inverse input, if trigger 19 is reset - i.e. logical interrupt is prohibited. Therefore, the modified information from the inputs 34 through multiplexer 26, bus driver 22, the resolution input of which is activated by the output element: a H17, as described, goes to the data bus 3.1, and the microprocessor 1 perceives it as an interrupt vector, but in reality it has a different meaning: not the device code, which is higher in priority, but the state of logical conditions 36 - that is, the actual state of the sensors of the process equipment. The information (changed, the next state) from the sensors needs to be processed, i.e. create an automaton mapping - in accordance with a certain system of Boolean functions or a truth table that describe the law of formation of control actions on the executive bodies of the process equipment. Microprocessor 1, as before, writes the contents of the command counter to the stack, addresses it according to the interrupt vector (RST in FIG. , 3), which is the code of logical conditions, the first memory cell of the interrupt processing program and executes it, which forms control actions in accordance with given by a system of boolean functions or a truth table. At the end of this program, a control action is output to the output 33 of executing an interrupt enable command (this sets an output of 1-10) and returning to the main program. At the addresses of the return commands (RET4 in FIG. 3), the output 5.3 of the decoder 5 is energized in the main program of interrupt handling programs. Therefore, through delay element 27, the OR I element zeroes the trigger 20. The delay element 27 ensures a delay for reliable reading of the command the return to the address that takes into account the excited output of trigger 20. The latter is reset and the multiplexer 26 is switched. Microprocessor 1 executes an interrupted program. If during the execution of the interrupt handling program from inputs 3, requests for inputs 35 are received, this is not forced to re-install trigger 21, since reset by the excited asynchronous reset input of output 1.10 through the OR element 16 These requests will be served after the processing of the signal from the inputs 3 7522 I after the transition to the main programj. The rate of change of signals at inputs 3 is such that microprocessor 1 has time to process their change. They change no faster than processing their next change and interruption from inputs 35, if it has already begun, i.e. After setting output 1.10 to a logical unit, trigger 21 can again be set according to output 2 clock and a simple or logical interrupt processing starts again. Thus, a new introduced logical interruption discipline with the formation of automaton mappings allows us to accelerate the processing of changing logical conditions in accordance with a given system of Boolean functions or a truth table in comparison with the known invention, in which logical processing (branching by the value of logical conditions) is carried out only at a given point in the program. In the proposed system, a change in the value of logical conditions immediately causes an interruption, the priority of which is higher than the priorities of other devices (operator console, etc.) and the formation of a controlling effect on the executive bodies. At the same time, microprocessor 1 forms transitions to the same addresses as the usual interrupt, and the address space of the unit 5 is shifted to form automata mappings according to its high bit by the output of multiplexer 2.6. If the initial position of the inputs 3 is different from zero, then the microprocessor 1 excites the output 9.3 of the decoder 9 (for example, an output command at the address assigned to the register 23) and OR through the element 13 from the inputs 3 to the register 23 records the initial state of the sensors. Then, the output 9.2 of the decoder 9 is also excited and a trigger is written to the trigger 19 at the bit of the data bus 3.1, thereby allowing a new discipline of the optical interrupt — forming automatic mappings. If it is necessary to prohibit discipline, a logic zero is triggered anaogically in trigger 19, then the controller reacts only to normal interrupts — at inputs 35–2317. The output of element I 18 is activated according to the sync pulse of output 1.8 of microprocessor 1, i.e. - excited output 1.9 which occurs in the last clock of the last cycle of the current command three (a clock pulse is generated in the first clock). The trigger 21 is set on the leading edge of the sync pulse at output 2. of the clock 2 if its zero input is not activated (in this case it is held at zero). The sync pulse output 1.8, activating the output of the element 19 overlaps the clock pulse 2, |.

Таблица 1 5 Пример конкретной реализации предлагаемой системы на базе микропроцессора 580. Пусть необходимо формировать управл щие воздействи  ZjZ в зависимости от состо ни  двух дискретных датчиков а,Ь в соответствии с графом , представленнь1м на фиг.. В вершинах графа в числителе указан ее номер , в знаменателе - ее код. -i, Алгоритм выдачи управл ющих воздействий можно изобразить таблицей переходов (табл.1).Table 1 5 An example of a specific implementation of the proposed system based on a microprocessor 580. Let it be necessary to form control actions ZjZ depending on the state of two discrete sensors a, b in accordance with the graph presented in Fig. In the numerator numerals the denominator is its code. -i, The algorithm for issuing control actions can be represented by a transition table (Table 1).

1 0001,000

2 0012,001

100100

ТоThats

010010

ооoo

3 0103 010

«2“2

Ц onQ on

(6(6

5 too5 too

10ten

011. 01011. 01

4545

8eight

99

6 1016,101

2323

2222

г(g (

г4r4

; 110; 110

2626

4747

УзУгУ ;|;;UzUU; | ;;

ZjZ, Здесь УзУгУ (t) текущий код ( t+1) вершины ) последующий код вершины графа (фиг.). В исходном положении регистр 23 (фиг,1) об нулен по входу сброса. Если бы исхо ное состо ние датчиков аЬ отличалос от нулевого, то этот исходный код в регистре 23 был бы занесен при прог раммном возбуждении выхода 9-3 дешифратора 9 (инициализации) через элемент ИЛИ 13 При этом также на у равл ю1цие органы выводитс  соответствующий код 00 (клетка О табл.1). Табл.1 построена дл  допущени  невозможности одновременного изменени состо ни  сразу двух датчиков аЬ Таблица 1 имеетс  в посто нной пам ти блока 6 системы по адресам, им ющим самую старшую единицу (А1 блоj ка 6 на фиг.1), I Тогда при реакции системы на изме нение состо ни  датчиков аЬ 00- 01 управление будет передано командой :RST 11001111 (третий разр д кода djdgd, команды RST 11 111 подключен к минусовой шине счетчика питани  (а остальные разр ды 7,6,2, 1,0 - к плюсовой шине) - на входах 3 восьми  чейкам пам ти с адресами (в восьмеричном коде), oiooiOg- 010173 Здесь сама  лева  единица означает возбуждение входа А1 блока 6 выходом триггера 20. В случае реакции на запросы по входам 35 на этом разр же будет 0. В указанных восьми  чейках записаны команды: BOOL 1: PUSH PSW; сохранение сло ва состо ни  MVI C,01Hj присвоение регистру С кода аЬ CALL UPR; вызов подпрограммы формировани ZgZ, (UPR) FOP PSW; возврат слова состо ни  RET; возврат к прерванной программе, Подпрограмма выдачи управл ющих воздействий UPR представл ет собой следующую последовательность команд: UPR: PUSH Н; сохранить H,L PUSH В; сохранить В,С LDA РАМ; чтение из  чейки РА кода УзУ2У1(ь) ORA С, ; конкатенаци  дл  полу чени  адреса () MVI Н,57; присвоение регистру Н кода 57 1 5 MOV L,C ; пересылка L-«-C, в H,L - адрес клетки 1 таблицы 1 MOV А,М ; пересылать в аккумул тор (t+D/XZ Z,, наход щиес  по адресу H,L MOV В,А ; временно хранить (t+1)//Z2 Z, в В MOV А,В ; переслать в А ANI MASK 1 ; выделить . OUT PORT 1;вывести Z2Z в порт 1 MOV А, В переслать , (t+1)// ANIMASK2 , в А, выделить УзУгУИ +) STA РАМ записать новое состо ние в  чейку РАМ ; восстановить В, С ; восстановить H,L разрешение прерывани  возврэт (к команде POP PSW) о Таким образом, подпрограмма UPR осуществл ет автоматное отображение в соответствии с табл.1. Перед обращением к ней код датчиков аЬ (логических условий входа 3) записан в регистре С (микропроцессора 1), этот код контактенируетс  с кодом, хран щемс  в  чейке РАМ (состо ние ( табл.), по этому адресу УзУг.У«()аЬ извлекаетс  информаци  (t+1) , (конкатенаци  числител  и знаменател  дроби (t+1) ,- , I, таОл.1). Часть этой информации - выходное воздействие выдел етс  маской MASK 1, содержащей единицы в разр дах и нули в ост . тальных разр дах, и выводитс  в порт 1 (выходы 33). Друга  часть ,(t4-l) - последующее состо ние вершины графа - выдел етс  маской MASK 2, содержащей единицы в разр дах (t+1) и нули в остальных разр дах и записываетс  в  чейку РАМ т .е. осуществл етс  переход во вторую вершину графа (фиГоА). При очередных измерени х состо и  датчиков аЬ,например, 01-) Оо о« удет осуществл тьс  продвижение по рафу в вершины 3 и 4. При этом буут формироватьс  команды RST, адреуемые  чейки с последовательност ми; оманд, аналогичных BOOL 1,только рисвоение регистру С производитс  в оответствии с состо нием аЬ . 1,10... При переходе из состо ни  три в состо ние четыре формируетс  управл ющее воздействие 01. Обнуление триггера 20, осуществл ющего смещение посто нной пам ти блока 6 происходит по адресам команд RET (помечена звездочкой -tr в подпрограмме BOOL 1}, вызываемых командами RST 317, RST 327, RST 337. При этом возбуждаетс  выход 5.3 дешифратора 5 и триггер 20 обнул етс  через элемент 27 задержки;тогда, когда эти команды RET уже выполнены и произошел возврат в основную программу, прерванную прерыванием. Следует под черкнуть, что команда RST вынуждает микропроцессор 1 генерировать одни и те же адреса векторов прерываний как по входам 3, так и по входам 35 а разделение этих векторой происходит возбужденным выходом триггера 20 смещающим адреса посто нной пам ти блока 6 (вход А1 блока 6 на фиг,1)с Сн тие смещени  произойдет после выполнени  команды RET - возврата в ос новную программу - т се., после ее надежного считывани  в микропроцессор 1 из блока 6 со смещением и даль нейшее считывание микропроцессором команд будет осуществл тьс  при сн том смещении. Дл  реализации последовательностного автомата (фиГо) в известном изобретениинеобходима така  же программа UPR. Имеетс  также возможность реализации комбинационной логики более простым, чем описанна  последовательность способомZjZ; Here, UzU (t) is the current code (t + 1) of the vertex), the subsequent code of the vertex of the graph (Fig.). In the initial position, the register 23 (FIG. 1) is zeroed at the reset input. If the initial state of the sensors ab are different from zero, then this source code in register 23 would be recorded when the programmed excitation of output 9-3 of the decoder 9 (initialization) through the element OR 13. At the same time, the corresponding code is output 00 (cell O table.1). Table 1 is built to prevent the simultaneous change of the state of two sensors at once. Table 1 is in the permanent memory of system block 6 at addresses that have the highest unit (A1 block 6 in Fig. 1), I Then, when the system responded To change the status of sensors ab 00-01, control will be transferred by the command: RST 11001111 (the third digit of the djdgd code, the RST 11 111 commands are connected to the minus power meter bus (and the remaining bits 7.6.2, 1.0 - to plus bus) - at the inputs of 3 eight memory locations with addresses (in octal code), oiooiOg- 010173 This unit means excitation of input A1 of block 6 by trigger output 20. In response to requests for inputs 35, this bit will be 0. The following eight cells contain commands: BOOL 1: PUSH PSW; preservation of the MVI C state, 01Hj assignment U code CALL CALL UPR; call the subroutine of the ZgZ, (UPR) FOP PSW; return the RET status word; return to the interrupted program; The control action program UPR is the following command sequence: UPR: PUSH H; save H, L PUSH B; save B, C LDA RAM; reading from cell PA code UzU2U1 (s) ORA С,; concatenation to obtain address () MVI H, 57; assignment to the register H code 57 1 5 MOV L, C; transfer L - “- C, in H, L - the address of cell 1 of table 1 MOV A, M; send to battery (t + D / XZ Z, located at H, L MOV B, A; temporarily store (t + 1) // Z2 Z, in B MOV A, B; send to A ANI MASK 1 ; highlight. OUT PORT 1; output Z2Z to port 1 MOV A, B send, (t + 1) // ANIMASK2, A, highlight UzUHUI +) STA PAM, write the new state to the PAM cell; restore B, C; restore H, L enable interrupt return (to the POP PSW command) o Thus, the UPR subroutine performs automatic mapping in accordance with Table 1. Before addressing it, the code of sensors ab (logical conditions of input 3) is recorded in register C (microprocessor 1), this code is contacted with the code stored in the RAM cell (state (table), at this address UzUV "() ab is extracted (t + 1), (concatenation of the numerator and denominator of the fraction (t + 1), -, I, tAOL.1). Some of this information — the output is highlighted by the mask MASK 1, containing units in bits and zeros in the remaining bits, and output to port 1 (outputs 33). The other part, (t4-l) - the next state of the graph vertex - is highlighted by the mask MASK 2, with the sticking unit in bits (t + 1) and zeros in the remaining bits is written to the RAM cell, i.e., a transition to the second vertex of the graph (phYgoA) is made. Oo o "will progress through the raff to vertices 3 and 4. In this case, the RST commands will be generated, the cells with the sequences being addressed; A command similar to BOOL 1, only the assignment to the register C is performed in accordance with the state ab. 1.10 ... When going from state three to state four, a control action 01 is generated. The resetting of the flip-flop 20 that shifts the permanent memory of block 6 occurs at the addresses of the RET commands (marked with an asterisk -tr in the BOOL 1 subroutine} caused by the commands RST 317, RST 327, RST 337. This triggers the output 5.3 of the decoder 5 and the trigger 20 is zeroed through the delay element 27, when these RET commands have already been executed and returned to the main program, interrupted by an interrupt. that the RST command forces the microprocessor 1 generate the same addresses of interrupt vectors both on inputs 3 and on inputs 35 and the separation of these vectors occurs by an excited output of the trigger 20 shifting the addresses of the permanent memory of block 6 (input A1 of block 6 in FIG. 1) with removing the offset will occur after executing the RET command — returning to the main program — th network., after its reliable reading into microprocessor 1 from block 6 with offset and further microprocessor reading of commands will be performed with the offset removed. In order to implement a sequential automaton (FIG.) In a known invention, the same UPR program is necessary. It is also possible to implement combinational logic in a simpler way than the described sequence.

Входы 3 контроллера подключены к фотоэлектрическим датчикам аЪс преоб1Inputs 3 of the controller are connected to the photo-electric sensors abc

ма по сравнению с известным обладает большим быстродействием векторной 5 разовател  вал-код. Необходимо сформировать позиционный код ,, Дл  простоты считают, что код XjXjX просто выводитс  на некоторый выходной порт дл  дальнейшей обработки. Тогда после обнулени  в регистре 23 - нулевой код. При поступлении кода аЬс 001 формируетс  прерывание командой RST 317. Адресуетс   чейка пам ти блока 6 с адресом , содержащим крайнюю левую единицу , как было описано выше:01001 Оg. В восьми  чейках 01 OOlOg-OIOOU записаны команды: GRAY 1: PUSH PSW сохранение слова состо ни , MUI A,001; присвоение аккумул тору значени  Х,Х2Х 001 OUT PORT 2; вывод возврат PSW POP PSW; разрешение прерывани , возврат В регистр 23 через элемент ИЛИ 13 записываетс  новое значение входного сигнала после обнулени  триггера 20« После выдачи по сигналу аЬс 100 кодй x-jXj x 111 при поступлении сигнала аЬс 000, формируетс  команда RST 307 и выводитс  .код , 000, Предполагаетс , что внешними средствами , не указанными на фиго1 инициируетс  начальный запуск, старт микропроцессора с некоторого ненулевого 291 ( многоальтернативиой) реакции на изменение логических условий, так как на такое изменение сразу же приводит к прерыванию и формированию выходного воздействи  о В известном така  ре акци  отсутствует, а изменение логических условий провер етс  программно , что может, кроме всего прочего привести к потере информации в некоторых задачах обработки сигналов в реальном масштабе времени. формула изобретени  Устройство дл  программного управ лени  технологическим оборудованием, содержащее тактовый генератор, входы сброса и готовности которого  вл ютс  соответственно входами сброса и готовности устройства, вход синхро низации тактового генератора подключен к выходу синхронизации микропроцессора , тактовые входы, входы сброса и готовности которого соединены с соответствующими тактовыми выходами, выходами сброса и готовности тактово го генератора, выход синхронизации которого соединен с входом синхронизации системного контроллера, перва  группа информационных входов-выходов которого соединена, соответственно с группой входов-выходов данных микропроцессора , выход управлени  записью которого соединен с входом управлени  записью системного контроллера, выход управлени  приемом данных микропроцессора подключен к соответствующим управл ющим входам системного контроллера, блока посто нной пам ти программ, ши нного формировател  оперативной пам ти и к первому входу первого элемента И, выходы адреса микропроцессора через буферные усмлители подключены к соответствующим адресным входам дешифратора адреса , блока посто нной пам ти программ , блока оперативной пам ти данных и дешифратора устройств вводавыврда , вход разрешени  дешифратора адреса подключен к выходу первого элемента ИЛИ, первый и второй входы которого подключены соответственно к выходам управлени  чтением пам ти и записи в пам ть системного контроллера , первый выход дешифратора адреса подключен к входу разрешени  блока посто нной пам ти программ, второй выход дешифратора адреса под5 ключен к входу разрешени  шинного формировател  оперативной пам ти и к входу разрешени  блока оперативной пам ти данных, вход записи которого подключен к выходу управлени  записи в пам ть системного контроллера, втора  группа информационных входов-выходов которого подключена соответственно , к информационным выходам блока посто нной пам ти программ, первой группе информационных входов-выходов шинного формировател  оперативной пам ти и к группе информационных входов-выходов шинного формировател  устройств ввода-вывода, информационные входы блока оперативной пам ти данных подключены соответственно , к второй группе информационных входов-выходов шинного формировател  оперативной памйти, а информационные выходы блока оперативной пам ти данных соединены, соответственно , с третьей группой информационных входов-выходов шинного формировател  оперативной пам ти, вход разрешени  дешифратора устройств ввода-вывода подключен к выходу второго элемента ИЛИ, первый и второй входы которого подключены к выходам управлени  вводом из устройств ввода и выводом в устройство вывода системного контроллера соответственно, группа выходов дешифратора устройств ввода-вывода подключена, соответственно , к группе входов разрешени  шинного формировател  устройств ввода-вывода , вход разрешени  ввода которого подключен к выходу управлени  вводом из устройств ввода системного контроллера, входы шинного формировател  устройств ввода-вывода  вл ютс  информационными входами устройства, а его выходы - информационными выходами устройства, выход первого элемента И подключен к входу разрешени  шинного формировател , входы сброса регистра и триггера подключены к выходу сброса тактового генератора, выходы регистра подключены к первой группе информационных входов схемы равнени , выход которой подключен к ервому входу второго элемента И, второй вход которого подключен к выоду триггера, информационный вход оторого подключен к соответствующеу разр ду второй группы информационых входов-выходов системного контоллера , третий элемент ИЛИ, о т л и чающеес  тем, что, с целью повышени  быстродействи  и расширени  области применени  в устройство дополнительно введены три элемента ИЛИ, два триггера, приоритетный шифратор , мультиплексор и элемент задержки , причем вход синхронизации регистра подключен к выходу третьего эле-. мента ИЛИ, первый вход которого подключей к второму выходу дешифратора устройств ввода-вывода, а второй вход - к выходу jBTOporo триггера, к адресному входу мультиплексора,старшему адресному входу блока посто нной пам ти программ и дополнительному информационному входу дешифратора пам ти,третий выход дешифратора адреса подключен к входу элемента задержки, выход которого подключен к первому V входу четвертого элемента ИЛИ,второй инверсный вход четвертого элемента ИЛИ подключен к выходу первого триггера третий вход метвертого элемента ИЛИ подключен к входу сброса второго триггера , вьход четвертого элемента ИЛИ подключен к входу сброса второго триггера, информацио.нный вход которого подключен к выходу схемы сравнени , а вход синхронизации которого подключен к выходу подтверждени  прерывани  системного контроллера, вход синхронизации первого триггера подключен к третьему входу дешифратора устройств ввода-вывода, информационныё входы регистра подключены, соответственно, к второй группе информационных входов схемы сравнени  и к второй группе входов мультиплексора и  вл ютс  входами логических In comparison with the known one, the 5-shaft-code vector has a high speed. It is necessary to generate a positional code. For simplicity, it is considered that the XjXjX code is simply output to some output port for further processing. Then after zeroing in register 23 - zero code. When the code abc 001 arrives, an interrupt is generated by the command RST 317. The memory cell of block 6 is addressed with the address containing the leftmost unit, as described above: 01001 Оg. In eight cells 01 OOlOg-OIOOU, the following commands are written: GRAY 1: PUSH PSW saving the status word, MUI A, 001; assigning the value X, X2X 001 OUT PORT 2 to the battery; pin return PSW POP PSW; enable interrupt, return To register 23 through the element OR 13, a new value of the input signal is written after zeroing the trigger 20 "After issuing the x-jXj x 111 code on the abc 100 signal when the abc 000 signal is received, an RST 307 command is generated and the code, 000, It is assumed that an external start, not indicated in FIG. 1, initiates the initial start-up, the start of the microprocessor from some non-zero 291 (multi-alternative) reaction to a change in logical conditions, since such a change immediately leads to the interruption and formation of output signals. there is no such effect in the known reaction, and a change in the logical conditions is checked by software, which can, among other things, lead to the loss of information in some signal processing tasks in real time. The invention The device for software control of technological equipment, containing a clock generator, the reset and readiness inputs of which are respectively the reset and readiness inputs of the device, the clock synchronization input of the clock generator is connected to the microprocessor clock output, the clock inputs of which are reset clock outputs, reset and readiness outputs of a clock generator, the synchronization output of which is connected to the system synchronization input controller, the first group of information input-output of which is connected, respectively, to the group of input-output data of the microprocessor, the recording control output of which is connected to the recording control input of the system controller, the output control output of the microprocessor data is connected to the corresponding control inputs of the system controller, a constant block the memory of the programs, the bus driver of the RAM and to the first input of the first element I, the outputs of the microprocessor address through buffer allocators on Connected to the corresponding address inputs of the address decoder, program permanent storage unit, data operative memory unit and device input and output decoder, the address of the address decoder is connected to the output of the first OR element, the first and second inputs of which are connected respectively to the memory read control outputs and write to the memory of the system controller, the first output of the address decoder is connected to the resolution input of the program permanent memory unit, the second output of the address decoder under 5 is connected to the resolution input bus RAM driver and to the enable input of the data RAM block whose recording input is connected to the write control output to the memory of the system controller, the second group of information inputs-outputs of which are connected respectively to the information outputs of the program memory block, the group of information inputs and outputs of the bus driver of the RAM and the group of information inputs and outputs of the bus driver of the input-output devices, the information inputs of the opera block data memory is connected, respectively, to the second group of information inputs / outputs of the bus driver RAM, and information outputs of the RAM block are connected, respectively, to the third group of information inputs / outputs of the bus driver RAM, the enable input of the decoder input devices the output is connected to the output of the second OR element, the first and second inputs of which are connected to the control outputs of the input from input devices and output to the output device of the system the controller, respectively, the output group of the I / O device decoder is connected, respectively, to the enable input group of the bus driver of the I / O devices, the input enable input of which is connected to the input control output of the input devices of the system controller, the input driver bus inputs of the I / O devices are informational the device inputs, and its outputs - information device outputs, the output of the first element I is connected to the enable input of the bus driver, the reset inputs are registered tra and trigger are connected to the reset output of the clock generator, the register outputs are connected to the first group of information inputs of the equalization circuit, the output of which is connected to the first input of the second element I, the second input of which is connected to the trigger's output, the information input is cheaply connected to the corresponding bit of the second group of information the inputs / outputs of the system controller, the third OR element, is designed so that, in order to increase speed and expand the field of application, three elec- cient OR, two trigger priority encoder, a multiplexer, and a delay element, with the register clock input connected to the output of the third element. OR, the first input of which is connected to the second output of the I / O device decoder, and the second input - to the jBTOporo trigger output, to the address input of the multiplexer, the higher address input of the program memory block and the additional information input of the memory decoder, the third output of the decoder the address is connected to the input of the delay element, the output of which is connected to the first V input of the fourth OR element, the second inverse input of the fourth OR element is connected to the output of the first trigger, the third input of the fourth IL element And connected to the reset input of the second trigger, the input of the fourth element OR is connected to the reset input of the second trigger, the information input of which is connected to the output of the comparison circuit, and the synchronization input of which is connected to the interrupt confirmation output of the system controller, the synchronization input of the first trigger is connected to the third input the I / O device decoder, the information inputs of the register are connected, respectively, to the second group of information inputs of the comparison circuit and to the second group of multiplexer inputs are logic inputs

условий устройства, второй вход первого элемента И подключен к выходу подтверждени  прерывани  системного контроллера, третий вход второго элемента И подключен к выходу синхронизации микропроцессора, а четвертый вход второго элемента И подключен к выходу разрешени  прерывани  микропроцессора, выход второго элемента И подключен к первому, входу п того элемента ИЛИ, второй вход которого подключен к выходу управлени  приоритетного шифратора, входы приоритетного шифратора  вл ютс  входами запросов на прерывание устройства , информационные выходы приоритетного шифратора подключены к первой группе входов мультиплексора, выходы которого подключены к первой группе информационных входов шинного формировател , к второй группе информационных входов которого подключены выходы формировател  команды векторного перехода, выход п того элемента ИЛИ подключен к входу данны третьего триггера, вход сброса кото рого подключен к выходу шестого элемента ИЛИ, первый, инверсный вход шетого элемента ИЛИ подключен к выходу разрешени  прерывани  микропроцессора , второй вход шестого элемента ИЛИ подключен к выходу сброса тактового генератора, выход третьего триггера подключен к входу запроса прерывани  микропроцессора, вход синхронизации третьего триггера подключен к соответствующему тактовому выходу тактового генератора.conditions of the device, the second input of the first element AND is connected to the confirmation output of the system controller interrupt, the third input of the second element AND is connected to the microprocessor synchronization output, and the fourth input of the second And element is connected to the microprocessor interrupt enable output, the output of the second And element is connected to the first, input n of the OR element, the second input of which is connected to the control output of the priority encoder, the inputs of the priority encoder are the inputs of the device interrupt requests, information The primary outputs of the priority encoder are connected to the first group of multiplexer inputs, the outputs of which are connected to the first group of information inputs of the bus driver, the second group of information inputs of which are connected to the outputs of the vector-transition command generator, the output of the fifth element OR is connected to the data input of the third trigger, the reset input of which connected to the output of the sixth element OR, the first, inverse input of the sewn element OR connected to the output of the microprocessor interrupt enablement, the second input of the sixth The first OR element is connected to the clock oscillator reset output, the third trigger output is connected to the microprocessor interrupt request input, and the third trigger synchronization input is connected to the corresponding clock generator clock output.

Прерывание it; TZ ТЗ 7JInterrupt it; TZ TZ 7J

гзgz

j -Yir ASpscir i03p прерыШми  j -Yir ASPSCIR i03p interrupts

MaHfffiie-npoepa MbrnpepSi8affW MaHfffiie-npoepa MbrnpepSi8affW

Обработка eanixica 1 Прерыбани  Зипрещены запроса -, I -i Processing eanixica 1 Discontinuous Zipbrock request - I-i

-.1.1---.1.1--

II11 I - II11 I -

--

.Фиг. г.Fig. g

фиг.Зfig.Z

Фав4Fav4

Claims (4)

формула изобретенияClaim Устройство для программного управления технологическим оборудованием, содержащее тактовый генератор, входы сброса и готовности которого являются соответственно входами сброса и готовности устройства, вход синхронизации тактового генератора подключен к выходу синхронизации микропроцессора, тактовые входы, входы сброса и готовности которого соединены с соответствующими тактовыми выходами, выходами сброса и готовности тактового генератора, выход синхронизации которого соединен с входом синхронищ зации системного контроллера, первая 30 группа информационных входов-выходов которого соединена, соответственно с группой входов-выходов данных микропроцессора, выход управления записью которого соединен с входом управления записью системного контроллера, выход управления приемом данных микропроцессора подключен к соответствующим управляющим входам системного контроллера, блока постоянной памяти программ, шинного формирователя оперативной памяти и к первому входу первого элемента И, выходы адреса микропроцессора через буферные усилители подключены к соответствующим адресным входам дешифратора адреса, блока постоянной памяти программ, блока оперативной памяти данных и дешифратора устройств вводавывода, вход разрешения дешифратора адреса подключен к выходу первого элемента ИЛИ, первый и второй входы которого подключены соответственно к выходам управления чтением памяти и записи в память системного контроллера, первый выход дешифратора адреса подключен к входу разрешения блока постоянной памяти программ, второй выход дешифратора адреса под ключен к входу разрешения шинного формирователя оперативной памяти и к входу разрешения блока оперативной памяти данных, вход записи которого подключен к выходу управления записи в память системного контроллера, вторая группа информационных входов-выходов которого подключена соответственно, к информационным выходам блока постоянной памяти программ, первой группе информационных входов-выходов шинного формирователя оперативной памяти и к группе информационных входов-выходов шинного формирователя устройств ввода-вывода, информационные входы блока оперативной памяти данных подключены соответственно, к второй группе информационных входов-выходов шинного формирователя оперативной памяти, а информационные выходы блока оперативной памяти данных соединены, соответственно, с третьей группой информационных входов-выходов шинного формирователя оперативной памяти, вход разрешения дешифратора устройств ввода-вывода подключен к выходу второго элемента ИЛИ, первый и второй входы которого подключены к выходам управления вводом из устройств ввода и выводом в устройство вывода системного контроллера соответственно, группа выходов дешифратора устройств ввода-вывода подключена, соответственно, к группе входов разрешения шинного формирователя устройств ввода-вывода, вход разрешения ввода которого подключен к выходу управления вводом из устройств ввода системного контроллера, входы шинного формирователя устройств ввода-вывода являются информационными входами устройства, а его выходы - информационными выходами устройства, выход первого элемента И подключен к входу разрешения шинного формирователя, входы сброса регистра и триггера подключены к выходу сброса тактового генератора, выходы регистра подключены к первой группе информационных входов схемы сравнения, выход которой подключен к первому входу второго элемента И, второй вход которого подключен к выходу триггера, информационный вход которого подключен к соответствующему разряду второй группы информационных входов-выходов системного контроллера, третий элемент ИЛИ, о т л и з1 171^575 чающееся тем, что, с целью повышения быстродействия и расширения области применения в устройство дополнительно введены три элемента ИЛИ, два триггера, приоритетный шифратор, мультиплексор и элемент задержки, причем вход синхронизации регистра подключен к выходу третьего элемента ИЛИ, первый вход которого подключей к второму выходу дешифратора устройств ввода-вывода, а второй вход - к выходу второго триггера, к адресному входу мультиплексора,старшему адресному входу блока постоянной' 15 памяти программ и дополнительному информационному входу дешифратора памяти,третий выход дешифратора адреса подключен к входу элемента задержки, выход которого подключен к первому входу четвертого элемента ИЛИ,второй инверсный вход четвертого элемента ИЛИ подключен к выходу первого триггера^третий вход четвертого элемента ИЛИ подключен к входу сброса второго тригге- 25 ра, выход четвертого элемента ИЛИ подключен к входу сброса второго триггера, информационный вход которого подключен к выходу схемы сравнения, а вход синхронизации которого 30 подключен к выходу подтверждения прерывания системного контроллера, вход синхронизации первого триггера подключен к третьему входу дешифратора устройств ввода-вывода, инфор- 35 мационныё входы регистра подключены, соответственно, к второй группе информационных входов схемы сравнения и к второй группе входов мультиплексора и являются входами логических др условии устройства, второй вход первого элемента И подключен к выходу подтверждения прерывания системного контроллера, третий вход второго элемента И подключен к выходу синхронизации микропроцессора, а четвертый вход второго элемента И подключен к выходу разрешения прерывания микропроцессора, выход второго элемента И подключен к первому, входу пятого элемента ИЛИ, второй вход которого подключен к выходу управления приоритетного шифратора, входы приоритетного шифратора являются входами запросов на прерывание устройства, информационные выходы приоритетного шифратора подключены к первой группе входов мультиплексора, выходы которого подключены к первой группе информационных входов шинного формирователя, к второй группе информационных входов которого подключены выходы формирователя команды векторного перехода, выход пятого элемента ИЛИ подключен к входу данных третьего триггера, вход сброса которого подключен к выходу шестого элемента ИЛИ, первый, инверсный вход шестого элемента ИЛИ подключен к выходу разрешения прерывания микропроцессора, второй вход шестого элемента ИЛИ подключен к выходу сброса тактового генератора, выход третьего триггера подключен к входу запроса прерывания микропроцессора, вход синхронизации третьего триггера подключен к соответствующему тактовому выходу тактового генератора»A device for software control of technological equipment, containing a clock generator, the reset and ready inputs of which are respectively the reset and ready inputs of the device, the clock synchronization input is connected to the microprocessor synchronization output, the clock inputs, the reset and ready inputs of which are connected to the corresponding clock outputs, reset outputs and the availability of the clock generator, the synchronization output of which is connected to the synchronization input of the system controller, first I am the 30th group of information inputs / outputs of which is connected, respectively, to the group of microprocessor data inputs and outputs, the recording control output of which is connected to the recording control input of the system controller, the microprocessor data reception control output is connected to the corresponding control inputs of the system controller, program read-only memory block, bus memory shaper and to the first input of the first element AND, the microprocessor address outputs through buffer amplifiers are connected to the corresponding m to the address inputs of the address decoder, read-only memory block, data RAM block and input / output device decoder, the address decoder enable input is connected to the output of the first OR element, the first and second inputs of which are connected respectively to the outputs for controlling the reading of memory and writing to the memory of the system controller, the first output of the address decoder is connected to the enable input of the read-only memory block, the second output of the address decoder is connected to the enable input of the bus driver of the available memory and to the enable input of the data RAM block, the recording input of which is connected to the write control output to the system controller memory, the second group of information inputs and outputs of which is connected respectively to the information outputs of the program read-only memory, the first group of information inputs and outputs of the bus driver RAM and to the group of information inputs and outputs of the bus driver of input-output devices, the information inputs of the RAM block are connected with accordingly, to the second group of information inputs / outputs of the bus RAM driver, and the information outputs of the RAM block are connected, respectively, to the third group of information inputs and outputs of the bus RAM driver, the enable input of the decoder of the input-output devices is connected to the output of the second OR element , the first and second inputs of which are connected to the outputs of the input control from input devices and output to the output device of the system controller, respectively, the group you The input of the input-output device decoder is connected, respectively, to the group of resolution inputs of the bus driver of the input-output devices, the input of the input of which is connected to the input control input from the input devices of the system controller, the inputs of the bus driver of the input-output devices are information inputs of the device, and its outputs - information outputs of the device, the output of the first element AND is connected to the enable input of the bus driver, the inputs of the reset register and trigger are connected to the reset output a clock generator, the outputs of the register are connected to the first group of information inputs of the comparison circuit, the output of which is connected to the first input of the second element AND, the second input of which is connected to the output of the trigger, the information input of which is connected to the corresponding category of the second group of information inputs and outputs of the system controller, the third element OR, O t l and s ^ 1 171 575 sistent in that, in order to improve performance and extend the scope of a device further administered three OR gates, two trigger Prior a tethered encoder, multiplexer and delay element, the register synchronization input being connected to the output of the third OR element, the first input of which is connected to the second output of the decoder of the input-output devices, and the second input is connected to the output of the second trigger, to the address input of the multiplexer, the oldest address input of the block a constant '15 program memory and an additional information input of the memory decoder, the third output of the address decoder is connected to the input of the delay element, the output of which is connected to the first input of the fourth element LEE, a second inverted input of the fourth OR gate is connected to the output of the first flip-flop ^ third fourth input of the OR element is connected to the reset input of the second trigge- 25 pa, the fourth element is connected to the output of OR reset input of the second flip-flop having an information input coupled to an output of the comparison circuit, and the synchronization input of which 30 is connected to the output of the interrupt confirmation of the system controller, the synchronization input of the first trigger is connected to the third input of the decoder of the input-output devices, information 35 register inputs are connected, respectively, to the second group of information inputs of the comparison circuit and to the second group of inputs of the multiplexer and are inputs of the other logical conditions of the device, the second input of the first element And is connected to the confirmation output of the interrupt of the system controller, the third input of the second element And is connected to the synchronization output of the microprocessor, and the fourth input of the second AND element is connected to the output of the microprocessor interrupt enable, the output of the second AND element is connected to the first, input of the fifth OR element, the second input of which It is connected to the control output of the priority encoder, the inputs of the priority encoder are the requests for interrupting the device, the information outputs of the priority encoder are connected to the first group of inputs of the multiplexer, the outputs of which are connected to the first group of information inputs of the bus driver, the outputs of the command generator are connected to the second group of information inputs vector transition, the output of the fifth element OR is connected to the data input of the third trigger, the reset input of which is connected to the output of the sixth OR element, the first, inverse input of the sixth OR element is connected to the output of the microprocessor interrupt enable, the second input of the sixth OR is connected to the reset output of the clock generator, the output of the third trigger is connected to the input of the microprocessor interrupt request, the synchronization input of the third trigger is connected to the corresponding clock clock output " ПрерываниеInterrupt 2.5;2.5 ; '' 4.14.1 3.13.1 1.8 ш1.8 w 110110 - 25.2- 25.2 251 . 24 18251. 24 18 25.225.2 INTAINTA 3.23.2 1.101.10 26 ΏβΤΗ26 ΏβΤΗ 1.81.8 4.1 i ·.·4.1 i ·. · Τ3 τι Τ2 Τ3 Tip TS . Λ Λ Λ Λ Λ Д—Τ3 τι Τ2 Τ3 Tip TS. Λ Λ Λ Λ Λ D— Λ /)\ Л-Л.Л „Л ~~ »Κ7 у СК \Абрёс0ГгГрогрЗммьГ0дра'Зоткй преры^1нйя~ ~Λ /) \ L-L.L „L ~~" Κ7 at SK \ Abres0GyGrogroZmm'G0dra'Zotky Prery ^ 1nya ~ ~ Данные'пр^раммыГпрерыданй^ ~Data'prov ^ frames V. 1 ~~~~Α ___φ λ__ΖΖΞ λ /~V. 1 ~~~~ Α ___ φ λ__ΖΖΞ λ / ~ Фиг.2 \Figure 2 \ ΖΠΖΞΧΞ • \ ΖΠΖΞΧΞ • \ У Смещение в блоке 6Y Offset in block 6 Ζ~~^\ -~.. ~....~Ζ ~~ ^ \ - ~ .. ~ .... ~ Ъь1С0^и~ймпёд0йс ~УСн5Т(ЗбУ)^ьгс0кий~импёдймс s·' фиг. 3B1C0 ^ and ~ мпёёд00 ~ ~ ~ нн55Т (бб)) ^ bc0 ~ impediments 3
SU894702553A 1989-05-03 1989-05-03 Process equipment programmable controller SU1714575A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU894702553A SU1714575A1 (en) 1989-05-03 1989-05-03 Process equipment programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU894702553A SU1714575A1 (en) 1989-05-03 1989-05-03 Process equipment programmable controller

Publications (1)

Publication Number Publication Date
SU1714575A1 true SU1714575A1 (en) 1992-02-23

Family

ID=21452918

Family Applications (1)

Application Number Title Priority Date Filing Date
SU894702553A SU1714575A1 (en) 1989-05-03 1989-05-03 Process equipment programmable controller

Country Status (1)

Country Link
SU (1) SU1714575A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР F 1012205, кл. G 05 В 19/18, 1583»Авторское свидетельство СССР Р 1^18653, кл, G 05 В 19/18, 1988, ^Алексенко А.Г., Галицин А,А., Иванников А.Д. Проектирование радиоэлектронной аппаратуры на микропроцессорах. - М.: Радио и св зь, 198^.Коффрон Дж. Технические средства микропроцессорных систем. - М.: Мир, 1983. *

Similar Documents

Publication Publication Date Title
US3200380A (en) Data processing system
EP0458304B1 (en) Direct memory access transfer controller and use
EP0375194A2 (en) Dual port RAM
GB1588929A (en) Priority vectored interrupt using direct memory access
GB2148563A (en) Multiprocessor system
US10409749B2 (en) Semiconductor device and system provided with a communication interface
US5471639A (en) Apparatus for arbitrating for a high speed direct memory access bus
JPH04363746A (en) Microcomputer system having dma function
US5664142A (en) Chained DMA devices for crossing common buses
KR910010326A (en) Programmable Interrupt Controller
EP0331487B1 (en) Data transfer control system
SU1714575A1 (en) Process equipment programmable controller
JPH0736821A (en) Dma transfer controller
SU1674062A1 (en) System for program control of process equipment
SU1700562A1 (en) Data exchange device
JP4201375B2 (en) Data transfer device
JP3096382B2 (en) DMA circuit
JP2870812B2 (en) Parallel processor
SU1621029A1 (en) Electronic computer for fast handling of interrupt signals
RU1815643C (en) Device for debugging programs for microcomputer
SU1476434A1 (en) Program control device for process equipment
JP2000067008A (en) Multi-processor system
JP2826781B2 (en) Data transfer method
CN114691013A (en) Processing device, method and equipment for register configuration parameters in DDR
EP1193606B1 (en) Apparatus and method for a host port interface unit in a digital signal processing unit