CS272133B1 - Connected to cooperate with a circuitry containing a single-chip microprocessor - Google Patents

Connected to cooperate with a circuitry containing a single-chip microprocessor Download PDF

Info

Publication number
CS272133B1
CS272133B1 CS886781A CS678188A CS272133B1 CS 272133 B1 CS272133 B1 CS 272133B1 CS 886781 A CS886781 A CS 886781A CS 678188 A CS678188 A CS 678188A CS 272133 B1 CS272133 B1 CS 272133B1
Authority
CS
Czechoslovakia
Prior art keywords
circuit
computer
chip microprocessor
terminal
terminals
Prior art date
Application number
CS886781A
Other languages
Czech (cs)
Other versions
CS678188A1 (en
Inventor
Vaclav Ing Opletal
Original Assignee
Vaclav Ing Opletal
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 Vaclav Ing Opletal filed Critical Vaclav Ing Opletal
Priority to CS886781A priority Critical patent/CS272133B1/en
Publication of CS678188A1 publication Critical patent/CS678188A1/en
Publication of CS272133B1 publication Critical patent/CS272133B1/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

Zapojeni umožňuje/ aby každý osobni mikropočítač vybavený vstupně-výatupním zařízením se mohl jednoduše připojit k obvodům s jednočipovým mikroprocesorem a mohl s nimi spolupracovat například při odlačíováni jejich programů. Počítač po odpojeni zapojeni ee může opšt využívat pro svůj původní účel,' protože se u něj nemuel provádět žádné nevratné úpravy. Zapojeni je možno použit pro velmi jednoduché osobni mikropočítače PMD 85-2 a ZX Speotrum. Podstatou zapojeni pro spolupráci počítače 8 obvodem obsahujícím jednočipový mikroprocesor je, že mezi počítač (1) a obvod (2JL s jednočipovým mikroprocesorem jsou zapojeny čtyři NAND obvody (6/ 7/ 18,' 21) dva O klopné obvody (3/4) tři budiče sběrnice (8, 9, 11), šest invsrtorů (5/ 13, 14, 16, 20, 23),' dva střadačs (10/ 27), čtyři oddělovači stupně (15/ 17/ 19/ 22), RAM paměť (12)/.relé (24) a dioda (25), jejichž propojeni umožňuje výše popsanou činnost.The connection allows any personal microcomputer equipped with an input-output device to be easily connected to circuits with a single-chip microprocessor and to cooperate with them, for example, when debugging their programs. After disconnecting the connection, the computer can be used again for its original purpose, because no irreversible modifications can be made to it. The connection can be used for very simple personal microcomputers PMD 85-2 and ZX Speotrum. The essence of the connection for cooperation of the computer 8 with the circuit containing a single-chip microprocessor is that between the computer (1) and the circuit (2JL with a single-chip microprocessor there are connected four NAND circuits (6/7/18,' 21) two O flip-flops (3/4) three bus drivers (8, 9, 11), six inverters (5/13, 14, 16, 20, 23), two accumulators (10/27), four stage separators (15/17/19/22), RAM memory (12)/.relay (24) and diode (25), the connection of which enables the above-described operation.

Description

Vynález se týká zapojeni pro spolupráci počítače s obvodem obsahujícím jednočipový mikroprocesor. Spolupráce může sloužit pro odlaněni programů přístrojů obsahujících jednočipový mikroprocesor.The invention relates to a circuit for cooperating a computer with a circuit comprising a single-chip microprocessor. Collaboration can be used to debug device programs containing a single-chip microprocessor.

Dosud používané zařízeni se zapojením pro spolupráci s jednočipovým mikroprocesorem jsou bud jednoúčelové,' specializované a drahé přístroje,' nebo zařízení připojitelná k počítači. Tato zařízeni neumožňuji vždy odladěni programu jednočipového mikroprocesoru i emulaci hotového přístroje osazeného jednočipovým mikroprocesorem,* neumožňují provádět kontrolu průběhu programu jednočipového mikroprocesoru paralelním zápisem jeho čtených instrukci na zvolené adresy počítače, neumožňují také vždy od zvoleného programového kroku jednočipového mikroprocesoru zobrazovat na obrazovce obsahy jeho akumulátoru, stavového slova,* všech registrů a popřípadě obsahu vnitřních paměti,' bran i expandérů. Dosud známá zařízeni také vždy neumožňuji práci zařízení s jednočipovým mikroprocesorem v reálném čase a připojeni k malému osobnímu mikropočítači.Previously used devices with wiring for cooperation with a single-chip microprocessor are either single-purpose, 'specialized and expensive devices' or devices connectable to a computer. These devices do not always allow debugging of a single-chip microprocessor program and emulation of a finished device equipped with a single-chip microprocessor. status word, * of all registers and possibly contents of internal memories, gateways and expanders. Previously known devices also do not always allow the operation of devices with a single-chip microprocessor in real time and connected to a small personal microcomputer.

