JP5565349B2 - Oscillation frequency correction device - Google Patents

Oscillation frequency correction device Download PDF

Info

Publication number
JP5565349B2
JP5565349B2 JP2011060712A JP2011060712A JP5565349B2 JP 5565349 B2 JP5565349 B2 JP 5565349B2 JP 2011060712 A JP2011060712 A JP 2011060712A JP 2011060712 A JP2011060712 A JP 2011060712A JP 5565349 B2 JP5565349 B2 JP 5565349B2
Authority
JP
Japan
Prior art keywords
resistor
value
oscillator
constant current
setting value
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
JP2011060712A
Other languages
Japanese (ja)
Other versions
JP2012199622A (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 JP2011060712A priority Critical patent/JP5565349B2/en
Publication of JP2012199622A publication Critical patent/JP2012199622A/en
Application granted granted Critical
Publication of JP5565349B2 publication Critical patent/JP5565349B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Inductance-Capacitance Distribution Constants And Capacitance-Resistance Oscillators (AREA)
  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Description

本発明は、CR発振回路の発振周波数を補正する発振周波数補正装置に関する。   The present invention relates to an oscillation frequency correction device that corrects an oscillation frequency of a CR oscillation circuit.

一般に、基準クロックを生成するためには発振子が用いられる。例えば水晶発振子は高価であるため水晶発振子を用いないCR発振回路が各種用途に用いられる。CR発振器は、その発振周波数が環境温度変化および電源電圧変化に応じて変化し易く、特に温度が多様に変化する環境下(特に車載機器内)では基準クロックとして適用しにくい。   In general, an oscillator is used to generate a reference clock. For example, since a crystal oscillator is expensive, a CR oscillation circuit that does not use a crystal oscillator is used for various purposes. The CR oscillator easily changes its oscillation frequency in accordance with changes in environmental temperature and power supply voltage, and is difficult to apply as a reference clock in an environment where the temperature changes in various ways (especially in an in-vehicle device).

例えば、車載LANの通信プロトコルであるLIN(Local Interconnect Network)では、マスタノードから送信されるフレームのヘッダに0x55なるシンクバイトフィールド(Synch Field)が付加されている。スレーブノードでは、基準クロックを用いてシンクバイトフィールドの時間を計数することによって1ビット時間の正確な値を算出して通信レートを得る。このとき、基準クロックを用いて1ビット時間を算出するが、発振周波数が変化しやすいCR発振器を用いると誤差が生じやすい。 For example, in LIN (Local Interconnect Network), which is a communication protocol for in-vehicle LAN, a sync byte field (Synch Field) of 0x55 is added to the header of a frame transmitted from a master node. In the slave node, the communication rate is obtained by calculating an accurate value of one bit time by counting the time of the sync byte field using the reference clock. At this time, one bit time is calculated using the reference clock, but an error is likely to occur when a CR oscillator whose oscillation frequency is likely to change is used.

これに対し、特許文献1記載の技術では、温度変化に応じて発振周波数が変化した場合、CR発振回路の時定数を変化させることなく、通信回路のデータ送信時間が一定となるよう制御するマイコンが開示されている。このマイコンは、通信回路が管理する1フレームのデータ送信時間を一定とするため、通信レートCMRを決定するデータを読出し、決定した通信レートCMRを通信回路に設定する。また、データが不足する温度領域では、高低2点間を一次関数で補間することで近似の通信レートCMRを得ている。   On the other hand, in the technique described in Patent Document 1, when the oscillation frequency changes according to the temperature change, the microcomputer that controls the data transmission time of the communication circuit to be constant without changing the time constant of the CR oscillation circuit. Is disclosed. The microcomputer reads data for determining the communication rate CMR and sets the determined communication rate CMR in the communication circuit in order to make the data transmission time of one frame managed by the communication circuit constant. In a temperature region where data is insufficient, an approximate communication rate CMR is obtained by interpolating between two points of high and low with a linear function.

しかしながら、この特許文献1記載のCR発振器では、同じ温度条件、電源電圧条件であっても時間経過とともに徐々に発振周波数が変化してしまい、発振周波数の経年変化に対応できない。そこで、CR発振周波数の経年変化に対応するための技術が提案されている(特許文献2参照)。この特許文献2の技術では、通信処理に使用される同期信号を利用して正しい周波数を算出することで発振周波数の経年変化への対応を図っている。   However, in the CR oscillator described in Patent Document 1, the oscillation frequency gradually changes with time even under the same temperature condition and power supply voltage condition, and cannot cope with the secular change of the oscillation frequency. Therefore, a technique for coping with the secular change of the CR oscillation frequency has been proposed (see Patent Document 2). In the technique of Patent Document 2, the correct frequency is calculated using a synchronization signal used for communication processing to cope with the secular change of the oscillation frequency.

特開2006−270917号公報JP 2006-270917 A 特開2009−111967号公報JP 2009-111967 A

しかしながら、特許文献2の技術では、何らかの影響により通信が遮断された場合等において、同期信号の検出ができなくなったときには正しい周波数を算出することができず、発振周波数の経年変化に対応できなくなる。   However, in the technique of Patent Document 2, when communication is interrupted due to some influence or the like, when the synchronization signal cannot be detected, the correct frequency cannot be calculated, and it becomes impossible to cope with the secular change of the oscillation frequency.

本発明は、上記事情に鑑みてなされたもので、その目的は、同期信号の検出が困難なときにも正確な発振周波数のクロック信号を生成できるようにした発振周波数補正装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object thereof is to provide an oscillation frequency correction device capable of generating a clock signal having an accurate oscillation frequency even when it is difficult to detect a synchronization signal. is there.

請求項1記載の発明によれば、CR発振器は第1抵抗器の抵抗値に応じた原発振信号を出力するが、CR発振回路はこの原発振信号を周期設定値に基づいて逓倍/分周してクロック信号を出力する。このためクロック信号を所望の周波数で出力できる。この場合、第2抵抗器はCR発振器内に第1抵抗器と同種の抵抗により構成され、通常動作時には第1定電流源から第2抵抗器に定電流を通電するため、第1抵抗器の経年劣化に伴う抵抗値変化が第2抵抗器の抵抗値に反映されることになる。   According to the first aspect of the present invention, the CR oscillator outputs an original oscillation signal corresponding to the resistance value of the first resistor, and the CR oscillation circuit multiplies / divides the original oscillation signal based on the period setting value. To output a clock signal. For this reason, a clock signal can be output at a desired frequency. In this case, the second resistor is composed of the same type of resistor as the first resistor in the CR oscillator, and a constant current is passed from the first constant current source to the second resistor during normal operation. The change in resistance value due to aging is reflected in the resistance value of the second resistor.

測定手段は、劣化検出タイミングには第2定電流源から第2抵抗器に定電流を通電するように切替えて第2抵抗器の電圧を測定するため、第1抵抗器の抵抗値の経年変化に対応した第2抵抗器の電圧を測定できる。この場合、第1定電流源を用いず第2定電流源を用いて第2抵抗器の電圧を測定しているため、第1定電流源の電流供給能力が経年変化していたとしても、その影響を受けることなく第2抵抗器の電圧を測定できる。   The measuring means switches the second constant current source to pass a constant current from the second constant current source at the deterioration detection timing and measures the voltage of the second resistor, so that the resistance value of the first resistor changes over time. The voltage of the second resistor corresponding to can be measured. In this case, since the voltage of the second resistor is measured using the second constant current source without using the first constant current source, even if the current supply capability of the first constant current source has changed over time, The voltage of the second resistor can be measured without being affected by the influence.

補正手段は、測定手段の測定電圧に基づいてCR発振回路の周期設定値を補正するため、CR発振器の第1抵抗器の経年変化に伴う抵抗値変化を反映してCR発振回路のクロック信号の発振周波数を補正できる。これにより、同期信号の検出が困難なときにも正確な発振周波数のクロック信号を生成して出力できる。   The correction means corrects the period setting value of the CR oscillation circuit based on the measurement voltage of the measurement means, and therefore reflects the change in the resistance value accompanying the secular change of the first resistor of the CR oscillator and reflects the clock signal of the CR oscillation circuit. The oscillation frequency can be corrected. Thus, even when it is difficult to detect the synchronization signal, it is possible to generate and output a clock signal having an accurate oscillation frequency.

しかも、第1定電流源および第2定電流源は、CR発振器内の第1抵抗器に通電する平均電流値とほぼ同一電流を第2抵抗器に通電可能に構成されているため、CR発振器内の第1抵抗器の劣化状態を忠実に再現できる。 In addition, since the first constant current source and the second constant current source are configured so that the second resistor can be supplied with substantially the same current value as the average current supplied to the first resistor in the CR oscillator, the CR oscillator The deterioration state of the first resistor can be faithfully reproduced.

請求項2記載の発明によれば、CR発振器は第1抵抗器に応じた原発振信号を出力するが、CR発振回路はこの原発振信号を周期設定値に基づいて逓倍/分周してクロック信号を出力するためクロック信号を所望の周波数で出力できる。定電流源は、CR発振器内の第1抵抗器にスイッチを介して直列接続されており、通常動作時にはCR発振器が通常動作するようにスイッチが切替えられ、劣化検出タイミングには定電流源から第1抵抗器に定電流を通電するようにスイッチが切替えられる。測定手段は、その劣化検出タイミングにて第1抵抗器の電圧を測定するため、第1抵抗器の抵抗値の経年変化に伴う第1抵抗器の電圧を測定できる。 According to the second aspect of the present invention, the CR oscillator outputs an original oscillation signal corresponding to the first resistor, and the CR oscillation circuit multiplies / divides the original oscillation signal based on the period setting value to generate a clock. In order to output a signal, a clock signal can be output at a desired frequency. The constant current source is connected in series to the first resistor in the CR oscillator via a switch. During normal operation, the switch is switched so that the CR oscillator operates normally. The switch is switched to pass a constant current through one resistor. Since the measuring means measures the voltage of the first resistor at the deterioration detection timing, it can measure the voltage of the first resistor accompanying the secular change of the resistance value of the first resistor.

したがって、補正手段が、測定手段の測定電圧に基づいてCR発振回路の周期設定値を補正すると、CR発振器の第1抵抗器の経年変化に伴う抵抗値の変化を反映してCR発振回路のクロック信号の発振周波数を補正できる。これにより、同期信号の検出が困難なときにも正確な発振周波数でクロック信号を出力できる。   Therefore, when the correction means corrects the period setting value of the CR oscillation circuit based on the measurement voltage of the measurement means, the change of the resistance value accompanying the secular change of the first resistor of the CR oscillator is reflected and the clock of the CR oscillation circuit is reflected. The oscillation frequency of the signal can be corrected. As a result, the clock signal can be output at an accurate oscillation frequency even when it is difficult to detect the synchronization signal.

請求項3、4記載の発明のように、測定手段を、劣化検出タイミングを電源投入時点として第2抵抗器、第1抵抗器の電圧を測定するように構成すると良い。また、請求項5、6記載の発明のように、第1抵抗器、第2抵抗器がCrSi抵抗により構成されていると温度変化に対する抵抗値の変化度を低くできる。 As in the third and fourth aspects of the invention, the measuring means may be configured to measure the voltages of the second resistor and the first resistor with the deterioration detection timing as the power-on time. Further, if the first resistor and the second resistor are constituted by CrSi resistors as in the inventions of claims 5 and 6 , the degree of change in resistance value with respect to temperature change can be lowered.

請求項7〜10記載の発明によれば、補正手段は、第2抵抗器の測定電圧に対応した抵抗値が初期抵抗値に対し所定率以上の変化があったことを条件としてCR発振回路の周期設定値を補正しているため、補正処理回数を削減できる。特に、請求項8、10記載の発明によれば、補正手段は、複数回所定率以上の変化があったことを条件としてCR発振回路の周期設定値を補正しているため、誤検出を極力抑制できる。また、請求項11記載の発明のように、CR発振回路の周期設定値を所定周期毎に補正するように補正手段を設けても良い。
According to the seventh to tenth aspects of the present invention, the correction means is configured so that the resistance value of the CR oscillation circuit is changed on the condition that the resistance value corresponding to the measured voltage of the second resistor has changed by a predetermined rate or more with respect to the initial resistance value. Since the cycle setting value is corrected, the number of correction processes can be reduced. In particular, according to the eighth and tenth aspects of the invention, the correction means corrects the cycle set value of the CR oscillation circuit on condition that a change of a predetermined rate or more has occurred a plurality of times. Can be suppressed. Further, as in the invention described in claim 11 , correction means may be provided so as to correct the period set value of the CR oscillation circuit at every predetermined period.

本発明の第1の実施形態について示すマイクロコンピュータの電気的な機能ブロック図1 is an electrical functional block diagram of a microcomputer shown in the first embodiment of the present invention. CR発振器の電気的構成図Electrical configuration of CR oscillator 発振周波数の経年変化に伴う補正処理を示すフローチャートFlow chart showing the correction process accompanying the secular change of the oscillation frequency 発振周波数と逓倍数設定値FMULRの相関関係特性図Oscillation frequency and multiplication factor setting value FMULR correlation characteristic diagram 発振周波数の温度補正処理を示すフローチャートFlow chart showing temperature correction processing of oscillation frequency LINのメッセージフレームの構成を示す図The figure which shows the structure of the message frame of LIN 本発明の第1の実施形態の変形例を示す図3相当図FIG. 3 equivalent view showing a modification of the first embodiment of the present invention. 本発明の第2の実施形態を示す図3相当図FIG. 3 equivalent view showing the second embodiment of the present invention 本発明の第3の実施形態を示す図3相当図FIG. 3 equivalent view showing a third embodiment of the present invention 本発明の第4の実施形態を示す図3相当図FIG. 3 equivalent view showing the fourth embodiment of the present invention 本発明の第5の実施形態を示す図1相当図FIG. 1 equivalent view showing a fifth embodiment of the present invention A/D変換器とCR発振器の電気的接続形態を示す説明図Explanatory drawing which shows the electrical connection form of A / D converter and CR oscillator

(第1の実施形態)
以下、本発明の発振周波数補正装置をマイクロコンピュータに適用した第1の実施形態について図1ないし図6を参照しながら説明する。
(First embodiment)
Hereinafter, a first embodiment in which the oscillation frequency correction apparatus of the present invention is applied to a microcomputer will be described with reference to FIGS.

図1は、車両のECU(Electronic Control Unit)に搭載されているワンチップマイクロコンピュータの電気的構成を示す機能ブロック図である。このマイコン1は、CPU(測定手段、補正手段に相当)2、EEPROM3、RAM4、ROM5、A/D変換器6、例えばUART(Universal Asynchronous Receiver/Transmitter)などの通信回路7、CR発振回路8、温度検出回路9および劣化検出回路10を備えている。EEPROM3、RAM4、ROM5、A/D変換器6、通信回路7およびCR発振回路8は、それぞれ、データバス11aおよびアドレスバス11bを介してCPU2に接続されている。これらの各回路には電源線12およびグランド13を通じて電源電圧Vccが供給されている。   FIG. 1 is a functional block diagram showing an electrical configuration of a one-chip microcomputer mounted on an ECU (Electronic Control Unit) of a vehicle. The microcomputer 1 includes a CPU (corresponding to measurement means and correction means) 2, an EEPROM 3, a RAM 4, a ROM 5, an A / D converter 6, a communication circuit 7 such as a UART (Universal Asynchronous Receiver / Transmitter), a CR oscillation circuit 8, A temperature detection circuit 9 and a deterioration detection circuit 10 are provided. The EEPROM 3, RAM 4, ROM 5, A / D converter 6, communication circuit 7 and CR oscillation circuit 8 are connected to the CPU 2 via a data bus 11a and an address bus 11b, respectively. A power supply voltage Vcc is supplied to each of these circuits through a power supply line 12 and a ground 13.

CR発振回路8は、CR発振器14およびDPLL(Digital Phase Lock Loop)15から構成されている。図2は、CR発振器14の電気的構成を示す。CR発振器14は、電源線12およびグランド13間に接続された分圧抵抗Ra,Rb,Rcと、この分圧抵抗Ra,Rb,Rc間の2つの共通ノードの電圧出力をそれぞれオンオフ切替えして出力するスイッチSW1,SW2と、このスイッチSW1,SW2の出力が非反転入力端子に与えられるコンパレータCP1と、コンパレータCP1の出力を反転入力端子に帰還する抵抗器R1と、コンパレータCP1の反転入力端子とグランド13との間に接続されたコンデンサC1とを備えている。   The CR oscillation circuit 8 includes a CR oscillator 14 and a DPLL (Digital Phase Lock Loop) 15. FIG. 2 shows an electrical configuration of the CR oscillator 14. The CR oscillator 14 switches on / off the voltage outputs of the voltage dividing resistors Ra, Rb, Rc connected between the power supply line 12 and the ground 13 and two common nodes between the voltage dividing resistors Ra, Rb, Rc, respectively. Switches SW1 and SW2 to be output, a comparator CP1 to which the outputs of the switches SW1 and SW2 are applied to a non-inverting input terminal, a resistor R1 that feeds back the output of the comparator CP1 to an inverting input terminal, and an inverting input terminal of the comparator CP1 And a capacitor C1 connected to the ground 13.

発振定常状態においては、スイッチSW1がオンすると共にスイッチSW2がオフし、コンパレータCP1の出力が「H」状態でコンデンサC1に充電される。コンデンサC1の充電電圧Vcが抵抗RaおよびRbの共通接続ノードの電圧VT+を上回ると、コンパレータCP1の出力が「L」になる。コンパレータCP1の出力が「L」状態においてはスイッチSW1がオフすると共にスイッチSW2がオンし、コンデンサC1の充電電荷が抵抗器R1およびコンパレータCP1の出力端子を通じて放電される。   In the steady oscillation state, the switch SW1 is turned on and the switch SW2 is turned off, and the capacitor C1 is charged with the output of the comparator CP1 in the “H” state. When the charging voltage Vc of the capacitor C1 exceeds the voltage VT + of the common connection node of the resistors Ra and Rb, the output of the comparator CP1 becomes “L”. When the output of the comparator CP1 is in the “L” state, the switch SW1 is turned off and the switch SW2 is turned on, and the charge of the capacitor C1 is discharged through the resistor R1 and the output terminal of the comparator CP1.

そして、コンデンサC1の充電電圧Vcが抵抗RbおよびRcの共通接続ノードの電圧VT−を下回ると、コンパレータCP1の出力が「H」になり、スイッチSW1がオンすると共にスイッチSW2がオフする。このような状態が繰り返されることにより発振状態が継続し、出力(原発振信号VO)は矩形波信号となる。   When the charging voltage Vc of the capacitor C1 falls below the voltage VT− at the common connection node of the resistors Rb and Rc, the output of the comparator CP1 becomes “H”, the switch SW1 is turned on and the switch SW2 is turned off. By repeating such a state, the oscillation state continues, and the output (original oscillation signal VO) becomes a rectangular wave signal.

図1に戻って、DPLL回路15は、CR発振器14の発振信号を逓倍数設定値FMULRに基づいて逓倍し、さらに、分周比設定値FDIVRに基づいて分周してクロック信号CLKを生成して出力する。逓倍数設定値FMULRおよび分周比設定値FDIVRは周期設定値に相当し、それぞれCR発振回路8内に設けられるレジスタに格納される。クロック信号CLKは、マイコン1のシステムクロックとしてCPU2、A/D変換器6、通信回路7などに供給される。本実施形態では、周期設定値として分周比設定値FDIVRを一定とし逓倍数設定値FMULRを補正する場合について説明するが、逓倍数設定値FMULRを一定とし分周比設定値FDIVRを補正し、または、逓倍数設定値FMULRおよび分周比設定値FDIVRの両者を補正するようにしても良い。   Returning to FIG. 1, the DPLL circuit 15 multiplies the oscillation signal of the CR oscillator 14 based on the multiplication number setting value FMULR, and further divides the frequency based on the division ratio setting value FDIVR to generate the clock signal CLK. Output. The multiplication number setting value FMULR and the division ratio setting value FDIVR correspond to the cycle setting value and are stored in registers provided in the CR oscillation circuit 8, respectively. The clock signal CLK is supplied to the CPU 2, the A / D converter 6, the communication circuit 7 and the like as the system clock of the microcomputer 1. In the present embodiment, a case will be described in which the division ratio setting value FDIVR is made constant as the cycle setting value and the multiplication number setting value FMULR is corrected. However, the multiplication number setting value FMULR is made constant and the division ratio setting value FDIVR is corrected, Alternatively, both the multiplication number setting value FMULR and the frequency division ratio setting value FDIVR may be corrected.

温度検出回路9は、電源線12とグランド13との間に接続された抵抗16とダイオード17〜19との直列回路により構成されている。抵抗16とダイオード17の接続ノードはA/D変換器6に接続されている。ダイオード17〜19の順方向電圧Vfは、−2.0〜−2.5mV/℃の温度特性を有している。温度検出回路9は、基板上でCR発振器14に近接した位置に配置されており、CR発振器14(またはその周辺)の温度を検出できる。CPU2はA/D変換器6を介して抵抗16とダイオード17の接続ノードの電圧3・Vfを検出することで、A/D変換器6の検出AD変換値に応じたCR発振器14(またはその周辺)の温度を検出できる。   The temperature detection circuit 9 is configured by a series circuit of a resistor 16 and diodes 17 to 19 connected between the power supply line 12 and the ground 13. A connection node between the resistor 16 and the diode 17 is connected to the A / D converter 6. The forward voltage Vf of the diodes 17 to 19 has a temperature characteristic of −2.0 to −2.5 mV / ° C. The temperature detection circuit 9 is disposed on the substrate at a position close to the CR oscillator 14 and can detect the temperature of the CR oscillator 14 (or its surroundings). The CPU 2 detects the voltage 3 · Vf at the connection node of the resistor 16 and the diode 17 via the A / D converter 6, thereby allowing the CR oscillator 14 (or its corresponding) according to the detected AD conversion value of the A / D converter 6. Temperature) can be detected.

