SU1242956A1 - Interface for linking microprocessor system with peripherals with check - Google Patents
Interface for linking microprocessor system with peripherals with check Download PDFInfo
- 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
Links
- 230000002093 peripheral effect Effects 0.000 title description 5
- 238000004891 communication Methods 0.000 claims abstract description 26
- 230000004044 response Effects 0.000 claims abstract description 10
- 238000012790 confirmation Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 2
- 238000009434 installation Methods 0.000 claims 2
- 238000005516 engineering process Methods 0.000 abstract description 2
- 108010029660 Intrinsically Disordered Proteins Proteins 0.000 description 6
- 102100037845 Isocitrate dehydrogenase [NADP], mitochondrial Human genes 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 101150074180 pepP gene Proteins 0.000 description 3
- 230000000903 blocking effect Effects 0.000 description 2
- 208000033748 Device issues Diseases 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
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)
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) |
-
1984
- 1984-11-19 SU SU843816082A patent/SU1242956A1/en active
Non-Patent Citations (1)
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 |