Výše uvedené nedostatky jsou odstraněny zapojením pro spolupráci počítače s obvodem obsahujícím jednočipový mikroprocesor,' jehož podstata spočívá v tom,' že mezi vývod počítače a vývod obvodu s jednočipovým mikroprocesorem je zapojena sériová kombinace prvního D klopného obvodu a třetího oddělovacího stupně, mezi vývody počítače a vývody obvodu s jednočipovým mikroprocesorem je zapojen druhý D klopný obvod a sériová kombinace čtvrtého invertoru a čtvrtého oddělovacího stupně,! výstupy prvního D klopného obvodu jsou připojeny na první vstupy prvního a druhého NAND obvodu,' druhé vstupy prvního a druhého NAND obvodu jsou připojeny přes první invertor na výstup třetího oddělovacího stupně a přes první oddělovací stupeň na vývod počítače,1 výstup prvního NAND obvodu je připojen k řídicímu vstupu prvního budiče sběrnice a výatup druhého NAND obvodu je připojen k řídicímu vstupu druhého budiče sběrnice,· přičemž mezi vývody počítače a vývody obvodu s jednočipovým mikroprocesorem je zapojen první budič sběrnice a mezi vývody počítače a vývody obvodu s jednočipovým mikroprocesorem je zapojen druhý budič sběrnice, mezi vývody počítače a vývody obvodu s jednočipovým mikroprocesorem je zapojen první střadač a mezi vývody počítače a vývody obvodu s jednočipovým mikroprocesorem je zapojen třetí budič sběrnice,- vývod počítače je připojen k řídicímu vstupu prvního střadače a přes třeti NAND obvod je připojen k řídicímu vstupu třetího budiče sběrnice,1 druhý vstup NAND obvodu je připojen na výstup druhého oddělovacího stupně;! vzorkovací vstup prvního střadače je připojen přes šestý invertor k vývodu obvodu s jednočipovým mikroprocesorem,' vývod počítače je připojen přes čtvrtý invertor na druhý vstup čtvrtého NAND obvodu,! jeho první vstup je připojen přes pátý invertor na vývod obvodu s jednočipovým mikroprocesorem,* výstup čtvrtého NAND obvodu je připojen na vstup výběru obvodu RAM paměti a na vývod počítače; vývod počítače je připojen přes druhý invertor na relé a přes třetí invertor na vstup řízení směru přenosu třetího budiče sběrnice a zároveň je připojen na vstup uvolněni zápisu RAM paměti,* k RAM paměti je připojen také vývod počítače a vývod obvodu s jednočipovým mikroprocesorem,' mezi vývody obvodu s jednočipovým mikroprocesorem je zapojena dioda a mezi vývod obvodu s jednočipovým mikroprocesorem a zdroj napájecího napětí jsou zapojeny rozpojovací kontakty relé; počítač je vývodem spojen s vývodem obvodu s jednočipovým mikroprocesorem; mezi vývody obvodu s jednočipovým mikroprocesorem je zapojen druhý střadač; a jeho řídicí vstup je připojen k vývodu obvodu s jednočipovým mikroprocesorem.The above drawbacks are eliminated by connecting the computer to a circuit with a single-chip microprocessor, the essence of which is that a series combination of a first D flip-flop circuit and a third isolation stage is connected between the computer terminal and the single-chip microprocessor circuit terminal. the terminals of the circuit with a single-chip microprocessor are connected to the second D flip-flop circuit and a series combination of the fourth inverter and the fourth isolating stage,! outputs of the first D flip-flop are connected to first inputs of first and second NAND circuit 'second inputs of the first and second NAND circuits are connected through the first inverter to the output of the third separation stage, through the first separation step on the terminal computer, one output of the first NAND circuit is connected to the control input of the first bus driver and the output of the second NAND circuit is connected to the control input of the second bus driver, · the first bus driver is connected between the computer terminals and the single-chip microprocessor circuit terminals and the second driver is connected between the computer terminals and the single-chip microprocessor circuit terminals the first bus driver is connected between the computer terminals and the terminals of the single-chip microprocessor circuit and a third bus driver is connected between the computer terminals and the single-chip microprocessor circuit terminals, - the computer terminal is connected to the first input controller and input of the third bus driver, 1 second NAND input o point is connected to the output of the second separation stage; the sampling input of the first accumulator is connected via a sixth inverter to the output of a single-chip microprocessor circuit, the computer output is connected via a fourth inverter to the second input of the fourth NAND circuit,! its first input is connected via a fifth inverter to the output of a single-chip microprocessor circuit, * the output of the fourth NAND circuit is connected to the RAM memory circuit selection input and to a computer output; the computer terminal is connected via a second inverter to the relay and via a third inverter to the transmission direction control input of the third bus driver and is also connected to the RAM write enable input. a diode is connected to the terminals of the single-chip microprocessor circuit, and the disconnecting contacts of the relay are connected between the terminal of the single-chip microprocessor circuit and the supply voltage source; the computer is connected to the output of a single-chip microprocessor circuit terminal; a second accumulator is connected between the terminals of the single-chip microprocessor circuit; and its control input is connected to the output of a single chip microprocessor circuit.

