Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5920170B2 - Oscillator circuit - Google Patents
[go: Go Back, main page]

JP5920170B2 - Oscillator circuit - Google Patents

Oscillator circuit Download PDF

Info

Publication number
JP5920170B2
JP5920170B2 JP2012234447A JP2012234447A JP5920170B2 JP 5920170 B2 JP5920170 B2 JP 5920170B2 JP 2012234447 A JP2012234447 A JP 2012234447A JP 2012234447 A JP2012234447 A JP 2012234447A JP 5920170 B2 JP5920170 B2 JP 5920170B2
Authority
JP
Japan
Prior art keywords
capacitor
voltage
signal
charging
circuit
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.)
Expired - Fee Related
Application number
JP2012234447A
Other languages
Japanese (ja)
Other versions
JP2013232877A (en
Inventor
康隆 金子
康隆 金子
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2012234447A priority Critical patent/JP5920170B2/en
Publication of JP2013232877A publication Critical patent/JP2013232877A/en
Application granted granted Critical
Publication of JP5920170B2 publication Critical patent/JP5920170B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、発振回路に関するものである。   The present invention relates to an oscillation circuit.

従来より、充放電を行うコンデンサ、コンパレータ等の比較回路、フリップフロップ回路等の論理回路などを用いて発振信号を生成、出力する発振回路が提供されている。例えば、特許文献1に開示される発振回路は、定電流によって充放電を行う第1のコンデンサ及び第2のコンデンサと、第1のコンデンサの充電電圧を基準電圧と比較する第1の比較回路(コンパレータ)と、第2のコンデンサの充電電圧を基準電圧と比較する第2の比較回路(コンパレータ)と、RSフリップフロップ回路とを備えている。このRSフリップフロップ回路は、第1のコンデンサの電圧が基準電圧より高くなると、ハイレベルの信号が入力されるS端子と、第2のコンデンサの電圧が基準電圧より高くなるとローレベルの信号が入力されるR端子とを有している。この構成において、一方の第1のコンデンサは、RSフリップフロップ回路の出力信号Qがハイレベルの時に放電状態となり、出力信号Qがローレベルの時に充電状態となるように動作し、他方の第2のコンデンサは、RSフリップフロップ回路の反転出力信号QBがハイレベルの時に放電状態となり、反転出力信号QBがローレベルの時に充電状態となるように動作し、これらの動作によって発振信号が生成、出力される。   2. Description of the Related Art Conventionally, an oscillation circuit that generates and outputs an oscillation signal using a capacitor for charging and discharging, a comparison circuit such as a comparator, and a logic circuit such as a flip-flop circuit has been provided. For example, an oscillation circuit disclosed in Patent Document 1 includes a first capacitor and a second capacitor that are charged and discharged with a constant current, and a first comparison circuit that compares a charging voltage of the first capacitor with a reference voltage ( A comparator), a second comparison circuit (comparator) for comparing the charging voltage of the second capacitor with the reference voltage, and an RS flip-flop circuit. In this RS flip-flop circuit, when the voltage of the first capacitor becomes higher than the reference voltage, the S terminal to which a high level signal is input, and when the voltage of the second capacitor becomes higher than the reference voltage, a low level signal is input. R terminal. In this configuration, one of the first capacitors operates so as to be in a discharging state when the output signal Q of the RS flip-flop circuit is at a high level, and to be in a charging state when the output signal Q is at a low level, and the other second capacitor. The capacitor of the RS flip-flop circuit operates so that it is discharged when the inverted output signal QB of the RS flip-flop circuit is high level, and is charged when the inverted output signal QB is low level. These operations generate and output an oscillation signal. Is done.

特開2007−243922号公報JP 2007-243922 A

ところで、上記のような比較回路を用いた発振回路では、比較回路での遅延時間が温度に依存するという特性があり、周囲温度の変化に起因して遅延時間がばらついてしまうという問題がある。このような遅延時間のばらつきは出力周波数(発振周波数)のばらつきを生じさせてしまうため、極力抑制することが望ましいが、特許文献1の発振回路はこのような問題を解消し得るものではなかった。   By the way, the oscillation circuit using the comparison circuit as described above has a characteristic that the delay time in the comparison circuit depends on the temperature, and there is a problem that the delay time varies due to a change in the ambient temperature. Such a variation in delay time causes a variation in output frequency (oscillation frequency), and therefore it is desirable to suppress it as much as possible. However, the oscillation circuit of Patent Document 1 cannot solve such a problem. .

一方、このような問題を解消する方法として、発振回路内に温度センサを搭載し、測定した温度を基に回路のパラメータを補正する方法なども考えられるが、発振回路内に温度をモニタするための新たな構成を設けると、部品点数が増加すると共に、温度センサを搭載するスペースが回路内に必要となるため回路規模が大型化し、ひいては装置全体構成の大型化が避けられなくなる。   On the other hand, as a method of solving such a problem, there is a method of mounting a temperature sensor in the oscillation circuit and correcting the circuit parameters based on the measured temperature. However, in order to monitor the temperature in the oscillation circuit When the new configuration is provided, the number of parts increases and a space for mounting the temperature sensor is required in the circuit, so that the circuit scale is increased, and thus the overall configuration of the apparatus cannot be increased.

本発明は、上述した課題を解決するためになされたものであり、比較回路での遅延時間のばらつきに起因する発振周波数のばらつきを抑制し得る構成を、より簡易に実現することを目的とする。   The present invention has been made to solve the above-described problem, and an object of the present invention is to more easily realize a configuration that can suppress variation in oscillation frequency caused by variation in delay time in a comparison circuit. .

上記目的を達成するため、第1の発明は、
定電流を発生させる定電流源(15)と、
前記定電流源と導通可能に構成され、前記定電流源から供給される定電流によって充電を行い得る第1コンデンサ(C1)及び第2コンデンサ(C2)と、
前記第1コンデンサ(C1)に充電された充電電圧が所定の第1閾値未満である場合に所定の第1信号を出力し、前記第1閾値以上である場合に前記第1信号とは異なる第2信号を出力する第1比較回路(11)と、
前記第2コンデンサ(C2)に充電された充電電圧が、前記第1閾値と同一の又は前記第1閾値とは異なる第2閾値未満である場合に所定の第3信号を出力し、前記第2閾値以上である場合に前記第3信号とは異なる第4信号を出力する第2比較回路(13)と、
前記第1閾値及び前記第2閾値を設定する閾値設定回路(20)と、
前記第1比較回路(11)及び前記第2比較回路(13)から出力される信号に基づき、前記定電流源(15)からの充電対象を前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方とし、他方を放電対象とするように切り替える切替制御回路(8)と、
前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期での当該いずれか一方の充電電圧、又は両コンデンサがそれぞれ放電対象に切り替えられた各時期での各充電電圧に基づいて、前記閾値設定回路(20)で設定される前記第1閾値及び前記第2閾値の補正に用いる補正データを生成する補正部(4)と、
前記補正部によって生成される前記補正データに基づいて前記閾値設定回路が前記第1閾値及び前記第2閾値を設定するように制御する制御部(3)と、
を有することを特徴とする。
In order to achieve the above object, the first invention provides:
A constant current source (15) for generating a constant current;
A first capacitor (C1) and a second capacitor (C2) configured to be conductive with the constant current source and capable of being charged with a constant current supplied from the constant current source;
When the charging voltage charged in the first capacitor (C1) is less than a predetermined first threshold, a predetermined first signal is output, and when the charging voltage is equal to or higher than the first threshold, the first signal differs from the first signal A first comparison circuit (11) that outputs two signals;
When the charge voltage charged in the second capacitor (C2) is less than a second threshold value that is the same as the first threshold value or different from the first threshold value, a predetermined third signal is output, and the second A second comparison circuit (13) that outputs a fourth signal different from the third signal when the threshold is equal to or greater than a threshold;
A threshold setting circuit (20) for setting the first threshold and the second threshold;
Based on the signals output from the first comparison circuit (11) and the second comparison circuit (13), the charging target from the constant current source (15) is set to the first capacitor (C1) and the second capacitor ( A switching control circuit (8) for switching to either one of C2) and the other to be discharged;
The charging voltage at the time when either one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target by the switching control circuit (8), or both capacitors are respectively A correction unit (4) that generates correction data used to correct the first threshold value and the second threshold value set by the threshold value setting circuit (20) based on each charging voltage at each time when it is switched to a discharge target. )When,
A control unit (3) for controlling the threshold value setting circuit to set the first threshold value and the second threshold value based on the correction data generated by the correction unit;
It is characterized by having.

請求項1の発明において、第1コンデンサ(C1)及び第2コンデンサ(C2)のいずれかのコンデンサが放電対象に切り替わった時期での当該コンデンサの充電電圧は、第1比較回路(11)及び第2比較回路(13)のいずれかにおいて第1コンデンサ(C1)及び第2コンデンサ(C2)のいずれかのコンデンサを放電対象に切り替える条件が成立した後から当該コンデンサの放電が実際に開始されるまでの遅延時間を反映した値であり、遅延時間が大きければ充電電圧は相対的に大きくなり、遅延時間が小さければ充電電圧は相対的に小さくなる。従って、前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期での当該いずれか一方の充電電圧、又は両コンデンサがそれぞれ放電対象に切り替えられた各時期での各充電電圧に基づいて補正データを生成すれば、遅延時間を適切に考慮した補正データの生成が可能となる。   In the first aspect of the invention, the charging voltage of the capacitor at the time when one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target is the first comparison circuit (11) and the second capacitor (C1). After the condition for switching one of the first capacitor (C1) and the second capacitor (C2) to the discharge target is established in any one of the two comparison circuits (13), until the discharge of the capacitor is actually started The delay voltage is a value reflecting the delay time. If the delay time is large, the charging voltage becomes relatively large. If the delay time is small, the charging voltage becomes relatively small. Therefore, when either one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target, either one of the charging voltage or both capacitors are switched to the discharge target. If correction data is generated based on each charging voltage at each time, it is possible to generate correction data that appropriately considers the delay time.

請求項2の発明では、前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を同一値として設定するように構成されている。また、前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期に当該いずれか一方の充電電圧を検出し、検出された当該充電電圧が所定の代表電圧を超える場合には、所定の基準値よりも前記同一値を低くする補正データを生成し、検出された当該充電電圧が前記代表電圧未満の場合には、所定の基準値よりも前記同一値を高くする補正データを生成している。
この構成では、各比較回路に用いる閾値を共通化することができるため、演算処理の簡素化を図ることができる。また、いずれか一方の充電電圧を検出し、その充電電圧を代表電圧と比較するといった簡易な回路構造で補正データを生成することができる。
According to a second aspect of the present invention, the threshold value setting circuit (20) is configured to set the first threshold value and the second threshold value as the same value. In addition, the correction unit (4) is configured so that one of the first capacitor (C1) and the second capacitor (C2) is switched to a discharge target by the switching control circuit (8). When the detected charging voltage exceeds a predetermined representative voltage, correction data for generating the same value lower than a predetermined reference value is generated, and the detected charging voltage is When the voltage is less than the representative voltage, correction data for generating the same value higher than a predetermined reference value is generated.
In this configuration, since the threshold value used for each comparison circuit can be shared, the arithmetic processing can be simplified. Further, the correction data can be generated with a simple circuit structure in which one of the charging voltages is detected and the charging voltage is compared with the representative voltage.

請求項3の発明では、前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を同一値として設定するように構成されている。そして、前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)が放電対象に切り替えられた時期に当該第1コンデンサ(C1)の充電電圧を検出し、前記第2コンデンサ(C2)が放電対象に切り替えられた時期に当該第2コンデンサ(C2)の充電電圧を検出している。更に、それら検出された前記第1コンデンサ(C1)の充電電圧及び前記第2コンデンサ(C2)の充電電圧を反映した統計値が所定の代表電圧を超える場合には、所定の基準値よりも前記同一値を低くする補正データを生成し、前記統計値が前記代表電圧未満の場合には、所定の基準値よりも前記同一値を高くする補正データを生成している。
この構成では、各比較回路に用いる閾値を共通化することができるため、演算処理の簡素化を図ることができる。また、両コンデンサの充電電圧を別々に検出し、それら充電電圧を反映した形(即ち、両比較回路の両遅延時間を反映した形で)で補正データを生成することができるため、両比較回路の遅延状態に差がある場合でもより適正に補正することができる。
According to a third aspect of the present invention, the threshold setting circuit (20) is configured to set the first threshold and the second threshold as the same value. The correction unit (4) detects a charging voltage of the first capacitor (C1) at a time when the first capacitor (C1) is switched to a discharge target by the switching control circuit (8), and The charging voltage of the second capacitor (C2) is detected when the two capacitors (C2) are switched to discharge targets. Further, when a statistical value reflecting the detected charging voltage of the first capacitor (C1) and the charging voltage of the second capacitor (C2) exceeds a predetermined representative voltage, the statistical value is more than a predetermined reference value. Correction data for lowering the same value is generated, and when the statistical value is less than the representative voltage, correction data for generating the same value higher than a predetermined reference value is generated.
In this configuration, since the threshold value used for each comparison circuit can be shared, the arithmetic processing can be simplified. In addition, since the charging voltage of both capacitors can be detected separately and the correction data can be generated in a form reflecting these charging voltages (that is, reflecting both delay times of both comparison circuits), both comparison circuits Even when there is a difference in the delay state, it can be corrected more appropriately.

請求項4の発明では、前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を別々に設定可能とされており、前記第1比較回路(11)は、前記第1コンデンサ(C1)の充電電圧が前記第1閾値に達したタイミングで前記第2信号を出力し、前記第2比較回路(13)は、前記第2コンデンサ(C2)の充電電圧が前記第2閾値に達したタイミングで前記第4信号を出力している。そして、前記切替制御回路(4)は、前記第1比較回路(11)から前記第2信号が出力されたときに前記第1コンデンサ(C1)を充電対象から放電対象に切り替える制御を行い、前記第2比較回路(13)から前記第4信号が出力されたときに前記第2コンデンサ(C2)を充電対象から放電対象に切り替える制御を行っている。
更に、前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)が放電対象に切り替えられた時期に当該第1コンデンサ(C1)の充電電圧を検出し、検出された当該第1コンデンサ(C1)の充電電圧が所定の代表電圧を超える場合には、当該第1コンデンサ(C1)の所定の基準値よりも前記第1閾値を低くする第1補正データを生成し、検出された当該第1コンデンサ(C1)の充電電圧が前記代表電圧未満の場合には、当該第1コンデンサ(C1)の所定の基準値よりも前記第1閾値を高くする第1補正データを生成し、前記切替制御回路(8)によって前記第2コンデンサ(C2)が放電対象に切り替えられた時期に当該第2コンデンサ(C2)の充電電圧を検出し、検出された当該第2コンデンサ(C2)の充電電圧が前記代表電圧と同一又は異なる第2代表電圧を超える場合には、当該第2コンデンサ(C2)の所定の基準値よりも前記第2閾値を低くする第2補正データを生成し、検出された当該第2コンデンサ(C2)の充電電圧が前記第2代表電圧未満の場合には、当該第2コンデンサ(C2)の所定の基準値よりも前記第2閾値を高くする第2補正データを生成している。
この構成では、第1コンデンサ及び第2コンデンサのそれぞれの放電開始時の充電電圧を取得することができ、これら各充電電圧はそれぞれの比較回路の遅延時間を別々に反映したものといえるため、各比較回路の遅延時間を個別に把握することが可能となる。そして、このような各充電電圧に基づいて、各比較回路を補正するための各補正データ(第1補正データ、第2補正データ)を個別に生成することができるため、両比較回路の遅延状態に差があってもより適切な補正が可能となる。
According to a fourth aspect of the present invention, the threshold setting circuit (20) can set the first threshold and the second threshold separately, and the first comparison circuit (11) includes the first capacitor ( The second signal is output at the timing when the charging voltage of C1) reaches the first threshold value, and the second comparison circuit (13) causes the charging voltage of the second capacitor (C2) to reach the second threshold value. The fourth signal is output at the same timing. The switching control circuit (4) performs control to switch the first capacitor (C1) from a charging target to a discharging target when the second signal is output from the first comparison circuit (11), and When the fourth signal is output from the second comparison circuit (13), control is performed to switch the second capacitor (C2) from the charging target to the discharging target.
Further, the correction unit (4) detects a charging voltage of the first capacitor (C1) at a time when the first capacitor (C1) is switched to a discharge target by the switching control circuit (8). When the charging voltage of the first capacitor (C1) exceeds a predetermined representative voltage, first correction data for generating the first threshold value lower than a predetermined reference value of the first capacitor (C1) is generated. If the detected charging voltage of the first capacitor (C1) is less than the representative voltage, first correction data for making the first threshold value higher than a predetermined reference value of the first capacitor (C1) is obtained. The charging voltage of the second capacitor (C2) is detected when the second capacitor (C2) is switched to the discharge target by the switching control circuit (8), and the detected second capacitor (C2 ) Exceeds the second representative voltage that is the same as or different from the representative voltage, and generates second correction data that makes the second threshold value lower than a predetermined reference value of the second capacitor (C2). When the detected charging voltage of the second capacitor (C2) is lower than the second representative voltage, the second correction for increasing the second threshold value above a predetermined reference value of the second capacitor (C2). Data is being generated.
In this configuration, it is possible to obtain the charging voltage at the start of discharge of each of the first capacitor and the second capacitor, and it can be said that each of these charging voltages reflects the delay time of each comparison circuit separately. It is possible to individually grasp the delay time of the comparison circuit. And since each correction data (1st correction data, 2nd correction data) for correcting each comparison circuit based on each such charging voltage can be generated individually, the delay state of both comparison circuits Even if there is a difference, it is possible to perform more appropriate correction.

請求項5の発明において、第1コンデンサ(C1)及び第2コンデンサ(C2)のいずれかのコンデンサが放電対象に切り替わった時期での当該コンデンサの充電電圧は比較回路において第1コンデンサ(C1)及び第2コンデンサ(C2)のいずれかのコンデンサを放電対象に切り替える条件が成立した後から当該コンデンサの放電が実際に開始されるまでの遅延時間を反映した値であり、遅延時間が大きければ充電電圧は相対的に大きくなり、遅延時間が小さければ充電電圧は相対的に小さくなる。従って、第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期での当該いずれか一方の充電電圧、又は両コンデンサがそれぞれ放電対象に切り替えられた各時期での各充電電圧に基づいて補正データを生成すれば、遅延時間を適切に考慮した補正データの生成が可能となる。更に、この発明は、第1コンデンサ(C1)及び第2コンデンサ(C2)のうち、充電対象とされたコンデンサの充電電圧を比較回路の入力電圧とするように切替制御回路(8)によって切り替える構成であるため、比較回路の数を削減でき、回路構成の簡素化を図ることができる。   In the invention of claim 5, the charging voltage of the capacitor at the time when one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target is the first capacitor (C1) and The value reflects the delay time from when the condition for switching any one of the second capacitors (C2) to discharge is established until the capacitor is actually started to be discharged. Becomes relatively large, and the charging voltage becomes relatively small when the delay time is small. Therefore, either one of the first capacitor (C1) and the second capacitor (C2) at the time when one of the capacitors is switched to the discharge target, or each of the capacitors whose capacitors are switched to the discharge target, respectively. If the correction data is generated based on each charging voltage at the time, it is possible to generate the correction data appropriately considering the delay time. Furthermore, the present invention is configured to be switched by the switching control circuit (8) so that the charging voltage of the capacitor to be charged among the first capacitor (C1) and the second capacitor (C2) becomes the input voltage of the comparison circuit. Therefore, the number of comparison circuits can be reduced, and the circuit configuration can be simplified.

請求項6の発明では、前記切替制御回路(8)は、充電対象となっている一方のコンデンサの充電電圧が前記所定閾値以上になった場合に、充電対象を他方のコンデンサとするように切り替え、且つその切り替えタイミングよりも所定時間経過した後に、次回の充電対象の切り替えを許可するように構成されている。即ち、この構成では、充電対象を他方のコンデンサとするように切り替えられた直後の所定時間は次回の充電対象の切り替えが許可されないため、その切替直後の若干の間(所定時間の間)に比較回路から第2信号が続いてしまっても、充電対象が更に切り替えられてしまうことを防ぐことができる。これにより、充電対象の切替直後に比較回路からの信号が第1信号に戻るまでの間、誤動作を防ぐことができる。   According to a sixth aspect of the present invention, the switching control circuit (8) switches the charging target to be the other capacitor when the charging voltage of one of the charging target capacitors becomes equal to or higher than the predetermined threshold value. And after predetermined time passes from the switching timing, it is comprised so that switching of the next charging object may be permitted. That is, in this configuration, since the switching of the next charging target is not permitted for the predetermined time immediately after switching so that the charging target is the other capacitor, the comparison is made for a short time immediately after the switching (during the predetermined time). Even if the second signal continues from the circuit, it is possible to prevent the charging target from being further switched. Thereby, it is possible to prevent malfunctions until the signal from the comparison circuit returns to the first signal immediately after the charging target is switched.

請求項7の発明によれば、いずれか一方の充電電圧を検出し、その充電電圧を代表電圧と比較するといった簡易な回路構造で補正データを生成することができる。   According to the seventh aspect of the present invention, correction data can be generated with a simple circuit structure in which any one charging voltage is detected and the charging voltage is compared with a representative voltage.

請求項8の発明によれば、両コンデンサの充電電圧を別々に検出し、それら充電電圧を反映した形で補正データを生成することができる。つまり、両コンデンサでの実際の遅延状態を共に反映したより適切な補正データを生成することができる。   According to the eighth aspect of the present invention, it is possible to separately detect the charging voltages of both capacitors and generate correction data in a form reflecting these charging voltages. That is, it is possible to generate more appropriate correction data that reflects the actual delay state of both capacitors.

請求項9の発明では、前記補正部は、前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)の少なくともいずれかの充電電圧をデジタル信号に変換するAD変換器を備えている。更に、前記AD変換器に入力される信号の経路を、前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれかに接続される第1経路と、他のアナログ信号発生源に接続される第2経路とに切り替える経路切替部を有している。
この構成によれば、AD変換器を、他のアナログ信号発生源からの信号のAD変換と、コンデンサの充電電圧のAD変換とに用いることができ、それぞれ別々にAD変換器を用意する構成と比較して装置構成の簡素化、部品点数の削減を図ることができる。
According to a ninth aspect of the present invention, the correction unit includes an AD converter that converts a charging voltage of at least one of the first capacitor (C1) and the second capacitor (C2) into a digital signal. Further, the path of the signal input to the AD converter is connected to the first path connected to one of the first capacitor (C1) and the second capacitor (C2) and to another analog signal generation source. A route switching unit for switching to the second route.
According to this configuration, the AD converter can be used for AD conversion of a signal from another analog signal generation source and AD conversion of a capacitor charging voltage, and a configuration in which an AD converter is prepared separately. In comparison, the apparatus configuration can be simplified and the number of parts can be reduced.

図1は、本発明の第1実施形態に係る発振回路を概略的に例示する回路図である。FIG. 1 is a circuit diagram schematically illustrating an oscillation circuit according to the first embodiment of the invention. 図2は、図1の発振回路における基準電圧生成部の構成を概略的に例示する回路図である。FIG. 2 is a circuit diagram schematically illustrating the configuration of the reference voltage generation unit in the oscillation circuit of FIG. 図3は、図1の発振回路で用いられる各信号を例示するタイミングチャートである。FIG. 3 is a timing chart illustrating each signal used in the oscillation circuit of FIG. 図4は、本発明の第2実施形態に係る発振回路を概略的に例示する回路図である。FIG. 4 is a circuit diagram schematically illustrating an oscillation circuit according to the second embodiment of the invention. 図5は、図4の発振回路における基準電圧生成部の構成を概略的に例示する回路図である。FIG. 5 is a circuit diagram schematically illustrating the configuration of the reference voltage generation unit in the oscillation circuit of FIG. 図6は、図4の発振回路で用いられる各信号を例示するタイミングチャートである。FIG. 6 is a timing chart illustrating each signal used in the oscillation circuit of FIG. 図7は、本発明の第3実施形態に係る発振回路を概略的に例示する回路図である。FIG. 7 is a circuit diagram schematically illustrating an oscillation circuit according to the third embodiment of the invention. 図8は、図7の発振回路における基準電圧生成部の構成を概略的に例示する回路図である。FIG. 8 is a circuit diagram schematically illustrating the configuration of the reference voltage generation unit in the oscillation circuit of FIG. 図9は、図7の発振回路で用いられる各信号を例示するタイミングチャートである。FIG. 9 is a timing chart illustrating each signal used in the oscillation circuit of FIG. 図10は、図1の一部を変更した他の実施形態に係る発振回路を概略的に例示する回路図である。FIG. 10 is a circuit diagram schematically illustrating an oscillation circuit according to another embodiment in which a part of FIG. 1 is changed. 図11は、本発明の第4実施形態に係る発振回路を概略的に例示する回路図である。FIG. 11 is a circuit diagram schematically illustrating an oscillation circuit according to the fourth embodiment of the invention. 図12は、図11の発振回路で用いられる各信号を例示するタイミングチャートである。FIG. 12 is a timing chart illustrating each signal used in the oscillation circuit of FIG. 図13は、本発明の第5実施形態に係る発振回路を概略的に例示する回路図である。FIG. 13 is a circuit diagram schematically illustrating an oscillation circuit according to the fifth embodiment of the invention. 図14は、図13の発振回路で用いられる各信号を例示するタイミングチャートである。FIG. 14 is a timing chart illustrating each signal used in the oscillation circuit of FIG.

