JP2011197910A - Clock control circuit and microcomputer - Google Patents

Clock control circuit and microcomputer Download PDF

Info

Publication number
JP2011197910A
JP2011197910A JP2010062800A JP2010062800A JP2011197910A JP 2011197910 A JP2011197910 A JP 2011197910A JP 2010062800 A JP2010062800 A JP 2010062800A JP 2010062800 A JP2010062800 A JP 2010062800A JP 2011197910 A JP2011197910 A JP 2011197910A
Authority
JP
Japan
Prior art keywords
clock
correction
circuit
signal
timer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010062800A
Other languages
Japanese (ja)
Inventor
Katsuaki Nishie
桂亮 西江
Koichiro Yokoyama
耕一郎 横山
Yoichi Fujita
洋一 藤田
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 JP2010062800A priority Critical patent/JP2011197910A/en
Publication of JP2011197910A publication Critical patent/JP2011197910A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the power consumption of a circuit which periodically corrects a low accuracy clock outputted from a low accuracy clock oscillation circuit by using a high accuracy clock outputted from a high accuracy clock oscillation circuit.SOLUTION: A clock control circuit includes: a correction interval timer 80 clocking a correction interval for making a clock correction circuit 30 correct a frequency of a first clock signal; a correction time timer 70 clocking a correction time required for the clock correction circuit 30 to correct the frequency of the first clock signal; and control means 40, 50, 60 which make the correction time timer 70 start the clocking of the correction time for each correction interval clocked by the correction interval timer 80, brings a second oscillation circuit 20 into an operation state thereby making the clock correction circuit 30 correct the frequency of the first clock signal, and which brings a second clock oscillation circuit 20 into a stop state when the clocking of the correction time is notified by the correction time timer 70.

Description

本発明は、第1クロック信号よりも精度の高い第2クロック信号を用いて第1クロック信号の周波数を補正するクロック補正回路を有するクロック制御回路およびマイクロコンピュータに関するものである。   The present invention relates to a clock control circuit and a microcomputer having a clock correction circuit that corrects the frequency of a first clock signal using a second clock signal that is more accurate than the first clock signal.

従来、メインクロックを生成するメインクロック発振部と、サブクロックを生成するサブクロック発振部と、メインクロック発振部により生成されたメインクロックを用いてサブクロック発振部により生成されたサブクロックの発振周波数を補正するサブクロック補正部を備えたクロック制御回路がある(例えば、特許文献1参照)。   Conventionally, a main clock oscillation unit that generates a main clock, a sub clock oscillation unit that generates a sub clock, and an oscillation frequency of the sub clock generated by the sub clock oscillation unit using the main clock generated by the main clock oscillation unit There is a clock control circuit including a sub-clock correction unit that corrects (see, for example, Patent Document 1).

また、メインクロックを生成するメインクロック発振部と、メインクロックよりも周波数が低いサブクロックを生成するサブクロック発振部と、サブクロックの1周期に含まれるメインクロックのパルス数をカウントするパルスカウンタと、パルスカウンタがカウントしたパルス数と予め定められた基準パルス数とを用いて補正情報を算出する演算部と、補正情報に基づいてクロック補正信号を出力する休止信号カウンタと、クロック補正信号に基づいてメインクロックの出力を補正するゲートを備えたクロック補正回路もある(例えば、特許文献2参照)。   Also, a main clock oscillating unit that generates a main clock, a sub clock oscillating unit that generates a sub clock having a frequency lower than that of the main clock, a pulse counter that counts the number of pulses of the main clock included in one cycle of the sub clock, and A calculation unit that calculates correction information using the number of pulses counted by the pulse counter and a predetermined reference pulse number, a pause signal counter that outputs a clock correction signal based on the correction information, and a clock correction signal There is also a clock correction circuit having a gate for correcting the output of the main clock (see, for example, Patent Document 2).

特開2004−213197号公報JP 2004-213197 A 特開2006−309479号公報JP 2006-309479 A

上記特許文献1に記載されたような装置には、CPUがスリープモードになるとメインクロック発振部の動作を停止させて消費電力を低減するようにしたものがある。   Some devices described in the above-mentioned Patent Document 1 reduce the power consumption by stopping the operation of the main clock oscillation unit when the CPU enters the sleep mode.

しかし、このようなメインクロック発振部の動作を停止させる構成では、メインクロックを用いたサブクロックの発振周波数の補正ができなくなってしまうため、時間の経過に伴ってサブクロックの発振周波数が基準範囲を逸脱する可能性が高くなる。このため、予め設定された時間間隔(例えば、20秒間隔)でCPUのスリープモードを解除してウェイクアップさせ、このCPUの指示により定期的にメインクロック発振部を間欠動作させて、サブクロック補正部にサブクロック信号の発振周波数を補正させるようにしている。   However, in such a configuration in which the operation of the main clock oscillation unit is stopped, it becomes impossible to correct the oscillation frequency of the sub clock using the main clock, so that the oscillation frequency of the sub clock becomes the reference range as time passes. The possibility of deviating from is increased. For this reason, the CPU sleep mode is canceled at a preset time interval (for example, every 20 seconds) to wake up, and the main clock oscillation unit is operated intermittently according to instructions from the CPU to correct the sub clock. The unit is adapted to correct the oscillation frequency of the sub clock signal.

しかし、このように予め設定された時間間隔でCPUをウェイクアップさせることは、消費電力の増加の要因となる。   However, waking up the CPU at preset time intervals in this manner causes an increase in power consumption.

また、上記特許文献2に記載された装置は、CPUを定期的にウェイクアップさせる構成とはなっていないものの、常時、メインクロック発振部とサブクロック発振部の両方を動作状態とする構成となっているため消費電力を低減するには限界がある。   Further, although the device described in Patent Document 2 is not configured to periodically wake up the CPU, it is configured to always operate both the main clock oscillation unit and the sub clock oscillation unit. Therefore, there is a limit to reducing power consumption.

本発明は上記問題に鑑みたもので、高精度クロック発振回路より出力される高精度クロックを用いて低精度クロック発振回路より出力される低精度クロックを定期的に補正する回路における消費電力の低減を図ることを目的とする。   In view of the above problems, the present invention reduces power consumption in a circuit that periodically corrects a low-precision clock output from a low-precision clock oscillation circuit using a high-precision clock output from the high-precision clock oscillation circuit. It aims to plan.

上記目的を達成するため、請求項1に記載の発明は、第1クロック信号を生成する第1クロック発振回路(10)と、第1クロック信号よりも周波数および精度の高い第2クロック信号を生成する第2クロック発振回路(20)と、第2クロック信号を用いて第1クロック信号の周波数を補正するクロック補正回路(30)と、を備えたクロック制御回路(1)であって、第1クロックに同期して動作するカウンタを有し、当該カウンタを用いてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させる補正間隔を計時する補正間隔タイマ(80)と、第1クロックに同期して動作するカウンタを有し、当該カウンタを用いてクロック補正回路(30)による第1クロック信号の周波数の補正に要する補正時間を計時する補正時間タイマ(70)と、補正間隔タイマ(80)により計時される補正間隔毎に、補正時間タイマ(70)に補正時間の計時を開始させるとともに第2クロック発振回路(20)を動作状態にさせてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させ、補正時間タイマ(70)により補正時間の計時が通知されると第2クロック発振回路(20)を停止状態にさせる制御手段(40、50、60)と、を備えたことを特徴としている。   In order to achieve the above object, according to a first aspect of the present invention, a first clock oscillation circuit (10) for generating a first clock signal and a second clock signal having a higher frequency and accuracy than the first clock signal are generated. A clock control circuit (1) comprising: a second clock oscillation circuit (20) that performs correction; and a clock correction circuit (30) that corrects the frequency of the first clock signal using the second clock signal. A correction interval timer (80) having a counter that operates in synchronization with the clock and clocking a correction interval for causing the clock correction circuit (30) to correct the frequency of the first clock signal using the counter; A counter that operates in synchronization with the clock, and uses the counter to compensate for the time required for correcting the frequency of the first clock signal by the clock correction circuit (30). For each correction interval timed by the time timer (70) and the correction interval timer (80), the correction time timer (70) starts measuring the correction time and makes the second clock oscillation circuit (20) in an operating state. Control to cause the clock correction circuit (30) to correct the frequency of the first clock signal and to stop the second clock oscillation circuit (20) when the correction time timer (70) notifies the time of the correction time. Means (40, 50, 60).