Výhoda zapojení podle vynálezu spočívá v tom; že umožňuje,* aby každý počítač i osobni mikropočítač vybavený vstupně-výstupnim zařízením se mohl jednoduše připojit k obvodům s jednočipovým mikroprocesorem a mohl s nimi spolupracovat například při odlaňováni jejich programů. Počítač po odpojení zařízení se zapojením podle vynálezu se může opět využívat pro svůj původní účel; protože se u něj nemusí provádět žádné nevratné úpravy. Zapojeni podle vynálezu je možno použít pro velmi jednoduché osobní mikropočítače PMD 85-2 a ZX Spectrum.The advantage of the circuit according to the invention is that; that it allows * any computer or personal microcomputer equipped with an I / O device to be able to easily connect to circuits with a single-chip microprocessor and to cooperate with them, for example, in deselecting their programs. After disconnecting the device with the connection according to the invention, the computer can be used again for its original purpose; because it does not have to make any irreversible adjustments. The circuit according to the invention can be used for very simple personal microcomputers PMD 85-2 and ZX Spectrum.

Blokové schéma zapojeni podle vynálezu je na připojeném výkrese.A block diagram of the circuit according to the invention is shown in the accompanying drawing.

CS 272133 Bl 2CS 272133 Bl 2

Mezi vývod El počítače 1 a vývod L obvodu 2 s jednočipovým mikroprocesorem je zapojena sériová kombinace prvního D klopného obvodu 3 a třetího oddělovacího stupně 19. Mezi vývody C,i D počítače j. a vývody Μ, N obvodu 2 s jednočipovým mikroprocesorem je zapojen druhý 0 klppný obvod 4 a sériová kombinace čtvrtého invertoru 17 a čtvrtého oddělovacího stupně 22. Výstupy prvního D klopného obvodu 3 jsou připojeny na vstupy prvniho a druhého NAND obvodu 6, 7,! další vstupy prvního a druhého NAND obvodu 6,' 7 jsou připojeny přes první invertor ,5 na výstup třetího oddělovacího stupně 19 a přes ' první oddělovací stupeň 15 na vývod C počítače j.· Výstup prvniho NAND obvodu 6 je připojen k řídicímu vstupu prvniho budiče sběrnice 8 a výstup druhého NAND obvodu 7 je připojen k řídicímu vstupu druhého budiče sběrnice 9, přičemž mezi vývody E počítače 1 a vývody 0 obvodu 2 s jednočipovým mikroprocesorem je zapojen první budič sběrnice 8 a mezi vyvody F počítače 1 a vývody 0 obvodu 2 s jednočipovým mikroprocesorem je zapojen druhý budič sběrnice 9, Mezi vývody H počítače 1. a vývody O obvodu 2 s jednočipovým mikroprocesorem je zapojen první střadač 10 a mezi vývody H počítače 1 a vývody P obvodu 2 s jednočipovým mikroprocesorem je zapojen třetí budič sběrnice 11. Vývod G počítače 1 je připojen k řídicímu vstupu prvního střadače 10 a přes třetí NAND obvod 18 je připojen k řídicímu vstupu třetího budiče sběrnice 11. Druhý vstup NAND obvodu 18 je připojen na výstup druhého oddělovacího stupně .17, Vzorkovací vstup prvního střadače 10 je připojen přes šestý invertor 23 k vývodu .R obvodu 2 s jednočipovým mikroprocesorem. Vývod C počítače 1 je přes čtvrtý inventor 16 připojen na druhý vstup čtvrtého NAND obvodu 21,’ přičemž jeho první vstup je připojen přes pátý invertor 20 na vývod L obvodu 2 s jednočipovým mikroprocesorem. Výstup čtvrtého NAND obvodu 21 je připojen na vstup výběru RAM paměti 12 a na vývod 3 počítače 1., Vývod A počítače 1. je připojen přes druhý invertor 13 na relé 24 a přes třetí invertor 14 na vstup řízení směru přenosu třetího budiče sběrnice 11 a zároveň je připojen na vstup uvolnění zápisu RAM paměti 12. K RAM paměti 12 je připojen také vývod I počítače 1 a vývody O; P,i £ obvodu 2 s jednočipovým mikroprocesorem. Mezi vývody L a I obvodu 2 s jednočipovým mikroprocesorem je zapojena dioda 25 a mezi vývod I. obvodu 2 s jednočipovým mikroprocesorem a zdroj 26 napájecího napětí jsou zapojeny rozpojovací kontakty relé 24, Počítač 1 je vývodem K spojen s vývodem S obvodu 2 s jednočipovým mikroprocesorem./,.Mezi vývody P a 0 obvodu 2 s jednočipovým mikroprocesorem je zapojen druhý střadač 27 a jeho řídicí vstup je připojen k vývoUit N obvodu 2 s jednočipovým mikroprocesorem.A series combination of the first D flip-flop circuit 3 and the third isolating stage 19 is connected between the terminal E1 of the computer 1 and the terminal L of the circuit 2 with the single-chip microprocessor. The flip-flop circuit 4 and the series combination of the fourth inverter 17 and the fourth isolating stage 22. The outputs of the first D flip-flop circuit 3 are connected to the inputs of the first and second NAND circuits 6, 7, 1 . the further inputs of the first and second NAND circuits 6, 7 are connected via the first inverter 5 to the output of the third isolating stage 19 and via the first isolating stage 15 to the terminal C of the computer j. bus 8 and the output of the second NAND circuit 7 is connected to the control input of the second bus driver 9, the first bus driver 8 being connected between the terminals E of the computer 1 and the terminals 0 of the single-chip microprocessor 2 and between the terminals F of the computer 1 and the terminals 0 of the circuit 2 s. a second bus driver 9 is connected to the single-chip microprocessor. A first accumulator 10 is connected between terminals H of computer 1 and terminals O of circuit 2 with single-chip microprocessor. The computer 1 is connected to the control input of the first accumulator 10 and is connected via the third NAND circuit 18 to the control input of the third bus driver 11. The second input of the NAND circuit 18 is connected. only to the output of the second separation stage 17. The sampling input of the first accumulator 10 is connected via a sixth inverter 23 to the output R of a circuit 2 with a single-chip microprocessor. The terminal C of the computer 1 is connected via the fourth inventory 16 to the second input of the fourth NAND circuit 21, its first input being connected via the fifth inverter 20 to the terminal L of the circuit 2 with a single-chip microprocessor. The output of the fourth NAND circuit 21 is connected to the RAM selection input 12 and to terminal 3 of computer 1. Terminal A of computer 1 is connected via a second inverter 13 to relay 24 and via a third inverter 14 to the transmission direction control input of the third bus driver 11 and at the same time it is connected to the write release input of the RAM memory 12. The terminal I of the computer 1 and the terminals O are also connected to the RAM memory 12; P, i £ of circuit 2 with a single-chip microprocessor. A diode 25 is connected between the terminals L and I of the circuit 2 with a single-chip microprocessor and between the terminal I of the circuit 2 with the single-chip microprocessor and the supply voltage source 26 are disconnected contacts of the relay 24. . A second accumulator 27 is connected between the terminals P and 0 of the circuit 2 with the single-chip microprocessor, and its control input is connected to the output N of the circuit 2 with the single-chip microprocessor.