[第1実施形態]
以下、本発明を具現化した第1実施形態について、図面を参照して説明する。
図1に示す発振回路1は、例えば半導体集積回路内において発振信号を生成、出力するように設けられるものであり、主として、制御部3、補正部4、記憶装置5、切替制御回路8、第1比較回路11、第2比較回路13、定電流源15、閾値設定回路20、第1コンデンサC1、第2コンデンサC2、その他のスイッチなどによって構成されている。
[First embodiment]
Hereinafter, a first embodiment embodying the present invention will be described with reference to the drawings.
The oscillation circuit 1 shown in FIG. 1 is provided, for example, so as to generate and output an oscillation signal in a semiconductor integrated circuit, and mainly includes a control unit 3, a correction unit 4, a storage device 5, a switching control circuit 8, The circuit includes a first comparison circuit 11, a second comparison circuit 13, a constant current source 15, a threshold setting circuit 20, a first capacitor C1, a second capacitor C2, and other switches.

制御部3は、後述する出力信号Qがトリガ信号として入力されるようになっており、所定タイミング(後述する出力信号Qの立ち上がりタイミング)で制御信号φ1、φ2を一定期間出力しうるように構成されている。この制御部3は、通常モード(後述の基本動作を行うモード)では、出力信号φ1がLレベルで維持され、出力信号φ2がHレベルで維持される。一方、自己補正動作を行うモードでは、出力信号Qの立ち上がりをトリガとして出力信号φ1を一定時間Hレベルで維持し且つ出力信号φ2を一定時間Lレベルで維持する。なお、この制御部3は、マイコンなどの公知の制御回路によって構成されていてもよく、出力信号Qの立ち上がりをトリガとして一定時間Hレベルの出力信号φ1及びLレベルの出力信号φ2を出力し得る構成であれば他の回路でもよい。なお、制御部3での通常モードから自己補正動作を行うモードへの切り替えは、定期的に行われてもよく、所定条件が成立したときに行われてもよい。   The control unit 3 is configured such that an output signal Q, which will be described later, is input as a trigger signal, and can output the control signals φ1, φ2 for a predetermined period at a predetermined timing (a rising timing of the output signal Q, which will be described later). Has been. In the normal mode (a mode in which a basic operation described later) is performed, the control unit 3 maintains the output signal φ1 at the L level and the output signal φ2 at the H level. On the other hand, in the mode in which the self-correction operation is performed, the output signal φ1 is maintained at the H level for a certain time and the output signal φ2 is maintained at the L level for a certain time using the rising edge of the output signal Q as a trigger. The control unit 3 may be configured by a known control circuit such as a microcomputer, and can output an H level output signal φ1 and an L level output signal φ2 for a certain period of time using a rise of the output signal Q as a trigger. Other circuits may be used as long as they are configured. Note that the switching from the normal mode to the mode for performing the self-correction operation in the control unit 3 may be performed periodically or when a predetermined condition is satisfied.

定電流源15は、所定の定電流を出力する公知の定電流回路によって構成されており、第1コンデンサC1又は第2コンデンサC2に充電電流を供給するように機能する。   The constant current source 15 is configured by a known constant current circuit that outputs a predetermined constant current, and functions to supply a charging current to the first capacitor C1 or the second capacitor C2.

第1コンデンサC1及び第2コンデンサC2はいずれも定電流源15と導通可能に構成され、定電流源15から供給される定電流によって充電が行われるようになっている。第1コンデンサC1は、後述するスイッチSW10を介して定電流源15に接続されており、スイッチSW10がオン状態のとき且つスイッチSW11又はSW12がオフ状態のときに充電がなされ、スイッチSW10がオフ状態のとき且つスイッチSW11、SW12がオン状態のときに放電がなされる。第2コンデンサC2は、後述するスイッチSW10’を介して定電流源15に接続されており、第1コンデンサC1と並列接続されている。この第2コンデンサC2は、スイッチSW10’がオン状態のとき且つスイッチSW12’がオフ状態のときに充電がなされ、スイッチSW10’がオフ状態のとき且つスイッチSW12’がオン状態のときに放電がなされる。   The first capacitor C1 and the second capacitor C2 are both configured to be able to conduct with the constant current source 15, and are charged with a constant current supplied from the constant current source 15. The first capacitor C1 is connected to the constant current source 15 via a switch SW10, which will be described later, and is charged when the switch SW10 is on and when the switch SW11 or SW12 is off, and the switch SW10 is off. And when the switches SW11 and SW12 are in the ON state, the discharge is performed. The second capacitor C2 is connected to the constant current source 15 via a switch SW10 'described later, and is connected in parallel with the first capacitor C1. The second capacitor C2 is charged when the switch SW10 ′ is on and the switch SW12 ′ is off, and is discharged when the switch SW10 ′ is off and the switch SW12 ′ is on. The

切替制御回路8は、フリップフロップ回路9と、充放電切替部10a,10bとを備え、 第1比較回路11及び第2比較回路13から出力される信号に基づき、定電流源15からの充電対象を第1コンデンサC1及び第2コンデンサC2のいずれか一方とし、他方を放電対象とするように切り替えている。   The switching control circuit 8 includes a flip-flop circuit 9 and charge / discharge switching units 10a and 10b, and is charged from the constant current source 15 based on signals output from the first comparison circuit 11 and the second comparison circuit 13. Is switched to one of the first capacitor C1 and the second capacitor C2, and the other is to be discharged.

フリップフロップ回路9は、公知のRSフリップフロップ回路として構成されており、第1比較回路11からの出力信号VsetがS端子に入力され、第2比較回路13からの出力信号VrstがR端子に入力されるようになっている。このフリップフロップ回路9は、S端子にHレベル信号が入力されR端子にLレベル信号が入力されたときにQ端子からHレベル信号を出力し、QB端子からLレベル信号を出力する。また、R端子にHレベル信号が入力され、S端子にLレベル信号が入力されたときにQ端子からLレベル信号を出力し、QB端子からHレベル信号を出力する。なお、S端子、R端子の入力が共にLレベルの場合にはそれまでの出力状態を保持するようになっており、S端子、R端子には同時にHレベル信号が入力されないようになっている。   The flip-flop circuit 9 is configured as a known RS flip-flop circuit, and the output signal Vset from the first comparison circuit 11 is input to the S terminal, and the output signal Vrst from the second comparison circuit 13 is input to the R terminal. It has come to be. The flip-flop circuit 9 outputs an H level signal from the Q terminal and an L level signal from the QB terminal when an H level signal is input to the S terminal and an L level signal is input to the R terminal. Further, when an H level signal is input to the R terminal and an L level signal is input to the S terminal, the L level signal is output from the Q terminal, and the H level signal is output from the QB terminal. When both the S terminal and R terminal inputs are at the L level, the output state up to that point is maintained, and the H level signal is not simultaneously input to the S terminal and the R terminal. .

充放電切替部10aは、半導体スイッチ素子(以下、スイッチともいう)SW10、SW11、SW12とこれらに接続される接続ラインによって構成されている。スイッチSW10は、Pチャネル型のMOSFETとして構成されており、ソースが定電流源15の出力側に接続され、ドレインが第1コンデンサC1の一端側に接続されている。また、スイッチSW10のゲートは、フリップフロップ回路9のQ端子(出力端子)に接続されている。スイッチSW11は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW10のドレイン及び第1コンデンサC1の一端側に接続され、ソースがスイッチSW12のドレインに接続されている。また、スイッチSW11のゲートは、制御部3におけるφ2信号の出力端子に接続されている。スイッチSW12は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW11のソースに接続され、ソースがグランドに接続されている。また、スイッチSW12のゲートは、フリップフロップ回路9のQ端子(出力端子)に接続されている。   The charge / discharge switching unit 10a includes semiconductor switch elements (hereinafter also referred to as switches) SW10, SW11, SW12 and connection lines connected to these. The switch SW10 is configured as a P-channel type MOSFET, the source is connected to the output side of the constant current source 15, and the drain is connected to one end side of the first capacitor C1. The gate of the switch SW10 is connected to the Q terminal (output terminal) of the flip-flop circuit 9. The switch SW11 is configured as an N-channel MOSFET, and has a drain connected to the drain of the switch SW10 and one end of the first capacitor C1, and a source connected to the drain of the switch SW12. The gate of the switch SW11 is connected to the output terminal of the φ2 signal in the control unit 3. The switch SW12 is configured as an N-channel MOSFET, and has a drain connected to the source of the switch SW11 and a source connected to the ground. The gate of the switch SW12 is connected to the Q terminal (output terminal) of the flip-flop circuit 9.

充放電切替部10bは、充放電切替部10aと並列に接続され、半導体スイッチ素子(以下、スイッチともいう)SW10’、SW12’とこれらに接続される接続ラインによって構成されている。スイッチSW10’は、Pチャネル型のMOSFETとして構成されており、ソースが定電流源15の出力側に接続され、ドレインが第2コンデンサC2の一端側に接続されている。また、スイッチSW10’のゲートは、フリップフロップ回路9のQB端子に接続されている。スイッチSW12’は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW10’のドレイン及び第2コンデンサC2の一端側に接続され、ソースがグランドに接続されている。また、スイッチSW12’のゲートは、フリップフロップ回路9のQB端子に接続されている。   The charge / discharge switching unit 10b is connected in parallel to the charge / discharge switching unit 10a, and includes semiconductor switch elements (hereinafter also referred to as switches) SW10 'and SW12' and connection lines connected to these. The switch SW10 'is configured as a P-channel type MOSFET, the source is connected to the output side of the constant current source 15, and the drain is connected to one end side of the second capacitor C2. The gate of the switch SW10 'is connected to the QB terminal of the flip-flop circuit 9. The switch SW12 'is configured as an N-channel MOSFET, and has a drain connected to the drain of the switch SW10' and one end of the second capacitor C2, and a source connected to the ground. The gate of the switch SW12 'is connected to the QB terminal of the flip-flop circuit 9.

第1比較回路11及び第2比較回路13は、いずれも公知のコンパレータとして構成されている。
第1比較回路11は、正側の入力端子がスイッチ(スイッチSW31、SW32)を介して第1コンデンサC1の一端側に接続されており、スイッチ(スイッチSW31、SW32)がオン状態のときに、第1コンデンサC1の充電電圧V1を正側の入力信号として入力するように構成されている。また、第1比較回路11の負側の入力端子には、閾値設定回路(基準電圧生成部)20で設定された閾値Vstd_compが入力されるようになっている。閾値Vstd_compは、第1比較回路11での比較基準となる第1閾値の一例に相当する。この第1比較回路11は、スイッチSW31、SW32がオン状態となっている通常モード時において第1コンデンサC1に充電された充電電圧V1が閾値Vstd_comp(第1閾値)未満である場合にLレベル信号(第1信号)を出力し、第1コンデンサC1に充電された充電電圧V1が閾値Vstd_comp(第1閾値)以上である場合にHレベル信号(第1信号とは異なる第2信号)を出力するように機能する。
Both the first comparison circuit 11 and the second comparison circuit 13 are configured as known comparators.
The first comparison circuit 11 has a positive input terminal connected to one end of the first capacitor C1 via switches (switches SW31 and SW32), and when the switches (switches SW31 and SW32) are in an ON state. The charging voltage V1 of the first capacitor C1 is configured to be input as a positive input signal. The threshold value Vstd_comp set by the threshold setting circuit (reference voltage generation unit) 20 is input to the negative input terminal of the first comparison circuit 11. The threshold value Vstd_comp corresponds to an example of a first threshold value that serves as a comparison reference in the first comparison circuit 11. The first comparison circuit 11 outputs an L level signal when the charging voltage V1 charged in the first capacitor C1 is less than the threshold value Vstd_comp (first threshold value) in the normal mode in which the switches SW31 and SW32 are in the on state. (First signal) is output, and when the charging voltage V1 charged in the first capacitor C1 is equal to or higher than a threshold value Vstd_comp (first threshold value), an H level signal (second signal different from the first signal) is output. To function.

第2比較回路13は、正側の入力端子が第2コンデンサC2の一端側に接続されており、第2コンデンサC2の充電電圧V2を正側の入力信号として入力するように構成されている。また、第2比較回路13の負側の入力端子には、閾値設定回路(基準電圧生成部)20で設定された閾値Vstd_compが入力されるようになっている。閾値Vstd_compは、第2比較回路13での比較基準となる第2閾値の一例に相当する。この第2比較回路13は、第2コンデンサC2に充電された充電電圧V2が閾値Vstd_comp(第2閾値)未満である場合にLレベル信号(第3信号)を出力し、第2コンデンサC2に充電された充電電圧V2が閾値Vstd_comp(第2閾値)以上である場合にHレベル信号(第3信号とは異なる第4信号)を出力するように機能する。
なお、第1比較回路11、第2比較回路13は、ノイズに強くするため、一般的にヒステリシスをもたせたコンパレータ回路を用いると良い。
The second comparison circuit 13 has a positive input terminal connected to one end of the second capacitor C2, and is configured to input the charging voltage V2 of the second capacitor C2 as a positive input signal. The threshold value Vstd_comp set by the threshold setting circuit (reference voltage generation unit) 20 is input to the negative input terminal of the second comparison circuit 13. The threshold value Vstd_comp corresponds to an example of a second threshold value that serves as a comparison reference in the second comparison circuit 13. The second comparison circuit 13 outputs an L level signal (third signal) when the charging voltage V2 charged in the second capacitor C2 is less than a threshold value Vstd_comp (second threshold value), and charges the second capacitor C2. It functions to output an H level signal (a fourth signal different from the third signal) when the charged voltage V2 is equal to or higher than the threshold value Vstd_comp (second threshold value).
The first comparison circuit 11 and the second comparison circuit 13 are generally good to use a comparator circuit having hysteresis in order to be strong against noise.

補正部4は、記憶装置5とAD変換器7によって構成されている。この補正部4は、第1比較回路11からの出力が第1信号(Lレベル信号)から第2信号(Hレベル信号)に切り替わったことに応じて切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期(即ち、スイッチSW10がオフ状態となり、スイッチSW12がオン状態となった時期)での当該第1コンデンサC1の充電電圧V1に基づいて、閾値設定回路20で設定される共通の閾値(第1閾値、第2閾値)の補正に用いる補正データを生成している。なお、補正データの生成については後に詳述する。   The correction unit 4 includes a storage device 5 and an AD converter 7. The correction unit 4 discharges the first capacitor C1 by the switching control circuit 8 in response to the output from the first comparison circuit 11 being switched from the first signal (L level signal) to the second signal (H level signal). A common value set by the threshold setting circuit 20 based on the charging voltage V1 of the first capacitor C1 at the time when the switch is switched to the target (that is, the time when the switch SW10 is turned off and the switch SW12 is turned on). Correction data used to correct the threshold values (first threshold value, second threshold value) is generated. The generation of correction data will be described in detail later.

記憶装置5は、公知の半導体メモリ等によって構成されており、閾値設定回路20での閾値設定の基準となる電圧を特定可能な情報(基準コード)が記憶されている。基準コードは、当該発振回路1の装置温度が代表的な特定温度(例えば20℃)のときに当該発振回路1が所望の発振周波数となるように基準電圧Vstdを設定するための値である。基準電圧Vstdを設定したとき後述する自己補正モードで第1コンデンサC1の放電開始時充電電圧V1は一意の代表電圧V1typとなる。この代表電圧V1typと基準電圧Vstdとの差電圧のデジタルデータを基準コードとなるように定義する。   The storage device 5 is configured by a known semiconductor memory or the like, and stores information (reference code) that can specify a voltage that is a reference for threshold setting in the threshold setting circuit 20. The reference code is a value for setting the reference voltage Vstd so that the oscillation circuit 1 has a desired oscillation frequency when the device temperature of the oscillation circuit 1 is a typical specific temperature (for example, 20 ° C.). When the reference voltage Vstd is set, the charging voltage V1 at the start of discharging the first capacitor C1 becomes a unique representative voltage V1typ in a self-correction mode to be described later. The digital data of the difference voltage between the representative voltage V1typ and the reference voltage Vstd is defined to be a reference code.

AD変換器7は、公知のAD変換器によって構成されている。このAD変換器7は、スイッチ(スイッチSW21、SW22)を介して第1コンデンサC1に接続されており、第1コンデンサC1の充電電圧V1が入力可能とされている。なお、スイッチSW21は、Nチャネル型のMOSFETとして構成されており、ドレインがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ソースがAD変換器7の一方の入力側に接続されている。また、スイッチSW21のゲートは、制御部3における出力信号φ1の出力端子に接続されている。また、スイッチSW22は、Pチャネル型のMOSFETとして構成されており、ソースがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ドレインがAD変換器7の一方の入力側に接続されている。また、スイッチSW22のゲートは、制御部3における出力信号φ2の出力端子に接続されている。また、AD変換器7には、閾値設定回路20で生成された基準電圧Vstdが入力されるようになっており、スイッチSW21、SW22がオン状態となったタイミングでの第1コンデンサC1の充電電圧V1と基準電圧Vstdとの差電圧をデジタル信号に変換するように機能している。   The AD converter 7 is configured by a known AD converter. The AD converter 7 is connected to the first capacitor C1 via switches (switches SW21 and SW22), and the charging voltage V1 of the first capacitor C1 can be input. The switch SW21 is configured as an N-channel MOSFET, and has a drain connected to one end of the capacitor C1 and the drain of the switch SW10, and a source connected to one input side of the AD converter 7. The gate of the switch SW21 is connected to the output terminal of the output signal φ1 in the control unit 3. Further, the switch SW22 is configured as a P-channel type MOSFET, the source is connected to one end side of the capacitor C1 and the drain of the switch SW10, and the drain is connected to one input side of the AD converter 7. The gate of the switch SW22 is connected to the output terminal of the output signal φ2 in the control unit 3. Further, the reference voltage Vstd generated by the threshold setting circuit 20 is input to the AD converter 7, and the charging voltage of the first capacitor C1 at the timing when the switches SW21 and SW22 are turned on. It functions to convert the difference voltage between V1 and the reference voltage Vstd into a digital signal.

閾値設定回路20は、第1比較回路11及び第2比較回路13での比較基準となる閾値(第1閾値、第2閾値として用いられる共通の値)を設定するように機能するものである。この閾値設定回路20は、例えば図2のように構成されており、記憶装置5から出力される基準コードと、AD変換器7から出力される補正コード(スイッチSW21、SW22がオン状態となったタイミングでの第1コンデンサC1の充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータ)を入力として、基準電圧Vstdと閾値Vstd_comp(第1閾値、第2閾値として用いられる共通の値)を出力するように構成されている。   The threshold value setting circuit 20 functions to set a threshold value (a common value used as the first threshold value and the second threshold value) as a comparison reference in the first comparison circuit 11 and the second comparison circuit 13. The threshold setting circuit 20 is configured as shown in FIG. 2, for example, and the reference code output from the storage device 5 and the correction code output from the AD converter 7 (switches SW21 and SW22 are turned on). The reference voltage Vstd and the threshold value Vstd_comp (a common value used as the first threshold value and the second threshold value) are output with the input of the charging voltage V1 of the first capacitor C1 and the reference voltage Vstd at the timing. Is configured to do.

この閾値設定回路20では、所定の電源とグランドとの間に抵抗R1〜Rmが直列に接続されており、各抵抗間にMOSFETやバイポーラトランジスタなどからなるスイッチX1〜Xnの各一端が接続され、スイッチX1〜Xnの各他端には基準電圧Vstdの出力ラインが接続されている。そしてデコーダ21に設けられたn個の端子に各スイッチX1〜Xnの制御端子が接続されており、各スイッチX1〜Xnは、デコーダ21において対応する端子がHレベルとなったときにオン状態に切り替わり、デコーダ21において対応する端子がLレベルとなったときにオフ状態に切り替わるようになっている。また、各抵抗間には、MOSFETやバイポーラトランジスタなどからなるスイッチY1〜Ynの各一端が接続され、スイッチY1〜Ynの各他端には閾値Vstd_compを出力するための出力ラインが接続されている。そしてデコーダ25に設けられたn個の端子に各スイッチY1〜Ynの制御端子が接続されており、各スイッチY1〜Ynは、デコーダ25において対応する端子がHレベルとなったときにオン状態に切り替わり、デコーダ25において対応する端子がLレベルとなったときにオフ状態に切り替わるようになっている。この構成では、記憶装置5から読み出された基準コードがデコーダ21に入力されると、デコーダ21の各端子の状態は基準コードに対応する状態となり、各スイッチX1〜Xnに対し基準コードに対応する信号が並列に出力される。これにより、基準コードに対応した基準電圧Vstdが出力される。また、補正値を特定する情報(補正コード)が記憶部23で保持され、デコーダ25に入力されると、デコーダ25の各端子の状態は補正コードに対応する状態となり、各スイッチY1〜Ynに対し補正コードに対応する信号が並列に出力される。そして、本構成では、補正コードを変更することでスイッチY1〜Ynの状態を切り替えることができ、出力される閾値Vstd_compを増減することができる。なお、当該発振回路1の起動後の初期設定時には、記憶部23には基準コードが保持されるようになっており、閾値Vstd_compは、基準電圧Vstdと同電圧が出力されるようにする。   In the threshold setting circuit 20, resistors R1 to Rm are connected in series between a predetermined power source and the ground, and one ends of switches X1 to Xn made of MOSFETs, bipolar transistors, or the like are connected between the resistors, An output line of the reference voltage Vstd is connected to each other end of the switches X1 to Xn. The control terminals of the switches X1 to Xn are connected to n terminals provided in the decoder 21, and each switch X1 to Xn is turned on when the corresponding terminal in the decoder 21 becomes H level. When the corresponding terminal in the decoder 21 becomes L level, it is switched to the off state. Further, between the resistors, one ends of switches Y1 to Yn made of MOSFETs or bipolar transistors are connected, and an output line for outputting a threshold value Vstd_comp is connected to the other ends of the switches Y1 to Yn. . The control terminals of the switches Y1 to Yn are connected to n terminals provided in the decoder 25, and the switches Y1 to Yn are turned on when the corresponding terminals in the decoder 25 become H level. When the corresponding terminal in the decoder 25 becomes L level, it is switched to the off state. In this configuration, when the reference code read from the storage device 5 is input to the decoder 21, the state of each terminal of the decoder 21 corresponds to the reference code, and corresponds to the reference code for each of the switches X1 to Xn. Are output in parallel. As a result, the reference voltage Vstd corresponding to the reference code is output. In addition, when information (correction code) for specifying a correction value is held in the storage unit 23 and input to the decoder 25, the state of each terminal of the decoder 25 becomes a state corresponding to the correction code, and each switch Y1 to Yn has a state. On the other hand, signals corresponding to the correction codes are output in parallel. In this configuration, the state of the switches Y1 to Yn can be switched by changing the correction code, and the output threshold value Vstd_comp can be increased or decreased. In the initial setting after the oscillation circuit 1 is started, the reference code is held in the storage unit 23, and the threshold Vstd_comp is set to output the same voltage as the reference voltage Vstd.

次に、発振回路1の動作について説明する。
まず、発振回路1の基本動作について説明する。基本動作は、制御部3からの出力信号φ1がLレベルであり、出力信号φ2がHレベルであるときの動作である。つまり、基本動作時は、スイッチSW11、SW31、SW32は常にオン状態であり、スイッチSW21、SW22、SW4は常にオフ状態である。
Next, the operation of the oscillation circuit 1 will be described.
First, the basic operation of the oscillation circuit 1 will be described. The basic operation is an operation when the output signal φ1 from the control unit 3 is at L level and the output signal φ2 is at H level. That is, during the basic operation, the switches SW11, SW31, and SW32 are always on, and the switches SW21, SW22, and SW4 are always off.

この基本動作時は、図3の時間T1以降のように、フリップフロップ回路9からの出力信号QがLレベルの間は、スイッチSW10がオン状態となり、スイッチSW12がオフ状態となるため、定電流源15からの充電電流により第1コンデンサC1が充電される。このとき、出力信号QBはHレベルであり、スイッチSW10’がオフ状態となり、スイッチSW12’がオン状態となるため第2コンデンサC2は放電される。この動作では、第1コンデンサC1の充電電圧V1が閾値Vstd_comp未満の間は、第1比較回路11からLレベル信号の出力(「0」の出力)がなされる。一方、第1コンデンサC1の充電電圧V1が閾値Vstd_compを超えたときには、第1比較回路11からHレベル信号の出力(「1」の出力)がなされる(時間T2からのVset信号を参照:図3)。   During this basic operation, since the switch SW10 is in the on state and the switch SW12 is in the off state while the output signal Q from the flip-flop circuit 9 is at the L level after the time T1 in FIG. The first capacitor C1 is charged by the charging current from the source 15. At this time, the output signal QB is at the H level, the switch SW10 'is turned off, and the switch SW12' is turned on, so that the second capacitor C2 is discharged. In this operation, while the charging voltage V1 of the first capacitor C1 is less than the threshold value Vstd_comp, the first comparison circuit 11 outputs an L level signal (output of “0”). On the other hand, when the charging voltage V1 of the first capacitor C1 exceeds the threshold value Vstd_comp, the first comparison circuit 11 outputs an H level signal (output “1”) (see the Vset signal from time T2: FIG. 3).

