JP2007088748A - Waveform shaping circuit and semiconductor integrated circuit equipped with it - Google Patents

Waveform shaping circuit and semiconductor integrated circuit equipped with it Download PDF

Info

Publication number
JP2007088748A
JP2007088748A JP2005274262A JP2005274262A JP2007088748A JP 2007088748 A JP2007088748 A JP 2007088748A JP 2005274262 A JP2005274262 A JP 2005274262A JP 2005274262 A JP2005274262 A JP 2005274262A JP 2007088748 A JP2007088748 A JP 2007088748A
Authority
JP
Japan
Prior art keywords
voltage
circuit
threshold
comparator
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005274262A
Other languages
Japanese (ja)
Inventor
Masakazu Iwamoto
正和 岩本
Katsuichi Kuroki
勝一 黒木
Hideaki Usukubo
秀昭 薄窪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2005274262A priority Critical patent/JP2007088748A/en
Publication of JP2007088748A publication Critical patent/JP2007088748A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a waveform shaping circuit which can adjust thresholds in upper and lower symmetrical positions with an intermediate voltage, etc. of an input signal as a reference in the waveform shaping circuit which shapes the input signal into a binary waveform, and outputs it. <P>SOLUTION: The circuit is provided with a comparator which outputs a first voltage or a second voltage according to the comparison result of the input signal and the thresholds, and a threshold creation unit which creates the threshold. The threshold creation unit comprises a reference voltage creation unit which creates the reference voltage. When the output of the comparator is a first voltage, the threshold is switched to a predetermined higher voltage with respect to the reference voltage. When the output of the comparator is a second voltage, the threshold is switched to a predetermined lower voltage with respect to the reference voltage. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、入力信号を二値波形に整形して出力する波形整形回路に関する。   The present invention relates to a waveform shaping circuit that shapes an input signal into a binary waveform and outputs it.

従来より、アナログ波形の信号等を入力して二値波形に整形する波形整形回路(以下、「コンパレータ回路」ともいう。)においては、入力信号の電圧と閾値とを比較するコンパレータ(以下、「比較器」ともいう。)が用いられている。   Conventionally, in a waveform shaping circuit (hereinafter also referred to as a “comparator circuit”) that inputs an analog waveform signal or the like and shapes it into a binary waveform, a comparator (hereinafter referred to as “comparator circuit”) that compares the voltage of the input signal with a threshold value. Also referred to as a "comparator").

このような波形整形回路においては、変化の遅い入力信号やノイズの多い入力信号により発生する多重エッジ(出力信号のばたつき)を低減するために、ヒステリシスを有するものが広く用いられている。   In such a waveform shaping circuit, a circuit having hysteresis is widely used in order to reduce multiple edges (fluctuation of the output signal) caused by a slowly changing input signal or a noisy input signal.

ヒステリシスを付加する方法として、コンパレータの出力を入力に正帰還させるものが一般的である。図4は、正帰還のコンパレータ回路の基本構成を示したものである。   A general method for adding hysteresis is to positively feed back the output of the comparator to the input. FIG. 4 shows a basic configuration of a positive feedback comparator circuit.

図4に示すように、正帰還のコンパレータ回路100は、コンパレータIC100と、コンパレータIC100の正帰還入力端子と入力Vinとの間に接続される入力抵抗R100と、IC100の出力端子と正帰還入力端子との間に接続される帰還抵抗R101とから構成される。   4, the positive feedback comparator circuit 100 includes a comparator IC100, an input resistor R100 connected between the positive feedback input terminal of the comparator IC100 and the input Vin, an output terminal of the IC100, and a positive feedback input terminal. And a feedback resistor R101 connected between the two.

このコンパレータ回路100は、帰還抵抗R101により出力を帰還させる際に発生する入力抵抗R100間の電圧を利用してヒステリシスをもたせている。   The comparator circuit 100 provides hysteresis by using the voltage between the input resistors R100 generated when the output is fed back by the feedback resistor R101.

このヒステリシスを形成するスレッショルド値VthH(コンパレータ回路100の出力をLowからHighとするための閾値。以下、「閾値VthH」ともいう。)、VthL(コンパレータ回路100の出力をHighからLowとするための閾値。以下、「閾値VthL」ともいう。)は以下のように表される。なお、コンパレータ回路100の出力がLowのときの出力電圧をVoutL、Highのときの出力電圧をVoutHとしている。
VthH=(1+R100/R101)Vref−R100/R101×VoutL ・・・(1)
VthL=(1+R100/R101)Vref−R100/R101×VoutH ・・・(2)
Threshold value VthH (threshold for changing the output of the comparator circuit 100 from low to high. Hereinafter, also referred to as “threshold VthH”), VthL (for changing the output of the comparator circuit 100 from high to low) The threshold value (hereinafter also referred to as “threshold value VthL”) is expressed as follows. The output voltage when the output of the comparator circuit 100 is low is VoutL, and the output voltage when the output is high is VoutH.
VthH = (1 + R100 / R101) Vref−R100 / R101 × VoutL (1)
VthL = (1 + R100 / R101) Vref−R100 / R101 × VoutH (2)

コンパレータIC100へ供給される電源電圧VDDが一定である場合には、出力電圧VoutH、VoutL共に一定の値となるため、R100及びR101を変更することにより、所望のスレッショルド値VthH、VthLに調節することができる。   When the power supply voltage VDD supplied to the comparator IC100 is constant, both the output voltages VoutH and VoutL are constant, so that the threshold values VthH and VthL can be adjusted by changing R100 and R101. Can do.

一方、コンパレータIC100へ供給される電源電圧VDDが一定でない場合には、出力電圧VoutHのレベルが変動することになり、結果として、ヒステリシス値も変動することになる。   On the other hand, when the power supply voltage VDD supplied to the comparator IC100 is not constant, the level of the output voltage VoutH varies, and as a result, the hysteresis value also varies.

図5は、出力電圧VoutHの電圧レベルの変動に伴うヒステリシス及び出力電圧波形の変動を示すものである。この図5に示すように、正弦波のアナログ信号が入力されたとき、電源電圧VDDのときにはスレッショルド値VthL、VthHとなり(図5(a)参照)、出力電圧波形は、周期bかつHigh出力パルス幅BWVOUTHのパルス波形(図5(b)参照)となる。一方、電源電圧VDD´のときにはスレッショルド値VthL´となり(図5(a)参照)、出力電圧波形は、周期bかつHigh出力パルス幅BWVOUTH´のパルス波形となる(図5(b)参照)。   FIG. 5 shows the hysteresis and the fluctuation of the output voltage waveform accompanying the fluctuation of the voltage level of the output voltage VoutH. As shown in FIG. 5, when a sine wave analog signal is inputted, the threshold values VthL and VthH are obtained when the power supply voltage is VDD (see FIG. 5A), and the output voltage waveform has a period b and a high output pulse. The pulse waveform has a width BWVOUTH (see FIG. 5B). On the other hand, at the power supply voltage VDD ′, the threshold value VthL ′ is obtained (see FIG. 5A), and the output voltage waveform is a pulse waveform having a period b and a High output pulse width BWVOUTH ′ (see FIG. 5B).

以上のように、従来の正帰還のコンパレータ回路は、電源電圧VDDに依存してスレッショルド値やヒステリシス幅が変化し、High出力パルス幅が変化する。すなわち、電源電圧VDDによって出力パルスのDuty(デューティー比)が変動することになる。   As described above, in the conventional positive feedback comparator circuit, the threshold value and the hysteresis width change depending on the power supply voltage VDD, and the High output pulse width changes. That is, the duty (duty ratio) of the output pulse varies depending on the power supply voltage VDD.

したがって、コンパレータ回路100が、電源回路のばらつきにより電源電圧VDDの変動する状況に置かれるようなときには、Duty(デューティー比)が変動し、安定した波形整形ができない。また、汎用の半導体集積回路にコンパレータ回路100を内蔵するような場合には、多様な電源電圧VDDに対応しなければならず、同様の問題がある。   Therefore, when the comparator circuit 100 is placed in a situation where the power supply voltage VDD fluctuates due to variations in the power supply circuit, the duty (duty ratio) fluctuates and stable waveform shaping cannot be performed. Further, when the comparator circuit 100 is built in a general-purpose semiconductor integrated circuit, it is necessary to cope with various power supply voltages VDD, and there is a similar problem.

そこで、図6に示すように、電源電圧VDDに依存しないヒステリシスを有するコンパレータ回路200が提案されている(たとえば、特許文献1)。   Therefore, as shown in FIG. 6, a comparator circuit 200 having a hysteresis that does not depend on the power supply voltage VDD has been proposed (for example, Patent Document 1).

このコンパレータ回路200は、入力される信号と比較するスレッショルド電圧Vthを出力電圧Voutに応じてスイッチSW200を切り換えるものである。そして、可変電圧発生手段によってスレッショルド値VthHを調節可能とし、可変電流発生手段によってスレッショルド値VthLを調節可能することができるように構成されている(図7参照)。   The comparator circuit 200 switches the switch SW200 according to the output voltage Vout for the threshold voltage Vth to be compared with the input signal. The threshold value VthH can be adjusted by the variable voltage generating means, and the threshold value VthL can be adjusted by the variable current generating means (see FIG. 7).