První D klopný obvod 3,' který je řízen vývodem El počítače 1. určuje spolu s prvním a druhým NAND obvodem 6,' 7 prioritu spínání prvního nebo druhého budiče sběrnice El, ,9. Vlastní spínáni prvního nebo druhého budiče sběrnice B,· 9 je řízeno signálem J- obvodu 2 s jednočipovým mikroprocesorem,' který dále prochází přes třetí oddělovací stupeň 19, přes první inr vertor 5 a přes první a druhý NAND obvod 6/7. Výsledný signál určuje, kdy bude k vývodu 0 obvodu 2 s jednočipovým mikroprocesorem připojen přes první budič sběrnice 8 vývod Ei počítače 1 a kdy přes druhý budič sběrnice 9 vývod F počítače .1, Vývody .E, F počítače 1 s vývody O obvodu 2 s jednočipovým mikroprocesorem jsou datové údaje.The first D flip-flop circuit 3, which is controlled by the terminal E1 of the computer 1, determines together with the first and the second NAND circuit 6 '' 7 the switching priority of the first or second bus driver E1, 9. The actual switching of the first or second bus driver B, 9 is controlled by the signal J-circuit 2 with a single-chip microprocessor, which further passes through the third isolating stage 19, through the first inr vertor 5 and through the first and second NAND circuits 6/7. The resulting signal determines when the terminal Ei of the computer 1 will be connected to the terminal 0 of the circuit 2 with a single-chip microprocessor via the first bus driver 8 and when the terminal F of the computer 1, the terminals .E, F of the computer 1 with the terminals O of the circuit 2 s. the single-chip microprocessor is data.

Druhý D klopný obvod 4 ovládaný vývody C a D počítače 1. a vývody obvodu 2 s jednočipovým mikroprocesorem přes čtvrtý oddělovací stupeň 22 řídí zastavování a spouštění chodu obvodu 2 s jednočipovým mikroprocesorem podle potřeb jeho spolupráce s počítačem 1,. Chod je řízen vývodem M obvodu 2 s jednočipovým mikroprocesorem.The second D flip-flop circuit 4 controlled by terminals C and D of the computer 1 and the terminals of the single-chip microprocessor circuit 2 via the fourth separation stage 22 controls the stopping and starting operation of the single-chip microprocessor circuit 2 according to the needs of its cooperation with the computer 1. The operation is controlled by terminal M of circuit 2 with a single-chip microprocessor.

Vývodem G počítače 1 je řízen první střadač 10. Vzorkovací vstup prvního střadače 10 je řízen vývodem R obvodu 2 s jednočipovým mikroprocesorem přes šestý invertor 23. První střadač 10 zajišťuje spojeni vývodu 0 obvodu 2 s jednočipovým mikroprocesorem s vývody H počítače 1. Tento obvod je ve funkci při čtení obsahu akumulátoru, stavového slova, obsahu registrů a bran obvodu .2 s jednočipovým mikroprocesorem.The output G of the computer 1 is controlled by the first accumulator 10. The sampling input of the first accumulator 10 is controlled by the output R of the single-chip microprocessor circuit 2 via the sixth inverter 23. in function when reading the contents of the battery, the status word, the contents of the registers and gates of the circuit .2 with a single-chip microprocessor.