劣化検出回路10は、電源線12およびグランド13間に定電流源20、スイッチ21、抵抗器22を直列接続した通常時劣化状態形成回路を備える。また、スイッチ21と抵抗器22との間の共通接続点をノードN1とすると、劣化検出回路10は、電源線12とノードN1との間に定電流源23とスイッチ24とを直列接続した経年劣化検出タイミング動作回路を備える。スイッチ21およびスイッチ24と抵抗器22との共通接続ノードN1はA/D変換器6に接続されている。抵抗器22は、温度変化に応じた抵抗値変化率の少ないCrSi抵抗により構成されている。製品出荷当初は、定電流源20と定電流源23は同一電流値を供給可能な特性となっている。これらの定電流源20および23がそれぞれ供給する定電流値は、所定電流値(例えば、CR発振器14内の抵抗器R1に通電する平均電流値とほぼ同一電流)に設定されている。   The deterioration detection circuit 10 includes a normal deterioration state forming circuit in which a constant current source 20, a switch 21, and a resistor 22 are connected in series between a power line 12 and a ground 13. Further, assuming that the common connection point between the switch 21 and the resistor 22 is a node N1, the deterioration detection circuit 10 has aged over a constant current source 23 and a switch 24 connected in series between the power supply line 12 and the node N1. A deterioration detection timing operation circuit is provided. A common connection node N1 between the switch 21 and the switch 24 and the resistor 22 is connected to the A / D converter 6. The resistor 22 is composed of a CrSi resistor having a small resistance value change rate corresponding to a temperature change. At the beginning of product shipment, the constant current source 20 and the constant current source 23 have a characteristic capable of supplying the same current value. The constant current values supplied by these constant current sources 20 and 23 are set to predetermined current values (for example, substantially the same current value as the average current value flowing through the resistor R1 in the CR oscillator 14).