このようにコンパレータ回路200は、出力電圧が変動した場合であってもヒステリシスが一定となるように構成されているため、電源電圧の変動によらず安定した波形整形ができるものである。
特開平10−54853号公報
Thus, since the comparator circuit 200 is configured so that the hysteresis is constant even when the output voltage fluctuates, the comparator circuit 200 can perform stable waveform shaping regardless of fluctuations in the power supply voltage.
Japanese Patent Laid-Open No. 10-54853

しかし、特許文献1のコンパレータ回路は、可変電圧発生手段によってスレッショルド値VthHを調節し、可変電流発生手段によってスレッショルド値VthLを調節する構成であるため、その調節を容易に行なうことができなかった。   However, since the comparator circuit of Patent Document 1 has a configuration in which the threshold value VthH is adjusted by the variable voltage generating means and the threshold value VthL is adjusted by the variable current generating means, the adjustment cannot be easily performed.

すなわち、スレッショルド値VthH、VthLは、入力信号の信号レベルを考慮して調節されるものであるが、特許文献1のコンパレータ回路では、その入力信号の中間電圧等を基準とすることができないままスレッショルド値VthH、VthLを設定せざるを得なかった。したがって、スレッショルド値VthH、VthLを設定した後に、ヒステリシス幅を調整するためには、可変電圧発生手段と可変電流発生手段とを再度調節する必要があり煩雑であった。   That is, the threshold values VthH and VthL are adjusted in consideration of the signal level of the input signal. However, in the comparator circuit of Patent Document 1, the threshold value cannot be set based on the intermediate voltage of the input signal. The values VthH and VthL had to be set. Therefore, in order to adjust the hysteresis width after setting the threshold values VthH and VthL, it is necessary to adjust the variable voltage generating means and the variable current generating means again, which is complicated.

特に、正弦波入力時のデューティー比を略50%にするために、入力信号の中間電圧等を基準として上下対称にスレッショルド値VthH、VthLを調節使用とするときには、その作業は煩雑であった。   In particular, in order to make the duty ratio at the time of sine wave input approximately 50%, the operation is complicated when the threshold values VthH and VthL are adjusted and used symmetrically with respect to the intermediate voltage of the input signal as a reference.

そこで、請求項1に記載の発明は、入力信号を二値波形に整形して出力する波形整形回路において、前記入力信号と閾値との比較結果に応じて第1の電圧又は第2の電圧を出力する比較器と、前記閾値を生成する閾値生成部と、を備え、前記閾値生成部は、基準電圧を生成する基準電圧生成部を有し、前記比較器の出力が第1の電圧のときには前記閾値を基準電圧に対して所定値高い電圧に切り換え、前記比較器の出力が第2の電圧のときには前記閾値を前記基準電圧に対して前記所定値低い電圧に切り換えることを特徴とする。   Therefore, the invention according to claim 1 is a waveform shaping circuit that shapes an input signal into a binary waveform and outputs the waveform, and outputs a first voltage or a second voltage according to a comparison result between the input signal and a threshold value. A comparator that outputs the threshold, and a threshold generator that generates the threshold. The threshold generator includes a reference voltage generator that generates a reference voltage, and when the output of the comparator is the first voltage The threshold value is switched to a voltage higher than a reference voltage by a predetermined value, and when the output of the comparator is a second voltage, the threshold value is switched to a voltage lower than the reference voltage by the predetermined value.

また、請求項2に記載の発明は、請求項1に記載の発明であって、前記閾値生成部は、一端が前記基準電圧生成部に接続されると共に、他端が前記比較器に接続される閾値調整用抵抗部を備え、前記比較器の出力が第1の電圧か第2の電圧かによって、前記閾値調整用抵抗部に流す電流の方向を変えることによって前記閾値を切り換えることを特徴とする。   The invention according to claim 2 is the invention according to claim 1, wherein one end of the threshold value generator is connected to the reference voltage generator, and the other end is connected to the comparator. A threshold adjustment resistor unit, and the threshold value is switched by changing a direction of a current flowing through the threshold adjustment resistor unit according to whether the output of the comparator is a first voltage or a second voltage. To do.

また、請求項3に記載の発明は、請求項2に記載の発明であって、前記閾値調整用抵抗部は、複数の抵抗と、前記複数の抵抗のうち少なくともいずれか一つを選択し、該選択した抵抗を閾値調整用抵抗部の抵抗とする閾値調整用抵抗選択回路とを有することを特徴とする。   The invention according to claim 3 is the invention according to claim 2, wherein the threshold adjustment resistor section selects at least one of a plurality of resistors and the plurality of resistors, And a threshold adjustment resistor selection circuit that uses the selected resistor as the resistance of the threshold adjustment resistor section.

また、請求項4に記載の発明は、請求項2又は請求項3に記載の発明であって、前記閾値生成部は、前記閾値調整用抵抗部の他端にそれぞれ接続される第1の定電流回路及び第2の定電流回路を備え、前記比較器の出力が第1の電圧のとき第1の定電流回路から前記閾値調整用抵抗部へ電流を流すと共に、前記比較器の出力が第2の電圧のとき前記閾値調整用抵抗部から第2の定電流回路へ電流を流すことを特徴とする。   The invention according to claim 4 is the invention according to claim 2 or 3, wherein the threshold value generator is connected to the other end of the threshold value adjusting resistor, respectively. A current circuit and a second constant current circuit, and when the output of the comparator is a first voltage, a current flows from the first constant current circuit to the threshold adjustment resistor, and the output of the comparator When the voltage is 2, current flows from the threshold adjustment resistor to the second constant current circuit.

また、請求項5に記載の発明は、請求項4に記載の発明であって、第2の定電流回路の電流値は、第1の定電流回路の電流値の略2倍であり、第2の定電流回路への電流を停止することにより第1の定電流回路から前記閾値調整用抵抗部へ電流を流すことを特徴とする。   The invention according to claim 5 is the invention according to claim 4, wherein the current value of the second constant current circuit is substantially twice the current value of the first constant current circuit, By stopping the current to the second constant current circuit, the current flows from the first constant current circuit to the threshold adjustment resistor.

また、請求項6に記載の発明は、請求項1〜5のいずれか一項に記載の発明であって、前記基準電圧生成部は、前記入力信号のピークをホールドして出力するピークホールド回路と、前記入力信号のボトムをホールドして出力するボトムホールド回路とを有し、前記ピークホールド回路の出力と前記ボトムホールド回路の出力との基準の電圧を前記基準電圧とすることを特徴とする。   The invention according to claim 6 is the invention according to any one of claims 1 to 5, wherein the reference voltage generator holds and outputs a peak of the input signal. And a bottom hold circuit that holds and outputs the bottom of the input signal, and a reference voltage between the output of the peak hold circuit and the output of the bottom hold circuit is used as the reference voltage. .

また、請求項7に記載の発明は、入力信号を二値波形に整形して出力する波形整形回路を設けた半導体集積回路において、前波形整形回路は、前記入力信号と閾値との比較結果に応じて第1の電圧又は第2の電圧を出力する比較器と、前記閾値を生成する閾値生成部と、を備え、前記閾値生成部は、基準電圧を生成すると共に、前記比較器の出力が第1の電圧のときには前記閾値を基準電圧に対して所定値高い電圧に切り換え、前記比較器の出力が第2の電圧のときには前記閾値を前記基準電圧に対して前記所定値低い電圧に切り換えることを特徴とする。   According to a seventh aspect of the present invention, in the semiconductor integrated circuit provided with the waveform shaping circuit that shapes the input signal into a binary waveform and outputs the waveform, the previous waveform shaping circuit determines the comparison result between the input signal and the threshold value. And a comparator that outputs the first voltage or the second voltage according to the threshold value and a threshold value generator that generates the threshold value. The threshold value generator generates a reference voltage, and the output of the comparator is When the voltage is the first voltage, the threshold is switched to a voltage higher than the reference voltage by a predetermined value. When the output of the comparator is the second voltage, the threshold is switched to the voltage lower than the reference voltage by the predetermined value. It is characterized by.

請求項1又は請求項7に記載の発明によれば、比較器の出力が第1の電圧のときには閾値を基準電圧に対して所定値高い電圧に切り換え、比較器の出力が第2の電圧のときには閾値を基準電圧に対して所定値低い電圧に切り換えるので、波形整形回路におけるヒステリシスを形成するスレッショルド値を基準電圧に対して対称にすることができる。したがって、波形整形回路の設計開発時等に、ヒステリシス幅の調節を入力信号の中間電圧(若しくは平均電圧等)を基準として行なうことができる。   According to the first or seventh aspect of the invention, when the output of the comparator is the first voltage, the threshold is switched to a voltage higher than the reference voltage by a predetermined value, and the output of the comparator is the second voltage. Sometimes, the threshold value is switched to a voltage lower than the reference voltage by a predetermined value, so that the threshold value forming the hysteresis in the waveform shaping circuit can be made symmetric with respect to the reference voltage. Therefore, at the time of designing and developing the waveform shaping circuit, the hysteresis width can be adjusted based on the intermediate voltage (or average voltage or the like) of the input signal.