Vývod G počítače 1 řídí také přes třetí NAND obvod 18 třetí budič sběrnice .11. Další vstup třetího NAND obvodu 18 je řízen vývodem C počítače 1 přes druhý oddělovací stupeň 17 a vývodem N obvodu 2 a jednočipovým mikroprocesorem přes čtvrtý oddělovací stupeň 22. Vstup řízeni přenosu třetího budiče sběrnice 11 je ovládán vývodem A počítače .1 přes třetí invertor 14. Třetí budič sběrnice 11 zajišťuje spojeni vývodu H počítače J.The terminal G of the computer 1 also controls via the third NAND circuit 18 the third bus driver 11. The further input of the third NAND circuit 18 is controlled by terminal C of computer 1 via second isolating stage 17 and terminal N of circuit 2 and single-chip microprocessor via fourth isolating stage 22. The transmission control input of third bus driver 11 is controlled by terminal A of computer 1 via third inverter 14. The third bus driver 11 connects the terminal H of the computer J.

CS 272133 Bl s vývodem P obvodu 2 8 jednočipovým mikroprocesorem, což je vyšší byt adres instrukcí.CS 272133 B1 with the P terminal of circuit 2 8 by a single-chip microprocessor, which is a higher byte of instruction addresses.

Vstup uvolnění zápisu RAM paměti 12 je řízen přes třetí invertor 14 vývodem A počítače 1 a vstup výběru obvodu RAM paměti 12 je ovládán jednak vývodem □ počítače 1 a také vývodem čtvrtého NAND obvodu 21, jehož vstupy jsou řízeny přes pátý invertor 20 vývodem L obvodu 2 s jednočipovým mikroprocesorem a přes čtvrtý invertor 16 vývodem G počitače__l. RAM paměť 12 je připojena na vývody I. počítače 1 a na vývody O, _P, £ obvodu 2 s jednočipovým mikroprocesorem, Do RAM paměti 12 se nahrává odladěný program jednočipového mikroprocesoru z počítače 1 a v dalším kroku je zajištěna činnost v reálném čase obvodu 2 8 jednočipovým mikroprocesorem podle odleděného programu v RAM paměti 12,The RAM write enable input 12 is controlled via the third inverter 14 via the A terminal of the computer 1 and the RAM memory 12 circuit selection input is controlled by both the computer 1 terminal 1 and the fourth NAND circuit 21, the inputs of which are controlled via the L terminal 2 by the L terminal 2. with a single-chip microprocessor and via a fourth inverter 16 via a counter G of the computer. The RAM memory 12 is connected to the terminals I of the computer 1 and to the terminals 0, _P, 6 of the circuit 2 with a single-chip microprocessor. 8 by a single-chip microprocessor according to a debugged program in RAM 12,

Vývod A počítače 1 zapne přes druhý invertor 13 relé 24 v okamžiku nahrávání odladěného programu počítače 1 do RAM paměti 12, čímž odpojí zdroj 26 napájecího napětí od vývodu T obvodu 2 e jednočipovým mikroprocesorem. Dioda 25 zajišťuje v tomto okamžiku logickou nulovou úroveň na vývodu _L obvodu s jednočipovým mikroprocesorem.Terminal A of computer 1 turns on relay 24 via second inverter 13 at the moment of loading the debugged program of computer 1 into RAM memory 12, thereby disconnecting the supply voltage source 26 from terminal T of circuit 2 e by a single-chip microprocessor. Diode 25 provides at this point a logic zero level at the terminal _L of the single-chip microprocessor circuit.

Spojení vývodu K počítače 1 s vývodem £> obvodu 2 s jednočipovým mikroprocesorem umožňuje počítači 1 provést funkci RESET v obvodu 2 s jednočipovým mikroprocesorem.The connection of the terminal K to the computer 1 with the terminal £> of the circuit 2 with the single-chip microprocessor allows the computer 1 to perform the RESET function in the circuit 2 with the single-chip microprocessor.

Druhý střadač 27 snímá data z vývodu P obvodu 2 s jednočipovým mikroprocesorem. Cas snímáni dat určuje signál na vývodu N obvodu 2 s jednočipovým mikroprocesorem. Tato data jsou čtena buďto počítačem 1. na vývodu _I, nebo RAM pamětí 12,The second accumulator 27 reads data from the terminal P of the circuit 2 with a single-chip microprocessor. The data acquisition time is determined by the signal at terminal N of circuit 2 with a single-chip microprocessor. This data is read either by the computer 1. on terminal _I, or by the RAM memory 12,

Podstata využití vynálezu je v dalším objasněna na neomezujících příkladech. Zařízeni se zapojením podle vynálezu se připojí buď jenom k počítači a slouží pro odladění programu jednočipového mikroprocesoru, nebo se také připojí do objímek pro jednočipový mikroprocesor a programovatelnou paměť kompletně osazeného přístroje řízeného jednočipovým mikroprocesorem a slouží k jeho emulaci.The essence of the use of the invention is further elucidated by means of non-limiting examples. The wiring device according to the invention is either connected only to a computer and serves to debug a single-chip microprocessor program, or it also connects to the sockets for a single-chip microprocessor and programmable memory of a fully equipped single-chip microprocessor-controlled device.

