Herein disclosed is a digital semiconductor integrated circuit which is equipped with: a digital signal input circuit; an analog signal input circuit made receptive of an analog signal for feeing out a digital signal corresponding to said analog signal; and a common external terminal connected commonly with the input terminals of said digital signal input circuit and said analog signal input circuit. By the preparation with the use of a suitable switch circuit, the aforementioned common external terminal can be used as either an analog signal input terminal or a digital signal input terminal. As a result, the number of the external output terminals required for the aforementioned semiconductor integrated circuit can be reduced.

Patent
   RE35197
Priority
Feb 20 1980
Filed
Dec 20 1989
Issued
Apr 02 1996
Expiry
Apr 02 2013
Assg.orig
Entity
Large
1
16
all paid
1. A microprocessor having a register, an internal bus, an arithmetic and logic unit, a plurality of external terminals and a control circuit, said microprocessor comprising:
a digital signal input circuit having at least one digital signal input node coupled to one or more of said plurality of external terminals and at least one output node;
an analog signal input circuit having at least one analog signal input node and at least one output node coupled to said internal bus;
first switching means for transmitting to said analog signal input node an analog signal from at least one of said external terminals coupled to said digital signal input circuit;
second switching means for selectively coupling said output node of said digital signal input circuit to said internal bus, and
address decoder means coupled to said first and second switching means and responsive to address signals for selectively activating one of said first and second switching means.
19. A microprocessor having a register, an internal bus, an arithmetic and logic unit, a plurality of external terminals . .and control means,.!. said microprocessor comprising:
a digital signal input circuit having at least one digital signal input node coupled to one or more of said plurality of external terminals;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals;
at least one of said external terminals being coupled in common to said analog and said digital signal input circuits;
said digital signal input circuit having first switching means for selectively coupled said digital signal input node to said internal bus;
said analog signal input circuit having second switching means for selectively coupling said analog signal input node to said internal bus; and
address decoder means coupled to receive an address signal and for controlling the switching states of said first and second switching means . .being controlled by said control means.!..
23. In a digital control system having a controllable device having its operation controlled by digital control signals and a microprocessor receptive of both an analog signal and a digital signal for generating said digital control signals, the improvement comprising:
a microprocessor having a register, an internal bus, an arithmetic and logic unit, an address decoder circuit coupled to receive an address signal and a plurality of external terminals;
a digital signal input circuit having at least one digital signal node coupled to one or more of said plurality of external terminals;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals;
at least one of said external terminals being coupled in common to said analog and said digital signal input circuits;
said digital signal input circuit has first switching means for selectively coupling said digital signal input node to said internal bus;
said analog signal input circuit . .bus.!. has second switching means for selectively coupling said analog signal input node to said internal bus; and
the switching states of said first and second switching means being controlled by said address decoder circuit.
7. In a microprocessor having a register, an internal bus, an arithmetic and logic unit, a control circuit and a plurality of external terminals, said microprocessor comprising:
a digital signal input circuit having at least one digital signal input node coupled to one or more of said plurality of external terminals and at least one output node;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals and at least one output node;
at least one of said external terminals being coupled commonly with the analog signal input node of said analog signal input circuit and the digital signal input node of said digital signal input circuit;
first switching means for coupling the output node of said digital signal input circuit to said internal bus;
second switching means for coupling the output node of said analog signal input circuit to said internal bus; and
. .wherein.!. address decoder means coupled to receive an address signal and for controlling said first and second switching means so that each of said first and second switching means does not couple output nodes of said digital and said analog signal input circuits to said internal bus at the same time.
12. In a microprocessor having a register, an internal bus, an arithmetic and logic unit, a control unit and a plurality of external terminals, said microprocessor comprising:
a digital signal input output circuit having at least one digital signal input output node coupled to one or more of said plurality of external terminals and at least one output node;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals and at least one output node;
at least one of said external terminals being coupled commonly with the analog signal input node of said analog signal input circuit and the digital signal input output node of said digital signal input output circuit;
first switching means for coupling the output node of said digital signal input output circuit to said internal bus;
second switching means for coupling the output node of said analog signal input circuit to said internal bus; and
. .wherein.!. an address decoder circuit coupled to receive an address signal and for controlling said first and second switching means so that each of said first and second switching means does not couple output nodes of said digital signal input output circuit and said analog signal input circuits to said internal bus at the same time.
27. A one-chip monolithic semiconductor integrated circuit including a microprocessor, RAM and ROM, the microprocessor including an internal data bus having data lines, an arithmetic and logic unit, and a plurality of external terminals, said microprocessor further comprising:
a digital signal input circuit having first output lines and having a plurality of digital signal first input lines respectively coupled to said plurality of external terminals;
an analog signal input circuit having an analog signal input line coupled to one of said plurality of external terminals in common with one of said digital signal first input lines;
said first output lines of said digital signal input circuit being respectively coupled to at least some of the data lines of said internal data bus;
said digital signal input circuit having digital signal storage means for storing digital signals received from said external terminals prior to said digital signals being placed on said data lines of said internal data bus;
switches between said digital signal storage means and said internal data bus, and being selectively activated by first switching signals applied to said switches; and
address decoder means connected to said switches for decoding address signals and producing the first selecting signals for selectively activating and deactivating said switches according to the address signals.
5. In a digital control system having a controllable device having its operation controlled by digital control signals and a microprocessor receptive of both an analog signal and a digital signal for generating said digital control signals, the improvement comprising:
a microprocessor having a register, an internal bus, an arithmetic and logic unit, a control circuit and a plurality of external terminals;
a digital signal input circuit having at least one digital signal input node coupled to one or more of said plurality of external terminals and at least one output node;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals and at least one output node;
at least one of said external terminals being coupled commonly with the analog signal input node of said analog signal input circuit and the digital signal input node of said digital signal input circuit;
first switching means for coupling the output node of said digital signal input circuit to said internal bus;
second switching means for coupling the output node of said analog signal input circuit to said internal bus; and
. .wherein.!. address decoder means coupled to receive an address signal and for controlling said first and second switching means so that each of said first and second switching means does not couple output nodes of said digital and said analog signal input circuits to said internal bus at the same time.
17. In a digital control system having a controllable device having its operation controlled by digital control signals; and a microprocessor receptive of both an analog signal and a digital signal for generating said digital control signals, the improvement comprising:
a microprocessor having a register, an internal bus, an arithmetic and logic unit, a control circuit and a plurality of external terminals;
a digital signal input output circuit having at least one digital signal input output node coupled to one or more of said plurality of external terminals and at least one output node;
an analog signal input circuit having at least one analog signal input node coupled to one or more of said plurality of external terminals and at least one output node;
at least one of said external terminals being coupled commonly with the analog signal input node of said analog signal input circuit and the digital signal input output node of said digital signal input output circuit;
first switching means for coupling the output node of said digital signal input output circuit to said internal bus;
second switching means for coupling the output node of said analog signal input circuit to said internal bus; and
. .wherein.!. an address decoder circuit responsive to an address signal and for controlling said first and second switching means so that each of said first and second switching means does not couple output nodes of said digital signal input output circuit and said analog signal input circuits to said internal bus at the same time.
2. A microprocessor according to claim 1 wherein said analog signal input circuit comprises a converter for converting an analog signal on said analog signal input node to a digital signal.
3. A microprocessor according to claim 2 wherein said analog signal input circuit further comprises a register to be coupled to an output node of said converter.
4. A microprocessor according to claims 2 or 3 wherein said digital signal input circuit includes a register coupled to said second switching means.
6. A digital control system according to claim 5 wherein said analog signal input circuit comprises a converter for converting an analog signal over said analog signal input node to digital signal.
8. A microprocessor according to claim 7 wherein said analog signal input circuit comprises a converter for converting an analog signal over said analog signal input node to a digital signal.
9. A microprocessor according to claim 8 wherein said analog signal input circuit has a plurality of analog signal input nodes, and an analog multiplexer for transmitting one of analog input signals to be fed to said at least one analog signal input node to said converter.
10. A microprocessor . .acocrding.!. according to claim 9 wherein said analog input circuit comprises a register to be coupled to an output node of said converter.
11. A microprocessor according to claims 8, 9 or 10 wherein said digital input circuit includes a register coupled to said first switching means.
13. A microprocessor according to claim 12 wherein said analog signal input circuit comprises a converter for converting an analog signal over said analog signal input node to a digital signal.
14. A microprocessor according to claim 13 wherein said analog signal input circuit has a plurality of analog signal input nodes, and an analog multiplexer for transmitting one of analog input signals to be fed to said analog signal input nodes of said converter.
15. A microprocessor according to claim 14 wherein said analog input circuit comprises a register to be coupled to an output node of said converter.
16. A microprocessor according to claim 13, 14 or 15 wherein said digital input output circuit includes a register coupled to said first switching means.
18. A digital control system according to claim 17 wherein said analog signal input circuit comprises a converter for converting an analog signal over said analog signal input node to digital signal.
20. A microprocessor according to claim 19 wherein said analog signal input circuit comprises a converter for converting an analog signal over said analog signal input node to a digital signal.
21. A microprocessor according to claim 20 wherein said analog signal input circuit has a plurality of analog signal input nodes, and an analog multiplexer for transmitting one of analog input signals to be fed to said analog signal input nodes to said converter.
22. A microprocessor according to claim 21 wherein said analog signal input circuit comprises a register to be coupled to an output node of said converter.
24. A digital control system according to claim 23 wherein said analog signal input circuits comprises a converter for converting an analog signal over said analog signal input node to digital signal.
25. A . .microprocessor.!. digital control system according to claim 24 wherein said analog signal input circuit has a plurality of analog signal input nodes, and an analog multiplexer for transmitting one of analog input signals to be fed to said analog signal input nodes to said converter.
26. A . .microcomputer.!. digital control system according to claim 25 wherein said analog input circuit comprises a register to be coupled to an output node of said converter.
28. A one-chip monolithic semiconductor integrated circuit according to claim 27, wherein said digital signal storage means is a register; and
further including an input buffer between said external terminals and said digital signal storage means. 29. A one-chip monolithic semiconductor integrated circuit according to claim 27, wherein said digital signal storage means is a register; and
further including input buffer means between said external terminals and said digital signal storage means. 30. A one-chip monolithic semiconductor integrated circuit according to claim 27, further including a digital signal output circuit having second input lines coupled to at least some of said data lines of said internal data bus for carrying digital output signals and having second output lines;
said digital signal output circuit having output buffers between said second output lines and said external terminals in common with said digital signal first input lines for buffering digital output signals; and
said output buffers being selectively activated for passing the digital output signals to said external terminals and being selectively deactivated for isolating said second output lines from said external terminals. 31. A one-chip monolithic semiconductor integrated circuit according to claim 30, wherein said digital signal output circuit has digital signal output storage means coupled to said second input lines for storing digital output signals received from said internal data bus; and
wherein said digital signal output circuit further includes switches between said internal data bus and said digital signal output storage means. 32. A one-chip monolithic semiconductor integrated circuit according to claim 31, wherein said second output lines of said digital signal output circuit are equal in number to and in pairs with respective ones of said digital signal first input lines, with each pair of digital signal first input line and second output line being coupled to
the same external terminal. 33. A one-chip monolithic semiconductor integrated circuit according to claim 30, wherein said second input lines of said digital signal output circuit are equal in number to and in pairs with respective ones of said first output lines of said digital signal input circuit, with each pair of first output lines of said digital signal input circuit and second input lines of said digital signal output circuit being coupled to the same data line of said internal data bus. 34. A one-chip monolithic semiconductor integrated circuit according to claim 33, wherein said second output lines of said digital signal output circuit are equal in number to and in pairs with respective ones of said digital signal first input lines, with each pair of digital signal first input line and second output line being coupled to the same external terminal. 35. A one-chip monolithic semiconductor integrated circuit according to claim 34, wherein said digital signal output circuit has digital signal output storage means coupled to said second input lines for storing digital output signals received from said internal data bus; and
wherein said digital signal output circuit further includes switches between said internal data bus and said digital signal output storage means. 36. A one-chip monolithic semiconductor integrated circuit according to claim 30, wherein said second output lines of said digital signal output circuit are equal in number to and in pairs with respective ones of said digital signal first input lines, with each pair of digital signal first input line and second output line being coupled to the same external terminal. 37. A one-chip monolithic semiconductor integrated circuit according to claim 30, wherein said digital signal storage means is a register; and
further including input buffer means between said external terminals and said digital signal storage means. 38. A one-chip monolithic semiconductor integrated circuit according to claim 27, wherein said analog signal input circuit includes a multiplexer having a plurality of input multiplexer lines respectively connected to said plurality of external terminals in common with said digital signal first input lines, having at least one multiplexer output line, and having at least one multiplexer select line for receiving a select signal to select only one of said input multiplexer lines to be directly connected to said multiplexer output line; and
an analog to digital converter having an input connected to said multiplexer output line and further having a plurality of digital outputs. 39. A one-chip monolithic semiconductor integrated circuit according to claim 38, wherein said multiplexer has a plurality of multiplexer select lines and only one multiplexer output line; and
a decoder having a plurality of output lines respectively connected to said multiplexer select lines and a plurality of encoded signal input lines. 40. A one-chip monolithic semiconductor integrated circuit according to claim 39, further including a latching circuit coupled to said encoded signal input lines, decoder switches between said latching circuit and said internal data bus, and said decoder switches having a switch activating line directly connected to said address decoder means. 41. A one-chip monolithic semiconductor integrated circuit according to claim 40, wherein said address decoder means produces second selecting signals, said switch activating line of said decoder switches is directly connected to said address decoder means to receive the second selecting signals. 42. A one-chip monolithic semiconductor integrated circuit according to claim 41, further including a storage directly connected to receive as inputs the digital outputs of said analog to digital converter;
a plurality of switches respectively connected between outputs of said storage and said data lines, and each having at least one activating, deactivating line connected to said address decoder means. 43. A one-chip monolithic semiconductor integrated circuit according to claim 42, further including a digital signal output circuit having second input lines coupled to at least some of said data lines of said internal data bus for carrying digital output signals and having output lines;
said digital signal output circuit having output buffers between said second output lines and said external terminals in common with said digital signal first input lines for buffering digital output signals; and
said output buffers being selectively activated for passing the digital output signals to said external terminals and being selectively deactivated for isolating said second output lines from said external
terminals. 44. A one-chip monolithic semiconductor integrated circuit according to claim 43, wherein said digital signal output circuit has digital signal output storage means coupled to said second input lines for storing digital output signals received from said internal data bus; and
wherein said digital signal output circuit further includes switches between said internal data bus and said digital signal output storage means. 45. A one-chip monolithic semiconductor integrated circuit according to claim 44, wherein said second output lines of said digital signal output circuit are equal in number to and in pairs with respective ones of said digital signal first input lines, with each pair of digital signal first input line and second output line being coupled to the same external terminal. 46. A one-chip monolithic semiconductor integrated circuit including a microprocessor, RAM and ROM, an internal data bus having data lines, an arithmetic and logic unit, and a plurality of external terminals, said microprocessor further comprising:
a digital signal input circuit having a plurality of digital signal input lines respectively coupled to said plurality of external terminals and having output lines;
an analog signal input circuit having an analog signal input line coupled to one of said plurality of external terminals in common with one of said digital signal input lines;
said output lines of said digital signal input circuit being respectively coupled to at least some of the data lines of said internal data bus;
a digital signal output circuit having digital signal output lines respectively coupled to said external terminals in common with said digital signal input lines and having input lines coupled to at least some of said data lines of said internal data bus for carrying digital output signals;
said digital signal output circuit including output buffer means for buffering the digital output signals;
said output buffer means being selectively activated for passing digital output signals to said external terminals and being selectively deactivated for isolating the digital output signals from said external terminals; and
address decoder means for receiving and decoding address signals to provide activating and deactivating digital signals to control activating and
deactivating of said output buffer means. 47. A one-chip monolithic semiconductor integrated circuit according to claim 46, wherein said digital signal output circuit further includes digital signal output storage means for storing the digital output signals received from said internal data bus, and output switches between said internal data bus and said digital signal output storage means; and
wherein said digital signal output lines are equal in number to and in pairs with respective ones of said digital signal input lines, with each pair of digital signal input line and digital signal output line being coupled to the same external terminal. 48. A one-chip monolithic semiconductor integrated circuit including a microprocessor, which includes an internal data bus having data lines, an arithmetic and logic unit, and a plurality of external terminals, said microprocessor further comprising:
a digital signal input circuit having a plurality of digital signal input lines respectively coupled to said plurality of external terminals and having output lines;
an analog signal input circuit having analog signal input lines coupled to said plurality of external terminals in common with one of said digital signal input lines of said digital signal input circuit;
said output lines of said digital signal input circuit being respectively coupled to at least some of the data lines of said internal data bus;
said analog input circuit including a multiplexer having a plurality of input multiplexer lines respectively connected to said plurality of external terminals in common with said digital signal input lines, having at least one multiplexer output line, and having multiplexer select lines for receiving select signals to select only one of said input multiplexer lines to be directly connected to said one multiplexer output line;
said analog input circuit further including an analog to digital converter having an input connected to said multiplexer output line and further having a plurality of digital outputs;
a decoder having a plurality of output lines respectively connected to said multiplexer select lines and a plurality of encoded signal input lines;
a latch circuit coupled to said encoded signal input lines;
a decoder switch between said latch circuit and said internal data bus, and having a switch activating line;
address decoder means for decoding address signals and producing a decoded output; and
said switch activating line of said decoder switch being directly connected to said address decoder means to receive the decoded output.
49. A one-chip monolithic semiconductor integrated circuit according to claim 48, further including a storage directly connected to receive as inputs the digital outputs of said analog to digital converter. 50. A one-chip monolithic semiconductor integrated circuit according to claim 48, including a plurality of switches respectively connected between said plurality of digital outputs of said analog to digital converter and different ones of said data lines, and each having at least one activating, deactivating line connected to said address decoder means. 51. A one-chip monolithic semiconductor integrated circuit including a microprocessor, which includes an internal data bus having data lines, an arithmetic and logic unit, and a plurality of external terminals, said microprocessor further comprising:
a digital signal input circuit having a plurality of digital signal input lines respectively coupled to said plurality of external terminals, and having output lines;
an analog signal input circuit having analog signal input lines coupled to said plurality of external terminals in common with said digital signal input lines;
said output lines of said digital signal input circuit being respectively coupled to at least some of the data lines of said internal data bus;
said analog input circuit including a multiplexer having a plurality of input multiplexer lines respectively connected to said plurality of external terminals in common with said digital signal input lines, having at least one multiplexer output line, and having multiplexer select lines for receiving select signals to select only one of said input multiplexer lines to be directly connected to said multiplexer output line;
said analog input circuit further including an analog to digital converter having an input connected to said multiplexer output line and further having a plurality of digital outputs;
a plurality of switches respectively connected between said plurality of digital outputs of said analog to digital converter and different ones of said data lines, and each having at least one activating, deactivating line;
address decoder means for decoding address signals and producing a decoded output; and
said activating, deactivating lines of said switches being directly connected to said address decoder means to receive the decoded output. 52. A one-chip monolithic semiconductor integrated circuit according to claim 51, further including a digital signal output circuit having output lines and having input lines coupled to at least some of said data lines of said internal data bus for carrying digital output signals;
output buffer means between said external terminals in common with said digital signal input lines and said output lines of said digital signal output circuit for buffering digital output signals;
said output buffer means being selectively activated for passing digital output signals to said external terminals and being selectively deactivated for isolating digital output signals from said external terminals;
a decoder having a plurality of output lines respectively connected to said multiplexer select lines and a plurality of encoded signal input lines;
a latching circuit coupled to said encoded signal input lines;
a decoder switch between said latching circuit and said internal data bus having a switch activating line; and
said switch activating line of said decoder switch being directly connected to said address decoder means to receive the decoded output.