また、請求項2に記載の発明によれば、閾値生成部は、比較器の出力が第1の電圧か第2の電圧かによって、基準電圧生成部と比較器との間に接続された閾値調整用抵抗部に流す電流の方向を変えることによって閾値を切り換えているので、波形整形回路のヒステリシス幅が閾値調整用抵抗部の抵抗値に応じて可変となる。したがって、閾値調整用抵抗部の抵抗値を調整することによりヒステリシス幅を容易に調節することが可能となる。   According to the invention described in claim 2, the threshold value generator is connected between the reference voltage generator and the comparator depending on whether the output of the comparator is the first voltage or the second voltage. Since the threshold value is switched by changing the direction of the current flowing through the adjustment resistor unit, the hysteresis width of the waveform shaping circuit is variable according to the resistance value of the threshold adjustment resistor unit. Therefore, the hysteresis width can be easily adjusted by adjusting the resistance value of the threshold value adjusting resistor.

また、請求項3に記載の発明によれば、複数の抵抗を少なくとも一つを選択により閾値調整用抵抗部の抵抗値の調整を行なうことができるので、ヒステリシス幅の調節が容易となる。   According to the third aspect of the present invention, since the resistance value of the threshold adjustment resistor portion can be adjusted by selecting at least one of the plurality of resistors, the hysteresis width can be easily adjusted.

また、請求項4に記載の発明によれば、比較器の出力が第1の電圧のとき第1の定電流回路から閾値調整用抵抗部へ電流を流すと共に、比較器の出力が第2の電圧のとき閾値調整用抵抗部から第2の定電流回路へ電流を流すように構成しているので、閾値調整用抵抗部に流れる電流を定電流にすることができ、その結果、閾値調整用抵抗部に流す電流を安定的に供給することができる。   According to the fourth aspect of the present invention, when the output of the comparator is the first voltage, the current flows from the first constant current circuit to the threshold adjustment resistor, and the output of the comparator is the second voltage. Since the current flows from the threshold adjustment resistor section to the second constant current circuit when the voltage is applied, the current flowing through the threshold adjustment resistor section can be a constant current. It is possible to stably supply a current that flows through the resistance portion.

また、請求項5に記載の発明によれば、第2の定電流回路への電流を停止することにより第1の定電流回路から閾値調整用抵抗部へ電流を流すように構成しているので、第2の定電流回路の電流出力をオンするかオフするかによって、閾値調整用抵抗部に流れる電流の向きを反転させることができる。しかも、第2の定電流回路の電流値を第1の定電流回路の電流値の略2倍としているため、スレッショルド値VthL及びVthHを基準電圧に対して対称にすることが容易になる。   According to the fifth aspect of the invention, since the current to the second constant current circuit is stopped, the current flows from the first constant current circuit to the threshold adjustment resistor portion. Depending on whether the current output of the second constant current circuit is turned on or off, the direction of the current flowing through the threshold adjustment resistor can be reversed. In addition, since the current value of the second constant current circuit is approximately twice the current value of the first constant current circuit, the threshold values VthL and VthH can be easily symmetric with respect to the reference voltage.

また、請求項6に記載の発明によれば、基準電圧生成部は、ピークホールド回路の出力とボトムホールド回路の出力との中間の電圧を基準電圧とする構成としているので、入力信号に応じて動的に基準電圧を生成することができ、入力信号の電圧レベルにかかわらず、正弦波入力時のデューティー比を略50%とした波形整形回路を提供することが可能となる。   According to the sixth aspect of the present invention, the reference voltage generation unit is configured to use the intermediate voltage between the output of the peak hold circuit and the output of the bottom hold circuit as the reference voltage. A reference voltage can be dynamically generated, and a waveform shaping circuit with a duty ratio of approximately 50% when a sine wave is input can be provided regardless of the voltage level of the input signal.

本実施の形態における波形整形回路及び半導体集積回路は、入力信号を二値波形に整形して出力するものであり、入力信号と閾値との比較結果に応じて第1の電圧又は第2の電圧を出力する比較器と、閾値を生成する閾値生成部とを備えている。   The waveform shaping circuit and the semiconductor integrated circuit according to the present embodiment shape an input signal into a binary waveform and output it. The first voltage or the second voltage is output according to the comparison result between the input signal and the threshold value. Is provided, and a threshold value generation unit that generates a threshold value is provided.

しかも、閾値生成部は、基準電圧を生成する基準電圧生成部を有し、比較器の出力が第1の電圧のときには閾値を基準電圧に対して所定値高い電圧に切り換え、比較器の出力が第2の電圧のときには閾値を基準電圧に対して所定値低い電圧に切り換えるものである。   In addition, the threshold generation unit includes a reference voltage generation unit that generates a reference voltage. When the output of the comparator is the first voltage, the threshold is switched to a voltage higher than the reference voltage by a predetermined value, and the output of the comparator is In the case of the second voltage, the threshold value is switched to a voltage lower by a predetermined value than the reference voltage.

したがって、波形整形回路におけるヒステリシスを形成する閾値、すなわちスレッショルド値VthL及びVthHを基準電圧に対して対称にすることができる。   Therefore, the thresholds forming the hysteresis in the waveform shaping circuit, that is, the threshold values VthL and VthH can be made symmetric with respect to the reference voltage.

その結果、波形整形回路の設計開発時等に、ヒステリシス幅の調節を基準電圧を基準として行なうことができる。   As a result, it is possible to adjust the hysteresis width with reference to the reference voltage at the time of designing and developing the waveform shaping circuit.

閾値生成部は、一端が基準電圧に接続されると共に、他端が比較器の入力に接続される閾値調整用抵抗部を備えている。   The threshold generation unit includes a threshold adjustment resistor unit having one end connected to the reference voltage and the other end connected to the input of the comparator.

しかも、比較器の出力が第1の電圧か第2の電圧かによって、閾値調整用抵抗部に流す電流の方向を変えることによって閾値を切り換えるようにしている。   In addition, the threshold value is switched by changing the direction of the current flowing through the threshold adjustment resistor depending on whether the output of the comparator is the first voltage or the second voltage.

したがって、波形整形回路のヒステリシス幅が閾値調整用抵抗部の抵抗値に応じて可変となる。   Therefore, the hysteresis width of the waveform shaping circuit is variable according to the resistance value of the threshold adjustment resistor.

その結果、閾値調整用抵抗部の抵抗値を調整することによりヒステリシス幅を容易に調節することが可能となる。   As a result, the hysteresis width can be easily adjusted by adjusting the resistance value of the threshold value adjusting resistor.

また、閾値調整用抵抗部は、複数の抵抗と、前記複数の抵抗のうち少なくともいずれか一つを選択し、該選択した抵抗を閾値調整用抵抗部の抵抗とする閾値調整用抵抗選択回路を有している。   The threshold adjustment resistor unit includes a threshold adjustment resistor selection circuit that selects at least one of a plurality of resistors and the plurality of resistors and uses the selected resistor as a resistance of the threshold adjustment resistor unit. Have.

したがって、複数の抵抗からの選択により閾値調整用抵抗部の抵抗値の調整を行なうことができる。   Therefore, the resistance value of the threshold value adjusting resistor can be adjusted by selecting from a plurality of resistors.

その結果、ヒステリシス幅の調節が容易となる。しかも、半導体集積回路の外部にこの抵抗を設けることができるようにすれば、波形整形回路を内蔵した半導体集積回路を製造したあとであっても、ヒステリシス幅の調節が可能となる。   As a result, the hysteresis width can be easily adjusted. In addition, if this resistance can be provided outside the semiconductor integrated circuit, the hysteresis width can be adjusted even after the semiconductor integrated circuit incorporating the waveform shaping circuit is manufactured.

さらに、閾値生成部は、閾値調整用抵抗部の他端にそれぞれ接続される第1の定電流回路及び第2の定電流回路を備えている。   Furthermore, the threshold value generation unit includes a first constant current circuit and a second constant current circuit that are respectively connected to the other end of the threshold value adjusting resistor unit.

しかも、比較器の出力が第1の電圧のとき第1の定電流回路から閾値調整用抵抗部へ電流を流すと共に、比較器の出力が第2の電圧のとき閾値調整用抵抗部から第2の定電流回路へ電流を流すように構成している。   In addition, when the output of the comparator is the first voltage, the current flows from the first constant current circuit to the threshold adjustment resistor, and when the output of the comparator is the second voltage, the second value is output from the threshold adjustment resistor. The current is supplied to the constant current circuit.

したがって、閾値調整用抵抗部に流れる電流を定電流にすることができ、その結果、閾値調整用抵抗部に流す電流を安定的に供給することができる。   Therefore, the current flowing through the threshold adjustment resistor can be a constant current, and as a result, the current flowing through the threshold adjustment resistor can be stably supplied.

また、第2の定電流回路の電流値は、第1の定電流回路の電流値の略2倍であり、第2の定電流回路へ流れる電流を停止することにより第1の定電流回路から閾値調整用抵抗部へ電流を流すように構成している。   The current value of the second constant current circuit is approximately twice the current value of the first constant current circuit. By stopping the current flowing to the second constant current circuit, the current value from the first constant current circuit is A current is passed through the threshold adjustment resistor.

