[go: up one dir, main page]

SU1242956A1 - Interface for linking microprocessor system with peripherals with check - Google Patents

Interface for linking microprocessor system with peripherals with check Download PDF

Info

Publication number
SU1242956A1
SU1242956A1 SU843816082A SU3816082A SU1242956A1 SU 1242956 A1 SU1242956 A1 SU 1242956A1 SU 843816082 A SU843816082 A SU 843816082A SU 3816082 A SU3816082 A SU 3816082A SU 1242956 A1 SU1242956 A1 SU 1242956A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
bus
address
microprocessor
Prior art date
Application number
SU843816082A
Other languages
Russian (ru)
Inventor
Константин Григорьевич Карнаух
Сергей Евгеньевич Баженов
Григорий Николаевич Тимонькин
Виктор Борисович Самарский
Сергей Николаевич Ткаченко
Валентин Васильевич Топорков
Вячеслав Сергеевич Харченко
Виктор Иванович Ярмонов
Original Assignee
Харьковское Научно-Производственное Объединение По Системам Автоматизированного Управления
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 Харьковское Научно-Производственное Объединение По Системам Автоматизированного Управления filed Critical Харьковское Научно-Производственное Объединение По Системам Автоматизированного Управления
Priority to SU843816082A priority Critical patent/SU1242956A1/en
Application granted granted Critical
Publication of SU1242956A1 publication Critical patent/SU1242956A1/en

Links

Landscapes

  • Bus Control (AREA)

Abstract