第1比較回路11からHレベル信号の出力(「1」の出力)がなされると、フリップフロップ回路9の出力信号QがHレベル(「1」の信号)に切り替わり、出力信号QBはLレベル(「0」の信号)に切り替わる(時間T2からの出力信号Q、QB参照)。時間T2以降のように、フリップフロップ回路9からの出力信号QがHレベルの間は、スイッチSW10がオフ状態となり、スイッチSW12がオン状態となり、基本動作時は出力信号φ2がHレベルで維持されてスイッチSW11もオン状態であるため、定電流源15からの第1コンデンサC1への電流供給が遮断されつつ第1コンデンサC1は放電される。一方、フリップフロップ回路9からの出力信号QBがLレベルの間は、スイッチSW10’がオン状態となり、スイッチSW12’がオフ状態となるため、定電流源15からの充電電流により第2コンデンサC2が充電される。そして、この動作では、第2コンデンサC2の充電電圧V2が閾値Vstd_comp未満の間は、第2比較回路13からLレベル信号の出力(「0」の出力)がなされる。一方、第2コンデンサC2の充電電圧V2が閾値Vstd_compを超えたときには、第2比較回路13からHレベル信号の出力(「1」の出力)がなされる(時間T3からのVrst信号を参照:図3)。これにより、出力信号Q、QBが再度反転する(図3の時間T3参照)。このような動作を繰り返すことで、出力信号Q及び出力信号QBは、所定周期の発振信号となる。   When an H level signal is output from the first comparison circuit 11 (“1” output), the output signal Q of the flip-flop circuit 9 is switched to H level (“1” signal), and the output signal QB is L level. (Refer to output signals Q and QB from time T2). As from time T2, after the output signal Q from the flip-flop circuit 9 is at the H level, the switch SW10 is turned off and the switch SW12 is turned on. During the basic operation, the output signal φ2 is maintained at the H level. Since the switch SW11 is also in the on state, the current supply from the constant current source 15 to the first capacitor C1 is cut off, and the first capacitor C1 is discharged. On the other hand, while the output signal QB from the flip-flop circuit 9 is at the L level, the switch SW10 ′ is turned on and the switch SW12 ′ is turned off, so that the second capacitor C2 is driven by the charging current from the constant current source 15. Charged. In this operation, while the charging voltage V2 of the second capacitor C2 is less than the threshold value Vstd_comp, the second comparison circuit 13 outputs an L level signal (output of “0”). On the other hand, when the charging voltage V2 of the second capacitor C2 exceeds the threshold value Vstd_comp, the second comparison circuit 13 outputs an H level signal (output “1”) (see the Vrst signal from time T3: FIG. 3). As a result, the output signals Q and QB are inverted again (see time T3 in FIG. 3). By repeating such an operation, the output signal Q and the output signal QB become oscillation signals having a predetermined period.

次に、自己補正動作について説明する。
本実施形態に係る発振回路1では、制御部3が定期的に或いは所定条件成立時に基本動作を行うモードから自己補正動作を行うモード(自己補正モード)に切り替わる。自己補正動作を行うモードに切り替わった場合、制御部3は、フリップフロップ回路9からの出力信号Qの立ち上がりのタイミングで出力信号φ1、φ2を反転し、出力信号φ1をHレベルに設定し、出力信号φ2をLレベルに設定した状態を一定時間維持する。
Next, the self correction operation will be described.
In the oscillation circuit 1 according to the present embodiment, the control unit 3 switches from a mode in which the basic operation is performed periodically or when a predetermined condition is satisfied to a mode in which a self-correction operation is performed (self-correction mode). When the mode is switched to the self-correction operation mode, the control unit 3 inverts the output signals φ1 and φ2 at the rising timing of the output signal Q from the flip-flop circuit 9, sets the output signal φ1 to the H level, and outputs The state where the signal φ2 is set to the L level is maintained for a certain time.

この一定時間の間は、出力信号Qの立ち上がりからスイッチSW10がオフ状態となっているため充電が阻止され、スイッチSW11がオフ状態となるため、第1コンデンサC1からのスイッチSW11を介した放電も阻止される。また、本構成では、スイッチSW31は、Pチャネル型のMOSFETとして構成されており、ソースがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ドレインが第1比較回路11の正側の入力端子に接続されている。また、スイッチSW31のゲートは、制御部3における出力信号φ1の出力端子に接続されている。更に、スイッチSW32は、Nチャネル型のMOSFETとして構成されており、ドレインがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ソースが第1比較回路11の正側の入力端子に接続されている。また、スイッチSW32のゲートは、制御部3における出力信号φ2の出力端子に接続されている。従って、上記一定期間の間は、スイッチSW31にHレベル信号が入力され、スイッチSW32にLレベル信号が入力されるため、スイッチSW31、SW32がオフ状態となり、第1コンデンサC1と第1比較回路11との通電状態も遮断される。また、スイッチSW4は、Nチャネル型のMOSFETとして構成されており、ドレインが上記スイッチ(スイッチSW31、SW32)と第1比較回路11の正側の入力端子との間に接続され、ソースがグランドに接続されており、スイッチSW4のゲートは、制御部3における出力信号φ1の出力端子に接続されている。従って、上記一定期間は、スイッチSW4のゲートにHレベル信号が入力されてオン状態となるため、第1比較回路11の正側の入力はグランドレベルに固定され、誤動作防止が図られる。   During this fixed time, since the switch SW10 is turned off from the rising edge of the output signal Q, charging is prevented and the switch SW11 is turned off, so that the discharge from the first capacitor C1 via the switch SW11 is also performed. Be blocked. In this configuration, the switch SW31 is configured as a P-channel MOSFET, the source is connected to one end of the capacitor C1 and the drain of the switch SW10, and the drain is an input terminal on the positive side of the first comparison circuit 11. It is connected to the. The gate of the switch SW31 is connected to the output terminal of the output signal φ1 in the control unit 3. Further, the switch SW32 is configured as an N-channel MOSFET, the drain is connected to one end of the capacitor C1 and the drain of the switch SW10, and the source is connected to the positive input terminal of the first comparison circuit 11. Yes. The gate of the switch SW32 is connected to the output terminal of the output signal φ2 in the control unit 3. Therefore, since the H level signal is input to the switch SW31 and the L level signal is input to the switch SW32 during the predetermined period, the switches SW31 and SW32 are turned off, and the first capacitor C1 and the first comparison circuit 11 are turned off. Is also cut off. The switch SW4 is configured as an N-channel type MOSFET, and the drain is connected between the switches (switches SW31 and SW32) and the positive input terminal of the first comparison circuit 11, and the source is connected to the ground. The gate of the switch SW4 is connected to the output terminal of the output signal φ1 in the control unit 3. Accordingly, since the H level signal is input to the gate of the switch SW4 during the predetermined period and is turned on, the input on the positive side of the first comparison circuit 11 is fixed to the ground level, thereby preventing malfunction.

一方、スイッチSW21,SW22はオン状態となるため、AD変換器7の一方側には第1コンデンサC1の充電停止時点での充電電圧V1が入力される。この充電停止時点での充電電圧は、基本動作時に第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより第1比較回路11からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、コンデンサC1の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータが生成される。   On the other hand, since the switches SW21 and SW22 are turned on, the charging voltage V1 when the charging of the first capacitor C1 is stopped is input to one side of the AD converter 7. The charging voltage at the time of stopping charging is the charging voltage at the time when the first capacitor C1 is switched from the charging target to the discharging target during the basic operation (that is, the charging voltage from the state where the first capacitor C1 was the charging target). When V1 exceeds the threshold value Vstd_comp, an H level signal is output from the first comparison circuit 11, and this corresponds to a charging voltage at the time of switching when the output signal Q is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of a difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the charging of the capacitor C1 is stopped (when the capacitor C1 is switched to the discharge target).

ここで、補正の考え方について説明する。発振回路1の装置温度が代表的な特定温度から変化したことによる遅延時間の変化をΔtとすると、Δt=C/I×{(V1−Vstd)-(V1typ−Vstd)}で算出できる。なお、Cは、コンデンサC1の容量(定数)であり、Iは、定電流源15からの充電電流値(定数)であり、V1は、温度変化後の充電電圧の測定値(上記自己補正モードにおける充電停止時点でのコンデンサC1の充電電圧)であり、V1typは、代表的な特定温度のときの充電電圧(発振回路1の装置温度が代表的な特定温度のときに上記自己補正モードを行った場合の、充電停止時点でのコンデンサC1の充電電圧(定数))である。Vstdは、閾値設定回路20で生成される基準電圧(定数)である。   Here, the concept of correction will be described. If a change in delay time due to a change in the device temperature of the oscillation circuit 1 from a typical specific temperature is Δt, it can be calculated by Δt = C / I × {(V1−Vstd) − (V1typ−Vstd)}. C is a capacitance (constant) of the capacitor C1, I is a charging current value (constant) from the constant current source 15, and V1 is a measured value of the charging voltage after temperature change (the self-correction mode). V1typ is a charging voltage at a typical specific temperature (the self-correction mode is performed when the device temperature of the oscillation circuit 1 is a typical specific temperature). The charging voltage (constant) of the capacitor C1 when charging is stopped. Vstd is a reference voltage (constant) generated by the threshold setting circuit 20.

上記の式における「V1typ−Vstd」(基準となる差電圧)は、typical状態(即ち、発振回路1の装置温度が代表的な特定温度の状態)において、上記自己補正モードを行った場合の、充電停止時点(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより第1比較回路11からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点)でのコンデンサC1の充電電圧であり、そのA/D変換結果は基準コードとして記憶装置5に保持されている。そして、C/Iは定数なので、(V1−Vstd)-(V1typ−Vstd)の差電圧、即ち、「V1−Vstd」(自己補正モードで測定されるAD変換値)と「V1typ−Vstd」(基準となる差電圧)の差電圧は、Δtと比例関係にある。つまり、上記自己補正モードで測定されるAD変換値「V1−Vstd」は、typical状態のときの遅延時間と、typical状態から温度変化したことによって変化した遅延時間との差の情報を含むデータであるといえる。   “V1 typ−Vstd” (reference difference voltage) in the above equation is obtained when the self-correction mode is performed in a typical state (that is, a state where the device temperature of the oscillation circuit 1 is a representative specific temperature). When the charging is stopped (that is, when the charging voltage V1 exceeds the threshold value Vstd_comp from the state in which the first capacitor C1 is charged), an H level signal is output from the first comparison circuit 11, and the output signal Q becomes H level. The charging voltage of the capacitor C1 at the time of switching), and the A / D conversion result is held in the storage device 5 as a reference code. Since C / I is a constant, a difference voltage of (V1−Vstd) − (V1typ−Vstd), that is, “V1−Vstd” (AD conversion value measured in the self-correction mode) and “V1typ−Vstd” ( The difference voltage (reference difference voltage) is proportional to Δt. That is, the AD conversion value “V1-Vstd” measured in the self-correction mode is data including information on the difference between the delay time in the typical state and the delay time changed due to the temperature change from the typical state. It can be said that there is.

そして、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typ(V1typは、所定の代表電圧の一例に相当)のときは、typical状態のときよりも発振周波数が低くなっており、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも小さいとき、即ち、V1<V1typのときは、typical状態のときよりも発振周波数が高くなっているといえる。従って、閾値設定回路20(基準電圧生成部)は、上記自己補正モードで測定されるAD変換値「V1−Vstd」(補正コード)を入力して記憶部23で保持すると共に当該補正コードをデコーダ25にてデコードする。そして、そのデコード結果に応じてスイッチY1〜Ynを動作させ、上記補正コードに基づいて補正された電圧を閾値Vstd_compとして出力する。   When the AD conversion value “V1−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V1typ−Vstd”, that is, V1> V1typ (V1typ is an example of a predetermined representative voltage). The oscillation frequency is lower than in the typical state, and the AD conversion value “V1−Vstd” measured in the self-correction mode is smaller than the reference differential voltage “V1typ−Vstd”. In other words, when V1 <V1typ, it can be said that the oscillation frequency is higher than that in the typical state. Therefore, the threshold setting circuit 20 (reference voltage generation unit) inputs the AD conversion value “V1-Vstd” (correction code) measured in the self-correction mode, holds it in the storage unit 23, and decodes the correction code into the decoder. Decode at 25. Then, the switches Y1 to Yn are operated according to the decoding result, and the voltage corrected based on the correction code is output as the threshold value Vstd_comp.

具体的には、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typ(V1typは、所定の代表電圧の一例に相当)のときは、閾値Vstd_compをtypical状態のときの値(即ち、発振回路1の装置温度が代表的な特定温度のときの閾値Vstd_comp=Vstd(基準値))よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも小さいとき、即ち、V1<V1typのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図3の例では、時間T3〜T5の間で自己補正動作を行い、AD変換器7にてAD変換値「V1−Vstd」を取得している。そして、AD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいケースであるため、時間T5から所定時間後のタイミングで、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。図3のように、補正された閾値Vstd_compの反映は、第1コンデンサC1の充電動作に影響を与えないよう、第2コンデンサC2の放電動作が始まった直後に実施することが望ましい。   Specifically, when the AD conversion value “V1−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V1typ−Vstd”, that is, V1> V1typ (V1typ is a predetermined representative voltage). In the case where the threshold Vstd_comp is lower than the value in the typical state (that is, the threshold Vstd_comp = Vstd (reference value) when the device temperature of the oscillation circuit 1 is a typical specific temperature)). And increase the oscillation frequency to match the oscillation frequency in the typical state. Conversely, when the AD conversion value “V1−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “V1typ−Vstd”, that is, when V1 <V1typ, the threshold value Vstd_comp is set to the typical state. Correction is made to be higher than the current value (reference value), and the oscillation frequency is lowered to match the oscillation frequency in the typical state. For example, in the example of FIG. 3, the self-correction operation is performed between times T <b> 3 and T <b> 5, and the AD conversion value “V1−Vstd” is acquired by the AD converter 7. Since the AD conversion value “V1−Vstd” is larger than the reference difference voltage “V1typ−Vstd”, the threshold value Vstd_comp is a value (reference value) at a timing after a predetermined time from the time T5. The oscillation frequency is increased to match the oscillation frequency in the typical state. As shown in FIG. 3, it is desirable to reflect the corrected threshold value Vstd_comp immediately after the discharge operation of the second capacitor C2 starts so as not to affect the charging operation of the first capacitor C1.

このように、本構成では、補正部4は、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期に当該第1コンデンサC1の充電電圧V1を検出し、検出された当該充電電圧V1が所定の代表電圧V1typを超える場合(即ち、V1>V1typ)には所定の基準値(上記typical状態のときに設定される閾値)のときよりも閾値Vstd_compを低くする補正データを生成し、検出された当該充電電圧V1が代表電圧V1typ未満の場合には、所定の基準値(上記typical状態のときに設定される閾値)のときよりも閾値Vstd_compを高くする補正データを生成している。なお、上記発振回路1では、補正コードの上限値及び下限値が予め定められており、デコーダ25に上限を超える補正データが入力された場合、当該デコーダ25は、設定された上限値をスイッチY1〜Ynに出力し、デコーダ25に下限を下回る補正データが入力された場合には、設定された下限値をスイッチY1〜Ynに出力する。   Thus, in this configuration, the correction unit 4 detects the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target by the switching control circuit 8, and the detected charging voltage is detected. When V1 exceeds a predetermined representative voltage V1typ (that is, V1> V1typ), correction data for generating a threshold value Vstd_comp lower than a predetermined reference value (threshold value set in the typical state) is generated. When the detected charging voltage V1 is less than the representative voltage V1typ, correction data for generating a threshold value Vstd_comp higher than a predetermined reference value (threshold value set in the typical state) is generated. In the oscillation circuit 1, the upper limit value and the lower limit value of the correction code are determined in advance, and when correction data exceeding the upper limit is input to the decoder 25, the decoder 25 sets the set upper limit value to the switch Y1. When the correction data that is lower than the lower limit is input to the decoder 25, the set lower limit value is output to the switches Y1 to Yn.

(第1実施形態の主な効果)
第1実施形態において、第1コンデンサC1が放電対象に切り替わった時期での当該第1コンデンサC1の充電電圧V1は、第1比較回路11において第1コンデンサC1を放電対象に切り替える条件が成立した時点(即ち、充電電圧V1が閾値Vstd_compに達した時点)から当該第1コンデンサC1の放電が実際に開始されるまでの遅延時間を反映した値であり、遅延時間が大きければ充電電圧V1は相対的に大きくなり、遅延時間が小さければ充電電圧V1は相対的に小さくなる。従って、第1コンデンサC1が放電対象に切り替えられた時期での当該第1コンデンサC1の充電電圧V1に基づいて補正データを生成すれば、遅延時間を適切に考慮した補正データの生成が可能となる。
(Main effects of the first embodiment)
In the first embodiment, the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target is the time when the condition for switching the first capacitor C1 to the discharge target is satisfied in the first comparison circuit 11. This is a value reflecting a delay time from when the charging voltage V1 reaches the threshold value Vstd_comp until the discharge of the first capacitor C1 is actually started. If the delay time is large, the charging voltage V1 is relative. If the delay time is small, the charging voltage V1 becomes relatively small. Therefore, if the correction data is generated based on the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target, the correction data can be generated in consideration of the delay time appropriately. .

また、本構成では、各比較回路に用いる閾値を共通化することができるため、演算処理の簡素化を図ることができる。更に、第1コンデンサC1のみの充電電圧V1を検出し、その充電電圧V1を基準電圧Vstdと比較するといった簡易な回路構造で補正データを生成することができる。特に、特別な温度センサ等を用いずとも温度特性に起因する遅延時間の変化を補正することができ、部品点数の削減や装置構成の簡素化を図る上でより有利となる。   Further, in this configuration, since the threshold value used for each comparison circuit can be shared, the arithmetic processing can be simplified. Furthermore, correction data can be generated with a simple circuit structure in which only the charging voltage V1 of the first capacitor C1 is detected and the charging voltage V1 is compared with the reference voltage Vstd. In particular, a change in delay time due to temperature characteristics can be corrected without using a special temperature sensor or the like, which is more advantageous in reducing the number of parts and simplifying the device configuration.

[第2実施形態]
次に、図4〜図6を参照し、第2実施形態について説明する。
第2実施形態では、図4、図6に示すように、制御部3において第1実施形態と同様の出力信号φ1、φ2に加え、出力信号φ1’、φ2’をも出力可能とした点、スイッチSW11’、SW21’、SW22’、SW31’、SW32’、SW4’を追加した点、AD変換器7及び平均値生成部(以下、平均部ともいう)26での補正コードの生成方法が第1実施形態と異なり、それ以外の構成は第1実施形態と同様である。よって、これら以外の構成(第1実施形態と同様の点)については第1実施形態と同一の符号を付し、詳細な説明は省略する。
[Second Embodiment]
Next, a second embodiment will be described with reference to FIGS.
In the second embodiment, as shown in FIGS. 4 and 6, the control unit 3 can output the output signals φ1 ′ and φ2 ′ in addition to the same output signals φ1 and φ2 as in the first embodiment. The point that the switches SW11 ′, SW21 ′, SW22 ′, SW31 ′, SW32 ′, and SW4 ′ are added, and the generation method of the correction code in the AD converter 7 and the average value generation unit (hereinafter also referred to as the average unit) 26 are first. Unlike the first embodiment, the other configuration is the same as that of the first embodiment. Therefore, configurations other than these (same points as in the first embodiment) are denoted by the same reference numerals as those in the first embodiment, and detailed description thereof is omitted.

第2実施形態の発振回路1は、制御部3において、出力信号Qがトリガ信号として入力されるようになっている。そして、この制御部3は、通常モード(第1実施形態と同様の基本動作を行うモード)では、出力信号φ1がLレベルで維持され、出力信号φ2がHレベルで維持され、出力信号φ1’がLレベルで維持され、出力信号φ2’がHレベルで維持される。一方、自己補正動作を行うモードでは、出力信号Qの立ち下がりをトリガとして出力信号φ1’を一定時間Hレベルで維持し且つ出力信号φ2’を一定時間Lレベルで維持する。また、出力信号Qの立ち上がりをトリガとして出力信号φ1を一定時間Hレベルで維持し且つ出力信号φ2を一定時間Lレベルで維持する。なお、この制御部3は、マイコンなどの公知の制御回路によって構成されていてもよく、出力信号Qの立ち上がり、立ち下がりをトリガとして上記信号を出力し得る構成であれば他の回路でもよい。なお、制御部3での通常モードから自己補正動作を行うモードへの切り替えは、定期的に行われてもよく、所定条件が成立したときに行われてもよい。   In the oscillation circuit 1 of the second embodiment, an output signal Q is input as a trigger signal in the control unit 3. In the normal mode (the mode in which the basic operation similar to that of the first embodiment is performed), the control unit 3 maintains the output signal φ1 at the L level, maintains the output signal φ2 at the H level, and outputs the output signal φ1 ′. Is maintained at the L level, and the output signal φ2 ′ is maintained at the H level. On the other hand, in the mode in which the self-correction operation is performed, the output signal φ1 ′ is maintained at the H level for a certain time and the output signal φ2 ′ is maintained at the L level for a certain time by using the falling edge of the output signal Q as a trigger. Further, with the rising edge of the output signal Q as a trigger, the output signal φ1 is maintained at the H level for a certain time and the output signal φ2 is maintained at the L level for the certain time. The control unit 3 may be configured by a known control circuit such as a microcomputer, or may be another circuit as long as the signal can be output using the rising and falling edges of the output signal Q as a trigger. Note that the switching from the normal mode to the mode for performing the self-correction operation in the control unit 3 may be performed periodically or when a predetermined condition is satisfied.

本実施形態に係る発振回路1では、基本動作時の発振動作は第1実施形態と同様である。
なお、この基本動作時には、上述したように制御部3から、Lレベルの信号φ1、Hレベルの信号φ2、Lレベルの信号φ1’、Hレベルの信号φ2’が出力されるため、スイッチSW21、SW22、SW21’、SW22’、SW4、SW4’はいずれもオフ状態となり、スイッチSW11、SW11’、SW31、SW32、SW31’、SW32’はいずれもオン状態となる。
In the oscillation circuit 1 according to the present embodiment, the oscillation operation during the basic operation is the same as that of the first embodiment.
During this basic operation, the control unit 3 outputs the L level signal φ1, the H level signal φ2, the L level signal φ1 ′, and the H level signal φ2 ′, as described above. SW22, SW21 ′, SW22 ′, SW4, and SW4 ′ are all turned off, and switches SW11, SW11 ′, SW31, SW32, SW31 ′, and SW32 ′ are all turned on.

そして、本実施形態でも、制御部3が定期的に或いは所定条件成立時に基本動作を行うモードから自己補正動作を行うモード(自己補正モード)に切り替わる。自己補正動作を行うモードに切り替わった場合、図6の時間T3のときのように、制御部3は、フリップフロップ回路9からの出力信号Qの立ち下がりのタイミングで出力信号φ1’、φ2’を反転し、出力信号φ1’をHレベルに設定し、出力信号φ2’をLレベルに設定した状態を一定時間維持する。   Also in the present embodiment, the control unit 3 switches from the mode in which the basic operation is performed periodically or when a predetermined condition is satisfied to the mode in which the self-correction operation is performed (self-correction mode). When the mode is switched to the self-correction operation mode, the control unit 3 outputs the output signals φ1 ′ and φ2 ′ at the falling timing of the output signal Q from the flip-flop circuit 9, as at time T3 in FIG. Inverted, the output signal φ1 ′ is set to the H level, and the output signal φ2 ′ is set to the L level and maintained for a certain time.

この一定時間の間は、出力信号Qの立ち下がり(即ち出力信号QBの立ち上がり)からスイッチSW10’がオフ状態となっているためコンデンサC2への充電が阻止され、スイッチSW11’がオフ状態となるため、第2コンデンサC2からのスイッチSW11’を介した放電も阻止される。また、本構成では、スイッチSW31’は、Pチャネル型のMOSFETとして構成されており、ソースがコンデンサC2の一端側及びスイッチSW10’のドレインに接続され、ドレインが第2比較回路13の正側の入力端子に接続されている。また、スイッチSW31’のゲートは、制御部3における出力信号φ1’の出力端子に接続されている。更に、スイッチSW32’は、Nチャネル型のMOSFETとして構成されており、ドレインがコンデンサC2の一端側及びスイッチSW10’のドレインに接続され、ソースが第2比較回路13の正側の入力端子に接続されている。また、スイッチSW32’のゲートは、制御部3における出力信号φ2’の出力端子に接続されている。従って、上記一定期間の間は、スイッチSW31’にHレベル信号が入力され、スイッチSW32’にLレベル信号が入力されるため、スイッチSW31’、SW32’がオフ状態となり、第2コンデンサC2と第2比較回路13との通電状態も遮断される。また、スイッチSW4’は、Nチャネル型のMOSFETとして構成されており、ドレインが上記スイッチ(スイッチSW31’、SW32’)と第2比較回路13の正側の入力端子との間に接続され、ソースがグランドに接続されており、スイッチSW4’のゲートは、制御部3における出力信号φ1’の出力端子に接続されている。従って、上記一定期間は、スイッチSW4’のゲートにHレベル信号が入力されてオン状態となるため、第2比較回路13の正側の入力はグランドレベルに固定され、誤動作防止が図られる。   During this fixed time, the switch SW10 ′ is turned off from the fall of the output signal Q (that is, the rise of the output signal QB), so that charging of the capacitor C2 is prevented and the switch SW11 ′ is turned off. Therefore, the discharge from the second capacitor C2 via the switch SW11 ′ is also prevented. In this configuration, the switch SW31 ′ is configured as a P-channel MOSFET, the source is connected to one end of the capacitor C2 and the drain of the switch SW10 ′, and the drain is on the positive side of the second comparison circuit 13. Connected to the input terminal. Further, the gate of the switch SW 31 ′ is connected to the output terminal of the output signal φ 1 ′ in the control unit 3. Further, the switch SW32 ′ is configured as an N-channel MOSFET, the drain is connected to one end of the capacitor C2 and the drain of the switch SW10 ′, and the source is connected to the positive input terminal of the second comparison circuit 13. Has been. The gate of the switch SW 32 ′ is connected to the output terminal of the output signal φ 2 ′ in the control unit 3. Accordingly, since the H level signal is input to the switch SW31 ′ and the L level signal is input to the switch SW32 ′ during the predetermined period, the switches SW31 ′ and SW32 ′ are turned off, and the second capacitor C2 and the second capacitor C2 The energization state with the 2 comparison circuit 13 is also cut off. The switch SW4 ′ is configured as an N-channel MOSFET, and the drain is connected between the switches (switches SW31 ′ and SW32 ′) and the positive input terminal of the second comparison circuit 13, and the source Is connected to the ground, and the gate of the switch SW4 ′ is connected to the output terminal of the output signal φ1 ′ in the control unit 3. Therefore, since the H level signal is input to the gate of the switch SW4 'during the predetermined period and is turned on, the input on the positive side of the second comparison circuit 13 is fixed at the ground level, thereby preventing malfunction.