したがって、第2の定電流回路への電流をオンするかオフするかによって、閾値調整用抵抗部に流れる電流の向きを反転させることができる。しかも、第2の定電流回路の電流値を第1の定電流回路の電流値の略2倍としているため、スレッショルド値VthL及びVthHを基準電圧に対して対称にすることが容易になる。加えて、同一半導体上で第1の定電流回路と第2の定電流回路とを形成すれば、ばらつきを抑制することができ、定電流回路の精度を向上させることができるため、基準電圧に対して対称性を向上させることが可能となる。   Therefore, the direction of the current flowing through the threshold adjustment resistor can be reversed depending on whether the current to the second constant current circuit is turned on or off. In addition, since the current value of the second constant current circuit is approximately twice the current value of the first constant current circuit, the threshold values VthL and VthH can be easily symmetric with respect to the reference voltage. In addition, if the first constant current circuit and the second constant current circuit are formed on the same semiconductor, variations can be suppressed and the accuracy of the constant current circuit can be improved. On the other hand, the symmetry can be improved.

また、第1の定電流回路は第1のトランジスタにより構成され、第2の定電流回路は第2のトランジスタにより構成されており、第1のトランジスタとカレントミラー回路を構成する第3のトランジスタと、第2のトランジスタとカレントミラー回路を構成する第4のトランジスタとに所定電流を流す第3の定電流回路を設けている。   In addition, the first constant current circuit is constituted by a first transistor, the second constant current circuit is constituted by a second transistor, and the first transistor and a third transistor constituting a current mirror circuit; A third constant current circuit for supplying a predetermined current to the second transistor and the fourth transistor constituting the current mirror circuit is provided.

したがって、第3の定電流回路に流す電流によって、第1の定電流回路の電流値と第2の定電流回路の電流値を可変にすることができる。   Therefore, the current value of the first constant current circuit and the current value of the second constant current circuit can be made variable by the current flowing through the third constant current circuit.

その結果、閾値調整用抵抗を変えることなく、第3の定電流回路の定電流の電流値を変えることにより、ヒステリシス幅の調節が可能となる。しかも、閾値調整用抵抗による調節と合わせて行うことによりヒステリシス幅の調節が容易かつ精度よく可能となる。   As a result, the hysteresis width can be adjusted by changing the current value of the constant current of the third constant current circuit without changing the threshold adjustment resistor. In addition, the hysteresis width can be easily and accurately adjusted by performing adjustment together with the adjustment by the threshold adjustment resistor.

また、第3の定電流回路は、所定電圧を出力するバッファーアンプと、バッファーアンプの出力と第2の電位との間に接続される調整用抵抗と、バッファーアンプの出力に接続される第5のトランジスタと、第5のトランジスタとカレントミラー回路を構成する第6のトランジスタとを備えている。   The third constant current circuit includes a buffer amplifier that outputs a predetermined voltage, an adjustment resistor connected between the output of the buffer amplifier and the second potential, and a fifth amplifier connected to the output of the buffer amplifier. And a sixth transistor that forms a current mirror circuit with the fifth transistor.

したがって、バッファーアンプの出力と第2の電位との間に設けられる抵抗を変更することによって、第3の定電流回路の定電流値を変更することができる。   Therefore, the constant current value of the third constant current circuit can be changed by changing the resistance provided between the output of the buffer amplifier and the second potential.

その結果、第3の定電流回路の定電流値の変更が容易となる。しかも、半導体集積回路の外部にこの抵抗を設けることができるようにすれば、波形整形回路を内蔵した半導体集積回路を製造したあとであっても、ヒステリシス幅の調節が可能となる。   As a result, the constant current value of the third constant current circuit can be easily changed. In addition, if this resistance can be provided outside the semiconductor integrated circuit, the hysteresis width can be adjusted even after the semiconductor integrated circuit incorporating the waveform shaping circuit is manufactured.

また、上述の基準電圧生成部は、入力信号のピークをホールドして出力するピークホールド回路と、入力信号のボトムをホールドして出力するボトムホールド回路とを有しており、ピークホールド回路の出力とボトムホールド回路の出力との基準の電圧を基準電圧とする構成としている。   The reference voltage generation unit described above has a peak hold circuit that holds and outputs the peak of the input signal, and a bottom hold circuit that holds and outputs the bottom of the input signal, and outputs the peak hold circuit. And a reference voltage between the output of the bottom hold circuit and the reference voltage.

したがって、入力信号に応じて動的に基準電圧を生成することができ、入力信号の電圧レベルにもかかわらず、正弦波入力時のデューティー比を略50%とした波形整形回路を提供することが可能となる。   Therefore, it is possible to provide a waveform shaping circuit that can dynamically generate a reference voltage in accordance with an input signal and has a duty ratio of approximately 50% when a sine wave is input, regardless of the voltage level of the input signal. It becomes possible.

以下、発明の実施の形態の波形整形回路について、さらに具体的に説明する。図1は本実施の形態における波形整形回路の基本的な回路構成を示す図、図2は本実施形態における波形整形回路の入出力波形を示す図である。なお、この波形整形回路は、半導体集積回路内に設けられるものである。   Hereinafter, the waveform shaping circuit of the embodiment of the invention will be described more specifically. FIG. 1 is a diagram showing a basic circuit configuration of a waveform shaping circuit in the present embodiment, and FIG. 2 is a diagram showing input / output waveforms of the waveform shaping circuit in the present embodiment. This waveform shaping circuit is provided in the semiconductor integrated circuit.

図1に示すように、本実施形態における波形整形回路1は、入力信号Vinを反転入力端子に入力し、閾値Vthを非反転入力端子に入力する比較器IC1と、閾値Vthを生成する閾値生成部2とを有している。   As shown in FIG. 1, the waveform shaping circuit 1 according to the present embodiment has an input signal Vin input to an inverting input terminal, a comparator IC1 that inputs a threshold Vth to a non-inverting input terminal, and a threshold generation that generates the threshold Vth. Part 2.

比較器IC1は、入力信号と閾値Vthとの比較結果に応じて第1の電圧であるHigh信号(以下、単に「High」と呼ぶこともある)又は第2の電圧であるLow信号(以下、単に「Low」と呼ぶこともある)を出力するコンパレータである。   The comparator IC1 has a high signal (hereinafter also simply referred to as “High”) as a first voltage or a low signal (hereinafter referred to as “high”) as a second voltage according to a comparison result between the input signal and the threshold value Vth. This is a comparator that simply outputs "Low".

閾値生成部2は、基準電圧Vrefを生成する基準電圧生成部3と、閾値Vthを調整可能な閾値調整用抵抗R1と、この閾値調整用抵抗R1に定電流を流すための第1の定電流回路4及び第2の定電流回路5とを有している。   The threshold generation unit 2 includes a reference voltage generation unit 3 that generates the reference voltage Vref, a threshold adjustment resistor R1 that can adjust the threshold Vth, and a first constant current for flowing a constant current through the threshold adjustment resistor R1. The circuit 4 and the second constant current circuit 5 are included.

第1の定電流回路4及び第2の定電流回路5は、比較器IC1の出力によって制御される。すなわち、比較器IC1の出力がHighのとき第1の定電流回路4から閾値調整用抵抗R1へ電流I1を流し、比較器IC1の出力がLowのとき閾値調整用抵抗R1から第2の定電流回路5へ電流I1を流すように制御される。   The first constant current circuit 4 and the second constant current circuit 5 are controlled by the output of the comparator IC1. That is, when the output of the comparator IC1 is High, the current I1 flows from the first constant current circuit 4 to the threshold adjustment resistor R1, and when the output of the comparator IC1 is Low, the second constant current is output from the threshold adjustment resistor R1. Control is performed so that the current I 1 flows to the circuit 5.

このように第1の定電流回路4及び第2の定電流回路5が比較器IC1の出力によって制御されることにより、閾値VthH、VthLは以下式で表される。
VthH=Vref+R1×I1 ・・・(3)
VthL=Vref−R1×I1 ・・・(4)
As described above, when the first constant current circuit 4 and the second constant current circuit 5 are controlled by the output of the comparator IC1, the threshold values VthH and VthL are expressed by the following equations.
VthH = Vref + R1 × I1 (3)
VthL = Vref−R1 × I1 (4)

したがって、比較器IC1の出力がLowのときには閾値Vthを基準電圧Vrefに対して所定値(R1×I1)低い電圧VthLへ切り換わり、比較器IC1の出力がHighのときには閾値Vthを基準電圧Vrefに対して所定値(R1×I1)高い電圧VthHへ切り換わる。このように閾値調整用抵抗R1に流す電流の方向を変えることによって、閾値Vthを基準に対称の電圧VthL、電圧VthHとすることができる。   Accordingly, when the output of the comparator IC1 is low, the threshold Vth is switched to a voltage VthL that is lower than the reference voltage Vref by a predetermined value (R1 × I1). When the output of the comparator IC1 is high, the threshold Vth is changed to the reference voltage Vref. On the other hand, the voltage VthH is switched to a predetermined value (R1 × I1) higher. In this way, by changing the direction of the current flowing through the threshold adjustment resistor R1, the voltages VthL and VthH can be made symmetrical with respect to the threshold Vth.