This is a division of U.S. Ser. No. 587,524, filed Mar. 8, 1984; now U.S. Pat. No. 4,630,207 which is a continuation of U.S. Ser. No. 213,923, filed Feb. 5, 1981 now U.S. Pat. No. 4,451,891.

The present invention relates to a monolithic integrated circuit containing an analog to digital converter (which will be shortly referred to as the "A/D converter") for forming at least a part of a digital control system.

A digital control system can have its size reduced by using a semiconductor integrated circuit. Moreover, the digital control system can be made to exhibit a relatively high reliability by being enabled to reduce the number of the external wires of the semiconductor integrated circuit.

In order to make a system control of high quality possible, a control system such as a process control system (making use of a microprocessor) or a computing control system is made receptive of not only the signals of various kinds of sensors (which will be referred to as the "digital sensors") made operative of digital or pulse signals but also analog signals bearing much information through the A/D converter.

In this case, both an input circuit (i.e., a digital input circuit) for feeding from the data signal from a digital sensor to the data bus of a microprocessor and an input circuit (i.e., an analog input circuit) for feeding the data signal from an analog sensor to the aforementioned data bus after it has been converted into a digital signal are desired to be constructed of a one-chip monolithic semiconductor integrated circuit (which will be shortly referred to as the "monolithic IC" or "IC") in order partly to reduce the size of a device constructing the system and partly to reduce the number of the external wirings of that device, as has been described in the above.