Изобретение относитс  к микропроцессорной технике и может быть использовано при проектировании микропроцессорных систем и микро-ЭВМ с высокими показател ми надежности. Целью изобретени   вл етс  повьшение надежности устройства за счет осуществлени  контрол  времени ответной реакции адресуемого внешнего устройства . В случае возникновени  отказа внешнего устройства устройство дл  сопр жени  обеспечивает коммутацию следующего внешнего устройства. Устройство содержит шифратор, блок асинхронной св зи, сумматор адреса, блок анализа запросов, два буферных регистра , счетчик времени цикла ожидани , счетчик адреса, дешифратор. Триггер управлени , два блока элементов И, три элемента И и два элемента ИЛИ, 3 ш1., 2 табл. (Л ю со сд ОдThe invention relates to microprocessor technology and can be used in the design of microprocessor systems and microcomputers with high reliability indicators. The aim of the invention is to increase the reliability of the device by controlling the response time of the addressed external device. In the event of a failure of an external device, the interface device switches the next external device. The device contains an encoder, an asynchronous communication unit, an address adder, a request analysis unit, two buffer registers, a wait cycle time counter, an address counter, a decoder. Control trigger, two blocks of AND elements, three AND elements and two OR elements, 3 w1., 2 tab. (L yu sd od

Description

f1f1

Изобретение относитс  к микропроцессорной технике и может быть использовано при проектирован1-1и микро- процессор1- ь х систем и микро-ЭВМ с высокими показател ми надежности. The invention relates to microprocessor technology and can be used in designing 1-1 and micro processor 1 systems and micro computers with high reliability indices.

Целью изобретени   вл етс  повьше нк-е надежности устройства за счет осуществлени  контрол  времени ответной реакг,ии адресуемого внешнего устройства.The aim of the invention is to increase the nk-e reliability of the device by controlling the response time and the addressed external device.

На фиг. 1 представлена функциональна  схема, устройства дл  сопр жени  микропроцессорной системы с внешними устройствами с контролем; на фиг. 2 - схема блока асинхронной св зи; на фиг. 3 - схема блока анали за запросов.FIG. Figure 1 shows the functional diagram of devices for interfacing a microprocessor system with external devices with control; in fig. 2 is a diagram of an asynchronous communication unit; in fig. 3 - block diagram analysis of requests.

Устройство (фиг, 1) содержит шифратор 1; блок 2, асинхронной св зи, сумматор 3 адреса, блок 4 анализа - запросов,, первый и второй буферные регистры 5 и 5 соответственно, счетчик 7 времени цикла ожидани , счетчик 8 адреса, дешифратор 9, триггерThe device (Fig, 1) contains the encoder 1; block 2, asynchronous communication, adder 3 addresses, block 4 analysis requests, the first and second buffer registers 5 and 5, respectively, the counter 7 of the waiting cycle time, the counter 8 addresses, the decoder 9, the trigger

10управлени , первый и второй блоки 10 controls, first and second blocks

11и 12 элементов И соответственно, перзъй - третий элементы И 13-15 соответственно , первый и второй элементы ИЛИ 16 и 17 соответственно 5 выход11 and 12 elements AND, respectively, perzj - the third elements AND 13-15 respectively, the first and second elements OR 16 and 17 respectively 5 output

i 8 данных микропроцессоров, выход 19 адреса микропроцессора, выход 20 синхронизации цикла работы i niKponpo- цесссра, первый и второй выходы 21 и 22 соответственно синхронизации тактового генератора системы, выход 23 разрешени  приема информации микропроцессора , парвьм - шестой выходы 24--29 соответственно шифратора 1 , первый выход 30 блока 2 асинхронной сзпзи, первый вход-выход 31 2 асинхронной св зи, первый вход-выход 3 блока 2 асинхронной св зи., второй выход 32 и второй вход .33 блока 2 асинхрснной св зи, первый и второй входа 34 и 35 соответственно блока 4- анализа запросов, вьаход 36 блока 4 ав:алкза запросов,, выход 37 номера неисцравкого внешнего устройства, выход 38 отказа устройства, выход 39 сигнала готовности устройства, выход 40 запроса прерывани  интерфейсной магистрали системы, вход 4 прерыва- кн  микропроцессора.i 8 microprocessor data, microprocessor address output 19, cycle timing synchronization output 20 i niKponoprocessor, first and second outputs 21 and 22, respectively, of the system clock generator, output microprocessor output resolution 23, parvm to sixth outputs of the encoder, respectively 1, the first output 30 of the asynchronous cpu 2 unit, the first input-output 31 of the 2 asynchronous communication, the first input-output 3 of the asynchronous communication unit 2, the second output 32 and the second input .33 of the asynchronous communication unit 2, the first and second inputs 34 and 35, respectively, block 4- a request availability, input 36 of block 4 av: request request, output 37 of the non-malformed external device, device failure output 38, device ready signal output 39, system interface trunk interrupt request output 40, microprocessor interrupt input 4.

Блок 2 асинхронной св зи (фиг. 2) содержит первый и второй элементы 42 и 43 задержки соответственно, пер- вьй - третий триггеры 44-46 управле- ьж  соответственно, пер.-м - третийThe asynchronous communication unit 2 (Fig. 2) contains the first and second delay elements 42 and 43, respectively, the first - the third triggers 44-46, respectively, per-m - the third

6 . . 2 магистральные усилители 47-49 соответственно и первый - третий элементы И 50-52 соответственно. .6 . 2 main amplifiers 47-49, respectively, and the first - the third elements And 50-52, respectively. .

Блок 4 анализа запросов (фиг. З) содержит элемент 53 задержки, триггер 54 управлени  и элемент Р1 55.Query analysis unit 4 (FIG. 3) contains a delay element 53, a control trigger 54 and an P1 element 55.

Устройство работает следующим образом .The device works as follows.

В начале кaJкдoгo машинного цикла обращени  микропроцессора к внешним устройствам в такте Т микропроцессор вырабатывает синхронизирующий сигнап SYNC на выходе 20, по которому производитс  установка в единицу триггера 10 управлени  и формируетс  сигнал синхронизации первого буферного регистра 5. Б результате этого производитс  запись кода слова состо ни  процессора в регистр 5, В этом же такте на выходе 19микропроцессораAt the beginning of each JAC computer microprocessor cycle to external devices in cycle T, the microprocessor generates a SYNC synchronization signal at output 20, which sets the control trigger 10 into a unit and generates a synchronization signal of the first buffer register 5. This results in writing the processor state word code in register 5, in the same clock at the output of the 19 microprocessor

устанавливаетс  код адреса внешнего устройства, к которому осуществл етс  обращение. На выходе 39 устройства устанавливаетс  нулевой сигнал готовности . Код слова состо ни : процессора из регистра 5 поступает на вход шифратора 1, и на одном из его соот- ветствукшщх выходов устанавливаетс  единичный сигнал. Кроме того, после | перевода триггера 10 в единичное состо ние блок 2 асинхронной св зи в случае ЕЮЗМОЖНОСТИ обмена информацией с выбранным внешним устройством выдает сигнал выполнени  (ВПЛ) на втором выходе 32. По сигналу ВПЛ. адресуемое внешнее устройство выдает . сигнал ответа (ОТВ) в блок 2 асинхронной св зи. При этом в рассматриваемом устройстве после разрешени  выдачи сигнала ВПЛ осуществл етс  счет времени тдикла ожидани . Этот режим выполн етс  путем записи серии тактовых импульсов в счетчик 7. Число N импульсов соответствует доцус;тимому времени реакции адресуемого внешнего устройства на запрос. Если от вн:ешн€ го устройства приходит в пределах допустимого времени скг- нал ОТВ 5 то счет времени в счетчике 7 прекращаетс  путем установки его в нуль. При этом в случае правильного функционировани  адресуемого внешнего устройства содержимое счетчика 8 равно нулю. Модификаци  адреса сумматором 3 не выполнлетс .the address code of the external device being accessed is set. At the output 39 of the device, a zero readiness signal is set. The code of the state word: the processor from register 5 is fed to the input of the encoder 1, and a single signal is set at one of its corresponding outputs. In addition, after | transfer of the trigger 10 into a single state; the asynchronous communication unit 2 in the case of CUSTOMER communication with the selected external device generates an execution signal (IDP) at the second output 32. According to the IDP signal. addressable external device issues. the response signal (ATV) to the asynchronous communication unit 2. At the same time, in the considered device, after allowing the issuance of the signal to the IDPs, countdown of waiting time is carried out. This mode is carried out by recording a series of clock pulses in counter 7. The number N of pulses corresponds to the response; in other words, the response time of the addressed external device to the request. If from the VN: the latest device comes within the allowable time of an OTB 5 bank, then the time count in counter 7 is terminated by setting it to zero. In this case, if the addressable external device is functioning correctly, the contents of counter 8 are equal to zero. Modification of the address by adder 3 is not performed.

Работа шифратора 1 описана таблицей соответстви  (табл. ),The operation of the encoder 1 is described by the correspondence table (Table),

Значени  входных сигналов ,, шифратора 1 и значени  его выходных сигналов на выходах 25-29 однозначно соответствуют кодам слова состо ни  процессора (PSW) при выполнении следующих циклов: MEMORY READ, MEMORY VffilTE, INPUT, OUTPUT, INTERPUT микропроцессора серии К 580 (INTEL sos A)The values of the input signals, encoder 1 and the values of its output signals at outputs 25-29 unambiguously correspond to the codes of the processor state word (PSW) during the following cycles: MEMORY READ, MEMORY VffilTE, INPUT, OUTPUT, INTERPUT of the microprocessor K 580 series (INTEL sos A)

в случае, если в установленное (максимально допустимое) врем  сигнал ОТВ от адресуемого внешнего устройства не приходит, то с приходом (N+l)-ro импульса на выходе переполнени  счетчика 7 формируетс  единичный сигнал,который записываетс  в счетчик 8. Следовательно,микропроцессор в это случае выходит в режим Ожидание , Сформированным в счетчике 8 кодом 00.,.01 происходит модификаци  адре- .са внешнего устройства. Операцию модификации осуществл ет сумматор 3 адреса. Модификации подвергаютс  старших разр дов кода адреса путем увеличени  на единицу этого кода. В результате этого формируетс  коц адреса следующего по счету внешнего устройства. В рассматриваемом случае триггер 10 в исходное состо ние не возвращаетс , а остаетс  в единичном состо нии, что обеспечивает возможность повторного осуществлени  счета времени цикла ожидани , Если сигнал ОТВ приходит в пределах установленного времени, то в j-м также режима (цикла) ожидани  по заднему фронту импульса 4 он выходит из режима ожидани  и продолжает работу.В противном случае содержимое счетчика 8 увеличиваетс  еще на единицу и в нем находитс  код 000...10. В результате этогоin the event that the signal OTV from the addressed external device does not arrive at the set (maximum) time, then with the arrival of the (N + l) -ro pulse at the overflow output of counter 7, a single signal is generated, which is recorded in counter 8. Therefore, the microprocessor in This case enters the Standby mode. Formed in the counter 8 by the code 00., .01, the address of the external device is modified. The modification operation is performed by the adder 3 addresses. Modifications are made to the higher bits of the address code by incrementing this code by one. As a result, the kotz address of the next external device is generated. In this case, the trigger 10 does not return to the initial state, but remains in a single state, which makes it possible to re-execute the count of the waiting cycle time. If the TTV signal arrives within the set time, then j also has a waiting mode (cycle) to the falling edge of pulse 4, it goes out of standby mode and continues to work. Otherwise, the contents of counter 8 are incremented by one more and the code 000 ... 10 is in it. As a result

ТаблицаTable

II

Происходит операци  модификации адреса и формируетс  код адреса следующего внешнего устройства. Вс кий раз после записи информации,в счетчик 8 на выходе 37 устройства формируетс  соответствующий код. В случае, если происходит отказ всех внешних устройств , то после отказа последнего из них на выходе 39 устройства формируетс  сигнал отказа.An address modification operation occurs and the address code of the next external device is generated. All the time after recording the information, the corresponding code is formed in the counter 8 at the output 37 of the device. In case of failure of all external devices, after the failure of the last of them, a failure signal is generated at the output 39 of the device.

Работа сумматора 3 адреса при модификации адреса внешнего устройства может быть описана таблицей соответстви  (табл.. 2),The operation of the adder 3 addresses when modifying the address of the external device can be described by the correspondence table (Table .. 2),

Таблица 2table 2

00000000 00101101 00111101 o l 00000000000000 00101101 00111101 o l 000000

00000000 00110101 01000101 0100100000000000 00110101 01000101 01001000

Из таблицы 2 соответстви  сумматора 3 адреса следует, что модификаци From table 2 match adder 3 addresses, it follows that the modification

дреса при нулевом содержимом счетчиа 8 адреса {при исправной работе адесуемых внешних устройств) не осуествл етс  .The address with the zero content of the counter 8 addresses {during the correct operation of the external devices being addressed) is not implemented.

Блок 2 асинхронной св зи функциоирует следующим образом.The asynchronous communication unit 2 functions as follows.

В исходном состо нии триггеры 44- 46 наход тс  в нулевом состо нии. С риходом управл ющего сигнала от триггера 10 и при отсутствии блокировки от блока 4 срабатывает элемент И 50 и переводит триггер 44 в единичное состо ние. В интерфейсную магистраль при этом выдаетс  сигнал зан тости магистрали (ЗМА), а на шифратор 1 управл ющих сигналов - разрешающий сигнал, по которому тот выдает в интерфейсную магистраль один из управл ющих сигналов.In the initial state, the triggers 44-46 are in the zero state. With the arrival of the control signal from trigger 10 and in the absence of blocking from block 4, element I 50 triggers and sets trigger 44 to one state. In this case, the signal for busy line (ЗМА) is outputted to the interface trunk, and the control signal encoder 1 - an enable signal, through which it sends one of the control signals to the interface highway.

Через врем  L,, (врем  срабатыва- ни  первого элемента 42 задержки) триггер 45 устанавливаетс  в .единич-. ное состо ние. На выходе 32 блока 2 устанавливаетс  сигнал ВГШ, и, кроме того, открываетс  второй элемент И .5 по первому входу. При поступлении единичного сигнала на вход 33 блока 4 (сигнала ОТВ) триггер 46 устанавливаетс  в единичное состо ние. При этом единичный сигнал поступает на третий выход блока 2 и на вход второ- го элемента 43 задержки. Через врем  t . (врем  срабатывани  второго элемента 43 задержки) триггер 45 устанавливаетс  в нулевое состо ние . Третий элемент И 52 открываетс  по второму входу. После сн ти  сигнала ВШ1 с входа 33 блока 2 триггер 46 уста- навливаетс  в нулевое состо ние. Это вызывает установку в нуль первого триггера 44, что производит сн тие сигнала захвата магистрали с выхода 31 блока 2. Шифратор 1 при этом производит отключение от интерфейсной магистрали информационных, адресных и управл ющих сигналов. На этом цикл работы.блока 2 заканчиваетс .After a time L ,, (the response time of the first delay element 42), the trigger 45 is set to one. condition. At the output 32 of unit 2, the signal of the VGS is set, and, in addition, the second element AND.5 is opened at the first input. When a single signal arrives at the input 33 of block 4 (signal of the FCV), the trigger 46 is set to the single state. In this case, a single signal is supplied to the third output of block 2 and to the input of the second delay element 43. Through time t. (the response time of the second delay element 43), the trigger 45 is set to the zero state. The third element And 52 opens at the second entrance. After the VS1 signal has been removed from the input 33 of the unit 2, the trigger 46 is set to the zero state. This causes the first trigger 44 to be set to zero, which produces a removal of the main line capture signal from output 31 of block 2. In this case, the encoder 1 disconnects the information, address and control signals from the interface highway. The cycle of operation of block 2 ends there.

Блок 4 анализа запросов доступа с магистрали работает следующим образом .Unit 4 analysis of access requests from the highway works as follows.

Внешнее устройство, требующее доступ к интерфейсной магистрали, выдает сигнал запроса доступа к магистрали , который поступает на первый вход 34 блока 4. При отсутствии сигнала .на входе 35 блока 4 на выходе элемента И 55 формируетс  сигналAn external device, which requires access to the interface trunk, generates a request for access to the trunk, which is fed to the first input 34 of block 4. In the absence of a signal.

00

ss

00

5five

00

ii

разрешени  доступа к магистрали, который поступает на выход блока 4. Внешнее активное устройство, получив сигнал разрешени  доступа к магистрали , отвечает сигналом подтверждени  запроса, который поступает на вход 35 блока 4.allowing access to the highway, which arrives at the output of block 4. The external active device, having received the signal to enable access to the highway, responds with a request confirmation signal, which is fed to the input 35 of block 4.

Этот сигнал поступает на S-вход триггера 54 и на вход элемента 53 задержки. Элемент И 55 производит сброс сигнала разрешени  доступа к магистрали. Ну.левой сигнал с нулевого выхода триггера 54 поступает на первый выход б.лока 4, блокиру  работу блока 2 на использование устройства интерфейсной магистрали.This signal is fed to the S-input of the trigger 54 and to the input of the element 53 of the delay. Element And 55 resets the access enable signal. Nu. The left signal from the zero output of the trigger 54 is fed to the first output of the block 4, blocking the operation of block 2 to use the interface line device.

Пос.ле сброса единичного сигнала с входа 35 блока 4 через врем  f jj (врем  работы .элемента 53 задержки) триггер 54 устанав.ливаетс  в исходное (нулевое) состо ние.After resetting a single signal from input 35 of block 4, after time f jj (time of operation of the delay element 53), the trigger 54 is set to the initial (zero) state.

Устройство дл  сопр жени  микро- процессорной системы с внешними уст- .ройствами с контролем работает следующим образом.The device for interfacing the microprocessor system with external control devices operates as follows.

В исходном состо нии все элементы пам ти наход тс  в нулевом состо нии. (Цепи установки в нуль условно не показаны), В н:ачале каждого машинного цикла микропроцессор выдает сигнал синхронизации SYNCj который поступает на выход 20 микропроцессора. В кахсдом такте работы микропроцессора ка выходы 2 и 22 устройства по- ст упает последовательность импульсов Ч и 2 соотв€1тственно .In the initial state, all the memory elements are in the zero state. (Circuit set to zero conditionally not shown) In n: the start of each machine cycle, the microprocessor generates a sync signal SYNCj which is output to the microprocessor output 20. In kahsdom microprocessor tact, the outputs 2 and 22 of the device become a sequence of pulses H and 2, respectively.

При вьшолнении программы в первом такте каждого машинного цикла, кроме выставлени  сигнала SYNC на выходе 20 синхрониз.ации цикл а работы микропроцессора , на выходе 18 данных микропроцессора выставл етс  код слова состо ни  процессора, а на выходе 19 микропроцессора выставл етс  код адреса внешнего устройства (при выполнении операций приема, ИРМ, и вьщачи ВДЧ информации с/на адресуемое периферийное устройство).При одновременном по влении сигналов SYNC на выходе 20 микропроцессора и импульса f на выходе 2 тактового генератора системы на выходе элемента И 13 фор- труетс  единичный сигнал. В результате этого триггер 10 переходит в единичное состо ние,а в регистр 5 записываетс  код слова состо ни  процессора .When executing a program in the first cycle of each machine cycle, except for setting the SYNC signal at the sync cycle output 20 of the microprocessor operation, the processor status word code is set at the microprocessor data output 18, and the external device address code is output at the microprocessor output 19 when performing receive operations, IRM, and transmitting VDP information to / from the addressable peripheral device). When SYNC signals appear at the output 20 of the microprocessor and pulse f at the output 2 of the system clock generator at the output e AND gate 13 for- truets single signal. As a result of this, the trigger 10 goes to one state, and the register of the processor state word is written to register 5.

Сигналы состо ни  микропроцессора поступают на входы шифратора 1 с выхода регистра 5. С нулевого выхода триггера 10 на выход 38 устройства поступает сигнал неготовности (нулевой сигнал). С единичного выхода триггера 10 на блок 2 асинхронной св зи поступает единичный сигнал, который указывает на требование мик- ропроцессора к обмену информацией с внешним устройством. По этому сигналу блок 2 асинхронной св зи произ- водит анализ логического услови  (наличие сигналов зан тое- ти интерфейсной магистрали и подтверждение запроса магистрали соответственно ). Выполнение этого услови указывает, что, интерфейсна  магистраль не зан та, т.е. другие активные устройства (внешние устройства), подключенные к магистрали, не производ т в данный момент обмен информацие и не т разрешени  на использование магистрали . Если приведенное условие выполн етс , то блок 2 асинхронной св зи выдает единичный сигнал на входе-выходе 31 (ЗМА) и на первом выходе 30, инициирующий работу шифратора 1 . The microprocessor state signals are fed to the inputs of the encoder 1 from the output of register 5. From the zero output of trigger 10 to the output 38 of the device, a signal of unavailability (zero signal) is received. From the single output of the trigger 10, the unit 2 of the asynchronous communication receives a single signal, which indicates that the microprocessor is required to exchange information with an external device. Using this signal, the asynchronous communication unit 2 analyzes the logical condition (the presence of signals from the interface bus busy and confirmation of the trunk request, respectively). The fulfillment of this condition indicates that the interface trunk is not occupied, i.e. other active devices (external devices) connected to the trunk are not currently exchanging information and not permitting the use of the trunk. If the given condition is fulfilled, the asynchronous communication unit 2 generates a single signal at the input-output 31 (ЗМА) and at the first output 30, which initiates the operation of the encoder 1.

Единичньш сигнал с выхода 30 блока 2 асинхронной св зи производит открытие элемента И 14 по его третье- му.входу, в каждом такте работы устройства с приходом импульсов с выхода 21 тактового генератора систе мы в счетчике 7, осуществл етс  выполнение операции счета числа импульсов (определение времени длительности цикла ожидани ),A single signal from the output 30 of the asynchronous communication unit 2 produces the opening of the element 14 at its third input, at each operation cycle of the device with the arrival of pulses from the output 21 of the system clock generator in the counter 7, the counting operation of the number of pulses is performed ( determination of the duration of the waiting cycle),

Шифратор I в . зависимости от значени  кода слова состо ни  процессора , поступающего с выхода регистра 5 выдает один из управл ющих сигналов, вьщаваемый в интерфейсную магистраль системы, а также осуществл ет подключение к шинам адреса интерфейсной магистрали адресных сигналов. Кроме того, в режиме Запись или Выдача (ЗАЛ, ВДЧ) к шинам интерфейсной магистрали подключаютс  сигналы данных , а в режимах Чтение или Прием (ЧТН, ПРМ) к шинам интерфейсной магистрали подключаетс  информацион- ный вход регистра 6. Через врем  за- держки Г| блок 2 асинхронной св зи вьщает сигнал ВПЛ на втором выходе 32. По этому сигналу адресованноеCipher I in. Depending on the value of the code of the state word processor, coming from the output of the register 5, it produces one of the control signals inserted into the system interface bus, and also connects the address signals to the address bus addresses of the interface highway. In addition, in the Record or Delivery mode (HALL, VDCH), data signals are connected to the buses of the interface bus, and in the Read or Receive (CTN, PFP) modes, the information input of the register 6 is connected to the buses of the interface highway. | the asynchronous communication unit 2 carries an IDP signal at the second exit 32. By this signal, the addressed

периферийное устройство или устройство пам ти в режимах Запись и Выдача соответственно производ т прием информации и отвечают сигналам ОТВ. В режимах Чтение и Прием выдают на шины интерфейсной магистрали информационные сигналы и сопро- во дз,ают их сигналом ОТВ.the peripheral device or memory device in the Record and Issue modes, respectively, receives information and responds to the GTV signals. In the modes of Reading and Reception, information signals are sent to the buses of the interface highway, and they are transmitted by an OT signal.

По прин тии сигнала ОТВ, в, случае правильного функционировани  адресуемого внешнего устройства, на третьем выходе блока 2 асинхронной св зи формируетс  единичный сигнал который поступает на вторые входы первого и второго элементов ИЛИ 16 и 17 Соответственно. В результате триггер 10 переходит в нулевое состо ние и на выходе 39 устройства формируетс  сигнал Готов. Кроме того, по этому сигналу происход т установка в нуль счетчика 7 времени цикла ожидани  и подтверждение нулевого состо ни  счетчика 8 адреса. В режимах Чтгние и Прием по сигналу ОТВ производитс  запись информации, .в регистр 6. После прин ти  сигнала ОТВ через врем  , необходимое дл  занесени  информации в регистр 6, блок 2 асинхронной св зи осуществл ет сброс сигнала ВПЛ. Внешнее устройство на сброс сигнала ВПЛ отвечает сбросом сигнала ОТВ. Блок 2 асин- хронной св зи.после сброса сигнала производит отключение сигнала ЗМА, а также адресных, информационных и управл ющих сигналов от интерфейсной магистрали. В случае, если при обращении микропроцессора к внешнему устройству интерфейсна  магистраль оказываетс  закрытой, на первом выходе 30 .блока 2 асинхронной св зи единичный сигнал не формируетс  и тем самым элемент И 14 остаетс  в Закрытом состо нии. Счет времени цикла ожидани  в счетчике 7 не осуществл етс . С нулевого выхода триггера 10 на выход 38 устройства поступает нулевой сигнал. По этому сигналу микропроцессор переходит в режим ожидани  на врем , пока не освободитс  интерфейсна  магистраль системы.Upon receiving the signal of the OTF, in the case of correct functioning of the addressed external device, a single signal is generated at the third output of the asynchronous communication unit 2 and is fed to the second inputs of the first and second elements OR 16 and 17 respectively. As a result, the trigger 10 goes to the zero state and the Ready signal is generated at the output 39 of the device. In addition, on this signal, the counter 7 of the standby cycle time is set to zero and the zero state of the counter 8 of the address is confirmed. In the Read and Receive modes, information is recorded in the TSS signal. In register 6. After receiving the TSS signal, after a time required to enter information into register 6, the asynchronous communication unit 2 resets the IDP signal. The external device on resetting the IDP signal responds by resetting the signal of the TSS. Block 2 of asynchronous communication. After resetting the signal, disconnects the signal of the SMA, as well as the address, information and control signals from the interface trunk. In case the interface line turns out to be closed when the microprocessor accesses the external device, a single signal is not generated at the first output 30 of the asynchronous communication unit and thus the AND 14 element remains in the Closed state. The counting time of the sleep cycle in counter 7 is not performed. From the zero output of the trigger 10 to the output 38 of the device receives a zero signal. On this signal, the microprocessor enters standby mode for a while until the system's interface trunk is released.

В случае, если режим обмена информацией между микропроцессором и адресуемым внешним устройством может быть установлен, но сигнал ОТВ от него не пришел, по истечении времени 1 (после прихода N-ro импульса наIf the mode of information exchange between the microprocessor and the addressed external device can be set, but the signal of the OTB from it will not come after time 1 (after the arrival of the N-ro pulse on

счетчик 7) с приходом (N+l)-ro импульса на выходе счетчика 7 формируетс  сигнал переполнени , которьй поступает на счетный вход счетчика 8 В этом случае в счетчике 8 устанавливаетс  код единицы. По коду содержимого счетчика 8 в сумматоре 3 происходит модификаци  кода адреса адресуемого .внешнего устройства. Модификаци  адреса осуществл етс  путем увеличени  на единицу кода адреса внешнего устройства. При этом продолжаетс  осуществление контрол  длительности цикла ожид ани  . . В счетчик 7 записываютс  импульсы синхронизации Ч .counter 7) with the arrival of (N + l) -ro pulse at the output of counter 7, an overflow signal is generated, which is fed to the counting input of counter 8 In this case, the unit code is set in counter 8. According to the content code of the counter 8 in the adder 3, the address code of the addressable external device is modified. The address is modified by incrementing by one the address code of the external device. At the same time, the monitoring of the expectation cycle duration continues. . The counter 7 records the synchronization pulses H.

Если сигнал ОТВ приходит в пределах допустимого времени, работа устройства продолжаетс  по описанному алгоритму. . If the signal of the TSS arrives within the allowable time, the operation of the device proceeds according to the described algorithm. .

В случае, если второе адресуемое внешнее устройство не выдает сигнал ОТВ в пределах установленно.го времени , происходит повторное изменение содержимого счетчика 8. В нем записан код два. По этому коду происходит модификаци  кода адреса внешнего устройства путем увеличени  на два первоначального кода адреса внешнего устройства.In the event that the second addressable external device does not generate the signal OTV within the set time, a second change occurs in the contents of the counter 8. It contains the code two. This code is used to modify the address code of the external device by increasing by two the original code of the address of the external device.

Если отказ происходит во всех внешних устройствах, то после записи L-й единицы в счетчик 8 и по истечении времени i на выходе 39 устройства установлен сигнал отказа.If a failure occurs in all external devices, then after writing the L-th unit to the counter 8 and after the time i has elapsed, the output 39 of the device has a failure signal.

Организаци  прерывани  микропроцессора осуществл етс  следующим образом .The microprocessor interrupt is organized as follows.

Внешнее устройство, требующее прерывание прог раммы, вьщает в интерфейсную магистраль по шине ЗПР сигнал запроса прерывани , В устройстве этот сигнал трансформируетс  на вход ПРЕР микропроцессора. После Выполнени  очередной команду микропроцессор воспринимает сигнал ПРЕР (если вход ПРЕР не заблокирован) и во врем  обращени  за очередной командой в «коде слова состо ни  устанавливает сигнал подтверждени  запроса прерывани  П. ЗП. ПРЕР. Шифратор 1 в этом случае формирует сигнал РПР на своем шестом выходе 29. Сигнал РПР проходит последовательно через все инициативные периферийные устройства. Ближайшее периферийное устройство, вьздавшее запрос на прерывание , воспринимает сигнал РПР, блокирует его дальнейшее прохождение и выдает на интерфейсную магистраль код вектора прерывани , сопровожда  его сигналом ОТВ.An external device, which requires interruption of the program, transmits an interrupt request signal to the interface trunk via the DPR bus. In the device, this signal is transformed to the PEPP input of the microprocessor. After executing the next command, the microprocessor perceives the PEPP signal (if the PEPP input is not blocked) and during the call for the next command in the "status word code" sets the acknowledgment signal of the interrupt request P. ZP. PRER. The encoder 1 in this case generates a signal of the RPR at its sixth output 29. The signal of the RPR passes sequentially through all the initiative peripheral devices. The nearest peripheral device, which raised the interrupt request, receives the RPR signal, blocks its further passage and issues the code of the interrupt vector to the interface trunk, accompanied by its OTV signal.

Таким образом, из алгоритма функционировани  устройства дл  сопр жеThus, from the device operation algorithm for matching

ни  микропроцессорной системы с внешними устройствами с контролем следует , что в нем осуществл етс  контроль времени ответной реакции адресуемого- внешнего устройства и в случае воз- никновени  отказа в нем оно обеспечивает коммутацию следующего внешнего устройства.Neither the microprocessor system with external devices with control follows that it controls the response time of the addressed external device and, in the event of a failure, it controls the switching of the next external device.

Claims (1)

Формула изобретени Invention Formula Устройство дл  сопр жени  микропроцессорной системы с внешними устройствами с контролем,содержащее блок асинхронной св зи, блок анализа запросов , шифратор, первый и второй буферные регистры, первый и второй блоки элементов И, триггер управлени  и первый элемент И, причем выход данных микропроцессора соединен с.A device for interfacing a microprocessor system with external devices with a control, comprising an asynchronous communication unit, a request analysis unit, an encoder, first and second buffer registers, first and second blocks of AND elements, a control trigger, and the first AND element, with the microprocessor data output connected to . информационным входом первого блока алементов И и информационным входом первого буферного.регистра, выход первого блока элементов И соединен с информационной шиной интерфейсной магистрали системы и информационным входом второго буферного регистра, выход первого буферного регистра сое динен с информационным входом шифратор.а, выходы первого, второго и третьего разр дов первого выхода которого соединены с управл ющими входами перв.ого и второго блоков элементов И И Е1ходом разрешени  второго буферного регистра соответственно , а второй - шестой выходы шифратора соединены с шинами чтени , записи, приема, выдачи и разрешени  прерывани  интерфейсной магистрали систе1У1ы, выход второго буферного регистра подключен к шине данных микропроцессора , перва  группа разр дов адресной шины г шкропроцессора соединена с соответствующими разр дами информационного входа второго блока элементов И, выход которого соединенthe information input of the first block of alements And and the information input of the first buffer register. The output of the first block of elements I is connected to the information bus of the system interface bus and the information input of the second buffer register, the output of the first buffer register is connected to the information input of the cipher. and the third bits of the first output of which are connected to the control inputs of the first and second blocks of elements AND AND E1 input resolution of the second buffer register, respectively, and the second oh - the sixth outputs of the encoder are connected to the read, write, receive, output and enable busses of the system interface bus interrupt, the output of the second buffer register is connected to the microprocessor data bus, the first group of address bus address bits of the scrocessor is connected to the corresponding bits of the information input of the second block of elements And whose output is connected с адресной шиной интерфейсной магист рали системы, первьй выход блока асинх)онной св зи соединен со стро- бируюпщм входом шифратора, вход-вы11with the address bus of the interface trunk of the system, the first output of the asynch link unit is connected to the building input of the encoder, input-output 11 ход блока acHHXpoHiioti СВУПН соединен с шиной сигнала зан тости интерфе 1С- ной маг истрали системы, первый вход блока асинхронной св зи соединен с первым.выходом блока анализа запросов , второй выход которого соединен с шиной разрешени  доступа интерфейсной магистрали системы, второй выход блока асинхронной св зи соединен с шиной выполнени  интерфейсной магистрали системы, второй вход блока асинхронной св зи соединен с шиной ответа интерфейсной магистрали системы , первый, и второй вхрды блока анализа запроса соединены с шинами запроса доступа и подтверждени  запроса интерфейсной магистрали системы соответственно, выход синхронизации цикла работы микропроцессора подключен к первому входу первого элемента И, первый выход синхронизации тактового генератора системы подключен к второму входу первого элемента И, выход которого соединен с S-входом триггера управлени  и входом синхронизации первого буферного регистра, единичный выход триггера управлени  соединен с. третьим входом блока асинхронной св зи, нулевойthe acHHXpoHiioti SVUPN block path is connected to the 1S-interlace system's signal bus, the first input of the asynchronous communication unit is connected to the first output of the query analysis unit, the second output of which is connected to the access bus of the interface backbone of the system, the second output of the asynchronous link The zi is connected to the system interface bus, the second input of the asynchronous communication unit is connected to the system interface line response bus, the first and the second request analysis block are connected to the query bus stupa and confirmation of the request of the system interface bus, respectively, the microprocessor cycle synchronization output is connected to the first input of the first element, the first synchronization output of the system clock generator is connected to the second input of the first element And, the output of which is connected to the S input of the control trigger and the synchronization input of the first buffer register, a single control trigger output is connected to. the third input of the asynchronous communication unit, zero выход триггера управлени   вл етс  выходом готовности устройства, выход разрешени  приема информации микропроцессора соединен с входом синхронизации второго буферного регистра,, шина запроса прерывани  интерфейсной магистрали системы соединена с входом прерывани  микропроцессора, отличающеес  тем, что, с цельюthe control trigger output is the device readiness output, the microprocessor information receive enable output is connected to the synchronization input of the second buffer register, the system interface trunk interrupt request bus is connected to the microprocessor interrupt input, characterized in that повышени  надежности устройства за счет осуществлени  контрол  времени ответной реакции адресуемого внешнего устройства, оно содер жит счетчик времени цикла ожидани , счетчик ад increase the reliability of the device by monitoring the response time of the addressed external device; it contains the wait cycle time counter, the ad counter 2429S612429S61 реса, су.чматор адреса, дешифратор, iiepisbiii и второй элементы ИЛИ, второй и третий элементы И, причем первый выход синхронизации так-товогоrez, address ch.chmator, decoder, iiepisbiii and the second element OR, the second and third elements AND, the first synchronization output being so 5 генератора системы соединен с первым входом второго элемента И, выход которого соединен со счетным входом счетчика времени цикла ожидани , выход переполнени  которого соединен5 of the system generator is connected to the first input of the second element I, the output of which is connected to the counting input of the timer of the waiting cycle, the output of which overflows 10 со ачетным входом счетчика адреса, информационный выход которого соединен с входом дешифратора и первым входом сумматора адреса, выход переполнени  счетчика адреса соединен с10 with the counting input of the address counter, the information output of which is connected to the input of the decoder and the first input of the address adder, the overflow output of the address counter is connected to 15 выходом отказа устройства и первыми входами первого элемента ИЛИ и третьего элемента И, второй выход синхронизации тактового генератора системы соединен с вторым входом третьего15 output device failure and the first inputs of the first element OR and the third element And the second clock output of the system clock generator is connected to the second input of the third 20 элемента И, выход которого соединен с первым входом второго элемента ИЛИ, выход которого соединен с установочным входом счетчика адреса, втора  группа разр дов шины адреса микро25 процессора соединена с вторым входом сумматора.адреса, выход которого соединен с соответствующими разр дами информационного входа второго блока элементов И, третий выход блока20 of the AND element, the output of which is connected to the first input of the second OR element, the output of which is connected to the installation input of the address counter, the second group of address bus of the micro25 processor bus is connected to the second input of the totalizer address, the output of which is connected to the corresponding bits of the information input of the second block elements And, the third output of the block 30 асинхронной св зи соединен с вторыми входами первого и второго элементов ИЛИ, выход перЬого элемента ИЛИ соединен с R-входом триггера управлени  и установочным входом счетчика вре25 мени цикла ожидани , выход дешифратора  вл етс  выходом индикации номера отказавшего внешнего устройства , единичный выход триггера управлени  соединен с вторым входом30 asynchronous communications are connected to the second inputs of the first and second OR elements, the output of the first OR element is connected to the R input of the control trigger and the installation input of the sleep cycle time counter, the output of the decoder is a display output number of the failed external device, the single output of the control trigger is connected with the second entrance 40 второго элемента И, третий вход которого срединен с первым выходом блока асинхронной св зи .40 of the second element And, the third input of which is central to the first output of the asynchronous communication unit. фиг.Зfig.Z
SU843816082A 1984-11-19 1984-11-19 Interface for linking microprocessor system with peripherals with check SU1242956A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843816082A SU1242956A1 (en) 1984-11-19 1984-11-19 Interface for linking microprocessor system with peripherals with check

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843816082A SU1242956A1 (en) 1984-11-19 1984-11-19 Interface for linking microprocessor system with peripherals with check