以上のように構成された波形整形回路1について、図2を用いてその動作を具体的に説明する。   The operation of the waveform shaping circuit 1 configured as described above will be specifically described with reference to FIG.

図2(a)は、波形整形回路1に入力される入力信号Vinの電圧波形を表したものであり、本実施形態においては、基準電圧Vrefを中心電圧とした正弦波を入力信号Vinが入力されることとしている。   FIG. 2A shows the voltage waveform of the input signal Vin input to the waveform shaping circuit 1. In this embodiment, the input signal Vin is input as a sine wave having the reference voltage Vref as the center voltage. It is going to be done.

この入力信号Vinが波形整形回路1の比較器IC1の反転入力端子に入力されると、比較器IC1により非反転入力端子に入力された閾値Vthと入力信号Vinとが比較される。そして、入力信号Vinが閾値VthHよりも高いと、比較器IC1の出力電圧がLowとなり、入力信号Vinが閾値VthLよりも低いと、比較器IC1の出力電圧がHighとなる(図2(b)参照)。   When this input signal Vin is input to the inverting input terminal of the comparator IC1 of the waveform shaping circuit 1, the threshold value Vth input to the non-inverting input terminal by the comparator IC1 is compared with the input signal Vin. When the input signal Vin is higher than the threshold value VthH, the output voltage of the comparator IC1 becomes Low, and when the input signal Vin is lower than the threshold value VthL, the output voltage of the comparator IC1 becomes High (FIG. 2B). reference).

また、図2(c)は、波形整形回路1の閾値Vth波形を表したものであり、比較器IC1の出力の変化(図2(b)参照)に応じて、閾値Vthの電圧が変化している。すなわち、比較器IC1の出力がLowのときには閾値VthLへ切り換る一方、比較器IC1の出力がHighのときには閾値VthHへ切り換る。   FIG. 2C shows the threshold Vth waveform of the waveform shaping circuit 1, and the voltage of the threshold Vth changes according to the change in the output of the comparator IC1 (see FIG. 2B). ing. That is, when the output of the comparator IC1 is Low, the threshold value is switched to the threshold value VthL, and when the output of the comparator IC1 is High, the threshold value is switched to the threshold value VthH.

以上のように、本実施形態における波形整形回路1によれば、ヒステリシスを形成するスレッショルド値VthL及びVthHを基準電圧Vrefに対して対称(VHYSH=VHYSL)にすることができ、波形整形回路の設計開発時等に、基準電圧を基準にしてヒステリシス幅の調節を行なうことができる。したがって、基準電圧生成部3により基準電圧Vrefとして入力信号の中間電圧(若しくは平均電圧)を生成することにより、正弦波入力時のデューティー比を略50%とすることができる。   As described above, according to the waveform shaping circuit 1 of the present embodiment, the threshold values VthL and VthH forming the hysteresis can be made symmetrical (VHYSH = VHYSL) with respect to the reference voltage Vref, and the waveform shaping circuit is designed. During development, the hysteresis width can be adjusted with reference to the reference voltage. Therefore, by generating the intermediate voltage (or average voltage) of the input signal as the reference voltage Vref by the reference voltage generator 3, the duty ratio at the time of sine wave input can be made approximately 50%.

また、閾値調整用抵抗R1の抵抗値を調整することにより、ヒステリシス幅VHSYを簡単に調節することができるため、波形整形回路1の設計開発が容易となる。さらに、この閾値調整用抵抗R1を半導体集積回路に設けず、外付けの構成とすれば、汎用性の高い半導体集積回路を提供することができる。   In addition, the hysteresis width VHSY can be easily adjusted by adjusting the resistance value of the threshold adjustment resistor R1, thereby facilitating the design and development of the waveform shaping circuit 1. Further, if the threshold adjustment resistor R1 is not provided in the semiconductor integrated circuit but is provided as an external configuration, a highly versatile semiconductor integrated circuit can be provided.

次に、本実施形態における波形整形回路の具体的な回路構成について、図3を参照しながら詳説する。図3は、本実施形態における波形整形回路1の具体的な回路構成を示す図である。   Next, a specific circuit configuration of the waveform shaping circuit in the present embodiment will be described in detail with reference to FIG. FIG. 3 is a diagram showing a specific circuit configuration of the waveform shaping circuit 1 in the present embodiment.

まず、基準電圧生成部3について説明する。この基準電圧生成部3は、図3に示すように、入力信号Vinのピーク電圧をホールドして出力するピークホールド回路31と、入力信号Vinのボトム電圧をホールドして出力するボトムホールド回路32とを有している。   First, the reference voltage generation unit 3 will be described. As shown in FIG. 3, the reference voltage generator 3 holds a peak hold circuit 31 that holds and outputs the peak voltage of the input signal Vin, and a bottom hold circuit 32 that holds and outputs the bottom voltage of the input signal Vin. have.

このピークホールド回路31のホールド時間はコンデンサC1により調整することができ、このボトムホールド回路32のホールド時間はコンデンサC2により調整することができるように構成されている。なお、コンデンサC1、C2は、半導体集積回路に内蔵せず、外付けできるようにすることにより半導体集積回路の汎用性を向上させることができる。すなわち、ピークホールド回路31及びボトムホールド回路32からそれぞれ半導体集積回路外に端子を出し、これらの端子と第2の電位(VSS)との間にそれぞれコンデンサC1、C2を接続することで、半導体集積回路を製造後であってもホールド時間の調整が可能となる。   The hold time of the peak hold circuit 31 can be adjusted by the capacitor C1, and the hold time of the bottom hold circuit 32 can be adjusted by the capacitor C2. Capacitors C1 and C2 are not built in the semiconductor integrated circuit, but can be externally attached to improve the versatility of the semiconductor integrated circuit. That is, terminals are provided from the peak hold circuit 31 and the bottom hold circuit 32 to the outside of the semiconductor integrated circuit, and the capacitors C1 and C2 are connected between these terminals and the second potential (VSS), respectively. Even after the circuit is manufactured, the hold time can be adjusted.

ピークホールド回路31からの出力は抵抗R4を介して、バッファーアンプIC3の入力に接続され、ボトムホールド回路32からの出力は抵抗R5を介して、バッファーアンプIC3の入力に接続される。ここで、R4及びR5は、同一の抵抗値とすることにより、バッファーアンプIC3の入力との接続点で、ピークホールド回路31の出力電圧とボトムホールド回路32の出力電圧との中間電圧となる。そして、この中間電圧はバッファーアンプIC3でバッファーされ、このようにバッファーされた中間電圧が基準電圧として基準電圧生成部3から出力さる。なお、基準電圧生成部3から出力される基準電圧は、閾値調整用抵抗部6へ入力される。   The output from the peak hold circuit 31 is connected to the input of the buffer amplifier IC3 via the resistor R4, and the output from the bottom hold circuit 32 is connected to the input of the buffer amplifier IC3 via the resistor R5. Here, by setting R4 and R5 to the same resistance value, an intermediate voltage between the output voltage of the peak hold circuit 31 and the output voltage of the bottom hold circuit 32 is obtained at the connection point with the input of the buffer amplifier IC3. The intermediate voltage is buffered by the buffer amplifier IC3, and the buffered intermediate voltage is output from the reference voltage generation unit 3 as a reference voltage. The reference voltage output from the reference voltage generation unit 3 is input to the threshold adjustment resistor unit 6.

なお、基準電圧生成部3は、上述のようにホールド回路を用いて基準電圧を生成するもの他、入力信号Vinを所定間隔でサンプリングし、そのサンプリングした値を平均化した値に応じた電圧を基準電圧Vrefとしてもよく、これに限られない。   The reference voltage generating unit 3 samples the input signal Vin at a predetermined interval in addition to generating the reference voltage using the hold circuit as described above, and generates a voltage corresponding to a value obtained by averaging the sampled values. The reference voltage Vref may be used, but is not limited thereto.

次に、閾値調整用抵抗部6について説明する。図3に示すように、閾値調整用抵抗部6は、複数の抵抗R10a〜R10nと、この複数の抵抗R10a〜R10nのうち少なくともいずれか一つを選択し、該選択した抵抗を閾値調整用抵抗部の抵抗とする閾値調整用抵抗選択回路(図3におけるスイッチ部分)とを有している。複数の抵抗を選択することにより、閾値調整用抵抗部6の抵抗値を細かく設定することができる。なお、閾値調整用抵抗部6は、半導体集積回路に内蔵せず、外付けできるようにすることにより半導体集積回路の汎用性を向上させることができる。このとき、閾値調整用抵抗部6は一つの抵抗のみから構成されるようにしてもよく、閾値調整用抵抗選択回路は不要となる。   Next, the threshold adjustment resistor 6 will be described. As shown in FIG. 3, the threshold adjustment resistor 6 selects a plurality of resistors R10a to R10n and at least one of the plurality of resistors R10a to R10n, and uses the selected resistor as a threshold adjustment resistor. And a threshold adjustment resistor selection circuit (switch portion in FIG. 3). By selecting a plurality of resistors, the resistance value of the threshold adjusting resistor 6 can be set finely. Note that the versatility of the semiconductor integrated circuit can be improved by allowing the threshold adjusting resistor 6 to be externally attached without being incorporated in the semiconductor integrated circuit. At this time, the threshold adjustment resistor section 6 may be configured by only one resistor, and the threshold adjustment resistor selection circuit is not required.