このような構成によれば、第1クロックに同期して動作するカウンタを用いてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させる補正間隔を計時する補正間隔タイマ(80)と、第1クロックに同期して動作するカウンタを用いてクロック補正回路(30)による第1クロック信号の周波数の補正に要する補正時間を計時する補正時間タイマ(70)と、補正間隔タイマ(80)により計時される補正間隔毎に、補正時間タイマ(70)に補正時間の計時を開始させるとともに第2クロック発振回路(20)を動作状態にさせてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させ、補正時間タイマ(70)により補正時間の計時が通知されると第2クロック発振回路(20)を停止状態にさせるので、CPUを定期的にウェイクアップさせることなく、また、第2クロック発振回路(20)を常時動作状態とすることなく、クロック補正回路(30)による第1クロック信号の周波数の補正を実施させることができ、消費電力の低減を図ることができる。   According to such a configuration, the correction interval timer (80) that measures the correction interval for causing the clock correction circuit (30) to correct the frequency of the first clock signal using the counter that operates in synchronization with the first clock. A correction time timer (70) for measuring a correction time required for correcting the frequency of the first clock signal by the clock correction circuit (30) using a counter operating in synchronization with the first clock, and a correction interval timer (80 ) Causes the correction time timer (70) to start measuring the correction time and causes the second clock oscillation circuit (20) to be in an operating state for each correction interval timed by the first clock signal to the clock correction circuit (30). When the correction time timer (70) notifies the time of the correction time, the second clock oscillation circuit (20) is stopped. Thus, the frequency of the first clock signal is corrected by the clock correction circuit (30) without causing the CPU to wake up regularly and without constantly operating the second clock oscillation circuit (20). Power consumption can be reduced.

また、請求項2に記載の発明では、制御手段(40、50、60)は、第2クロック信号をクロックとして動作するCPU(90)が通常動作状態であるか低消費電力状態であるかを監視する動作状態制御部(40)と、動作状態制御部(40)よりCPU(90)が通常動作状態から低消費電力状態に変化したことを示す信号が入力されると停止状態から動作状態となり、補正間隔タイマ(80)により計時される補正間隔毎に、補正時間タイマ(70)に補正時間の計時を開始させるとともに第2クロック発振回路(20)を動作状態にさせてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させ、補正時間タイマ(70)により補正時間の計時が通知されると第2クロック発振回路(20)を停止状態にさせるとともに自身も停止状態となる動作制御回路(50、60)と、を備えたことを特徴としている。   In the second aspect of the invention, the control means (40, 50, 60) determines whether the CPU (90) operating with the second clock signal as a clock is in a normal operation state or a low power consumption state. When a signal indicating that the CPU (90) has changed from the normal operation state to the low power consumption state is input from the operation state control unit (40) to be monitored and the operation state control unit (40), the operation state is changed from the stop state to the operation state. At each correction interval timed by the correction interval timer (80), the correction time timer (70) starts to measure the correction time, and the second clock oscillation circuit (20) is put into an operating state to make the clock correction circuit (30 ) To correct the frequency of the first clock signal, and when the correction time timer (70) notifies the correction time, the second clock oscillation circuit (20) is stopped. Itself is characterized by comprising an operation control circuit to be stopped (50, 60), to the.

このような構成によれば、動作状態制御部(40)により第2クロック信号をクロックとして動作するCPU(90)が通常動作状態であるか低消費電力状態であるかの監視が行われ、動作制御回路(50、60)は、CPU(90)が通常動作状態から低消費電力状態に変化したことを示す信号が入力されると停止状態から動作状態となり、補正間隔タイマ(80)により計時される補正間隔毎に、補正時間タイマ(70)に補正時間の計時を開始させるとともに第2クロック発振回路(20)を動作状態にさせてクロック補正回路(30)に第1クロック信号の周波数の補正を実施させ、補正時間タイマ(70)により補正時間の計時が通知されると第2クロック発振回路(20)を停止状態にさせるとともに自身も停止状態となる。すなわち、CPU(90)が低消費電力状態の場合、動作制御回路(50、60)は、停止状態となるので、更に、消費電力の低減を図ることができる。   According to such a configuration, the operation state control unit (40) monitors whether the CPU (90) operating with the second clock signal as a clock is in a normal operation state or a low power consumption state, and operates. When a signal indicating that the CPU (90) has changed from the normal operation state to the low power consumption state is input, the control circuit (50, 60) changes from the stop state to the operation state and is timed by the correction interval timer (80). At each correction interval, the correction time timer (70) starts measuring the correction time, and the second clock oscillation circuit (20) is put into an operating state to cause the clock correction circuit (30) to correct the frequency of the first clock signal. When the correction time timer (70) notifies the time of the correction time, the second clock oscillation circuit (20) is brought into a stopped state and itself is brought into a stopped state. That is, when the CPU (90) is in the low power consumption state, the operation control circuit (50, 60) is in the stopped state, and therefore, the power consumption can be further reduced.

また、請求項3に記載の発明は、動作状態制御部(40)は、CPU(90)が低消費電力状態から通常動作状態に変化した場合、第2クロック発振回路(20)を動作状態にさせることを特徴としている。   According to a third aspect of the present invention, when the CPU (90) changes from the low power consumption state to the normal operation state, the operation state control unit (40) sets the second clock oscillation circuit (20) to the operation state. It is characterized by letting.

このような構成によれば、動作状態制御部(40)は、CPU(90)が低消費電力状態から通常動作状態に変化した場合、第2クロック発振回路(20)を動作状態にさせるので、CPU(90)が低消費電力状態から通常動作状態に変化した場合、瞬時に第2クロック発振回路(20)により生成された第2クロック信号をCPUへ供給することが可能である。   According to such a configuration, when the CPU (90) changes from the low power consumption state to the normal operation state, the operation state control unit (40) causes the second clock oscillation circuit (20) to enter the operation state. When the CPU (90) changes from the low power consumption state to the normal operation state, the second clock signal generated by the second clock oscillation circuit (20) can be instantaneously supplied to the CPU.

また、請求項4に記載の発明は、請求項1ないし3のいずれか1つに記載されたクロック制御回路により生成された第2クロック信号をクロックとして動作するCPU(90)を備えたマイクロコンピュータであって、クロック制御回路おける制御手段(40、50、60)、補正時間タイマ(70)および補正間隔タイマ(80)が、CPU(90)と同一のチップ内に形成されていることを特徴としている。   According to a fourth aspect of the present invention, there is provided a microcomputer comprising a CPU (90) which operates using the second clock signal generated by the clock control circuit according to any one of the first to third aspects as a clock. The control means (40, 50, 60), correction time timer (70) and correction interval timer (80) in the clock control circuit are formed in the same chip as the CPU (90). It is said.

このような構成によれば、クロック制御回路おける制御手段(40、50、60)、補正時間タイマ(70)および補正間隔タイマ(80)が、CPU(90)と同一のチップ内に形成されるので、製造コストをほとんど増加させることなく、クロック制御回路おける制御手段(40、50、60)、補正時間タイマ(70)および補正間隔タイマ(80)を構成することができる。   According to such a configuration, the control means (40, 50, 60), the correction time timer (70), and the correction interval timer (80) in the clock control circuit are formed in the same chip as the CPU (90). Therefore, the control means (40, 50, 60), the correction time timer (70), and the correction interval timer (80) in the clock control circuit can be configured without substantially increasing the manufacturing cost.

なお、この欄および特許請求の範囲で記載した各手段の括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。   In addition, the code | symbol in the bracket | parenthesis of each means described in this column and the claim shows the correspondence with the specific means as described in embodiment mentioned later.

本発明の一実施形態に係るクロック制御回路の構成を示す図である。It is a figure which shows the structure of the clock control circuit which concerns on one Embodiment of this invention. 低精度クロック補正回路30を中心とする詳細な構成を示す図である。2 is a diagram showing a detailed configuration centering on a low-accuracy clock correction circuit 30. FIG. 高精度クロック発振回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of a high precision clock oscillation circuit. 動作状態コントロール部の動作を示すタイムチャートである。It is a time chart which shows operation | movement of an operation state control part. 補正間隔タイマの動作を示すタイムチャートである。It is a time chart which shows operation | movement of a correction | amendment interval timer. 高精度クロック発振動作制御回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of a high precision clock oscillation operation control circuit. 補正時間タイマの動作を示すタイムチャートである。It is a time chart which shows operation | movement of a correction time timer. 低精度クロック補正動作制御回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of a low precision clock correction | amendment operation control circuit. 低精度クロック補正回路の動作を示すタイムチャートである。It is a time chart which shows operation | movement of a low precision clock correction circuit.