通信回路7は、車載LANのシリアル通信プロトコルであるLINのスレーブノードとして機能するものである。通信回路7がフレーム(データ信号に相当)を受信するときの各ビットの取込タイミングおよび通信回路7が送信する際の通信レート(ボーレート)は、CR発振回路8から出力されるクロック信号CLKの周波数に基づいて規定されるため、クロック信号CLKの周波数(周期)が変動すると送受信処理に支障が生じる。   The communication circuit 7 functions as a slave node of LIN, which is a serial communication protocol for in-vehicle LAN. The timing for fetching each bit when the communication circuit 7 receives a frame (corresponding to a data signal) and the communication rate (baud rate) when the communication circuit 7 transmits the clock signal CLK output from the CR oscillation circuit 8 are as follows. Since it is defined based on the frequency, if the frequency (cycle) of the clock signal CLK fluctuates, the transmission / reception processing is hindered.

LIN仕様2.0によれば、マスタノードの発振周波数の許容誤差(Oscillator Tolerance)は±0.5%未満であり、スレーブノードの発振周波数の許容誤差は±1.5%未満である。また、スレーブノードにおける同期前の規定周波数からのずれは±14%未満である。したがって、一般的なCR発振回路を用いて経年劣化をも考慮して例えば−40℃から+125℃の広範な温度範囲で発振周波数を±1.5%未満の変動に保つことは極めて困難である。   According to LIN specification 2.0, the master node oscillation frequency tolerance (Oscillator Tolerance) is less than ± 0.5%, and the slave node oscillation frequency tolerance is less than ± 1.5%. The deviation from the specified frequency before synchronization in the slave node is less than ± 14%. Therefore, it is extremely difficult to keep the oscillation frequency within a fluctuation of less than ± 1.5% in a wide temperature range of, for example, −40 ° C. to + 125 ° C. in consideration of aging deterioration using a general CR oscillation circuit. .

またスレーブノードでは、頻繁に通信処理を行わないノードも存在し、このような場合、温度検出回路9を用いたクロック信号CLKの補正処理が行われないと、発振周波数を所望の変動範囲に保持することは困難である。   In addition, in the slave node, there is a node that does not frequently perform communication processing. In such a case, if the correction processing of the clock signal CLK using the temperature detection circuit 9 is not performed, the oscillation frequency is held in a desired fluctuation range. It is difficult to do.

そこで、本実施形態では、温度検出回路9を用いて温度特性の補正、電源電圧変動特性の補正処理をほぼ常時行うと共に、電源投入時の劣化検出タイミングにおいて抵抗器22の抵抗値(実際にはAD変換値)に応じた補正処理を行う。これにより、経年劣化に伴う抵抗値変化を検出し当該検出結果に応じた補正を行うことができる。   Therefore, in this embodiment, the temperature detection circuit 9 is used to perform temperature characteristic correction and power supply voltage fluctuation characteristic correction processing almost constantly, and the resistance value of the resistor 22 (actually, at the deterioration detection timing at power-on). A correction process corresponding to the AD conversion value is performed. As a result, it is possible to detect a change in resistance value due to aging deterioration and perform correction according to the detection result.

前記した構成の動作を説明する。まず、マイコン1を製品として出荷する前の工程において、逓倍数設定値FMULRの初期値を設定しEEPROM3に書込む。すなわち、マイコン1を所定の温度Tの環境下で動作させ、クロック信号CLKが規定周波数(例えば4MHz)に一致するように逓倍数設定値FMULRを決定する。そして、A/D変換器6が出力するAD変換値(検出温度Tと等価)と前記で設定した逓倍数設定値FMULRとを対応させてEEPROM3に書込む。これを複数の温度(例えば、−40℃、25℃、125℃)の3点以上で実行する。また、所定℃(例えば1℃)ステップで全て実行して書き込んでも良い。   The operation of the above configuration will be described. First, in the process before the microcomputer 1 is shipped as a product, the initial value of the multiplication number setting value FMULR is set and written in the EEPROM 3. That is, the microcomputer 1 is operated in an environment of a predetermined temperature T, and the multiplication number setting value FMULR is determined so that the clock signal CLK matches a specified frequency (for example, 4 MHz). Then, the AD conversion value (equivalent to the detected temperature T) output from the A / D converter 6 and the multiplication number setting value FMULR set above are written in the EEPROM 3 in association with each other. This is performed at three or more points of a plurality of temperatures (for example, −40 ° C., 25 ° C., 125 ° C.). Further, all may be executed and written at a predetermined degree Celsius (for example, 1 degree Celsius) step.

また、製品ごとに逓倍数設定値FMULRを決定して書き込むことに代えて設計値または当該製品ロットの代表値等に基づいて逓倍数設定値FMULRを算出し、それをAD変換値(検出温度T)に対応させてEEPROM3に書き込むようにしても良い。これは、逓倍数設定値FMULRに多少の誤差が存在したとしても学習処理によって誤差をキャンセルできるためである。   Further, instead of determining and writing the multiplication number setting value FMULR for each product, the multiplication number setting value FMULR is calculated based on the design value or the representative value of the product lot, and the converted value setting value FMULR is converted into an AD conversion value (detected temperature T ) May be written in the EEPROM 3 correspondingly. This is because the error can be canceled by the learning process even if there is some error in the multiplication number setting value FMULR.

また、製品出荷時には、例えばスイッチ21がオン状態、スイッチ24がオフ状態の通常状態(デフォルト)に設定されている。通常状態では、スイッチ21がオン状態に設定されているため、定電流源20が抵抗器22に常に定電流を供給する。定電流源20が供給する定電流値は、CR発振器14内の抵抗器R1に通電する平均電流値とほぼ同一電流に設定されているため、抵抗器R1の抵抗値の経年変化率を抵抗器22の抵抗値の経年変化率に反映できる。   When the product is shipped, for example, the normal state (default) in which the switch 21 is on and the switch 24 is off is set. In the normal state, since the switch 21 is set to the on state, the constant current source 20 always supplies a constant current to the resistor 22. Since the constant current value supplied from the constant current source 20 is set to be substantially the same as the average current value supplied to the resistor R1 in the CR oscillator 14, the aging rate of the resistance value of the resistor R1 is set as the resistor. This can be reflected in the aging rate of 22 resistance values.