波形整形回路1は、上述のように、比較器IC1の出力がHighのとき第1の定電流回路4から閾値調整用抵抗部6へ電流を流すと共に、比較器IC1の出力がLowのとき閾値調整用抵抗部6から第2の定電流回路5へ電流を流すように構成している。   As described above, the waveform shaping circuit 1 causes a current to flow from the first constant current circuit 4 to the threshold adjustment resistor 6 when the output of the comparator IC1 is High, and also when the output of the comparator IC1 is Low. A current is allowed to flow from the adjustment resistor 6 to the second constant current circuit 5.

そして、第1の定電流回路4は、第1のトランジスタであるPMOSトランジスタQ1より構成されており、第2の定電流回路5は、第2のトランジスタであるNMOSトランジスタQ5より構成されている。   The first constant current circuit 4 includes a PMOS transistor Q1 that is a first transistor, and the second constant current circuit 5 includes an NMOS transistor Q5 that is a second transistor.

PMOSトランジスタQ1のソースは、第1の電位(本実施形態においては、VDD電位)に接続され、そのドレインは比較器IC1の非反転入力回路に接続される。また、PMOSトランジスタQ1のゲートは、PMOSトランジスタQ3のゲート及びドレインと接続されており、PMOSトランジスタQ1とPMOSトランジスタQ3とで第1のカレントミラー回路が構成される。なお、PMOSトランジスタQ3のソースは第1の電位に接続されている。なお、PMOSトランジスタQ3は第3のトランジスタに対応する。   The source of the PMOS transistor Q1 is connected to the first potential (in this embodiment, the VDD potential), and its drain is connected to the non-inverting input circuit of the comparator IC1. The gate of the PMOS transistor Q1 is connected to the gate and drain of the PMOS transistor Q3, and the PMOS transistor Q1 and the PMOS transistor Q3 constitute a first current mirror circuit. Note that the source of the PMOS transistor Q3 is connected to the first potential. The PMOS transistor Q3 corresponds to the third transistor.

また、NMOSトランジスタQ5のドレインは、NMOSトランジスタQ4のドレイン及びソースを介して、比較器IC1の非反転入力回路に接続され、NMOSトランジスタQ5のソースは、第2の電位(本実施形態においては、VSS電位)に接続されている。また、NMOSトランジスタQ5のゲートおよびドレインは、NMOSトランジスタQ6のゲートと接続されており、NMOSトランジスタQ5とNMOSトランジスタQ6とで第2のカレントミラー回路が構成される。なお、NMOSトランジスタQ6のソースは第2の電位に接続されている。   The drain of the NMOS transistor Q5 is connected to the non-inverting input circuit of the comparator IC1 via the drain and source of the NMOS transistor Q4, and the source of the NMOS transistor Q5 is connected to the second potential (in this embodiment, VSS potential). The gate and drain of the NMOS transistor Q5 are connected to the gate of the NMOS transistor Q6, and the NMOS transistor Q5 and the NMOS transistor Q6 constitute a second current mirror circuit. Note that the source of the NMOS transistor Q6 is connected to the second potential.

さらに、NMOSトランジスタQ6のドレインは、PMOSトランジスタQ2のドレイン、NMOSトランジスタQ4のゲート及びNMOSトランジスタQ7のドレインに接続されている。なお、NMOSトランジスタQ7のソースは第2の電位に接続され、そのゲートは比較器IC1の出力に接続されている。なお、NMOSトランジスタQ6は第4のトランジスタに対応する。   Further, the drain of the NMOS transistor Q6 is connected to the drain of the PMOS transistor Q2, the gate of the NMOS transistor Q4, and the drain of the NMOS transistor Q7. Note that the source of the NMOS transistor Q7 is connected to the second potential, and the gate thereof is connected to the output of the comparator IC1. The NMOS transistor Q6 corresponds to the fourth transistor.

また、PMOSトランジスタQ2のソースは、第1の電位に接続され、そのゲートはPMOSトランジスタQ3のゲート及びドレインに接続されており、PMOSトランジスタQ2とPMOSトランジスタQ3とで第3のカレントミラー回路が構成される。   The source of the PMOS transistor Q2 is connected to the first potential, and the gate thereof is connected to the gate and drain of the PMOS transistor Q3. The PMOS transistor Q2 and the PMOS transistor Q3 constitute a third current mirror circuit. Is done.

さらに、PMOSトランジスタQ3のドレインは、可変定電流回路7に接続されており、この可変定電流回路7の定電流Iaにより、PMOSトランジスタQ3のソース−ドレイン間に定電流Iaが流れる。そして、第1のカレントミラー回路、第2のカレントミラー回路及び第3のカレントミラー回路により、第1の定電流回路4と第2の定電流回路5に所定の電流が流れる。なお、可変定電流回路7が第3の定電流回路に対応する。   Further, the drain of the PMOS transistor Q3 is connected to the variable constant current circuit 7. The constant current Ia of the variable constant current circuit 7 causes a constant current Ia to flow between the source and drain of the PMOS transistor Q3. A predetermined current flows through the first constant current circuit 4 and the second constant current circuit 5 by the first current mirror circuit, the second current mirror circuit, and the third current mirror circuit. The variable constant current circuit 7 corresponds to a third constant current circuit.

ここで、PMOSトランジスタQ1、Q2、Q3は半導体基板上に形成されるものであり、そのトランジスタのMOSサイズは、Q1:Q2:Q3=1:2:2の比で形成される。そのため、第1の定電流回路4は定電流値Ia/2となり、第2の定電流回路5は定電流値Iaとなる。   Here, the PMOS transistors Q1, Q2, and Q3 are formed on a semiconductor substrate, and the MOS sizes of the transistors are formed in a ratio of Q1: Q2: Q3 = 1: 2: 2. Therefore, the first constant current circuit 4 has a constant current value Ia / 2, and the second constant current circuit 5 has a constant current value Ia.

次に、可変定電流回路7について説明する。図3に示すように、可変定電流回路7は、NMOSトランジスタQ8、Q9とからなる第4のカレントミラー回路と、この第4のカレントミラー回路に接続され、PMOSトランジスタQ10、Q11とからなる第5のカレントミラー回路と、この第5のカレントミラー回路に接続された調整用抵抗R2と、出力が第5のカレントミラー回路及び調整用抵抗R2に接続されたバッファーアンプIC2とから構成される。なお、このバッファーアンプIC2の入力は、所定電圧BG(V)に接続される。この所定電圧BGは、バンドギャップであるため、精度よく安定した電圧をバッファーアンプIC2から出力することができる。なお、NMOSトランジスタQ11は第5のトランジスタに、NMOSトランジスタQ10は第6のトランジスタに対応する。   Next, the variable constant current circuit 7 will be described. As shown in FIG. 3, the variable constant current circuit 7 is connected to the fourth current mirror circuit composed of NMOS transistors Q8 and Q9, and the fourth current mirror circuit composed of PMOS transistors Q10 and Q11. 5 current mirror circuits, an adjustment resistor R2 connected to the fifth current mirror circuit, and a buffer amplifier IC2 whose output is connected to the fifth current mirror circuit and the adjustment resistor R2. The input of the buffer amplifier IC2 is connected to a predetermined voltage BG (V). Since the predetermined voltage BG is a band gap, a stable voltage can be output from the buffer amplifier IC2 with high accuracy. The NMOS transistor Q11 corresponds to the fifth transistor, and the NMOS transistor Q10 corresponds to the sixth transistor.

このように、可変定電流回路7が構成されているため、調整用抵抗R2に流れる電流と同じ電流がNMOSトランジスタQ8から流れることになる。すなわち、調整用抵抗R2に流れる電流値が可変定電流回路7の定電流値となる。そのため、調整用抵抗R2を変更することで容易にNMOSトランジスタQ8から流れる定電流値を変更することが可能となる。なお、調整用抵抗R2は、半導体集積回路に内蔵せず、外付けできるようにすることにより半導体集積回路の汎用性を向上させることができる。なお、PMOSトランジスタQ10、Q11のMOSサイズ、NMOSトランジスタQ8、Q9のMOSサイズは同等になるように半導体上に形成される。   Since the variable constant current circuit 7 is configured in this way, the same current as the current flowing through the adjustment resistor R2 flows from the NMOS transistor Q8. That is, the value of the current flowing through the adjustment resistor R2 becomes the constant current value of the variable constant current circuit 7. Therefore, it is possible to easily change the constant current value flowing from the NMOS transistor Q8 by changing the adjustment resistor R2. Note that the versatility of the semiconductor integrated circuit can be improved by allowing the adjustment resistor R2 to be externally attached without being incorporated in the semiconductor integrated circuit. The MOS sizes of the PMOS transistors Q10 and Q11 and the MOS sizes of the NMOS transistors Q8 and Q9 are formed on the semiconductor so as to be equal.

以上のように構成された波形整形回路について、図2を用いてその動作を具体的に説明する。   The operation of the waveform shaping circuit configured as described above will be specifically described with reference to FIG.