本発明の一実施形態に係るクロック制御回路の構成を図1に示す。本クロック制御回路1は、低精度クロック発振回路(第1クロック発振回路)10、高精度クロック発振回路(第2クロック発振回路)20、低精度クロック補正回路30、動作状態コントロール部(動作状態制御部)40、低精度クロック補正動作制御回路50、高精度クロック発振動作制御回路60、補正時間タイマ70、補正間隔タイマ80を備えている。なお、動作状態コントロール部40には、CPU90が接続されている。   A configuration of a clock control circuit according to an embodiment of the present invention is shown in FIG. The clock control circuit 1 includes a low-precision clock oscillation circuit (first clock oscillation circuit) 10, a high-precision clock oscillation circuit (second clock oscillation circuit) 20, a low-precision clock correction circuit 30, and an operation state control unit (operation state control). 40), a low-accuracy clock correction operation control circuit 50, a high-accuracy clock oscillation operation control circuit 60, a correction time timer 70, and a correction interval timer 80. A CPU 90 is connected to the operation state control unit 40.

なお、動作状態コントロール部40、低精度クロック補正動作制御回路50、高精度クロック発振動作制御回路60、補正時間タイマ70、補正間隔タイマ80は、AND回路、OR回路、NAND回路、インバータ回路等の論理回路および各種フリップフロップ回路を用いて構成されている。   The operation state control unit 40, the low-accuracy clock correction operation control circuit 50, the high-accuracy clock oscillation operation control circuit 60, the correction time timer 70, and the correction interval timer 80 are an AND circuit, an OR circuit, a NAND circuit, an inverter circuit, etc. A logic circuit and various flip-flop circuits are used.

低精度クロック発振回路10は、比較的精度の低い低精度クロック信号(第1クロック信号に相当する)を生成し、生成した低精度クロック信号を信号線11より出力する。本実施形態における低精度クロック発振回路10は、CR発振回路により構成されており、常時、低精度クロック信号を出力する。   The low-accuracy clock oscillation circuit 10 generates a low-accuracy clock signal (corresponding to the first clock signal) with relatively low accuracy, and outputs the generated low-accuracy clock signal from the signal line 11. The low-accuracy clock oscillation circuit 10 in the present embodiment is composed of a CR oscillation circuit, and always outputs a low-accuracy clock signal.

また、低精度クロック発振回路10は、低精度クロック補正回路30より信号線31を介して入力される制御信号により低精度クロック信号の発振周波数を補正することが可能となっている。なお、この発振周波数の補正の詳細については後述する。   The low-accuracy clock oscillation circuit 10 can correct the oscillation frequency of the low-accuracy clock signal by a control signal input from the low-accuracy clock correction circuit 30 via the signal line 31. Details of the correction of the oscillation frequency will be described later.

高精度クロック発振回路20は、精度の高い高精度クロック信号(第2クロック信号に相当する)を生成し、生成した高精度クロック信号を信号線21より出力する。本実施形態における高精度クロック発振回路20は、水晶発振回路により構成されている。なお、高精度クロック信号の周波数は、低精度クロック信号よりも高くなっている。   The high-precision clock oscillation circuit 20 generates a high-precision high-precision clock signal (corresponding to the second clock signal) and outputs the generated high-precision clock signal from the signal line 21. The high-accuracy clock oscillation circuit 20 in this embodiment is configured by a crystal oscillation circuit. Note that the frequency of the high-accuracy clock signal is higher than that of the low-accuracy clock signal.

低精度クロック補正回路30は、高精度クロック信号を用いて低精度クロックの発振周波数を補正する回路である。図2に、低精度クロック補正回路30を中心とする詳細な構成を示す。低精度クロック補正回路30は、エッジ検出回路35a、パルスカウンタ35b、カウント数設定レジスタ35c、比較調整手段35d、抵抗調整回路35eを備えている。なお、低精度クロック発振回路10は、抵抗調整回路35eから制御信号により抵抗値が可変な可変抵抗器としてのラダー抵抗10a、コンデンサ10b、インバータ10cおよびバッファ10dを備えている。   The low precision clock correction circuit 30 is a circuit that corrects the oscillation frequency of the low precision clock using a high precision clock signal. FIG. 2 shows a detailed configuration centering on the low-accuracy clock correction circuit 30. The low-accuracy clock correction circuit 30 includes an edge detection circuit 35a, a pulse counter 35b, a count number setting register 35c, a comparison adjustment unit 35d, and a resistance adjustment circuit 35e. The low-accuracy clock oscillation circuit 10 includes a ladder resistor 10a, a capacitor 10b, an inverter 10c, and a buffer 10d as variable resistors whose resistance values are variable by a control signal from the resistance adjustment circuit 35e.

低精度クロック補正回路30のエッジ検出回路35aは、低精度クロック発振回路10より出力される低精度クロックSCLKのエッジを検出して検出信号を出力する。パルスカウンタ35bは、高精度クロック信号MCLKの出力パルスを計数するデジタルカウンタである。また、カウント数設定レジスタ35cは、低精度クロック信号SCLKの一周期に相当すべきMCLKパルスの適正なカウント数が格納されるレジスタである。すなわち、カウント数設定レジスタ35cに設定されるカウント数には、MCLKパルスがそのカウント数だけ発生する時間に応じて低精度クロック信号SCLKの発振周期が調整されるべき数値が設定される。   The edge detection circuit 35a of the low precision clock correction circuit 30 detects the edge of the low precision clock SCLK output from the low precision clock oscillation circuit 10 and outputs a detection signal. The pulse counter 35b is a digital counter that counts output pulses of the high-precision clock signal MCLK. The count number setting register 35c is a register that stores an appropriate count number of MCLK pulses that should correspond to one cycle of the low-accuracy clock signal SCLK. That is, the count number set in the count number setting register 35c is set to a numerical value for adjusting the oscillation cycle of the low-accuracy clock signal SCLK according to the time during which the MCLK pulse is generated by the count number.

比較調整手段35dは、エッジ検出回路35aからエッジ検出信号を受けると、パルスカウンタ35bによるパルスのカウント数とカウント数設定レジスタ35cに格納されたカウント数とを比較し、両カウント数の比較結果に基づいて、低精度クロック信号SCLKの発振周期を調整するための調整信号を出力するように構成されている。   When receiving the edge detection signal from the edge detection circuit 35a, the comparison adjustment unit 35d compares the pulse count number by the pulse counter 35b with the count number stored in the count number setting register 35c, and compares the count numbers with the comparison result. Based on this, an adjustment signal for adjusting the oscillation period of the low-accuracy clock signal SCLK is output.

抵抗調整回路35eは、比較調整手段35dからの調整信号に基づいて制御信号を生成し、この制御信号をもって低精度クロック発振回路10のラダー抵抗10aの抵抗値を調整する回路である。   The resistance adjustment circuit 35e is a circuit that generates a control signal based on the adjustment signal from the comparison adjustment unit 35d and adjusts the resistance value of the ladder resistor 10a of the low-accuracy clock oscillation circuit 10 using this control signal.

なお、低精度クロック補正回路30の動作については、特開2001−111389に詳細に開示されているが、以下、その概略について述べる。低精度クロック信号SCLKの一周期が経過して、そのクロックパルスのエッジがエッジ検出回路35aによって検出されると、検出信号が比較調整手段35dに出力される。すると、比較調整手段35dは、パルスカウンタ35bで積算されている前回の検出信号から積算されたパルス数とカウント数設定レジスタ35cに格納されているカウント数とを読み出して両者を比較する。   The operation of the low-accuracy clock correction circuit 30 is disclosed in detail in Japanese Patent Laid-Open No. 2001-111389, and the outline thereof will be described below. When one cycle of the low-accuracy clock signal SCLK elapses and the edge of the clock pulse is detected by the edge detection circuit 35a, the detection signal is output to the comparison adjustment unit 35d. Then, the comparison adjustment means 35d reads the number of pulses accumulated from the previous detection signal accumulated by the pulse counter 35b and the count number stored in the count number setting register 35c and compares them.