一方、上記一定期間の間は、スイッチSW21’,SW22’はオン状態となり、スイッチSW21、SW22はオフ状態で維持されるため、AD変換器7の一方側には第2コンデンサC2の充電停止時点での充電電圧V2が入力される。この充電停止時点での充電電圧は、基本動作時に第2コンデンサC2が充電対象から放電対象に切り替えられた時点での充電電圧(即ち、第2コンデンサC2が充電対象となっていた状態から充電電圧V2が閾値Vstd_compを超えたことにより第2比較回路13からHレベル信号が出力され、出力信号QBがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、第2コンデンサC2の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V2と基準電圧Vstdとの差電圧のデジタルデータが生成される。なお、このデジタルデータは、補正コード2として後述する平均部26に入力される。   On the other hand, since the switches SW21 ′ and SW22 ′ are in the on state and the switches SW21 and SW22 are maintained in the off state during the predetermined period, the charging of the second capacitor C2 is stopped at one side of the AD converter 7. The charging voltage V2 at is input. The charging voltage at the time of stopping the charging is the charging voltage at the time when the second capacitor C2 is switched from the charging target to the discharging target during the basic operation (that is, the charging voltage from the state where the second capacitor C2 was the charging target). When V2 exceeds the threshold value Vstd_comp, an H level signal is output from the second comparison circuit 13, and this corresponds to the charging voltage at the time of switching when the output signal QB is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of a difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the charging of the second capacitor C2 is stopped (when it is switched to the discharge target). This digital data is input as the correction code 2 to the averaging unit 26 described later.

このように、第2コンデンサC2の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V2と基準電圧Vstdとの差電圧のデジタルデータが生成した後には、上記出力信号φ1’をLレベルに戻し、出力信号φ2’をHレベルに戻す。そして、フリップフロップ回路9からの出力信号Qの立ち上がりのタイミング(図6の時間T4)で出力信号φ1、φ2を反転し、出力信号φ1をHレベルに設定し、出力信号φ2をLレベルに設定した状態を一定時間維持する。これにより、第1実施形態での補正コードを生成した方法と同様の方法で補正コード1が生成される。即ち、この一定時間の間は、出力信号Qの立ち上がりからスイッチSW10がオフ状態となっているため充電が阻止され、スイッチSW11がオフ状態となるため、第1コンデンサC1からのスイッチSW11を介した放電も阻止される。また、上記一定期間の間は、スイッチSW31のゲートにHレベル信号が入力され、スイッチSW32のゲートにLレベル信号が入力されるため、スイッチSW31、SW32がオフ状態となり、第1コンデンサC1と第1比較回路11との通電状態も遮断される。また、上記一定期間は、スイッチSW4のゲートにHレベル信号が入力されてオン状態となるため、第1比較回路11の正側の入力はグランドレベルに固定され、誤動作防止が図られる。   Thus, after the digital data of the difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the charging of the second capacitor C2 is stopped (the time when the second capacitor C2 is switched to the discharge target) is generated, the output signal φ1 ′ is The output signal φ2 ′ is returned to the H level by returning to the L level. Then, the output signals φ1 and φ2 are inverted at the rising timing of the output signal Q from the flip-flop circuit 9 (time T4 in FIG. 6), the output signal φ1 is set to H level, and the output signal φ2 is set to L level. Maintain the state for a certain period of time. Thereby, the correction code 1 is generated by the same method as the method of generating the correction code in the first embodiment. That is, since the switch SW10 is in an off state from the rising edge of the output signal Q during this fixed time, charging is blocked and the switch SW11 is in an off state, so that the switch SW11 from the first capacitor C1 passes through the switch SW11. Discharge is also prevented. Further, since the H level signal is input to the gate of the switch SW31 and the L level signal is input to the gate of the switch SW32 during the predetermined period, the switches SW31 and SW32 are turned off, and the first capacitor C1 and the first capacitor C1 are connected. The energization state with the 1 comparison circuit 11 is also cut off. Further, since the H level signal is input to the gate of the switch SW4 during the predetermined period, the positive side input of the first comparison circuit 11 is fixed to the ground level, thereby preventing malfunction.

一方、スイッチSW21,SW22はオン状態となるため、AD変換器7の一方側には第1コンデンサC1の充電停止時点での充電電圧V1が入力される。この充電停止時点での充電電圧は、基本動作時に第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧V1(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより第1比較回路11からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、コンデンサC1の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータが生成され、このデジタルデータが補正コード1として後述する平均部26に入力される。   On the other hand, since the switches SW21 and SW22 are turned on, the charging voltage V1 when the charging of the first capacitor C1 is stopped is input to one side of the AD converter 7. The charging voltage at the time of stopping charging is the charging voltage V1 when the first capacitor C1 is switched from the charging target to the discharging target during the basic operation (that is, charging from the state where the first capacitor C1 was the charging target). When the voltage V1 exceeds the threshold value Vstd_comp, an H level signal is output from the first comparison circuit 11, and this corresponds to the charging voltage at the time when the output signal Q is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of the difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the charging of the capacitor C1 is stopped (when the capacitor C1 is switched to the discharge target), and the digital data is corrected. The code 1 is input to the averaging unit 26 described later.

そして、本構成では、上記のように平均部26に入力された補正コード1(第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧V1と基準電圧Vstdとの差電圧)及び補正コード2(第2コンデンサC2が充電対象から放電対象に切り替えられた時点での充電電圧V2と基準電圧Vstdとの差電圧)の平均値を求め、これを「補正コード」として記憶部27で保持する。   In this configuration, the correction code 1 input to the averaging unit 26 as described above (the difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the first capacitor C1 is switched from the charging target to the discharging target). And the average value of the correction code 2 (the difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the second capacitor C2 is switched from the charging target to the discharging target) is obtained, and this is stored as a “correction code” in the storage unit 27. Hold on.

なお、補正コードを記憶部27で保持してからの補正方法(閾値設定回路20での閾値Vstd_compの生成方法)は、第1実施形態と同様である。即ち、閾値設定回路20(基準電圧生成部)は、上記自己補正モードで測定されるAD変換値(補正コード1、補正コード2)の平均値「(V1+V2)/2−Vstd」を最終的な補正コードとして入力して記憶部23で保持すると共に当該補正コードをデコーダ25にてデコードする。そして、そのデコード結果に応じてスイッチY1〜Ynを動作させ、上記補正コードに基づいて補正された電圧を閾値Vstd_compとして出力する。   The correction method after the correction code is stored in the storage unit 27 (the method for generating the threshold value Vstd_comp in the threshold setting circuit 20) is the same as that in the first embodiment. That is, the threshold setting circuit 20 (reference voltage generation unit) finally calculates the average value “(V1 + V2) / 2−Vstd” of the AD conversion values (correction code 1, correction code 2) measured in the self-correction mode. The correction code is input and held in the storage unit 23, and the correction code is decoded by the decoder 25. Then, the switches Y1 to Yn are operated according to the decoding result, and the voltage corrected based on the correction code is output as the threshold value Vstd_comp.

具体的には、上記自己補正モードで測定されるAD変換値(補正コード1、2)の平均値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも大きいとき、即ち、(V1+V2)/2>Vtypのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも小さいとき、即ち、(V1+V2)/2<Vtypのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図6の例では、時間T3〜T5の間で自己補正動作を行い、AD変換値の平均値「(V1+V2)/2−Vstd」を取得している。そして、AD変換値の平均値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも大きいケースであるため、時間T5から所定時間後のタイミングで、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。なお、Vtypは、所定の代表電圧の一例に相当するものであり、第1実施形態と同様の方法で同様に設定されてもよく、発振回路1の装置温度が代表的な特定温度のときに上記自己補正モードを行った場合の、充電停止時点での第1コンデンサC1の充電電圧V1と充電停止時点での第2コンデンサC2の充電電圧V2との平均値であってもよい。   Specifically, when the average value “(V1 + V2) / 2−Vstd” of the AD conversion values (correction codes 1 and 2) measured in the self-correction mode is larger than the reference difference voltage “Vtyp−Vstd”. That is, when (V1 + V2) / 2> Vtyp, the threshold Vstd_comp is corrected to a value lower than the value (reference value) in the typical state, and the oscillation frequency is adjusted to match the oscillation frequency in the typical state. Make it high. Conversely, when the AD conversion value “(V1 + V2) / 2−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “Vtyp−Vstd”, that is, (V1 + V2) / 2 <Vtyp. Corrects the threshold value Vstd_comp to be higher than the value (reference value) in the typical state, and lowers the oscillation frequency to match the oscillation frequency in the typical state. For example, in the example of FIG. 6, the self-correction operation is performed between times T3 and T5, and the average value “(V1 + V2) / 2−Vstd” of the AD conversion values is acquired. Since the average value “(V1 + V2) / 2−Vstd” of the AD conversion values is larger than the reference difference voltage “Vtyp−Vstd”, the threshold value Vstd_comp is typically set at a timing after a predetermined time from time T5. Correction is made to be lower than the value at the state (reference value), and the oscillation frequency is increased to match the oscillation frequency in the typical state. Note that Vtyp corresponds to an example of a predetermined representative voltage, and may be set in the same manner as in the first embodiment. When the device temperature of the oscillation circuit 1 is a representative specific temperature, An average value of the charging voltage V1 of the first capacitor C1 at the time of stopping charging and the charging voltage V2 of the second capacitor C2 at the time of stopping charging when the self-correction mode is performed may be used.

以上のように、本構成でも、閾値設定回路20は、第1比較回路11での比較基準となる閾値(第1閾値)及び第2比較回路13での比較基準となる閾値(第2閾値)を同一値として設定するように構成されている。そして、補正部4は、自己補正モードにおいて、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期(図6の時間T4)に当該第1コンデンサC1の充電電圧V1を検出し、第2コンデンサC2が放電対象に切り替えられた時期(図6の時間T3)に当該第2コンデンサC2の充電電圧V2を検出している。更に、それら検出された第1コンデンサC1の充電電圧V1及び第2コンデンサC2の充電電圧V2を反映した統計値(具体的には平均値)が所定の代表電圧Vtypを超える場合には、所定状態(上記typical状態)のときの発振周波数に合わせるように閾値Vstd_compを低くする補正データを生成し、統計値(平均値)が代表電圧Vtyp未満の場合には、所定状態(上記typical状態)のときの発振周波数に合わせるように閾値Vstd_compを高くする補正データを生成している。   As described above, also in this configuration, the threshold setting circuit 20 is configured such that the threshold serving as the comparison reference in the first comparison circuit 11 (first threshold) and the threshold serving as the comparison reference in the second comparison circuit 13 (second threshold). Are set as the same value. And the correction | amendment part 4 detects the charge voltage V1 of the said 1st capacitor | condenser C1 in the time (time T4 of FIG. 6) when the 1st capacitor | condenser C1 was switched to discharge object by the switching control circuit 8 in self correction | amendment mode, The charging voltage V2 of the second capacitor C2 is detected at the time when the second capacitor C2 is switched to the discharge target (time T3 in FIG. 6). Further, when the statistical values (specifically, average values) reflecting the detected charging voltage V1 of the first capacitor C1 and the charging voltage V2 of the second capacitor C2 exceed the predetermined representative voltage Vtyp, the predetermined state Correction data for lowering the threshold value Vstd_comp so as to match the oscillation frequency in the above (typical state) is generated, and when the statistical value (average value) is less than the representative voltage Vtyp, in the predetermined state (the above typical state) Correction data for increasing the threshold value Vstd_comp so as to match the oscillation frequency is generated.

第2実施形態の構成でも第1実施形態と同様の効果を奏することができ、この第2実施形態の構成でも各比較回路に用いる閾値を共通化することができるため、演算処理の簡素化を図ることができる。更に、両コンデンサの充電電圧V1、V2を別々に検出し、それら充電電圧V1、V2を反映した形、即ち、両比較回路の両遅延時間を反映した形で補正データを生成することができるため、両比較回路の遅延状態に差がある場合でもより適正に補正することができる。   The configuration of the second embodiment can achieve the same effects as the first embodiment, and the configuration of the second embodiment can also share the threshold value used for each comparison circuit, thus simplifying the arithmetic processing. Can be planned. Furthermore, since the charging voltages V1 and V2 of both capacitors can be detected separately, the correction data can be generated in a form reflecting these charging voltages V1 and V2, that is, reflecting both delay times of both comparison circuits. Even when there is a difference between the delay states of the two comparison circuits, it can be corrected more appropriately.

[第3実施形態]
次に、図7〜図9を参照し、第3実施形態について説明する。
第3実施形態は、閾値設定回路20の構成のみが第2実施形態と異なり、それ以外は第2実施形態と同様である。よって閾値設定回路20以外の部分については、第2実施形態と同一の符号を付し、詳細な説明は省略する。
[Third Embodiment]
Next, a third embodiment will be described with reference to FIGS.
The third embodiment differs from the second embodiment only in the configuration of the threshold setting circuit 20, and is otherwise the same as the second embodiment. Therefore, portions other than the threshold setting circuit 20 are denoted by the same reference numerals as those in the second embodiment, and detailed description thereof is omitted.

本実施形態では、図7、図8のように、閾値設定回路20が、第1閾値Vstd_comp1及び第2閾値Vstd_comp2を別々に設定可能とされており、第1比較回路11は、第1コンデンサC1の充電電圧V1が第1閾値Vstd_comp1に達しているときにHレベル信号(第2信号)を出力し、充電電圧V1が第1閾値Vstd_comp1未満のときにはLレベル信号(第1信号)を出力するようになっている。また、第2比較回路13は、第2コンデンサC2の充電電圧V2が第2閾値Vstd_comp2に達しているときにHレベル信号(第4信号)を出力し、充電電圧V2が第2閾値Vstd_comp2未満のときにはLレベル信号(第3信号)を出力するようになっている。   In the present embodiment, as shown in FIGS. 7 and 8, the threshold setting circuit 20 can set the first threshold Vstd_comp1 and the second threshold Vstd_comp2 separately, and the first comparison circuit 11 includes the first capacitor C1. An H level signal (second signal) is output when the charging voltage V1 of the current voltage reaches the first threshold value Vstd_comp1, and an L level signal (first signal) is output when the charging voltage V1 is less than the first threshold value Vstd_comp1. It has become. The second comparison circuit 13 outputs an H level signal (fourth signal) when the charging voltage V2 of the second capacitor C2 reaches the second threshold value Vstd_comp2, and the charging voltage V2 is less than the second threshold value Vstd_comp2. Sometimes an L level signal (third signal) is output.

本実施形態に係る発振回路1でも、基本動作時の発振動作は第1、第2実施形態と同様であり、切替制御回路8は、第1比較回路11からHレベル信号(第2信号)が出力されたときに第1コンデンサC1を充電対象から放電対象に切り替える制御を行い、第2比較回路13からHレベル信号(第4信号)が出力されたときに第2コンデンサC2を充電対象から放電対象に切り替える制御を行っている。また、基本動作時には、制御部3から、Lレベルの信号φ1、Hレベルの信号φ2、Lレベルの信号φ1’、Hレベルの信号φ2’が出力されるため、スイッチSW21、SW22、SW21’、SW22’、SW4、SW4’はいずれもオフ状態となり、SW11、SW11’、スイッチSW31、SW32、SW31’、SW32’はいずれもオン状態となる。   Also in the oscillation circuit 1 according to the present embodiment, the oscillation operation during the basic operation is the same as in the first and second embodiments, and the switching control circuit 8 receives an H level signal (second signal) from the first comparison circuit 11. When it is output, control is performed to switch the first capacitor C1 from the charging target to the discharging target, and when the H level signal (fourth signal) is output from the second comparison circuit 13, the second capacitor C2 is discharged from the charging target. Control to switch to the target. In the basic operation, since the control unit 3 outputs the L level signal φ1, the H level signal φ2, the L level signal φ1 ′, and the H level signal φ2 ′, the switches SW21, SW22, SW21 ′, SW22 ′, SW4, and SW4 ′ are all turned off, and SW11, SW11 ′, and the switches SW31, SW32, SW31 ′, and SW32 ′ are all turned on.

そして、本実施形態でも、制御部3が定期的に或いは所定条件成立時に基本動作を行うモードから自己補正動作を行うモード(自己補正モード)に切り替わる。この自己補正モードでの補正コード1、2の生成方法は第2実施形態と同様である。即ち、自己補正動作を行うモードに切り替わった場合、図9の時間T3のときのように、制御部3は、フリップフロップ回路9からの出力信号Qの立ち下がりのタイミングで出力信号φ1’、φ2’を反転し、出力信号φ1’をHレベルに設定し、出力信号φ2’をLレベルに設定した状態を一定時間維持する。これにより、AD変換器7は、第2コンデンサC2の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V2と基準電圧Vstdとの差電圧のデジタルデータ(補正コード2)を第2実施形態と同様の方法で生成、出力する。   Also in the present embodiment, the control unit 3 switches from the mode in which the basic operation is performed periodically or when a predetermined condition is satisfied to the mode in which the self-correction operation is performed (self-correction mode). The generation method of the correction codes 1 and 2 in this self-correction mode is the same as that in the second embodiment. That is, when the mode is switched to the mode for performing the self-correction operation, the control unit 3 outputs the output signals φ1 ′ and φ2 at the falling timing of the output signal Q from the flip-flop circuit 9, as at time T3 in FIG. 'Is inverted, the output signal φ1' is set to the H level, and the state where the output signal φ2 'is set to the L level is maintained for a certain time. As a result, the AD converter 7 obtains the digital data (correction code 2) of the difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the charging of the second capacitor C2 is stopped (when it is switched to the discharge target). Generate and output in the same way as in the second embodiment.

また、このように補正コード2を生成した後には、上記出力信号φ1’をLレベルに戻し、出力信号φ2’をHレベルに戻す。そして、フリップフロップ回路9からの出力信号Qの立ち上がりのタイミング(図9の時間T4)で出力信号φ1、φ2を反転し、出力信号φ1をHレベルに設定し、出力信号φ2をLレベルに設定した状態を一定時間維持する。これにより、AD変換器7は、第2実施形態と同様の方法で補正コード1(第1コンデンサC1の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータ)を生成、出力する。   After generating the correction code 2 in this way, the output signal φ1 'is returned to the L level, and the output signal φ2' is returned to the H level. Then, the output signals φ1 and φ2 are inverted at the rising timing of the output signal Q from the flip-flop circuit 9 (time T4 in FIG. 9), the output signal φ1 is set to H level, and the output signal φ2 is set to L level. Maintain the state for a certain period of time. As a result, the AD converter 7 uses the same method as in the second embodiment to calculate the correction code 1 (the charging voltage V1 and the reference voltage Vstd at the time when the charging of the first capacitor C1 is stopped) Digital data of the difference voltage of

次に、閾値設定回路20での閾値設定方法について説明する。
閾値設定回路20では、上記自己補正モードで測定される各AD変換値(「V1−Vstd」(補正コード1)、「V2−Vstd」(補正コード2))に基づいて第1閾値Vstd_comp1、第2閾値Vstd_comp2を設定する。
Next, a threshold setting method in the threshold setting circuit 20 will be described.
In the threshold value setting circuit 20, the first threshold value Vstd_comp1, the first threshold value Vstd_comp1, and the second threshold value are calculated based on the AD conversion values (“V1-Vstd” (correction code 1), “V2-Vstd” (correction code 2)) measured in the self-correction mode. 2 The threshold value Vstd_comp2 is set.

「V1−Vstd」(補正コード1)に基づいて第1閾値を設定する方法は第1実施形態での閾値設定方法と同様であり、「V1−Vstd」(補正コード1)が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typのときは、上記自己補正モードで測定されるAD変換値「V1−Vstd」(補正コード1)を入力して記憶部23で保持すると共に当該補正コード1をデコーダ25にてデコードする。そして、そのデコード結果に応じてスイッチY1〜Ynを動作させ、上記補正コードに基づいて補正された電圧を第1閾値Vstd_comp1として出力する。   The method of setting the first threshold value based on “V1−Vstd” (correction code 1) is the same as the threshold value setting method in the first embodiment, and “V1−Vstd” (correction code 1) is a reference difference. When the voltage is higher than “V1typ−Vstd”, that is, when V1> V1typ, the AD conversion value “V1−Vstd” (correction code 1) measured in the self-correction mode is input and held in the storage unit 23. At the same time, the correction code 1 is decoded by the decoder 25. Then, the switches Y1 to Yn are operated according to the decoding result, and the voltage corrected based on the correction code is output as the first threshold value Vstd_comp1.

具体的には、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typのときは、第1閾値Vstd_comp1をtypical状態のときの値(即ち、発振回路1の装置温度が代表的な特定温度のときの第1閾値Vstd_comp(第1基準値))よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも小さいとき、即ち、V1<V1typのときは、第1閾値Vstd_comp1をtypical状態のときの値(第1基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図9の例では、時間T3〜T5の間で自己補正動作を行い、AD変換器7にてAD変換値「V1−Vstd」を取得している。そして、AD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいケースであるため、時間T4から所定時間後のタイミングで、第1閾値Vstd_comp1をtypical状態のときの値(第1基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。なお、V1typは、所定の代表電圧の一例に相当するものであり、第1実施形態のV1typと同様の方法で同様に設定することができる。例えば、発振回路1の装置温度が代表的な特定温度のときに上記自己補正モードを行った場合の、充電停止時点(図9のT4の時点)での第1コンデンサC1の充電電圧V1を代表電圧V1typとすればよい。   Specifically, when the AD conversion value “V1−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V1typ−Vstd”, that is, when V1> V1typ, the first threshold value Vstd_comp1. Is corrected to a value lower than the value in the typical state (that is, the first threshold value Vstd_comp (first reference value) when the device temperature of the oscillation circuit 1 is a typical specific temperature). Raise the oscillation frequency to match the oscillation frequency. Conversely, when the AD conversion value “V1−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “V1typ−Vstd”, that is, when V1 <V1typ, the first threshold value Vstd_comp1 is typically set. Correction is made to be higher than the value in the state (first reference value), and the oscillation frequency is lowered to match the oscillation frequency in the typical state. For example, in the example of FIG. 9, the self-correction operation is performed between times T <b> 3 and T <b> 5, and the AD conversion value “V1−Vstd” is acquired by the AD converter 7. Since the AD conversion value “V1−Vstd” is larger than the reference difference voltage “V1typ−Vstd”, the value when the first threshold value Vstd_comp1 is in the typical state at a timing after a predetermined time from the time T4. The oscillation frequency is corrected to be lower than (first reference value), and the oscillation frequency is increased so as to match the oscillation frequency in the typical state. Note that V1typ corresponds to an example of a predetermined representative voltage, and can be set similarly by the same method as V1typ in the first embodiment. For example, when the self-correction mode is performed when the device temperature of the oscillation circuit 1 is a typical specific temperature, the charging voltage V1 of the first capacitor C1 at the time of charging stop (time T4 in FIG. 9) is representative. The voltage may be V1typ.

「V2−Vstd」(補正コード2)に基づいて第2閾値Vstd_comp2を設定する方法も、第1閾値の設定と基本的に同様であり、「V2−Vstd」(補正コード2)が基準となる差電圧「V2typ−Vstd」よりも大きいとき、即ち、V2>V2typのときは、上記自己補正モードで測定されるAD変換値「V2−Vstd」(補正コード2)を入力して記憶部27で保持すると共に当該補正コード2をデコーダ29にてデコードする。そして、そのデコード結果に応じてスイッチZ1〜Znを動作させ、上記補正コード2に基づいて補正された電圧を第2閾値Vstd_comp2として出力する。   The method of setting the second threshold value Vstd_comp2 based on “V2-Vstd” (correction code 2) is basically the same as the setting of the first threshold value, and “V2-Vstd” (correction code 2) is the reference. When the difference voltage is larger than “V2typ−Vstd”, that is, when V2> V2typ, the AD conversion value “V2−Vstd” (correction code 2) measured in the self-correction mode is input and the storage unit 27 At the same time, the correction code 2 is decoded by the decoder 29. Then, the switches Z1 to Zn are operated according to the decoding result, and the voltage corrected based on the correction code 2 is output as the second threshold value Vstd_comp2.

具体的には、上記自己補正モードで測定されるAD変換値「V2−Vstd」が基準となる差電圧「V2typ−Vstd」よりも大きいとき、即ち、V2>V2typのときは、第2閾値Vstd_comp2をtypical状態のときの値(即ち、発振回路1の装置温度が代表的な特定温度のときの第2閾値Vstd_comp(第2基準値))よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「V2−Vstd」が基準となる差電圧「V2typ−Vstd」よりも小さいとき、即ち、V2<V2typのときは、第2閾値Vstd_comp2をtypical状態のときの値(第2基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図9の例では、時間T3〜T5の間で自己補正動作を行い、AD変換器7にてAD変換値「V2−Vstd」を取得している。そして、AD変換値「V2−Vstd」が基準となる差電圧「V2typ−Vstd」よりも大きいケースであるため、時間T5から所定時間後のタイミングで、第2閾値Vstd_comp2をtypical状態のときの値(第2基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。なお、V2typは、第2代表電圧の一例に相当するものであり、上記代表電圧V1typと同じ値としてもよく、同様の方法で同様に設定してもよい。例えば、発振回路1の装置温度が代表的な特定温度のときに上記自己補正モードを行った場合の、充電停止時点(図9のT3の時点)での第2コンデンサC2の充電電圧V2を第2代表電圧V2typとすればよい。   Specifically, when the AD conversion value “V2−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V2typ−Vstd”, that is, when V2> V2typ, the second threshold value Vstd_comp2 Is corrected to a value lower than the value in the typical state (that is, the second threshold value Vstd_comp (second reference value) when the device temperature of the oscillation circuit 1 is a typical specific temperature). Raise the oscillation frequency to match the oscillation frequency. Conversely, when the AD conversion value “V2−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “V2typ−Vstd”, that is, when V2 <V2typ, the second threshold value Vstd_comp2 is typically set. Correction is made to be higher than the value in the state (second reference value), and the oscillation frequency is lowered to match the oscillation frequency in the typical state. For example, in the example of FIG. 9, the self-correction operation is performed between times T <b> 3 and T <b> 5, and the AD converter 7 acquires the AD conversion value “V2−Vstd”. Since the AD conversion value “V2−Vstd” is larger than the reference difference voltage “V2typ−Vstd”, the second threshold value Vstd_comp2 is a value obtained when the second threshold value Vstd_comp2 is in the typical state at a timing after a predetermined time from the time T5. Correction is made to be lower than (second reference value), and the oscillation frequency is increased to match the oscillation frequency in the typical state. Note that V2typ corresponds to an example of the second representative voltage, and may be the same value as the representative voltage V1typ, or may be set in a similar manner. For example, when the self-correction mode is performed when the device temperature of the oscillation circuit 1 is a typical specific temperature, the charging voltage V2 of the second capacitor C2 at the charging stop time (time T3 in FIG. 9) is Two representative voltage V2 typ may be used.

以上のように、補正部4は、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期に当該第1コンデンサC1の充電電圧V1を検出し、検出された当該第1コンデンサC1の充電電圧V1が所定の代表電圧V1typを超える場合には、第1基準値(typical状態のときに設定される第1閾値)よりも第1閾値を低くする第1補正データ(補正コード1)を生成し、検出された当該第1コンデンサC1の充電電圧V1が代表電圧V1typ未満の場合には、第1基準値(typical状態のときに設定される第1閾値)よりも第1閾値を高くする第1補正データ(補正コード1)を生成している。また、切替制御回路8によって第2コンデンサC2が放電対象に切り替えられた時期に当該第2コンデンサC2の充電電圧V2を検出し、検出された当該第2コンデンサC2の充電電圧V2が代表電圧V1typと同一又は異なる第2代表電圧V2typを超える場合には、第2基準値(typical状態のときに設定される第2閾値)よりも第2閾値を低くする第2補正データ(補正コード2)を生成し、検出された当該第2コンデンサC2の充電電圧V2が第2代表電圧V2typ未満の場合には、第2基準値(typical状態のときに設定される第2閾値)よりも第2閾値を高くする第2補正データ(補正コード2)を生成している。   As described above, the correction unit 4 detects the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target by the switching control circuit 8, and the detected first capacitor C1 is detected. When the charging voltage V1 exceeds a predetermined representative voltage V1typ, the first correction data (correction code 1) for making the first threshold value lower than the first reference value (first threshold value set in the typical state) When the generated and detected charging voltage V1 of the first capacitor C1 is less than the representative voltage V1typ, the first threshold value is set higher than the first reference value (the first threshold value set in the typical state). First correction data (correction code 1) is generated. Further, the charging voltage V2 of the second capacitor C2 is detected at the time when the second capacitor C2 is switched to the discharge target by the switching control circuit 8, and the detected charging voltage V2 of the second capacitor C2 becomes the representative voltage V1typ. When the same or different second representative voltage V2typ is exceeded, second correction data (correction code 2) that makes the second threshold value lower than the second reference value (second threshold value set in the typical state) is generated. When the detected charging voltage V2 of the second capacitor C2 is less than the second representative voltage V2typ, the second threshold value is set higher than the second reference value (second threshold value set in the typical state). Second correction data (correction code 2) to be generated is generated.

本実施形態に係る構成でも、第1実施形態と同様の効果を奏することができる。また、本実施形態の構成では、第1コンデンサC1及び第2コンデンサC2のそれぞれの放電開始時の充電電圧V1、V2を取得することができ、これら各充電電圧V1、V2はそれぞれの比較回路の遅延時間を別々に反映したものといえるため、各比較回路の遅延時間を個別に把握することが可能となる。そして、このような各充電電圧V1、V2に基づいて、各比較回路を補正するための各補正データ(第1補正データに相当する補正コード1、及び第2補正データに相当する補正コード2)を個別に生成することができるため、両比較回路の遅延状態に差があってもより適切な補正が可能となる。   The configuration according to the present embodiment can achieve the same effects as those of the first embodiment. Further, in the configuration of the present embodiment, the charging voltages V1 and V2 at the start of discharging of the first capacitor C1 and the second capacitor C2 can be acquired, and these charging voltages V1 and V2 are obtained from the respective comparison circuits. Since it can be said that the delay time is reflected separately, the delay time of each comparison circuit can be grasped individually. And each correction data for correcting each comparison circuit based on each such charging voltage V1, V2 (correction code 1 corresponding to the first correction data and correction code 2 corresponding to the second correction data) Therefore, even if there is a difference between the delay states of both comparison circuits, more appropriate correction can be performed.

[第4実施形態]
次に、第4実施形態について説明する。
図11に示す発振回路1も、例えば半導体集積回路内において発振信号を生成、出力するように設けられるものであり、主として、制御部3、補正部4、記憶装置5、切替制御回路8、比較回路41、定電流源15、閾値設定回路20、第1コンデンサC1、第2コンデンサC2、その他のスイッチなどによって構成されている。
[Fourth embodiment]
Next, a fourth embodiment will be described.
The oscillation circuit 1 shown in FIG. 11 is also provided, for example, so as to generate and output an oscillation signal in a semiconductor integrated circuit, and mainly includes a control unit 3, a correction unit 4, a storage device 5, a switching control circuit 8, and a comparison circuit. The circuit 41, the constant current source 15, the threshold setting circuit 20, the first capacitor C1, the second capacitor C2, and other switches are included.

制御部3は、後述する出力信号Qがトリガ信号として入力されるようになっており、所定タイミング(後述する出力信号Qの立ち上がりタイミング)で制御信号φ1、φ2を一定期間出力しうるように構成されている。この制御部3は、通常モード(基本動作を行うモード)では、出力信号φ1がLレベルで維持され、出力信号φ2がHレベルで維持される。一方、自己補正動作を行うモードでは、出力信号Qの立ち上がりをトリガとして出力信号φ1を一定時間Hレベルで維持し且つ出力信号φ2を一定時間Lレベルで維持する。なお、この制御部3は、マイコンなどの公知の制御回路によって構成されていてもよく、出力信号Qの立ち上がりをトリガとして一定時間Hレベルの出力信号φ1及びLレベルの出力信号φ2を出力し得る構成であれば他の回路でもよい。なお、制御部3での通常モードから自己補正動作を行うモードへの切り替えは、定期的に行われてもよく、所定条件が成立したときに行われてもよい。   The control unit 3 is configured such that an output signal Q, which will be described later, is input as a trigger signal, and can output the control signals φ1, φ2 for a predetermined period at a predetermined timing (a rising timing of the output signal Q, which will be described later). Has been. In the normal mode (mode in which the basic operation is performed), the control unit 3 maintains the output signal φ1 at the L level and the output signal φ2 at the H level. On the other hand, in the mode in which the self-correction operation is performed, the output signal φ1 is maintained at the H level for a certain time and the output signal φ2 is maintained at the L level for a certain time using the rising edge of the output signal Q as a trigger. The control unit 3 may be configured by a known control circuit such as a microcomputer, and can output an H level output signal φ1 and an L level output signal φ2 for a certain period of time using a rise of the output signal Q as a trigger. Other circuits may be used as long as they are configured. Note that the switching from the normal mode to the mode for performing the self-correction operation in the control unit 3 may be performed periodically or when a predetermined condition is satisfied.

定電流源15は、第1実施形態と同様の構成をなしており、所定の定電流を出力する公知の定電流回路によって構成されており、第1コンデンサC1又は第2コンデンサC2に充電電流を供給するように機能する。   The constant current source 15 has the same configuration as that of the first embodiment, and is configured by a known constant current circuit that outputs a predetermined constant current, and supplies a charging current to the first capacitor C1 or the second capacitor C2. Functions to supply.

第1コンデンサC1及び第2コンデンサC2はいずれも定電流源15と導通可能に構成され、定電流源15から供給される定電流によって充電が行われるようになっている。第1コンデンサC1は、後述するスイッチSW10を介して定電流源15に接続されており、スイッチSW10がオン状態のとき且つスイッチSW11又はSW12がオフ状態のときに充電がなされ、スイッチSW10がオフ状態のとき且つスイッチSW11、SW12がオン状態のときに放電がなされる。第2コンデンサC2は、後述するスイッチSW10’を介して定電流源15に接続されており、第1コンデンサC1と並列接続されている。この第2コンデンサC2は、スイッチSW10’がオン状態のとき且つスイッチSW12’がオフ状態のときに充電がなされ、スイッチSW10’がオフ状態のとき且つスイッチSW12’がオン状態のときに放電がなされる。   The first capacitor C1 and the second capacitor C2 are both configured to be able to conduct with the constant current source 15, and are charged with a constant current supplied from the constant current source 15. The first capacitor C1 is connected to the constant current source 15 via a switch SW10, which will be described later, and is charged when the switch SW10 is on and when the switch SW11 or SW12 is off, and the switch SW10 is off. And when the switches SW11 and SW12 are in the ON state, the discharge is performed. The second capacitor C2 is connected to the constant current source 15 via a switch SW10 'described later, and is connected in parallel with the first capacitor C1. The second capacitor C2 is charged when the switch SW10 ′ is on and the switch SW12 ′ is off, and is discharged when the switch SW10 ′ is off and the switch SW12 ′ is on. The

切替制御回路8は、フリップフロップ回路9と、充放電切替部10a,10bと、入力切替部43と、出力切替部45と、遅延部47とを備えており、比較回路41から出力される信号に基づき、定電流源15からの充電対象を第1コンデンサC1及び第2コンデンサC2のいずれか一方とし、他方を放電対象とするように切り替えている。また、充電対象とされたコンデンサの充電電圧を比較回路41の入力電圧とするように切り替えている。即ち、定電流源15からの充電対象を第1コンデンサC1とするように切り替えた場合には、その充電対象とされた第1コンデンサC1の充電電圧V1を比較回路41の入力電圧とするように切り替え、定電流源15からの充電対象を第2コンデンサC2とするように切り替えた場合には、その充電対象とされた第2コンデンサC2の充電電圧V2を比較回路41の入力電圧とするように切り替えている。   The switching control circuit 8 includes a flip-flop circuit 9, charge / discharge switching units 10 a and 10 b, an input switching unit 43, an output switching unit 45, and a delay unit 47, and a signal output from the comparison circuit 41. Based on the above, the charging target from the constant current source 15 is switched to one of the first capacitor C1 and the second capacitor C2, and the other is switched to the discharging target. In addition, the charging voltage of the capacitor to be charged is switched to the input voltage of the comparison circuit 41. That is, when the charging target from the constant current source 15 is switched to the first capacitor C1, the charging voltage V1 of the first capacitor C1 that is the charging target is used as the input voltage of the comparison circuit 41. When the switching is performed such that the charging target from the constant current source 15 is the second capacitor C2, the charging voltage V2 of the second capacitor C2 that is the charging target is used as the input voltage of the comparison circuit 41. Switching.

フリップフロップ回路9は、第1実施形態と同様の構成をなし、公知のRSフリップフロップ回路として構成されており、出力切替部45からの第1出力信号VsetがS端子に入力され、出力切替部45からの第2出力信号VrstがR端子に入力されるようになっている。このフリップフロップ回路9は、S端子にHレベル信号が入力されR端子にLレベル信号が入力されたときにQ端子からHレベル信号を出力し、QB端子からLレベル信号を出力する。また、R端子にHレベル信号が入力され、S端子にLレベル信号が入力されたときにQ端子からLレベル信号を出力し、QB端子からHレベル信号を出力する。なお、S端子、R端子の入力が共にLレベルの場合にはそれまでの出力状態を保持するようになっており、S端子、R端子には同時にHレベル信号が入力されないようになっている。   The flip-flop circuit 9 has the same configuration as that of the first embodiment, and is configured as a known RS flip-flop circuit. The first output signal Vset from the output switching unit 45 is input to the S terminal, and the output switching unit The second output signal Vrst from 45 is input to the R terminal. The flip-flop circuit 9 outputs an H level signal from the Q terminal and an L level signal from the QB terminal when an H level signal is input to the S terminal and an L level signal is input to the R terminal. Further, when an H level signal is input to the R terminal and an L level signal is input to the S terminal, the L level signal is output from the Q terminal, and the H level signal is output from the QB terminal. When both the S terminal and R terminal inputs are at the L level, the output state up to that point is maintained, and the H level signal is not simultaneously input to the S terminal and the R terminal. .

充放電切替部10aは、第1実施形態の充放電切替部10aと同様の構成をなし、半導体スイッチ素子SW10、SW11、SW12とこれらに接続される接続ラインによって構成されている。スイッチSW10は、Pチャネル型のMOSFETとして構成されており、ソースが定電流源15の出力側に接続され、ドレインが第1コンデンサC1の一端側に接続されている。また、スイッチSW10のゲートは、フリップフロップ回路9のQ端子(出力端子)に接続されている。スイッチSW11は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW10のドレイン及び第1コンデンサC1の一端側に接続され、ソースがスイッチSW12のドレインに接続されている。また、スイッチSW11のゲートは、制御部3におけるφ2信号の出力端子に接続されている。スイッチSW12は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW11のソースに接続され、ソースがグランドに接続されている。また、スイッチSW12のゲートは、フリップフロップ回路9のQ端子(出力端子)に接続されている。   The charge / discharge switching unit 10a has the same configuration as that of the charge / discharge switching unit 10a of the first embodiment, and includes semiconductor switch elements SW10, SW11, SW12 and connection lines connected thereto. The switch SW10 is configured as a P-channel type MOSFET, the source is connected to the output side of the constant current source 15, and the drain is connected to one end side of the first capacitor C1. The gate of the switch SW10 is connected to the Q terminal (output terminal) of the flip-flop circuit 9. The switch SW11 is configured as an N-channel MOSFET, and has a drain connected to the drain of the switch SW10 and one end of the first capacitor C1, and a source connected to the drain of the switch SW12. The gate of the switch SW11 is connected to the output terminal of the φ2 signal in the control unit 3. The switch SW12 is configured as an N-channel MOSFET, and has a drain connected to the source of the switch SW11 and a source connected to the ground. The gate of the switch SW12 is connected to the Q terminal (output terminal) of the flip-flop circuit 9.

充放電切替部10bは、第1実施形態の充放電切替部10bと同様の構成をなし、充放電切替部10aと並列に接続され、半導体スイッチ素子SW10’、SW12’とこれらに接続される接続ラインによって構成されている。スイッチSW10’は、Pチャネル型のMOSFETとして構成されており、ソースが定電流源15の出力側に接続され、ドレインが第2コンデンサC2の一端側に接続されている。また、スイッチSW10’のゲートは、フリップフロップ回路9のQB端子に接続されている。スイッチSW12’は、Nチャネル型のMOSFETとして構成されており、ドレインがスイッチSW10’のドレイン及び第2コンデンサC2の一端側に接続され、ソースがグランドに接続されている。また、スイッチSW12’のゲートは、フリップフロップ回路9のQB端子に接続されている。   The charge / discharge switching unit 10b has the same configuration as the charge / discharge switching unit 10b of the first embodiment, is connected in parallel to the charge / discharge switching unit 10a, and is connected to the semiconductor switch elements SW10 ′ and SW12 ′. Consists of lines. The switch SW10 'is configured as a P-channel type MOSFET, the source is connected to the output side of the constant current source 15, and the drain is connected to one end side of the second capacitor C2. The gate of the switch SW10 'is connected to the QB terminal of the flip-flop circuit 9. The switch SW12 'is configured as an N-channel MOSFET, and has a drain connected to the drain of the switch SW10' and one end of the second capacitor C2, and a source connected to the ground. The gate of the switch SW12 'is connected to the QB terminal of the flip-flop circuit 9.

比較回路41は、公知のコンパレータとして構成されている。この比較回路41は、正側の入力端子が入力切替部43からの出力ライン43aに接続されており、入力切替部43のスイッチSW51、SW52がオン状態であり、且つスイッチSW51’、SW52’がオフ状態のときに、第1コンデンサC1の充電電圧V1を正側の入力信号として入力するように構成されている。また、入力切替部43のスイッチSW51’、SW52’がオン状態であり、且つスイッチSW51、SW52がオフ状態のときに、第2コンデンサC2の充電電圧V2を正側の入力信号として入力するように構成されている。   The comparison circuit 41 is configured as a known comparator. In the comparison circuit 41, the positive input terminal is connected to the output line 43a from the input switching unit 43, the switches SW51 and SW52 of the input switching unit 43 are on, and the switches SW51 ′ and SW52 ′ are switched on. In the OFF state, the charging voltage V1 of the first capacitor C1 is configured to be input as a positive input signal. Further, when the switches SW51 ′ and SW52 ′ of the input switching unit 43 are on and the switches SW51 and SW52 are off, the charging voltage V2 of the second capacitor C2 is input as a positive input signal. It is configured.

また、比較回路41の負側の入力端子には、閾値設定回路(基準電圧生成部)20で設定された閾値Vstd_compが入力されるようになっている。閾値Vstd_compは、比較回路41での比較基準となる「所定閾値」の一例に相当する。この比較回路41は、入力切替部43による切り替えに応じて第1コンデンサC1に充電された充電電圧V1又は第2コンデンサC2に充電された充電電圧V2のいずれかを入力電圧Vcomp_inとし、当該入力電圧Vcomp_inが所定閾値Vstd_comp未満である場合にLレベル信号(第1信号)を出力し、当該入力電圧Vcomp_inが所定閾値Vstd_comp以上である場合にHレベル信号(第2信号)を出力するように機能する。   Further, the threshold value Vstd_comp set by the threshold setting circuit (reference voltage generation unit) 20 is input to the negative input terminal of the comparison circuit 41. The threshold value Vstd_comp corresponds to an example of a “predetermined threshold value” that serves as a comparison reference in the comparison circuit 41. The comparison circuit 41 uses either the charging voltage V1 charged in the first capacitor C1 or the charging voltage V2 charged in the second capacitor C2 according to switching by the input switching unit 43 as the input voltage Vcomp_in, and the input voltage It functions to output an L level signal (first signal) when Vcomp_in is less than a predetermined threshold Vstd_comp, and to output an H level signal (second signal) when the input voltage Vcomp_in is equal to or higher than the predetermined threshold Vstd_comp. .

入力切替部43は、スイッチSW51、SW52の対と、スイッチSW51’、SW52’の対とを有している。スイッチSW51、SW52の対は、第1コンデンサC1と比較回路41との間をオンオフするスイッチとして機能するものであり、スイッチSW51は、Nチャネル型のMOSFETとして構成されており、ドレインが第1コンデンサC1の一端側及びスイッチSW10のドレインに接続され、ソースが比較回路41の正側の入力端子に接続されている。また、スイッチSW51のゲートは、フリップフロップ回路9のQB端子に接続されている。また、スイッチSW52は、Pチャネル型のMOSFETとして構成されており、ソースがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ドレインが比較回路41の正側の入力端子に接続されている。また、スイッチSW22のゲートは、フリップフロップ回路9のQ端子に接続されている。   The input switching unit 43 includes a pair of switches SW51 and SW52 and a pair of switches SW51 'and SW52'. The pair of switches SW51 and SW52 functions as a switch for turning on and off between the first capacitor C1 and the comparison circuit 41. The switch SW51 is configured as an N-channel type MOSFET, and the drain is the first capacitor. One end of C1 and the drain of the switch SW10 are connected, and the source is connected to the input terminal on the positive side of the comparison circuit 41. The gate of the switch SW51 is connected to the QB terminal of the flip-flop circuit 9. The switch SW52 is configured as a P-channel type MOSFET, and the source is connected to one end of the capacitor C1 and the drain of the switch SW10, and the drain is connected to the positive input terminal of the comparison circuit 41. The gate of the switch SW22 is connected to the Q terminal of the flip-flop circuit 9.

また、スイッチSW51’、SW52’の対は、第2コンデンサC2と比較回路41との間をオンオフするスイッチとして機能するものであり、スイッチSW51’は、Nチャネル型のMOSFETとして構成されており、ドレインが第2コンデンサC2の一端側及びスイッチSW10’のドレインに接続され、ソースが比較回路41の正側の入力端子に接続されている。また、スイッチSW51’のゲートは、フリップフロップ回路9のQ端子に接続されている。また、スイッチSW52’は、Pチャネル型のMOSFETとして構成されており、ソースが第2コンデンサC2の一端側及びスイッチSW10’のドレインに接続され、ドレインが比較回路41の正側の入力端子に接続されている。また、スイッチSW52’のゲートは、フリップフロップ回路9のQB端子に接続されている。   The pair of switches SW51 ′ and SW52 ′ functions as a switch for turning on and off between the second capacitor C2 and the comparison circuit 41. The switch SW51 ′ is configured as an N-channel MOSFET, The drain is connected to one end of the second capacitor C2 and the drain of the switch SW10 ′, and the source is connected to the positive input terminal of the comparison circuit 41. The gate of the switch SW51 'is connected to the Q terminal of the flip-flop circuit 9. The switch SW52 ′ is configured as a P-channel type MOSFET, the source is connected to one end of the second capacitor C2 and the drain of the switch SW10 ′, and the drain is connected to the positive input terminal of the comparison circuit 41. Has been. The gate of the switch SW52 'is connected to the QB terminal of the flip-flop circuit 9.

このように構成される入力切替部43では、フリップフロップ回路9のQ端子からの出力がLレベルであり且つQB端子からの出力がHレベルである場合に、スイッチSW51、SW52が共にオン状態となり且つスイッチSW51’、SW52’が共にオフ状態となり、このときに第1コンデンサC1の充電電圧V1が比較回路41の正側の入力電圧として入力される。また、フリップフロップ回路9のQ端子からの出力がHレベルであり且つQB端子からの出力がLレベルである場合に、スイッチSW51、SW52が共にオフ状態となり且つスイッチSW51’、SW52’が共にオン状態となり、このときに第2コンデンサC2の充電電圧V2が比較回路41の正側の入力電圧として入力される。   In the input switching unit 43 configured as described above, when the output from the Q terminal of the flip-flop circuit 9 is L level and the output from the QB terminal is H level, both the switches SW51 and SW52 are turned on. The switches SW51 ′ and SW52 ′ are both turned off, and at this time, the charging voltage V1 of the first capacitor C1 is input as the positive input voltage of the comparison circuit 41. When the output from the Q terminal of the flip-flop circuit 9 is at the H level and the output from the QB terminal is at the L level, both the switches SW51 and SW52 are turned off and both the switches SW51 ′ and SW52 ′ are turned on. At this time, the charging voltage V2 of the second capacitor C2 is input as the positive input voltage of the comparison circuit 41.

出力切替部45及び遅延部47は、充電対象となっている一方のコンデンサの充電電圧が所定閾値Vstd_comp以上になった場合に、充電対象を他方のコンデンサとするように切り替え、且つその切り替えタイミングよりも所定時間経過した後に、次回の充電対象の切り替えを許可するように機能している。   The output switching unit 45 and the delay unit 47 switch the charging target to be the other capacitor when the charging voltage of one capacitor to be charged is equal to or higher than a predetermined threshold Vstd_comp, and based on the switching timing. Also, after a predetermined time elapses, it functions to permit switching of the next charging target.

遅延部47は、例えば公知の遅延回路として構成されており、フリップフロップ回路9のQ端子からの出力信号を入力可能に構成されると共に、このQ端子からの出力信号を遅延させて出力するように構成されている。例えば、図12のように、Q端子からのパルス信号の周期よりも短い時間(より具体的にはQ端子からのパルス信号の半周期よりも短い時間であり、例えば1/4周期程度)だけ遅延させた遅延信号Q(Delay)を出力している。   The delay unit 47 is configured, for example, as a known delay circuit, is configured to be able to input an output signal from the Q terminal of the flip-flop circuit 9, and delays and outputs the output signal from the Q terminal. It is configured. For example, as shown in FIG. 12, only a time shorter than the cycle of the pulse signal from the Q terminal (more specifically, a time shorter than a half cycle of the pulse signal from the Q terminal, for example, about 1/4 cycle). The delayed delay signal Q (Delay) is output.

出力切替部45は、AND回路45a,45bと、NOT回路(インバータ)45cとを備えている。NOT回路(インバータ)45cは、入力側が遅延部47からの出力ラインに接続され、出力側がAND回路45aの第1入力端子に接続されている。また、遅延部47からの出力ラインは、AND回路45bの第1入力端子にも接続されている。そして、比較回路41からの出力ラインは、AND回路45a、45bの各第2入力端子に接続されている。このように構成される出力切替部45では、遅延部47からHレベル信号が出力されている場合には、AND回路45aからの出力はLレベルで維持され、比較回路41からの信号がAND回路45bからフリップフロップ回路9のR端子に出力される。つまり、遅延部47からHレベル信号が出力されている場合、フリップフロップ回路9のS端子にはLレベル信号が入力され、比較回路41からHレベル信号が出力されているときにR端子にHレベル信号が入力され、比較回路41からLレベル信号が出力されているときにR端子にLレベル信号が入力されることになる。逆に、遅延部47からLレベル信号が出力されている場合には、AND回路45bからの出力はLレベルで維持され、比較回路41からの信号がAND回路45aからフリップフロップ回路9のS端子に出力される。つまり、遅延部47からLレベル信号が出力されている場合、フリップフロップ回路9のR端子にはLレベル信号が入力され、比較回路41からHレベル信号が出力されているときにS端子にHレベル信号が入力され、比較回路41からLレベル信号が出力されているときにS端子にLレベル信号が入力されることになる。   The output switching unit 45 includes AND circuits 45a and 45b and a NOT circuit (inverter) 45c. The NOT circuit (inverter) 45c has an input side connected to the output line from the delay unit 47, and an output side connected to the first input terminal of the AND circuit 45a. The output line from the delay unit 47 is also connected to the first input terminal of the AND circuit 45b. The output line from the comparison circuit 41 is connected to the second input terminals of the AND circuits 45a and 45b. In the output switching unit 45 configured as described above, when the H level signal is output from the delay unit 47, the output from the AND circuit 45a is maintained at the L level, and the signal from the comparison circuit 41 is the AND circuit. 45b to the R terminal of the flip-flop circuit 9. That is, when an H level signal is output from the delay unit 47, an L level signal is input to the S terminal of the flip-flop circuit 9, and when an H level signal is output from the comparison circuit 41, an H level signal is output to the R terminal. When the level signal is input and the L level signal is output from the comparison circuit 41, the L level signal is input to the R terminal. On the other hand, when the L level signal is output from the delay unit 47, the output from the AND circuit 45b is maintained at the L level, and the signal from the comparison circuit 41 is transferred from the AND circuit 45a to the S terminal of the flip-flop circuit 9. Is output. That is, when the L level signal is output from the delay unit 47, the L level signal is input to the R terminal of the flip-flop circuit 9, and when the H level signal is output from the comparison circuit 41, When the level signal is input and the comparison circuit 41 outputs the L level signal, the L level signal is input to the S terminal.

補正部4は、第1実施形態の補正部4と同様の構成をなし且つ同様に機能するものであり、記憶装置5とAD変換器7によって構成されている。この補正部4は、比較回路41からの出力が第1信号(Lレベル信号)から第2信号(Hレベル信号)に切り替わったことに応じて切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期(即ち、スイッチSW10がオフ状態となり、スイッチSW12がオン状態となった時期)での当該第1コンデンサC1の充電電圧V1に基づいて、閾値設定回路20で設定される閾値の補正に用いる補正データを生成している。なお、ここでは、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期での当該第1コンデンサC1の充電電圧V1に基づいて、閾値設定回路20で設定される閾値の補正に用いる補正データを生成しているが、切替制御回路8によって第2コンデンサC2が放電対象に切り替えられた時期での当該第2コンデンサC2の充電電圧V2に基づいて、閾値設定回路20で設定される閾値の補正に用いる補正データを同様の方法で生成してもよい。   The correction unit 4 has the same configuration as the correction unit 4 of the first embodiment and functions in the same manner, and includes a storage device 5 and an AD converter 7. In the correction unit 4, the first capacitor C <b> 1 is discharged by the switching control circuit 8 in response to the output from the comparison circuit 41 being switched from the first signal (L level signal) to the second signal (H level signal). Correction of the threshold value set by the threshold value setting circuit 20 based on the charging voltage V1 of the first capacitor C1 at the time of switching (that is, the time when the switch SW10 is turned off and the switch SW12 is turned on). The correction data used for is generated. Here, based on the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target by the switching control circuit 8, it is used for correcting the threshold set by the threshold setting circuit 20. Although the correction data is generated, the threshold set by the threshold setting circuit 20 based on the charging voltage V2 of the second capacitor C2 at the time when the second capacitor C2 is switched to the discharge target by the switching control circuit 8 Correction data used for the correction may be generated by a similar method.

記憶装置5は、第1実施形態の記憶装置5と同様の構成をなし且つ同様に機能しており、閾値設定回路20での閾値設定の基準となる電圧を特定可能な情報(基準コード)が記憶されている。基準コードは、当該発振回路1の装置温度が代表的な特定温度(例えば20℃)のときに当該発振回路1が所望の発振周波数となるように基準電圧Vstdを設定するための値である。基準電圧Vstdを設定したときの自己補正モードでの第1コンデンサC1の放電開始時充電電圧V1は一意の代表電圧V1typとなる。この代表電圧V1typと基準電圧Vstdとの差電圧のデジタルデータを基準コードとなるように定義する。   The storage device 5 has the same configuration as the storage device 5 of the first embodiment and functions in the same manner. It is remembered. The reference code is a value for setting the reference voltage Vstd so that the oscillation circuit 1 has a desired oscillation frequency when the device temperature of the oscillation circuit 1 is a typical specific temperature (for example, 20 ° C.). The charging voltage V1 at the start of discharging the first capacitor C1 in the self-correction mode when the reference voltage Vstd is set becomes a unique representative voltage V1typ. The digital data of the difference voltage between the representative voltage V1typ and the reference voltage Vstd is defined to be a reference code.

AD変換器7は、第1実施形態のAD変換器7と同様の構成をなし且つ同様に機能している。このAD変換器7は、スイッチ(スイッチSW21、SW22)を介して第1コンデンサC1に接続されており、第1コンデンサC1の充電電圧V1が入力可能とされている。なお、スイッチSW21は、Nチャネル型のMOSFETとして構成されており、ドレインがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ソースがAD変換器7の一方の入力側に接続されている。また、スイッチSW21のゲートは、制御部3における出力信号φ1の出力端子に接続されている。また、スイッチSW22は、Pチャネル型のMOSFETとして構成されており、ソースがコンデンサC1の一端側及びスイッチSW10のドレインに接続され、ドレインがAD変換器7の一方の入力側に接続されている。また、スイッチSW22のゲートは、制御部3における出力信号φ2の出力端子に接続されている。また、AD変換器7には、閾値設定回路20で生成された基準電圧Vstdが入力されるようになっており、スイッチSW21、SW22がオン状態となったタイミングでの第1コンデンサC1の充電電圧V1と基準電圧Vstdとの差電圧をデジタル信号に変換するように機能している。   The AD converter 7 has the same configuration as that of the AD converter 7 of the first embodiment and functions similarly. The AD converter 7 is connected to the first capacitor C1 via switches (switches SW21 and SW22), and the charging voltage V1 of the first capacitor C1 can be input. The switch SW21 is configured as an N-channel MOSFET, and has a drain connected to one end of the capacitor C1 and the drain of the switch SW10, and a source connected to one input side of the AD converter 7. The gate of the switch SW21 is connected to the output terminal of the output signal φ1 in the control unit 3. Further, the switch SW22 is configured as a P-channel type MOSFET, the source is connected to one end side of the capacitor C1 and the drain of the switch SW10, and the drain is connected to one input side of the AD converter 7. The gate of the switch SW22 is connected to the output terminal of the output signal φ2 in the control unit 3. Further, the reference voltage Vstd generated by the threshold setting circuit 20 is input to the AD converter 7, and the charging voltage of the first capacitor C1 at the timing when the switches SW21 and SW22 are turned on. It functions to convert the difference voltage between V1 and the reference voltage Vstd into a digital signal.

閾値設定回路20は、比較回路41での比較基準となる閾値(第1閾値、第2閾値として用いられる共通の値)を設定するものであり、基本的には第1実施形態で用いた閾値設定回路20と同様の構成をなし且つ同様の機能を有している(図2参照)。この閾値設定回路20も、図2のように構成されており、記憶装置5から出力される基準コードと、AD変換器7から出力される補正コード(スイッチSW21、SW22がオン状態となったタイミングでの第1コンデンサC1の充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータ)を入力として、基準電圧Vstdと閾値Vstd_compを出力するように構成されている。   The threshold value setting circuit 20 sets a threshold value (a common value used as the first threshold value and the second threshold value) as a comparison reference in the comparison circuit 41. Basically, the threshold value used in the first embodiment. It has the same configuration as the setting circuit 20 and has the same function (see FIG. 2). The threshold setting circuit 20 is also configured as shown in FIG. 2, and the reference code output from the storage device 5 and the correction code output from the AD converter 7 (timing when the switches SW21 and SW22 are turned on). And the reference voltage Vstd and the threshold value Vstd_comp are output. The digital data of the difference voltage between the charging voltage V1 of the first capacitor C1 and the reference voltage Vstd in FIG.

この閾値設定回路20も、所定の電源とグランドとの間に抵抗R1〜Rmが直列に接続されており、各抵抗間にMOSFETやバイポーラトランジスタなどからなるスイッチX1〜Xnの各一端が接続され、スイッチX1〜Xnの各他端には基準電圧Vstdの出力ラインが接続されている。そしてデコーダ21に設けられたn個の端子に各スイッチX1〜Xnの制御端子が接続されており、各スイッチX1〜Xnは、デコーダ21において対応する端子がHレベルとなったときにオン状態に切り替わり、デコーダ21において対応する端子がLレベルとなったときにオフ状態に切り替わるようになっている。また、各抵抗間には、MOSFETやバイポーラトランジスタなどからなるスイッチY1〜Ynの各一端が接続され、スイッチY1〜Ynの各他端には閾値Vstd_compを出力するための出力ラインが接続されている。そしてデコーダ25に設けられたn個の端子に各スイッチY1〜Ynの制御端子が接続されており、各スイッチY1〜Ynは、デコーダ25において対応する端子がHレベルとなったときにオン状態に切り替わり、デコーダ25において対応する端子がLレベルとなったときにオフ状態に切り替わるようになっている。この構成では、記憶装置5から読み出された基準コードがデコーダ21に入力されると、デコーダ21の各端子の状態は基準コードに対応する状態となり、各スイッチX1〜Xnに対し基準コードに対応する信号が並列に出力される。これにより、基準コードに対応した基準電圧Vstdが出力される。また、補正値を特定する情報(補正コード)が記憶部23で保持され、デコーダ25に入力されると、デコーダ25の各端子の状態は補正コードに対応する状態となり、各スイッチY1〜Ynに対し補正コードに対応する信号が並列に出力される。そして、本構成では、補正コードを変更することでスイッチY1〜Ynの状態を切り替えることができ、出力される閾値Vstd_compを増減することができる。なお、当該発振回路1の起動後の初期設定時には、記憶部23には基準コードが保持されるようになっており、閾値Vstd_compは、基準電圧Vstdと同電圧が出力されるようにする。   In the threshold setting circuit 20, resistors R1 to Rm are connected in series between a predetermined power source and the ground, and one ends of switches X1 to Xn including MOSFETs, bipolar transistors and the like are connected between the resistors, An output line of the reference voltage Vstd is connected to each other end of the switches X1 to Xn. The control terminals of the switches X1 to Xn are connected to n terminals provided in the decoder 21, and each switch X1 to Xn is turned on when the corresponding terminal in the decoder 21 becomes H level. When the corresponding terminal in the decoder 21 becomes L level, it is switched to the off state. Further, between the resistors, one ends of switches Y1 to Yn made of MOSFETs or bipolar transistors are connected, and an output line for outputting a threshold value Vstd_comp is connected to the other ends of the switches Y1 to Yn. . The control terminals of the switches Y1 to Yn are connected to n terminals provided in the decoder 25, and the switches Y1 to Yn are turned on when the corresponding terminals in the decoder 25 become H level. When the corresponding terminal in the decoder 25 becomes L level, it is switched to the off state. In this configuration, when the reference code read from the storage device 5 is input to the decoder 21, the state of each terminal of the decoder 21 corresponds to the reference code, and corresponds to the reference code for each of the switches X1 to Xn. Are output in parallel. As a result, the reference voltage Vstd corresponding to the reference code is output. In addition, when information (correction code) for specifying a correction value is held in the storage unit 23 and input to the decoder 25, the state of each terminal of the decoder 25 becomes a state corresponding to the correction code, and each switch Y1 to Yn has a state. On the other hand, signals corresponding to the correction codes are output in parallel. In this configuration, the state of the switches Y1 to Yn can be switched by changing the correction code, and the output threshold value Vstd_comp can be increased or decreased. In the initial setting after the oscillation circuit 1 is started, the reference code is held in the storage unit 23, and the threshold Vstd_comp is set to output the same voltage as the reference voltage Vstd.

次に、本実施形態の発振回路1の動作について説明する。この発振回路1の基本動作は、第1実施形態と同様であり、制御部3からの出力信号φ1がLレベルであり、出力信号φ2がHレベルであるときの動作である。つまり、基本動作時は、スイッチSW11は常にオン状態であり、スイッチSW21、SW22は常にオフ状態である。   Next, the operation of the oscillation circuit 1 of this embodiment will be described. The basic operation of the oscillation circuit 1 is the same as that of the first embodiment, and is the operation when the output signal φ1 from the control unit 3 is at L level and the output signal φ2 is at H level. That is, during the basic operation, the switch SW11 is always on and the switches SW21 and SW22 are always off.

この基本動作時は、図12の時間T1以降のように、フリップフロップ回路9からの出力信号QがLレベルの間は、スイッチSW10がオン状態となり、スイッチSW12がオフ状態となるため、定電流源15からの充電電流により第1コンデンサC1が充電される。このとき、出力信号QBはHレベルであり、スイッチSW10’がオフ状態となり、スイッチSW12’がオン状態となるため第2コンデンサC2は放電される。この場合、入力切替部43において、スイッチSW51、SW52がオン状態となり、スイッチSW51’、SW52’がオフ状態になるため、第1コンデンサC1の充電電圧V1が比較回路41の正側の入力端子に入力される。そして、この動作では、第1コンデンサC1の充電電圧V1が閾値Vstd_comp未満の間は、比較回路41からLレベル信号の出力(「0」の出力)がなされる。一方、第1コンデンサC1の充電電圧V1が閾値Vstd_compを超えたときには、比較回路41からHレベル信号の出力(「1」の出力)がなされる(時間T2からのVset信号を参照:図12)。   During this basic operation, since the switch SW10 is in the on state and the switch SW12 is in the off state while the output signal Q from the flip-flop circuit 9 is at the L level after the time T1 in FIG. The first capacitor C1 is charged by the charging current from the source 15. At this time, the output signal QB is at the H level, the switch SW10 'is turned off, and the switch SW12' is turned on, so that the second capacitor C2 is discharged. In this case, in the input switching unit 43, the switches SW51 and SW52 are turned on and the switches SW51 ′ and SW52 ′ are turned off, so that the charging voltage V1 of the first capacitor C1 is applied to the positive input terminal of the comparison circuit 41. Entered. In this operation, while the charging voltage V1 of the first capacitor C1 is less than the threshold value Vstd_comp, the comparison circuit 41 outputs an L level signal (output of “0”). On the other hand, when the charging voltage V1 of the first capacitor C1 exceeds the threshold value Vstd_comp, the comparison circuit 41 outputs an H level signal (output “1”) (see the Vset signal from time T2: FIG. 12). .

比較回路41からHレベル信号の出力(「1」の出力)がなされると、このHレベル信号はAND回路45a,45bにそれぞれ入力される。この入力直後(時間T2の直後)は遅延部47からLレベル信号が出力されており(即ち、Q端子からのLレベル信号が遅延した信号が出力されており)、S端子に入力されるVset信号は、Hレベル信号となる。つまり、第1コンデンサC1の充電電圧V1が閾値Vstd_compを超えた後、第2コンデンサC2の充電電圧V2が比較回路41の正側の入力電圧となるように切り替わり、当該入力電圧が閾値Vstd_comp未満になるまでHレベルのVset信号がS端子に入力される。このようにHレベルのVset信号が入力されると、フリップフロップ回路9の出力信号QがHレベル(「1」の信号)に切り替わり、出力信号QBはLレベル(「0」の信号)に切り替わる(時間T2からの出力信号Q、QB参照)。時間T2以降のように、フリップフロップ回路9からの出力信号QがHレベルの間は、スイッチSW10がオフ状態となり、スイッチSW12がオン状態となり、基本動作時は出力信号φ2がHレベルで維持されてスイッチSW11もオン状態であるため、定電流源15からの第1コンデンサC1への電流供給が遮断されつつ第1コンデンサC1は放電される。一方、フリップフロップ回路9からの出力信号QBがLレベルの間は、スイッチSW10’がオン状態となり、スイッチSW12’がオフ状態となるため、定電流源15からの充電電流により第2コンデンサC2が充電される。この場合、入力切替部43において、スイッチSW51’、SW52’がオン状態となり、スイッチSW51、SW52がオフ状態になるため、第2コンデンサC2の充電電圧V2が比較回路41の正側の入力端子に入力されることになる。また、この構成では、時間T2にて比較回路41からHレベル信号の出力(「1」の出力)がなされた後、ある程度の時間が経つまで(時間T2の後、少なくともVset信号がLレベルに変化するまで)は遅延部47からの信号がLレベルで維持されるため、この期間はR端子にHレベル信号が入力されることはない。つまり、第1コンデンサC1の充電電圧V1が閾値Vstd_compを超えた後、第2コンデンサC2の充電電圧V2が比較回路41の正側の入力電圧となるように切り替わり、当該入力電圧が閾値Vstd_comp未満で安定するまでの過渡期においてQ端子及びQB端子からの信号の切り替わり(次の切り替わり)が阻止される。   When the comparison circuit 41 outputs an H level signal (“1” output), the H level signal is input to the AND circuits 45a and 45b, respectively. Immediately after this input (immediately after time T2), the L level signal is output from the delay unit 47 (that is, a signal obtained by delaying the L level signal from the Q terminal is output), and Vset input to the S terminal. The signal is an H level signal. That is, after the charging voltage V1 of the first capacitor C1 exceeds the threshold value Vstd_comp, the charging voltage V2 of the second capacitor C2 is switched to become the positive side input voltage of the comparison circuit 41, and the input voltage becomes less than the threshold value Vstd_comp. Until then, the H level Vset signal is input to the S terminal. When the H level Vset signal is input in this way, the output signal Q of the flip-flop circuit 9 is switched to the H level ("1" signal), and the output signal QB is switched to the L level ("0" signal). (Refer to output signals Q and QB from time T2). As from time T2, after the output signal Q from the flip-flop circuit 9 is at the H level, the switch SW10 is turned off and the switch SW12 is turned on. During the basic operation, the output signal φ2 is maintained at the H level. Since the switch SW11 is also in the on state, the current supply from the constant current source 15 to the first capacitor C1 is cut off, and the first capacitor C1 is discharged. On the other hand, while the output signal QB from the flip-flop circuit 9 is at the L level, the switch SW10 ′ is turned on and the switch SW12 ′ is turned off, so that the second capacitor C2 is driven by the charging current from the constant current source 15. Charged. In this case, in the input switching unit 43, the switches SW51 ′ and SW52 ′ are turned on and the switches SW51 and SW52 are turned off, so that the charging voltage V2 of the second capacitor C2 is applied to the positive input terminal of the comparison circuit 41. Will be entered. Further, in this configuration, after the output of the H level signal (output of “1”) from the comparison circuit 41 at time T2, a certain amount of time passes (at least after the time T2, the Vset signal becomes L level). Since the signal from the delay unit 47 is maintained at the L level (until it changes), the H level signal is not input to the R terminal during this period. That is, after the charging voltage V1 of the first capacitor C1 exceeds the threshold value Vstd_comp, the charging voltage V2 of the second capacitor C2 is switched to become the positive side input voltage of the comparison circuit 41, and the input voltage is less than the threshold value Vstd_comp. In the transition period until stabilization, switching of signals from the Q terminal and the QB terminal (next switching) is prevented.

フリップフロップ回路9からのQB端子からの出力信号がLレベル且つQ端子からの出力信号がHレベルとなって第2コンデンサC2が充電対象となった場合、比較回路41に入力される第2コンデンサC2の充電電圧V2が閾値Vstd_comp未満の間は、比較回路41からLレベル信号の出力(「0」の出力)がなされる。一方、第2コンデンサC2の充電電圧V2が閾値Vstd_compを超えたときには、比較回路41からHレベル信号の出力(「1」の出力)がなされる(時間T3からのVrst信号を参照:図3)。これにより、出力信号Q、QBが再度反転する(図3の時間T3参照)。そして、このように比較回路41からHレベル信号の出力(「1」の出力)がなされると、このHレベル信号はAND回路45a,45bにそれぞれ入力される。この入力直後(時間T3の直後)は遅延部47からHレベル信号が出力されており(即ち、Q端子からのHレベル信号が遅延した信号が出力されており)、R端子に入力されるVrst信号は、Hレベル信号となる。つまり、第2コンデンサC2の充電電圧V2が閾値Vstd_compを超えた後、第1コンデンサC1の充電電圧V1が比較回路41の正側の入力電圧となるように切り替わり、当該入力電圧が閾値Vstd_comp未満になるまでHレベルのVrst信号がR端子に入力される。このようにHレベルのVrst信号が入力されると、フリップフロップ回路9の出力信号QがLレベル(「0」の信号)に切り替わり、出力信号QBはHレベル(「1」の信号)に切り替わる(時間T3からの出力信号Q、QB参照)。時間T3以降のように、フリップフロップ回路9からの出力信号QBがHレベルの間は、スイッチSW10’がオフ状態となり、スイッチSW12’がオン状態となり、定電流源15からの第2コンデンサC2への電流供給が遮断されつつ第2コンデンサC2は放電される。一方、フリップフロップ回路9からの出力信号QがLレベルの間は、スイッチSW10がオン状態となり、スイッチSW12がオフ状態となるため、定電流源15からの充電電流により第1コンデンサC1が充電される。この場合、入力切替部43において、スイッチSW51、SW52がオン状態となり、スイッチSW51’、SW52’がオフ状態になるため、第1コンデンサC1の充電電圧V1が比較回路41の正側の入力端子に入力されることになる。また、この場合も、時間T3にて比較回路41からHレベル信号の出力(「1」の出力)がなされた後、ある程度の時間が経つまで(時間T3の後、少なくともVrst信号がLレベルに変化するまで)は遅延部47からの信号がHレベルで維持されるため、この期間はS端子にHレベル信号が入力されることはない。つまり、第2コンデンサC2の充電電圧V2が閾値Vstd_compを超えた後、第1コンデンサC1の充電電圧V1が比較回路41の正側の入力電圧となるように切り替わり、当該入力電圧が閾値Vstd_comp未満で安定するまでの過渡期においてQ端子及びQB端子からの信号の切り替わり(次の切り替わり)が阻止される。このような動作を繰り返すことで、出力信号Q及び出力信号QBは、所定周期の発振信号となる。   When the output signal from the QB terminal from the flip-flop circuit 9 is L level and the output signal from the Q terminal is H level and the second capacitor C2 is to be charged, the second capacitor input to the comparison circuit 41 While the charging voltage V2 of C2 is less than the threshold value Vstd_comp, the comparison circuit 41 outputs an L level signal (output of “0”). On the other hand, when the charging voltage V2 of the second capacitor C2 exceeds the threshold value Vstd_comp, the comparison circuit 41 outputs an H level signal (output of “1”) (see the Vrst signal from time T3: FIG. 3). . As a result, the output signals Q and QB are inverted again (see time T3 in FIG. 3). When the comparison circuit 41 outputs the H level signal (“1” output) as described above, the H level signal is input to the AND circuits 45a and 45b, respectively. Immediately after this input (immediately after time T3), an H level signal is output from the delay unit 47 (that is, a signal obtained by delaying the H level signal from the Q terminal is output), and Vrst input to the R terminal. The signal is an H level signal. That is, after the charging voltage V2 of the second capacitor C2 exceeds the threshold value Vstd_comp, the charging voltage V1 of the first capacitor C1 is switched to become the input voltage on the positive side of the comparison circuit 41, and the input voltage becomes less than the threshold value Vstd_comp. Until this time, the H level Vrst signal is input to the R terminal. When the H level Vrst signal is input in this manner, the output signal Q of the flip-flop circuit 9 is switched to the L level (“0” signal), and the output signal QB is switched to the H level (“1” signal). (Refer to output signals Q and QB from time T3). As from time T3, while the output signal QB from the flip-flop circuit 9 is at the H level, the switch SW10 ′ is turned off and the switch SW12 ′ is turned on, to the second capacitor C2 from the constant current source 15. The second capacitor C2 is discharged while the current supply is interrupted. On the other hand, while the output signal Q from the flip-flop circuit 9 is at the L level, the switch SW10 is turned on and the switch SW12 is turned off, so that the first capacitor C1 is charged by the charging current from the constant current source 15. The In this case, in the input switching unit 43, the switches SW51 and SW52 are turned on and the switches SW51 ′ and SW52 ′ are turned off, so that the charging voltage V1 of the first capacitor C1 is applied to the positive input terminal of the comparison circuit 41. Will be entered. Also in this case, after the output of the H level signal (output of “1”) from the comparison circuit 41 at time T3, a certain amount of time passes (after time T3, at least the Vrst signal becomes L level). Since the signal from the delay unit 47 is maintained at the H level until the change occurs, the H level signal is not input to the S terminal during this period. That is, after the charging voltage V2 of the second capacitor C2 exceeds the threshold value Vstd_comp, the charging voltage V1 of the first capacitor C1 is switched to become the input voltage on the positive side of the comparison circuit 41, and the input voltage is less than the threshold value Vstd_comp. In the transition period until stabilization, switching of signals from the Q terminal and the QB terminal (next switching) is prevented. By repeating such an operation, the output signal Q and the output signal QB become oscillation signals having a predetermined period.

次に、自己補正動作について説明する。本実施形態の発振回路1でも、第1実施形態と同様の方式で自己補正動作が行われ、制御部3が定期的に或いは所定条件成立時に基本動作を行うモードから自己補正動作を行うモード(自己補正モード)に切り替わる。自己補正動作を行うモードに切り替わった場合、制御部3は、フリップフロップ回路9からの出力信号Qの立ち上がりのタイミングで出力信号φ1、φ2を反転し、出力信号φ1をHレベルに設定し、出力信号φ2をLレベルに設定した状態を一定時間維持する。   Next, the self correction operation will be described. In the oscillation circuit 1 of this embodiment, the self-correction operation is performed in the same manner as in the first embodiment, and the control unit 3 performs the self-correction operation from the mode in which the basic operation is performed periodically or when a predetermined condition is satisfied ( Switch to self-correction mode. When the mode is switched to the self-correction operation mode, the control unit 3 inverts the output signals φ1 and φ2 at the rising timing of the output signal Q from the flip-flop circuit 9, sets the output signal φ1 to the H level, and outputs The state where the signal φ2 is set to the L level is maintained for a certain time.

この一定時間の間は、出力信号Qの立ち上がりからスイッチSW10がオフ状態となっているため充電が阻止され、スイッチSW11がオフ状態となるため、第1コンデンサC1からのスイッチSW11を介した放電も阻止される。なお、このときには、スイッチSW51、SW52がいずれもオフ状態に切り替わるため、比較回路41と第1コンデンサC1との間の通電が遮断される。   During this fixed time, since the switch SW10 is turned off from the rising edge of the output signal Q, charging is prevented and the switch SW11 is turned off, so that the discharge from the first capacitor C1 via the switch SW11 is also performed. Be blocked. At this time, since the switches SW51 and SW52 are both turned off, the energization between the comparison circuit 41 and the first capacitor C1 is cut off.

一方、スイッチSW21,SW22はオン状態となるため、AD変換器7の一方側には第1コンデンサC1の充電停止時点での充電電圧V1が入力される。この充電停止時点での充電電圧は、基本動作時に第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより比較回路41からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、コンデンサC1の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータが生成される。   On the other hand, since the switches SW21 and SW22 are turned on, the charging voltage V1 when the charging of the first capacitor C1 is stopped is input to one side of the AD converter 7. The charging voltage at the time of stopping charging is the charging voltage at the time when the first capacitor C1 is switched from the charging target to the discharging target during the basic operation (that is, the charging voltage from the state where the first capacitor C1 was the charging target). When V1 exceeds the threshold value Vstd_comp, an H level signal is output from the comparison circuit 41, and this corresponds to the charging voltage at the time when the output signal Q is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of a difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the charging of the capacitor C1 is stopped (when the capacitor C1 is switched to the discharge target).

本実施形態の補正の考え方は第1実施形態と同様であり、発振回路1の装置温度が代表的な特定温度から変化したことによる遅延時間の変化をΔtとすると、Δt=C/I×{(V1−Vstd)-(V1typ−Vstd)}で算出できる。この式における「V1typ−Vstd」(基準となる差電圧)は、typical状態(即ち、発振回路1の装置温度が代表的な特定温度の状態)において、上記自己補正モードを行った場合の、充電停止時点(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより比較回路41からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点)でのコンデンサC1の充電電圧を反映した値であり、そのA/D変換結果は基準コードとして記憶装置5に保持されている。   The concept of correction of the present embodiment is the same as that of the first embodiment, and Δt = C / I × {, where Δt is a change in delay time due to a change in the device temperature of the oscillation circuit 1 from a typical specific temperature. (V1−Vstd) − (V1typ−Vstd)}. “V1typ−Vstd” (reference voltage difference) in this equation is the charge when the self-correction mode is performed in the typical state (that is, the device temperature of the oscillation circuit 1 is a representative specific temperature state). When the charge voltage V1 exceeds the threshold value Vstd_comp from the time point when the first capacitor C1 was charged, the comparison circuit 41 outputs an H level signal and the output signal Q is switched to the H level. This value reflects the charging voltage of the capacitor C1 at the time of switching), and the A / D conversion result is held in the storage device 5 as a reference code.

そして、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typ(V1typは、所定の代表電圧の一例に相当)のときは、typical状態のときよりも発振周波数が低くなっており、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも小さいとき、即ち、V1<V1typのときは、typical状態のときよりも発振周波数が高くなっているといえる。従って、閾値設定回路20(基準電圧生成部)は、上記自己補正モードで測定されるAD変換値「V1−Vstd」(補正コード)を入力して記憶部23で保持すると共に当該補正コードをデコーダ25にてデコードする。そして、そのデコード結果に応じてスイッチY1〜Ynを動作させ、上記補正コードに基づいて補正された電圧を閾値Vstd_compとして出力する。   When the AD conversion value “V1−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V1typ−Vstd”, that is, V1> V1typ (V1typ is an example of a predetermined representative voltage). The oscillation frequency is lower than in the typical state, and the AD conversion value “V1−Vstd” measured in the self-correction mode is smaller than the reference differential voltage “V1typ−Vstd”. In other words, when V1 <V1typ, it can be said that the oscillation frequency is higher than that in the typical state. Therefore, the threshold setting circuit 20 (reference voltage generation unit) inputs the AD conversion value “V1-Vstd” (correction code) measured in the self-correction mode, holds it in the storage unit 23, and decodes the correction code into the decoder. Decode at 25. Then, the switches Y1 to Yn are operated according to the decoding result, and the voltage corrected based on the correction code is output as the threshold value Vstd_comp.

具体的には、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいとき、即ち、V1>V1typ(V1typは、所定の代表電圧の一例に相当)のときは、閾値Vstd_compをtypical状態のときの値(即ち、発振回路1の装置温度が代表的な特定温度のときの閾値Vstd_comp=Vstd(基準値))よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも小さいとき、即ち、V1<V1typのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図12の例では、時間T3〜T5の間で自己補正動作を行い、AD変換器7にてAD変換値「V1−Vstd」を取得している。そして、AD変換値「V1−Vstd」が基準となる差電圧「V1typ−Vstd」よりも大きいケースであるため、時間T5から所定時間後のタイミングで、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。図12のように、補正された閾値Vstd_compの反映は、第1コンデンサC1の充電動作に影響を与えないよう、第2コンデンサC2の放電動作が始まった直後に実施することが望ましい。   Specifically, when the AD conversion value “V1−Vstd” measured in the self-correction mode is larger than the reference difference voltage “V1typ−Vstd”, that is, V1> V1typ (V1typ is a predetermined representative voltage). In the case where the threshold Vstd_comp is lower than the value in the typical state (that is, the threshold Vstd_comp = Vstd (reference value) when the device temperature of the oscillation circuit 1 is a typical specific temperature)). And increase the oscillation frequency to match the oscillation frequency in the typical state. Conversely, when the AD conversion value “V1−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “V1typ−Vstd”, that is, when V1 <V1typ, the threshold value Vstd_comp is set to the typical state. Correction is made to be higher than the current value (reference value), and the oscillation frequency is lowered to match the oscillation frequency in the typical state. For example, in the example of FIG. 12, the self-correction operation is performed between times T <b> 3 and T <b> 5, and the AD conversion value “V1−Vstd” is acquired by the AD converter 7. Since the AD conversion value “V1−Vstd” is larger than the reference difference voltage “V1typ−Vstd”, the threshold value Vstd_comp is a value (reference value) at a timing after a predetermined time from the time T5. The oscillation frequency is increased to match the oscillation frequency in the typical state. As shown in FIG. 12, it is desirable to reflect the corrected threshold value Vstd_comp immediately after the discharge operation of the second capacitor C2 starts so as not to affect the charging operation of the first capacitor C1.

本構成でも、補正部4は、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期に当該第1コンデンサC1の充電電圧V1を検出し、検出された当該充電電圧V1が所定の代表電圧V1typを超える場合(即ち、V1>V1typ)には所定の基準値(上記typical状態のときに設定される閾値)のときよりも閾値Vstd_compを低くする補正データを生成し、検出された当該充電電圧V1が代表電圧V1typ未満の場合には、所定の基準値(上記typical状態のときに設定される閾値)のときよりも閾値Vstd_compを高くする補正データを生成している。なお、上記発振回路1では、補正コードの上限値及び下限値が予め定められており、デコーダ25に上限を超える補正データが入力された場合、当該デコーダ25は、設定された上限値をスイッチY1〜Ynに出力し、デコーダ25に下限を下回る補正データが入力された場合には、設定された下限値をスイッチY1〜Ynに出力する。   Also in this configuration, the correction unit 4 detects the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target by the switching control circuit 8, and the detected charging voltage V1 is a predetermined value. When the representative voltage V1typ is exceeded (that is, V1> V1typ), correction data for generating the threshold value Vstd_comp lower than the predetermined reference value (threshold value set in the typical state) is generated and detected. When the charging voltage V1 is less than the representative voltage V1typ, correction data for generating a threshold value Vstd_comp higher than a predetermined reference value (threshold value set in the typical state) is generated. In the oscillation circuit 1, the upper limit value and the lower limit value of the correction code are determined in advance, and when correction data exceeding the upper limit is input to the decoder 25, the decoder 25 sets the set upper limit value to the switch Y1. When the correction data that is lower than the lower limit is input to the decoder 25, the set lower limit value is output to the switches Y1 to Yn.

[第5実施形態]
次に、図13〜図14を参照し、第5実施形態について説明する。
第5実施形態では、図13、図14に示すように、制御部3において第4実施形態と同様の出力信号φ1、φ2に加え、出力信号φ1’、φ2’をも出力可能とした点、スイッチSW11’、SW21’、SW22’を追加した点、AD変換器7及び平均値生成部26(第2実施形態の平均値生成部26と同様の構成のものであり、以下、平均部ともいう)での補正コードの生成方法が第4実施形態と異なり、それ以外の構成は第4実施形態と同様である。よって、これら以外の構成(第4実施形態と同様の点)については第4実施形態と同一の符号を付し、詳細な説明は省略する。
[Fifth Embodiment]
Next, a fifth embodiment will be described with reference to FIGS.
In the fifth embodiment, as shown in FIGS. 13 and 14, the control unit 3 can output the output signals φ1 ′ and φ2 ′ in addition to the output signals φ1 and φ2 as in the fourth embodiment, The point where switches SW11 ′, SW21 ′, and SW22 ′ are added, the AD converter 7 and the average value generation unit 26 (the configuration is the same as that of the average value generation unit 26 of the second embodiment, hereinafter also referred to as an average unit). ) Is different from the fourth embodiment in the method of generating the correction code, and other configurations are the same as those in the fourth embodiment. Therefore, configurations other than these (same points as in the fourth embodiment) are denoted by the same reference numerals as those in the fourth embodiment, and detailed description thereof is omitted.

第5実施形態の発振回路1は、制御部3において、出力信号Qがトリガ信号として入力されるようになっている。そして、この制御部3は、通常モード(第4実施形態と同様の基本動作を行うモード)では、出力信号φ1がLレベルで維持され、出力信号φ2がHレベルで維持され、出力信号φ1’がLレベルで維持され、出力信号φ2’がHレベルで維持される。一方、自己補正動作を行うモードでは、出力信号Qの立ち下がりをトリガとして出力信号φ1’を一定時間Hレベルで維持し且つ出力信号φ2’を一定時間Lレベルで維持する。また、出力信号Qの立ち上がりをトリガとして出力信号φ1を一定時間Hレベルで維持し且つ出力信号φ2を一定時間Lレベルで維持する。なお、この制御部3は、マイコンなどの公知の制御回路によって構成されていてもよく、出力信号Qの立ち上がり、立ち下がりをトリガとして上記信号を出力し得る構成であれば他の回路でもよい。また、制御部3での通常モードから自己補正動作を行うモードへの切り替えは、定期的に行われてもよく、所定条件が成立したときに行われてもよい。   In the oscillation circuit 1 of the fifth embodiment, an output signal Q is input as a trigger signal in the control unit 3. In the normal mode (the mode in which the basic operation similar to that of the fourth embodiment is performed), the control unit 3 maintains the output signal φ1 at the L level, maintains the output signal φ2 at the H level, and outputs the output signal φ1 ′. Is maintained at the L level, and the output signal φ2 ′ is maintained at the H level. On the other hand, in the mode in which the self-correction operation is performed, the output signal φ1 ′ is maintained at the H level for a certain time and the output signal φ2 ′ is maintained at the L level for a certain time by using the falling edge of the output signal Q as a trigger. Further, with the rising edge of the output signal Q as a trigger, the output signal φ1 is maintained at the H level for a certain time and the output signal φ2 is maintained at the L level for the certain time. The control unit 3 may be configured by a known control circuit such as a microcomputer, or may be another circuit as long as the signal can be output using the rising and falling edges of the output signal Q as a trigger. Further, switching from the normal mode to the mode for performing the self-correction operation in the control unit 3 may be performed periodically or when a predetermined condition is satisfied.

本実施形態に係る発振回路1では、基本動作時の発振動作は第1、第4実施形態と同様である。なお、この基本動作時には、上述したように制御部3から、Lレベルの信号φ1、Hレベルの信号φ2、Lレベルの信号φ1’、Hレベルの信号φ2’が出力されるため、スイッチSW21、SW22、SW21’、SW22’はいずれもオフ状態となり、スイッチSW11、SW11’はいずれもオン状態となる。   In the oscillation circuit 1 according to the present embodiment, the oscillation operation during the basic operation is the same as in the first and fourth embodiments. In this basic operation, the control unit 3 outputs the L level signal φ1, the H level signal φ2, the L level signal φ1 ′, and the H level signal φ2 ′, as described above. SW22, SW21 ′, and SW22 ′ are all turned off, and switches SW11 and SW11 ′ are all turned on.

そして、本実施形態でも、制御部3が定期的に或いは所定条件成立時に基本動作を行うモードから自己補正動作を行うモード(自己補正モード)に切り替わる。自己補正動作を行うモードに切り替わった場合、図14の時間T3のときのように、制御部3は、フリップフロップ回路9からの出力信号Qの立ち下がりのタイミングで出力信号φ1’、φ2’を反転し、出力信号φ1’をHレベルに設定し、出力信号φ2’をLレベルに設定した状態を一定時間維持する。   Also in the present embodiment, the control unit 3 switches from the mode in which the basic operation is performed periodically or when a predetermined condition is satisfied to the mode in which the self-correction operation is performed (self-correction mode). When the mode is switched to the mode for performing the self-correction operation, the control unit 3 outputs the output signals φ1 ′ and φ2 ′ at the falling timing of the output signal Q from the flip-flop circuit 9, as at time T3 in FIG. Inverted, the output signal φ1 ′ is set to the H level, and the output signal φ2 ′ is set to the L level and maintained for a certain time.

この一定時間の間は、出力信号Qの立ち下がり(即ち出力信号QBの立ち上がり)からスイッチSW10’がオフ状態となっているためコンデンサC2への充電が阻止され、スイッチSW11’がオフ状態となるため、第2コンデンサC2からのスイッチSW11’を介した放電も阻止される。一方、上記一定期間の間は、スイッチSW21’,SW22’はオン状態となり、スイッチSW21、SW22はオフ状態で維持されるため、AD変換器7の一方側には第2コンデンサC2の充電停止時点での充電電圧V2が入力される。この充電停止時点での充電電圧は、基本動作時に第2コンデンサC2が充電対象から放電対象に切り替えられた時点での充電電圧(即ち、第2コンデンサC2が充電対象となっていた状態から充電電圧V2が閾値Vstd_compを超えたことにより比較回路41からHレベル信号が出力され、出力信号QBがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、第2コンデンサC2の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V2と基準電圧Vstdとの差電圧のデジタルデータが生成される。なお、このデジタルデータは、補正コード2として後述する平均部26に入力される。   During this fixed time, the switch SW10 ′ is turned off from the fall of the output signal Q (that is, the rise of the output signal QB), so that charging of the capacitor C2 is prevented and the switch SW11 ′ is turned off. Therefore, the discharge from the second capacitor C2 via the switch SW11 ′ is also prevented. On the other hand, since the switches SW21 ′ and SW22 ′ are in the on state and the switches SW21 and SW22 are maintained in the off state during the predetermined period, the charging of the second capacitor C2 is stopped at one side of the AD converter 7. The charging voltage V2 at is input. The charging voltage at the time of stopping the charging is the charging voltage at the time when the second capacitor C2 is switched from the charging target to the discharging target during the basic operation (that is, the charging voltage from the state where the second capacitor C2 was the charging target). When V2 exceeds the threshold value Vstd_comp, the comparison circuit 41 outputs an H level signal, which corresponds to the charging voltage at the time of switching when the output signal QB is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of a difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the charging of the second capacitor C2 is stopped (when it is switched to the discharge target). This digital data is input as the correction code 2 to the averaging unit 26 described later.

このように、第2コンデンサC2の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V2と基準電圧Vstdとの差電圧のデジタルデータが生成した後には、上記出力信号φ1’をLレベルに戻し、出力信号φ2’をHレベルに戻す。そして、フリップフロップ回路9からの出力信号Qの立ち上がりのタイミング(図14の時間T4)で出力信号φ1、φ2を反転し、出力信号φ1をHレベルに設定し、出力信号φ2をLレベルに設定した状態を一定時間維持する。これにより、第4実施形態での補正コードを生成した方法と同様の方法で補正コード1が生成される。即ち、この一定時間の間は、出力信号Qの立ち上がりからスイッチSW10がオフ状態となっているため充電が阻止され、スイッチSW11がオフ状態となるため、第1コンデンサC1からのスイッチSW11を介した放電も阻止される。一方、スイッチSW21,SW22はオン状態となるため、AD変換器7の一方側には第1コンデンサC1の充電停止時点での充電電圧V1が入力される。この充電停止時点での充電電圧は、基本動作時に第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧V1(即ち、第1コンデンサC1が充電対象となっていた状態から充電電圧V1が閾値Vstd_compを超えたことにより比較回路41からHレベル信号が出力され、出力信号QがHレベルに切り替えられた切替時点での充電電圧)に相当するものである。また、AD変換器7のもう一方の入力には上述の基準電圧Vstdが入力される。このとき、AD変換器7では、コンデンサC1の上記充電停止時点(放電対象に切り替えられた時期)での充電電圧V1と基準電圧Vstdとの差電圧のデジタルデータが生成され、このデジタルデータが補正コード1として後述する平均部26に入力される。   Thus, after the digital data of the difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the charging of the second capacitor C2 is stopped (the time when the second capacitor C2 is switched to the discharge target) is generated, the output signal φ1 ′ is The output signal φ2 ′ is returned to the H level by returning to the L level. Then, the output signals φ1 and φ2 are inverted at the rising timing of the output signal Q from the flip-flop circuit 9 (time T4 in FIG. 14), the output signal φ1 is set to the H level, and the output signal φ2 is set to the L level. Maintain the state for a certain time. Thereby, the correction code 1 is generated by the same method as the method of generating the correction code in the fourth embodiment. That is, since the switch SW10 is in an off state from the rising edge of the output signal Q during this fixed time, charging is blocked and the switch SW11 is in an off state, so that the switch SW11 from the first capacitor C1 passes through the switch SW11. Discharge is also prevented. On the other hand, since the switches SW21 and SW22 are turned on, the charging voltage V1 when the charging of the first capacitor C1 is stopped is input to one side of the AD converter 7. The charging voltage at the time of stopping charging is the charging voltage V1 when the first capacitor C1 is switched from the charging target to the discharging target during the basic operation (that is, charging from the state where the first capacitor C1 was the charging target). When the voltage V1 exceeds the threshold value Vstd_comp, an H level signal is output from the comparison circuit 41, and this corresponds to a charging voltage at the time of switching when the output signal Q is switched to the H level. The reference voltage Vstd is input to the other input of the AD converter 7. At this time, the AD converter 7 generates digital data of the difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the charging of the capacitor C1 is stopped (when the capacitor C1 is switched to the discharge target), and the digital data is corrected. The code 1 is input to the averaging unit 26 described later.

そして、本構成では、上記のように平均部26に入力された補正コード1(第1コンデンサC1が充電対象から放電対象に切り替えられた時点での充電電圧V1と基準電圧Vstdとの差電圧)及び補正コード2(第2コンデンサC2が充電対象から放電対象に切り替えられた時点での充電電圧V2と基準電圧Vstdとの差電圧)の平均値を求め、これを「補正コード」として記憶部27で保持する。   In this configuration, the correction code 1 input to the averaging unit 26 as described above (the difference voltage between the charging voltage V1 and the reference voltage Vstd at the time when the first capacitor C1 is switched from the charging target to the discharging target). And the average value of the correction code 2 (the difference voltage between the charging voltage V2 and the reference voltage Vstd at the time when the second capacitor C2 is switched from the charging target to the discharging target) is obtained, and this is stored as a “correction code” in the storage unit 27. Hold on.

なお、補正コードを記憶部27で保持してからの補正方法(閾値設定回路20での閾値Vstd_compの生成方法)は、第1実施形態と同様である。即ち、閾値設定回路20(基準電圧生成部)は、上記自己補正モードで測定されるAD変換値(補正コード1、補正コード2)の平均値「(V1+V2)/2−Vstd」を最終的な補正コードとして入力して記憶部23で保持すると共に当該補正コードをデコーダ25にてデコードする。そして、そのデコード結果に応じてスイッチY1〜Ynを動作させ、上記補正コードに基づいて補正された電圧を閾値Vstd_compとして出力する。   The correction method after the correction code is stored in the storage unit 27 (the method for generating the threshold value Vstd_comp in the threshold setting circuit 20) is the same as that in the first embodiment. That is, the threshold setting circuit 20 (reference voltage generation unit) finally calculates the average value “(V1 + V2) / 2−Vstd” of the AD conversion values (correction code 1, correction code 2) measured in the self-correction mode. The correction code is input and held in the storage unit 23, and the correction code is decoded by the decoder 25. Then, the switches Y1 to Yn are operated according to the decoding result, and the voltage corrected based on the correction code is output as the threshold value Vstd_comp.

具体的には、上記自己補正モードで測定されるAD変換値(補正コード1、2)の平均値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも大きいとき、即ち、(V1+V2)/2>Vtypのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くする。逆に、上記自己補正モードで測定されるAD変換値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも小さいとき、即ち、(V1+V2)/2<Vtypのときは、閾値Vstd_compをtypical状態のときの値(基準値)よりも高くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を低くする。例えば、図14の例では、時間T3〜T5の間で自己補正動作を行い、AD変換値の平均値「(V1+V2)/2−Vstd」を取得している。そして、AD変換値の平均値「(V1+V2)/2−Vstd」が基準となる差電圧「Vtyp−Vstd」よりも大きいケースであるため、時間T5から所定時間後のタイミングで、閾値Vstd_compをtypical状態のときの値(基準値)よりも低くする方向に補正し、typical状態のときの発振周波数に合わせるように発振周波数を高くしている。なお、Vtypは、所定の代表電圧の一例に相当するものであり、第1、第4実施形態等と同様の方法で同様に設定されてもよく、発振回路1の装置温度が代表的な特定温度のときに上記自己補正モードを行った場合の、充電停止時点での第1コンデンサC1の充電電圧V1と充電停止時点での第2コンデンサC2の充電電圧V2との平均値であってもよい。   Specifically, when the average value “(V1 + V2) / 2−Vstd” of the AD conversion values (correction codes 1 and 2) measured in the self-correction mode is larger than the reference difference voltage “Vtyp−Vstd”. That is, when (V1 + V2) / 2> Vtyp, the threshold Vstd_comp is corrected to a value lower than the value (reference value) in the typical state, and the oscillation frequency is adjusted to match the oscillation frequency in the typical state. Make it high. Conversely, when the AD conversion value “(V1 + V2) / 2−Vstd” measured in the self-correction mode is smaller than the reference difference voltage “Vtyp−Vstd”, that is, (V1 + V2) / 2 <Vtyp. Corrects the threshold value Vstd_comp to be higher than the value (reference value) in the typical state, and lowers the oscillation frequency to match the oscillation frequency in the typical state. For example, in the example of FIG. 14, the self-correction operation is performed between times T3 and T5, and the average value “(V1 + V2) / 2−Vstd” of the AD conversion values is acquired. Since the average value “(V1 + V2) / 2−Vstd” of the AD conversion values is larger than the reference difference voltage “Vtyp−Vstd”, the threshold value Vstd_comp is typically set at a timing after a predetermined time from time T5. Correction is made to be lower than the value at the state (reference value), and the oscillation frequency is increased to match the oscillation frequency in the typical state. Note that Vtyp corresponds to an example of a predetermined representative voltage, and may be set in the same manner as in the first and fourth embodiments, and the device temperature of the oscillation circuit 1 is typically specified. It may be an average value of the charging voltage V1 of the first capacitor C1 at the time of stopping charging and the charging voltage V2 of the second capacitor C2 at the time of stopping charging when the self-correction mode is performed at the temperature. .

以上のように、本構成では、補正部4は、切替制御回路8によって第1コンデンサC1が放電対象に切り替えられた時期に当該第1コンデンサC1の充電電圧V1を検出し、第2コンデンサC2が放電対象に切り替えられた時期に当該第2コンデンサC2の充電電圧V2を検出し、それら検出された第1コンデンサC1の充電電圧V1及び第2コンデンサC2の充電電圧V2を反映した統計値(例えばこれらの平均値)が所定の代表電圧を超える場合には、所定の基準値よりも所定閾値を低くする補正データを生成し、統計値が代表電圧未満の場合には、基準値よりも所定閾値を高くする補正データを生成している。この構成によれば、コンデンサの充電電圧を別々に検出し、それら充電電圧を反映した形で補正データを生成することができる。つまり、両コンデンサでの実際の遅延状態を共に反映したより適切な補正データを生成することができる。   As described above, in this configuration, the correction unit 4 detects the charging voltage V1 of the first capacitor C1 at the time when the first capacitor C1 is switched to the discharge target by the switching control circuit 8, and the second capacitor C2 The charging voltage V2 of the second capacitor C2 is detected at the time of switching to the discharge target, and statistical values (for example, these) reflecting the detected charging voltage V1 of the first capacitor C1 and the charging voltage V2 of the second capacitor C2 are detected. If the statistical value is less than the representative voltage, the predetermined threshold value is set to be lower than the reference value. The correction data to be increased is generated. According to this configuration, the charging voltage of the capacitor can be detected separately, and correction data can be generated in a form reflecting these charging voltages. That is, it is possible to generate more appropriate correction data that reflects the actual delay state of both capacitors.

[他の実施形態]
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
[Other Embodiments]
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.

第1実施形態では、第1コンデンサC1の放電開始時の充電電圧V1と代表電圧V1typとに基づいて補正データを生成していたが、AD変換器7への入力を充電電圧V1とせずに充電電圧V2とし、第2コンデンサC2の放電開始時の充電電圧V2と第3実施形態と同様の代表電圧V2typとに基づいて同様の方法で補正データを生成してもよい。   In the first embodiment, the correction data is generated based on the charging voltage V1 at the start of discharging the first capacitor C1 and the representative voltage V1typ. However, charging is performed without setting the input to the AD converter 7 as the charging voltage V1. The correction data may be generated by the same method based on the voltage V2 and the charging voltage V2 at the start of discharging the second capacitor C2 and the representative voltage V2typ similar to the third embodiment.

上記実施形態では、AD変換器7への入力を、第1コンデンサC1及び第2コンデンサC2のいずれかに接続される経路と基準電圧Vstdとしたが、図10のように、AD変換器7を他の用途に兼用してもよい。例えば、AD変換器7に接続する経路を、第1コンデンサC1及び第2コンデンサC2のいずれかに接続される第1経路と、他のアナログ信号発生源(図10では圧力センサ、加速度センサ、温度センサ等の物理量センサからなるセンサ30)に接続される第2経路とに切り替える経路切替部を設けるようにしてもよい。例えば、制御部3を経路切替部として機能させ、AD変換器7に接続する経路を第1経路と第2経路とに切り替えるスイッチSW5を当該制御部3からの制御信号によって切り替えるようにしてもよい。この構成によれば、AD変換器7を、他のアナログ信号発生源からの信号のAD変換と、コンデンサの充電電圧のAD変換とに用いることができ、それぞれ別々にAD変換器を用意する構成と比較して装置構成の簡素化、部品点数の削減を図ることができる。
また、この構成の場合、AD変換器7からの出力側において、AD変換器7からの出力先を、閾値設定回路20と、他の信号処理部(図示しない信号処理回路)とで切り替えるスイッチを設け、このスイッチを制御部3によって制御するようにしてもよい。即ち、スイッチSW5においてAD変換器7に接続する入力経路をセンサ30側に切り替えている期間はAD変換器7からの出力を他の信号処理部に入力させ、AD変換器7に接続する入力経路を第1コンデンサC1及び第2コンデンサC2のいずれかに接続される経路に切り替えている期間は、AD変換器7からの出力を閾値設定回路20に入力させるように切り替えるようにすることができる。また、他の信号処理部(信号処理回路)で処理された信号処理結果を図示しない通信部を介して外部装置に出力可能としてもよい。また、このようにAD変換器7を兼用する構成は、上述のいずれの実施形態にも適用することができる。
In the above embodiment, the input to the AD converter 7 is the path connected to either the first capacitor C1 or the second capacitor C2 and the reference voltage Vstd. However, as shown in FIG. It may be used for other purposes. For example, the path connected to the AD converter 7 is divided into a first path connected to one of the first capacitor C1 and the second capacitor C2, and another analog signal generation source (a pressure sensor, an acceleration sensor, a temperature in FIG. 10). You may make it provide the path | route switching part switched to the 2nd path | route connected to the sensor 30 consisting of physical quantity sensors, such as a sensor. For example, the control unit 3 may function as a path switching unit, and the switch SW5 that switches the path connected to the AD converter 7 between the first path and the second path may be switched by a control signal from the control unit 3. . According to this configuration, the AD converter 7 can be used for AD conversion of a signal from another analog signal generation source and AD conversion of a capacitor charging voltage, and each AD converter is prepared separately. Compared to the above, it is possible to simplify the apparatus configuration and reduce the number of parts.
In the case of this configuration, on the output side from the AD converter 7, a switch for switching the output destination from the AD converter 7 between the threshold setting circuit 20 and another signal processing unit (not shown). This switch may be controlled by the control unit 3. That is, during the period when the input path connected to the AD converter 7 in the switch SW5 is switched to the sensor 30 side, the output from the AD converter 7 is input to another signal processing unit, and the input path is connected to the AD converter 7. Can be switched so that the output from the AD converter 7 is input to the threshold setting circuit 20 during the period when the signal is switched to the path connected to either the first capacitor C1 or the second capacitor C2. Further, a signal processing result processed by another signal processing unit (signal processing circuit) may be output to an external device via a communication unit (not shown). In addition, such a configuration that also serves as the AD converter 7 can be applied to any of the above-described embodiments.

上記実施形態では、自己補正モードのときに実行される1回のAD変換処理及び補正コード生成処理に基づいて閾値を設定したが、自己補正モードを実行すべき複数の時期での複数回のAD変換処理及び補正コード生成処理で得られる複数の補正コードを平均し、その補正コードの平均値に基づいて閾値を設定するようにしてもよい。   In the above embodiment, the threshold value is set based on one AD conversion process and correction code generation process executed in the self-correction mode. A plurality of correction codes obtained by the conversion process and the correction code generation process may be averaged, and a threshold value may be set based on the average value of the correction codes.

1…発振回路
4…補正部
8…切替制御回路
11…第1比較回路
13…第2比較回路
15…定電流源
20…閾値設定回路
41…比較回路
C1…第1コンデンサ
C2…第2コンデンサ
DESCRIPTION OF SYMBOLS 1 ... Oscillation circuit 4 ... Correction | amendment part 8 ... Switching control circuit 11 ... 1st comparison circuit 13 ... 2nd comparison circuit 15 ... Constant current source 20 ... Threshold setting circuit 41 ... Comparison circuit C1 ... 1st capacitor C2 ... 2nd capacitor

Claims (9)

定電流を発生させる定電流源(15)と、
前記定電流源と導通可能に構成され、前記定電流源から供給される定電流によって充電を行い得る第1コンデンサ(C1)及び第2コンデンサ(C2)と、
前記第1コンデンサ(C1)に充電された充電電圧が所定の第1閾値未満である場合に所定の第1信号を出力し、前記第1閾値以上である場合に前記第1信号とは異なる第2信号を出力する第1比較回路(11)と、
前記第2コンデンサ(C2)に充電された充電電圧が、前記第1閾値と同一の又は前記第1閾値とは異なる第2閾値未満である場合に所定の第3信号を出力し、前記第2閾値以上である場合に前記第3信号とは異なる第4信号を出力する第2比較回路(13)と、
前記第1閾値及び前記第2閾値を設定する閾値設定回路(20)と、
前記第1比較回路(11)及び前記第2比較回路(13)から出力される信号に基づき、前記定電流源(15)からの充電対象を前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方とし、他方を放電対象とするように切り替える切替制御回路(8)と、
前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期での当該いずれか一方の充電電圧、又は両コンデンサがそれぞれ放電対象に切り替えられた各時期での各充電電圧に基づいて、前記閾値設定回路(20)で設定される前記第1閾値及び前記第2閾値の補正に用いる補正データを生成する補正部(4)と、
前記補正部によって生成される前記補正データに基づいて前記閾値設定回路が前記第1閾値及び前記第2閾値を設定するように制御する制御部(3)と、
を有することを特徴とする発振回路。
A constant current source (15) for generating a constant current;
A first capacitor (C1) and a second capacitor (C2) configured to be conductive with the constant current source and capable of being charged with a constant current supplied from the constant current source;
When the charging voltage charged in the first capacitor (C1) is less than a predetermined first threshold, a predetermined first signal is output, and when the charging voltage is equal to or higher than the first threshold, the first signal differs from the first signal A first comparison circuit (11) that outputs two signals;
When the charge voltage charged in the second capacitor (C2) is less than a second threshold value that is the same as the first threshold value or different from the first threshold value, a predetermined third signal is output, and the second A second comparison circuit (13) that outputs a fourth signal different from the third signal when the threshold is equal to or greater than a threshold;
A threshold setting circuit (20) for setting the first threshold and the second threshold;
Based on the signals output from the first comparison circuit (11) and the second comparison circuit (13), the charging target from the constant current source (15) is set to the first capacitor (C1) and the second capacitor ( A switching control circuit (8) for switching to either one of C2) and the other to be discharged;
The charging voltage at the time when either one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target by the switching control circuit (8), or both capacitors are respectively A correction unit (4) that generates correction data used to correct the first threshold value and the second threshold value set by the threshold value setting circuit (20) based on each charging voltage at each time when it is switched to a discharge target. )When,
A control unit (3) for controlling the threshold value setting circuit to set the first threshold value and the second threshold value based on the correction data generated by the correction unit;
An oscillation circuit comprising:
前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を同一値として設定するように構成され、
前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期に当該いずれか一方の充電電圧を検出し、検出された当該充電電圧が所定の代表電圧を超える場合には、所定の基準値よりも前記同一値を低くする補正データを生成し、検出された当該充電電圧が前記代表電圧未満の場合には、所定の基準値よりも前記同一値を高くする補正データを生成することを特徴とする請求項1に記載の発振回路。
The threshold setting circuit (20) is configured to set the first threshold and the second threshold as the same value,
The correction unit (4) is configured to charge one of the first capacitor (C1) and the second capacitor (C2) when the switching control circuit (8) is switched to a discharge target. When the detected charging voltage exceeds a predetermined representative voltage, correction data for generating the same value lower than a predetermined reference value is generated, and the detected charging voltage is detected by the representative voltage. 2. The oscillation circuit according to claim 1, wherein if it is less, correction data for generating the same value higher than a predetermined reference value is generated.
前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を同一値として設定するように構成され、
前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)が放電対象に切り替えられた時期に当該第1コンデンサ(C1)の充電電圧を検出し、前記第2コンデンサ(C2)が放電対象に切り替えられた時期に当該第2コンデンサ(C2)の充電電圧を検出し、それら検出された前記第1コンデンサ(C1)の充電電圧及び前記第2コンデンサ(C2)の充電電圧を反映した統計値が所定の代表電圧を超える場合には、所定の基準値よりも前記同一値を低くする補正データを生成し、前記統計値が前記代表電圧未満の場合には、所定の基準値よりも前記同一値を高くする補正データを生成することを特徴とする請求項1に記載の発振回路。
The threshold setting circuit (20) is configured to set the first threshold and the second threshold as the same value,
The correction unit (4) detects a charging voltage of the first capacitor (C1) at a time when the first capacitor (C1) is switched to a discharge target by the switching control circuit (8), and the second capacitor The charging voltage of the second capacitor (C2) is detected at the time when (C2) is switched to the discharge target, and the detected charging voltage of the first capacitor (C1) and the charging of the second capacitor (C2) are detected. When the statistical value reflecting the voltage exceeds a predetermined representative voltage, correction data for generating the same value lower than a predetermined reference value is generated. When the statistical value is less than the representative voltage, a predetermined data is generated. The oscillation circuit according to claim 1, wherein correction data for generating the same value higher than a reference value is generated.
前記閾値設定回路(20)は、前記第1閾値及び前記第2閾値を別々に設定可能とされており、
前記第1比較回路(11)は、前記第1コンデンサ(C1)の充電電圧が前記第1閾値に達したタイミングで前記第2信号を出力し、
前記第2比較回路(13)は、前記第2コンデンサ(C2)の充電電圧が前記第2閾値に達したタイミングで前記第4信号を出力し、
前記切替制御回路(4)は、前記第1比較回路(11)から前記第2信号が出力されたときに前記第1コンデンサ(C1)を充電対象から放電対象に切り替える制御を行い、前記第2比較回路(13)から前記第4信号が出力されたときに前記第2コンデンサ(C2)を充電対象から放電対象に切り替える制御を行い、
前記補正部(4)は、
前記切替制御回路(8)によって前記第1コンデンサ(C1)が放電対象に切り替えられた時期に当該第1コンデンサ(C1)の充電電圧を検出し、検出された当該第1コンデンサ(C1)の充電電圧が所定の代表電圧を超える場合には、所定の第1基準値よりも相対的に前記第1閾値を低くする第1補正データを生成し、検出された当該第1コンデンサ(C1)の充電電圧が前記代表電圧未満の場合には、所定の第1基準値よりも前記第1閾値を高くする第1補正データを生成し、
前記切替制御回路(8)によって前記第2コンデンサ(C2)が放電対象に切り替えられた時期に当該第2コンデンサ(C2)の充電電圧を検出し、検出された当該第2コンデンサ(C2)の充電電圧が前記代表電圧と同一又は異なる第2代表電圧を超える場合には、前記第1基準値と同一又は異なる所定の第2基準値よりも前記第2閾値を低くする第2補正データを生成し、検出された当該第2コンデンサ(C2)の充電電圧が前記第2代表電圧未満の場合には、前記第2基準値よりも前記第2閾値を高くする第2補正データを生成することを特徴とする請求項1に記載の発振回路。
The threshold setting circuit (20) is capable of setting the first threshold and the second threshold separately,
The first comparison circuit (11) outputs the second signal at a timing when a charging voltage of the first capacitor (C1) reaches the first threshold,
The second comparison circuit (13) outputs the fourth signal at a timing when a charging voltage of the second capacitor (C2) reaches the second threshold value,
The switching control circuit (4) performs control to switch the first capacitor (C1) from a charging target to a discharging target when the second signal is output from the first comparison circuit (11), and When the fourth signal is output from the comparison circuit (13), the second capacitor (C2) is controlled to be switched from the charging target to the discharging target,
The correction unit (4)
The charging voltage of the first capacitor (C1) is detected at the time when the first capacitor (C1) is switched to the discharge target by the switching control circuit (8), and the detected charging of the first capacitor (C1) is detected. When the voltage exceeds a predetermined representative voltage, first correction data for lowering the first threshold value relative to a predetermined first reference value is generated, and the detected charging of the first capacitor (C1) is performed. If the voltage is less than the representative voltage, generating first correction data for making the first threshold value higher than a predetermined first reference value;
The charging voltage of the second capacitor (C2) is detected when the second capacitor (C2) is switched to the discharge target by the switching control circuit (8), and the detected charging of the second capacitor (C2) is detected. When the voltage exceeds a second representative voltage that is the same as or different from the representative voltage, second correction data that lowers the second threshold value than a predetermined second reference value that is the same as or different from the first reference value is generated. When the detected charging voltage of the second capacitor (C2) is less than the second representative voltage, second correction data for generating the second threshold value higher than the second reference value is generated. The oscillation circuit according to claim 1.
定電流を発生させる定電流源(15)と、
前記定電流源(15)と導通可能に構成され、前記定電流源(15)から供給される定電流によって充電を行い得る第1コンデンサ(C1)及び第2コンデンサ(C2)と、
前記第1コンデンサ(C1)に充電された充電電圧又は前記第2コンデンサ(C2)に充電された充電電圧を入力電圧とし、当該入力電圧が所定閾値未満である場合に所定の第1信号を出力し、前記所定閾値以上である場合に前記第1信号とは異なる第2信号を出力する比較回路と、
前記所定閾値を設定する閾値設定回路(20)と、
前記比較回路から出力される信号に基づき、前記定電流源(15)からの充電対象を前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方とし、他方を放電対象とするように切り替え、且つ前記充電対象とされたコンデンサの充電電圧を前記比較回路の前記入力電圧とするように切り替える切替制御回路(8)と、
前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期での当該いずれか一方の充電電圧、又は両コンデンサがそれぞれ放電対象に切り替えられた各時期での各充電電圧に基づいて、前記閾値設定回路(20)で設定される前記所定閾値の補正に用いる補正データを生成する補正部(4)と、
前記補正部によって生成される前記補正データに基づいて前記閾値設定回路が前記所定閾値を設定するように制御する制御部(3)と、
を有することを特徴とする発振回路。
A constant current source (15) for generating a constant current;
A first capacitor (C1) and a second capacitor (C2) configured to be electrically connected to the constant current source (15) and capable of being charged by a constant current supplied from the constant current source (15);
A charging voltage charged in the first capacitor (C1) or a charging voltage charged in the second capacitor (C2) is used as an input voltage, and a predetermined first signal is output when the input voltage is less than a predetermined threshold value. A comparator circuit that outputs a second signal different from the first signal when the threshold is equal to or greater than the predetermined threshold;
A threshold setting circuit (20) for setting the predetermined threshold;
Based on the signal output from the comparison circuit, the charging target from the constant current source (15) is one of the first capacitor (C1) and the second capacitor (C2), and the other is the discharging target. And a switching control circuit (8) that switches the charging voltage of the capacitor to be charged as the input voltage of the comparison circuit;
The charging voltage at the time when either one of the first capacitor (C1) and the second capacitor (C2) is switched to the discharge target by the switching control circuit (8), or both capacitors are respectively A correction unit (4) for generating correction data used for correcting the predetermined threshold value set by the threshold value setting circuit (20) based on each charging voltage at each time when it is switched to a discharge target;
A control unit (3) for controlling the threshold value setting circuit to set the predetermined threshold value based on the correction data generated by the correction unit;
An oscillation circuit comprising:
前記切替制御回路(8)は、充電対象となっている一方のコンデンサの充電電圧が前記所定閾値以上になった場合に、充電対象を他方のコンデンサとするように切り替え、且つその切り替えタイミングよりも所定時間経過した後に、次回の充電対象の切り替えを許可することを特徴とする請求項5に記載の発振回路。   The switching control circuit (8) switches the charging target to be the other capacitor when the charging voltage of one capacitor to be charged is equal to or higher than the predetermined threshold, and the switching timing is higher than the switching timing. 6. The oscillation circuit according to claim 5, wherein switching of a next charging target is permitted after a predetermined time has elapsed. 前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれか一方が放電対象に切り替えられた時期に当該いずれか一方の充電電圧を検出し、検出された当該充電電圧が所定の代表電圧を超える場合には、所定の基準値よりも前記所定閾値を低くする補正データを生成し、検出された当該充電電圧が前記代表電圧未満の場合には、前記基準値よりも前記所定閾値を高くする補正データを生成することを特徴とする請求項5又は請求項6に記載の発振回路。   The correction unit (4) is configured to charge one of the first capacitor (C1) and the second capacitor (C2) when the switching control circuit (8) is switched to a discharge target. When the detected charging voltage exceeds a predetermined representative voltage, correction data for generating the predetermined threshold value lower than a predetermined reference value is generated, and the detected charging voltage is the representative voltage. 7. The oscillation circuit according to claim 5, wherein if it is less than the correction value, correction data for generating the predetermined threshold value higher than the reference value is generated. 前記補正部(4)は、前記切替制御回路(8)によって前記第1コンデンサ(C1)が放電対象に切り替えられた時期に当該第1コンデンサ(C1)の充電電圧を検出し、前記第2コンデンサ(C2)が放電対象に切り替えられた時期に当該第2コンデンサ(C2)の充電電圧を検出し、それら検出された前記第1コンデンサ(C1)の充電電圧及び前記第2コンデンサ(C2)の充電電圧を反映した統計値が所定の代表電圧を超える場合には、所定の基準値よりも前記所定閾値を低くする補正データを生成し、前記統計値が前記代表電圧未満の場合には、前記基準値よりも前記所定閾値を高くする補正データを生成することを特徴とする請求項5又は請求項6に記載の発振回路。   The correction unit (4) detects a charging voltage of the first capacitor (C1) at a time when the first capacitor (C1) is switched to a discharge target by the switching control circuit (8), and the second capacitor The charging voltage of the second capacitor (C2) is detected at the time when (C2) is switched to the discharge target, and the detected charging voltage of the first capacitor (C1) and the charging of the second capacitor (C2) are detected. When the statistical value reflecting the voltage exceeds a predetermined representative voltage, correction data for generating the predetermined threshold value lower than a predetermined reference value is generated. When the statistical value is lower than the representative voltage, the reference value is generated. 7. The oscillation circuit according to claim 5, wherein correction data for generating the predetermined threshold value higher than a value is generated. 前記補正部は、前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)の少なくともいずれかの充電電圧をデジタル信号に変換するAD変換器(7)を備え、
前記AD変換器に入力される信号の経路を、前記第1コンデンサ(C1)及び前記第2コンデンサ(C2)のいずれかに接続される第1経路と、他のアナログ信号発生源(30)に接続される第2経路とに切り替える経路切替部(3)を有することを特徴とする請求項1から請求項8のいずれか一項に記載の発振回路。
The correction unit includes an AD converter (7) that converts a charging voltage of at least one of the first capacitor (C1) and the second capacitor (C2) into a digital signal,
A path of a signal input to the AD converter is connected to a first path connected to one of the first capacitor (C1) and the second capacitor (C2) and another analog signal generation source (30). The oscillation circuit according to any one of claims 1 to 8, further comprising a path switching unit (3) for switching to a connected second path.
JP2012234447A 2012-04-04 2012-10-24 Oscillator circuit Expired - Fee Related JP5920170B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012234447A JP5920170B2 (en) 2012-04-04 2012-10-24 Oscillator circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2012085220 2012-04-04
JP2012085220 2012-04-04
JP2012234447A JP5920170B2 (en) 2012-04-04 2012-10-24 Oscillator circuit

Publications (2)

Publication Number Publication Date
JP2013232877A JP2013232877A (en) 2013-11-14
JP5920170B2 true JP5920170B2 (en) 2016-05-18

Family

ID=49678937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012234447A Expired - Fee Related JP5920170B2 (en) 2012-04-04 2012-10-24 Oscillator circuit

Country Status (1)

Country Link
JP (1) JP5920170B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6498481B2 (en) * 2015-03-12 2019-04-10 ラピスセミコンダクタ株式会社 Oscillation circuit and oscillation method
JP7629490B1 (en) 2023-08-04 2025-02-13 三栄ハイテックス株式会社 Oscillator Circuit

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008306356A (en) * 2007-06-06 2008-12-18 Nec Electronics Corp Triangle wave generator
US8054141B2 (en) * 2008-12-31 2011-11-08 Stmicroelectronics, Inc. Method and circuit for cancelling out comparator-delay in the relaxation oscillator
JP2013038744A (en) * 2011-08-11 2013-02-21 Renesas Electronics Corp Oscillation circuit and semiconductor integrated circuit having the same

Also Published As

Publication number Publication date
JP2013232877A (en) 2013-11-14

Similar Documents

Publication Publication Date Title
JP5786388B2 (en) Switching power supply device with low-voltage malfunction prevention circuit
US10594303B2 (en) Temperature sensor circuit and semiconductor device including the same
US8570021B2 (en) DC/DC converter having a delay generator circuit positioned between a comparator and a pulse generator and a DC/DC converter control method
KR101285218B1 (en) Duty cycle correction circuit and duty cycle correction method
US20140132307A1 (en) Comparator and calibration thereof
EP3394969A1 (en) Digitally controlled zero voltage switching
CN102832915B (en) Programmable power-on reset system
US9716398B2 (en) Auto correction driving device and wireless charger driving system using the same
CA2770381C (en) Dead-time generating circuit and motor control apparatus
US8890629B2 (en) Oscillator circuit with comparator
JP5920170B2 (en) Oscillator circuit
US9143151B2 (en) Pulse generator and analog-digital converter including the same
US9374101B2 (en) Sensor device including high-resolution analog to digital converter
JP2016063697A (en) Failure detection circuit for switching element
US7420499B2 (en) Analog-to-digital converter and threshold-value correcting method
US9000810B2 (en) Quantizer, comparator circuit, and semiconductor integrated circuit
US8803557B2 (en) Comparator circuit and signal comparison method
US10033355B2 (en) Electric power supply device and semiconductor device
JP5739850B2 (en) Switching power supply
US10879794B2 (en) DC-DC controller with DCM control
JP5634233B2 (en) Isolated switching power supply
JP5641908B2 (en) Control circuit
JP6026248B2 (en) Switching power supply and control circuit thereof
US20060049855A1 (en) Integrated circuit
CN108649900B (en) Oscillator link delay correction circuit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150915

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151005

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160328

R151 Written notification of patent or utility model registration

Ref document number: 5920170

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees