MICROPROCESSOR SYSTEM

Abstract: The microprocessor system comprises a combination logic circuit which is provided with five inputs and two outputs. At least one selected output address bus line of the microprocessor is connected to the first input of the combination logic circuit the memory read control output thereof is connected to the second input of the combination logic circuit and the read control input of the memory, the peripheral device read control output thereof is connected to the fourth input of the combination logic circuit and the peripheral device write control output thereof is connected to the fifth input of the combination logic circuit. The first output of the combination logic circuit is connected to the write control input of the peripheral device. The combination logic circuit is constructed so that when the first input thereof is in logic "true" state, the logic slate of the first output thereof is identical with the logic OR-relation of the logic states of the second and fourth inputs thereof, the logic state of the second output is identical with the logic OR-relation of the logic states of the third and fifth inputs; when the first output thereof is in logic "false" state, the logic state of the first output is identical with the logic state of the fourth input and the logic state of the second output is identical with the logic state of the fifth input.

Description: - / - MICROPROCESSOR SYSTEM This invention relates to a microprocessor system comprising a microprocessor forming a central processor unit which is provided with control out¬ puts for memory read,; memory write,: peripheral device read and peripheral device write,; comprising further¬ more a memory and a peripheral device provided with read and write control inputs connected to the micro¬ processor via a data bus,- an address bus and a control bus. Such a microprocessor system is described for example in the INTEL 8080 Microcomputer Systems User's Manual, Volume 9,, 1975 [see Figures 3-9 in Pages 3-8] . In this system the memory read and memory write,, peripheral device read and peripheral device write outputs of the microprocessor are connected to the corresponding read and write inputs of the memory elements and peripheral devices. The micro¬ processor controls the peripheral devices by means of peripheral device handler instructions created especially for this purpose. This solution is dis¬ advantageous in the respect that in the system the peripheral devices performing the same function but having oecessarily different addresses can not be addressed and handled with a single program - hence a peripheral device handler instruction may refer only to a single peripheral device address - , consequently these programs should be multiplicat A further disadvantage is that by means of the peripheral device handler instructions the data are accessible only through a special register, i.e. the so called accumulator register of the microprocessor. In the abovementioned publication the authors attempted to eliminate this disadvantage by using a system shown in Figures 3-10an Pages 3-9. In this solution the peripheral devices are selected via the memory read and memory write outputs gated with the most significant bit of the address bus,; rather than via the peripheral device read and write outputs of the microprocessor. In this way, the peripheral devices can be addressed in the system as memory cells, and in the program the peripheral devices should be handled with references to these memory cell addresses. This solution has the disadvantage, ! on one hand that memory reference instructions having longer execution time and greater memory area requirement should be used,i even when it would be unnecessary,: for example when peripheral devices are to be handled which are 'unique in the system concerning their types. A further disadvantage lies, on the other hand,- in that in this case the peripheral device handler instructions of the microprocessor can not be used at all,, therefore the programs containing such types of instructions - which programs are developed up to now in a great number - can not be used without modifications. These disadvantages restrict to a great extent the usa¬ bility of such systems, liπ±t their application areas. The aim of the present invention is to eliminate these disadvantages. The object of the present invention is to provide a microprocessor system in which the memory require¬ ment and run time of the programs are minimal, and which at the same time allows the execution of programs made for known systems without modifications, According to the present invention a micropro¬ cessor system comprises a microprocessor forming the central processor unit provided with memory read and memory write control outputs and peripheral device control read and peripheral device write outputs,! comprises furthermore a peripheral device and a memory connec¬ ted to the microprocessor vka data-, address- and control buses and provided with read and write cont- rol inputs/' said, microprocessor system comprises a combination logic circuit provided with a first,: second,, third,, fourth and fifth inputs and a first and second outputs; the memory read control output of the microprocessor is connected with the second input of the first combination logic circuit and with the read control input of said memory,, the memory write control output of the microprocessor is connected with the third input of the first combina¬ tion logic circuit and with the write control input of said memory, the peripheral device read control output of the microprocessor is connected with the fourth input of the first combination logic circuit, the peripheral device write control output of the microprocessor is connected with the fifth input of the first combination logic circuit; at least one selected address bus line of the output address bus lines of the microprocessor is connected with the first input of the first combination logic circuit,- the first output of the first combination logic ' circuit is connected with the read control input of said peripheral device, its second output with the write control input of said peripheral device; and the first combination logic circuit is constructed - in a manner known in itself - so that in ^ the case of the logic ."truth." state of the first input of the first logic circuit, 1 the logic -state of the first out¬ put thereof is identical with the logic OR-relation of the logic states of the second and fourth inputs thereof, and the logic state of the second output thereof is identical with the logic OR-relation of the logic states of the third and fifth outputs thereof,; and in the case of the logic ."false" state of the first input thereof, the logic state of the first output is identical with the logic state of the fourth input,, the logic state of the second out- put thereof is identical with the logic state of the fifth input. According to the present invention,, in a pre¬ ferred embodiment the microprocessor system compris¬ es a second combination logic circuit provided with a first,, second and third inputs and a first and second outputs; the first input is connected with at least one address bus line selected from the output address bus lines of the microprocessor,; the second input is connected with the memory read control out- put of the microprocessor,, the third input is connect¬ ed with the memory write control output of the micro¬ processor, the first output is connected with the memory read control input thereof and the second output with the memory write control input; and the second combination logic circuit is constructed - in a manner known in itself - so that in the case of the logic "false" state of the first input thereof the logic state of the first output is identical with the logic state of the second input,: and the logic state of the second output is identical with the logic state of the third input,! in the case of the logic "truth" state of the first input,; the logic states of the first and second outputs a re ,- indepen¬ dently from the signals applied to the second and third inputs,, logic ."false'j-*. The system according to the invention allows a data transmission between the microprocessor and the peripheral devices during the run time,, in accordance with the current demands at any time either in the usual way, : or in such a way that the peripheral devices are used as memories,, obtaining by this an optimal run time and memory occupation. According to the invention, the programs made for known systemscan be used in our system as well, in addition,; it allows more adaptive programming,; also the specific costs are lower. ^ The invention will now be described, by way of non-limitative example only,, with reference to the accompanying drawing,! on which the block-diagram of the microprocessor systen according to the inven¬ tion is shown. In the Figure the system comprises a micro¬ processor 1, a memory 2 and a peripheral device 3. For the sake of simplicity,] both the memory 2 and the peripheral device 3 are demonstrated as single units. In practice these consist naturally of several • (generally a great number of) units,, this fact, how¬ ever, is beside the mark. The microprocessor 1 is provided with data bus lines 11, which are connected with both the data bus lines 21 of the memory 2 and the data bus lines 31 of the peripheral device 3. At the same time the micr processor 1 is provided with output address bus lines 22, which are connected with the input address bus lines 22 of the memory 2 and with the input address bus lines 32 of the peripheral device 3. From among the output address bug lines 12 of the microprocessor 1 an arbitrarily selected address bus line 13 is connected with a first input 43 of a first combination logic circuit 4 and with a first in put 53 of a second combination logic circuit 5. The microprocessor 1 is provided with a memory read control output 14,. a memory write control output 15,: a peripheral device read co-ntrol- output 16 and a peripheral device write control output 17,j these are partsof the control bus lines of the microprocessor 1, the peripheral device 3,* the first combination logic circuit 4 and the second combination logic circuit 5. The output 14 is connected to the input 56 of the second combination logic circuit 5 and to the second - input 44 of the first combination logic circuit 4. The output 15 is connected to the third input 57 of the second combination logic circuit 5 and to the third input 45 of the first combination logic circuit 4. The output 16 is connected to the fourth input 48 of the first combination logic circuit 4, the output 17 to the fifth input 49 of the first combination logic circuit 4. The microprocessor 1 is constructed so that,* at the same time,, only one of the outputs 14, 15, 16 and 17 thereof can be in logic "true" state. The memory 2 is provided with a read control input 24 and a write control input 25. The input 24 is connected to the first output 54 of the second a combination logic circuit 5,j the input 25 is conπect- ed to the second input 55 of the second combination logic circuit 5. The peripheral device 3 is provided with a read control input 36 and a write controi input 37. The input 36 is connected to the first output 46 of the first combination logic circuit 4 and the input 37 to the second output 47 of the first combination logic circuit 4. The microprocessor system according to the present invention is different fro the known systems in the usage of the first combination logic circuit 4 and the second combination logic circuit 5,' i.e. in the structure of the connection thereof with the microprocessor l,j the memory 2 and the peripheral device 3. In the shown example the data tra ns ission via the data bus lines 11,' 21 and 31 of the micro¬ processor system is carried out in the usual way, and the status of the address bus lines 12,; 22 and 32 define too in the usual way the numeric identi- fiersof the elements in the system, ; i.e. the address¬ es thereof. The difference between the known systems and the microprocessor system according to the present invention lies in the followings: The logic "true" state of the selected output address line 13 of the microprocessor 1 disables via the first input 53 of the second combination logic circuit 5 the appearance of the signals of the second input 56 and the third input 57 of the second combination logic circuit on .the first output 54 and the second output 55 lected address line 13 enables via the first input 43 of the first combination logic circuit 4 the appearance of the signals of the second input 44 and the third input 45 on the first output 46 ^nd the second, _ output 47. The signals of the fourth input 48 and the fifth input 49 of the first combination logic circuit 4 appears in any case,] independently from the logic state of the selected address bus line 13,; on the first output 46 and the second output 47. In this way ?J the microprocessor controls the peripheral device 3 so that besides the input/output instructions memory reference instructions referring to addresses,, on which the logic state of the select¬ ed address bus line 13 is "true",j are also effective. However,, when the logic state of the selected _ output address bus line 13 of the microprocessor (and of the first input 53 of the second combination logic circuit 5) is "false.",; the signals of the second input 56 and the third input 57 of the second combination logic circuit 5 appear on the first out- put 54 and the second output 55,, at the same time the same selected address bus line 13 disables via the first input 43 of the first combination logic circuit 4 the appearance of the signals of the second input 44 and the third input 45 on the first output - 46 and the second output 47. In this way,: the system is capable to transfer data between the microprocesso 1 and the memory 2 and peripheral device 3 in the usual way.