ここで、カウント数設定レジスタ35cに設定されているカウント数は、低精度クロック信号SCLKの一周期に相当すべきパルスの適正な積算値である。そこで、比較調整手段35dは、高精度クロック信号MCLKパルスが低精度クロック信号SCLKの一周期のうちにいくつ積算されたかをもって、低精度クロック信号SCLKの一周期が適正な設定値よりもどの程度大きいかあるいは小さいかを判定することができる。比較調整手段35dは、その判定結果に基づいて、低精度クロック信号SCLKの発振周期を調整するための調整信号を生成し、調整抵抗生成回路35eは、この調整信号に基づいて制御信号を生成出力してラダー抵抗10aの抵抗値を調整する。   Here, the count number set in the count number setting register 35c is an appropriate integrated value of pulses that should correspond to one cycle of the low-accuracy clock signal SCLK. Therefore, the comparison / adjustment unit 35d determines how much of one cycle of the low-accuracy clock signal SCLK is larger than an appropriate set value depending on how many high-accuracy clock signal MCLK pulses are accumulated in one cycle of the low-accuracy clock signal SCLK. Or small. The comparison adjustment unit 35d generates an adjustment signal for adjusting the oscillation period of the low-accuracy clock signal SCLK based on the determination result, and the adjustment resistor generation circuit 35e generates and outputs a control signal based on the adjustment signal. Then, the resistance value of the ladder resistor 10a is adjusted.

図1の説明に戻り、高精度クロック発振回路20には、信号線41を介して動作状態コントロール部40より発振開始または発振停止を指示する信号が入力されるとともに、信号線61を介して高精度クロック発振動作制御回路60より発振開始または発振停止を指示する信号が入力されるようになっている。   Returning to the description of FIG. 1, the high-accuracy clock oscillation circuit 20 is supplied with a signal for instructing start or stop of oscillation from the operation state control unit 40 via the signal line 41, and A signal instructing oscillation start or oscillation stop is input from the precision clock oscillation operation control circuit 60.

高精度クロック発振回路20は、図3に示すように、動作状態コントロール部40より入力される発振開始または発振停止を指示する信号に応じて動作状態または停止状態となる。また、高精度クロック発振動作制御回路60より入力される発振開始または発振停止を指示する信号によっても動作状態または停止状態となる。なお、高精度クロック発振回路20は、動作状態コントロール部40と高精度クロック発振動作制御回路60のいずれかより発振開始を指示する信号が入力されていれば動作状態となる。   As shown in FIG. 3, the high-accuracy clock oscillation circuit 20 enters an operation state or a stop state according to a signal instructing the start or stop of oscillation input from the operation state control unit 40. The operation state or stop state is also entered by a signal instructing oscillation start or oscillation stop input from the high-accuracy clock oscillation operation control circuit 60. Note that the high-accuracy clock oscillation circuit 20 enters an operation state if a signal instructing the start of oscillation is input from either the operation state control unit 40 or the high-accuracy clock oscillation operation control circuit 60.

動作状態コントロール部40は、低精度クロック発振回路10により生成された低精度クロック信号に同期して動作するようになっている。また、動作状態コントロール部40は、高精度クロック信号の周波数を逓倍した周波数で同期発振する信号を出力するPLL周波数逓倍回路(図示せず)を有しており、このPLL周波数逓倍回路より出力される信号はCPU90のメインクロック端子(図示せず)へ入力される。   The operation state control unit 40 operates in synchronization with the low precision clock signal generated by the low precision clock oscillation circuit 10. The operation state control unit 40 also has a PLL frequency multiplier circuit (not shown) that outputs a signal that oscillates synchronously at a frequency obtained by multiplying the frequency of the high-precision clock signal, and is output from the PLL frequency multiplier circuit. The signal is input to a main clock terminal (not shown) of the CPU 90.

動作状態コントロール部40は、信号線91を介してCPU90より入力されるウェイクアップ状態(通常動作状態)であるかスリープ状態(低消費電力状態)であるかを示す信号や、スリープ状態のCPU90を間欠的にウェイクアップさせるためのウェイクアップタイマ(図示せず)より定期的に入力されるウェイクアップ要求等のウェイクアップ要因情報に基づいてCPU90の動作状態(通常動作状態またはスリープ状態)を管理し、CPU90の動作状態に応じてCPU90のメインクロック端子に入力するメインクロック信号の送出または停止を行う。   The operation state control unit 40 receives a signal indicating whether the wake-up state (normal operation state) or the sleep state (low power consumption state) input from the CPU 90 via the signal line 91, and the CPU 90 in the sleep state. The operating state (normal operating state or sleep state) of the CPU 90 is managed based on wake-up factor information such as a wake-up request periodically input from a wake-up timer (not shown) for intermittent wake-up. The main clock signal input to the main clock terminal of the CPU 90 is transmitted or stopped according to the operating state of the CPU 90.

動作状態コントロール部40は、信号線91を介してCPU90より入力される信号に基づいてCPU90が通常動作状態であると認識すると、信号線41を介して高精度クロック発振回路20に発振開始を指示する信号を送出し、信号線21を介して高精度クロック発振回路20より入力される高精度クロック信号をPLL周波数逓倍回路(図示せず)により逓倍した信号を、信号線42より出力する。また、信号線43を介して低精度クロック補正回路30に動作開始を指示する信号を送出し、信号線44を介して高精度クロック発振動作制御回路60へ動作停止を指示する信号を送出する。   When the operation state control unit 40 recognizes that the CPU 90 is in the normal operation state based on a signal input from the CPU 90 via the signal line 91, the operation state control unit 40 instructs the high-accuracy clock oscillation circuit 20 to start oscillation via the signal line 41. A signal obtained by multiplying a high-accuracy clock signal input from the high-accuracy clock oscillation circuit 20 via the signal line 21 by a PLL frequency multiplication circuit (not shown) is output from the signal line 42. Further, a signal for instructing start of operation is sent to the low-accuracy clock correction circuit 30 via the signal line 43, and a signal for instructing to stop operation is sent to the high-accuracy clock oscillation operation control circuit 60 via the signal line 44.

また、動作状態コントロール部40は、信号線91を介してCPU90より入力される信号に基づいてCPU90の状態がスリープ状態であると認識すると、図4に示すように、信号線41を介して高精度クロック発振回路20に発振停止を指示する信号を送出し、信号線42よりCPU90へ出力するメインクロック信号を停止させる。更に、信号線43を介して低精度クロック補正回路30に動作停止を指示する信号を送出し、信号線44を介して高精度クロック発振動作制御回路60へ動作開始を指示する信号を送出する。   Further, when the operation state control unit 40 recognizes that the state of the CPU 90 is the sleep state based on a signal input from the CPU 90 via the signal line 91, the operation state control unit 40 causes the high state via the signal line 41 as illustrated in FIG. 4. A signal to stop oscillation is sent to the precision clock oscillation circuit 20 to stop the main clock signal output to the CPU 90 from the signal line 42. Further, a signal for instructing operation stop is sent to the low-accuracy clock correction circuit 30 via the signal line 43, and a signal for instructing start of operation is sent to the high-accuracy clock oscillation operation control circuit 60 via the signal line 44.

補正間隔タイマ80は、CPU90がスリープ状態中に低精度クロック補正回路30により間欠的に実施される低精度クロック信号の周波数の補正間隔(例えば、20秒)を計時する。補正間隔タイマ80は、低精度クロック信号に同期して動作する補正間隔カウンタ(図示せず)を有しており、この補正間隔カウンタを用いて低精度クロック補正回路30により実施される低精度クロック信号の周波数の補正間隔を計時する。   The correction interval timer 80 measures the frequency correction interval (for example, 20 seconds) of the low-accuracy clock signal that is intermittently performed by the low-accuracy clock correction circuit 30 while the CPU 90 is in the sleep state. The correction interval timer 80 has a correction interval counter (not shown) that operates in synchronization with the low-accuracy clock signal, and the low-accuracy clock implemented by the low-accuracy clock correction circuit 30 using the correction interval counter. Times signal frequency correction interval.

補正間隔タイマ80は、信号線63を介して高精度クロック発振動作制御回路60よりタイマ開始を指示する信号が入力されると、図5に示すように、補正間隔の計時を開始し、補正間隔カウンタのカウント値が補正間隔に相当するカウント数になると補正間隔タイマ満了信号を送出する。   When a signal for instructing the timer start is input from the high-accuracy clock oscillation operation control circuit 60 via the signal line 63, the correction interval timer 80 starts measuring the correction interval as shown in FIG. When the count value of the counter reaches a count corresponding to the correction interval, a correction interval timer expiration signal is transmitted.

また、補正間隔タイマ80は、信号線63を介して高精度クロック発振動作制御回路60よりタイマ停止を指示する信号が入力されると、補正間隔の計時を停止するとともに補正間隔カウンタのカウント値が0に戻るようになっている。   When the signal for instructing the timer to stop is input from the high precision clock oscillation operation control circuit 60 via the signal line 63, the correction interval timer 80 stops counting the correction interval and the count value of the correction interval counter is set. It is supposed to return to zero.