Publications (1)

Publication Number Publication Date
SU1242956A1 true SU1242956A1 (en) 1986-07-07

Family

ID=21148109

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843816082A SU1242956A1 (en) 1984-11-19 1984-11-19 Interface for linking microprocessor system with peripherals with check

Country Status (1)

Country Link
SU (1) SU1242956A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Коффрон Дж. Технические средства микропроцессорных систем. - М.: Мир, 1983. Авторское свидетельство СССР .№ 734657, кл. G 06 f 3/04. 1978. *

Similar Documents

Publication Publication Date Title
EP0303751B1 (en) Interface mechanism for controlling the exchange of information between two devices
US3886524A (en) Asynchronous communication bus
US4519034A (en) I/O Bus clock
EP0166272B1 (en) Processor bus access
US4038642A (en) Input/output interface logic for concurrent operations
US4933840A (en) I/O control system using buffer full/empty and zero words signals to control DMA read/write commands
US5001624A (en) Processor controlled DMA controller for transferring instruction and data from memory to coprocessor
US4805137A (en) Bus controller command block processing system
US4797815A (en) Interleaved synchronous bus access protocol for a shared memory multi-processor system
US5459839A (en) System and method for managing queue read and write pointers
JPS60186956A (en) Buffer unit for input/output section of digital data processing system
US4156277A (en) Access request mechanism for a serial data input/output system
US6055598A (en) Arrangement and method for allowing sequence-independent command responses across a computer bus bridge
US4038641A (en) Common polling logic for input/output interrupt or cycle steal data transfer requests
EP0288650B1 (en) Protocol and apparatus for a control link between a control unit and several devices
US5089953A (en) Control and arbitration unit
SU1242956A1 (en) Interface for linking microprocessor system with peripherals with check
JPH051504B2 (en)
JPS61166647A (en) Accessing for reading out information microprocessor and addressable memory
SU1672459A1 (en) Computer-to-external storage interface unit
SU1483453A1 (en) Request source address generator
SU1341636A1 (en) Program interruption device
RU2018944C1 (en) Device for interfacing computer with external objects
SU1647597A1 (en) Multiprocessor system
JP2702832B2 (en) Relief controller for low priority adapter