Moreover, the aforementioned monolithic IC is desired to be so constructd that it can be applied to a variety of control systems.

By affording the general usability of the aforementioned monolithic IC, this monolithic IC can be used in a variety of different control systems so that the maintenance of the various control systems can be facilitated. Moreover, the change and development of the control system can also be facilitated.

In the usual monolithic IC, however, it should be noted that the number of the external terminals to be attached to the package thereof is limited by the size of that package, for example.

In case the number of the external terminals to be attached to the IC package is limited so that the numbers of both analog and digital input terminals are accordingly limited, the monolithic IC has its applicability limited to a restricted control system.

For instance, the monolithic IC, which has its digital input terminals relatively reduced by the provision of a relatively great number of the analog input terminals, is difficult to use in a control system having a relatively great number of digital input signals. On the contrary, the monolithic IC, which has its analog input terminals relatively reduced by the provision of a relatively great number of the digital input terminals, is difficult to use in the control system which is fed with a relatively great number of analog input signals.

The monolithic IC having the construction thus far described makes it difficult to change the control systems.

For examples, the output data signal from the analog sensor has its level made proportional to the physical quantity to be detected so that it can bear more information than that output data signal from the digital sensor, which is made to correspond to whether the physical quantity to be detected exceeds a certain threshold level or not. Therefore, the control system developed in advance can be easily changed, if the digital sensor can be replaced by the analog sensor, into such a control system as can perform a system control of higher quality. However, in case the monolithic IC having its digital input terminals relatively increased is used, the aforementioned system change becomes difficult because the analog input terminals are relatively reduced.

In case the monolithic IC is to be equipped with the number of analog and digital input terminals required, the size of its package has to be enlarged because of the increase in the number of external terminals.

It is, therefore, an object of the present invention to provide a semiconductor integrated circuit which forms at least a part of a digital control system and which exhibits high general usability even with a relatively small number of external terminals.

Another object of the present invention is to provide a semiconductor integrated circuit which can further reduce the number of its external terminals.

A further object of the present invention is to provide a digital control system using the semiconductor integrated circuit of the aforementioned type.

Other objects of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings.

According to the present invention, the semiconductor integrated circuit is equipped with signal receiving common external terminals which can receive both analog input signals and digital input signals. The aforementioned common external terminals are used as either the external terminals for receiving the digital signals or the external terminals for receiving the analog signals in accordance with the control by such a program as operates the control system.

In accordance with the present invention, moreover, the semiconductor integrated circuit is further equipped, if necessary, with such common external termianls as can partly receive digital input signals and partly generate digital output signals.

FIG. 1 is a block diagram showing the circuit of one embodiment of the present invention;

FIG. 2 is a block diagram showing the detailed construction of the circuit blocks of FIG. 1; and

FIG. 3 is a block diagram showing the circuit of another embodiment of the present invention.

The present invention will be described in detail in the following in connection with the embodiments thereof.

FIG. 1 is a block diagram showing one embodiment of the present invention.

Generally indicated at reference numeral 1 is a microprocessor which is constructed into a one-chip monolithic semiconductor integrated circuit composed of such respective circuit blocks 2 to 18 as will be described in the following.

Indicated at numeral 2 is an accumulator which has its data input and output terminals coupled to an internal data bus line BUS. Indicated at numeral 3 is an accumulator latching circuit which is coupled to the aforementioned accumulator 2. Indicated at numeral 4 is a temporary register which has its data input and output terminals coupled to the aforementioned internal data bus line BUS. Indicated at numeral 5 is an arithmetic and logic unit which is made receptive to the output data of the aforementioned accumulator latch circuit 3 and the temporary register 4 as its operand. The circuits 2 to 5 thus far described construct together an arithmetic unit and have their respective operations controlled by the control signals which are generated by a timing control circuit 8.

The aforementioned arithmetic and logic unit 5 has its operation so controlled by the output signal of the timing control circuit 8 as to perform an arithmetic operation such as addition or subtraction or an OR, AND, exclusive or logical operation.

The output data of the aforementioned arithmetic and logic unit 5 are different in accordance with the control signal, which is generated by the timing control circuit 8, but are fed out to the accumulator 2 through the internal data bus line BUS, for example.

Numerals 6 and 7 indicate an instruction register and an instruction decoder and machine cycle encoder, respectively. The circuits 6 to 8 thus far described construct together a control unit.

The aforementioned instruction register 6 is provided to receive the instruction which is fed to the internal data bus line BUS through an external data bus line DT and a data buffer 11 from such as ROM (i.e., a read only memory) 19 as is disposed at the outside of the microprocessor 1.

The instruction, which is received by the aforementioned instruction register 6, is fed to the aforementioned circuit 7 so that it is decoded by the instruction decoder in that circuit 7. The resultant output of the aforementioned instruction decoder is fed to the machine cycle encoder in the aforementioned circuit 7.

The aforementioned machine cycle encoder generates a variety of timing signals which are determined by the output signal of the aforementioned instruction decoder.

The aforementioned timing control circuit 8 has its operational timing controlled by the clock signals fed from grouped external control terminals CONT so that it generates both a bus control signal for receiving the data fed from the external data bus line DT and a strobe signal for writing out the data to the external data bus line DT.

Moreover, the aforementioned timing control circuit 8 examines a series of signals such as an interrupt signal fed from the grouped external control terminals, CONT a hold signal for holding the operations of the system and a reset signal so that it feeds out a series of signals such as a flag signal indicating the reception of the interruption or a flag signal indicating the reception of the requirement for the hold through the aforementioned grouped external control terminals in response to those signals examined.

Indicated at numeral 9 is a register group which is composed, although not shown, of general purpose registers, a stack pointer and a program counter.

The general purpose registers of the aforementioned register group 9 are used for memory operation in addition for handling dam (including double length data). The stack pointer is used to memorize the return address of a subroutine jump. The program counter is a register for memorizing the address of the instruction to be subsequently read out, and its data are increased one by one each time one instruction is executed except for that the instruction to be fed to the instruction register 6 is the jump instruction.

Indicated at numeral 18 is an address decoder which is made responsive to the output of the general purpose register of the register group 9 thereby to generate a signal for controlling later-described circuits 15 to 17. Incidentally, the circuit 15 to 17 can be controlled by the general purpose registers of the register group 9. However, by using the address decoder circuit 18, as show, the aforementioned circuits 15 to 17 can also be controlled even with the use of a small number of the general purpose registers.

Indicated at numeral 10 is an address buffer which is made receptive to the output signals from the register group 9 thereby to generate an address signal to be fed to the ROM 19, an RAM 20 and an interface circuit 21.

Indicated at numeral 11 is a data buffer which effects interchanges of the data between the external data bus line DT and the internal data bus line BUS.

In the embodiment being described, the external terminals P1 to P3 of the microprocessor 1 are used as the input terminals for exclusively receiving the analog signals, and the external terminals P6 and P7 are used as the input and output terminals for exclusively feeding and receiving the digital signals. On the other hand, the external terminals P4 and P5 are used as common terminals for the input of the analog signals and for the input and output of the digital signals.