Do počítače se nahraje řídicí program i program jednočipového mikroprocesoru, který se má odladit. Zapojeni podle vynálezu umožňuje následující spolupráci mezi počítačem a obvody obsahujícími jednočipový mikroprocesor!The control program and the single-chip microprocessor program to be debugged are loaded into the computer. The circuit according to the invention allows the following cooperation between the computer and the circuits containing the single-chip microprocessor!

Příklad 1Example 1

Počítač J. čte z obvodu 2 s jednočipovým mikroprocesorem adresy instrukcí a žádané instrukce,' uložené na čtených adresách v paměti počítače 1,· posílá do obvodu 2 s jednočipovým mikroprocesorem. Počítač _1 v tomto příkladě nahrazuje EPROM paměť jednočipového mikroprocesoru.The computer J reads the instruction addresses from the circuit 2 with the single-chip microprocessor and sends the requested instructions stored in the read addresses in the memory of the computer 1 to the circuit 2 with the single-chip microprocessor. Computer _1 in this example replaces the EPROM memory of a single-chip microprocessor.

Příklad 2Example 2

Počítač 1 vedle činnosti popsané v příkladě 1 provádí paralelní kontrolu průběhu programu jednočipového mikroprocesoru. Kontrola se provádí tak, že právě čtená instrukce jednočipového mikroprocesoru se zapisuje do paměti počítače 1 na adresu o X vyšší nebo nižší,' než je adresa čtené instrukce. X musí být větší, než počet adresovaných míst, které zabírá odlaďovaný program. Tímto způsobem se získá velmi dobrý přehled o průběhu odlaďovaného programu.In addition to the operation described in Example 1, the computer 1 performs a parallel check of the program run of the single-chip microprocessor. The check is performed in such a way that the currently read instruction of the single-chip microprocessor is written to the memory of the computer 1 at an address X higher or lower than the address of the read instruction. X must be greater than the number of addressed locations occupied by the debugged program. In this way, a very good overview of the course of the debugged program is obtained.

Příklad 3Example 3

Počítač 1 vedle činnosti popsaných v příkladě 1 a 2 provede na zvoleném kroku programu jednočipového mikroprocesoru výpis jeho akumulátoru, stavového slova, všech registrů 2x8, popřípadě obsahu všech vnitřních pamětí, obsahu bran a pokud jsou připojeny expandéry obsahu také všech jeho bran. Po výpisu uvedených obsahů se program může zastavit nebo pokračovat dál.In addition to the operations described in Examples 1 and 2, computer 1 lists the battery, status word, all 2x8 registers, or the contents of all internal memories, gateway contents and, if content expanders, all gateways are connected at the selected step of the single-chip microprocessor program. After listing the listed contents, the program can stop or continue.

Příklad 4Example 4

Počítač J. vedle činnosti popsané v příkladu 1 provede po dosažení předem zvoleného programového kroku jednočipového mikroprocesoru zobrazení na obrazovku adresy právě probíhajícího programového kroku, vyšší i nižší byt a dále všech obsahů,' jak je uvedeno v příIn addition to the operation described in Example 1, the computer J, after reaching the preselected program step of the single-chip microprocessor, displays on the screen the address of the currently running program step, higher and lower byte and all contents, as indicated in

CS 272133 Bl 4 kládě 3. Program potom čeká na stisknuti tlačítka klávesnice počítače _1 a po jeho stisknutí se zobrazí na obrazovce adresa následujícího programového kroku a nové obsahy. Program opět čeká na stisknutí tlačítka klávesnice počítače _1. Takto je možno postupně zobrazovat, trasovat celý program jednočipového mikroprocesoru.CS 272133 Bl 4 logs 3. The program then waits for the computer keyboard button _1 to be pressed, and after pressing it, the address of the next program step and the new contents are displayed on the screen. The program waits again for pressing the computer keyboard button _1. In this way, it is possible to gradually display, trace the entire program of a single-chip microprocessor.

Přiklad 5Example 5

Počítač j. vedle činnosti popsané v příkladě 1 provede po dosaženi předem zvoleného programového kroku jednočipového mikroprocesoru průběžné zobrazování stavů bitů požadovaných bran jednočipového mikroprocesoru, popřípadě axpandérů.In addition to the operation described in Example 1, the computer performs, after reaching the preselected program step of the single-chip microprocessor, a continuous display of the bit states of the required gates of the single-chip microprocessor or axpanders.

Příklad 6Example 6