高精度クロック発振動作制御回路60は、低精度クロック発振回路10により生成された低精度クロック信号に同期して動作するようになっている。また、高精度クロック発振動作制御回路60は、信号線44を介して動作状態コントロール部40より動作開始を指示する信号を受信すると動作状態となり、動作停止を指示する信号を受信すると停止状態となる。   The high-precision clock oscillation operation control circuit 60 operates in synchronization with the low-precision clock signal generated by the low-precision clock oscillation circuit 10. The high-accuracy clock oscillation operation control circuit 60 enters an operation state when receiving a signal for instructing operation start from the operation state control unit 40 via the signal line 44, and enters a stop state when receiving a signal for instructing operation stop. .

なお、本実施形態において、低精度クロック補正動作制御回路50、高精度クロック発振動作制御回路60、補正時間タイマ70および補正間隔タイマ80は、それぞれ低精度クロック信号の入力部にゲート回路を備えており、このゲート回路を制御することにより動作状態または停止状態が切り替わるようになっている。   In this embodiment, the low-accuracy clock correction operation control circuit 50, the high-accuracy clock oscillation operation control circuit 60, the correction time timer 70, and the correction interval timer 80 each include a gate circuit at the input portion of the low-accuracy clock signal. By controlling this gate circuit, the operation state or the stop state is switched.

高精度クロック発振動作制御回路60が停止状態の場合、高精度クロック発振回路20は発振停止となり、低精度クロック補正動作制御回路50は停止状態となり、間隔補正タイマ80も停止状態となる。   When the high-accuracy clock oscillation operation control circuit 60 is stopped, the high-accuracy clock oscillation circuit 20 stops oscillating, the low-accuracy clock correction operation control circuit 50 is stopped, and the interval correction timer 80 is also stopped.

また、高精度クロック発振動作制御回路60は、信号線44を介して動作状態コントロール部40より動作開始を指示する信号が入力され動作状態になると、図6に示すように、信号線63を介して間隔補正タイマ80へタイマ開始を指示する信号を送出する。   Further, when a signal for instructing the start of operation is input from the operation state control unit 40 via the signal line 44 and the high precision clock oscillation operation control circuit 60 enters an operation state, as shown in FIG. Then, a signal instructing the timer start is sent to the interval correction timer 80.

なお、間隔補正タイマ80は、図5に示したように、このタイマ開始を指示する信号を受信すると補正間隔の計時を開始し、補正間隔が経過すると、信号線81を介して高精度クロック発振動作制御回路60へ補正間隔タイマ満了信号を送出する。   As shown in FIG. 5, the interval correction timer 80 starts measuring the correction interval when receiving a signal instructing the start of the timer. When the correction interval elapses, the interval correction timer 80 performs high-accuracy clock oscillation via the signal line 81. A correction interval timer expiration signal is sent to the operation control circuit 60.

高精度クロック発振動作制御回路60は、信号線81を介してこの補正間隔タイマ満了信号が入力されると、図6に示したように、信号線62を介して低精度クロック補正動作制御回路50へ動作開始を指示する信号を送出する。   When this correction interval timer expiration signal is input via the signal line 81, the high-accuracy clock oscillation operation control circuit 60 receives the low-accuracy clock correction operation control circuit 50 via the signal line 62 as shown in FIG. Sends a signal to start operation.

補正時間タイマ70は、低精度クロック発振回路30の補正に要する補正時間(例えば、2ミリ秒)を計時するためのものである。補正時間タイマ70は、低精度クロック信号に同期して動作する補正時間カウンタ(図示せず)を有しており、この補正時間カウンタを用いて補正時間を計時し、補正時間カウンタのカウント値が補正時間に相当するカウント数になると補正時間タイマ満了信号を送出する。   The correction time timer 70 is for measuring a correction time (for example, 2 milliseconds) required for correction of the low-accuracy clock oscillation circuit 30. The correction time timer 70 has a correction time counter (not shown) that operates in synchronization with the low-accuracy clock signal, and uses this correction time counter to measure the correction time, and the count value of the correction time counter is When the count number corresponding to the correction time is reached, a correction time timer expiration signal is transmitted.

補正時間タイマ70は、信号線53を介して低精度クロック補正動作制御回路50よりタイマ開始を指示する信号を受信すると、図7に示すように、補正時間の計時を開始し、補正時間カウンタのカウント値が補正時間に相当するカウント数になると補正時間タイマ満了信号を送出する。   When the correction time timer 70 receives a signal instructing timer start from the low precision clock correction operation control circuit 50 via the signal line 53, the correction time timer 70 starts measuring the correction time as shown in FIG. When the count value reaches the count corresponding to the correction time, a correction time timer expiration signal is transmitted.

また、補正時間タイマ70は、信号線53を介して低精度クロック補正動作制御回路50よりタイマ停止を指示する信号が入力されると、補正時間の計時を停止するとともに補正時間タイマのカウント値が0に戻るようになっている。   When the signal for instructing to stop the timer is input from the low precision clock correction operation control circuit 50 via the signal line 53, the correction time timer 70 stops counting the correction time and the count value of the correction time timer is changed. It is supposed to return to zero.

低精度クロック補正動作制御回路50は、低精度クロック発振回路10により生成された低精度クロック信号に同期して動作するようになっている。   The low precision clock correction operation control circuit 50 operates in synchronization with the low precision clock signal generated by the low precision clock oscillation circuit 10.

低精度クロック補正動作制御回路50は、信号線62を介して高精度クロック発振動作制御回路60より動作開始を指示する信号が入力され動作状態になると、図8に示すように、信号線51を介して低精度クロック補正回路30へ動作開始を示す信号を送出し、信号線52を介して高精度クロック発振動作制御回路60へ補正が未完了であることを示す信号を送出し、更に、信号線53を介して補正時間タイマ70へタイマ開始を指示する信号を送出する。   When the low-accuracy clock correction operation control circuit 50 enters an operation state when a signal for instructing the operation start is input from the high-accuracy clock oscillation operation control circuit 60 via the signal line 62, the signal line 51 is connected as shown in FIG. Via the signal line 52, a signal indicating that the correction has not been completed, and a signal indicating that the correction has not been completed. A signal instructing the start of the timer is sent to the correction time timer 70 via the line 53.

補正時間タイマ70は、このタイマ開始を指示する信号を受信すると補正時間を計時し、補正時間が経過すると、信号線71を介して低精度クロック補正動作制御回路50へ補正時間タイマ満了信号を送出する。   The correction time timer 70 counts the correction time when receiving a signal instructing the start of the timer, and sends a correction time timer expiration signal to the low-accuracy clock correction operation control circuit 50 via the signal line 71 when the correction time elapses. To do.

低精度クロック補正動作制御回路50は、信号線71を介してこの補正時間タイマ満了信号を受信すると、信号線51を介して低精度クロック補正回路30に動作停止を示す信号を送出するとともに、信号線52を介して高精度クロック発振動作制御回路60へ補正が完了したことを示す信号を送出する。   When the low-accuracy clock correction operation control circuit 50 receives the correction time timer expiration signal via the signal line 71, the low-accuracy clock correction operation control circuit 50 sends a signal indicating operation stop to the low-accuracy clock correction circuit 30 via the signal line 51 and A signal indicating that the correction is completed is sent to the high-accuracy clock oscillation operation control circuit 60 via the line 52.

低精度クロック補正回路30は、図9に示すように、信号線51を介して低精度クロック補正動作制御回路50より動作停止を示す信号が入力されると停止状態となり、動作開始を示す信号が入力されると動作状態となる。また、信号線43を介して低精度クロック補正回路30に動作開始を指示する信号が入力されると動作状態となり、動作停止を示す信号が入力されると停止状態となる。   As shown in FIG. 9, the low-accuracy clock correction circuit 30 enters a stop state when a signal indicating operation stop is input from the low-accuracy clock correction operation control circuit 50 via the signal line 51, and a signal indicating operation start is received. When it is input, it enters an operating state. Further, when a signal for instructing the start of operation is input to the low-accuracy clock correction circuit 30 via the signal line 43, the operation state is entered, and when a signal indicating operation stop is entered, the operation state is stopped.

なお、高精度クロック発振動作制御回路60は、図6に示したように、信号線52を介して低精度クロック補正動作制御回路50より補正が未完了であることを示す信号が入力されると、信号線61を介して高精度クロック発振回路20へ発振開始を指示する信号を送出し、信号線63を介して補正間隔タイマ80へ動作停止を指示する信号を送出する。   The high-accuracy clock oscillation operation control circuit 60 receives a signal indicating that the correction is incomplete from the low-accuracy clock correction operation control circuit 50 via the signal line 52 as shown in FIG. Then, a signal for instructing the start of oscillation is sent to the high-accuracy clock oscillation circuit 20 via the signal line 61, and a signal for instructing to stop the operation is sent to the correction interval timer 80 via the signal line 63.

また、高精度クロック発振動作制御回路60は、信号線52を介して低精度クロック補正動作制御回路50より補正が完了したことを示す信号が入力されると、信号線61を介して高精度クロック発振回路20へ発振停止を指示する信号を送出し、信号線62を介して低精度クロック補正動作制御回路50へ動作停止を指示する信号を送出し、更に、信号線63を介して補正間隔タイマ80へ動作開始を指示する信号を送出する。   The high-accuracy clock oscillation operation control circuit 60 receives a signal indicating that the correction is completed from the low-accuracy clock correction operation control circuit 50 via the signal line 52, and then receives the high-accuracy clock via the signal line 61. A signal for instructing oscillation stop is transmitted to the oscillation circuit 20, a signal for instructing operation stop is transmitted to the low-accuracy clock correction operation control circuit 50 via the signal line 62, and a correction interval timer is further transmitted via the signal line 63. A signal instructing operation start is sent to 80.

次に、本クロック制御回路1の動作について説明する。CPU90が通常動作状態となっている場合、動作状態コントロール部40は、信号線91を介してCPU90より入力される信号等に基づいてCPU90が通常動作状態であると認識し、信号線41を介して高精度クロック発振回路20に発振開始を指示する信号を送出する。したがって、高精度クロック発振回路20により高精度クロック信号が生成される。また、PLL周波数逓倍回路により高精度クロック信号の周波数を逓倍して周波数で同期発振する信号がCPU90のメインクロック端子(図示せず)へ入力される。   Next, the operation of the clock control circuit 1 will be described. When the CPU 90 is in the normal operation state, the operation state control unit 40 recognizes that the CPU 90 is in the normal operation state based on a signal or the like input from the CPU 90 via the signal line 91 and passes through the signal line 41. Then, a signal for instructing the oscillation start to the high precision clock oscillation circuit 20 is transmitted. Therefore, a high precision clock signal is generated by the high precision clock oscillation circuit 20. Further, a signal that oscillates synchronously with the frequency by multiplying the frequency of the high-accuracy clock signal by the PLL frequency multiplication circuit is input to a main clock terminal (not shown) of the CPU 90.

また、動作状態コントロール部40は、信号線43を介して低精度クロック補正回路30に動作開始を指示する信号を送出し、低精度クロック補正回路30に低精度クロック信号の周波数の補正を実施させる。   Further, the operation state control unit 40 sends a signal for instructing the low precision clock correction circuit 30 to start the operation via the signal line 43, and causes the low precision clock correction circuit 30 to correct the frequency of the low precision clock signal. .

また、このようにCPU90が通常動作状態となっている場合、動作状態コントロール部40は、信号線44を介して高精度クロック発振動作制御回路60へ動作停止を指示する信号を送出する。この信号により、低精度クロック補正動作制御回路50、高精度クロック発振動作制御回路60、補正時間タイマ70および補正間隔タイマ80は停止状態となる。   Further, when the CPU 90 is in the normal operation state in this way, the operation state control unit 40 sends a signal for instructing the high-accuracy clock oscillation operation control circuit 60 to stop the operation via the signal line 44. With this signal, the low-accuracy clock correction operation control circuit 50, the high-accuracy clock oscillation operation control circuit 60, the correction time timer 70, and the correction interval timer 80 are stopped.

次に、CPU90がスリープ状態となると、動作状態コントロール部40は、信号線91を介してCPU90より入力される信号等に基づいてCPU90がスリープ状態になったと認識し、信号線41を介して高精度クロック発振回路20に発振停止を指示する信号を送出するとともに、信号線42よりCPU90へ出力するメインクロック信号を停止させる。したがって、高精度クロック発振回路20から高精度クロックは出力されなくなり、信号線42よりCPU90へメインクロック信号が出力されなくなる。   Next, when the CPU 90 enters the sleep state, the operation state control unit 40 recognizes that the CPU 90 has entered the sleep state based on a signal or the like input from the CPU 90 via the signal line 91, and sets the high level via the signal line 41. A signal to stop oscillation is sent to the precision clock oscillation circuit 20 and the main clock signal output to the CPU 90 from the signal line 42 is stopped. Accordingly, the high-precision clock is not output from the high-precision clock oscillation circuit 20, and the main clock signal is not output from the signal line 42 to the CPU 90.

また、動作状態コントロール部40は、信号線43を介して低精度クロック補正回路30に動作停止を指示する信号を送出し、信号線44を介して高精度クロック発振動作制御回路60へ動作開始を指示する信号を送出する。これにより、低精度クロック補正回路30は停止状態を継続し、高精度クロック発振動作制御回路60は動作状態となる。   The operation state control unit 40 sends a signal for instructing the low-accuracy clock correction circuit 30 to stop the operation via the signal line 43, and starts the operation to the high-accuracy clock oscillation operation control circuit 60 via the signal line 44. Send a signal to indicate. As a result, the low-accuracy clock correction circuit 30 continues to be stopped, and the high-accuracy clock oscillation operation control circuit 60 enters the operating state.

高精度クロック発振動作制御回路60は動作状態になると、補正間隔タイマ80に補正間隔の計時開始を指示する信号を送出する。これにより、補正間隔タイマ80は補正間隔の計時を開始する。   When the high-accuracy clock oscillation operation control circuit 60 enters the operating state, it sends a signal instructing the correction interval timer 80 to start measuring the correction interval. Thereby, the correction interval timer 80 starts measuring the correction interval.

そして、補正間隔が経過して補正間隔タイマ80より補正間隔タイマ満了信号を受信すると、信号線62を介して低精度クロック補正動作制御回路50へ動作開始を指示する信号を送出する。これにより、低精度クロック補正動作制御回路50は動作状態となる。   When the correction interval elapses and a correction interval timer expiration signal is received from the correction interval timer 80, a signal instructing the start of operation is sent to the low precision clock correction operation control circuit 50 via the signal line 62. As a result, the low-accuracy clock correction operation control circuit 50 enters an operating state.

低精度クロック補正動作制御回路50は動作状態になると、信号線51を介して低精度クロック補正回路50へ動作開始を指示する信号を送出するとともに、補正時間タイマ70に補正時間の計時の開始を指示する信号を送出する。これにより、低精度クロック補正回路50は低精度クロック信号の周波数の補正を開始し、補正時間タイマ70は補正時間の計時を開始する。   When the low-accuracy clock correction operation control circuit 50 is in the operating state, it sends a signal for instructing the low-accuracy clock correction circuit 50 to start the operation via the signal line 51 and also starts the correction time timer 70 to start measuring the correction time. Send a signal to indicate. As a result, the low-accuracy clock correction circuit 50 starts correcting the frequency of the low-accuracy clock signal, and the correction time timer 70 starts measuring the correction time.

そして、低精度クロック補正回路50による低精度クロック信号の周波数の補正が完了した後、補正時間タイマ70より補正時間タイマ満了信号を受信すると、低精度クロック補正動作制御回路50は、低精度クロック補正回路30に動作停止を示す信号を送出するとともに、高精度クロック発振動作制御回路60へ補正が完了したことを示す信号を送出する。これにより、低精度クロック補正回路30は停止状態となり、高精度クロック発振動作制御回路60は、高精度クロック発振回路20へ発振停止を指示する信号を送出し、低精度クロック補正動作制御回路50は停止状態となり、補正間隔タイマ80は補正間隔の計時を開始する。   After the correction of the frequency of the low-accuracy clock signal by the low-accuracy clock correction circuit 50 is completed, when the correction time timer expiration signal is received from the correction time timer 70, the low-accuracy clock correction operation control circuit 50 performs the low-accuracy clock correction. A signal indicating the operation stop is sent to the circuit 30 and a signal indicating that the correction is completed is sent to the high precision clock oscillation operation control circuit 60. As a result, the low-accuracy clock correction circuit 30 is stopped, the high-accuracy clock oscillation operation control circuit 60 sends a signal to stop oscillation to the high-accuracy clock oscillation circuit 20, and the low-accuracy clock correction operation control circuit 50 The correction interval timer 80 starts to measure the correction interval.

そして、再度、補正間隔が経過して補正間隔タイマ80より補正間隔タイマ満了信号を受信すると、信号線62を介して低精度クロック補正動作制御回路50へ動作開始を指示する信号を送出する。これにより、低精度クロック補正動作制御回路50は動作状態となる。   When the correction interval has elapsed and a correction interval timer expiration signal is received from the correction interval timer 80, a signal instructing the start of operation is sent to the low-accuracy clock correction operation control circuit 50 via the signal line 62. As a result, the low-accuracy clock correction operation control circuit 50 enters an operating state.