In the present embodiment, although not limited thereto, the aforementioned external terminal P4 is fed with the analog signals which are generated by an analog sensor DET4, and the aforementioned external terminal P5 is fed with the digital signals which are generated by a switch SW. The aforementioned external terminal P6 is fed with the digital signals which are generated by a digital sensor DET5. The aforementioned external terminal P7 is fed with the digital signals which are used to drive a lamp PL.

Indicated at numeral 12 is a digital input output port which is connected between the aforementioned external terminals P4 to P7 and the register 15.

Whether the aforementioned respective external terminals P4 to P7 are used as the digital input terminals or the digital output terminals or not is determined by the control data which are set in the aforementioned register 15.

The aforementioned control data to be fed to the aforementioned register 15 are fed out of the ROM 19 together with the instruction. The input timing of the aforementioned control data is controlled by the control signal which is fed out of the address buffer 10 in accordance with the execution of the program written in the ROM 19.

The aforementioned register 15 is set with both the digital input data, which are fed through the aforementioned input output port 12, and the digital output data which are fed from the aforementioned internal data bus line BUS until it is to be fed to the external terminals P4 to P7.

The digital input data, which are set in the aforementioned register 15, are written in the RAM 20 through the internal data bus line BUS and the data buffer 11.

The setting operation of the control data in the aforementioned register 15, the setting operation of the digital output data, and the reading operation of the digital input data, which are set in the aforementioned register 15, are under the control of the program which is written in advance in the ROM 19.

For example, at the timing of writting the digital input data, which are fed to the external terminal P5, into the RAM 20, there is fed out of the address decoder 18 the control signal for transferring the set data of the aforementioned register 15, which is set to have a value corresponding to the digital input data fed to the aforementioned external terminal P5, to the internal data bus line BUS.

Likewise, at the time of writing the digital input data, which are fed to the external terminal P6, into the RAM 20, a control signal similar to the signal for transferring input data from register 15 to the internal bus line BUS is fed out of the address decoder 18.

The program for writing the digital input data, which are fed from an element such as the starter switch of an automotive engine, into the RAM 20, is executed for a predetermined time period at the start of the engine. Furthermore, the program for writing the digital input data, which for example are fed from the crank angle sensor of the engine, into the RAM 20 is executed once for a relatively short period of several milliseconds. In order to use the external terminal P7 as the output terminal for the digital signals, the ROM 19 is written with the program such as the control data presetting program which is executed immediately after the system is fed with the power from a power source. As a result, the aforementioned input output port 12 is so controlled by the control data set in the aforementioned register 15 as to transfer the digital output data in the aforementioned register 15 to the aforementioned external terminal P7. From the address decoder 18, there is fed a control signal which is used for setting such digital output data in the aforementioned register 15 as are red from the circuit 5 to the internal data bus line BUS.

Indicated at numeral 13 is an analog multiplexer which has its input . .terminal.!. terminals of the aforementioned decoder circuit 17b.

The aforementioned register 17 is set with the signal in the internal data bus line BUS by rendering the MISFET Q3 conductive in response to the output signal of the address decoder 18.

The decoder circuit 17b decodes the signal of the aforementioned latching circuit 17a thereby to generate a signal for selecting such one from the transmission MISFETs Q16 to Q20 in the multiplexer 13 as corresponds to the signal received by the aforementioned latching circuit 17a.

As a result, the selecting operations of the aforementioned multiplexer 13 are executed such that the address signal instructing the aforementioned latching circuit 17a is fed from the grouped registers 9 to the address decoder 18 and such that the multiplexor selecting data are fed to the internal data bus line BUS.

The register 16 has its plural input terminals coupled to the plural output terminals of the A/D converter 14 and its plural output terminals coupled to the aforementioned internal data bus line BUS through transmission gate MISFETs Q4 to Q6.

The transmission gate MISFETs Q4 to Q6 are rendered conductive when the address signal instructing the aforementioned register 16 is fed from the grouped registers 9 of FIG. 1 to the aforementioned address decoder 18. As a result, the A/D conversion signals, which are fed from the aforementioned A/D converter 14 to the aforementioned register 16, are further fed to the internal data bus line BUS through the aforementioned transmission gate MISFETs Q4 to Q6.

The input output port 12 for receiving and feeding the digital signal is constructed, as shown, of input and output buffer amplifiers 12a and 12b which are to be coupled in a one-to-one relationship to the terminals P4 to P7, respectively.

The aforementioned input buffer amplifier 12a is further constructed of a high input impedance circuit such as an inverter made of a well-known MISFET in order that it may not adversely affect the level of the signal fed from either the output buffer amplifier 12b or the external sensor.

The aforementioned output buffer amplifier 12b is constructed of a well-known tri-state circuit which in turn is made of a MISFET. The gate signal for controlling the operation of the aforementioned output buffer amplifier 12b is fed from the latching circuit 15c in the register 15.

If the output signal of the aforementioned latch circuit 15c is at a high level, for example, the aforementioned output buffer amplifier 12b is rendered operative so that a digital signal at a high or low level is fed from the aforementioned output buffer amplifier 12b to the external terminal P4. If, on the contrary, the output signal of the aforementioned latching circuit 15c is at a low level, the output terminal of the aforementioned output buffer amplifier 12b is rendered to have a high impedance state or a floating state.

The register 15 is constructed of a latching circuit 15a, which is receptive of the output signal fed from the input buffer amplifier 12a of the aforementioned input output port 12, a latching circuit 15b, which is operative to feed the signal to the input terminal of the output buffer amplifier 12b, and the aforementioned latching circuit 15c which is operative to feed the gate input signal to the output buffer amplifier 12b, as has been described in the above.

Although not especially limited, all of the output terminals of the latching circuit 15a, which is provided to correspond to the external terminal P4, the input terminal of the latching circuit 15b, and the input terminal of the latching circuit 15c are commonly coupled, as shown, to the one bit line of the internal data bus line BUS through transmission gate MISFETs Q7, Q8 and Q9, respectively.