図3は、製品出荷後にマイコン1が実行するCR発振周期の補正処理をフローチャートにより示している。
電源投入(エンジン始動)されると、マイコン1は初めに図3に示す劣化検出処理を行う。劣化検出タイミングにおいて、CPU2は、劣化検出回路10側にA/D変換器6の入力を切替え、スイッチ21をオフ状態に切替えると共にスイッチ24をオン状態に切替える(S1)。
FIG. 3 is a flowchart showing a CR oscillation cycle correction process executed by the microcomputer 1 after product shipment.
When the power is turned on (engine start), the microcomputer 1 first performs the deterioration detection process shown in FIG. At the deterioration detection timing, the CPU 2 switches the input of the A / D converter 6 to the deterioration detection circuit 10 side, switches the switch 21 to the off state, and switches the switch 24 to the on state (S1).

劣化検出タイミングにおいて、定電流源23は抵抗器22に定電流を供給する。CPU2は、劣化検出回路10のノードN1の電圧をA/D変換器6によりAD変換値として取得する(S2)。このAD変換値は、抵抗器22の抵抗値に依存した値となる。   The constant current source 23 supplies a constant current to the resistor 22 at the deterioration detection timing. The CPU 2 acquires the voltage at the node N1 of the deterioration detection circuit 10 as an AD conversion value by the A / D converter 6 (S2). This AD conversion value depends on the resistance value of the resistor 22.

次に、CPU2は、劣化検出回路10の出力電圧Vから算出される抵抗器22の抵抗値と初期抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出する(S3)。ここでは、CPU2は、抵抗器22が時間経過に応じて変化する抵抗変化率を算出し、この値に応じた逓倍数設定値FMULRの補正値を算出している。CPU2は、EEPROM3に記憶されている全温度の逓倍数設定値FMULRを順次読出し、この読み出した全ての逓倍数設定値FMULRに同一の補正値を加減算して更新する(S4)。 Next, the CPU 2 calculates a correction value of the multiplication number setting value FMULR according to the rate of change between the resistance value of the resistor 22 and the initial resistance value calculated from the output voltage VR of the deterioration detection circuit 10 (S3). . Here, the CPU 2 calculates a resistance change rate at which the resistor 22 changes with time, and calculates a correction value for the multiplication number setting value FMULR according to this value. The CPU 2 sequentially reads out all temperature multiplication number setting values FMULR stored in the EEPROM 3, and adds and updates the same correction value to all of the read multiplication number setting values FMULR (S4).

製品出荷当初は、定電流源20と定電流源23は同一電流値を抵抗器22に供給するよう設定されているため、A/D変換器6を介して得られるAD変換値はほぼ標準値となり、どちらに切り替えたとしてもAD変換値(抵抗値)はほぼ同一値となる。したがって、CPU2は初期抵抗値との変化率に応じて逓倍数設定値FMULRを補正したとしても補正前のFMULRと補正後のFMULRとがほぼ一致した値となる。   Since the constant current source 20 and the constant current source 23 are set to supply the same current value to the resistor 22 at the time of product shipment, the AD conversion value obtained via the A / D converter 6 is almost a standard value. Thus, the AD conversion value (resistance value) becomes almost the same value regardless of which one is switched. Therefore, even if the CPU 2 corrects the multiplication number setting value FMULR according to the rate of change from the initial resistance value, the FMULR before correction and the FMULR after correction are approximately the same.

しかし、CR発振器14の動作中(マイコン1の動作中)には、定電流源20は抵抗器22に常時電流を供給し続けるため、マイコン1の動作時間が積算されると、定電流源20による抵抗器22電圧のAD変換値(抵抗値)は、劣化検出タイミングにしか動作しない定電流源23による抵抗器22電圧のAD変換値(抵抗値)と異なる。   However, during operation of the CR oscillator 14 (during operation of the microcomputer 1), the constant current source 20 continues to supply current to the resistor 22, so that when the operation time of the microcomputer 1 is integrated, the constant current source 20 The AD conversion value (resistance value) of the resistor 22 voltage is different from the AD conversion value (resistance value) of the resistor 22 voltage by the constant current source 23 that operates only at the deterioration detection timing.

マイコン1の動作中にCR発振器14内の抵抗器R1の平均通電電流とほぼ同一電流が抵抗器22に供給されているときには、抵抗器22の劣化状態は抵抗器R1の劣化状態とほぼ同様となり当該抵抗器R1の劣化状態を忠実に再現できる。したがって、ステップS3においてCPU2は抵抗器22の初期抵抗値との変化率に応じて逓倍数設定値FMULRを補正することで、CR発振器14内の抵抗器R1の劣化状況を反映して発振周波数を補正できる。   When the microcomputer 1 is in operation, when the resistor 22 is supplied with substantially the same current as the average energization current of the resistor R1 in the CR oscillator 14, the deterioration state of the resistor 22 is substantially the same as the deterioration state of the resistor R1. The deterioration state of the resistor R1 can be faithfully reproduced. Therefore, in step S3, the CPU 2 corrects the multiplication number setting value FMULR in accordance with the rate of change from the initial resistance value of the resistor 22, thereby reflecting the deterioration state of the resistor R1 in the CR oscillator 14 to set the oscillation frequency. Can be corrected.

図4(a)および図4(b)は、温度変化に対するCR発振器14の発振周波数(黒丸)と逓倍数設定値FMULR(白丸)の特性を示している。図4(a)は補正前の特性を示しており、図4(b)は、逓倍数設定値FMULRの補正方法を示している。また、図4(c)は、時間経過に伴うノードN1の検出電圧値Vの変化を示している。 FIGS. 4A and 4B show the characteristics of the oscillation frequency (black circle) of the CR oscillator 14 and the multiplication number setting value FMULR (white circle) with respect to temperature changes. FIG. 4A shows characteristics before correction, and FIG. 4B shows a correction method for the multiplication number setting value FMULR. Further, FIG. 4 (c) shows a change of the detected voltage value V R of the node N1 over time.

図4(a)に示すように、CR発振器14は、一般に温度上昇とともに発振周波数が低下する特性を持っているため、逓倍数設定値FMULRは温度上昇とともに増加する特性となる。図4(c)に示すように、時間経過に伴い抵抗器22の抵抗値は徐々に増加する傾向にある。   As shown in FIG. 4A, since the CR oscillator 14 generally has a characteristic that the oscillation frequency decreases as the temperature rises, the multiplication number set value FMULR increases as the temperature rises. As shown in FIG. 4C, the resistance value of the resistor 22 tends to gradually increase with time.

ΔRを抵抗値の経年変化値、ΔfをCR発振器14の発振周波数の経年変化値とすると、
ΔR∝Δf …(1)
の関係がある。図4(b)に示す例の場合、抵抗器22の劣化(抵抗器R1の劣化)に伴い当該抵抗値がn%増加しCR発振器14の発振周波数(クロック信号CLKの周波数)がn%低下したため、全温度の逓倍数設定値FMULRをn%増加させる補正を行っていることを示している。
When ΔR is the secular change value of the resistance value and Δf is the secular change value of the oscillation frequency of the CR oscillator 14,
ΔR∝Δf (1)
There is a relationship. In the case of the example shown in FIG. 4B, the resistance value increases by n% with the deterioration of the resistor 22 (deterioration of the resistor R1), and the oscillation frequency of the CR oscillator 14 (frequency of the clock signal CLK) decreases by n%. Therefore, it is shown that correction is performed to increase the set value FMULR for all temperatures by n%.

なお、本実施形態の抵抗器22はCrSi抵抗により構成されているため、温度変化に応じた抵抗値変化率が少なく、ステップS3において予め定められた初期抵抗値との変化率のみで逓倍数設定値FMULRの補正値を求めたとしても適切な補正値を求めることができる。   In addition, since the resistor 22 of this embodiment is comprised by CrSi resistance, there is little resistance value change rate according to a temperature change, and a multiplication factor is set only by the change rate with the initial resistance value previously determined in step S3. Even if the correction value of the value FMULR is obtained, an appropriate correction value can be obtained.

このような経年劣化に基づく補正処理を行った後、マイコン1は、図5に示す処理を定期的に行う。この図5において、CPU2は、A/D変換器6の入力切替を行い温度検出回路9の電圧3・Vfを入力し、当該A/D変換器6を通じて電圧3・VfのAD変換値を入力する(T1)。このA/D変換器6のAD変換値はCR発振器14の温度に対応する。そして、CPU2は、EEPROM3からAD変換値(検出温度)に対応した逓倍数設定値FMULRを読み出し(T2)、レジスタに設定する(T3)。   After performing the correction process based on such aged deterioration, the microcomputer 1 periodically performs the process shown in FIG. In FIG. 5, the CPU 2 switches the input of the A / D converter 6, inputs the voltage 3 · Vf of the temperature detection circuit 9, and inputs the AD conversion value of the voltage 3 · Vf through the A / D converter 6. (T1). The AD conversion value of the A / D converter 6 corresponds to the temperature of the CR oscillator 14. Then, the CPU 2 reads the multiplication number setting value FMULR corresponding to the AD conversion value (detected temperature) from the EEPROM 3 (T2), and sets it in the register (T3).

その後、DPLL回路15は、レジスタFMULRの値に従って原発振信号を逓倍し、一定の分周比設定値FDIVRに従って分周してクロック信号CLKを出力する。そして、CPU2はLINのマスタノードから送信された同期信号を検出したか否か判定する(T4)。   After that, the DPLL circuit 15 multiplies the original oscillation signal according to the value of the register FMULR, divides the frequency according to a certain division ratio setting value FDIVR, and outputs the clock signal CLK. Then, the CPU 2 determines whether or not the synchronization signal transmitted from the LIN master node is detected (T4).

図6は、LINのフレーム構成を示している。マスタノードはメッセージフレームを送信するが、このマスタノードが送信したフレームのヘッダは、LINメッセージフレームの開始を示す13ビット長のシンクブレークフィールド(Synch Break)、クロック(通信速度)補正を行うための0x55のデータとなるシンクバイトフィールド(Synch Field)、および、マスタタスクがレスポンス送信を行うスレーブタスクを指定するためのアイデントフィールド(Ident Field)を備える。   FIG. 6 shows a LIN frame configuration. The master node transmits a message frame. The header of the frame transmitted by the master node is a 13-bit sync break field (Synch Break) indicating the start of the LIN message frame, and clock (communication speed) correction. A sync byte field (Synch Field) serving as data of 0x55, and an identifier field (Ident Field) for designating a slave task to which the master task transmits a response are provided.

通信回路7がブレークフィールドとシンクバイトフィールドを受信した時点でそれがヘッダであることを認識できる。通信回路7が同期信号であるシンクバイトフィールドを含む受信処理をしていない期間には、ステップT1〜T4の処理が繰り返し行われる。この期間は、逓倍数設定値FMULRの補正がなされず、EEPROM3にすでに記憶されている逓倍数設定値FMULRを用いてクロック信号CLKが生成される。   When the communication circuit 7 receives the break field and sync byte field, it can recognize that it is a header. During the period when the communication circuit 7 does not perform the reception process including the sync byte field that is a synchronization signal, the processes of steps T1 to T4 are repeated. During this period, the multiplication number setting value FMULR is not corrected, and the clock signal CLK is generated using the multiplication number setting value FMULR already stored in the EEPROM 3.

他方、通信回路7がシンクバイトフィールドを受信すると1ビット時間を計測する(T5)。具体的には、シンクバイトフィールドのスタートビットと第7ビットの両ダウンエッジの間の時間8Tビットをクロック信号CLKで計数することにより計測し、この計数値を8で除することで1ビット時間の計数値XAを得る。例えば、マスタノードが9600bpsの正確な通信レートで送信した場合、クロック信号CLKが正確に4MHzであれば計数値は416となる。   On the other hand, when the communication circuit 7 receives the sync byte field, it measures one bit time (T5). More specifically, the time 8T bits between the start bit of the sync byte field and the down edge of the seventh bit are measured by counting with the clock signal CLK, and the counted value is divided by 8 to obtain one bit time. The count value XA is obtained. For example, if the master node transmits at an accurate communication rate of 9600 bps, the count value is 416 if the clock signal CLK is exactly 4 MHz.

この1ビット時間(1/9600=104.2μs)に対する基準周期(1/4MHz=0.25μs)に基づく計数値を基準計数値XBとする。CPU2は、以下の(2)式により補正後の逓倍数設定値FMULRを演算し(T6)、それをDPLL回路15のレジスタに設定する。設定後、DPLL回路15は補正後の新たな逓倍数設定値FMULRに応じて原発振信号を逓倍する。   A count value based on the reference period (1/4 MHz = 0.25 μs) with respect to this 1-bit time (1/9600 = 104.2 μs) is set as a reference count value XB. The CPU 2 calculates the corrected multiplication number setting value FMULR by the following equation (2) (T6), and sets it in the register of the DPLL circuit 15. After the setting, the DPLL circuit 15 multiplies the original oscillation signal according to the corrected new multiplication number setting value FMULR.

補正後のFMULR=現在のFMULR × XB / XA …(2)
その後、補正後の逓倍数設定値FMULRをAD変換値(検出温度T)に対応させてEEPROM3に書込む(T7)。当該検出温度Tに対応する逓倍数設定値FMULRが既にEEPROM3に書き込まれている場合には設定値の更新となり、書き込まれていない場合には新たに逓倍数設定値FMULRをEEPROM3に書き込むことになる。
FMULR after correction = current FMULLR × XB / XA (2)
Thereafter, the corrected multiplication number setting value FMULR is written in the EEPROM 3 in correspondence with the AD conversion value (detected temperature T) (T7). If the multiplier set value FMULR corresponding to the detected temperature T has already been written in the EEPROM 3, the set value is updated. If not, the multiplier set value FMULR is newly written in the EEPROM 3. .

CPU2は、マスタノードから送られてくるフレームの同期信号を受信するごとに、クロック信号CLKを計数して1ビット長を計測する。LINでは、マスタノードから正確な通信レートでフレームが送信されてくるので、CPU2は、上記1ビット長のクロック信号CLKによる計数値XAと正規の1ビット時間を基準周期で除して得られる基準計数値XBとに基づいて逓倍数設定値FMULRを補正し、補正後の逓倍数設定値FMULRを検出温度Tに対応させてEEPROM3に書き込む。このような図5の処理が繰り返されることによって、CR発振器14の温度検出結果に応じて逓倍数設定値FMULRを補正し発振周波数を補正できる。   Each time the CPU 2 receives a frame synchronization signal transmitted from the master node, the CPU 2 counts the clock signal CLK and measures the 1-bit length. In LIN, since a frame is transmitted from the master node at an accurate communication rate, the CPU 2 obtains the reference value obtained by dividing the count value XA by the 1-bit clock signal CLK and the regular 1-bit time by the reference period. Based on the count value XB, the multiplication number setting value FMULR is corrected, and the corrected multiplication number setting value FMULR is written in the EEPROM 3 in association with the detected temperature T. By repeating the processing of FIG. 5 as described above, it is possible to correct the oscillation frequency by correcting the multiplier setting value FMULR according to the temperature detection result of the CR oscillator 14.

したがって、CR発振器14の温度を示すAD変換値とCR発振回路8の逓倍数を決める逓倍数設定値FMULRとが対応付けられてEEPROM3に記憶されているときに、マイコン1の動作中は、AD変換値(検出温度T)に応じた逓倍数設定値FMULRを読み出してCR発振回路8のレジスタに設定するので、温度変化によりCR発振器14の発振周波数がずれてもクロック信号CLKの周波数を一定化できる。   Therefore, when the AD conversion value indicating the temperature of the CR oscillator 14 and the multiplication number setting value FMULR that determines the multiplication number of the CR oscillation circuit 8 are stored in the EEPROM 3 in association with each other, the AD during the operation of the microcomputer 1 Since the multiplier setting value FMULR corresponding to the converted value (detected temperature T) is read and set in the register of the CR oscillation circuit 8, the frequency of the clock signal CLK is made constant even if the oscillation frequency of the CR oscillator 14 is shifted due to a temperature change. it can.

<第1の実施形態のまとめ>
以上説明したように、本実施形態によれば、電源投入時の劣化検出タイミングにおいて、定電流源23から抵抗器22に通電して得られたA/D変換器6のAD変換値(抵抗器22の端子電圧V)に基づいて、CPU2が逓倍数設定値FMULRを補正する。この場合、定電流源20を用いず定電流源23が作動して抵抗器22に通電するため、定電流源20の電流供給能力が経年変化していたとしても当該経年変化の影響を排除することができ、抵抗器22の抵抗値変化のみを正確に測定できる。
<Summary of First Embodiment>
As described above, according to the present embodiment, the AD conversion value (resistor) of the A / D converter 6 obtained by energizing the resistor 22 from the constant current source 23 at the deterioration detection timing when the power is turned on. 22 based on the terminal voltage V R) of, CPU 2 corrects the multiplication number setting value FMULR. In this case, since the constant current source 23 operates and energizes the resistor 22 without using the constant current source 20, even if the current supply capability of the constant current source 20 changes over time, the influence of the change over time is eliminated. Thus, only the resistance value change of the resistor 22 can be accurately measured.

そして、CPU2は、抵抗器22の端子電圧(抵抗器22の抵抗値)を測定することで抵抗器R1の抵抗値の経年変化を反映し、この変化に基づいてCR発振回路8のクロック信号CLKの発振周波数を補正しているため、正確な発振周波数のクロック信号CLKを出力できる。したがって、通信回路7が何らかの原因で通信処理できない、もしくは、スレーブノードの通信回路7がメッセージフレームを受信せず補正処理がなされない状態が長期間継続し、通信回路7の同期信号を検出しない(できない)ときであっても、正確な発振周波数のクロック信号CLKを出力できる。   Then, the CPU 2 reflects the secular change of the resistance value of the resistor R1 by measuring the terminal voltage of the resistor 22 (the resistance value of the resistor 22), and based on this change, the clock signal CLK of the CR oscillation circuit 8 is reflected. Therefore, the clock signal CLK having an accurate oscillation frequency can be output. Therefore, the communication circuit 7 cannot perform communication processing for some reason, or the slave circuit communication circuit 7 does not receive the message frame and the correction processing is not performed for a long time, and the synchronization signal of the communication circuit 7 is not detected ( The clock signal CLK having an accurate oscillation frequency can be output even when it is not possible.

また、電源投入時の劣化検出タイミングにおいて、CPU2は、劣化検出回路10の出力電圧Vから算出される抵抗器22の抵抗値と予め定められた初期抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出しているため適切な補正値を算出できる。また、CR発振器14の発振を停止することなく抵抗器R1の抵抗値変化を検出できる。 Further, the deterioration detection timing at power-on, CPU 2 is the multiplication factor according to the change rate of the initial resistance value set in advance and the resistance value of the resistor 22 is calculated from the output voltage V R of the degradation detection circuit 10 Since the correction value of the set value FMULR is calculated, an appropriate correction value can be calculated. Further, a change in resistance value of the resistor R1 can be detected without stopping the oscillation of the CR oscillator 14.

温度変化または経年変化に関わらずクロック信号CLKの周波数が一定となるため、クロック信号CLKをシステムクロックとして用いることができる。その結果、発振子が不要となり、発振子を用いてシステムクロックを生成した従来のマイコンに比較して低コストとなる。   Since the frequency of the clock signal CLK is constant regardless of temperature change or secular change, the clock signal CLK can be used as a system clock. As a result, an oscillator is not required, and the cost is lower than that of a conventional microcomputer that uses the oscillator to generate a system clock.

また、CR発振器14に経年変化が生じた場合に、全ての逓倍数設定値FMULRを一度に補正できる。また、極端に高い温度や低い温度などのように発生頻度が少ない温度に対応した逓倍数設定値FMULRも補正できるため、当該温度に対応した逓倍数設定値FMULRが放置される事態を防ぐことができる。   Further, when a secular change occurs in the CR oscillator 14, all the multiplication number setting values FMULR can be corrected at a time. In addition, since the multiplier setting value FMULR corresponding to a temperature with a low occurrence frequency such as an extremely high temperature or a low temperature can be corrected, it is possible to prevent the multiplication factor setting value FMULR corresponding to the temperature from being left unattended. it can.

<第1の実施形態の変形例>
図7は、抵抗器22の抵抗値が温度依存性を有する抵抗(Nwell抵抗等)によって構成される場合の図3に相当するフローチャートを示している。抵抗器22の初期抵抗値は複数の温度(例えば、−40℃、25℃、125℃)に応じて予め測定されEEPROM3に記憶されている。
<Modification of First Embodiment>
FIG. 7 shows a flowchart corresponding to FIG. 3 when the resistance value of the resistor 22 is constituted by a temperature-dependent resistor (Nwell resistor or the like). The initial resistance value of the resistor 22 is measured in advance according to a plurality of temperatures (for example, −40 ° C., 25 ° C., 125 ° C.) and stored in the EEPROM 3.

本変形例が図3に示す処理と異なるところは、CPU2が劣化検出の抵抗切替処理(U2)よりも前に、温度検出回路9によりA/D変換器6を通じてCR発振器14の温度を検出し(U1)、この検出温度に対応した初期抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出し(U4)、検出温度に対応した逓倍数設定値FMULRに加減算して更新している(U5)ところである。なお、ステップU3の処理はステップS2と同一処理である。   3 differs from the process shown in FIG. 3 in that the CPU 2 detects the temperature of the CR oscillator 14 through the A / D converter 6 by the temperature detection circuit 9 before the resistance switching process (U2) for detecting the deterioration. (U1), a correction value of the multiplication number setting value FMULR is calculated according to the rate of change from the initial resistance value corresponding to the detected temperature (U4), and is updated by adding / subtracting to the multiplication number setting value FMULR corresponding to the detected temperature (U5) By the way. In addition, the process of step U3 is the same process as step S2.

ステップU4では、ステップU1で検出した検出温度に対応した初期抵抗値との変化率を求め、この変化率に応じて逓倍数設定値FMULRを補正している。この場合、検出温度のAD変換値に対応した初期抵抗値が存在しないときには、例えば、初期抵抗値のAD変換値を挟む2点のAD変換値に対応した初期抵抗値に基づいて一次関数で補間(比例計算)して検出温度に対応した初期抵抗値を求めると良い。   In step U4, the rate of change from the initial resistance value corresponding to the detected temperature detected in step U1 is obtained, and the multiplication number setting value FMULR is corrected according to this rate of change. In this case, when there is no initial resistance value corresponding to the AD conversion value of the detected temperature, for example, interpolation is performed with a linear function based on the initial resistance values corresponding to the two AD conversion values sandwiching the AD conversion value of the initial resistance value. The initial resistance value corresponding to the detected temperature may be obtained by (proportional calculation).

また、ステップU5において、検出温度のAD変換値に対応した逓倍数設定値FMULRが存在しない場合には、例えば、AD変換値を挟む2点のAD変換値に対応した逓倍数設定値FMULRに基づいて一次関数で補間(比例計算)して逓倍数設定値FMULRを求め、この逓倍数設定値FMULRを新たに検出温度に対応して記憶させるようにすると良い。   In Step U5, when there is no multiplication number setting value FMULR corresponding to the AD conversion value of the detected temperature, for example, based on the multiplication number setting value FMULR corresponding to two AD conversion values sandwiching the AD conversion value. Then, interpolation (proportional calculation) is performed using a linear function to obtain a multiplication number setting value FMULR, and this multiplication number setting value FMULR is newly stored corresponding to the detected temperature.

本変形例によれば、抵抗器22がNwell抵抗等により構成されていたとしても、CPU2は、CR発振器14の温度を検出した検出温度に対応した初期抵抗値と、当該検出温度に対応し劣化検出回路10の出力電圧VのAD変換値に対応した抵抗器22の抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出し、検出温度に対応した逓倍数設定値FMULRに加減算して更新しているため、適切な補正値を算出でき、正確な発振周波数のクロック信号CLKを生成できる。 According to this modification, even if the resistor 22 is configured by an Nwell resistor or the like, the CPU 2 deteriorates corresponding to the initial resistance value corresponding to the detected temperature at which the temperature of the CR oscillator 14 is detected and corresponding to the detected temperature. calculates a correction value of the multiplication number setting value FMULR according to the change rate of the resistance value of the resistor 22 corresponding to the AD converted value of the output voltage V R of the detection circuit 10, multiplication number setting value corresponding to the detected temperature FMULR Therefore, an appropriate correction value can be calculated and a clock signal CLK having an accurate oscillation frequency can be generated.

(第2の実施形態)
図8は、本発明の第2の実施形態を示すもので、前述実施形態と異なるところは、抵抗器の測定電圧に対応した抵抗値が初期抵抗値に対し所定率以上の変化があったことを条件としてCR発振回路の周期設定値を補正しているところにある。前述実施形態と同一部分、同一または類似機能の部分には同一符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Second Embodiment)
FIG. 8 shows a second embodiment of the present invention. The difference from the previous embodiment is that the resistance value corresponding to the measured voltage of the resistor has changed by a predetermined rate or more with respect to the initial resistance value. The period set value of the CR oscillation circuit is being corrected under the conditions. The same parts as those of the above-described embodiment, the same or similar function parts are denoted by the same reference numerals, description thereof is omitted, and different parts will be described below.

図8は、図3に代えてマイコン1が電源投入後に行う処理のフローチャートを示している。この図8に示すように、CPU2はA/D変換器6のAD変換値を入力し(V1)、このAD変換値を初期抵抗値と比較する(V2)。なお、ステップV1のAD変換値は抵抗器22の抵抗値に相当する。そして、CPU2は、初期抵抗値との変化率に対し所定率k%以上の変化を検出した(V3:YES)ことを条件として、初期抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出し(V4)、記憶されている全温度の逓倍数設定値FMULRに加減算して更新する(V5)。   FIG. 8 shows a flowchart of processing performed after the power is turned on by the microcomputer 1 instead of FIG. As shown in FIG. 8, the CPU 2 inputs the AD conversion value of the A / D converter 6 (V1), and compares this AD conversion value with the initial resistance value (V2). Note that the AD conversion value in step V1 corresponds to the resistance value of the resistor 22. Then, the CPU 2 detects a change of a predetermined rate k% or more with respect to the change rate with respect to the initial resistance value (V3: YES), and sets the multiplier set value FMULR according to the change rate with the initial resistance value. A correction value is calculated (V4), and is updated by adding to or subtracting from the stored multiplication number setting value FMULR of all temperatures (V5).

すなわち、CPU2は、抵抗器22の抵抗値が初期抵抗値に対しk%未満の変化しかしていないのであれば経年変化による影響は少ないと判断し、逓倍数設定値FMULRを更新することなく図8に示すルーチンを抜ける。これにより、前述実施形態とほぼ同様の作用効果が得られると共に、電源投入後に逓倍数設定値FMULRの補正を必ずするわけではなくなり補正処理回数を削減できる。   That is, if the resistance value of the resistor 22 has changed by less than k% with respect to the initial resistance value, the CPU 2 determines that the influence of the secular change is small, and without updating the multiplier setting value FMULR, FIG. Exit the routine shown in. As a result, substantially the same operational effects as those of the above-described embodiment can be obtained, and the multiplication number set value FMULR is not necessarily corrected after the power is turned on, and the number of correction processes can be reduced.

(第3の実施形態)
図9は、本発明の第3の実施形態を示すもので、前述実施形態と異なるところは、抵抗器の測定電圧に対応した抵抗値が初期抵抗値に対し複数回の所定率以上の変化があったことを条件としてCR発振回路の周期設定値を補正しているところにある。前述実施形態と同一部分、同一または類似機能の部分には同一符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Third embodiment)
FIG. 9 shows a third embodiment of the present invention. The difference from the previous embodiment is that the resistance value corresponding to the measured voltage of the resistor changes more than a predetermined rate multiple times with respect to the initial resistance value. The period setting value of the CR oscillation circuit is being corrected under the condition that there is a problem. The same parts as those of the above-described embodiment, the same or similar function parts are denoted by the same reference numerals, description thereof is omitted, and different parts will be described below.

図9は、図3に代えてマイコン1が電源投入後に行う処理のフローチャートを示している。この図9に示すように、CPU2はA/D変換器6のAD変換値を入力し(W1)、このAD変換値を初期抵抗値と比較する(W2)。なお、ステップW1のAD変換値は抵抗器22の抵抗値に相当する。そして、CPU2は、初期抵抗値との変化率に対し所定率k%以上の変化がある(W3:YES)と、ステップW4に移行する。そして、この所定率k%以上の変化がX(複数)回目であるか否かを判定する(W4)。CPU2は、X(複数)回以上k%以上の変化があったことを条件として、初期抵抗値との変化率に応じて逓倍数設定値FMULRの補正値を算出し(W5)、記憶されている全温度の逓倍数設定値FMULRに加減算して更新する(W6)。   FIG. 9 shows a flowchart of processing performed after the power is turned on by the microcomputer 1 instead of FIG. As shown in FIG. 9, the CPU 2 inputs the AD conversion value of the A / D converter 6 (W1), and compares this AD conversion value with the initial resistance value (W2). Note that the AD conversion value in step W1 corresponds to the resistance value of the resistor 22. Then, when there is a change of a predetermined rate k% or more with respect to the change rate from the initial resistance value (W3: YES), the CPU 2 proceeds to step W4. Then, it is determined whether or not the change of the predetermined rate k% or more is the Xth (multiple) times (W4). The CPU 2 calculates the correction value of the multiplier set value FMULR according to the rate of change from the initial resistance value on the condition that there has been a change of not less than X (multiple) times and more than k% (W5), and stored. It is updated by adding to or subtracting from the set value FMULR for all the temperatures that are present (W6).