上記した処理を繰り返し実施し、低精度クロック補正回路30による低精度クロック信号の周波数の補正が間欠的に実施される。   The above-described processing is repeatedly performed, and the correction of the frequency of the low-accuracy clock signal by the low-accuracy clock correction circuit 30 is intermittently performed.

上記した構成によれば、第1クロックに同期して動作するカウンタを用いてクロック補正回路30に第1クロック信号の周波数の補正を実施させる補正間隔を計時する補正間隔タイマ80と、第1クロックに同期して動作するカウンタを用いてクロック補正回路30による第1クロック信号の周波数の補正に要する補正時間を計時する補正時間タイマ70と、補正間隔タイマ80により計時される補正間隔毎に、補正時間タイマ70に補正時間の計時を開始させるとともに高精度クロック発振回路20を動作状態にさせてクロック補正回路30に第1クロック信号の周波数の補正を実施させ、補正時間タイマ70により補正時間の計時が通知されると第2クロック発振回路20を停止状態にさせるので、CPUを定期的にウェイクアップさせることなく、また、第2クロック発振回路20を常時動作状態とすることなく、クロック補正回路30による第1クロック信号の周波数の補正を実施させることができ、消費電力の低減を図ることができる。なお、一般ユーザが所有する自動車の多くは一日の大半が駐車した状態であり、このような自動車に搭載される各車載機器に本クロック制御回路を適用することで、大きな電力量低減効果を得ることが可能である。   According to the configuration described above, the correction interval timer 80 that measures the correction interval for causing the clock correction circuit 30 to correct the frequency of the first clock signal using the counter that operates in synchronization with the first clock, and the first clock A correction time timer 70 that measures the correction time required for correcting the frequency of the first clock signal by the clock correction circuit 30 using a counter that operates in synchronization with each other, and a correction interval that is corrected by the correction interval timer 80. The time timer 70 starts measuring the correction time, and the high-accuracy clock oscillation circuit 20 is put into an operating state to cause the clock correction circuit 30 to correct the frequency of the first clock signal, and the correction time timer 70 measures the correction time. Is notified, the second clock oscillation circuit 20 is stopped and the CPU is periodically woken up. Without also without the constantly operating state and the second clock oscillation circuit 20, it is possible to implement the correction of the frequency of the first clock signal by the clock correction circuit 30, it is possible to reduce power consumption. Many automobiles owned by general users are parked for most of the day, and applying this clock control circuit to each in-vehicle device installed in such an automobile can greatly reduce the amount of power consumed. It is possible to obtain.

また、動作状態コントロール部40により第2クロック信号をクロックとして動作するCPU90が通常動作状態であるか低消費電力状態であるかの監視が行われ、高精度クロック発振動作制御回路50および低精度クロック補正動作制御回路60は、CPU90が通常動作状態から低消費電力状態に変化したことを示す信号が入力されると停止状態から動作状態となり、補正間隔タイマ80により計時される補正間隔毎に、補正時間タイマ70に補正時間の計時を開始させるとともに第2クロック発振回路20を動作状態にさせてクロック補正回路30に第1クロック信号の周波数の補正を実施させ、補正時間タイマ70により補正時間の計時が通知されると第2クロック発振回路20を停止状態にさせるとともに自身も停止状態となる。すなわち、CPU90が通常動作状態の場合、高精度クロック発振動作制御回路50および低精度クロック補正動作制御回路60は、停止状態となるので、更に、消費電力の低減を図ることができる。   The operation state control unit 40 monitors whether the CPU 90 operating with the second clock signal as a clock is in a normal operation state or a low power consumption state, and the high-accuracy clock oscillation operation control circuit 50 and the low-accuracy clock. When the signal indicating that the CPU 90 has changed from the normal operation state to the low power consumption state is input, the correction operation control circuit 60 changes from the stop state to the operation state, and corrects at each correction interval timed by the correction interval timer 80. The time timer 70 starts measuring the correction time, and the second clock oscillation circuit 20 is put into an operating state to cause the clock correction circuit 30 to correct the frequency of the first clock signal. The correction time timer 70 measures the correction time. Is notified, the second clock oscillation circuit 20 is brought into a stopped state and is also brought into a stopped state. That is, when the CPU 90 is in a normal operation state, the high-accuracy clock oscillation operation control circuit 50 and the low-accuracy clock correction operation control circuit 60 are in a stopped state, so that power consumption can be further reduced.

また、動作状態コントロール部40は、CPU90が低消費電力状態から通常動作状態に変化した場合、第2クロック発振回路20を動作状態にさせるので、CPU90が低消費電力状態から通常動作状態に変化した場合、瞬時に第2クロック発振回路20により生成された第2クロック信号をCPUへ供給することが可能である。   Further, when the CPU 90 changes from the low power consumption state to the normal operation state, the operation state control unit 40 changes the second clock oscillation circuit 20 to the operation state, so that the CPU 90 changes from the low power consumption state to the normal operation state. In this case, the second clock signal generated by the second clock oscillation circuit 20 can be instantaneously supplied to the CPU.

なお、本発明は上記実施形態に限定されるものではなく、本発明の趣旨に基づいて種々なる形態で実施することができる。   In addition, this invention is not limited to the said embodiment, Based on the meaning of this invention, it can implement with a various form.

例えば、上記実施形態では、本クロック制御回路における動作状態コントロール部40、低精度クロック補正動作制御回路50、高精度クロック発振動作制御回路60、補正時間タイマ70および補正間隔タイマ80を、CPU90と別々に構成したが、例えば、各回路40〜80をCPU90と同一チップ内に形成したマイクロコンピュータとして構成してもよい。このように、各回路40〜80をCPU90と同一チップ内に形成することで、製造コストをほとんど増加させることなく、各回路40〜80を構成することができる。   For example, in the above embodiment, the operation state control unit 40, the low-accuracy clock correction operation control circuit 50, the high-accuracy clock oscillation operation control circuit 60, the correction time timer 70, and the correction interval timer 80 in the present clock control circuit are separated from the CPU 90. However, for example, the circuits 40 to 80 may be configured as a microcomputer formed in the same chip as the CPU 90. Thus, by forming the circuits 40 to 80 in the same chip as the CPU 90, the circuits 40 to 80 can be configured with almost no increase in manufacturing cost.

また、上記実施形態では、可変抵抗器の抵抗値を可変させてクロック信号の周波数の補正を行う低精度クロック補正回路を用いて本クロック制御回路を構成したが、このような可変抵抗器を有するクロック補正回路を用いることなく、例えば、特許文献2に記載されたような、ゲートを用いてクロック信号のパルス数を補正するクロック補正回路を用いて本クロック制御回路を構成してもよい。   In the above embodiment, the clock control circuit is configured using the low-accuracy clock correction circuit that corrects the frequency of the clock signal by changing the resistance value of the variable resistor. Without using the clock correction circuit, for example, the clock control circuit may be configured using a clock correction circuit that corrects the number of pulses of the clock signal using a gate as described in Patent Document 2.

1 クロック制御回路
10 低精度クロック発振回路
20 高精度クロック発振回路
30 低精度クロック補正回路
40 動作状態コントロール部
50 低精度クロック補正動作制御回路
60 高精度クロック発振動作制御回路
70 補正時間タイマ
80 補正間隔タイマ
90 CPU
DESCRIPTION OF SYMBOLS 1 Clock control circuit 10 Low precision clock oscillation circuit 20 High precision clock oscillation circuit 30 Low precision clock correction circuit 40 Operation state control part 50 Low precision clock correction operation control circuit 60 High precision clock oscillation operation control circuit 70 Correction time timer 80 Correction interval Timer 90 CPU

Claims (4)