Likewise, the input and output terminals of the latching circuits in the register 15, which are provided to correspond to the external terminal P5, are commonly coupled to the other bit line through transmission MISFETs Q10, Q11 and Q12, respectively, whereas the input and output terminals of the latching circuit in the register 15, which are provided to correspond to the external terminal P7, are commonly connected with another bit line through transmission gates MISFETs Q13, Q14 and Q15, respectively.

The aforementioned transmission gates MISFETs Q7 to Q15 are fed with the addresses, which are selected by the address decoder 18, respectively.

In accordance with the construction thus far described, the analog input converted into a digital signal, and the digital input are made common by the internal data . .but.!. bus line BUS. As a result, the reception of the input signals of the aforementioned two kinds is performed by making different the address instructions of the registers 16 and 15.

In case the common external terminal P5 is used as the digital input terminal, as shown in FIG. 1, the ROM 19 is written with the program containing both the instruction of resetting the latch circuit in the register 15, which corresponds to the transmission gate MISFET Q12, and the instruction of feeding the digital signal, which is fed to the external terminal P5, to the internal data bus line BUS through the transmission gate MISFET Q10. In this case, incidentally, the aforementioned ROM 19 is neither written with the instruction of selecting the transmission gate MISFET Q11 nor the instruction of selecting the MISFET Q20 of the multiplexer 13. Likewise, in case the common external terminal P4 is used as the digital input terminal, the aforementioned ROM 19 is written with both the instruction of resetting the latch circuit 15c of the register through the transmission MISFET Q9 and the instruction of selecting the transmission gate Q19 of the multiplexer 13 but not with the instruction of selecting the transmission gates Q7 and Q 8.

The integrated circuit shown in FIG. 1 is used to control the engine although not limited thereto.

For this purpose, a thermistor DET1 for detecting the temperature of engine cooling water is connected between the external terminal P1 of the microprocessor 1 and the grounded point of the circuit, and a load resistor R1 is connected between that thermistor DET1 and a power source terminal VB. If an element . .haivng.!. having a negative temperature coefficient is used as the aforementioned thermistor DET1, the voltage to be applied to the aforementioned external terminal P1 is decreased with the temperature rise of the engine cooling water.

Likewise, a thermistor DET2 for detecting the sucked air temperature of the engine and a load resistor R2 therefor are connected with the external terminal P2.

A suction flow meter DET3 is connected with the external terminal P3. The suction flow meter DET3 is constructed, for example, of a resistance member and a sliding contact which is shifted with respect to the resistance member in accordance with the suction flow rate. As a result, that suction flow meter feeds the aforementioned external terminal P3 with a voltage according to the suction flow rate.

The tachometer of the engine, as indicated at letters DET4, is connected with the external terminal P4. The tachometer DET4 feeds the aforementioned terminal P4 with a voltage according to the rpm of the engine.

The starter switch SW of the engine is connected with the external terminal P5.

A crank angle sensor of the engine, as indicated at letters DET5, is connected with the external terminal P6. The sensor DET5 is so constructed as to generate such pulse signals as take a high level when the crank shaft comes to a predetermined angular position, e.g., of 0 degrees.

On the other hand, the external terminal P7 is used as an output terminal for warning the engine temperature, for example. The lamp PL is so driven by a buffer circuit 30 which is made receptive of the output of the aforementioned terminal P7 that it is lit when the engine temperature reaches an abnormal level.

The interface circuit 21 is fed with the control signal from the grouped external terminals CONT of the microprocessor 1, the address signal from an address bus AD and the data from the data bus DT. The interface circuit 21 has a plurality of output lines 11 and 14 and contains therein such (not-shown) memory circuits as are respectively selected by the address signals of the address bus AD and as have their states determined by the data signals of the data bus DT.

The signal of the output line 11 of the aforementioned interface circuit 21 is fed through an output buffer circuit 22 to an ignition coil 26, whereas the signal of the output line 12 is fed through an output buffer circuit 23 to a solenoid 27 for adjusting the throttle valve in the suction manifold of the engine. On the other hand, the signal of the output line 13 is fed through an output buffer circuit 24 to an electromagnetic type fuel pump 28, whereas the signal of the output line 14 is fed to a relay 29 for driving the starter of the engine.

In the embodiment being described, in order to control the engine, the ROM 19 is stored with not only the program but also the various interpolation data which are determined by the characteristics of the engine to be controlled.

For example, the angle of ignition advance of the ignition plug is determined by not only the rpm of the engine but also the engine characteristics. Therefore, the ignition timing data for the rpm of the engine have to be set in advance in the ROM 19. In this instance, the data of the engine characteristics for the aforementioned ignition timing data are not set in the ROM in a manner to correspond to all the rpms of the engine but are set as such interpolation data in the ROM as correspond only to several rpms of the engine so that the capacity of the ROM can be reduced.

Likewise, the solenoid for controlling the throttle valve is controlled in accordance with the suction temperature, the engine temperature, the rpm of the engine and the engine characteristics. The data of these engine characteristics for controlling the solenoid are set as the interpolation data in the ROM.

The various engine control data when the engine is practically at its operating condition are prepared by the arithmetic operations of the microprocessor 1, which is made receptive of the data fed from the aforementioned various sensors and the various interpolation data written in advance in the aforementioned ROM 19.

Referring to FIG. 1, when a key switch S0 is turned on, the power source voltage is fed from a battery B to a constant voltage circuit 40 so that the power source voltage VB is fed from that constant voltage circuit 40 to the aforementioned respective circuits.

The analog data such as the the temperature of the engine cooling water or the suction temperature, which are generated by the themisters DET1, DET2 and the like when the microprocessor 1 becomes operative, are converted in a time-division manner into digital data by the action of the analog to digital converter 14. The respective digital data thus converted are written through the data bus in the random acceess memory (RAM) 20.

