The present invention relates to a schmitt circuit which can reduce the deterioration of the input circuit hysteresis characteristics when the input and output terminals of a semiconductor device outputs.
For chattering prevention and noise prevention, a schmitt circuit having a hysteresis characteristic (also called hysteresis circuit and schmitt trigger circuit) is often used in the input circuit or the like of the semiconductor device.
As an example of the schmitt circuit,
In
On the other hand, when the schmitt output signal VSOUT outputted from the output terminal 105 is “High(H)”, the n-channel MOS transistor 1022 of the second stage inverter 102 is turned “ON”, the threshold value of the p-channel MOS transistor 1011 of the first stage inverter 101 is n-channel MOS transistor 1022 shifts below the current drawn.
As described above, the threshold value in case that the schmitt output signal VSOUT is inverted to “High (H)” is different from the threshold value in case that the schmitt output signal VSOUT is inverted to “Low(L)”. This difference is a hysteresis width, by thus having a hysteresis width, since the output of the schmitt circuit at the potential between this is held at a previous value, it is possible to prevent erroneous determination due to input noise.
There are disclosed techniques listed below.
Further, Patent Document 1 discloses a schmitt circuit used as an input circuit of CMOS semiconductor integrated circuit device.
In the inverter feedback type schmitt circuit in
However, if the input noise of amplitude exceeding the hysteresis amplitude is generated, the schmitt circuit is erroneously reacted and the hysteresis width is narrowed. Further, when the power supply voltage of the schmitt circuit is lowered, the threshold value is also lowered, so that it reacts to noise having a smaller amplitude.
The present invention is to solve the above problems, it is to provide a circuit for reducing the deterioration of the input circuit hysteresis characteristics even when the input noise occurs.
In the semiconductor device according to an embodiment, when an input-output circuit of the input terminal side, the output terminal side of the input-output circuit and an output of the adjacent output terminal are toggled, the input of the input circuit of the input terminal side masked output of the input circuit so as to hold the previous value. Thus, it is possible to reduce the deterioration of the input circuit hysteresis characteristics even when the input noise occurs.
It is possible to reduce the deterioration of the input circuit hysteresis characteristics when the input and output terminals of the semiconductor device outputs.
Hereinafter, a semiconductor device according to an embodiment will be described in detail by referring to the drawings. In the specification and the drawings, the same or corresponding form elements are denoted by the same reference numerals, and a repetitive description thereof is omitted. In the drawings, for convenience of description, the configuration may be omitted or simplified. Also, at least some of the embodiments and each modification may be arbitrarily combined with each other.
The microcontroller 1 has a control unit 11, an input-output unit 12, an input terminal 13 and an output terminal 14. The input terminal 13 and the output terminal 14 are adjacent. The input-output unit 12 has an input-output circuit 121 connected to the input terminal 13 and an input-output circuit 122 connected to the output terminal 14. When an output of the output terminal 14 is toggled, the control unit 11 holds the previous value of an output of the input-output circuit 121 by masking the input of the input-output circuit 121 of the input terminal 13.
A schmitt input circuit 3 has three stages of inverters 31, 32, 33. The inverter 31 at the first stage has a p-channel MOS transistor 311 and an n-channel MOS transistor 312. Similarly, the inverter 32 at the second stage has a p-channel MOS transistor 321 and an n-channel MOS transistor 322. Similarly, the inverter 33 at the third stage has a p-channel MOS transistor 331 and an n-channel MOS transistor 332.
It also has a switch 34 between the inverter 31 and the inverter 32. Furthermore, it has an input terminal 35 for inputting a schmitt input signal VSIN, an output terminal 36 for outputting a schmitt output signal VSOUT and a hold signal terminal 37 for inputting a hold signal VHOLD to control ON/OFF of the switch 34.
In the schmitt input circuit 3 of
As an example, when the triangular wave is input as the schmitt input signal VSIN from the input terminal 35,
When the triangle wave of the schmitt input signal VSIN is gradually rising from 0V, if the initial value of the schmitt output signal VSOUT is “Low (L)”, p-channel MOS transistor 321 of the inverter 32 at the second stage is “ON”, the threshold value of the n-channel MOS transistor 312 of the inverter 31 at the first stage is shifted to the current drawn by the p-channel MOS transistor 321. When the potential of the schmitt input signal VSIN reaches the threshold value VH, the schmitt output signal VSOUT is inverted from “Low (L)” to “High(H)” (t41 in
On the other hand, when the potential of the schmitt input signal VSIN falls, since the schmitt output signal VSOUT is “High (H)”, the n-channel MOS transistor 322 of the inverter 32 is turned “ON”, the threshold value of the p-channel MOS transistor 311 of the inverter 31 is shifted to the current drawn by the n-channel MOS transistor 322. When the potential of the schmitt input signal VSIN reaches the threshold value VL, the schmitt output signal VSOUT is inverted from “High(H)” to “Low(L)” (t42 in
As described above, during the normal operation, because the threshold value VH in case that the schmitt output signal VSOUT inverts to “High (H)” and the threshold value VH in case that the schmitt output signal VSOUT inverts to “Low(L)” are different, it is possible to have a hysteresis width.
(Operation when the Adjacent Pin Output is Toggled)
Next, when the output of the adjacent output terminal is toggled and noise is generated, the operation of masking the schmitt input will be described. Specifically, a case where the output of the adjacent output terminal 14 is toggled while inputting to the input terminal 13 in
The output control signal VOUT of the adjacent output terminal 241 is inverted from “Low (L)” to “High (H)” (t51 in
(Input Signal Mask Control when the Adjacent Pin Output is Toggled)
The control for reducing the noise influence due to the output toggle of the adjacent output terminal 241 will be described. When the output control signal VOUT of the adjacent output terminals 241 is toggled, the control unit 11 in
The output control signal VOUT of the adjacent output terminal 2431 is a predetermined period from immediately after inverting “Low(L)” to “High(H)” until the noise is stopped (t61˜t62 in
When switching the switch 34 to a short circuit by the hold signal VHOLD, the schmitt input circuit 3 returns to normal operation, the schmitt output signal VSOUT is inverted in the original high-potential-side threshold value VH as shown in
Since the period for masking the schmitt input signal VSIN by the hold signal VHOLD (from t61 to t62 in
In the first embodiment,
(1) When the output of the input-output circuit 122 of the adjacent output terminal 14 side is toggled, because the microcontroller 1 masks the input signal of the input-output circuit 121 at the input terminal 13 side for a predetermined period and holds the previous value of output, it is possible to reduce the noise influence when the output of the adjacent output terminals is toggled.
(2) By providing a switch 34 for shutting off the Schmitt input signal VSIN for a predetermined period in the input circuit 121 and a hold signal terminal 233 for controlling the switch 34, the input noise is prevented from propagating in the subsequent stage of the input circuit 121, it is possible to prevent erroneous determination of the threshold value of the input circuit 121.
In the first embodiment, a configuration example in which the schmitt input circuit is based on the inverter feedback type schmitt input circuit has been described. In the second embodiment, a configuration example based on a latch type schmitt input circuit will be described.
It will be described normal operation of the schmitt input circuit 7 in the configuration of the second embodiment.
In
For the latch type schmitt input circuit 7, the input threshold value VH of the high potential side by the inverter 703 of
Since the first input potential of the schmitt input signal VSIN is 0V, the input S of the RS flip-flop circuit 707 is “Low (L)”, the input R is “High(H)”, the output Q becomes “High(H)”, the schmitt output signal VSOUT output from the output terminal 709 becomes “Low(L)”. Further when the input potential of the schmitt input signal VSIN is increased, the output of the inverter 701 is inverted to “Low(L)”, the input S and the input R are both “High(H)”, since a previous value of the output Q, “High(H)” is held, the schmitt output signal VSOUT is also held “Low(L)”. Further if the input potential of the schmitt input signal VSIN exceeds the threshold value VH of the inverter 703 rises, the output of the inverter 703 is inverted from “High (H)” to “Low(L)”, the input S of the RS flip-flop circuit 707 is “High(H)”, the input R is “Low(L)”, the output Q becomes “Low (L)”, the schmitt output signal VSOUT is inverted to “High(H)” (t41 in
Next, a description will be given of a case where the potential of the schmitt input-signal VSIN falls gradually from the power supply voltage. When the schmitt input signal VSIN is the power supply voltage, the input S of the RS flip-flop circuit 707 “High (H)”, since the input R is “Low (L)”, the output Q of the RS flip-flop circuit 707 becomes “Low (L)”, the schmitt output signal VSOUT becomes “High(H)”.
When the potential of the schmitt input signal VSIN is gradually decreased, the output of the inverter 703 is inverted from “Low(L)” to “High(H)”, the input S of the RS flip-flop circuit 707 is “High(H)”, the input R is “High(H)”, the output Q is a previous value “Low (L)” is held, the schmitt output signal VSOUT “High(H)” is also held.
Furthermore, when the potential of the schmitt input signal VSIN is lower than the threshold value VL of the inverter 701, the output of the inverter 701 is inverted from “Low (L)” to “High (H)”, the input S of the RS flip-flop circuit 707 is “Low(L)”, the input R becomes “High (H)”, the output Q is inverted to “High (H)”, the schmitt output signal VSOUT is also inverted to “Low (L)” (t42 in
(Input Signal Mask Control when the Adjacent Pin Output is Toggled)
The control for reducing the noise influence due to the output toggle of the adjacent output terminal 241 will be described. The control unit 11 in
The output control signal VOUT of the adjacent output terminal 241 is a predetermined period from immediately after inverted from Low (L) to High(H) until the noise is stopped (from t61 to t62 in
Therefore, since the input S and the input R of the RS flip-flop circuit 707 are also fixed to “High(H)”, the output Q of the RS flip-flop circuit 707 is retained as shown in the truth table of the RS flip-flop circuit of
After switching the hold signal VHOLD to “Low (L)”, since the outputs of the logic circuits 705, 706 are the same as the outputs of the inverters 701, 702, respectively, the schmitt input circuit 211 returns to normal operation. As shown in
In the second embodiment, not only the inverter feedback type schmitt circuit in the first embodiment, the output of the schmitt input circuit by masking the schmitt input signal for a predetermined period even in the latch type schmitt circuit hold the previous value, it is possible to reduce the noise influence at the time of output toggle of the adjacent output terminals.
As a schmitt input circuit, the configuration based on the inverter feedback type schmitt input circuit is described in the first embodiment. Similarly, the configuration based on the latch type schmitt input circuit is described in the second embodiment. In contrast, in the third embodiment, a configuration based on the conventional schmitt input circuit will be described.
It will be described normal operation of the schmitt input circuit 9 in the configuration of the third embodiment.
While short-circuiting the switches 907, 908 by the hold signal VHOLD in
Even if the input voltage of the schmitt input signal VSIN begins to increase gradually, the threshold value of the n-channel MOS transistor 904 is shifted to the high potential by the current drawn by the n-channel MOS transistor 906. When the input potential of the schmitt input signal VSIN is further raised, the n-channel MOS transistors 903, 904 are turned ON, the p-channel MOS transistor 911 of the subsequent inverter 91 is also turned ON, the schmitt output signal VSOUT is inverted to “High(H)” (t41 in
Next, a description will be given of a case where the input potential of the schmitt input signal VSIN falls from the power supply voltage to 0V. Since the initial input potential of the schmitt input signal VSIN is the power supply voltage, the n-channel MOS transistors 903 and 904 are turned ON, the p-channel MOS transistor 911 of the subsequent inverter 91 is also turned ON, the schmitt output signal VSOUT “High(H)” is output.
Even if the input voltage of the schmitt input signal VSIN begins to gradually decrease, the threshold value of the p-channel MOS transistor 901 is shifted to the lower potential by the current drawn by the p-channel MOS transistor 905. When the input potential of the schmitt input signal VSIN is further reduced, the p-channel MOS transistors 901, 902 are turned “ON”, the n-channel MOS transistor 912 of the subsequent inverter 91 is also turned “ON”, the schmitt output signal VSOUT is inverted to “Low(L)” (t42 in
(Input Signal Mask Control when the Adjacent Pin Output is Toggled)
The control for reducing the noise influence due to the output toggle of the adjacent output terminal 241 will be described. When the output control signal VOUT of the output terminal 241 neighboring is toggled, the control unit 11 in
By
After a predetermined time until the noise is reduced, after switching the switches 907, 908 to a short circuit by the hold signal VHOLD, schmitt input circuit 9 returns to normal operation, schmitt output signal VSOUT in the original high-potential-side threshold value VH is inverted as shown in
In the third embodiment, because not only the inverter feedback type schmitt circuit in the first embodiment and the latch type schmitt circuit in the second embodiment but also the conventional type schmitt circuit masks the schmitt input signal for a predetermined period and holds the previous value of the output of schmitt circuit, it is possible to reduce the noise influence at the time of the adjacent terminal output toggle.
It should be noted that the present invention is not limited to the above-mentioned embodiments, and various modifications can be made without departing from the gist thereof.