すなわち、CPU2は、このk%以上の変化が複数回以上継続しないとノイズなどの誤検出であると判断する(W4:NO)。そして、抵抗器22の抵抗値が初期抵抗値に対しk%未満の変化しかしていないのであれば経年変化による影響は少ないと判断し(W3:NO)、逓倍数設定値FMULRを更新することなく図9に示すルーチンを抜ける。これにより、前述実施形態とほぼ同様の作用効果が得られると共に、誤検出を極力抑制できる。   In other words, the CPU 2 determines that noise or the like is erroneously detected unless the change of k% or more continues more than once (W4: NO). Then, if the resistance value of the resistor 22 has changed by less than k% with respect to the initial resistance value, it is determined that the influence due to secular change is small (W3: NO), and the multiplier setting value FMULR is not updated. The routine shown in FIG. 9 is exited. Thereby, substantially the same operation effect as the above-mentioned embodiment can be obtained, and erroneous detection can be suppressed as much as possible.

(第4の実施形態)
図10は、本発明の第4の実施形態を示すもので、前述実施形態と異なるところは、所定周期毎にCR発振回路の周期設定値を補正しているところにある。前述実施形態と同一部分、同一または類似機能の部分には同一符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Fourth embodiment)
FIG. 10 shows a fourth embodiment of the present invention. The difference from the previous embodiment is that the period set value of the CR oscillation circuit is corrected every predetermined period. The same parts as those of the above-described embodiment, the same or similar function parts are denoted by the same reference numerals, description thereof is omitted, and different parts will be described below.

図10は、図3に代えてマイコン1が電源投入後に行う処理のフローチャートを示している。CPU2は、タイマ割り込みより例えば1時間毎の抵抗値の検出周期であると判断した(X1:YES)ときに、AD変換値を入力し(X2)、抵抗値の変化率に応じて逓倍数設定値FMULRの補正値を算出し(X3)、記憶されている全温度の逓倍数設定値FMULRに加減算して更新する(X4)。すると、所定周期毎に逓倍数設定値FMULRを補正できる。   FIG. 10 shows a flowchart of processing performed after the power is turned on by the microcomputer 1 instead of FIG. The CPU 2 inputs an AD conversion value (X2) when it is determined from the timer interrupt that, for example, the resistance value detection cycle is 1 hour (X1: YES), and a multiplication number is set according to the change rate of the resistance value. The correction value of the value FMULR is calculated (X3), and is updated by adding to or subtracting from the stored multiplication number setting value FMULR of all temperatures (X4). Then, the multiplication factor set value FMULR can be corrected for each predetermined period.

(第5の実施形態)
図11および図12は、本発明の第5の実施形態を示すもので、CR発振器内の抵抗器にスイッチを切替えて検出することで当該抵抗器の抵抗値の経年変化を検出しているところにある。前述実施形態と同一部分、同一または類似機能の部分には同一符号を付して説明を省略し、以下、異なる部分について説明を行う。
(Fifth embodiment)
FIG. 11 and FIG. 12 show a fifth embodiment of the present invention, where a secular change in the resistance value of the resistor is detected by switching the resistor to the resistor in the CR oscillator and detecting it. It is in. The same parts as those of the above-described embodiment, the same or similar functions are denoted by the same reference numerals, and the description thereof will be omitted.

図11は、図1に代わる回路構成を示している。図11に示すように、CR発振器14内の抵抗器R1にはA/D変換器6が直接接続されている。
図12は、A/D変換器とCR発振器の電気的接続形態を表している。図12に示すように、A/D変換器6は、抵抗器R1の端子間のアナログ信号をデジタル変換するように結線されている。また、コンパレータCP1の出力と反転入力端子との間に3接点スイッチSW3が介在して構成されている。抵抗器R1とコンパレータCP1の出力との間には3接点スイッチSW3の可動接点、一の固定接点が接続されている。3接点スイッチSW3の他の固定接点は、定電流源ISを介して電源線12に接続されている。また、コンデンサC1とグランド13との間にも接点スイッチSW4が接続されている。このような電気的接続形態において、劣化検出回路10に代わる劣化検出回路25は定電流源IS、3接点スイッチSW3、抵抗器R1、接点スイッチSW4により構成される。
FIG. 11 shows a circuit configuration in place of FIG. As shown in FIG. 11, the A / D converter 6 is directly connected to the resistor R1 in the CR oscillator.
FIG. 12 shows an electrical connection form of the A / D converter and the CR oscillator. As shown in FIG. 12, the A / D converter 6 is wired so as to digitally convert an analog signal between the terminals of the resistor R1. Further, a three-contact switch SW3 is interposed between the output of the comparator CP1 and the inverting input terminal. Between the resistor R1 and the output of the comparator CP1, a movable contact and one fixed contact of the three-contact switch SW3 are connected. The other fixed contact of the three-contact switch SW3 is connected to the power supply line 12 via the constant current source IS. A contact switch SW4 is also connected between the capacitor C1 and the ground 13. In such an electrical connection form, the deterioration detection circuit 25 in place of the deterioration detection circuit 10 is constituted by a constant current source IS, a three-contact switch SW3, a resistor R1, and a contact switch SW4.

通常動作状態において、CR発振器14がDPLL回路15に原発振信号VOを出力するときには、CPU2は3接点スイッチSW3の可動接点をコンパレータCP1の出力側に切替え接点スイッチSW4をオフすることで、図2と同一回路形態を保持する。これにより、DPLL回路15はCR発振器14の原発振信号に基づいてクロック信号CLKを生成し各ブロック2〜7に出力する。   When the CR oscillator 14 outputs the original oscillation signal VO to the DPLL circuit 15 in the normal operation state, the CPU 2 switches the movable contact of the three-contact switch SW3 to the output side of the comparator CP1, thereby turning off the contact switch SW4. Keep the same circuit form. Thereby, the DPLL circuit 15 generates the clock signal CLK based on the original oscillation signal of the CR oscillator 14 and outputs it to the blocks 2 to 7.

CPU2は、劣化検出タイミングにて抵抗器R1の抵抗値(すなわち抵抗値の経年変化)を検出するときには、3接点スイッチSW3の可動接点を定電流源IS側の固定接点に切替えると共に、接点スイッチSW4をオンすることで、定電流源IS、3接点スイッチSW3、抵抗器R1、接点スイッチSW4を通じて通電する。   When the CPU 2 detects the resistance value of the resistor R1 (that is, the secular change of the resistance value) at the deterioration detection timing, the CPU 2 switches the movable contact of the three-contact switch SW3 to a fixed contact on the constant current source IS side, and the contact switch SW4. Is turned on to energize through the constant current source IS, the three-contact switch SW3, the resistor R1, and the contact switch SW4.

すると、CR発振器14の原発振信号VOの出力は停止するものの、A/D変換器6は抵抗器R1の抵抗値に依存した電圧のAD変換値を入力できる。DPLL回路15は、電源線12およびグランド13から電源供給された状態が継続されており、クロック信号CLKの発振周波数をロックし当該クロック信号CLKを安定出力していれば、CR発振器14の原発振信号VOが入力されていなくても所定時間の間はクロック信号CLKを各ブロック2〜7に供給し続けることができる。   Then, although the output of the original oscillation signal VO of the CR oscillator 14 is stopped, the A / D converter 6 can input the AD conversion value of the voltage depending on the resistance value of the resistor R1. If the DPLL circuit 15 continues to be supplied with power from the power line 12 and the ground 13 and locks the oscillation frequency of the clock signal CLK and stably outputs the clock signal CLK, the original oscillation of the CR oscillator 14 is performed. Even if the signal VO is not input, the clock signal CLK can be continuously supplied to each of the blocks 2 to 7 for a predetermined time.

このため、A/D変換器6はこのクロック信号CLKに応じて抵抗器R1の端子電圧をサンプリングすることができ、抵抗器R1の抵抗値に応じたAD変換値を入力できる。すると、前述実施形態と同様の作用効果が得られる。しかも、抵抗器R1の抵抗値を直接測定できるため、経年劣化の判定を正確に行うことができる。   Therefore, the A / D converter 6 can sample the terminal voltage of the resistor R1 according to the clock signal CLK, and can input an AD conversion value according to the resistance value of the resistor R1. Then, the same effect as the above-described embodiment can be obtained. In addition, since the resistance value of the resistor R1 can be directly measured, it is possible to accurately determine the aging deterioration.

(他の実施形態)
本発明は、前述した実施形態に限定されるものではなく、例えば、以下に示す変形または拡張が可能である。
(Other embodiments)
The present invention is not limited to the above-described embodiments, and for example, the following modifications or expansions are possible.

スレーブノードのマイコン1は自立したクロック信号CLKを用いて処理を行うときもあり、スレーブノードの通信回路7がマスタノードとの間で通信処理を行わない場合であっても、前述実施形態と同様の作用により逓倍数設定値FMULRや分周比設定値FDIVRなどの周期設定値を補正でき、正確な発振周波数のクロック信号CLKで動作できる。   The slave node microcomputer 1 sometimes performs processing using the independent clock signal CLK, and even when the slave node communication circuit 7 does not perform communication processing with the master node, it is the same as in the previous embodiment. Thus, the cycle setting values such as the multiplication number setting value FMULR and the frequency division ratio setting value FDIVR can be corrected, and the operation can be performed with the clock signal CLK having an accurate oscillation frequency.

逓倍数設定値FMULRと分周比設定値FDIVRを用いてクロック信号CLKの周波数を一定化する場合には、分周比設定値FDIVRも併せてEEPROM3に書き込めばよい。   When the frequency of the clock signal CLK is made constant by using the multiplication number setting value FMULR and the frequency division ratio setting value FDIVR, the frequency division ratio setting value FDIVR may be written together in the EEPROM 3.

図面中、1はマイコン(発振周波数補正装置)、2はCPU(測定手段、補正手段)、8はCR発振回路、14はCR発振器、20は定電流源(第1定電流源)、22は抵抗器(第2抵抗器)、23は定電流源(第2定電流源)、R1は抵抗器(第1抵抗器)、ISは定電流源を示す。   In the drawings, 1 is a microcomputer (oscillation frequency correction device), 2 is a CPU (measurement means, correction means), 8 is a CR oscillation circuit, 14 is a CR oscillator, 20 is a constant current source (first constant current source), 22 is A resistor (second resistor), 23 is a constant current source (second constant current source), R1 is a resistor (first resistor), and IS is a constant current source.