The fuel pump 28 is rendered operative by the output from the interface circuit 21.

When the starter switch SW is turned on, the relay 29 is rendered operative so that the starter (although not shown) starts its operation.

In order to reduce the capacity of the ROM 19, the data therein concerning the ignition timing, for example, are made to correspond only to the predetermined rpms sampled.

As a result, the data of the ignition timing from the tachometer DET4 for any rpm of the engine by the arithmetic operation, in which the interpolation data in the ROM 19 for the sampled rpm near any of the aforementioned engine rpms are corrected in view of any engine rpm above-specified.

Thus, the practical ignition timing is calculated from the standard ignition timing based upon the output of the crank angle sensor DET5 and from the ignition timing data determined by the aforementioned arithmetic operations. In accordance with the ignition timing thus calculated, the ignition coil 26 is driven.

The interpolation data of the ROM 19 for controlling the throttle valve in accordance with the rpm data of the engine, the temperature data of the engine cooling water and the suction temperature data are considered so that the pulse control signals for controlling the throttle valve are generated. By these pulse control signals, the duty ratio of the pulse current of the solenoid 27 to be coupled through the interface circuit 21 is changed. The solenoid 27 has its mean current changed by the duty ratio of the pulse current so that the throttle valve is controlled in accordance with the aforementioned duty ratio.

According to the embodiment thus far described, the various process controls of different requirements, in other words, the various process controls having different numbers of analog signal inputs and digital signal inputs and outputs are made possible by a reduced number of terminals so that the general usability of the various process controls of the microprocessor for controlling the automotive engine or the like can be improved.

Moreover, the process controls of high quality, i.e., of high density are also made possible merely by changing a portion of the program even for the change in the system from the digital input to the analog input.

The present invention should not be limited to the embodiment thus far described but can be so modified that the port is constructed of such input and output ports as are independent of each other. In this modification, the common use of the terminals is made between the input port and the analog input.

Even in the case of commonly using the terminals, various modifications can be made such that all of the analog inputs are made common or such that all the digital inputs are made common.

Moreover, the system construction of the microprocessor can be modified in various manners.

Still moreover, the system for effecting the various process controls is constructed, generally speaking, of a digital semiconductor integrated circuit of several chips, which is made of a microprocessor, a ROM (or RAM) written with a control program, and an RAM for holding various data. Therefore, the analog to digital input output circuit containing the aforementioned A/D converter may be provided, for example, as shown in FIG. 3, in the digital semiconductor integrated circuit 19 constructing the ROM written with the control program. More specifically, the digital semiconductor integrated circuit 19, which is constructed of the address decoder 20 and the memory array 21 written with the program instruction, is similarly provided with the input output port 12, the register 15, the multiplexer 13, D converter 14 and the registers 16 and 17. With this construction, similar operations can be effected by connecting the data and address buses of the digital semiconductor integrated circuit 19 and the microprocessor (not shown in FIG. 3) through the external data and address buses.

Moreover, in the digital control system containing the RAM, the analog to digital input output circuit containing the aforementioned A/D converter may be provided in the digital semiconductor integrated circuit constructing the RAM, and the whole system of the microprocessor, ROM and RAM my be similar constructed of a one-chip digital semiconductor integrated circuit.

Baba, Shirou

Patent Priority Assignee Title
6286065, Nov 18 1997 Renesas Electronics Corporation Microcomputer having a built-in A/D converter with a resistor between an external terminal and an I/O circuit
Patent Priority Assignee Title
3344466,
4118772, Jun 16 1975 Tokyo Shibaura Electric Co., Ltd. Digital controller system
4219875, May 05 1978 Honeywell Inc. Digital event input circuit for a computer based process control system
4276601, Sep 21 1977 Hitachi, Ltd. Electronic engine control apparatus
4287558, Sep 29 1977 Nippon Electric Co., Ltd. Sampled data processing system having memory with areas alternately dedicated to data I/O and data processing
4291656, Jul 14 1978 Toyota Jidosha Kogyo Kabushiki Kaisha Method of controlling the rotational speed of an internal combustion engine
4308598, Jul 09 1979 GRANT GEOPHYSICAL CORPORATION, A TX CORP Simplified roll along switching
4403302, Oct 30 1980 UNITED TECHNOLOGIES CORPORATION, A CORP OF DE Automatic resetting of control system for loss of time reference
4451891, Feb 20 1980 Hitachi, Ltd. Digital semiconductor integrated circuit and digital control system using the same
4630207, Feb 20 1980 Hitachi, Ltd. Monolithic integrated circuit having common external terminal for analog and digital signals and digital system using the same
4736337, Feb 20 1980 Hitachi, Ltd. Monolithic integrated circuit having common external terminal for analog and digital signals and digital system using the same
DE2723570,
DE2754974,
DE2841750,
DE2929386,
JP50114136,
/
Executed onAssignorAssigneeConveyanceFrameReelDoc
Dec 20 1989Hitachi, Ltd.(assignment on the face of the patent)
Date Maintenance Fee Events
Oct 04 1999M185: Payment of Maintenance Fee, 12th Year, Large Entity.


Date Maintenance Schedule
Apr 02 19994 years fee payment window open
Oct 02 19996 months grace period start (w surcharge)
Apr 02 2000patent expiry (for year 4)
Apr 02 20022 years to revive unintentionally abandoned end. (for year 4)
Apr 02 20038 years fee payment window open
Oct 02 20036 months grace period start (w surcharge)
Apr 02 2004patent expiry (for year 8)
Apr 02 20062 years to revive unintentionally abandoned end. (for year 8)
Apr 02 200712 years fee payment window open
Oct 02 20076 months grace period start (w surcharge)
Apr 02 2008patent expiry (for year 12)
Apr 02 20102 years to revive unintentionally abandoned end. (for year 12)