RU1815643C - Device for debugging programs for microcomputer - Google Patents

Device for debugging programs for microcomputer

Info

Publication number
RU1815643C
RU1815643C SU4793566A RU1815643C RU 1815643 C RU1815643 C RU 1815643C SU 4793566 A SU4793566 A SU 4793566A RU 1815643 C RU1815643 C RU 1815643C
Authority
RU
Russia
Prior art keywords
input
output
address
block
microcomputer
Prior art date
Application number
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 SU4793566 priority Critical patent/RU1815643C/en
Application granted granted Critical
Publication of RU1815643C publication Critical patent/RU1815643C/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Изобретение относитс  к вычислительной технике и может быть использовано при отладке аппаратуры и программ в реальном масштабе времени. С целью повышени  производительности при отладке программ и расширени  функциональных возможностей , в устройство, содержащее блок задани  адреса, блок входных данных и режимов отладки, дешифратор адреса, блок адреса останова, схему сравнени , первый и второй элементы И, элемент ИЛИ, триггеры готовности , блокировки пам ти, запроса прерывани , сброса, запроса захвата, введены микропроцессор, блок выходных данных и режимов отладки, шинный формирователь данных, шинный формирователь адреса, мультиплексор, отладочное ОЗУ, три элемента И, триггер запроса пр мого доступа к пам ти, регистр-защелка старшего байта адреса, четыре группы трехстабильных ключей , контроллер пр мого доступа к пам ти, приемопередатчик последовательного канала с соответствующей совокупностью св зей . 5 ил. (Л СThe invention relates to computer technology and can be used to debug hardware and programs in real time. In order to increase productivity when debugging programs and expanding functionality, to a device containing an address setting block, an input data block and debugging modes, an address decoder, a break address block, a comparison circuit, the first and second AND elements, the OR element, ready, blocking triggers memory, interrupt request, reset, capture request, microprocessor, output data block and debug modes, bus data driver, bus address driver, multiplexer, debug RAM, three AND elements, direct memory access request trigger, register-latch of high address byte, four groups of three-stable keys, direct memory access controller, serial channel transceiver with corresponding set of communications. 5 ill. (L C

Description

Изобретение относитс  к вычислительной технике и может быть использовано при отладке аппаратуры и программ в реальном масштабе времени.и может найти широкое применение при отладке и эксплуатации микропроцессорных систем и устройств (как однопроцессорных/так и многопроцессорных ).The invention relates to computer technology and can be used for debugging equipment and programs in real time. And it can be widely used for debugging and operation of microprocessor systems and devices (both single-processor / multiprocessor).

Целью изобретени   вл етс  повышение производительности при отладке программ и расширение функциональных возможностей за счет возможности отладки восьми - и шестнадцати разр дных микропроцессоров .The aim of the invention is to increase productivity when debugging programs and expand functionality due to the possibility of debugging eight- and sixteen bit microprocessors.

На фиг. 1 и 2 представлена функциональна  схема устройства отладки программ; на фиг.З - временна  диаграмма вIn FIG. 1 and 2 are a functional diagram of a program debugging device; Fig. 3 is a timing chart in

режиме загрузки -информации в отлаживаемое устройство на управл ющей микро- ЭВМ; на фиг.4 - временна  диаграмма чтени  пам ти отлаживаемого устройства и ее передачи в управл ющую микроЭВМ; на фиг.5- временна  диаграмма программировани  ПЗУ.loading mode of information into the debugged device on the control microcomputer; Fig. 4 is a timing chart for reading a memory of a debugged device and its transmission to a control microcomputer; 5 is a timing diagram of a ROM programming.

Устройство (фиг.1, 2) содержит ПЗУ 1, блок 2 задани  адреса, блок 3 адреса останова и режимов отладки, блок 4 входных данных и режимов отладки, микропроцессор 5. первый и второй элементы И 6. 7, схему сравнени  8, шинные формирователи данных 9 и 10, адресный мультиплексор 11, третий и четвертый элементы адреса И 12, 13, элемент ИЛИ 14. отладочный блок пам ти 15, триггер 16 запроса пр мого доступа.The device (FIGS. 1, 2) contains ROM 1, address setting unit 2, stop address and debugging mode unit 3, input data and debugging mode unit 4, microprocessor 5. first and second elements AND 6. 7, comparison circuit 8, bus data shapers 9 and 10, address multiplexer 11, third and fourth address elements AND 12, 13, OR element 14. debugging memory unit 15, direct access request trigger 16.

0000

ел оate about

&&

соwith

триггер 17 готовности контроллера пр мого доступа к пам ти, триггер 18 готовности, триггер 19 блокировки пам ти, триггер 20 сброса, триггер 21 запроса прерывани , триггер 22 запроса захвата, первую группу 23 трехстабильных ключей, регистр-защелку 24 старшего байта адреса, контроллер 25 пр мого доступа к пам ти (ПДП), п тый элемент И 26, вторую группу 27трехстабильных ключей, блок 28 выходных данных и режимов отладки, приемопередатчики 29 последовательного канала ИРПС, третью и четвертую группы 30, 31 трехстабильных ключей, дешифратор 32 адреса. На шине ШУ1 показаны следующие сигналы: 33 - сигнал чтени , 34 - сигнал выбора ПЗУ 1, 35 - сигнал пам ть устройства ввода вывода, 36 - сигнал выбора блока 2,37 - сигнал записи, 38 - сигнал выбора блока 3, 3, 39 - сигнал выбора блока 4,40 - сигнал тактова  частота контроллера, последовательного интерфейса , 41 - запрос прерывани  обслуживани  режима пр мого доступа к пам ти, 42 -тактова  частота, 43 - сброс, 44 - запрос прерывани  конца обмена в режиме пр мого доступа к пам ти, 45 - запрос прерывани  по передаче в отладочную микроэвм, 46 - запрос прерывани  по приему информации от отладочной м кроЭВМ, 47 - запрос прерывани  дл  режима программировани  ППЗУ.1, 48 - сигнал выбора контроллера 25 ПДП, 49 - сигнал выбора контроллера 29 ИРПС, 50 - сигнал выбора блока 28, 51 сигнал установки триггера 16 запроса пр мого доступа, 52 - сигнал установки триггера готовности ПДП, 53 - сигнал установки триггера готовности 18. Кроме внутренней шины ШУ1 устройство отладки имеет внутренние шину данных ШД1 54 и шину адреса ША1 55, а также внешние шины адреса ША2, 56, данных ЩД2 57 и управлени  ШУ2 дл  подключени  к отлаживаемому микропроцессорному устройству. На ШУ2 показаны следующие сигналы: сигнал Чтение пам ти 58, сигнал Признак команд ввода/вывода 59, сигнал Подтверждение прерывани  60, синхросигнал Начало цикла 61, сигнал Тактова  частота 62, сигнал Готовность 62, сигла Блокировка пам ти 64, сигнал Сброс 65, сигнал Запись пам ти 66, сигнал Запрос прерывани  67; сигнал Запрос захвата 68, сигнал Подтверждение захвата 69.read-only trigger 17 of the direct memory access controller, standby trigger 18, lock memory trigger 19, reset trigger 20, interrupt request trigger 21, capture request trigger 22, the first group of 23 three-stable keys, latch register 24 high address bytes, the controller 25 direct memory access (DMA), fifth element 26, second group of three stable keys, block 28 of output data and debug modes, transceivers 29 of the IRPS serial channel, third and fourth groups 30, 31 of three stable keys, address decoder 32. The following signals are shown on bus SHU1: 33 — read signal, 34 — ROM select signal 1, 35 — memory signal of the output input device, 36 — block select signal 2.37 — write signal, 38 — block select signal 3, 3, 39 - block selection signal 4.40 - signal clock frequency of the controller, serial interface, 41 - interrupt request for direct memory access, 42 - clock frequency, 43 - reset, 44 - interrupt end request in direct access mode memory, 45 - interrupt request for transmission to the debug microcomputer, 46 - interrupt request for receiving inform from the debugging microcomputer, 47 — interrupt request for the programming mode of the EEPROM. 1, 48 — select signal of the controller 25 of the DAC, 49 — select signal of the controller 29 IRPS, 50 — select signal of the block 28, 51 set the trigger signal 16 of the direct access request, 52 — signal for setting the ready-for-ready trigger; 53 — signal for setting the ready-for-trigger 18. In addition to the internal bus ШУ1, the debugging device has an internal data bus ШД1 54 and an address bus ША1 55, as well as external buses for the address ША2, 56, data ЩД2 57, and control ШУ2 for connections to debugged microprocessor oystvu. On SHU2 the following signals are shown: signal Read memory 58, signal Sign of input / output commands 59, signal Interrupt confirmation 60, clock signal Start of cycle 61, signal Clock frequency 62, signal Ready 62, signal Memory lock 64, signal Reset 65, signal Memory record 66, interrupt request signal 67; Signal Capture Request 68, Signal Capture Confirmation 69.

На внутренней шине устройства показаны следующие сигналы: Установка по- циклового режима 70, Установка режима останова по заданному адресу 71, Установка запроса прерывани  72, УстановкаThe following signals are shown on the internal bus of the device: Setting the cyclic mode 70, Setting the stop mode at the specified address 71, Setting the interrupt request 72, Setting

сброса 73, Установка блокировки пам ти 74, Загрузка ОЗУ 75, Установка пр мого доступа к пам ти 76, Программирование ППЗУ 77, Требование захвата 78,3аписьreset 73, Set memory lock 74, Load RAM 75, Set direct access to memory 76, Program EPROM 77, Require capture 78.3 record

ППЗУ 79, Запрет выдачи 80.EEPROM 79, Prohibition of Extradition 80.

Св зь устройства с управл ющей мик- роЭВМ осуществл етс  в ранге интерфейса ИРПС 81.The communication device with the control microcomputer is implemented in the rank of interface IRPS 81.

ПЗУ 1 и микропроцессор 5 предназначе ны дл  обработки информационного потока.ROM 1 and microprocessor 5 are designed to process the information stream.

содержащего команды управлени  адреса иcontaining address control commands and

данных и поступающие из управл ющейdata and coming from the manager

микроэвм в соответствии с заданным жимом работы, задаваемым оператором на клавиатуре терминала. В качестве микропроцессорного элемента может быть использован элемент 1821 ВМ 85. Приемопередатчик 29 последовательногоa microcomputer in accordance with a predetermined bench press set by the operator on the terminal keyboard. As a microprocessor element can be used element 1821 BM 85. The transceiver 29 serial

Q канала предназначен дл  св зи устройства отладки с управл ющей микроЭВМ и может быть реализован на базе 580 ВВ 51. Дешифратор микроЭВМ и может быть реализован на базе 580 В В 51. Дешифратор 32 предназ5 начен дл  выбора программно-управл емых элементов устройства.The Q channel is intended for communication of a debugging device with a control microcomputer and can be implemented on the basis of 580 V 51. The microcomputer decoder can be implemented on the basis of 580 V 51. The decoder 32 is designed to select programmatically controlled elements of the device.

Блок 2 со встроенным таймером и ОЗУ предназначен дл  чтени  адреса отлаживаемого устройства и фиксации прохождени Block 2 with a built-in timer and RAM is designed to read the address of the debugged device and fix the passage

0 отлаживаемой программы через заданный адрес с формированием управл ющего сигнала останова по данному адресу в режиме поиска-ожидани . Блок 3 предназначен дл  задани  адреса сравнени  и формировани 0 of the program being debugged through the specified address with the formation of a control stop signal at this address in the search-wait mode. Block 3 is designed to specify the address of comparison and formation

5 двух управл ющих сигналов останов по командам ввода/вывода, останов по прерывани м . Блок 4 со встроенным таймерам и ОЗУ предназначен дл  чтени  данных отлаживаемого устройства, формированию слу0 жебных управл ющих сигналов и тактовой частоты блока 29. Блок 28 со встроенным таймером и ОЗУ предназначен дл  выдачи информации на ШД2, формированиюуправ- л ющих сигналов и запроса прерывани 5 two control signals stop by input / output commands, stop by interrupt. Block 4 with built-in timers and RAM is designed to read the data of the debugged device, generate service control signals and the clock frequency of block 29. Block 28 with a built-in timer and RAM is used to output information to SD2, generate control signals and interrupt request

5 при работе в работе в режиме программировани  ППЗУ. В качестве блоков 2, 3, 4, 28 используем БИС 1821 Р.У55. Ключи 30. 31 с третьим состо нием предназначен дл  сопр жени  блока 25 с ШУ1 и ША1. Ключ 27 с5 when operating in operation in an EPROM programming mode. As blocks 2, 3, 4, 28 we use LSI 1821 R.U55. The keys 30. 31 with the third state are intended for pairing the block 25 with ШУ1 and ША1. Key 27 s

™ третьим состо нием обеспечивает подключение блока 28 к ШД2. Элемент И 25 транслирует тэктовую.частоту 42 на счетный вход таймера программировани  ПЗУ, вход щего в состав блока 28. Элементы И 6,7 схемы сравнени  8, элемент ИЛИ 14, триггер 18 готовности предназначен дл  формировани  управл ющего сигнала готовность 63 а зависимости от выбранного режима отладки . Шинные формирователи 9, 10 предназ5™ the third state provides the connection of block 28 to SD2. Element And 25 translates the text. Frequency 42 to the counting input of the ROM programming timer, which is part of block 28. Elements And 6.7 of the comparison circuit 8, element OR 14, ready trigger 18 is used to generate a ready signal 63 and depending on the selected debug mode. Tire formers 9, 10 for purpose5

начены дл  сопр жени  ШД1 и ША1 с ОЗУ 15. Мультиплексор 11 управл ет подключением ОЗУ 15 либо к ША1, ШД1. ШУ1, либо к ША2.ЩД2.ДУ2.started to interface SD1 and ША1 with RAM 15. Multiplexer 11 controls the connection of RAM 15 to either ША1, ШД1. SHU1, or SHA2.SCHD2.DU2.

Контроллер 25 ПДП предназначен дл  организации обмена информацией между управл ющей микроЭВМ и отлаживаемым устройством. В качестве блока 25 используетс  БИС ПДП 580 ВТ 57. Элемент И 13 управл ет триггером готовности 1.7 контроллера ПДП 25. Регистр 24 защелкивает старший байт адреса, формируемый контроллером 25 и выдает его на ША2. Триггер 16 запроса пр мого доступа запускает контроллер 25 в режимах обмена по пр мому доступу к пам ти. Ключ 23 с третьим состо нием выставл ет на ШУ2 младший байт адреса. Триггеры 19, 20, 21, 22 предназначены дл  формировани  сигналов управлени  сброс, блокировка пам ти, запрос прерывани , запрос отлаживаемой микро- ЭВМ. В качестве триггеров могут быть использованы D-триггеры.The DAC controller 25 is designed to organize the exchange of information between the host microcomputer and the device being debugged. As a block 25, an LSI DAC 580 BT 57 is used. The And 13 element controls the availability trigger 1.7 of the DAP controller 25. Register 24 latches the high byte of the address generated by the controller 25 and provides it to ША2. The direct access request trigger 16 starts the controller 25 in the direct access memory exchange modes. The key 23 with the third state sets on LS2 the low byte of the address. Triggers 19, 20, 21, 22 are designed to generate control signals reset, memory lock, interrupt request, debug micro-computer request. As triggers, D triggers can be used.

Устройство в процессе отладки программ обеспечивает следующие режимы работы:The device in the process of debugging programs provides the following modes of operation:

отладка 8-разр дных микропроцессорных устройств; .debugging 8-bit microprocessor devices; .

отладка 16-разр дных микропроцессорных устройств;debugging 16-bit microprocessor devices;

обмен информацией между управл ющей микроЭВМ и отлаживаемым устройством в режиме ПДП;information exchange between the control microcomputer and the debugged device in the RAP mode;

работа с отладочным ОЗУ;work with debugging RAM;

программирование ПЗУ микропроцессорных устройств;programming ROM microprocessor devices;

сброс отлаживаемых микроЭВМ и их запуск;resetting debugged microcomputers and their launch;

пошаговое выполнение программ;step-by-step program execution;

останов программы по заданному адресу и количеству циклов;program stop at a given address and number of cycles;

останов по прерыванию, возникающему в отлаживаемом микропроцессорном устройстве;interrupt stopping occurring in a debugged microprocessor device;

останов по командам ВВОД или ВЫВОД;stopping by the ENTER or EXIT commands;

блокировка пам ти отлаживаемого микропроцессорного устройства;blocking the memory of the debugged microprocessor device;

прерывание отлаживаемого микропроцессорного устройстаа, задаваемое через устройство отладки.interruption of the debugged microprocessor device specified through the debugging device.

Режимы работы задаютс  программно отладочной микроЭВМ через блоки 4 и 28. Работа устройства начинаетс  с его начальной установки посредством сигнала СБРОС 65 шины ШУ2, подаваемого из отладочной микроЭВМ.The operating modes are set by the program debug microcomputer via blocks 4 and 28. The operation of the device begins with its initial installation by means of the RESET signal 65 of bus ШУ2 supplied from the debug microcomputer.

55

00

Этап выбора и назначени  устройств осуществл етс  пользователем, который программно определ ет на каком из п системных рангов ИРПС будет осуществл тьс The stage of selecting and assigning devices is carried out by a user who determines on which of the p system ranks the IRPS will be implemented

сопр жение управл ющей микроЭВМ с устройством отладки (фиг.1). Этап загрузки отлаживаемых программ в пам ть микропроцессорных устройств производитс  посредством управл ющей программыthe interface of the control microcomputer with the debugging device (Fig. 1). The step of loading debugged programs into the memory of microprocessor devices is carried out by means of a control program

отладочной микроЭВМ. В данном случае устройство отладки по рангу ИРПС приемопередатчиком 29 последовательного канала принимает команду управлени , формат которой определ ет режим работы, а также начальный и конечный адрес загружаемой зоны пам ти отлаживаемого устройства. По заполнению выходного буфера, приемопередатчик 29 вырабатывает сигнал готовность приема R X RDY, который  вл етс  сигналом запроса прерывани  46 микро- процессора 5. Микропроцессор 5 переходит на подпрограмму обработки запроса 46, считывает входной регистр приемопередат5 чика 29 и в соответствии с информацией команды управлени  осуществл ет настройку программно-управл емых блоков 4, 28 и контроллера 25 ПДП. Одновременно . процессор 5 устанавливает в единичное соо сто ние сигнал установка пр мого доступа к пам ти 76, разблокиру  тем самым триггер 16 ПДП. По завершению процесса настройки устройства отладки на режим загрузки, по каналу ИРПС передаютс  дан5 ные, которые необходимо загрузить в ОЗУ отлаживаемого устройства. Когда байт данных прин т приемопередатчиком 29, формируетс  запрос прерывани  46, микропроцессор 5 переходит на подпрог0 рамму обработки информации, считывает в аккумул тор содержимое приемопередатчика 29 и посылает байт данных в порт А блока 28, где он защелкиваетс . Затем по команде ВЫВОД микропроцессора 5 фор5 мируетс  управл ющий сигнал 51 установ- китриггера 16 ПДП, который своим выходом переводит вход запроса пр мого доступа контроллера ПДП 25 в активное состо ние. В ответ на поступление запроса пр могоdebug microcomputer. In this case, the debugging device according to the IRPS rank by the transceiver 29 of the serial channel receives a control command, the format of which determines the operating mode, as well as the starting and ending address of the loaded memory zone of the debugged device. When the output buffer is full, the transceiver 29 generates an RX RDY ready signal, which is an interrupt request signal 46 of the microprocessor 5. The microprocessor 5 switches to the request processing subroutine 46, reads the input register of the transceiver 5 and, in accordance with the control command information, performs setting program-controlled blocks 4, 28 and controller 25 of the RAP. At the same time. the processor 5 sets the signal to a single state setting direct access to the memory 76, thereby unlocking the RAP trigger 16. Upon completion of the process of setting up the debugging device for boot mode, data are transmitted via the IRPS channel, which must be loaded into the RAM of the device being debugged. When the data byte is received by the transceiver 29, an interrupt request 46 is generated, the microprocessor 5 switches to the information processing subroutine, reads the contents of the transceiver 29 into the accumulator, and sends the data byte to port A of block 28, where it latches. Then, by the command OUTPUT of the microprocessor 5, a control signal 51 is set to set the PDP trigger 16, which, by its output, transfers the direct access request input of the PDP controller 25 to the active state. In response to a direct request

0 доступа DRQ контроллер 25 ПДП формирует сигнал HOLD запрос-захвата, который подаетс  на Д-вход 22 и тактируетс  частотой 62. Триггер 22 переходит в другое устойчивое состо ние и формирует на ШУ 2 сигнал0 access DRQ controller 25 DAP generates a HOLD signal request-capture, which is supplied to the D-input 22 and is clocked at a frequency of 62. The trigger 22 switches to another stable state and generates a signal on the SHU 2

° запрос захвата 68. Микропроцессор отлаживаемого устройства переходит в третье . состо ние и отвечает сигналом подтверждение захвата 69, поступающим на соответствующий вход контроллера ПДП 25 и° capture request 68. The microprocessor of the debugged device goes into the third. state and responds with a capture confirmation signal 69, received at the corresponding input of the DAC controller 25 and

перевод щим в третье состо ние ключи 30 и 31, через .Которые проход т сигналы записи 37, чтени  33 и младший байт адреса 55 от микропроцессора 5 при настройке контроллера на требуемый режим работы. Одновременно сигнал подтверждение захвата 69 открывает ключ 27, и выходные данные, записанные в порт А блока 28 поступают на ЩД2, а контроллер 25 ПДП формирует сигнал строб адреса AS по переднему фронту которого в регистр 24 адреса записываетс  старший байт адреса и разрешение адреса AEN, который открываетс  регистр 24 и элемент 23. Таким образом , на ША 2 будет установлен адрес загружаемого ОЗУ. Кроме этого передним фронтом строба адреса AS опрокидываетс  триггер 16 и активный уровень сигнала запроса доступа DRQ снимаетс  с соответствующего входа контроллера 25. Затем в соответствии с алгоритмом функционировани  контроллер 25 при выставленных адресах и данных на LUA2 и ШД2 формирует сигнал Запись пам ти 66 на ШУ2. Таким образом происходит единичный цикл данных в ОЗУ отлаживаемого устройства. Контроллер 25 ждет прихода следующего байта данных по каналу ИРПС 81, когда оп ть будет выработан запрос прерывани  46 и микропроцессор 5 взведет триггер 16. Использование триггера 16 позвол ет синхронизировать по времени относительно медленный по времени обмен по ИРПС и быстродействующий режим ПДП. Скорость обмена управл ющей микроЭВМ и отлаживаемого устройства1 будет определ тьс  параметрами канала ИРПС 81. Временна  диаграмма функционировани  в режиме записи информации в пам ть отлаживаемого устройства представлена на фиг.З.turning the keys 30 and 31 into the third state, through which the write signals 37, read 33 and the low byte of address 55 from the microprocessor 5 pass when the controller is configured for the required operating mode. At the same time, the capture confirmation signal 69 opens the key 27, and the output data written to the port A of block 28 is sent to ЩД2, and the DAC controller 25 generates a signal of the address AS gate along the leading edge of which the address high byte and address resolution AEN are written, which register 24 and element 23 are opened. Thus, the address of the loadable RAM will be set on STA 2. In addition, the trigger 16 overturns by the leading edge of the address AS gate and the active level of the access request signal DRQ is removed from the corresponding input of the controller 25. Then, in accordance with the operating algorithm, the controller 25 generates a signal Write memory 66 to the control panel 2 at the set addresses and data on LUA2 and ST2. Thus, a single data cycle occurs in the RAM of the device being debugged. The controller 25 waits for the next byte of data to arrive on the IRPS channel 81, when the interrupt request 46 is again generated and the microprocessor 5 cocks the trigger 16. Using the trigger 16 allows synchronizing the relatively slow time by the IRPS exchange and the high-speed RAP mode. The exchange rate of the control microcomputer and the device being debugged 1 will be determined by the parameters of the IRPS channel 81. The timing diagram of the operation in the mode of recording information in the memory of the device being debugged is shown in FIG.

Передача информации из пам ти отлаживаемого устройства в ведущую микро- ЭВМ осуществл етс  под действием управл ющей программы. При этом устройство отладки по каналу ИРПС приемопередатчиком 29 принимает команду управлени , формат которой определ ет режим работы, а также начальный и конечный адрес пам ти отлаживаемого устройства.Information from the memory of the device being debugged to the host microcomputer is transmitted under the control program. At the same time, the debugging device via the IRPS channel by the transceiver 29 receives a control command, the format of which determines the operating mode, as well as the starting and ending memory addresses of the device being debugged.

По Приему приемопередатчиком 29 команды управлени  формируетс  запрос прерывани  46. Микропроцессор 5 переходит на подпрограмму обработки запроса прерывани  46, считывает входной регистр приемопередатчика 29 и в соответствии с содержимым команды управлени  осуществл ет настройку блоков 4,28 и контроллера 25 ПДП на режим чтени  пам ти, причемUpon receipt of the control command by the transceiver 29, an interrupt request 46 is generated. The microprocessor 5 switches to the interrupt request processing routine 46, reads the input register of the transceiver 29, and, in accordance with the contents of the control command, sets the 4.28 blocks and the DAC controller 25 to the memory reading mode. moreover

порт А блока 4 настраиваетс  на режим стробируемого чтени , когда входна - информаци  защелкиваетс  во входном буфере по переднему фронту сигнала чтени port A of block 4 is configured for gated read mode when the input information is latched in the input buffer along the leading edge of the read signal

пам ти 58. Кроме того, микропроцессор 5 устанавливает в единичное состо ние сигнал установка пр мого доступа в пам ти 76 и сигнал запрет выдачи 80, который в состо нии захвата ША2, ШД2. и ШУ2 блокирует передачу содержимого блока 28 через ключ 27. Затем микропроцессор 5 по команде ВЫВОД настраивает приемопередатчик 29 на режим передачи, при этом формируетс  сигнал готовности передачи Т X RDY, который  вл етс  запросом прерывани  45. При его по влении происходит переход на соответствующую подпрограмму, в кото- рой по команде ВЫВОД формируетс  управл ющий сигнал 51 установки триггера 16 запроса ПДП. Триггер 16 своим выходом переводит в активное состо ние вход DRQ запроса пр мого доступа контроллера 25 ПДП. Затем контроллер 25 ДПД формируетmemory 58. In addition, the microprocessor 5 sets to a single state the direct access setting signal in the memory 76 and the prohibition signal 80, which is in the capture state ША2, ШД2. and ШУ2 blocks the transfer of the contents of block 28 through the key 27. Then, on the OUTPUT command, the microprocessor 5 sets the transceiver 29 to the transmission mode, and a transmit ready signal T X RDY is generated, which is an interrupt request 45. When it appears, a transition to the corresponding subprogram occurs in which, on the OUTPUT command, a control signal 51 for setting the trigger 16 of the RAP request is generated. The trigger 16, by its output, puts the DRQ input of the direct access request of the DAC controller 25 into active state. Then the controller 25 DPD forms

сигнал ЗАПРОС захвата HOLD, который подаетс  на D вход триггера 22 захвата и тактируетс  частотой 62. Триггер 22 переходит в другое устойчивое состо ние информирует на ШУ2 сигнал запрос захвата 68.The HOLD REQUEST signal HOLD, which is supplied to the D input of the capture trigger 22 and is clocked at a frequency of 62. The trigger 22 switches to another stable state and informs the capture request signal 68 on the control unit 2.

Микропроцессор 5 отлаживаемого устройства переходит в третье состо ние и отвечает сигналом подтверждение захвата 69, поступающим на контроллер 25 ПДП и перевод щим в третье состо ние ключи 30 иThe microprocessor 5 of the device being debugged goes into the third state and responds with a capture confirmation signal 69, which is sent to the DAC controller 25 and switches the keys 30 to the third state

31. через которые поступают управл ющие сигналы 37,33 и младший байт адреса 55 от микропроцессора при настройке контроллера 25 ПДП на данный режим работы. В соответствии с алгоритмом функционировани  контроллер 25 ПДП формирует сигнал AS строб адреса, по переднему фронту которого в блок 4 записываетс  старший байт адреса и AEN разрешение адреса, которым открываетс  регистр 24 и элемент 23. Таким31. through which control signals 37.33 and the low byte of address 55 from the microprocessor are received when the controller 25 of the DAC is configured for this operating mode. In accordance with the functioning algorithm, the DAC controller 25 generates an AS gate address signal, on the leading edge of which the high byte of the address and AEN address resolution, which opens register 24 and element 23, are written in block 4.

образом на ША2 будет установлен адрес считываемого ОЗУ. Затем контроллер 25 устанавливает сигнал чтение пам ти 58 на ШУ2 и его задним фронтом в блок 4 защелкиваютс  данные с ШД2. Блок 4 выставл етThus, the address of the RAM being read will be set on SHA2. Then, the controller 25 sets the read signal of the memory 58 to the control unit 2 and, with its trailing edge, the data from the SD2 is latched into block 4. Block 4 sets

запрос прерывани  41, по которому микропроцессор считывает соответствующий порт, выполн   команду ВВОД, и по команде ВЫВОД байт данных записывает в приемопередатчик 29 и принимает от негоinterrupt request 41, by which the microprocessor reads the corresponding port, executing the ENTER command, and by the command EXIT, the data byte is written to the transceiver 29 and received from it

сигнал готовность передачи Т X RDY, который  вл етс  запросом прерывани  45, по которому начинаетс  очередной цикл чтени  пам ти отлаживаемого устройства. Конец обмена, характеризуемый обращениемsignal readiness for transmission T X RDY, which is an interrupt request 45, by which the next read cycle of the memory of the device being debugged begins. End of exchange characterized by circulation

к последнему адресу пам ти отлаживаемого устройства, сопровождаетс  формированием соответствующего сигнала ТС, который подаетс  на один из входов 44 запроса прерывани . Поэтому запросу44 микропроцессор 5 выходит из программы обмена по каналу пр мого доступа. Временна  диаграмма функционировани  в режиме чтени  информации из пам ти отлаживаемого устройства представлена на фиг.4.to the last memory address of the device being debugged, it is accompanied by the formation of the corresponding TC signal, which is supplied to one of the interrupt request inputs 44. Therefore, by request44, microprocessor 5 exits the exchange program via the direct access channel. The timing diagram of the operation in the mode of reading information from the memory of the debugged device is presented in Fig. 4.

Следующий после загрузки этап прогона программы осуществл етс  либо в непрерывном режиме, либо по шагам. Пользователь с клавиатуры видеотерминала набирает соответствующую отладочную директиву, котора  представл етс  определенной командой управлени , передаваемой в устройство отладки по каналу ИРПС 81 и обрабатываетс  микропроцессором 5 . Требуемый режим работы определ етс  состо нием порта С блока 4, запись информации в который производитс  по сигналу 37. В этом случае внутренний управл ющий сигнал 74, поступающий на Д-вход триггера 19 блокировки пам ти и сигнала 73, поступающий на Д-вход триггера 20 сброса обеспечивают сигналы блокировка пам ти 64 и сброс 65 уровн  лог.О, В случае непрерывного режима работы в порте С блока 4 устанавливаютс  в состо ние лог. О сигналы 70, 71 и два разр да порта С блока 3, поступающие на элементы И6 и И7, в результате чего с выхода элемента ИЛИ 14 на Д-вход триггера готовности поступает лог. О и формируетс  единичный сигнал ШУ2 -63 готовность.The next step after downloading the program run is carried out either in continuous mode or in steps. The user from the keyboard of the video terminal dials the appropriate debugging directive, which is represented by a specific control command transmitted to the debugging device via the IRPS channel 81 and processed by microprocessor 5. The required mode of operation is determined by the state of port C of block 4, the information is recorded to it by signal 37. In this case, the internal control signal 74, which is received at the D-input of the trigger 19 of the memory lock and signal 73, is received at the D-input of the trigger 20 reset provide signals blocking memory 64 and reset 65 log level. O, In the case of continuous operation in port C of block 4 are set to log. О signals 70, 71 and two bits of port C of block 3, received by the I6 and I7 elements, as a result of which a log is sent from the output of the OR 14 element to the D-input of the ready trigger. About and a single signal SHU2 -63 readiness is formed.

При работе в режиме выполнени  отлаживаемой программы по шагам устанавливаетс  в единичное состо ние сигнал 70, который через элемент ИЛИ 14 поступает на Д-вход триггера 18. На С-вход поступает сигнал 61 - начало цикла. В результате формируетс  нулевой сигнал готовность 63. После чего отлаживаемое устройство переходит в состо ние ожидани , на ШД2 и ША2 будут находитьс  текущие значени  данных и адресов. Микропроцессор 5 по команде ВВОД считывает блок 2 адреса и порты А и В блока данных 4, а затем через приемопередатчик 29 передает их содержимое в управл ющую микроЭВМ. Прогон отлаживаемой программы на шаг осуществл етс  установкой триггера 18 готовности в единичное состо ние путем подачи управл ющего сигнала 53 на Р вход.When working in the mode of execution of the debugged program, the signal 70 is set to a single state, which, through the OR element 14, enters the D-input of the trigger 18. A signal 61 is received at the C-input - the beginning of the cycle. As a result, a ready signal 63 is generated. After which the device being debugged enters the standby state, the current data and address values will be located on SD2 and ША2. The microprocessor 5, on the ENTER command, reads the address block 2 and ports A and B of the data block 4, and then transmits their contents through the transceiver 29 to the control microcomputer. Running the program being debugged per step is carried out by setting the ready trigger 18 to a single state by supplying a control signal 53 to the P input.

Функционирование устройства в режиме прогона рабочих программ с признаком останова определ етс  установкой в едиThe operation of the device in the run mode of work programs with a stop sign is determined by setting to

ничное состо ние сигналов 71 - задание режима останов по адресу, задание режима останов по прерывани м (поступает с порта 6 блока 2 на элемент 6), задание ре- жима останов по командам ВВОД и ВЫВОД (поступает с порта С блока 2 на элемент 7).Native state of signals 71 - setting the stop mode to address, setting the stop mode by interrupt (received from port 6 of block 2 to element 6), setting the stop mode by the ENTER and OUTPUT commands (received from port C of block 2 to element 7 )

При отладке рабочих программ с остановом по командам ВВОД и ВЫВОД устанавливетс  в единичное состо ние бит порта С блока 2, поступающий на первый вход элемента И 7. На второй входэлемен-о та И 7 поступает сигнал ШУ2 59, признак команд ВВОДА/ВЫВОДА. Выход элементаWhen debugging work programs with a stop by the ENTER and OUTPUT commands, the bit of port C of block 2 is sent to the single state, which is received at the first input of the And 7. element. At the second input of the And 7 element, the signal SHU2 59 receives, a sign of the I / O commands. Item output

«у| ч соединен с одним из четырех входов элемента ИЛИ 14, на выходе которого будет установлен уровень лог. 1 при наличии в отлаживаемой программе команд ВВОДА и ВЫВОДА. В этом случае на Д-вход триггера готовности 18 поступает лог. Г и по приходу управл ющего сигнала ШУ2 61 начало команды на С-вход триггера 18 будет сформирован сигнал готовность 63 с уровнем лог. О. Отлаживаемое устройство переходит в состо ние ожидани . На ША2 будет установлен адрес устройства ввода/вывода , на ШД2 считываемые или запи- сываемые во внешнее устройство данные, в«At | h connected to one of the four inputs of the element OR 14, the output of which will be set to the level of the log. 1 if there are INPUT and OUTPUT commands in the debugged program. In this case, a log is sent to the D-input of the ready trigger 18. Г and upon the arrival of the control signal ШУ2 61 the beginning of the command to the С-input of the trigger 18, a signal of readiness 63 with a log level will be generated. A. The device being debugged enters a standby state. On ША2 the address of the input / output device will be set, on ШД2 data read or written to the external device, in

зависимости от того, как выполн етс  команда ВВОД или ВЫВОД.depending on how the INPUT or OUTPUT command is executed.

Затем микропроцессор 5 по команде ВВОД считывает ШД2 и ША2 соответственно через блоки 2, 4 и через приемопередатчик 29 передает их в управл ющую микроЭВМ. Пуск программы после останова осуществл етс  переустановкой триггера 18 готовности управл ющим сигналом 53. При отладке рабочих программ в режиме останов по прерывани м устанавливаетс  в единичное состо ние бит порта С регистра, поступающий на первый вход элемента И 6. На второй вход этого элемента поступает сигнал ШУ2 60 подтверждениеThen, the microprocessor 5, on the ENTER command, reads ШД2 and ША2, respectively, through blocks 2, 4 and, through the transceiver 29, transfers them to the control microcomputer. The start of the program after stopping is carried out by reinstalling the ready trigger 18 by the control signal 53. When debugging work programs in the stop-by-break mode, the bit of the port C of the register is input to the first state of the element And 6. The second input of this element receives a signal SHU2 60 confirmation

прерывани . Выход элемента И 6 соединен с одним из четырех входов элемента ИЛИ 14, на выходе которого будет установлен уровень лог. 1 при наличии в отлаживаемой программе подтверждени interruptions. The output of the AND 6 element is connected to one of the four inputs of the OR element 14, at the output of which the log level will be set. 1 if there is confirmation in the debugged program

прерывани . В этом случае на Д-вход триггера готовности 18 поступает лог. 1й и по приходу управл ющего сигнала ШУ2 61 начало команды на С-вход триггера будет сформирован сигнал 63 готовность с уровнем лог. О. Отлаживаемое устройство переходит в состо ни-э ожидани . На ША2 будет находитьс  адрес возврата в отлаживаемую программу по завершению обработки прерываний, на ШД2 - код командыinterruptions. In this case, a log is sent to the D-input of the ready trigger 18. 1st and upon the arrival of the control signal ШУ2 61 the beginning of the command to the C-input of the trigger, a signal 63 will be generated ready with a level of log. A. The device being debugged enters a standby state. On ША2 there will be an address of return to the debugged program upon completion of interrupt processing, on ШД2 - the command code

RESTART, определ ющий вектор прерываний . Считывание шин ШД2 и ША2 производитс  так же, как ив цикле ВВОД и ВЫВОД.RESTART defining an interrupt vector. Reading tires ШД2 and ША2 is performed in the same way as in the INPUT and OUTPUT cycle.

При отладке рабочих программ в режи- ме останов по адресу микропроцессорное устройство переходит в состо ние ожидани , когда отлаживаема  программа проходит через заданный дрес останова требуемое количество циклов, Дл  этой це- ли по каналу ИРПС 81 микропроцессор 5 принимает информацию, содержащую тип режима отладки (в данном случае останов по адресу, адрес останова и количество цик- лов). Затем по команде ВВОД осуществл - етс  запись в блок 3 адреса останова, а его встроенный таймер настраиваетс  на требуемое количество циклов прохождени  заданного адреса. Запуск режима осуществл етс  установкой в единичное состо ние управл ющего сигнала 71 установка режима останова по заданному адресу блока 4. В этом случае открываетс  схема сравнени  8, котора  осуществл ет сравне- ние адреса останова, записанного в блок 3, с текущим значением ША2. В случае совпадени  адресов схема 8 вырабатывает сигнал равенства. Выход элемента 8 соединен со счетным входом вычитани  таймера блока 2, Когда значение таймера станет нулевым, т.е. программа пройдет заданное количество цикло, формируетс  сигнал переноса, ко- торый поступает на один из входов элемента ИЛИ 14, а выход элемента ИЛИ 14 св зан с Д-входом триггера готовности 18. Таким образом, на Д-входе триггера 18 по витс  логическа  единица при условии нулевого значени  таймера блока 2. Триггер готовности 18 сформирует сигнал готов- ность 63 по переднему фронту сигнала 61 начала команды, идущего на С-вход. Процессор отлаживаемого устройства перейдет в состо ние ожидани . На ША2 будет находитьс  адрес останова, на ШД2 соответст- вующие этому адресу данные. Считывание шин микроЭВМ производитс  так же, как и в предыдущих режимах работы с остановом.When debugging work programs in the stop mode at the address, the microprocessor device enters the standby state when the program being debugged passes through the specified stop address the required number of cycles. For this purpose, the microprocessor 5 receives information containing the type of debug mode via the IRPS channel 81 in this case, stop at address, stop address and number of cycles). Then, by the ENTER command, a stop address is written to block 3, and its built-in timer is set to the required number of cycles for passing the given address. The mode is started by setting the control signal 71 to a single state, setting the stop mode to the given address of block 4. In this case, a comparison circuit 8 is opened, which compares the stop address recorded in block 3 with the current value ША2. If the addresses match, circuit 8 generates an equal signal. The output of element 8 is connected to the counting input of the subtraction of the timer of block 2, when the timer value becomes zero, i.e. the program will go through a predetermined number of cycles, a transfer signal is generated, which is fed to one of the inputs of the OR element 14, and the output of the OR element 14 is connected to the D-input of the ready trigger 18. Thus, the logical unit at the D-input of the trigger 18 provided that the timer of block 2 is zero. The ready trigger 18 will generate a ready signal 63 along the leading edge of the signal 61 of the beginning of the command going to the C input. The processor of the debugged device will go into a standby state. On SHA2 there will be a stop address, on SHA2 the data corresponding to this address. Microcomputer bus readings are performed in the same way as in previous shutdown modes.

Помимо формировани  сигнала готовность устройство может формировать сиг- нал 65 сброс, поступающий на отлаживаемую микроЭВМ. Дл  этого служит триггер 20. На Д-вход поступает управл ющий сигнал 73, который устанавливаетс  в состо ние логической единицы через соответствующий разр д порта М блока 4. На С-вход триггера 20 принимаетс  тактова  частота 62. Снимаетс  сброс подачей на Д-вход триггера 20 нулевого сигнала 73 по переднему фронту тактовой частоты 62.In addition to signal conditioning, the device can also generate a reset signal 65, which is received by the debugged microcomputer. To do this, trigger 20. The control signal 73 is received at the D-input, which is set to the logical unit state through the corresponding bit of port M of block 4. The clock frequency 62 is received at the C-input of trigger 20. The reset is removed by applying it to the D-input trigger 20 of the zero signal 73 on the leading edge of the clock frequency 62.

Применение триггера в схеме формировани  сброса необходимо дл  того, чтобы асинхронный сигнал, сформированный в порте С блока 4 был переведен к временной диаграмме работы отглаживаемой микро- ЭВМ. Дл  этой же цели синхронизации управл ющих сигналов 72, 76, 74 используютс  триггер 21 запроса прерывани , триггер запроса 22 захвата и триггер 19 блокировки пам ти.The use of a trigger in a reset formation circuit is necessary so that the asynchronous signal generated in port C of block 4 is transferred to the time diagram of the operation of the smoothed microcomputer. For the same purpose of synchronizing control signals 72, 76, 74, an interrupt request trigger 21, a capture request trigger 22, and a memory lock trigger 19 are used.

Помимо выше перечисленных, устройство отладки программ обеспечивает режим работы с отладочным ОЗУ 15, необходимость введени  которого обусловлена следующими причинами.In addition to the above, the program debugging device provides a mode of operation with debugging RAM 15, the necessity of which is due to the following reasons.

Отладка программного обеспечени  микропроцессорных устройств включает в себ  прогон программ в реальном масштабе времени и их корректировку по результатам выполнени  команд пам ти. Так как отлаживаемые устройства имеют в своем составе ПЗУ, то естественно вести отладку программ в области адресов ПЗУ не представл етс  возможным. Дл  обеспечени  работы в требуемой зоне адресов в устройстве имеетс  отладочное ОЗУ, в которое загружаетс  рабоча  программа из управл ющей микроЭВМ по каналу ИРПС 81, а затем это ОЗУ 15 переключаетс  на шины адреса, данных и управлени  микропроцессорного устройства и подаетс  сигнал блокировка пам ти 64. который отключает ПЗУ, место которой зан лоотла- дочное ОЗУ 15. При работе в режиме загрузки отладочного ОЗУ 15 микропроцессор 5 по каналу ИРПС 81 принимает команду управлени , содержащую тип режима работы и декодирует ее. Затем в соответствий с заданным режимом по команде ввод устанавливаетс  в единичное состо ние управл ющий сигнал 78 требование захвата путем обращени  к соответствующему биту порта С блока 28. Сигнал 78, поступает на S вход триггера запроса захвата 22, устанавливает в единичное состо ние сигнал 68 за- прос захвата , в результате чего микропроцессор отлаживаемого устройства переходит в состо ние захвата и отключаетс  от ША2 и ШД2, которые св заны с соответствующими входами отладочного ОЗУ 15. Следующей командой ВВОД устанавливаетс  в единичное состо ние управл ющий сигнал 75 загрузка ОЗУ, который открывает шинные формирователи данных 9 и адресов 10, подключа  таким образом ОЗУ 15 к внутренним шинам данных ШД1 иDebugging software for microprocessor devices involves running programs in real time and adjusting them based on the results of memory commands. Since debugged devices have ROMs in their composition, it is natural to debug programs in the ROM address area is not possible. To ensure operation in the required address zone, the device has debugging RAM, into which the working program is loaded from the control microcomputer via the IRPS channel 81, and then this RAM 15 is switched to the address, data and control buses of the microprocessor device and a memory blocking signal 64 is supplied. which disables the ROM, the place of which is occupied by the debugging RAM 15. When operating in the boot mode of the debugging RAM 15, the microprocessor 5 receives the control command containing the type of operation mode and decodes it via the IRPS channel 81. Then, in accordance with the specified mode, the command sets the control signal 78 to the capture demand by entering the corresponding bit of the port C of block 28 in a single state. The signal 78, which is received at the S input of the capture request trigger 22, sets the signal 68 to - capture request, as a result of which the microprocessor of the device being debugged enters the capture state and disconnects from ША2 and ШД2, which are connected to the corresponding inputs of the debugging RAM 15. The next ENTER command is set to single state control signal loading RAM 75 which opens conditioners data bus 9 and the address 10, when connected in this way RAM 15 to the internal data buses and SHD1

адресов ША1. Этим же сигналом 75 мультиплексор 11 подключает к ОЗУ 15 старшие адреса ША1 и сигнал запись 37. Таким образом ОЗУ 15 подключаетс  к внутренним шинам ШД1, ША1 и ШУ1. Затем по каналу ИРПС 81 на приемопередатчик 29 поступает массив данных, которые необходимо загрузить в ОЗУ 15. Микропроцессор 5 по запросу прерывани  46 принимает поступающую информацию и формирует цикл записи ее в ОЗУ 15. Дл  того, чтобы в это врем  не произошло обращение к ОЗУ блоков , 2, 3, 4, 28 адресные пол  и ОЗУ 15 должны быть разнесены, По завершению обмена сигнал загрузка ОЗУ 75 снова устанавливаетс  в состо ние в состо ние логического нул , шинные формирователи 9, 10, переход т в третье состо ние и как следствие ША1 и ШД1 отключаютс  от ОЗУ 15, а мультиплексор 11 переключаетс  на ША2 и ШУ2. Таким образом отладочное ОЗУ будет подключено к микропроцессорному устройству . Дл  того, чтобы пользователь мог работать в данном режиме необходимо установить единичный сигнал 74 блокировка пам ти и нулевой сигнал запрос захвата 78 по команде ВЫВОД с обращением к порту С блока 28. В этом случае блокируетс  ПЗУ микропроцессорного устройства и микропроцессор отлаживаемого устройства выходит из захвата, а вместо ПЗУ подключаетс  ОЗУ 15.SHA1 addresses. By the same signal 75, the multiplexer 11 connects to the RAM 15 the senior addresses SHA1 and the write signal 37. Thus, the RAM 15 is connected to the internal buses SHD1, SHA1 and SHU1. Then, through the IRPS channel 81, the transceiver 29 receives an array of data that must be loaded into RAM 15. The microprocessor 5, upon interruption request 46, receives the incoming information and forms a write cycle to RAM 15. In order to prevent access to the RAM blocks at this time , 2, 3, 4, 28 the address fields and RAM 15 must be spaced apart. Upon completion of the exchange, the signal loading RAM 75 is again set to a logical zero state, bus drivers 9, 10 go into the third state and, as a result, ША1 and ШД1 are disconnected from RAM 15, and m ltipleksor 11 is switched on and SHA2 SHU2. Thus, the debugging RAM will be connected to the microprocessor device. In order for the user to work in this mode, it is necessary to set a single signal 74 memory lock and zero signal capture request 78 by the OUTPUT command with access to port C of block 28. In this case, the ROM of the microprocessor device is blocked and the microprocessor of the debugged device exits the capture, and instead of ROM, RAM 15 is connected.

Следующий этап после загрузки рабочих программ в пам ть отлаживаемого устройства , их прогона и корректировки заключаетс  в программировании ПЗУ с ультрафиолетовым стиранием. В этом случае устройство отладки по рангу ИРПС приемопередатчиком 29 последовательного канала принимает команду управлени , формат которой определ ет режим работы, а также начальный и конечный адрес программируемого ПЗУ и вырабатывает запрос прерывани  46, поступающий на соответствующий вход микропроцессора 5. Микропроцессор 5 переходит на подпрограмму обработки прерываний и в соответствии с кодом команды управлени  осуществл ет настройку программных блоков 4,328 и контроллера 25 ПДП. Затем производитс  настройка встроенного таймера блока 28 на временную задержку 50 мсек, необходимую выдержать дл  соблюдени  временной диаграммы программировани  ПЗУ с УФ стиранием .The next step, after loading the work programs into the memory of the device being debugged, running them and adjusting them, consists in programming the ROM with ultraviolet erasure. In this case, the debugging device according to the IRPS rank by the transceiver 29 of the serial channel receives a control command, the format of which determines the operating mode, as well as the start and end address of the programmable ROM and generates an interrupt request 46, which arrives at the corresponding input of microprocessor 5. Microprocessor 5 goes to the processing routine interrupts and, in accordance with the control command code, configures the 4.328 program blocks and the RAP controller 25. Then, the built-in timer of block 28 is tuned to a time delay of 50 ms, which must be maintained in order to comply with the programming timing of the UV-erased ROM.

После передачи по ИРПС команды управлени  и настройки устройства на режим программировани  осуществл етс  переAfter transmitting the control command and setting the device to the programming mode via the IRPS,

сылка массива данных из управл ющей мик- роЭВМ в ОЗУ блоков 4, 28. Затем микропроцессор , загрузив последний байт информации в п.ам ть, по команде ВЫВОД защелкивает первый байт в порт А блока 28 и устанавливает в состо ние логического нул  управл ющий сигнал 76 установка пр мого доступа к пам ти, блокиру  тем самым С вход триггера 16 запроса ПДП.sending an array of data from the control microcomputer to the RAM of blocks 4, 28. Then the microprocessor, having loaded the last byte of information into the memory, by the OUTPUT command latches the first byte into the port A of block 28 and sets the control signal to logic zero 76 setting direct access to the memory, thereby blocking the C input of the trigger 16 of the RAP request.

Следующей командой ВЫВОД формируетс  управл ющий сигнал 51, поступающий на S-вход триггера 16, который переводит вход запроса пр мого доступа DRQ контроллера 26 в активное состо ние. В ответ на поступление апроса пр мого доступа контроллер 25 формирует сигнал запрос захвата HOLD, который подаетс  на D-вход триггера 22 и тактируетс  частотой 62. Триггер 22 формирует на ШУ2 единичный сигнал 68 Запрос захвата. Микропроцессор отлаживаемого устройства отключаетс  от ШД2, ДА2, ШУ2 и отвечает сигналом подтзерждение захвата 69, поступающим на соответствующийThe next OUTPUT command generates a control signal 51, which is input to the S-input of flip-flop 16, which puts the direct-access request input DRQ of controller 26 into an active state. In response to the receipt of the direct access request, the controller 25 generates a HOLD capture request signal, which is supplied to the D-input of the trigger 22 and clocked at a frequency of 62. The trigger 22 generates a single capture request signal 68 to the controller. The microprocessor of the device being debugged is disconnected from ШД2, ДА2, ШУ2 and responds with a signal confirming capture 69, arriving at the corresponding

вход контроллера ПДП 25 и перевод щим в третье состо ние элементы 30,31, через которые проход т сигналы записи 37, чтение 33 и младший байт адреса 55 от микропро- цессора 5 при настройке контроллера наthe input of the DAC controller 25 and transferring to the third state the elements 30.31 through which the write signals 37, read 33 and the low byte of address 55 from microprocessor 5 pass when the controller is set to

требуемый режим работы.required operating mode.

Одновременно сигнал 69 подтверждение захвата открывает элемент 27 и байт данных, записанный в порте А блока 28 поступает на ШД2, а контроллер ПДП формиРУет сигналы AS строб адреса, по переднему фронту которого в регистр адреса 24 записываетс  старший байт адреса и сигнал AEN разрешение адреса, которым открываетс  регистр 24 и элементы 23. Таким образом на ША2 будет установлен адрес программируемого ПЗУ.At the same time, the capture confirmation signal 69 opens the element 27 and the data byte recorded in the port A of block 28 is sent to SD2, and the DAP controller generates the AS address strobe signals, on the leading edge of which the address high byte and the address resolution signal AEN are recorded, which register 24 and elements 23 are opened. Thus, the address of the programmable ROM will be set on SHA2.

Затем в соответствии с алгоритмом функционировани  контроллер при выставленных адресах и данных на ША2 и ШД2Then, in accordance with the functioning algorithm, the controller with the exposed addresses and data on ША2 and ШД2

формирует сигнал 66, запись пам ти на ШУ2. Передний фронт строба адреса AS через элемент И 13 при единичном сигнале 77 программирование ППЗУ поступает на С-вход триггера 17 готовности контроллераgenerates a signal 66, recording memory on the control 2. The leading edge of the strobe of the address AS through the element And 13 with a single signal 77, programming the EPROM is fed to the C-input of the trigger 17 of the controller’s readiness

25 ПДП, последний, в свою очередь, выходом нулевого уровн  переводит в состо ние ожидани  контроллер 25, в результате чего на ША2, ШД2 будут удерживатьс  адрес и данные программировани , а на ШУ2 сигнал 66 запись пам ти. Одновременно выходной сигнал триггера 17 открывает элемент И26 и тактова  частота 37 поступает на счетный вход таймера блока 28, настроенного на 50 мсек. Дл  соблюдени 25, the DAC, the latter, in turn, puts the controller 25 into the standby state by the output of the zero level, as a result of which the address and programming data are stored on ША2, ШД2, and the memory record is on signal ШУ2. At the same time, the output signal of the trigger 17 opens the I26 element and the clock frequency 37 is supplied to the counting input of the timer unit 28, configured for 50 ms. To comply

временной диаграммы программировани  БИС ППЗУ с УФ стиранием микропроцессор через врем  не менее 4 мксек после выдачи управл ющего сигнала 51 по команде ВЫВОД установкой определенного бита порта С регистра 28 формируетс  сигнал 79 запись ППЗУ.the programming time chart of the BIS EPROM with UV erasure, the microprocessor after at least 4 microseconds after issuing the control signal 51 by the OUTPUT command by setting a specific bit of port C of register 28, a signal 79 is written to the EPROM.

По истечении 50 мсек, необходимых дл After the 50 ms required for

программировани  ППЗУ, таймер регистра выдает одиночный импульс 47, который по- ступает на один из входов запросов прерывани  микропроцессора 5. Последний переходит на подпрограмму обработки прерывани , снимает управл ющий сигнал 79, а сигналом 52 установка триггера готовно- С.ТИ ППД через триггеры 16, 17 выводит контроллер из цикла ожидани  с завершением захвата шин ША2 и ШД2. Программирование следующей  чейки пам ти осуществл етс  по тому же алгоритму с записью очередного байта информации в порт А блока 28. Временна  диаграмма данного отладочного режима представлена на фиг.5.When programming the EPROM, the register timer generates a single pulse 47, which arrives at one of the interrupt request inputs of the microprocessor 5. The latter goes to the interrupt processing routine, removes the control signal 79, and the signal 52 sets the trigger ready. C. TIP through the triggers 16 17 brings the controller out of the wait cycle with the completion of the acquisition of buses ША2 and ШД2. The programming of the next memory cell is carried out according to the same algorithm with writing the next byte of information to port A of block 28. The timing diagram of this debug mode is shown in Fig. 5.

Работа с восьмиразр дными или шест- надцатиразр дными микропроцессорными устройствами определ етс  пользователем перед началом отладки. В этом случае задаетс  конфигураци  программно-доступных портов блоков 2, 3, 4, 28. Дл  отладки вось- миразр дных процессоров испоьзуютс  порты А, В блоков 2,3, порты А блоков 4,28. Дл  отладки шестнадцатиразр дных процессоров используютс  все порты в соответствии с фиг. 1.Operation with eight-bit or sixteen-bit microprocessor devices is determined by the user before starting debugging. In this case, the software-accessible ports of blocks 2, 3, 4, 28 are configured. For debugging eight-bit processors, ports A, B of blocks 2,3, ports A of blocks 4.28 are used. For debugging sixteen-bit processors, all ports in accordance with FIG. 1.

В качестве отладочной микроЭВМ могут использоватьс  отечественные микро- ЭВМ ИСКРА 1030, С-1840, ЕС-1810 и другие совместно с сервисным периферийным оборудованием. Стандартное програм- мное обеспечение указанных микроЭВМ дл  работы с предлагаемыми п устройствами расширено дополнительным интерпретатором командной строки и программным монитором.As a debug microcomputer, domestic microcomputer ISKRA 1030, S-1840, EC-1810 and others can be used together with service peripheral equipment. The standard software for these microcomputers for working with the proposed devices has been expanded with an additional command line interpreter and software monitor.

Интерпретатор командной строки анализирует консольный ввод (с клавиатуры видеотерминала ) и в зависимости от введенной информации передает управление на загрузчик операционной системы или загрузчки программного монитора.The command line interpreter analyzes console input (from the keyboard of the video terminal) and, depending on the entered information, transfers control to the bootloader of the operating system or boot of the software monitor.

При переходе в режим отладки программного обеспечени  используетс  программный монитор, который позвол ет работаь как с программой в отлаживаемых микроЭВМ, так и в самой отладочной микроЭВМ .When switching to the debugging mode of software, a program monitor is used, which allows working both with the program in debugged microcomputers and in the debugging microcomputer itself.

Процедуры выполнени  деректив программного монитора по каналу ИРПС поступают в устройство отладки, где анализируютс  и обрабатываютс , обеспечива  вводи вывод информации на УВВ, работу с пам тью и регистрами ввода-вывода и управлени  ходом выполнени  программ отлаживаемых микроЭВМ.The procedures for executing the program monitor directives through the IRPS channel are sent to the debugging device, where they are analyzed and processed, providing input of information to the air-blast device, working with memory and input-output registers, and controlling the execution of programs of debugged microcomputers.

Программный монитор дает возможность пользователю работать по следующим дерективам: заполнение области пам ти константой, сравнение двух массивов пам ти, перемещение массива пам ти, подсчет контрольной суммы области пам ти , замена содержимого пам ти, вывод на устройство отображени  содержимого области пам ти, запуск и останов микропроцессора по заданному адресу, трассировка программы, редактирование регистров общего назначени , чтение пам ти с ВЫВОДОМ ее содержимого в управл ющую микроЭВМ, запись в пам ть отглаживаемого устройства информации из управл ющей микроЭВМ, установка номера отлаживаемой микроЭВМ.The program monitor allows the user to work on the following directives: filling the memory area with a constant, comparing two memory arrays, moving the memory array, calculating the checksum of the memory area, replacing the contents of the memory, outputting to the display device the contents of the memory area, starting and stopping the microprocessor at a given address, tracing the program, editing general purpose registers, reading memory with the OUTPUT of its contents in the control microcomputer, writing to the memory of the device being debugged CTBA information from the control microcomputer, the microcomputer being debugged installation rooms.

Предлагаемое устройство совместно с отладочной микроЭВМ позвол ет осуществить полный цикл разработки программного обеспечени : составлени , исправлени  программ, отладки их на микроЭВМ и мик- ро-процессорных устройствах. Помимо ска- занного устройство . обладает программно-аппаратной гибкостью. Так, за счет ввода нескольких устройств обеспечиваетс  многопрограммна  отладка микропроцессорных систем, что повышает производительность процесса отладки программ .The proposed device, together with a debug microcomputer, allows for a full cycle of software development: compiling, correcting programs, debugging them on microcomputers and micro-processor devices. In addition to the above device. It has software and hardware flexibility. Thus, by inputting several devices, microprocessor systems are multi-program debugged, which increases the productivity of the program debugging process.

С учетом указанных возможностей, предложенное устройство позвол ет осуществить полный процесс разработки программного обеспечени , а также контроль и диагностику микропроцессорных устройств .Given these capabilities, the proposed device allows for a complete software development process, as well as monitoring and diagnostics of microprocessor devices.

Claims (1)

Формула изобретен и  Formula invented and Устройство дл  отладки программ микроЭВМ , содержащее блок задани  адреса, блок входных данных и режимов отладки, дешифратор адреса, блок адреса останова и режимов отладки, блок выходных данных и режимов отладки, схему сравнени , первый и второй элементы И, элемент ИЛИ, триггеры готовности, блокировки пам ти, запроса прерывани , сброса и запроса захвата, причем первый адресный вход блока задани  адреса соединен с первым младшим байтом адресной шины отлаживаемой микроЭВМ, второй адресный вход блока задани  адресаA device for debugging microcomputer programs, comprising an address setting unit, an input data block and debug modes, an address decoder, a stop address and debug mode blocks, an output data block and debug modes, a comparison circuit, first and second AND elements, an OR element, ready triggers, memory lock, interrupt request, reset, and capture request, with the first address input of the address setting unit connected to the first low byte of the address bus of the debugged microcomputer, the second address input of the address setting unit соединен с вторым байтом адресной шины отлаживаемой микроЭВМ, третий адресный вход блока задани  адреса соединен со старшими разр дами адресной шины отлаживаемой микроЭВМ, четвертый адресный вход блока задани  адреса и первые адресные входы блока входных данных и режимов отладки, блока адреса останова и режимов отладки, дешифратора адреса и блока выходных данных и режимов отладки соединены с внутренней адресной шиной управл ющей микроЭВМ, п тый и шестой входы блока задани  адреса, второй и третий входы блока входных данных и режимов отладки  вл ютс  входами устройства дл  подключени  к выходам записи и чтени  шины управлени  управл ющей микро- ЭВМ, вторые входы блока адреса останова и блока выходных данных и режимов отладки  вл ютс  входами устройства дл  подключени  к выходу записи шины управлени  управл ющей микроЭВМ, пер- вый-четвертый выходы дешифратора адреса соединены соответственно с седьмым входом выборки блока задани  адреса, третьим входом выборки блока адреса останова и режимов отладки, третьим входом выборки блока выходных данных и режимов отладки , четвертым входом выборки блока входных данных и режимов отладки, восьмой вход-выход блока задани  адреса, п тый вход-выход блока входых данных и режимов отладки, четвертые входы блока адреса останова и режимов отладки, а также блока выходных данных и режимов отладки  вл ютс  входами-выходами устройства дл  подключени  к шине данных управл ющей микроЭВМ, первый, второй и третий выходы блока адреса останова и режимов отладки образуют выход адреса останова дл  режима Останов по адресу, который соединен с первым входом схемы сравнени , второй вход схемы сравнени   вл етс  входом устройства и подключен к адресной шине отлаживаемой микроЭВМ, выход схемы сравнени  соединен с входом таймера блока задани  адреса, работающем в вычитающем режиме, выход которого соединен с первым входом элемента ИЛИ, шестой вход блока входных данных и режимов отладки  вл етс  входом младшего байта данных соответствующей шины отлаживаемого устройства , седьмой вход блока входных данных и режимов отладки  вл етс  входом старшего байта данных одноименной шины отлаживаемой микроЭВМ, четвертый, выход блока адреса останова и режимов отладки задает отладочный режим Останов по прерывани м и соединен с первым входом5connected to the second byte of the address line of the debugged microcomputer, the third address input of the address block of the microcomputer, the fourth address input of the block of the address set and the first address inputs of the input data block and debug modes, the stop address block and debug modes, the decoder the addresses and the block of output data and debug modes are connected to the internal address bus of the control microcomputer, the fifth and sixth inputs of the address set block, the second and third inputs of the block of input data and modes debugs are inputs of the device for connecting to the write and read outputs of the control bus of the host microcomputer, the second inputs of the stop address block and the block of output data and debug modes are inputs of the device for connecting to the write output of the control bus of the host microcomputer, the first the fourth outputs of the address decoder are connected respectively to the seventh input of the sample of the address setting block, the third input of the sample of the stop address block and debug modes, the third sample input of the block of output data and debug modes, the fourth input of the block of input data and debugging modes, the eighth input-output of the block of setting the address, the fifth input-output of the block of input data and debugging modes, the fourth inputs of the block of stop address and debugging modes, as well as the block of output data and debugging modes - the outputs of the device for connecting the control microcomputer to the data bus, the first, second and third outputs of the stop address block and debug modes form the stop address output for the Stop mode at the address that is connected to the first input of the comparison circuit, w The other input of the comparison circuit is the input of the device and is connected to the address bus of the debugged microcomputer, the output of the comparison circuit is connected to the input of the timer of the address setting unit operating in the subtracting mode, the output of which is connected to the first input of the OR element, the sixth input of the block of input data and debug modes is is the input of the least significant data byte of the corresponding bus of the debugged device, the seventh input of the block of input data and debug modes is the input of the highest byte of the data of the same name bus of the debugged microcomputer, the fourth , the output of the stop address block and debug modes sets the debug mode to Stop by interrupt and is connected to the first input первого элемента И. п тый выход блока адреса останова и режимов отладки задает отладочный режим Останов по командам ввод и вывод и соединен с первым входом 5 второго элемента И, первый выход блока входных данных и режимов отладки определ ет пошаговый отладочный режим и соединен с вторым входом элемента ИЛИ, второй выход блока входных данных и режимов отладки задает режим Останов по адресу и соединен с третьим разрешающим входом схемы сравнени , третий выход блока входных данных и режимов отладки задает управл ющий сигнал Запрос прерывани  и соединен с информационным входом триггера запроса прерывани , четвертый выход блока блока входных данных и режимов отладки задает управл ющий сигналthe first element I. The fifth output of the stop address block and debug modes sets the debug mode Stop by input and output commands and is connected to the first input 5 of the second element And, the first output of the input data block and debug modes determines the step-by-step debug mode and is connected to the second input OR, the second output of the input data block and debug modes sets the Stop mode to the address and is connected to the third enable input of the comparison circuit, the third output of the input data block and debug modes sets the control signal Interrupt request and connected to the information input of the interrupt request trigger, the fourth output of the block of the input data block and debug modes sets the control signal П Сброс и соединен с информационным входом триггера сброса, п тый выход блока входных данных и режимов отладки задает управл ющий сигнал Блокировки пам ти и соединен с информационнымP Reset and is connected to the information input of the reset trigger, the fifth output of the block of input data and debug modes sets the control signal of the Memory lock and is connected to the information 5 входом триггера блокировки пам ти, выходы триггеров блокировки пам ти, запроса прерывани , сброса и запроса захвата  вл ютс  выходами устройства дл  подключени  к входам5 by the input of the memory lock trigger, the outputs of the memory lock trigger, interrupt request, reset and capture request are the outputs of the device for connecting to the inputs Q одноименных сигналов шины управлени  отлаживаемой микроЭВМ, входы синхронизации триггеров блокировки пам ти, запроса прерывани , сброса и запроса захвата соединены с входом устройства, со5 единенным с выходом тактовой частоты шины управлени  отлаживаемой микроЭВМ, второй вход первого элемента И  вл етс  входом устройства дл  подключени  к выходу подтверждени  прерывани  шины уп0 равлени  отлаживаемой микроЭВМ, выход первого элемента И соединен с третьим входом элемента ИЛИ, второй вход второго элемента И  вл етс  входом устройства дл  подключени  к выходу признака командQ of the same name signals of the control bus of the debugged microcomputer, the synchronization inputs of the memory lock triggers, interrupt request, reset and capture request are connected to the input of the device connected to the clock output of the control bus of the debugged microcomputer, the second input of the first element And is the input of the device for connecting to the output of the confirmation of the interruption of the control bus of the debugged microcomputer, the output of the first element And is connected to the third input of the OR element, the second input of the second element And is the input of the device wa for connection to the output command feature 5 ввод-вывода шины управлени  отлаживаемой микроЭВМ, выход второго элемента И соединен с четвертым входом элемента ИЛИ, выход элемента ИЛИ соединен с информационным входом триггера готовно0 сти. тактовый вход триггера готовности  вл етс  входом устройства дл  подключени  к выходу сигнала Начало цикла шины управлени  отлаживаемой микроЭВМ, выход триггера готовности  вл етс  выходом5 of the input / output of the control bus of the debugged microcomputer, the output of the second AND element is connected to the fourth input of the OR element, the output of the OR element is connected to the information input of the availability trigger. the clock input of the ready trigger is the input of the device for connecting to the signal output The start of the control bus cycle of the debugged microcomputer, the output of the ready trigger is the output 5 устройства дл  подключени  к входу сигнала Готовность шины управлени  отлаживаемой микроЭВМ, дев тый вход блока задани  адреса, п тый вход блока адреса останова и режимов отладки, восьмой вход блока входных данных и режимов отладки и5 devices for connecting to the signal input Readiness of the control bus for the debugged microcomputer, the ninth input of the address block, the fifth input of the block of the stop address and debug modes, the eighth input of the block of input data and debug modes, and п тый вход блока выходных данных и режимов отладки соединены с входом устройства дл  подключени  к выходу управл ющего сигнала Пам ть устройства ввода-вывода управл ющей микроЭВМ, отличающее с   тем, что, с целью повышени  производительности при отладке программ и расширени  функциональных возможностей за счет возможности отладки восьми- и шестнадцатиразр дных процессоров, в устройство введены шинный формирователь данных, шинный формирователь адреса, адресный мультиплексор, отладочный блок пам ти, третий элемент И, триггер запроса пр мого доступа, четвертый элемент И, триггера готовности контроллера пр мого доступа к пам ти, регистр-защелка старшего байта адреса, перва -четверта  группы трехстабильных ключей, контроллер пр мого доступа к пам ти, п тый элемент И, причем первые входы шинного формировател  данных и регистра-защелки старшего байта адреса, а также первый вход-выход контроллера пр мого доступа к пам ти соединены входом-выходом устройства дл  подключени  к внутренней шине данных управл ющей микроЭВМ, выход таймера блока выходных данных и режимов отладки  вл етс  выходом устройства дл  подключени  к входу первого запроса прерывани  внутренней шины управлени  управл ющей микроЭВМ, первые входы шинного формировател  адреса, адресного мультиплексора и четвертой группы трехстабильных ключей соединены с адресной шиной управл ющей микроЭВМ, первый вход третьей группы трехстабильных ключей и второй вход адресного мультиплексора соединены с входом устройства дл  подключени  к выходу записи шины управлени  управл ющей микроЭВМ, второй вход третьей группы трехстабильных ключей  вл етс  входом устройства дл  подключени  к выходу чтени  шины управлени  управл ющей микроЭВМ, тактовый вход контроллера пр мого доступа к пам ти и первый вход п того элемента И соединены с входом устройства дл  подключени  к выходу та кто вой частоты шины управлени  управл ющей микроЭВМ, п тый-восьмой выходы дешифратора адреса соответственно соединены с входами выборки контроллера пр мого доступа , с первыми установочными входами триггера запроса пр мого доступа к пам ти и триггера готовности контроллера пр мого доступа к пам ти, с вторым установочным входом триггера запроса пр мого доступа к пам ти и установочным входом триггера готовности , первый выход блока блока выход- ных данных и режимов отладки.the fifth input of the block of output data and debug modes is connected to the input of the device for connecting to the output of the control signal The memory of the input / output device of the control microcomputer, characterized in that, in order to increase productivity when debugging programs and expand functionality due to the possibility debugging of eight- and sixteen-bit processors, a bus data driver, a bus address driver, an address multiplexer, a debug memory unit, a third AND element, a request trigger are introduced into the device direct access, the fourth element of And, the readiness trigger of the direct memory access controller, register-latch of the high byte of the address, the first-fourth of the group of three-stable keys, the direct memory access controller, the fifth element of And, the first inputs of the bus driver data and register-latch of the high byte of the address, as well as the first input-output of the direct memory access controller are connected by the input-output of the device for connecting to the internal data bus of the control microcomputer, the output of the timer of the block of output data and modes of debugging is the output of the device for connecting to the input of the first interrupt request of the internal control bus of the control microcomputer, the first inputs of the bus address generator, address multiplexer and the fourth group of three-stable keys are connected to the address bus of the control microcomputer, the first input of the third group of three-stable keys and the second input of the address the multiplexer connected to the input of the device for connecting to the recording output of the control bus of the control microcomputer, the second input of the third group of three-stable keys in is the input of the device for connecting to the read output of the control bus of the control microcomputer, the clock input of the controller of direct memory access and the first input of the fifth AND element are connected to the input of the device for connecting to the output of the same frequency of the control bus of the control microcomputer, p the fifth to eighth outputs of the address decoder are respectively connected to the sampling inputs of the direct access controller, to the first installation inputs of the direct memory access request trigger and the readiness trigger of the direct memory access controller, with the second installation input of the direct memory access request trigger and the installation input of the ready trigger, the first output of the block of the output data block and debug modes. определ ющий режим загрузки ОЗУ, соединен с вторыми входами шинных формиров- телей данных, адреса и с третьим входом адресного мультиплексора, второй выходdefining RAM loading mode, connected to the second inputs of the bus data shapers, addresses and to the third input of the address multiplexer, the second output блока выходных данных и режимов отладки, определ ющий режим установки пр мого доступа к пам ти, соединен с первым входом третьего элемента И, третий выход блока выходных данных и режимов отладки,block of output data and debug modes, which determines the direct memory access setting mode, is connected to the first input of the third AND element, the third output of the block of output data and debug modes, 0 режима Программирование ППЗУ соединен с первым входом четвертого элемента И, четвертый выход блока выходных данных и режимов отладки соединен с установочным входом триггера запроса захвата, п 5 тый выход блока выходных донных и режимов отладки  вл етс  выходом устройства дл  подключени  к входу записи ППЗУ внешней шины управлени  отлаживаемой микроЭВМ, шестой выход запрета выдачи0 of the Programming EPROM mode is connected to the first input of the fourth AND element, the fourth output of the block of output data and debug modes is connected to the installation input of the capture request trigger, the fifth fifth output of the block of output bottom and debug modes is the output of the device for connecting the external bus to the ROM input of the ROM debug microcomputer control, sixth output of the prohibition of issuing 0 блока выходных данных и режимов отладки соединен с первым входом второй группы трехстабильных ключей, выход шинного формировател  адреса, первый и второй выходы адресного мультиплексора, первый0 block of output data and debug modes is connected to the first input of the second group of three-stable keys, the output of the bus address former, the first and second outputs of the address multiplexer, the first 5 вход отладочного блока пам ти соединены с внешней шиной адреса отлаживаемой микроЭВМ, выход шинного формировател  данных соединен с вторым входом отладочного блока пам ти и внешней шиной данных5, the input of the debugging memory block is connected to the external address bus of the debugged microcomputer, the output of the bus data former is connected to the second input of the debugging memory block and the external data bus 0 отлаживаемой микроЭВМ, четвертый вход адресного мультиплексора соединен с шестым выходом блока входных данных и режимов отладки и соединен с входом устройства дл  подключени  к выходу чте5 ни  внешней шины управлени  отлаживаемой микроЭВМ, п тый вход адресного мультиплексора соединен с внешней шиной адреса отливаемой микроЭВМ, третий и четвертый выходы адресного мультиплексо0 ра соединены с третьим и четвертым входами отладочного блока пам ти, выход строба адреса контроллера пр мого доступа к пам ти соединен с вторым входом регистра защелки старшего байта адреса и вторыми0 debugged microcomputer, the fourth input of the address multiplexer is connected to the sixth output of the input data block and debug modes and connected to the input of the device for connecting to the output of the external control bus of the debugged microcomputer 5, the fifth input of the address multiplexer is connected to the external address bus of the cast microcomputer, the third and the fourth outputs of the address multiplexer are connected to the third and fourth inputs of the debugging memory block, the output of the address strobe of the direct memory access controller is connected to the second input of the reg latch latches the high byte of the address and second 5 входами третьего и четвертого элемента И, выход разрешени  адреса контроллера пр мого доступа к пам ти соединен с первым входом первой группы трехстабильных ключей и третьим входом регистра-защелки5 inputs of the third and fourth element AND, the output address resolution of the direct memory access controller is connected to the first input of the first group of three-stable keys and the third input of the register-latch 0 старшего байта, выход запроса захвата контроллера пр мого доступа к пам ти соединен с информационным входом триггера запроса захвата, вход подтверждени  захвата контроллера пр мого доступа к па5 м ти, вторые входы второй и четвертой группы трехстабильных ключей, третий вход третьей группы трехстабильных ключей соединены с входом устройства дл  подключени  к выходу подтверждени  захвата внешней шины управлени  отлаживземой микроЭВМ, вход контроллера пр мого доступа пам ти записи пам ти соединен с первым выходом третьей группы трехстабильных ключей и входом устройства дл  подключени  к одноименному выходу внешней шины управлени  отлаживаемой микроЭВМ, вход контроллера пр мого доступа к пам ти чтени  соединен с вторым выходом третьей группы трехстабильных ключей и входом устройства дл  подключени  к одноименному выходу внешней шины управлени  отлаживаемой микроЭВМ, выход триггера готовности контроллера пр мого доступа к пам ти соединен с входом готовности контроллера пр мого доступа к пам ти и вторым входом п того элемента И, выход которого соединен со счетным входом таймера блока выходных данных и режимов отладки, седьмой и восьмой выходы блока выходных данных и режимов отладки образуют выход шестнадцатиразр дного информационного слова, который соединен с третьим входом второй группы трехстабильных ключей, четвёртый и п тый входы второй группы трехстабильных ключей  вл ютс  входами устройства дл  подключени  к выходам блокировки пам ти и подтверждени  прерывани  внешней шины управлени  отлаживаемой микроЭВМ, выход второй группы трехстабильных ключей  вл етс  выходом устройства дл  подключени  к входу внешней шины данных отлаживаемой микроЭВМ. выход третьего элемента И соединен с тактовым входом триггера запроса пр мого доступа к пам ти, выход четвертого0 high byte, the output request for capturing the direct memory access controller is connected to the information input of the trigger for the capture request, the input for confirming the capture of the direct access controller for memory 5, the second inputs of the second and fourth groups of three-stable keys, the third input of the third group of three-stable keys are connected with the input of the device for connecting to the output of the confirmation of the capture of the external control bus of the debugged microcomputer, the input of the direct access controller of the memory of the recording memory is connected to the first output of the third group re-stable keys and the input of the device for connecting the external control bus of the debugged microcomputer to the same name, the input of the direct memory access controller is connected to the second output of the third group of three-stable keys and the input of the device for connecting the external control bus of the debugable microcomputer to the same name, the output of the readiness trigger the direct memory access controller is connected to the readiness input of the direct memory access controller and the second input of the fifth AND element, the output of which is connected to about the counting input of the timer block of the output data and debug modes, the seventh and eighth outputs of the block of output data and debug modes form the output of a sixteen-bit information word that is connected to the third input of the second group of three-stable keys, the fourth and fifth inputs of the second group of three-stable keys are inputs devices for connecting to the outputs of memory lock and confirming the interruption of the external control bus of the debugged microcomputer, the output of the second group of three-stable keys is the output of the device -OPERATION input for connection to the external data bus microcomputer debugged. the output of the third AND element is connected to the clock input of the direct memory access request trigger, the output of the fourth элемента И соединен с тактовым входом триггера готовности контроллера пр мого доступа к пам ти, выходы первой группы трехстабильных ключей и регистра защелки старшего байта адреса  вл ютс  выходамиelement And is connected to the clock input of the readiness trigger of the direct memory access controller, the outputs of the first group of three-stable keys and the latch register of the high address byte are the outputs устройства дл  подключени  к входам внешней шины адреса отлаживаемой микроЭВМ, выход четвертой группы трехстабильных ключей соединен с адресным входом контроллера пр мого доступа к пам ти и вторымdevices for connecting to the external bus inputs the addresses of the debugged microcomputer, the output of the fourth group of three-stable keys is connected to the address input of the direct memory access controller and the second входом первой группы трехстабильных ключей, выход триггера запроса пр мого доступа соединен с входом запроса контроллера пр мого доступа к пам ти, выход конца счета которого  вл етс  выходом устройства дл  подключени  к входу второго запроса прерывани  внутренней шины управлени  управл ющей микроЭВМ, седьмой выход блока входных данных и режимов отладки  вл етс  выходом устройства дл  подключени  к входу третьего запроса прерывани  внутренней шины управлени  управл ющей микроЭВМ, восьмой выход и дев тый вход блока входных данных и режимов отладки, дев тый и дес тый выходы дешифратора адреса соединены с выходами устройства дл  подключени  к внутренней шине управлени  управл ющей микроЭВМ.by the input of the first group of three-stable keys, the output of the direct access request trigger is connected to the input request of the direct memory access controller, the output of the end of which is the output of the device for connecting to the input of the second interrupt request the internal control bus of the control microcomputer, the seventh output of the input block data and debug modes is the output of the device for connecting to the input of the third interrupt request the internal control bus of the control microcomputer, the eighth output and the ninth input of the input data block and debugging modes, the ninth and tenth outputs of the address decoder are connected to the outputs of the device for connection to the internal control bus of the control microcomputer. Фиг.1Figure 1 w: T&SStiSSS™1w: T & SStiSSS ™ 1 --/---- / --- Чтение первого faufrtefReading the first faufrtef Фиг. 4FIG. 4 Чтение Второго байтаReading Second Byte 5 35 3 гg SISI
SU4793566 1989-12-05 1989-12-05 Device for debugging programs for microcomputer RU1815643C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU4793566 RU1815643C (en) 1989-12-05 1989-12-05 Device for debugging programs for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU4793566 RU1815643C (en) 1989-12-05 1989-12-05 Device for debugging programs for microcomputer

Publications (1)

Publication Number Publication Date
RU1815643C true RU1815643C (en) 1993-05-15

Family

ID=21497325

Family Applications (1)

Application Number Title Priority Date Filing Date
SU4793566 RU1815643C (en) 1989-12-05 1989-12-05 Device for debugging programs for microcomputer

Country Status (1)

Country Link
RU (1) RU1815643C (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1213482, кл.С 06 F 11/28, 1984. Авторское свидетельство СССР Ms 1462327. кл.С 06 F 11/28. 1987. *

Similar Documents

Publication Publication Date Title
US4231087A (en) Microprocessor support system
EP0157075B1 (en) Modular data processing system
US4674089A (en) In-circuit emulator
EP0556314B1 (en) Method and apparatus for providing down-loaded instructions for execution by a peripheral controller
US4475155A (en) I/O Adapter with direct memory access to I/O control information
US5495593A (en) Microcontroller device having remotely programmable EPROM and method for programming
US5564041A (en) Microprocessor for inserting a bus cycle in an instruction set to output an internal information for an emulation
US4485438A (en) High transfer rate between multi-processor units
US4261033A (en) Communications processor employing line-dedicated memory tables for supervising data transfers
US20020144235A1 (en) Debugging embedded systems
JPH11338734A (en) Computer system and method for operating the computer system
US4042914A (en) Microprogrammed control of foreign processor control functions
US5493664A (en) Microcomputer that transfers address and control to a debugging routine when an input address is a breakpoint address and a user accessible register for signalling if the breakpoint address is from the cache memory or a main memory
US4729090A (en) DMA system employing plural bus request and grant signals for improving bus data transfer speed
US4516202A (en) Interface control system for high speed processing based on comparison of sampled data values to expected values
JPH04229337A (en) Emulator
JP2000207247A (en) Computer system, and method for operating the computer system
US4336588A (en) Communication line status scan technique for a communications processing system
JPH03196225A (en) Programmable interrupt controller
RU1815643C (en) Device for debugging programs for microcomputer
JPH0420496B2 (en)
CN113311931B (en) Double-reset vector 8-bit MCU (microprogrammed control Unit) architecture convenient for IAP (inter Access Point) and method thereof
US5761482A (en) Emulation apparatus
KR920002830B1 (en) Direct memory access controller
CN115599408B (en) Data burning method, equipment and storage medium of processor