Claims: CLAIMS : 1. A microprocessor system comprising a micro¬ processor forming a central processor unit and provided with control outputs for memory read,! memory write,; peripheral device read and peripheral device write,. comprising furthermore a memory and a peripheral device provided with read and write control inputs, connected to said microprocessor via a data bus,, an address bus and a control JDUS,, characterised in that said microprocessor system comprises a first combiπa- tion logic circuit (4) provided with a first* input (43),. a second input (44). a third input (45),. a fourth input (48) and a fifth input (49), j a first output (46) and a second output (47); the memory read control output (14) of said microprocessor (l) is connected to the second input (44) of said first combination * logic circuit (4) and the read control input (24) of said memory (2), the memory write control output (15) of said microprocessor (1) is connected to the third input (45) of said first combination logic circuit (4) and the write control input (25) of said memory (2), ; the peripheral device read control output (16) of said microprocessor (1) is connected to the fourth input (48) of said first combination logic circuit (4),. the peripheral device write control output (17) of'said microprocessor (1) is connected to the fifth input (49) of said combina ¬ tion logic circuit (4); at least one selected address bus line (13) from among the output address bus lines (12) of said microprocessor (l) is connected to the first input (43) of the first combination logic - circuit (4); the first output (46) of the first combination logic circuit (4) is connected to the read control input (36) of said peripheral device 3 the second output (47) thereof is connected to the write control output (37) of the peripheral device (3);and the first combination logic circuit' - in a known manner - is constructed so that in the case when the logic state of the first input (43) thereof is "true",, the logic state of the first output (46) is identical with the logic ."OR"-relation, of the logic states of the second input * {44) and the ourth input (48) thereof,, the logic state of the second output (47 is identical with the logic ."OR"- relation of the third input (45) and the fifth input (49),. in the case when the logic -state of the*.first input (43) thereof is logic " ' f-alse",j the logic state of the first output (46 is identical with the logic state of the fourth input (48) and the logic state of the second output (47) is identical with the logic state of the fifth input (49) thereof. 2. A microprocessor system according to claim 1, characterised in comprising a second combination .logic circuit (5) provided with a first input (53),, a second input (56) and a third input (57), a first output (54) and a secoπd_ output (55); the first in¬ put (53) is connected to the at least one selected address bus line (13) from among the output address bus lines (12) of said microprocessor (l),. the second input (56) is connected to the memory read control output (14) of said microprocessor (l), the third input (57) -is connected to memory write control output (15) of said microprocessor (l)»; the first output (54) - • is connected to the read control input (24) of said memory (2) the second output (55) is connected to the write control input (25) of said-memory (2) 3 , and said second combination logic circuit (5) is construct¬ ed - in a known manner - so that in the case when the logic state of the first input (53) thereof is logic "false", the logic state of the first output (54) is identical with the logic state of the second input (56) and the logic state of the second output (.55) is iden¬ tical with the logic state of the third input (57),, and in the case when the first ---input (53) is _in logic ."true 1 state,, the logic states of the first -output (54) and the second output (55)are„ independently from the logic states of the second input (56) and the third input (57), logic "false". -

Inventors: ADONYI I, FARKAS E, HEGEDUES G, KOERMENDY A, MOGYOROSI I, MOLNAR G, SASS S, SCHOELLER L, TAKACS L, VITEZ G
Applicants: ADONYI I, FARKAS E, HEGEDUES G, KOERMENDY A, MOGYOROSI I, MOLNAR G, SASS S, SCHOELLER L, TAKACS L, TELEFONGYAR, VITEZ G
Application year: 1981
Main classification: G06F15
IPC codes: G06F12, G06F15