Počítač J. nahraje odladěný program jednočipového mikroprocesoru do statické RAM paměti,1, která je součásti zapojení podle vynálezu. Obvod 2 s jednočipovým mikroprocesorem je po dobu tohoto nahrávání programu odpojen od zdroje 26 napájecího napětí,' aby neovlivňoval nahrávání. V dalším kroku počítač 1. odpojí všechny obslužné obvody zapojení podle vynálezu a propojí statickou RAM paměť 12 s obvodem 2 s jednočipovým mikroprocesorem, čímž zajisti provoz tohoto obvodu v reálném čase.The computer J. loads the debugged program of the single-chip microprocessor into the static RAM memory 1 , which is a part of the circuit according to the invention. The single-chip microprocessor circuit 2 is disconnected from the supply voltage source 26 during this program recording so as not to affect the recording. In the next step, the computer 1 disconnects all the operating circuits of the circuit according to the invention and connects the static RAM memory 12 to the circuit 2 with a single-chip microprocessor, thus ensuring the operation of this circuit in real time.

Claims (1)

Zapojeni pro spolupráci počítače s obvodem obsahujícím jednočipový mikroprocesor, vyznačující se tím, že mezi vývod (B) počítače (1) a vývod (L) obvodu (2) s jednočipovým mikroprocesorem je zapojena sériová kombinace prvního D klopného obvodu (3) a třetího oddělovacího stupně (19)/ mezi vývody (C) (D) počítače (1) a vývody (Μ), (N) obvodu (2) s jednočipovým mikroprocesorem je zapojen druhý 0 klopný obvod (4) a sériová kombinace čtvrtého invertoru (17) a čtvrtého oddělovacího stupně (22); výstupy prvního D klopného obvodu (3) jsou připojeny na první vstupy prvního a druhého NAND obvodu (6)/ (7), druhé vstupy prvního a druhého NAND obvodu (6),! (7) jsou připojeny přes první invertor (5) na výstup třetího oddělovacího stupně (19) a přes první oddělovací stupeň (15) na vývod (C) počítače (X)/ výstup prvního NAND obvodu (6) je připojen k řídicímu vstupu prvního budiče sběrnice (8) a výstup druhého NAND obvodu (7) je připojen k řídicímu vstupu druhého budiče sběrnice (9)/ přičemž mezi vývody (E) počítače (1) a vývody (0) obvodu (2) s jednočipovým mikroprocesorem je zapojen první budič sběrnice (8) a mezi vývody (F) počítače (1) a vývody (O) obvodu (2) s jednočipovým mikroprocesorem je zapojen druhý budič sběrnice (9)/ mezi vývody (H) počítače (1) a vývody (Ó) obvodu (2) s jednočipovým mikroprocesorem je zapojen první střadač (10) a mezi vývody (H) počítače (1) a vývody (P) obvodu (2) s jednočipovým mikroprocesorem je zapojen třetí budič sběrnice (11),' vývod (6) počítače (1) je připojen k řídicímu vstupu prvního střadače (10) a přes třetí NAND obvod (18) je připojen k řídicímu vstupu třetího budiče sběrnice (11), druhý vstup NAND obvodu (18) je připojen na výstup druhého oddělovacího stupně (17)/ vzorkovací vstup prvního střadače (10) je připojen přes šestý invertor (23) k vývodu (R) obvodu (2) s jednočipovým mikroprocesorem/ vývod (C) počítače (1) je připojen přes čtvrtý invertor (16) na druhý vstup čtvrtého NAND obvodu (21), jehož první vstup je připojen přes pátý invertor (20) na vývod (L) obvodu (2) s jednočipovým mikroprocesorem,1 výstup čtvrtého NAND obvodu (21) je připojen na vstup výběru obvodu RAM paměti (12) a na vývod (□) počítače (i),' vývod (A) počítače (1) je připojen přes druhý invertor (13) na relé (24) a přes třetí invertor (14) na vstup řízeni směru přenosu třetího budiče sběrnice (11) a zároveň je připojen na vstup uvolněni zápisu RAM paměti (12), k RAM paměti (12) je připojen vývod (I) počítače (1) a vývody (0)/ (P)/ (Q) obvodu (2) s jednočipovým mikroproCS 272133 cesorem,' mezi vývody (L) a (T) obvodu (2) s Jednočipovým mikroprocesorem Je zapojena dioda (25) a mezi vývod (T) obvodu (2) s jednočipovým mikroprocesorem a zdroj (26) napájecího napětí Jsou zapojeny rozpojovací kontakty relé (24), počítač (1) je vývodem (K) spojen s vývodem (S) obvodu (2) s jednočipovým mikroprocesorem mezi vývody (P) a (Q) obvodu (2) s jednočipovým mikroprocesorem je zapojen druhý střadač (27) a Jeho řidiči vstup je připojen k vývodu (N) obvodu (2) s jednočipovým mikroprocesorem.Circuit for cooperation of a computer with a circuit containing a single-chip microprocessor, characterized in that a series combination of a first D flip-flop (3) and a third isolating circuit is connected between the terminal (B) of the computer (1) and the terminal (L) of the circuit (2) with a single-chip microprocessor. stage (19) / between the terminals (C) (D) of the computer (1) and the terminals (Μ), (N) of the circuit (2) with a single-chip microprocessor is connected a second 0 flip-flop circuit (4) and a series combination of a fourth inverter (17) and a fourth separation stage (22); the outputs of the first D flip-flop (3) are connected to the first inputs of the first and second NAND circuits (6) / (7), the second inputs of the first and second NAND circuits (6),! (7) are connected via the first inverter (5) to the output of the third isolating stage (19) and via the first separating stage (15) to the output (C) of the computer (X) / the output of the first NAND circuit (6) is connected to the control input of the first the bus driver (8) and the output of the second NAND circuit (7) is connected to the control input of the second bus driver (9) / wherein the first one is connected between the terminals (E) of the computer (1) and the terminals (0) bus driver (8) and a second bus driver (9) is connected between the terminals (F) of the computer (1) and the terminals (O) of the circuit (2) with a single-chip microprocessor / between the terminals (H) of the computer (1) and the terminals (Ó) circuit (2) with a single-chip microprocessor, a first accumulator (10) is connected and a third bus driver (11), terminal (6) is connected between the terminals (H) of the computer (1) and the terminals (P) of the circuit (2) with a single-chip microprocessor. computer (1) is connected to the control input of the first accumulator (10) and via the third NAND circuit (18) is connected to the control input of the third bus driver (11), the second NAND input of the circuit (18) is connected to the output of the second separation stage (17) / the sampling input of the first accumulator (10) is connected via a sixth inverter (23) to the terminal (R) of the circuit (2) with single-chip microprocessor / terminal (C) of the computer (1). ) is connected via a fourth inverter (16) to the second input of the fourth NAND circuit (21), the first input of which is connected via a fifth inverter (20) to the terminal (L) of the single chip chip microprocessor (2), 1 output of the fourth NAND circuit (21). ) is connected to the RAM circuit selection input (12) and to the terminal (□) of the computer (i), the terminal (A) of the computer (1) is connected via a second inverter (13) to the relay (24) and via a third inverter ( 14) to the input of control of the direction of transmission of the third bus driver (11) and at the same time it is connected to the write release input of RAM memory (12), to RAM memory (12) is connected terminal (I) of computer (1) and terminals (0) / ( P) / (Q) of circuit (2) with single-chip microprocessor, between the terminals (L) and (T) of circuit (2) with single-chip microprocessor. A diode (25) is connected and between the terminal (T) of circuit (2) with single-chip microprocessor and supply voltage source (26) The disconnecting contacts of the relay (24) are connected, the computer (1) is connected by terminal (K) to terminal (S) of circuit (2) with single-chip microprocessor between terminals (P) and (Q) (2) a second accumulator (27) is connected to the single-chip microprocessor and its driver input is connected to the output (N) of the circuit (2) with the single-chip microprocessor.
CS886781A 1988-10-13 1988-10-13 Connected to cooperate with a circuitry containing a single-chip microprocessor CS272133B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CS886781A CS272133B1 (en) 1988-10-13 1988-10-13 Connected to cooperate with a circuitry containing a single-chip microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CS886781A CS272133B1 (en) 1988-10-13 1988-10-13 Connected to cooperate with a circuitry containing a single-chip microprocessor

