Background of the Invention
(1) Field of the Invention
The present invention relates to a semiconductor integrated circuit having a test circuit for testing an internal circuit. More particularly, it relates to a semiconductor integrated circuit having a test circuit for high-speed testing of the functions of the internal circuit.
One of the uses to which such a semiconductor integrated circuit is put is as a DTMF (dual tone multi frequency)/pulse dialer provided in a telephone circuit; the dialer comprises two circuits, namely, a circuit for the DTMF dialer and a circuit for the pulse dialer, on one chip, and performs two functions selectively, namely, the function of a DTMF dialer and the function of a pulse dialer.
(2) Description of the Related Art
Generally, the semiconductor integrated circuit used as the above-mentioned DTMF/pulse dialer comprises an internal circuit having the circuit for DTMF dialer and the circuit for pulse dialer, and an oscillating circuit generating a fundamental clock signal for operating the internal circuit when the internal circuit is operated in a usual mode. Further, the semiconductor intergrated circuit has a predetermined number of pins (for example, eighteen) each of which functions as a terminal. In this connection, the pins are provided for several purposes: e.g., input pins for supplying input signals from a keyboard to the internal circuit in accordance with the operation of the keys provided on the keyboard; output pins for transmitting output signals from the internal circuit to a switching system; a pair of pins for the oscillating circuit which are connected to the input side and output side of the oscillating circuit respectively; a pin for supplying an external reset signal to the internal circuit; and a pair of pins for supplying power from a power source to the semiconductor intergrated circuit. The internal circuit operates as the DTMF dialer and as the pulse dialer selectively, in accordance with the control signal input from one of the input pins.
When the internal circuit operates as the DTMF dialer, the signal output from the internal circuit is an analog signal including frequency components corresponding to the operated key. Namely, the frequency components are determined in accordance with the position (i.e., the row and the column) on the keyboard where the operated key is arranged. Thus, the analog signal sequentially including the frequency components in accordance with the sequentially operated keys is output from one of the output pins and transmitted to the switching system. In this connection, the operational speed of the DTMF dialer is high, and the circuit for the DTMF dialer provided in the internal circuit is operated by receiving a fundamental clock signal, the frequency of which is a high value of, for example, 3.58 m.c. (megacycles), from the above-mentioned oscillating circuit.
Contrary to this, when the internal circuit operates as the pulse dialer, the signal output from the internal circuit is a digital signal including a number of pulses which corresponds to the number indicated on the operated key. Thus, if three keys, numbered "1", "2", and "0", are sequentially operated, for example, the digital signal as shown in FIG. 4 is output from one of the output pins and transmitted to the switching system. In this connection, the operational speed of the pulse dialer is low compared to the operational speed of the DTMF dialer. As an explanation of this phenomenon regarding the signal shown in FIG. 4, each of the time lengths of the predigital pause t.sub.1 and the interdigital pause t.sub.2 is set to about 1 s. (sec), and the cycle time of one pulse t.sub.3 is set to about 100 ms. (milli-sec). Therefore, it is necessary to operate the circuit for the pulse dialer provided in the internal circuit by using the clock signal, the frequency of which is a low value of, for example, 2 kc (kilocycles).
However, as described above, the frequency of the fundamental clock signal generated from the oscillating circuit is set to the high value of, for example, 3.58 ms., in order to operate the circuit for the DTMF dialer in the internal circuit. Therefore, it is necessary to supply the clock signal to the circuit for the pulse dialer in the internal circuit by dividing the frequency of the fudamental clock signal, generated from the oscillating circuit, through a frequency divider.
Under the above-mentioned background, in the prior art, when the tests of the functions of the internal circuit (especially the functions of the circuit for the pulse dialer in the internal circuit) are carried out, the above-mentioned clock signal obtained by dividing the frequency of the fundamental clock signal generated from the oscillating circuit is also used as the clock signal for testing. In this connection, it is necessary to perform several kinds of tests in order to test the functions of the internal circuit. Namely, it is necessary to test the function of each key in the DTMF dialer mode and in the pulse dialer mode by testing each key to determine whether or not the correct signal corresponding to the operated key is output from the predetermined output pin. In addition, it is also necessary to test the function of a redial key by determining whether or not the correct signal is output again when the redial key is operated.
However, in the prior art, as the internal circuit (especially the circuit for the pulse dialer) is operated by the above-mentioned clock signal, the frequency of which is divided through the frequency divider, in the test mode as well as in the usual mode, a problem arises in that a long time is needed to perform the several tests as above-mentioned, and as a result, the efficiency of the production is remarkably lowered, especially when the tests of the functions of the internal circuit are carried out during the process of mass production.
To solve this problem, consideration has been given to providing an exclusive terminal for testing besides the above-mentioned generally existing pin terminals and to supplying the clock signal for testing to the internal circuit through that exclusive terminal. However, in this case, it becomes necessary to provide an additional pin terminal for testing on each chip, and as a result, the size of the device is increased.
Summary of the Invention
The present invention has been completed in order to solve the above-mentioned problems, and the object of the present invention is to test the functions of the internal circuit in the semiconductor integrated circuit at a high speed and thereby shorten the time for testing, without providing an additional terminal for testing but by using only certain of the conventional, generally existing terminals (namely, a reset terminal and a pair of terminals for the oscillating circuit).
To attain this object, according to the present invention, there is provided a semiconductor integrated circuit comprising an internal circuit; an oscillating circuit which generates a fundamental clock signal for operating the internal circuit when the internal circuit is operated in a usual mode; a pair of terminals respectively connected to the input side and the output side of the oscillating circuit, an oscillator connected between the above pair of terminals when the internal circuit is operated in the usual mode; a reset terminal through which a reset signal for resetting the internal circuit is supplied from an external source (i.e., from outside of the chip) to the internal circuit; and a switching circuit for operating the internal circuit in a test mode. The switching circuit supplies a clock signal for testing, applied from an external source (i.e., from outside of the chip), to the internal circuit through one of the above pair of terminals when signals having a predetermined level are supplied from corresponding external sources (i.e., from outside of the chip) to the other one of the above pair of terminals and the reset terminal.
According to the above construction of the present invention, it is possible to carry out the test for the internal circuit at a high speed by directly supplying the external clock signal having the predetermined frequency (i.e., from outside of the chip) to the internal circuit through one of the pair of input and output terminals for the oscillating circuit (e.g., the terminal connected to the output of the oscillating circuit, for example), when the signals having the predetermined level are supplied by the external source (i.e., from outside of the chip) to the other one of the above pair of terminals (i.e., to the terminal connected to the input side of the oscillating circuit, for the above, parenthetically noted example) and the reset terminal.
Brief Description of the Drawings
FIG. 1 is a circuit diagram illustrating an example of a prior art semiconductor integrated circuit;
FIG. 2 is a circuit diagram illustrating one embodiment of the semiconductor integrated circuit according to the present invention;
FIG. 3 is a circuit diagram illustrating an example of the switching circuit provided in the semiconductor integrated circuit shown in FIG. 2; and
FIG. 4 is a diagram illustrating an example of the wave form of the output signal, which is output by the internal circuit provided in the semiconductor integrated circuit shown in FIG. 2.
Description of the Preferred Embodiments
In order to clarify the background of the present invention, an example of a prior art semiconductor integrated circuit having a test circuit for testing the internal circuit, such as the above-mentioned DTMF/pulse dialer, is shown in FIG. 1.
In FIG. 1, reference numeral 1 is an oscillating circuit which generates a fundamental clock signal having a frequency of, for example, 3.58 m.c. Reference numeral 2 is a frequency divider which divides the frequency of the fundamental clock signal generated from the oscillating circuit 1, and this frequency-divided clock signal is supplied through the signal path P to the internal circuit 9 to operate the circuit such as the pulse dialer provided in the internal circuit 9. The fundamental clock signal generated from the oscillating circuit 1 also is directly supplied through the signal path Q to the internal circuit 9 to operate the circuit such as the DTMF dialer provided in the internal circuit 9. Reference numeral 10' identifies a chip on which the semiconductor integrated circuit comprising the above-mentioned oscillating circuit 1, frequency divider 2, a feedback resistor 63, and internal circuit 9 are provided. A conventional, predetermined number of pin terminals are provided on the chip 10' for simplicity and clarity, however, only the three pin terminals which are here relevant (i.e., a reset terminal Treset and a pair of terminals, Toscin and Toscout which respectively are connected to the input side and the output side of the oscillating circuit 1) are shown in FIG. 1.
As is conventional, the circuit of FIG. 1 has both power-down and power-up states and, in the power-up state, both a testing mode and a normal, or usual, operating mode (hereinafter, the "usual" or "non-testing" mode), as now described.
When the internal circuit 9 is operated in the usual mode, the reset terminal Treset is set to a low level, and the oscillating circuit 1 is operated by connecting the oscillator 8 (a crystal oscillator, for example), which is outside of the chip 10', between the terminals Toscin and Toscout, respectively connected in turn to the input side and output side of the oscillating circuit 1. In this connection, a feedback resister 63 is connected between the input side and output side of the oscillating circuit 1, and the oscillating circuit 1 operates as, for example, a NOR gate.
The oscillating circuit 1 operates to generate a fundamental clock signal which is supplied through the frequency divider 2 and the signal path P to the circuit for the pule dialer provided in the internal circuit 9. The fundamental clock signal generated from the oscillating circuit 1 also is directly supplied through the signal path Q to the circuit for the DTMF dialer provided in the internal circuit 9. During this period, the power-down signal PD for the internal circuit 9 is set to a low level by setting the reset terminal Treset to a low level, and as a result, the internal circuit 9 is released from the power-down state and thus maintained in the power-up state.
When it is desired to set the internal circuit 9 to a power-down state, a predetermined high level signal is supplied externally (i.e., from outside the chip 10') to the reset terminal Treset. Thereby, the level of both the output side and input side of the oscillating circuit 1 becomes low, and as a result, the oscillating circuit 1 is brought to a reset state. Simultaneously, the power-down signal PD is set to a high level, and as a result, all parts of the internal circuit 9 are also reset to the initial power-down state (i.e., a non-operating state).
In such a prior art semiconductor integrated circuit, the above-mentioned clock signal obtained by dividing the frequency of the fundamental clock signal, generated from the oscillating circuit 1, through the frequency divider 2 is also used as the clock signal for testing, i.e., in the testing mode of the power-up state especially when tests of the functions of the circuit for the pulse dialer provided in the internal circuit 9 are carried out. Thus, as described above, a problem arises in that a long time is needed to perform the several kinds of tests, and as a result, the efficiency of the production is remarkably lowered, especially when the tests of the functions of the internal circuit 9 are carried out during the process of mass production.
The present invention has been attained in order to solve such a problem, and FIG. 2 shows a circuit diagram illustrating one embodiment of the semiconductor integrated circuit according to the present invention. As shown in FIG. 2, the semiconductor integrated circuit according to the present invention, comprises an oscillating circuit 1 generating the fundamental clock signal, having a frequency of, for example, 3.58 m.c.; the frequency divider 2; a switching circuit 3; a NAND gate 4; an AND gate 5; feed back resistors 61 and 62 respectively connected to the input side and output side of the oscillating circuit 1; an N channel type MOS transistor 7; and the internal circuit 9 such as the above-mentioned DTMF/pulse dialer; all of the foregoing components are provided on the same chip 10. A predetermined number of pin terminals are provided on the chip 10, but only three pin terminals (namely, a reset terminal, Treset, and a pair of terminals, Toscin and Toscout respectively connected to the input side and the output side of the oscillating circuit 1) are shown in FIG. 2. The switching circuit 3 switches two signal paths A and B selectively in accordance with the level of a control signal CNT output from the NAND gate 4 for testing.
When the internal circuit 9 is operated in the usual mode, and thus in the power-up state, the reset terminal Treset is set to a low level, and the oscillating circuit 1 is operated by connecting the oscillator 8 (a crystal oscillator, for example) from outside of the chip 10 between the terminals Toscin and Toscout which are connected respectively to the input side and the output side of the oscillating circuit 1.
In this usual mode since the reset terminal Treset is set to a low level, the outlet level of the NAND gate 4 (namely, the level of the control signal for testing CNT) becomes high. Then, the switching circuit 3 closes the signal path A in accordance with the high level of the above control signal CNT. Thus, the fundamental clock signal generated from the oscillating circuit 1 is supplied through the frequency divider 2 and the signal path A to the circuit for the pulse dialer provided in the internal circuit 9. Also, the fundamental clock signal generated from the oscillating circuit 1 is directly supplied through the signal path C to the circuit for the DTMF dialer provided in the internal circuit 9. Accordingly, as described above, the circuit for the pulse dialer in the internal circuit 9 is operated by the clock signal obtained by dividing the frequency of the fundamental clock signal, generated by the oscillating circuit 1, by the frequency divider 2, the resultant frequency of the frequency-divided clock signal being, for example, 2 k.c. In this connection, the internal circuit 9 operates as the DTMF dialer and as the pulse dialer selectively, in accordance with the control signal input from one of the input pin termnals not shown in the drawings.
Next, when the internal circuit 9 is set to the test mode in order to test the functions of the internal circuit 9, the oscillator 8 is disconnected from the terminals Toscin and Toscout, and the reset terminal Treset and the terminal Toscin connected to the input side of the oscillating circuit 1 are set to a high level, then a clock signal for testing, the frequency of which clock signal for testing is set to 1/2.times.3.58 m.c., for example, is supplied externally (i.e., from outside of the chip 10) to the internal circuit 9 through the terminal Toscout connected to the output side of the oscillating circuit 1.
In this case, namely, in the test mode, the output level of the NAND gate 4 (namely, the level of the control signal for testing CNT) is set to a low level by setting the terminals Treset and Toscin to a high level, and therefore, the switching circuit 3 closes the signal path B in accordance with the low level of the above control signal CNT. As a result, the clock signal for testing input to the terminal Toscout is directly supplied to the circuit for the pulse dialer provided in the internal circuit 9 through the signal path B, without passing through the frequency divider 2. Therefore, the tests of the functions for the pulse dialer can be carried out at a high speed by using the clock signal for testing having the frequency value of, for example, 1/2.times.3.58 m.c., as above-mentioned. Also, the above clock signal for testing is directly supplied to the circuit for the DTMF dialer provided in the internal circuit 9, through the signal path C, and therefore, the tests of the functions for the DTMF dialer also can be carried out at a high speed. In this connection, the tests for a part of the internal circuit 9 (a receiving circuit for a key input signal, for example) are carried out by the clock signal passing through the signal path B, even when the tests for the DTMF dialer are carried out. Also, in the test mode, since the input side of the oscillating circuit 1 is maintained at a high level as described above, the oscillating circuit 1 is brought to a non-operating (i.e., power-down) state, and further, as the output level of the AND gate 5 is set to a low level, the internal circuit 9 is released from the power-down state and thus maintained in the power-up state, as is necessary, of course, for the testing mode.
To set the internal circuit 9 to the power-down state, the reset terminal Treset is set to a high level, and thereby, the N channel type transistor 7 is turned ON. Therefore, both the input side and output side of the oscillating circuit 1 are set to a low level, and the oscillating circuit 1 is brought to a non-operating (i.e., power-down) state. Further, as the output level of the NAND gate 4 becomes high, the output level of the AND gate 5, namely, the level of the power-down signal PD, becomes high, and as a result, the internal circuit 9 is brought to the reset (i.e., the power-down) state by the above power-down signal PD having a high level.
FIG. 3 is a circuit diagram illustrating an example of the switching circuit 3 shown in FIG. 2. As shown in FIG. 3, the switching circuit 3 comprises OR gates 31, 33, a NAND gate 34, and inverters 32 and 35.
When the level of the control signal CNT output from the NAND gate 4 becomes high in the usual mode, the output level of OR gate 31 is maintained at a high level, and thus, the fundamental clock signal supplied from the oscillating circuit 1 through the frequency divider 2 and the signal path A is transmitted to the internal circuit 9 through the OR gate 33 and the NAND gate 34. In this connection, the clock signal output from the switching circuit 3 is brought into phase with the clock signal input to the switching circuit 3 by providing the inverter 35 connected to the output side of the NAND gate 34.
Contrary to this, when the level of the control signal CNT output from the NAND gate 4 becomes low in the test mode, the output level of OR gate 33 is maintained at a high level, and thus, the clock signal for testing supplied from outside of the chip through the terminal Toscout and the signal path B is transmitted to the internal circuit 9 through the OR gate 31 and the NAND gate 34. It is obvious that the clock signal output from the switching circuit 3 in the test mode also is brought into phase with the clock signal input to the switching circuit 3 by providing the inverter 35 connected to the output side of the NAND gate 34.
As described above, according to the present invention, it is possible to test the functions of the internal circuit provided in the semiconductor integrated circuit at a high speed during the process of production and to raise the efficiency of the production line without providing an additional and exclusive terminal for testing, thus avoiding an increase in the size of the device.