Изобретение относитс к области автоматики и вычислительной техники в частности к организации систем прерывани и управлени передачей данных. Известно многоканальное приорите ное устройство, содержащее каналы и установочный элемент НЕ, а казкдый канал содержит три элемента И, два элемента НЕ с соответствующими св з ми Л . Недостатком этого устройства вл етс ограниченна область приме нени из-за отсутстви возможности управл ть вьщачей разрешающих сигна лов извне. Наиболее близким к изобретению по технической сущности вл етс многоканальное приоритетное устройство , содержащее в каждом канале два элемента И-НЕ, элемент И и два элемента НЕ (в первом канале один элемент НЕ 21. Недостаток данного устройства заключаетс в отсутствии возможности автономной работы, что ограни чивает область его применени . Цель изобретени - расширение области применени устройства путем обеспечени возможности работы как в автономном режиме, так и под внешним управлением. Поставленна цель достигаетс тем, Ч1ГО в многоканальное приорите ное устройство, содержащее в каждом канале два элемента И-НЕ, два элемента НЕ и элемент И, причем в каждом канале первый вход первого элемента И-НЕ вл етс запросным входо канала, выход первого элемента И-НЕ соединен с первым входом второго элемента И-НЕ и через первый эле мент НЕ с первым входом элемента И выход которого вл етс разрешающим выходом устройства, выход второго элемента НЕ соединен с, вторым входо элемента И и с вторым входом второг элемента И-НЕ, выход которого соединен с вторым входом первого элемента И-НЕ и вл етс выходом распространени опроса канала, вход второго элемента НЕ первого канала вл етс опросным входом устройства выход распространени опроса каждог предьщущего канала соединен с опрос- ным входом последующего канала, вве ден переключательньш элемент и элемент И, а в каждый канал - третий 237 элемент И-НЕ, причем в каждом канале первый вход третьего элемента И-НЕ j соединен с запросным входом канала, вторые входы третьих элементов И-НЕ всех каналов соединены между собой и с выходом распространени опроса последнего канала, вькоды третьих элементов И-НЕ всех каналов соединены с соответствующими входами элемента И, выход которого соединен с входом переключательного элемента и сигнальным выходом устройства , выход переключательного элемента соединен с опросным входом устройства. На, чертеже приведена структурна схема многоканального приоритетного устройства. Устройство содержит каналы 1-3, а в каждый канал - элементы И-НЕ 4-6, элементы НЕ 7 и 8, и элемент И 9, переключательный элемент 10, в качестве которого, например, может быть использована перемычка, соеди-. н юща сигнальньй выход и опросный вход устройства при работе его в автономном режиме, запросные входы 11 каналов, опросный вход 12 устройства , сигнальньп 13 и разрешающий 14 выходы устройства, элемент И 15. Устройство работает .следукнцим образом. Первый и второй элементы И-НЕ 5 и 4 соединены между собой по схеме триггера с раздельными входами и работают как схема логического выбора одного из двух асинхронных сигналов на ее входах: сигнала запроса и сигнала опроса с выхода элемента НЕ 7. При отсутствии сигналов запроса (уровни логического нул на входах 11) и сигнала опроса (уровень логической единицы на входе 12) на выходах элементов И-НЕ.4-6 каждого канала уровни логической единицы, а на выходе элемента И 9 - уровень логического нул . Это начальное состо ние, устройства. При поступлении в канал сигнала запроса на выходе элемента И-НЕ 4 по вл етс уровень логического нул (так как на его обоих входах - уровни логической единицы), которьй через первый элемент НЕ 8 поступает уровнем логической единицы на первый вход элемента И 9. На выходе третьего элемента И-НЕ 6 также по вл етс уровень логического нул , поступающий на выход 13 устройства. Аналогичным образом измен етс состо ние и других каналов при поступлени на их входы сигналов запроса. Дальнейшее функционирование устройства зависит от режима работы автономного или под управлением вне ней системы. В первом режиме сигнальный выход устройства соединен при помощи переключательного элемента 10 с вхо дом 12 устройства. В этом случае при наличии запроса хот бы в одном канале уровень логического нул с выхода 13 поступает на его опросный вход в качестве сигнала опроса , который через элемент НЕ 7 первого канала поступает уровнем логической единицы на вторые входы зле ментов И-НЕ 5 и И 9. При отсутствии запроса в первом канале элемент И 9 закрыт по первому входу уровнем логического нул с элемента НЕ 8, следовательно, на выходе элемента И 9 останетс уровень логического нул , т.е. не вьдаетс сигнал разрешени на обмен. На выходе элемента И-НЕ 5 по вл етс уровень логического нул , так как при отсутствии запроса в канапе на его обоих входах - уровни логической единицы. Уровень логического нул , с выход элемента И-НЕ 5 поступает на второй вход элемента И-НЕ 4, блокиру его дл прохождени в канал сигнала запроса, и через выход распростране ни опроса первого канала поступает на опросный вход канала. Таким образомj сигнал опроса, поступа на опросный вход следующег по приоритету канала, распростран етс по опросной цепи каналов, как описано выше, пока не обнаружит канал, в котором на входе имеетс запрос. В этом канале на первом вх де элемента И 9 присутствует уровень логической единицы с элемента НЕ 8, а на первом входе элемента И-НЕ 5 - уровень логического нул . Сигнал опроса поступает в данньй канал через элемент НЕ 7 на вторые входы элементов И-НЕ 5 и И 9. Состо ние элемента И-НЕ 5 не измен етс т.е. на его выходе - уровень логической единицы и, следовательно, дальнейшее распространение сигнала опроса прекращаетс ; На выходе элемента И 9 по вл етс сигнал разрешени обмена в виде уровн логической единицы. Таким образом, поступивший на вход 12 устройства сигнал опроса распростран етс по опросным цеп м каналов при отсутствии запросов на их входах, одновременно блокиру эти входы И опраиива элементы И 9 на выходах каналов. Распространение происходит вплоть до канала, на входе которог.о имеетс запрос. Опрашива элемент И 9 в этом канале, сигнал опроса мен ет состо ние на его выходе с уровн логического нул на уровень логической единицы, что соответствует вьщелению наиболее приоритетного сигнала запроса. Поскольку во всех предьщущих каналах, имеющих более высокий приоритет, входы запроса оказываютс заблокированными , а на опросные входы всех последующих каналов с более низким приоритетом сигнал опроса не распростран етс , то запросы в этих каналах не проход т на выходы разрешени на обмен в течение всего времени обслуживани этого запроса. При этом запросы низшего приоритета не обслужираютс и в том случае, если они поступили одновременно или даже раньше. После обслуживани запроса он снимаетс , следовательно, снимаетс сигнал разрешени обмена с выхода элемента И 9, и блокируетс элемент И-НЕ 6. Если больше ни в одном из каналов нет запросов, то на сигнальном выходе устройства устанавливаетс уровень, логической единицы, что ведет к сн тию сигнала опроса с опросного входа устройства. Устройство возвращаетс в начальное состо ние . Если же присутствуют еще сигналы запроса в других каналах, то с сигнального выхода уровень логическог .о нул не снимаетс , и сигнал опроса распростран етс дальше в следующий канал, вьрел по пути имеющиес в каналах сигналы запроса. Если сигнал опроса проходит через все каналы, то он поступает с выхода распространени опроса последнего канала на вторые входы элементов И-НЕ 6 всех каналов, что ведет к по влению уровн логической единицы на сигнальном выходе 13 устройства 51 и сн тию сигнала опроса с входа 12 невзира на наличие сигналов запрос в каналах. После сн ти сигнала опроса опросна цепь возвращаетс в исходное состо ние, на выходе распространени опроса последнего канал по вл етс уровень логической едини цы, в результате чего снимаетс блокировка с элементов И-НЕ 6 всех каналов. Вследствие этого, при нали чин сигнала запроса хот бы в одном из каналов, на сигнальном выходе уст ройства по вл етс уровень логического нул , и цикл обслуживани повт р етс . Режим работы под управлением внешней системы осуществл етс следующим образом . распростран етс по опросной цепи вплоть до канала, в котором имеетс запрос. Вьщача сигнала разрешени происходит аналогично описанному дл автономного режима. После выдачи сигнала разрешени на обмен внешн система может сн ть сигнал опроса, тогда после обслуживани данного запроса внешн система вновь должна Переключательный элемент 10 разом кнут . При наличии хот бы одного запроса в любом из каналов на сигнальном выходе устройства по вл етс уровень логического нул , по наличию которого внешн система будет знать об имеющемс в устройстве запросе на обслуживание. В ответ она вьщает сиг-35 The invention relates to the field of automation and computer technology, in particular, to the organization of interruption systems and data transmission control. A multichannel prioritized device is known that contains channels and an installation element NOT, and some channels contain three elements AND two elements NOT with corresponding connections L. A disadvantage of this device is the limited scope of application due to the inability to control the highest permissive signals from the outside. The closest to the invention to the technical essence is a multichannel priority device containing in each channel two AND-NOT elements, an AND element and two NOT elements (in the first channel one element is NOT 21. The disadvantage of this device is the lack of autonomous operation, which limits The purpose of the invention is to expand the field of application of the device by providing the ability to work both in standalone mode and under external control. The goal is achieved by a primary channel device containing in each channel two IS-NOT elements, two NO elements and an AND element, and in each channel the first input of the first AND-NO element is a channel input request, the output of the first AND-NE element is connected to the first input of the second AND-NOT element and through the first element NOT to the first input of the element AND whose output is the device's enabling output, the output of the second element is NOT connected to the second input of the AND element and the second input to the second of the AND-NOT element whose output is connected to the second input first element NID is the output of the channel polling propagation, the input of the second element of the first channel NOT is the interrogation input of the device, the propagation output of the polling of each previous channel is connected to the polling input of the subsequent channel, the switching element and the element I are entered, and the third 237 IS-NOT element, and in each channel the first input of the third AND-NE element j is connected to the channel's request input, the second inputs of the third AND-NOT elements of all channels are connected to each other and to the distribution output of the last channel polling , Vkody third AND-NO elements of all channels are connected to respective inputs of AND gate whose output is connected to the input of the switching element and the signal output device, the output switching element is connected to the polling input device. The drawing shows a structural diagram of a multichannel priority device. The device contains channels 1-3, and in each channel - elements AND-NOT 4-6, elements 7 and 8, and element 9, switching element 10, for which, for example, a jumper can be used, connect. signaling output and interrogation input of the device when it is operating in autonomous mode, interrogation inputs of 11 channels, interrogation input 12 of the device, signaling 13 and allowing 14 outputs of the device, element 15. And the device works in the following way. The first and second elements AND-NOT 5 and 4 are interconnected according to a trigger scheme with separate inputs and work as a logical selection circuit for one of two asynchronous signals at its inputs: a request signal and a polling signal from the output of the HE element 7. In the absence of request signals ( the levels of logical zero at the inputs 11) and the interrogation signal (the level of the logical unit at input 12) at the outputs of the I-NE.4-6 elements of each channel are the levels of the logical unit, and the output of the AND 9 element is the level of the logical zero. This is the initial state of the device. When a request arrives on the channel at the output of the NAND 4 element, a logic zero level appears (since at both its inputs there are levels of a logical unit), which through the first element NOT 8 enters the level of the logical unit at the first input of the And 9 element. the output of the third element AND-NOT 6 also appears the level of logical zero, arriving at the output 13 of the device. Similarly, the state of the other channels changes as the request signals arrive at their inputs. Further operation of the device depends on the mode of operation of an autonomous or controlled outside of the system. In the first mode, the signal output of the device is connected by means of a switching element 10 to the input 12 of the device. In this case, if there is a request at least in one channel, the logical zero level from output 13 goes to its interrogation input as a polling signal, which through the NOT 7 element of the first channel arrives as a logical unit to the second inputs of AND-NOT 5 and 9 In the absence of a request in the first channel, the AND 9 element is closed at the first input by the logical zero level from the HE element 8, therefore, the logical zero level will remain at the output of the AND 9 element, i.e. There is no enable signal for exchange. The logical zero level appears at the output of the AND-NE 5 element, since in the absence of a query in the canape at its both inputs there are levels of a logical one. The logic level zero, from the output of the element AND-NOT 5 enters the second input of the element AND-NOT 4, blocks it for passing the request signal to the channel, and through the propagation output of the first channel polling enters the polling input of the channel. Thus, the polling signal, arriving at the polling input of the next priority channel, propagates through the polling circuit of channels, as described above, until it detects a channel in which there is a request at the input. In this channel, on the first input of the element AND 9 there is a level of a logical one from the element NOT 8, and on the first input of the element AND-NOT 5 there is a level of logical zero. The interrogation signal enters this channel through the NOT 7 element at the second inputs of the AND-HE 5 and AND 9 elements. The state of the AND-HE element 5 does not change, i.e. at its output, the level of the logical unit and, therefore, further propagation of the polling signal is stopped; At the output of AND 9, an exchange enable signal appears in the form of a logical unit level. Thus, the polling signal received at the device input 12 is distributed along the polling circuits of channels in the absence of requests for their inputs, at the same time blocking these inputs AND opting for AND 9 elements at the channel outputs. Distribution occurs up to the channel at the input of which a request is made. By polling the AND 9 element in this channel, the interrogation signal changes the state at its output from a logic zero level to a logic one level, which corresponds to the selection of the highest priority request signal. Since in all previous channels having a higher priority, the request inputs are blocked, and the interrogation inputs of all subsequent channels with a lower priority do not propagate the polling signal, requests in these channels do not pass to the exchange resolution outputs during the whole time service this request. However, lower priority requests are not served even if they are received at the same time or even earlier. After the request is serviced, it is removed, therefore, the exchange enable signal is removed from the output of AND 9, and the NAND 6 element is blocked. If there are no requests in any of the channels, then the level of the logical unit is set at the signal output of the device, which leads to Removing the polling signal from the device's polling input. The device returns to the initial state. If the request signals are still present in other channels, then the logical zero level is not removed from the signal output, and the interrogation signal propagates further to the next channel, and the request signals present in the channels flow along the path. If the polling signal passes through all channels, then it comes from the polling output of the last channel polling to the second inputs of the NAND elements 6 of all channels, which leads to the appearance of the level of the logical unit at the signal output 13 of the device 51 and the polling signal from input 12 regardless of the presence of signals request in the channels. After the interrogation signal is removed, the interrogation circuit returns to its initial state, the logical unit level appears at the output of the last interrogation channel, as a result of which all channels are blocked from AND-HE elements 6. As a result, the presence of a request signal, at least in one of the channels, a logic zero level appears at the signal output of the device, and the service cycle is repeated. The mode of operation under the control of the external system is as follows. spreads through the polling circuit up to the channel in which the request is. The resolution signal occurs in the same way as described for the offline mode. After issuing the exchange enable signal, the external system can cancel the polling signal, then after servicing this request, the external system must again Switch element 10 at once. If there is at least one request in any of the channels at the signal output of the device, a logic zero level appears, by the presence of which the external system will know about the service request in the device. In response, it carries sig-35
нал опроса уровнем логического нул на вход 12 устройства, Этот сигналthe polling level logic level zero on the input 12 of the device, This signal
ройства в результате as a result of
возможности автономной работы. 37 вьщать сигнал опроса, если на сигнальном выходе устройства будет уровень логического нул . Внешн система может и не снимать сигнал опроса, тогда после обслуживари запроса в данном канале сигнал опроса распростран етс в следующий канал. Таким образом, выдел по пути распространени сигналы запроса, сигнал опроса проходит через все каналы и с выхода распространени опроса последнего канала поступает на вторые входы элементов И-НЕ 6 всех каналов, в результате чего на сигнальном выходе по вл етс уровень логической единицы, что сообщает внешней системе об окончании цикла опроса всех каналов. В этом случае внешн система снимает сигнал опроса, в результате чего на выходе распространени опроса последнего канала не по вл етс уровень логической единицы, и элементы И-НЕ 6 всех каналов разблокируютс . Цикл вновь повтор етс при нали- чии в устройстве запросов, о чем внешн система узнает по наличию уровн логического нул на сигнальном выходе устройства. Применение изобретени позвол ет расширить область применени устbattery life 37 send a polling signal if the logic output of the device has a logic zero level. The external system may not remove the polling signal, then after the request service on this channel, the polling signal propagates to the next channel. Thus, selecting the request signals along the propagation path, the interrogation signal passes through all channels and from the propagation output of the last channel polling enters the second inputs of the AND-HED elements 6 of all channels, as a result of which a logic unit appears at the signal output, which indicates external system about the end of the survey cycle of all channels. In this case, the external system removes the polling signal, as a result of which the level of the logical unit does not appear at the polling output of the last channel, and the NES-6 elements of all channels are unblocked. The cycle is repeated again when there are requests in the device, which the external system learns about by the presence of a logic zero level at the signal output of the device. The application of the invention allows to expand the scope of application