第1クロック信号を生成する第1クロック発振回路(10)と、前記第1クロック信号よりも周波数および精度の高い第2クロック信号を生成する第2クロック発振回路(20)と、前記第2クロック信号を用いて前記第1クロック信号の周波数を補正するクロック補正回路(30)と、を備えたクロック制御回路(1)であって、
前記第1クロックに同期して動作するカウンタを有し、当該カウンタを用いて前記クロック補正回路(30)に前記第1クロック信号の周波数の補正を実施させる補正間隔を計時する補正間隔タイマ(80)と、
前記第1クロックに同期して動作するカウンタを有し、当該カウンタを用いて前記クロック補正回路(30)による前記第1クロック信号の周波数の補正に要する補正時間を計時する補正時間タイマ(70)と、
前記補正間隔タイマ(80)により計時される前記補正間隔毎に、前記補正時間タイマ(70)に前記補正時間の計時を開始させるとともに前記第2クロック発振回路(20)を動作状態にさせて前記クロック補正回路(30)に前記第1クロック信号の周波数の補正を実施させ、前記補正時間タイマ(70)により前記補正時間の計時が通知されると前記第2クロック発振回路(20)を停止状態にさせる制御手段(40、50、60)と、を備えたことを特徴とするクロック制御回路。
A first clock oscillation circuit (10) for generating a first clock signal; a second clock oscillation circuit (20) for generating a second clock signal having a higher frequency and accuracy than the first clock signal; and the second clock. A clock control circuit (1) comprising a clock correction circuit (30) for correcting the frequency of the first clock signal using a signal,
A correction interval timer (80) that has a counter that operates in synchronization with the first clock and counts a correction interval that causes the clock correction circuit (30) to correct the frequency of the first clock signal using the counter. )When,
A correction time timer (70) having a counter that operates in synchronization with the first clock, and clocking a correction time required for correcting the frequency of the first clock signal by the clock correction circuit (30) using the counter. When,
For each correction interval timed by the correction interval timer (80), the correction time timer (70) starts measuring the correction time, and the second clock oscillation circuit (20) is put into an operating state. When the clock correction circuit (30) corrects the frequency of the first clock signal and the correction time timer (70) notifies the time of the correction time, the second clock oscillation circuit (20) is stopped. And a control means (40, 50, 60).
前記制御手段(40、50、60)は、前記第2クロック信号をクロックとして動作するCPU(90)が通常動作状態であるか低消費電力状態であるかを監視する動作状態制御部(40)と、
前記動作状態制御部(40)より前記CPU(90)が通常動作状態から低消費電力状態に変化したことを示す信号が入力されると停止状態から動作状態となり、前記補正間隔タイマ(80)により計時される前記補正間隔毎に、前記補正時間タイマ(70)に前記補正時間の計時を開始させるとともに前記第2クロック発振回路(20)を動作状態にさせて前記クロック補正回路(30)に前記第1クロック信号の周波数の補正を実施させ、前記補正時間タイマ(70)により前記補正時間の計時が通知されると前記第2クロック発振回路(20)を停止状態にさせるとともに自身も停止状態となる動作制御回路(50、60)と、を備えたことを特徴とする請求項1に記載のクロック制御回路。
The control means (40, 50, 60) is an operation state control unit (40) for monitoring whether the CPU (90) operating with the second clock signal as a clock is in a normal operation state or a low power consumption state. When,
When a signal indicating that the CPU (90) has changed from the normal operation state to the low power consumption state is input from the operation state control unit (40), the operation state is changed from the stop state to the operation state, and the correction interval timer (80) At each correction interval to be timed, the correction time timer (70) starts measuring the correction time, and the second clock oscillation circuit (20) is put into an operating state to cause the clock correction circuit (30) to operate. When the correction of the frequency of the first clock signal is performed and the time of the correction time is notified by the correction time timer (70), the second clock oscillation circuit (20) is brought into a stopped state and itself is also brought into a stopped state. The clock control circuit according to claim 1, further comprising an operation control circuit (50, 60).
前記動作状態制御部(40)は、前記CPU(90)が低消費電力状態から通常動作状態に変化した場合、前記第2クロック発振回路(20)を動作状態にさせることを特徴とする請求項2に記載のクロック制御回路。   The operation state control unit (40) causes the second clock oscillation circuit (20) to be in an operation state when the CPU (90) changes from a low power consumption state to a normal operation state. 3. The clock control circuit according to 2. 請求項1ないし3のいずれか1つに記載された前記クロック制御回路により生成された前記第2クロック信号をクロックとして動作するCPU(90)を備えたマイクロコンピュータであって、
前記クロック制御回路おける前記制御手段(40、50、60)、前記補正時間タイマ(70)および前記補正間隔タイマ(80)が、前記CPU(90)と同一のチップ内に格納されていることを特徴とするマイクロコンピュータ。
A microcomputer comprising a CPU (90) that operates using the second clock signal generated by the clock control circuit according to any one of claims 1 to 3 as a clock,
The control means (40, 50, 60), the correction time timer (70), and the correction interval timer (80) in the clock control circuit are stored in the same chip as the CPU (90). A featured microcomputer.
JP2010062800A 2010-03-18 2010-03-18 Clock control circuit and microcomputer Pending JP2011197910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010062800A JP2011197910A (en) 2010-03-18 2010-03-18 Clock control circuit and microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010062800A JP2011197910A (en) 2010-03-18 2010-03-18 Clock control circuit and microcomputer

Publications (1)

Publication Number Publication Date
JP2011197910A true JP2011197910A (en) 2011-10-06

Family

ID=44876047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010062800A Pending JP2011197910A (en) 2010-03-18 2010-03-18 Clock control circuit and microcomputer

Country Status (1)

Country Link
JP (1) JP2011197910A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013145960A (en) * 2012-01-13 2013-07-25 Tokai Rika Co Ltd Receiving apparatus
JP2014191428A (en) * 2013-03-26 2014-10-06 Seiko Epson Corp Clock generating device, electronic apparatus, movable body, and clock generating method
JP2015089005A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generation device, electronic apparatus, mobile body and clock generation method
WO2024014243A1 (en) * 2022-07-11 2024-01-18 住友電装株式会社 Vehicle-mounted device, program, and information processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1049251A (en) * 1996-07-30 1998-02-20 Nec Ic Microcomput Syst Ltd Microcontroller and its control method
JP2002009688A (en) * 2000-06-23 2002-01-11 Sanyo Electric Co Ltd Intermittent reception method, intermittent receiver and telephone set
WO2006090831A1 (en) * 2005-02-24 2006-08-31 Seiko Epson Corporation Clock signal outputting device and its control method, and electronic device and its control method
JP2007304007A (en) * 2006-05-12 2007-11-22 Yazaki Corp Error correction method for timepiece

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1049251A (en) * 1996-07-30 1998-02-20 Nec Ic Microcomput Syst Ltd Microcontroller and its control method
JP2002009688A (en) * 2000-06-23 2002-01-11 Sanyo Electric Co Ltd Intermittent reception method, intermittent receiver and telephone set
WO2006090831A1 (en) * 2005-02-24 2006-08-31 Seiko Epson Corporation Clock signal outputting device and its control method, and electronic device and its control method
JP2007304007A (en) * 2006-05-12 2007-11-22 Yazaki Corp Error correction method for timepiece

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013145960A (en) * 2012-01-13 2013-07-25 Tokai Rika Co Ltd Receiving apparatus
JP2014191428A (en) * 2013-03-26 2014-10-06 Seiko Epson Corp Clock generating device, electronic apparatus, movable body, and clock generating method
JP2015089005A (en) * 2013-10-31 2015-05-07 セイコーエプソン株式会社 Clock generation device, electronic apparatus, mobile body and clock generation method
WO2024014243A1 (en) * 2022-07-11 2024-01-18 住友電装株式会社 Vehicle-mounted device, program, and information processing method

Similar Documents

Publication Publication Date Title
JP5659855B2 (en) Calibration method and calibration apparatus
CN107256065B (en) Real-time clock processing system and method
EP2666239B1 (en) Low-power oscillator
CN109067394B (en) On-chip clock calibration device and calibration method
US10153773B2 (en) Low-power oscillator
US6084441A (en) Apparatus for and method of processing data
JP2011197910A (en) Clock control circuit and microcomputer
JP5968561B2 (en) Microcomputer and its clock correction method
US6326825B1 (en) Accurate time delay system and method utilizing an inaccurate oscillator
US20130076426A1 (en) Apparatus for supplying clock and method thereof
JP2001013179A (en) Measurement method for ring oscillator clock frequency, measurement circuit for ring oscillator clock frequency, and microcomputer
TW201813303A (en) Mitigation of long wake-up delay of a crystal oscillator
JP2002228778A (en) Real-time clock and clocking circuit
JP4036114B2 (en) Clock generation circuit
JP5266168B2 (en) Microcomputer
JPH0784666A (en) Control device for intermittent operation of cpu
JP2006229607A (en) Semiconductor device and method of correcting oscillation frequency
JP5680507B2 (en) Electronic system
JP2000013269A (en) Radio receiver and frequency deviation estimating method
TWI501555B (en) Control circuit and method for dynamically adjusting a source current for an oscillation source
JPH1039060A (en) Clock clocking apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120723

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130522

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130924