図2(a)は、波形整形回路1に入力される入力信号Vinの電圧波形を表したものであり、この入力信号Vinがこの波形整形回路1に入力されると、上述のように基準電圧生成部3によりこの入力信号Vinに基づいて基準電圧Vrefが生成される。   FIG. 2A shows the voltage waveform of the input signal Vin input to the waveform shaping circuit 1. When this input signal Vin is input to the waveform shaping circuit 1, the reference voltage is as described above. The reference voltage Vref is generated by the generator 3 based on the input signal Vin.

また、この入力信号Vinが波形整形回路1の比較器IC1の反転入力端子に入力されると、比較器IC1により非反転入力端子に入力された閾値Vthと入力信号Vinとが比較される。なお、本実施形態においては、入力信号が入力されるまでは、比較器IC1の出力がLowになるものとし、この閾値Vthは、VthLになるものとする。   When the input signal Vin is input to the inverting input terminal of the comparator IC1 of the waveform shaping circuit 1, the threshold value Vth input to the non-inverting input terminal is compared with the input signal Vin by the comparator IC1. In the present embodiment, until the input signal is input, the output of the comparator IC1 is assumed to be Low, and this threshold Vth is assumed to be VthL.

ここで、閾値Vthにおいて、VthL及びVthHの切り替え動作について説明する。   Here, the switching operation of VthL and VthH at the threshold value Vth will be described.

上述のように比較器IC1に入力信号が入力され、この信号がVthH以上の電圧になったとき、比較器IC1の出力はLowとなる。それにより、NMOSトランジスタQ7のゲートにLowの電圧が入力され、NMOSトランジスタQ7がオフ状態になる。このNMOSトランジスタQ7がオフ状態となることにより、NMOSトランジスタQ4がオン状態になり、第1の定電流回路であるPMOSトランジスタQ1と第2の定電流回路であるNMOSトランジスタQ5とがNMOSトランジスタQ4を介して接続される。
As described above, when the input signal is input to the comparator IC1 and this signal becomes a voltage equal to or higher than VthH, the output of the comparator IC1 becomes Low. Thereby, a low voltage is input to the gate of the NMOS transistor Q7, and the NMOS transistor Q7 is turned off. When the NMOS transistor Q7 is turned off, the NMOS transistor Q4 is turned on, and the PMOS transistor Q1 that is the first constant current circuit and the NMOS transistor Q5 that is the second constant current circuit change the NMOS transistor Q4. Connected through.

PMOSトランジスタQ1とNMOSトランジスタQ5とがNMOSトランジスタQ4を介して接続されると、トランジスタQ1からIa/2の電流がトランジスタQ5に流れ込むと共に、閾値調整用抵抗部6からIa/2の電流がトランジスタQ5に流れ込む。これにより、閾値Vthは、基準電圧Vrefから閾値調整用抵抗部6の抵抗値RxにIa/2を乗算したものを減算した値となる(閾値VthL=Vref−Rx×Ia/2)。   When the PMOS transistor Q1 and the NMOS transistor Q5 are connected via the NMOS transistor Q4, the current from the transistor Q1 to Ia / 2 flows into the transistor Q5, and the current from the threshold adjustment resistor 6 to the current Ia / 2 from the transistor Q5. Flow into. Thereby, the threshold value Vth is a value obtained by subtracting the resistance value Rx of the threshold adjustment resistor 6 multiplied by Ia / 2 from the reference voltage Vref (threshold value VthL = Vref−Rx × Ia / 2).

次に、入力信号がVthL以下の電圧になったとき、比較器IC1の出力はHighとなる。それにより、NMOSトランジスタQ7のゲートにHighの電圧が入力され、NMOSトランジスタQ7がオン状態となる。NMOSトランジスタQ7がオン状態になると、NMOSトランジスタQ4がオフ状態となり、第1の定電流回路であるPMOSトランジスタQ1と第2の定電流回路であるNMOSトランジスタQ5とのNMOSトランジスタQ4を介した接続が切断され、NMOSトランジスタQ5には電流が流れず停止状態になる。   Next, when the input signal becomes a voltage equal to or lower than VthL, the output of the comparator IC1 becomes High. As a result, a high voltage is input to the gate of the NMOS transistor Q7, and the NMOS transistor Q7 is turned on. When the NMOS transistor Q7 is turned on, the NMOS transistor Q4 is turned off, and the connection between the PMOS transistor Q1 that is the first constant current circuit and the NMOS transistor Q5 that is the second constant current circuit via the NMOS transistor Q4. As a result, the NMOS transistor Q5 is stopped and no current flows.

NMOSトランジスタQ5の動作が停止状態になると、トランジスタQ1からIa/2電流が閾値調整用抵抗部6へ流れ込む。これにより、閾値Vthは、基準電圧Vrefから閾値調整用抵抗部6の抵抗値RxにIa/2を乗算したものを加算した値となる(閾値VthL=Vref+Rx×Ia/2)。   When the operation of the NMOS transistor Q5 is stopped, the Ia / 2 current flows from the transistor Q1 into the threshold adjustment resistor section 6. Thus, the threshold value Vth is a value obtained by adding the reference voltage Vref to the resistance value Rx of the threshold adjustment resistor 6 multiplied by Ia / 2 (threshold value VthL = Vref + Rx × Ia / 2).

以上のように、本実施形態における波形整形回路1によれば、ヒステリシスを形成するスレッショルド値VthL及びVthHを基準電圧Vrefに対して対称にすることができ、波形整形回路の設計開発時等に、基準電圧Vrefを基準にしてヒステリシス幅VHYSの調節を行なうことができる。しかも、基準電圧生成部3により基準電圧Vrefを入力信号の中間電圧(若しくは平均電圧)を生成することにより、正弦波入力時のデューティー比を略50%とすることができる。   As described above, according to the waveform shaping circuit 1 in the present embodiment, the threshold values VthL and VthH forming the hysteresis can be made symmetric with respect to the reference voltage Vref. The hysteresis width VHYS can be adjusted with reference to the reference voltage Vref. In addition, the reference voltage generation unit 3 generates the reference voltage Vref as an intermediate voltage (or average voltage) of the input signal, so that the duty ratio at the time of sine wave input can be made approximately 50%.

さらに、コンデンサC1、C2、抵抗R1、R2、R10a〜R10nを半導体集積回路に内蔵せず、外付け可能とすることにより、波形整形回路1を半導体集積回路に内蔵した場合であっても、汎用性のある半導体集積回路を提供することができる。   Further, the capacitors C1, C2, resistors R1, R2, and R10a to R10n are not built in the semiconductor integrated circuit but can be externally attached, so that even if the waveform shaping circuit 1 is built in the semiconductor integrated circuit, the general purpose A highly reliable semiconductor integrated circuit can be provided.

本発明の実施の形態における波形整形回路の基本的な回路構成を示す図である。It is a figure which shows the basic circuit structure of the waveform shaping circuit in embodiment of this invention. 本発明の実施の形態における波形整形回路の入出力波形を示す図である。It is a figure which shows the input-output waveform of the waveform shaping circuit in embodiment of this invention. 本発明の実施の形態における波形整形回路の具体的な回路構成を示す図である。It is a figure which shows the specific circuit structure of the waveform shaping circuit in embodiment of this invention. 従来の正帰還の波形整形回路の基本構成を示す図である。It is a figure which shows the basic composition of the waveform shaping circuit of the conventional positive feedback. 図4の回路において出力電圧の電圧レベルの変動に伴うヒステリシス及び出力電圧波形の変動を示す図である。FIG. 5 is a diagram showing hysteresis and fluctuations in the output voltage waveform accompanying fluctuations in the voltage level of the output voltage in the circuit of FIG. 4. 従来の他の波形整形回路の構成を示す図である。It is a figure which shows the structure of the other conventional waveform shaping circuit. 図6の回路において出力電圧の電圧レベルの変動に伴うヒステリシス及び出力電圧波形の変動を示す図である。FIG. 7 is a diagram showing hysteresis and fluctuations in the output voltage waveform accompanying fluctuations in the voltage level of the output voltage in the circuit of FIG. 6.

符号の説明Explanation of symbols

1 波形整形回路
2 閾値生成部
3 基準電圧生成部
4 第1の定電流回路
5 第2の定電流回路
6 閾値調整用抵抗
7 可変定電流回路
8 ピークホールド回路
9 ボトムホールド回路
IC1 比較器
DESCRIPTION OF SYMBOLS 1 Waveform shaping circuit 2 Threshold generation part 3 Reference voltage generation part 4 1st constant current circuit 5 2nd constant current circuit 6 Threshold adjustment resistance 7 Variable constant current circuit 8 Peak hold circuit 9 Bottom hold circuit IC1 Comparator

Claims (7)