Publications (2)

Publication Number Publication Date
CS678188A1 CS678188A1 (en) 1990-04-11
CS272133B1 true CS272133B1 (en) 1991-01-15

Family

ID=5415616

Family Applications (1)

Application Number Title Priority Date Filing Date
CS886781A CS272133B1 (en) 1988-10-13 1988-10-13 Connected to cooperate with a circuitry containing a single-chip microprocessor

Country Status (1)

Country Link
CS (1) CS272133B1 (en)

Also Published As

Publication number Publication date
CS678188A1 (en) 1990-04-11

Similar Documents

Publication Publication Date Title
US4349870A (en) Microcomputer with programmable multi-function port
US4196386A (en) Method and portable apparatus for testing digital printed circuit boards
IES990080A2 (en) Integrated circuit with embedded emulator and emulation system for use with such an integrated circuit
US5021996A (en) Device for use in developing and testing a one-chip microcomputer
CN112099856A (en) Embedded system and system startup method
JPH02181677A (en) Test mode switching system for lsi
US6157185A (en) Miltiple bus switching and testing system
CN110659056B (en) DSP program online updating circuit
KR0184154B1 (en) One chip micro-computer unit
US4355356A (en) Process and data system using data qualifiers
CN115712063B (en) Detection method and device of intelligent circuit breaker, electronic equipment and intelligent circuit breaker
CN120492214B (en) Server and control method thereof
JPH09160802A (en) Test equipment
JPS5875203A (en) Sequence controller of double structure
JP3074978B2 (en) Emulation device
KR940007479Y1 (en) Data transfer circuit between multiple processors
JPH02103482A (en) Integrated circuit device
KR850001380B1 (en) Interface circuit for fault detection and development of products using CPU
JPH01239485A (en) Large-scale integrated circuit
JP2760742B2 (en) Data bus connection device with different number of bits
KR20000005448U (en) Processor redundancy system
KR940009428B1 (en) Computer link unit with common memory
JPH01101478A (en) Integrated circuit
JPH05241900A (en) Program operation confirmation system of computer
JPS60221841A (en) Integrated circuit which can execute test easily