Claims (11)

第1抵抗器に応じた原発振信号を出力するCR発振器を具備し当該CR発振器の原発振信号を周期設定値に基づいて逓倍/分周してクロック信号を出力するCR発振回路と、
前記CR発振器内の第1抵抗器と同種の第2抵抗器と、
前記第2抵抗器に直列接続された第1定電流源と、
前記第1定電流源と同一電流供給特性を備え前記第2抵抗器に直列接続された第2定電流源と、
通常動作時には前記第1定電流源から前記第2抵抗器に定電流が通電された状態において、劣化検出タイミングには前記第2定電流源から前記第2抵抗器に定電流を通電するように切替えて前記第2抵抗器の電圧を測定する測定手段と、
前記測定手段の測定電圧に基づいて前記CR発振回路の周期設定値を補正する補正手段とを備え
前記第1定電流源および前記第2定電流源は、前記CR発振器内の第1抵抗器に通電する平均電流値とほぼ同一電流を前記第2抵抗器に通電可能に構成されていることを特徴とする発振周波数補正装置。
A CR oscillator circuit that includes a CR oscillator that outputs an original oscillation signal corresponding to the first resistor, outputs a clock signal by multiplying / dividing the original oscillation signal of the CR oscillator based on a period setting value;
A second resistor of the same type as the first resistor in the CR oscillator;
A first constant current source connected in series to the second resistor;
A second constant current source having the same current supply characteristics as the first constant current source and connected in series to the second resistor;
In a state where a constant current is supplied from the first constant current source to the second resistor during normal operation, a constant current is supplied from the second constant current source to the second resistor at the deterioration detection timing. Measuring means for switching and measuring the voltage of the second resistor;
Correction means for correcting the period setting value of the CR oscillation circuit based on the measurement voltage of the measurement means ,
The first constant current source and the second constant current source are configured so that the second resistor can be supplied with substantially the same current value as the average current value supplied to the first resistor in the CR oscillator. A characteristic oscillation frequency correction device.
第1抵抗器に応じた原発振信号を出力するCR発振器を具備し当該CR発振器の原発振信号を周期設定値に基づいて逓倍/分周してクロック信号を出力するCR発振回路と、
前記CR発振器内の第1抵抗器にスイッチを介して直列接続された定電流源と、
通常動作時には前記スイッチを切替えて前記CR発振器を動作させた状態において、劣化検出タイミングには前記スイッチが切替えられた状態にて前記定電流源から前記第1抵抗器に定電流を通電して第1抵抗器の電圧を測定する測定手段と、
前記測定手段の測定電圧に基づいて前記CR発振回路の周期設定値を補正する補正手段とを備えたことを特徴とする発振周波数補正装置。
A CR oscillator circuit that includes a CR oscillator that outputs an original oscillation signal corresponding to the first resistor, outputs a clock signal by multiplying / dividing the original oscillation signal of the CR oscillator based on a period setting value;
A constant current source connected in series to the first resistor in the CR oscillator via a switch;
In a state in which the CR oscillator is operated by switching the switch during normal operation, a constant current is supplied from the constant current source to the first resistor in the state in which the switch is switched. Measuring means for measuring the voltage of one resistor;
Oscillation frequency correction device characterized by comprising a correction means for correcting the cycle setting value of the CR oscillation circuit based on the measured voltage of the measuring means.
前記測定手段は、電源投入時点を前記劣化検出タイミングとして第2抵抗器の電圧を測定することを特徴とする請求項1記載の発振周波数補正装置。 It said measuring means, oscillation frequency correction apparatus according to claim 1, wherein measuring the voltage of the second resistor power-on time as said deterioration detection timing. 前記測定手段は、電源投入時点を前記劣化検出タイミングとして第1抵抗器の電圧を測定することを特徴とする請求項2記載の発振周波数補正装置。 3. The oscillation frequency correction apparatus according to claim 2, wherein the measuring unit measures the voltage of the first resistor with the power-on time as the deterioration detection timing . 前記第1抵抗器および前記第2抵抗器は、共にCrSi抵抗により構成されていることを特徴とする請求項1または3記載の発振周波数補正装置。 4. The oscillation frequency correction device according to claim 1, wherein both the first resistor and the second resistor are made of CrSi resistors . 前記第1抵抗器は、CrSi抵抗により構成されていることを特徴とする請求項2または4記載の発振周波数補正装置。 The oscillation frequency correction device according to claim 2 or 4, wherein the first resistor is constituted by a CrSi resistor . 前記補正手段は、前記第2抵抗器の測定電圧に対応した抵抗値が初期抵抗値に対し所定率以上の変化があったことを条件として前記CR発振回路の周期設定値を補正することを特徴とする請求項1、3、5の何れかに記載の発振周波数補正装置。 The correction means corrects the period setting value of the CR oscillation circuit on condition that the resistance value corresponding to the measurement voltage of the second resistor has changed by a predetermined rate or more with respect to the initial resistance value. The oscillation frequency correction device according to claim 1 . 前記補正手段は、複数回の所定率以上の変化があったことを条件として前記CR発振回路の周期設定値を補正することを特徴とする請求項7記載の発振周波数補正装置。 8. The oscillation frequency correction apparatus according to claim 7, wherein the correction unit corrects the cycle setting value of the CR oscillation circuit on condition that the change has occurred at a predetermined rate more than once . 前記補正手段は、前記第1抵抗器の測定電圧に対応した抵抗値が初期抵抗値に対し所定率以上の変化があったことを条件として前記CR発振回路の周期設定値を補正することを特徴とする請求項2、4、6の何れかに記載の発振周波数補正装置。 The correction means corrects the period setting value of the CR oscillation circuit on condition that the resistance value corresponding to the measurement voltage of the first resistor has changed by a predetermined rate or more with respect to the initial resistance value. The oscillation frequency correction device according to any one of claims 2, 4, and 6 . 前記補正手段は、複数回の所定率以上の変化があったことを条件として前記CR発振回路の周期設定値を補正することを特徴とする請求項9記載の発振周波数補正装置。 10. The oscillation frequency correction apparatus according to claim 9, wherein the correction unit corrects the cycle setting value of the CR oscillation circuit on condition that there has been a change more than a predetermined rate a plurality of times . 前記補正手段は、所定周期毎にCR発振回路の周期設定値を補正することを特徴とする請求項1ないし10の何れかに記載の発振周波数補正装置。 The oscillation frequency correction apparatus according to claim 1, wherein the correction unit corrects the cycle setting value of the CR oscillation circuit every predetermined cycle .
JP2011060712A 2011-03-18 2011-03-18 Oscillation frequency correction device Expired - Fee Related JP5565349B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011060712A JP5565349B2 (en) 2011-03-18 2011-03-18 Oscillation frequency correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011060712A JP5565349B2 (en) 2011-03-18 2011-03-18 Oscillation frequency correction device

Publications (2)

Publication Number Publication Date
JP2012199622A JP2012199622A (en) 2012-10-18
JP5565349B2 true JP5565349B2 (en) 2014-08-06

Family

ID=47181451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011060712A Expired - Fee Related JP5565349B2 (en) 2011-03-18 2011-03-18 Oscillation frequency correction device

Country Status (1)

Country Link
JP (1) JP5565349B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114072683B (en) * 2019-05-27 2024-01-05 Oppo广东移动通信有限公司 Temperature measurement method and device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50122851A (en) * 1974-03-15 1975-09-26
JP2001102866A (en) * 1999-09-30 2001-04-13 Denso Corp Cr oscillation circuit
JP2004146866A (en) * 2002-10-21 2004-05-20 Denso Corp Oscillator circuit
JP4791700B2 (en) * 2004-03-29 2011-10-12 株式会社リコー Semiconductor device, semiconductor device adjustment method, and electronic device
JP4462371B2 (en) * 2007-10-12 2010-05-12 株式会社デンソー Data receiving apparatus and microcomputer

Also Published As

Publication number Publication date
JP2012199622A (en) 2012-10-18

Similar Documents

Publication Publication Date Title
US6956516B2 (en) A/D conversion circuit, temperature-sensor circuit, integrated circuit, and method of adjusting the temperature-sensor circuit
US8749224B2 (en) Voltage detection circuit and method for controlling the same
JP4887075B2 (en) Semiconductor integrated circuit
US20050109935A1 (en) Sensor and method of transmitting data in multiple protocols
JP5817566B2 (en) Power detection system
JP5565349B2 (en) Oscillation frequency correction device
US8773293B2 (en) Measurement signal correction apparatus and method for correcting a measurement signal
US7554415B2 (en) Microcomputer including a CR oscillator circuit
JPH10154572A (en) Heater temperature control circuit
US7356719B2 (en) Microcomputer
JPH08298462A (en) Semiconductor device
JP3360814B2 (en) A / D converter
JPH11153630A (en) Measurement of inaccurate clock signal, and method and device for compensating it
US8344817B2 (en) Compensating DFLL with error averaging
US11604483B2 (en) Current generator circuit and diagnostic circuit
JP4462371B2 (en) Data receiving apparatus and microcomputer
US10739168B2 (en) Absolute encoder comprising a clock control circuit to change the pulse width of each backup clock pulse
US7191081B2 (en) Method for correcting an oscillator frequency
JPS59204729A (en) Method and device for converting measuring value of temperature
JP4036114B2 (en) Clock generation circuit
JP5451142B2 (en) Electronic thermometer and operation control method
US8099621B2 (en) Data reception apparatus and microcomputer having the same
JP2004251852A (en) Heat detecting circuit
US20230236071A1 (en) Semiconductor device and physical quantity sensor device
JP2006352646A (en) Isolated signal transmission device, insulated signal processor, and isolated signal transmission method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140403

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: 20140520

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140602

R151 Written notification of patent or utility model registration

Ref document number: 5565349

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

LAPS Cancellation because of no payment of annual fees