入力信号を二値波形に整形して出力する波形整形回路において、
前記入力信号と閾値との比較結果に応じて第1の電圧又は第2の電圧を出力する比較器と、
前記閾値を生成する閾値生成部と、を備え、
前記閾値生成部は、
基準電圧を生成する基準電圧生成部を有し、
前記比較器の出力が第1の電圧のときには前記閾値を基準電圧に対して所定値高い電圧に切り換え、前記比較器の出力が第2の電圧のときには前記閾値を前記基準電圧に対して前記所定値低い電圧に切り換えることを特徴とする波形整形回路。
In the waveform shaping circuit that shapes the input signal into a binary waveform and outputs it,
A comparator that outputs a first voltage or a second voltage according to a comparison result between the input signal and a threshold;
A threshold generation unit that generates the threshold,
The threshold generation unit
A reference voltage generation unit for generating a reference voltage;
When the output of the comparator is a first voltage, the threshold is switched to a voltage higher than a reference voltage by a predetermined value. When the output of the comparator is a second voltage, the threshold is set to the predetermined voltage with respect to the reference voltage. A waveform shaping circuit characterized by switching to a low voltage.
前記閾値生成部は、
一端が前記基準電圧生成部に接続されると共に、他端が前記比較器に接続される閾値調整用抵抗部を備え、
前記比較器の出力が第1の電圧か第2の電圧かによって、前記閾値調整用抵抗部に流す電流の方向を変えることによって前記閾値を切り換えることを特徴とする請求項1に記載の波形整形回路。
The threshold generation unit
One end is connected to the reference voltage generation unit, and the other end includes a threshold adjustment resistor unit connected to the comparator,
2. The waveform shaping according to claim 1, wherein the threshold value is switched by changing a direction of a current passed through the threshold adjustment resistor unit depending on whether the output of the comparator is a first voltage or a second voltage. circuit.
前記閾値調整用抵抗部は、
複数の抵抗と、前記複数の抵抗のうち少なくともいずれか一つを選択し、該選択した抵抗を閾値調整用抵抗部の抵抗とする閾値調整用抵抗選択回路とを有することを特徴とする請求項2に記載の波形整形回路。
The threshold adjustment resistor is
The apparatus includes: a plurality of resistors; and a threshold adjustment resistor selection circuit that selects at least one of the plurality of resistors and uses the selected resistor as a resistance of a threshold adjustment resistor section. 2. The waveform shaping circuit according to 2.
前記閾値生成部は、
前記閾値調整用抵抗部の他端にそれぞれ接続される第1の定電流回路及び第2の定電流回路を備え、
前記比較器の出力が第1の電圧のとき第1の定電流回路から前記閾値調整用抵抗部へ電流を流すと共に、前記比較器の出力が第2の電圧のとき前記閾値調整用抵抗部から第2の定電流回路へ電流を流すことを特徴とする請求項2又は請求項3に記載の波形整形回路。
The threshold generation unit
A first constant current circuit and a second constant current circuit respectively connected to the other end of the threshold adjustment resistor unit;
When the output of the comparator is a first voltage, a current flows from the first constant current circuit to the threshold adjustment resistor, and when the output of the comparator is a second voltage, the threshold adjustment resistor 4. The waveform shaping circuit according to claim 2, wherein a current is passed through the second constant current circuit.
第2の定電流回路の電流値は、第1の定電流回路の電流値の略2倍であり、
第2の定電流回路への電流を停止することにより第1の定電流回路から前記閾値調整用抵抗部へ電流を流すことを特徴とする請求項4に記載の波形整形回路。
The current value of the second constant current circuit is approximately twice the current value of the first constant current circuit,
5. The waveform shaping circuit according to claim 4, wherein a current is caused to flow from the first constant current circuit to the threshold adjustment resistor by stopping the current to the second constant current circuit. 6.
前記基準電圧生成部は、
前記入力信号のピークをホールドして出力するピークホールド回路と、
前記入力信号のボトムをホールドして出力するボトムホールド回路とを有し、
前記ピークホールド回路の出力と前記ボトムホールド回路の出力との基準の電圧を前記基準電圧とすることを特徴とする請求項1〜5のいずれか1項に記載の波形整形回路。
The reference voltage generator is
A peak hold circuit for holding and outputting a peak of the input signal;
A bottom hold circuit that holds and outputs the bottom of the input signal;
6. The waveform shaping circuit according to claim 1, wherein a reference voltage between an output of the peak hold circuit and an output of the bottom hold circuit is used as the reference voltage.
入力信号を二値波形に整形して出力する波形整形回路を設けた半導体集積回路において、
前波形整形回路は、
前記入力信号と閾値との比較結果に応じて第1の電圧又は第2の電圧を出力する比較器と、
前記閾値を生成する閾値生成部と、を備え、
前記閾値生成部は、基準電圧を生成すると共に、前記比較器の出力が第1の電圧のときには前記閾値を基準電圧に対して所定値高い電圧に切り換え、前記比較器の出力が第2の電圧のときには前記閾値を前記基準電圧に対して前記所定値低い電圧に切り換えることを特徴とする半導体集積回路。
In a semiconductor integrated circuit provided with a waveform shaping circuit that shapes and outputs an input signal into a binary waveform,
The previous waveform shaping circuit
A comparator that outputs a first voltage or a second voltage according to a comparison result between the input signal and a threshold;
A threshold generation unit that generates the threshold,
The threshold generation unit generates a reference voltage, and when the output of the comparator is a first voltage, switches the threshold to a voltage higher than the reference voltage by a predetermined value, and the output of the comparator is a second voltage. In this case, the threshold value is switched to a voltage lower than the reference voltage by the predetermined value.
JP2005274262A 2005-09-21 2005-09-21 Waveform shaping circuit and semiconductor integrated circuit equipped with it Pending JP2007088748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005274262A JP2007088748A (en) 2005-09-21 2005-09-21 Waveform shaping circuit and semiconductor integrated circuit equipped with it

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005274262A JP2007088748A (en) 2005-09-21 2005-09-21 Waveform shaping circuit and semiconductor integrated circuit equipped with it

Publications (1)

Publication Number Publication Date
JP2007088748A true JP2007088748A (en) 2007-04-05

Family

ID=37975299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005274262A Pending JP2007088748A (en) 2005-09-21 2005-09-21 Waveform shaping circuit and semiconductor integrated circuit equipped with it

Country Status (1)

Country Link
JP (1) JP2007088748A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63254514A (en) * 1987-04-10 1988-10-21 Mitsubishi Electric Corp Inputting pen for input tablet
JPH07209346A (en) * 1991-10-25 1995-08-11 Samsung Electron Co Ltd Comparator with hysteresis
JPH1054853A (en) * 1996-08-12 1998-02-24 Advantest Corp Comparator
JPH10154925A (en) * 1996-10-18 1998-06-09 Lg Semicon Co Ltd Hysteresis input buffer
JPH10197572A (en) * 1997-01-07 1998-07-31 Nissan Motor Co Ltd Hysteresis comparator
JP2000244289A (en) * 1999-02-22 2000-09-08 Advantest Corp Comparator circuit
JP2005217498A (en) * 2004-01-27 2005-08-11 Denso Corp Hysteresis comparator circuit

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63254514A (en) * 1987-04-10 1988-10-21 Mitsubishi Electric Corp Inputting pen for input tablet
JPH07209346A (en) * 1991-10-25 1995-08-11 Samsung Electron Co Ltd Comparator with hysteresis
JPH1054853A (en) * 1996-08-12 1998-02-24 Advantest Corp Comparator
JPH10154925A (en) * 1996-10-18 1998-06-09 Lg Semicon Co Ltd Hysteresis input buffer
JPH10197572A (en) * 1997-01-07 1998-07-31 Nissan Motor Co Ltd Hysteresis comparator
JP2000244289A (en) * 1999-02-22 2000-09-08 Advantest Corp Comparator circuit
JP2005217498A (en) * 2004-01-27 2005-08-11 Denso Corp Hysteresis comparator circuit

Similar Documents

Publication Publication Date Title
US7304540B2 (en) Source follower and current feedback circuit thereof
JP3575453B2 (en) Reference voltage generation circuit
JP2007066046A (en) Reference voltage generating circuit and constant voltage circuit using the reference voltage generating circuit
US8102217B2 (en) Oscillator having feedback path which is capable of supplying reduced voltage potential to oscillation circuit
JP2009130879A (en) Level shift circuit
JP2008167094A (en) Level conversion circuit
JP2009545915A (en) Stacked buffer
JP6027806B2 (en) Output buffer and semiconductor device
JP4614234B2 (en) Power supply device and electronic device including the same
JP6399938B2 (en) Differential output buffer
CN106712765B (en) PEC L transmitter interface circuit based on CMOS process
JP5091101B2 (en) Soft start circuit and power supply circuit including the soft start circuit
JP2017079431A (en) Voltage comparator circuit
JP2007282437A (en) Power supply circuit
JP2008099481A (en) Charge pump circuit
JP4773991B2 (en) Source follower circuit and semiconductor device
JP6624979B2 (en) Voltage regulator
JP2010246287A (en) Current control circuit
US6940329B2 (en) Hysteresis circuit used in comparator
JP2007088748A (en) Waveform shaping circuit and semiconductor integrated circuit equipped with it
JP2008072234A (en) Driver circuit
JP2013062757A (en) Lvds output circuit
JP2007219901A (en) Reference current source circuit
KR101939147B1 (en) Variable Voltage Reference Generator and Analog-to-Digital Converter using thereof
JPWO2007114379A1 (en) Variable delay circuit, test apparatus and electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110222

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110712