JPH0954629A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH0954629A
JPH0954629A JP7208886A JP20888695A JPH0954629A JP H0954629 A JPH0954629 A JP H0954629A JP 7208886 A JP7208886 A JP 7208886A JP 20888695 A JP20888695 A JP 20888695A JP H0954629 A JPH0954629 A JP H0954629A
Authority
JP
Japan
Prior art keywords
output
signal
voltage
frequency
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7208886A
Other languages
Japanese (ja)
Other versions
JP2757827B2 (en
Inventor
Toshihide Tsuboi
俊秀 坪井
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP7208886A priority Critical patent/JP2757827B2/en
Publication of JPH0954629A publication Critical patent/JPH0954629A/en
Application granted granted Critical
Publication of JP2757827B2 publication Critical patent/JP2757827B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the microcomputer which can generate a CPU clock of high frequency precision at low cost. SOLUTION: Commercial AC electric power 142 which is divided by resistances R4 and R5 is inputted to the AC input circuit 203 of the microcomputer 201 through a capacitor C5 and the AC input circuit 203 generates a reference signal synchronized accurately with the commercial AC electric power 142. This reference signal is inputted to a multiplying circuit 202, which multiplies the reference signal up to a desired frequency and inputs the multiplied signal to a clock generating circuit 102. Further, the clock generating circuit 102 generates a two-phase clock according to the signal supplied from the multiplying circuit to drive a CPU 103. Consequently, the microcomputer 201 can be placed in operation with the clock of high frequency precision synchronized accurately with the commercial AC electric power.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はマイクロコンピュー
タに関し、特に商用交流電源からCPU(中央処理装
置)に対するクロックを発生しこれを利用するマイクロ
コンピュータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer, and more particularly to a microcomputer which generates a clock for a CPU (central processing unit) from a commercial AC power source and uses the clock.

【0002】[0002]

【従来の技術】従来、マイクロコンピュータからCPU
へのクロック発生方法としては、基準信号源として水晶
発振回路を用いる方法、CR発振回路を用いる方法およ
び商用交流電源を用いる方法などの提案がなされてい
る。
2. Description of the Related Art Conventionally, from a microcomputer to a CPU
As a method for generating a clock for the clock signal, a method using a crystal oscillation circuit as a reference signal source, a method using a CR oscillation circuit, a method using a commercial AC power supply, and the like have been proposed.

【0003】最初に、クロックの基準信号源として水晶
発振回路を用いる第1の従来例について図18を参照し
て説明する。水晶発振回路は、マイクロコンピュータ1
01に内蔵されたインバータ105および抵抗R1から
なる増幅器と、水晶振動子110とコンデンサC1およ
びC2とからなる共振回路とから構成され、得られた発
振出力はインバータ106により波形整形される。クロ
ック発生回路102はインバータ106の出力Cout
から互いに重ならない2相のクロックCLK1およびC
LK2を発生し、CPU103に2相クロックとして供
給している。ここで、図19はクロック発生回路102
の回路図であり、図20はインバータ106の出力信号
Coutを受けてクロック発生回路102が発生する互
いに重ならない2相のクロックCLK1およびCLK2
のタイミングを示すタイミングチャートである。このよ
うな水晶発振回路を用いた基準信号の発生方法は周波数
精度が高いクロックを得ることができる反面、水晶振動
子を使用することでコストが高くなるという欠点があ
る。
First, a first conventional example using a crystal oscillator circuit as a clock reference signal source will be described with reference to FIG. The crystal oscillator circuit is the microcomputer 1
01 is built in the inverter 105 and a resistor R1 and a resonance circuit composed of a crystal oscillator 110 and capacitors C1 and C2. The obtained oscillation output is shaped by an inverter 106. The clock generation circuit 102 outputs the output Cout of the inverter 106.
2 phase clocks CLK1 and C that do not overlap each other
LK2 is generated and supplied to the CPU 103 as a two-phase clock. Here, FIG. 19 shows the clock generation circuit 102.
20 is a circuit diagram of FIG. 20. The two-phase clocks CLK1 and CLK2 generated by the clock generation circuit 102 in response to the output signal Cout of the inverter 106 do not overlap each other.
3 is a timing chart showing the timing of FIG. The method of generating a reference signal using such a crystal oscillator circuit can obtain a clock with high frequency accuracy, but has the drawback of increasing the cost by using a crystal oscillator.

【0004】次に、第2の従来例を図21を参照して説
明する。
Next, a second conventional example will be described with reference to FIG.

【0005】図21において図18と同一の参照数字お
よび符号は同一の構成要素および信号等を示す。CR発
振器124で得られる発振出力Coutはクロック発生
回路102に供給されこの結果、互いに重ならない2相
のクロックCLK1およびCLK2が発生し、CPU1
03に供給されている。
In FIG. 21, the same reference numerals and symbols as in FIG. 18 indicate the same components and signals. The oscillation output Cout obtained by the CR oscillator 124 is supplied to the clock generation circuit 102, and as a result, two-phase clocks CLK1 and CLK2 that do not overlap each other are generated, and the CPU1
It is supplied to 03.

【0006】図22は図21に含まれるCR発振器12
4の具体的な回路構成図であり、図23はCR発振器1
24の発振波形を示す信号波形図である。図22におい
て、排他的論理和回路135はインバータ132の出力
が変化したとき、複数のインバータを直列接続してなる
遅延回路134で決まる遅延時間に相当するパルス巾の
ワンショットパルスを発生する。
FIG. 22 shows the CR oscillator 12 included in FIG.
4 is a specific circuit configuration diagram of FIG. 4, and FIG.
It is a signal waveform diagram which shows the oscillation waveform of 24. In FIG. 22, when the output of the inverter 132 changes, the exclusive OR circuit 135 generates a one-shot pulse having a pulse width corresponding to the delay time determined by the delay circuit 134 formed by connecting a plurality of inverters in series.

【0007】次に、図23の時刻t0において発振器入
力Oinが電源電位にある場合のCR発振器124の動
作を図21,図22および図23を参照して説明する。
図21のCR発振器124を構成するクロックドインバ
ータ136の出力がハイインピーダンス状態にあると
き、インバータ130がGND電位を出力することでコ
ンデンサC3に蓄えられた電荷を抵抗R2を介して放電
する。放電にともない発振器入力Oinの電位はコンデ
ンサC3と抵抗R2とで決まる時定数で減少し、時刻t
1でインバータ131の入力スレッショルド電圧に達す
るとインバータ131の出力はロウレベルからハイレベ
ルに、インバータ132の出力はハイレベルからロウレ
ベルに、インバータ130の出力Ooutはロウレベル
からハイレベル(電源電位)になる。同時に排他的論理
和回路135が遅延回路134で決まる遅延時間に相当
するワンショットパルスを出力するので、この期間クロ
ックドインバータ136はGND電位を出力し、発振器
入力Oinの電位はGND電位に引き下げられる。
Next, the operation of the CR oscillator 124 when the oscillator input Oin is at the power supply potential at the time t0 in FIG. 23 will be described with reference to FIGS. 21, 22 and 23.
When the output of the clocked inverter 136 that constitutes the CR oscillator 124 of FIG. 21 is in the high impedance state, the inverter 130 outputs the GND potential, so that the electric charge stored in the capacitor C3 is discharged through the resistor R2. With the discharge, the potential of the oscillator input Oin decreases with the time constant determined by the capacitor C3 and the resistor R2.
When the input threshold voltage of the inverter 131 is reached at 1, the output of the inverter 131 changes from low level to high level, the output of the inverter 132 changes from high level to low level, and the output Oout of the inverter 130 changes from low level to high level (power supply potential). At the same time, the exclusive OR circuit 135 outputs a one-shot pulse corresponding to the delay time determined by the delay circuit 134, so that the clocked inverter 136 outputs the GND potential and the potential of the oscillator input Oin is lowered to the GND potential during this period. .

【0008】その後、クロックドインバータ136がハ
イインピーダンス状態となるとインバータ130が電源
電位を出力しているので発振器入力Oinの電位は上昇
し、図23の時刻t2においてインバータ131の入力
スレッショルド電圧に達すると、インバータ131の出
力はハイレベルからロウレベルに、インバータ132の
出力はロウレベルからハイレベルに、インバータ130
の出力OoutはGND電位を出力する。これと同時に
排他的論理和回路135は遅延回路134により決まる
遅延時間に相当するワンショットパルスを出力するの
で、この期間クロックドインバータ136が電源電位を
出力し発振器入力の電位Oinは電源電位に引き上げら
れ初期状態にもどる。この後、上述した動作を繰り返し
発振出力Coutが得られる。発振出力Coutからク
ロック発生回路102で互いに重ならない2相クロック
CLK1およびCLK2を発生し、CPU103に供給
するのは第1の従来例と同様である。
After that, when the clocked inverter 136 is in the high impedance state, the potential of the oscillator input Oin rises because the inverter 130 outputs the power source potential, and reaches the input threshold voltage of the inverter 131 at time t2 in FIG. , The output of the inverter 131 is changed from high level to low level, the output of the inverter 132 is changed from low level to high level,
The output Oout of outputs the GND potential. At the same time, the exclusive OR circuit 135 outputs a one-shot pulse corresponding to the delay time determined by the delay circuit 134. Therefore, the clocked inverter 136 outputs the power supply potential during this period and the potential Oin of the oscillator input is raised to the power supply potential. It returns to the initial state. After that, the above-described operation is repeated to obtain the oscillation output Cout. The clock generation circuit 102 generates two-phase clocks CLK1 and CLK2 that do not overlap each other from the oscillation output Cout and supplies them to the CPU 103 as in the first conventional example.

【0009】この第2の従来例においては、発振に必要
な外付け部品が抵抗R2とコンデンサC3で済み製造コ
ストが安いという利点があるものの、抵抗R2の抵抗値
およびコンデンサC3の容量値はともにばらつきが大き
くしかも温度係数が大きく、さらに発振周波数の精度が
抵抗R2とコンデンサC3に依存するので高い周波数精
度が得られないという問題がある。一般にマイクロコン
ピュータはCPUを駆動するクロック周波数が高いほ
ど、処理時間が短くなるので処理能力が大きくなる。一
方、クロック周波数がCPUの性能を上回るほど高くな
るとCPUは処理不能となる。このため発振器の定数を
決める場合、マイクロコンピュータも含めクロックを発
生させるのに関係した回路の全部品が全て発振周波数が
高くなるほうにばらついても、クロックの周波数がCP
Uの性能を越えることがないように決める必要がある。
したがって、CR発振器のように発振周波数の精度が得
られない場合は発振器を構成する部品の定数を余裕をも
って決めねばならず、マイクロコンピュータの処理能力
を十分使えないことになる。もちろんこの場合、時計機
能をマイクロコンピュータを用いて実現することは不可
能である。
The second conventional example has the advantage that the external parts required for oscillation are the resistor R2 and the capacitor C3, and the manufacturing cost is low, but both the resistance value of the resistor R2 and the capacitance value of the capacitor C3 are low. There is a problem that high frequency accuracy cannot be obtained because the variation is large and the temperature coefficient is large, and the accuracy of the oscillation frequency depends on the resistor R2 and the capacitor C3. Generally, in a microcomputer, the higher the clock frequency for driving the CPU, the shorter the processing time, and the larger the processing capability. On the other hand, when the clock frequency becomes higher than the performance of the CPU, the CPU cannot process. Therefore, when determining the constant of the oscillator, even if all the components of the circuit related to generating the clock, including the microcomputer, are scattered at the higher oscillation frequency, the clock frequency becomes CP.
It is necessary to decide not to exceed the performance of U.
Therefore, when the accuracy of the oscillation frequency cannot be obtained as in the CR oscillator, the constants of the components forming the oscillator must be determined with a margin, and the processing capacity of the microcomputer cannot be used sufficiently. Of course, in this case, it is impossible to realize the clock function using a microcomputer.

【0010】また図24に示すように、CR発振器でク
ロックを発生しマイクロコンピュータで時計機能を実現
する第3の従来例が特開昭56−147092公報に記
載されている。
Further, as shown in FIG. 24, a third conventional example in which a clock is generated by a CR oscillator and a clock function is realized by a microcomputer is disclosed in Japanese Patent Laid-Open No. 56-147092.

【0011】本従来例では発振周波数が抵抗R3とコン
デンサC4に依存する発振回路141でマイクロコンピ
ュータ143のCPUのクロックを発生し、時計動作は
商用交流電源142からクロック入力回路140を介し
て商用交流電源の周波数をマイクロコンピュータ143
に取り込み、これを計数して時計の表示器144に時刻
を表示している。商用交流電源の周波数は電力会社によ
って注意深く管理されているので時計機能実現に十分な
精度を持っている。従って、本従来例で十分実用的な時
計が得られる。
In this conventional example, the clock of the CPU of the microcomputer 143 is generated by the oscillation circuit 141 whose oscillation frequency depends on the resistor R3 and the capacitor C4, and the clock operation is performed from the commercial AC power source 142 through the clock input circuit 140. The frequency of the power supply is controlled by the microcomputer 143.
The time is displayed on the display unit 144 of the clock by taking in the data. The frequency of the commercial AC power supply is carefully controlled by the electric power company, so it has sufficient accuracy to realize the clock function. Therefore, a sufficiently practical timepiece can be obtained in this conventional example.

【0012】一方、この従来例ではCR発振器で得られ
るクロックでCPUを駆動しているので図21のマイク
ロコンピュータ121と同様クロック周波数のばらつき
が大きく、発振器を構成する部品の定数を余裕をもって
決めなければならない。このため、マイクロコンピュー
タの処理能力を十分使えないことになる。さらに、商用
交流電源には一般にノイズが重畳しており、このノイズ
がクロック入力回路を誤動作させ、商用交流電源に正確
に同期した基準パルスを発生できないという問題があっ
た。また通常、家庭用機器では厳しいコストダウンが要
求されるが、一般に、マイクロコンピュータを含むIC
のコストは端子の数が多ければその分高くなる。本従来
例ではCPUのクロックを得るための発振回路141以
外にクロック入力回路140から商用交流電源の周波数
を取り込む端子を必要とするので、コストの点で不利と
なる。
On the other hand, in this conventional example, since the CPU is driven by the clock obtained by the CR oscillator, the variation of the clock frequency is large similarly to the microcomputer 121 of FIG. 21, and the constants of the components constituting the oscillator must be determined with a margin. I have to. Therefore, the processing capacity of the microcomputer cannot be fully used. Moreover, noise is generally superimposed on the commercial AC power supply, and this noise causes a malfunction of the clock input circuit, and there is a problem that a reference pulse accurately synchronized with the commercial AC power supply cannot be generated. Generally, household devices require severe cost reduction, but in general, ICs including microcomputers are required.
If the number of terminals is large, the cost will increase accordingly. This conventional example requires a terminal for taking in the frequency of the commercial AC power supply from the clock input circuit 140 in addition to the oscillation circuit 141 for obtaining the clock of the CPU, which is disadvantageous in terms of cost.

【0013】[0013]

【発明が解決しようとする課題】第1の従来例では水晶
振動子を用いているので、周波数精度が高いクロックを
得ることができる反面、コストが高くなるという問題が
ある。また第2の従来例では、発振器に必要な外付け部
品は抵抗とコンデンサのみであるため、コストは安いと
いう利点はあるものの、発振回路の精度が悪くCPUの
性能を十分引き出せないという問題がある。さらに第3
の従来例では、時計の精度は商用交流電源を基準信号に
しているので十分高いものの、CPUを駆動するクロッ
クをCR発振器を用いて発生させるので、第2の従来例
と同様CPUの性能を十分引き出せない。また、商用電
源に乗ってくるノイズが多い環境で使用すると、時計が
誤動作する恐れがある。以上説明したように従来のマイ
クロコンピュータにおいては、安いコストと高い処理能
力を両立させることができないという問題点があった。
Since the crystal oscillator is used in the first conventional example, a clock with high frequency accuracy can be obtained, but there is a problem that the cost becomes high. Further, in the second conventional example, since the only external parts required for the oscillator are the resistors and the capacitors, there is an advantage that the cost is low, but there is a problem that the accuracy of the oscillation circuit is poor and the performance of the CPU cannot be sufficiently brought out. . Furthermore the third
In the conventional example, the accuracy of the clock is sufficiently high because the commercial AC power supply is used as the reference signal, but the clock for driving the CPU is generated using the CR oscillator, so that the performance of the CPU is sufficient as in the second conventional example. I can't withdraw. In addition, the watch may malfunction if used in an environment where there is a lot of noise coming from the commercial power supply. As described above, the conventional microcomputer has a problem that it is not possible to achieve both low cost and high processing capability.

【0014】このため本発明の目的は、商用交流電源に
正確に同期したパルス信号を抽出し、このパルス信号を
マイクロコンピュータに内蔵した逓倍回路でCPUに必
要なクロック周波数に逓倍し、さらに2相の重ならない
クロックを生成しCPUに供給するクロック発生回路を
内蔵したマイクロコンピュータを提供することにある。
Therefore, an object of the present invention is to extract a pulse signal that is accurately synchronized with a commercial AC power source, multiply the pulse signal by a multiplying circuit built in a microcomputer to a clock frequency required for a CPU, and further to perform two-phase. Another object of the present invention is to provide a microcomputer including a clock generation circuit that generates non-overlapping clocks and supplies the clocks to the CPU.

【0015】また、本発明の他の目的は商用交流電源に
ノイズが重畳しても安定したクロックをCPUに供給す
るクロック発生回路および逓倍回路を内蔵したマイクロ
コンピュータを安いコストで提供することにある。
Another object of the present invention is to provide at low cost a microcomputer having a built-in clock generation circuit and a multiplication circuit for supplying a stable clock to the CPU even if noise is superimposed on the commercial AC power supply. .

【0016】[0016]

【課題を解決するための手段】そのため、本発明による
マイクロコンピュータは、商用交流電源からこの電源に
同期した基準信号を抽出する抽出手段と、前記抽出手段
により抽出された基準信号を逓倍する逓倍手段と、前記
逓倍手段の出力信号から互いに重ならない複数のクロッ
クを得るクロック発生手段とを有し、前記逓倍手段は、
該手段の出力信号を分周する分周手段;前記抽出手段の
出力信号と前記分周手段の出力信号の位相差を検出し前
記抽出手段の出力信号の位相が前記分周手段の出力信号
の位相に対して進んでいる場合は第1の制御信号を出力
し、前記抽出手段の出力信号の位相が前記分周手段の出
力信号の位相に対して遅れている場合は第2の制御信号
を出力する位相比較器;前記第1の制御信号に応答して
出力電圧を平衡状態における出力電圧よりも低くし、前
記第2の制御信号に応答して出力電圧を前記平衡状態に
おける出力電圧よりも高くする低域通過フィルタ;およ
び前記逓倍手段の出力信号を出力信号としかつ前記低域
通過フィルタの出力電圧が前記平衡状態における出力電
圧よりも高くなったときは該平衡状態における発振周波
数よりも発振周波数を低くし、前記低域通過フィルタの
出力電圧が前記平衡状態における出力電圧よりも低くな
ったときは前記平衡状態における発振周波数よりも前記
発振周波数を高くする電圧制御発振器を含むことを特徴
としている。
Therefore, the microcomputer according to the present invention comprises an extracting means for extracting a reference signal synchronized with the commercial AC power source and a multiplying means for multiplying the reference signal extracted by the extracting means. And clock generating means for obtaining a plurality of clocks that do not overlap each other from the output signal of the multiplying means, and the multiplying means includes
Frequency dividing means for dividing the output signal of the means; a phase difference between the output signal of the extracting means and the output signal of the frequency dividing means is detected, and the phase of the output signal of the extracting means is the output signal of the frequency dividing means. The first control signal is output when the phase is advanced with respect to the phase, and the second control signal is output when the phase of the output signal of the extracting means is delayed with respect to the phase of the output signal of the frequency dividing means. A phase comparator for outputting; an output voltage lower than an output voltage in a balanced state in response to the first control signal, and an output voltage lower than an output voltage in the balanced state in response to the second control signal. A low-pass filter to be increased; and an output signal of the multiplying means as an output signal, and when the output voltage of the low-pass filter becomes higher than the output voltage in the balanced state, oscillates more than the oscillation frequency in the balanced state. frequency And a voltage controlled oscillator that raises the oscillation frequency higher than the oscillation frequency in the balanced state when the output voltage of the low pass filter becomes lower than the output voltage in the balanced state. .

【0017】また、本発明の他の実施の形態によるマイ
クロコンピュータは、商用交流電源からこの電源に同期
した基準信号を抽出する抽出手段と、前記抽出手段によ
り抽出された基準信号を逓倍する逓倍手段と、前記逓倍
手段の出力信号から互いに重ならない複数のクロックを
得るクロック発生手段とを有し、前記逓倍手段は、該手
段の出力信号を分周する分周手段;前記抽出手段の出力
信号と前記分周手段の出力信号の位相差を検出しこの位
相差に応じた制御信号を出力する位相比較器;前記位相
比較器の制御信号を入力信号とする低域通過フィルタ;
前記逓倍手段の出力信号を出力信号とし、前記低域通過
フィルタの出力電圧により発振周波数を制御する電圧制
御発振器を含み、前記商用交流電源が正電圧から負電圧
または負電圧から正電圧に切り替わるときおよびその直
前直後以外の期間に前記抽出手段と前記逓倍手段との間
に前記逓倍手段の入力信号を保持する手段を設けたこと
を特徴としている。
Further, a microcomputer according to another embodiment of the present invention comprises an extracting means for extracting a reference signal synchronized with a commercial AC power source and a multiplying means for multiplying the reference signal extracted by the extracting means. And a clock generating means for obtaining a plurality of clocks that do not overlap each other from the output signal of the multiplying means, wherein the multiplying means divides the output signal of the means, and the output signal of the extracting means. A phase comparator that detects the phase difference between the output signals of the frequency dividing means and outputs a control signal according to this phase difference; a low-pass filter that receives the control signal of the phase comparator as an input signal;
When the commercial AC power supply is switched from a positive voltage to a negative voltage or from a negative voltage to a positive voltage, the output signal of the multiplication means is used as an output signal, and the commercial AC power supply includes a voltage controlled oscillator that controls the oscillation frequency by the output voltage of the low pass filter. And a means for holding the input signal of the multiplying means between the extracting means and the multiplying means in a period other than immediately before and immediately thereafter.

【0018】[0018]

【発明の実施の形態】次に本発明の実施の形態について
図面を参照して説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0019】図1は本発明の第1の実施の形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【0020】本実施の形態においては、抵抗R4および
R5で分圧された商用交流電源をコンデンサC5を介し
てマイクロコンピュータ201のAC入力回路203に
入力している。
In the present embodiment, the commercial AC power source divided by the resistors R4 and R5 is input to the AC input circuit 203 of the microcomputer 201 via the capacitor C5.

【0021】図2はAC入力回路203の具体例を示す
回路図である。図2で、インバータ211とインバータ
212は同じ入力スレッショルド電圧を持つように設計
されている。インバータ211は入力と出力が接続され
ており抵抗R6を介してAC入力回路203の入力をイ
ンバータ211の入力スレッショルド電圧にバイアスす
る。したがって、マイクロコンピュータ201の外部に
設けられたコンデンサC5を介して入力されるAC信号
の中心電位は、インバータ212の入力スレッショルド
電圧に一致する。インバータ212の入力にはインバー
タ212の入力スレッショルド電圧を中心電位とするA
C信号が加わるので、AC入力の電位が中心電位より高
い場合はインバータ212の入力電位がインバータ21
2の入力スレッショルド電圧より高くなり、AC入力の
電位が中心電位より低い場合はインバータ212の入力
電位がインバータ212の入力スレッショルド電圧より
低くなる。これにより、図3に示すようにAC入力回路
203は商用交流電源142の交流信号をデジタル波形
の基準信号として出力する。AC入力回路をこの様に構
成することで、簡単な回路構成でハイレベルとロウレベ
ルのデューティ比が等しいデジタル信号を商用交流電源
142から取り出すことができる。
FIG. 2 is a circuit diagram showing a concrete example of the AC input circuit 203. In FIG. 2, the inverter 211 and the inverter 212 are designed to have the same input threshold voltage. The input and output of the inverter 211 are connected, and the input of the AC input circuit 203 is biased to the input threshold voltage of the inverter 211 via the resistor R6. Therefore, the center potential of the AC signal input via the capacitor C5 provided outside the microcomputer 201 matches the input threshold voltage of the inverter 212. The input of the inverter 212 is A with the input threshold voltage of the inverter 212 as the center potential.
Since the C signal is added, when the potential of the AC input is higher than the center potential, the input potential of the inverter 212 is the inverter 21.
2 becomes higher than the input threshold voltage of 2 and the potential of the AC input is lower than the central potential, the input potential of the inverter 212 becomes lower than the input threshold voltage of the inverter 212. As a result, as shown in FIG. 3, the AC input circuit 203 outputs the AC signal of the commercial AC power supply 142 as a reference signal having a digital waveform. By configuring the AC input circuit in this way, it is possible to extract from the commercial AC power supply 142 a digital signal having a high-level and low-level duty ratio with a simple circuit configuration.

【0022】図4は本実施の形態に用いた逓倍回路20
2の一例を示すブロック図である。
FIG. 4 shows a multiplication circuit 20 used in this embodiment.
It is a block diagram which shows an example of 2.

【0023】位相比較器221は、基準信号f1と分周
器224の出力信号f2の位相比較を行い位相差に比例
したパルス信号UPバーまたはDownバーを低域通過
フィルタ222に入力する。低域通過フィルタ222
は、入力されたパルス信号UPバーまたはDownバー
を平滑して制御電圧V1を電圧制御発振器223に供給
する。電圧制御発振器223は、逓倍回路202の発振
出力f3を次段のクロック発生回路102に供給すると
ともに、分周器224に発振出力f3を供給する。分周
器224は、発振出力f3をNを正の整数として1/N
分周した周波数f2を位相比較器に供給する。
The phase comparator 221 compares the phase of the reference signal f1 with the output signal f2 of the frequency divider 224 and inputs a pulse signal UP bar or Down bar proportional to the phase difference to the low pass filter 222. Low pass filter 222
Supplies the control voltage V1 to the voltage controlled oscillator 223 by smoothing the input pulse signal UP bar or Down bar. The voltage controlled oscillator 223 supplies the oscillation output f3 of the multiplication circuit 202 to the clock generation circuit 102 at the next stage and also supplies the oscillation output f3 to the frequency divider 224. The frequency divider 224 outputs 1 / N of the oscillation output f3, where N is a positive integer.
The divided frequency f2 is supplied to the phase comparator.

【0024】逓倍回路202は基準信号f1と分周器の
出力f2が一致するように全体として帰還がかかるの
で、基準信号f1をN倍して出力する逓倍回路として動
作する。ここで、一例としてN=65536とすると発
振出力f3は基準信号f1の65536倍となる。商用
交流電源の周波数が50Hzであれば、逓倍回路の出力
周波数すなわち電圧制御発振器223の発振周波数f3
は3.2768MHzとなる。
Since the multiplication circuit 202 is fed back as a whole so that the reference signal f1 and the output f2 of the frequency divider coincide with each other, it operates as a multiplication circuit which multiplies the reference signal f1 by N and outputs it. Here, as an example, when N = 65536, the oscillation output f3 becomes 65536 times the reference signal f1. If the frequency of the commercial AC power supply is 50 Hz, the output frequency of the multiplication circuit, that is, the oscillation frequency f3 of the voltage controlled oscillator 223.
Is 3.2768 MHz.

【0025】次に、逓倍回路202の動作を各ブロック
毎に詳細に説明する。
Next, the operation of the multiplication circuit 202 will be described in detail for each block.

【0026】最初に、図5に示す位相比較器221は基
準信号f1と分周器224の出力信号f2の位相を比較
し、位相差に等しい出力信号UPバーまたはDownバ
ーを出力する。図6の(a)は基準信号f1が出力信号
f2に較べて位相が進んでいる場合を、(b)は基準信
号f1が出力信号f2に較べて位相が遅れている場合を
示している。基準信号f1が出力信号f2に較べて位相
が進んでいる場合、図6(a)に示すように位相比較器
221は、基準信号f1と出力信号f2の位相差に等し
いUPバー信号を出力し、逆に基準信号f1が出力信号
f2に較べて位相が遅れている場合、図6(b)に示す
ように位相比較器221は、基準信号f1と出力信号f
2の位相差に等しいDownバー信号を出力する。
First, the phase comparator 221 shown in FIG. 5 compares the phases of the reference signal f1 and the output signal f2 of the frequency divider 224, and outputs the output signal UP bar or Down bar equal to the phase difference. FIG. 6A shows a case where the reference signal f1 has a phase advanced as compared with the output signal f2, and FIG. 6B shows a case where the reference signal f1 has a phase delayed as compared with the output signal f2. When the phase of the reference signal f1 is ahead of that of the output signal f2, the phase comparator 221 outputs an UP bar signal equal to the phase difference between the reference signal f1 and the output signal f2, as shown in FIG. 6 (a). On the contrary, when the phase of the reference signal f1 is delayed as compared with the output signal f2, the phase comparator 221 outputs the reference signal f1 and the output signal f as shown in FIG. 6B.
A Down bar signal equal to the phase difference of 2 is output.

【0027】いま、基準信号f1が出力信号f2の周波
数よりも高い場合、すなわち、基準信号f1が発振出力
f3の1/65536倍よりも高い場合、平均すれば基
準信号f1の位相は出力信号f2の位相よりも進んでい
るので位相比較器221からUPバー信号が低域通過フ
ィルタ222に出力される。
Now, when the reference signal f1 is higher than the frequency of the output signal f2, that is, when the reference signal f1 is higher than 1/65536 times the oscillation output f3, the phase of the reference signal f1 is on average the output signal f2. The phase comparator 221 outputs the UP bar signal to the low-pass filter 222 because it is ahead of the phase of.

【0028】次に、低域通過フィルタ222の動作につ
いて図7を参照して説明する。位相比較器221からU
Pバー信号がインバータ213に入力すると、N型MO
SFET232が導通しコンデンサC6の電位すなわち
制御電圧V1が減少する。一方Downバー信号が入力
すると、P型MOSFET231が導通し電源Vccか
らP型MOSFET231を介してコンデンサC6に充
電するので、制御電圧V1は上昇する。このように、低
域通過フィルタ222は基準信号f1が出力信号f2に
較べて周波数が高くなれば制御電圧V1を低くし、逆に
基準信号f1が出力信号f2に較べて周波数が低くなれ
ば制御電圧V1を高くするように動作する。
Next, the operation of the low pass filter 222 will be described with reference to FIG. Phase comparator 221 to U
When the P bar signal is input to the inverter 213, the N type MO
The SFET 232 becomes conductive and the potential of the capacitor C6, that is, the control voltage V1 decreases. On the other hand, when the Down bar signal is input, the P-type MOSFET 231 conducts and the power source Vcc charges the capacitor C6 via the P-type MOSFET 231, so that the control voltage V1 rises. As described above, the low-pass filter 222 lowers the control voltage V1 when the frequency of the reference signal f1 is higher than that of the output signal f2, and conversely controls when the frequency of the reference signal f1 is lower than that of the output signal f2. It operates to increase the voltage V1.

【0029】電圧制御発振器223は、低域通過フィル
タ222から出力される制御電圧V1を受けて制御電圧
V1に応じた発振出力f3を出力する。
The voltage controlled oscillator 223 receives the control voltage V1 output from the low pass filter 222 and outputs an oscillation output f3 according to the control voltage V1.

【0030】次に、図8および図9を参照して電圧制御
発振器223の動作について説明する。図8は電圧制御
発振器223のブロック図、図9は電圧制御発振器22
3に使用される遅延回路240の回路図であり、図8に
示すReset信号を“1”にセットするとNOR回路
の出力は“0”に、インバータの出力は“1”となるた
め図9のN型MOSFET252は導通し、コンデンサ
C7は放電するためコンデンサC7の電圧はGND電位
に固定され、電圧制御発振器223は発振停止する。
Next, the operation of the voltage controlled oscillator 223 will be described with reference to FIGS. 8 and 9. 8 is a block diagram of the voltage controlled oscillator 223, and FIG. 9 is a voltage controlled oscillator 22.
9 is a circuit diagram of the delay circuit 240 used in FIG. 3, and when the Reset signal shown in FIG. 8 is set to “1”, the output of the NOR circuit becomes “0” and the output of the inverter becomes “1”, and therefore the circuit of FIG. Since the N-type MOSFET 252 becomes conductive and the capacitor C7 is discharged, the voltage of the capacitor C7 is fixed at the GND potential, and the voltage controlled oscillator 223 stops oscillating.

【0031】次に、Reset信号を“0”とすると発
振出力f3も同時に“0”となっているのでN型MOS
FET252のゲートは“0”となり、N型MOSFE
T252は非道通となる。このとき制御電圧V1の電位
が高いときは、P型MOSFET251のインピーダン
スが大きくなるのでコンデンサC7の充電時間は遅く、
制御電圧V1の電位が低いときはP型MOSFET25
1のインピーダンスが小さくなるのでコンデンサC7の
充電時間は早くなる。したがって、図9に示す遅延回路
は制御電圧V1が高いときは遅延時間が大きく、制御電
圧V1が低いときは遅延時間が小さくなる。このことか
ら、遅延回路240を3段直列に接続してリングオシレ
ータ構成にした電圧制御発振器223の発振出力f3
は、制御電圧V1が高いと発振周波数が低くなり、逆に
制御電圧V1が低くなると発振周波数は高くなる。した
がって、基準信号f1が出力信号f2に較べて周波数が
高くなれば低域通過フィルタ222から出力される制御
電圧V1は低くなるので、電圧制御発振器223は制御
電圧V1を受けて発振周波数を高くするように動作す
る。
Next, when the Reset signal is set to "0", the oscillation output f3 is also set to "0" at the same time.
The gate of the FET 252 becomes "0", and the N-type MOSFE
T252 becomes outrageous. At this time, when the potential of the control voltage V1 is high, the impedance of the P-type MOSFET 251 increases, so that the charging time of the capacitor C7 is slow,
When the potential of the control voltage V1 is low, the P-type MOSFET 25
Since the impedance of 1 becomes smaller, the charging time of the capacitor C7 becomes faster. Therefore, the delay circuit shown in FIG. 9 has a long delay time when the control voltage V1 is high and a short delay time when the control voltage V1 is low. From this, the oscillation output f3 of the voltage controlled oscillator 223 having the ring oscillator configuration in which the delay circuits 240 are connected in series in three stages
When the control voltage V1 is high, the oscillation frequency is low, and conversely, when the control voltage V1 is low, the oscillation frequency is high. Therefore, when the frequency of the reference signal f1 is higher than that of the output signal f2, the control voltage V1 output from the low-pass filter 222 is low, and the voltage-controlled oscillator 223 receives the control voltage V1 to increase the oscillation frequency. Works like.

【0032】図10は、分周器の具体例を示す回路図で
ある。本実施の形態では、フリップフロップを16段接
続して全体を65536分周する分周器としている。分
周器224は、発振出力f3を1/65536分周して
位相比較器221に出力信号f2を入力する。
FIG. 10 is a circuit diagram showing a concrete example of the frequency divider. In this embodiment mode, 16 stages of flip-flops are connected to form a frequency divider for dividing the entire frequency by 65536. The frequency divider 224 divides the oscillation output f3 by 1/65536 and inputs the output signal f2 to the phase comparator 221.

【0033】最初に仮定したように、基準信号f1の周
波数が出力信号f2に較べて高い場合、位相比較器22
1はUPバー信号を発生し低域通過フィルタ222に供
給する。低域通過フィルタ222は、UPバー信号を受
けて制御電圧V1を低下させる。電圧制御発振器223
は、制御電圧V1が低下すると発振周波数f3を高く
し、分周器224を介して出力信号f2の周波数を高く
する。逓倍回路202はこのような動作をくり返すこと
により、最終的に基準信号f1と出力信号f2の周波数
は一致し、商用交流電源の周波数の65536倍の周波
数を安定してクロック発生回路102に供給する。マイ
クロコンピュータ201は逓倍回路202の出力信号f
3からクロック発生回路102で互いに重ならない2相
のクロックCLK1およびCLK2を発生しCPU10
3に供給している。
As initially assumed, if the frequency of the reference signal f1 is higher than that of the output signal f2, the phase comparator 22
1 generates an UP bar signal and supplies it to the low pass filter 222. The low pass filter 222 receives the UP bar signal and reduces the control voltage V1. Voltage controlled oscillator 223
Raises the oscillation frequency f3 when the control voltage V1 decreases, and raises the frequency of the output signal f2 via the frequency divider 224. The frequency of the reference signal f1 and the output signal f2 finally match with each other by repeating the above-mentioned operation of the frequency multiplier circuit 202, and the frequency of 65536 times the frequency of the commercial AC power source is stably supplied to the clock generation circuit 102. To do. The microcomputer 201 outputs the output signal f of the multiplication circuit 202.
3, the clock generator circuit 102 generates two-phase clocks CLK1 and CLK2 that do not overlap each other, and the CPU 10
3

【0034】本実施の形態では周波数の精度が高い商用
交流電源の周波数を逓倍してCPU103のクロックを
得ているので、周波数精度の高いクロックを得ることが
でき、また必要な部品もコンデンサC5、抵抗R4およ
びR5と安いものであるから、CPUの性能を安価にか
つ十分引き出すことができる。
In the present embodiment, the frequency of the commercial AC power supply with high frequency accuracy is multiplied to obtain the clock of the CPU 103, so that the clock with high frequency accuracy can be obtained, and the necessary parts are the capacitor C5, Since the resistors R4 and R5 are cheap, the performance of the CPU can be obtained inexpensively and sufficiently.

【0035】次に、図11,図12および図13を参照
して本発明の第2の実施の形態について説明する。な
お、図1および図4と共通の構成要素には共通の参照文
字/数字を付してある。
Next, a second embodiment of the present invention will be described with reference to FIGS. 11, 12 and 13. It should be noted that common reference characters / numerals are given to constituent elements common to FIGS. 1 and 4.

【0036】本実施の形態では、第1の形態と同様に抵
抗R4およびR5で分圧された商用交流電源142をコ
ンデンサC5を介してマイクロコンピュータ201のA
C入力回路203に入力している。AC入力回路203
は第1の実施の形態と同様であり、商用交流電源142
の交流信号を図3に示すようなデジタル波形の基準信号
として出力する。
In this embodiment, as in the first embodiment, the commercial AC power source 142 divided by the resistors R4 and R5 is connected to the A of the microcomputer 201 via the capacitor C5.
It is input to the C input circuit 203. AC input circuit 203
Is similar to that of the first embodiment, and commercial AC power source 142
Is output as a reference signal having a digital waveform as shown in FIG.

【0037】逓倍回路272は、AC入力回路203か
らの基準信号f1を受けて50Hzの基準信号を655
36倍した3.276MHzの発振出力f3をクロック
発生回路102に供給する。
The multiplication circuit 272 receives the reference signal f1 from the AC input circuit 203 and outputs a 50 Hz reference signal 655.
The oscillation output f3 of 3.276 MHz which is multiplied by 36 is supplied to the clock generation circuit 102.

【0038】図12を参照すると、逓倍回路272は、
基準信号f1と分周器の出力信号f2の位相差を検出し
て位相差に等しい出力信号UPバーまたはDownバー
を出力する位相比較器221と、位相比較器221から
入力するUPバーまたはDownバー信号のパルス巾に
応じた制御電圧V1を発生する低域通過フィルタ222
と、制御電圧V1によって発振出力f3の周波数を可変
とする電圧制御発振器223とを有しており、内部回路
および動作は第1実施の形態と同様である。
Referring to FIG. 12, the multiplication circuit 272 is
A phase comparator 221 that detects a phase difference between the reference signal f1 and the output signal f2 of the frequency divider and outputs an output signal UP bar or Down bar equal to the phase difference, and an UP bar or Down bar input from the phase comparator 221. Low-pass filter 222 that generates control voltage V1 according to the pulse width of the signal
And a voltage-controlled oscillator 223 that makes the frequency of the oscillation output f3 variable according to the control voltage V1, and the internal circuit and operation are the same as in the first embodiment.

【0039】また、分周器224はフリップフロップ2
61〜264を含み、電圧制御発振器から出力される発
振出力f3を1/65536分周して出力信号f2を位
相比較器221に供給する。また、A,B,Cはそれぞ
れフリップフロップ264〜262の出力である。い
ま、発振出力f3の発振周波数は基準信号の周波数50
Hzの65536倍であり、分周器の出力信号f2の周
波数は基準信号と同じく50Hz、フリップフロップ2
62の出力Cの周波数は100Hzとなる。さらに逓倍
回路272は、R−Sフリップフロップ265、フリッ
プフロップ266、論理和回路267を含む回路により
位相比較器221に入力する信号のタイミングを制御し
ている。
Further, the frequency divider 224 is the flip-flop 2
The oscillation output f3 output from the voltage controlled oscillator including 61 to 264 is divided by 1/65536, and the output signal f2 is supplied to the phase comparator 221. A, B, and C are outputs of the flip-flops 264 to 262, respectively. Now, the oscillation frequency of the oscillation output f3 is 50 times that of the reference signal.
65536 times Hz, the frequency of the output signal f2 of the frequency divider is 50 Hz, which is the same as that of the reference signal, and the flip-flop 2
The frequency of the output C of 62 is 100 Hz. Further, the multiplication circuit 272 controls the timing of the signal input to the phase comparator 221 by a circuit including the RS flip-flop 265, the flip-flop 266, and the OR circuit 267.

【0040】次に、逓倍回路272の動作について説明
する。
Next, the operation of the multiplication circuit 272 will be described.

【0041】最初に、マイクロコンピュータ271がリ
セットされるとR−Sフリップフロップ265はリセッ
トされ出力Qバーは“1”となる。このため、フリップ
フロップ266のクロック端子CPは“1”を保持し続
けフリップフロップ266の出力Qには基準信号f1が
そのまま出力される。位相比較器221は、基準信号f
1と分周器の出力信号f2の位相を比較し、基準信号f
1の位相が出力信号f2よりも進んでいれば図6(a)
に示すようにUPバー信号を発生し、逆に基準信号f2
の位相が出力信号f2よりも遅れていれば、図6(b)
に示すようにDownバー信号を発生する。
First, when the microcomputer 271 is reset, the RS flip-flop 265 is reset and the output Q-bar becomes "1". Therefore, the clock terminal CP of the flip-flop 266 keeps holding “1”, and the reference signal f1 is output as it is to the output Q of the flip-flop 266. The phase comparator 221 uses the reference signal f
1 and the phase of the output signal f2 of the frequency divider are compared, and the reference signal f
If the phase of 1 leads the output signal f2, FIG.
UP signal is generated as shown in FIG.
If the phase of is delayed from the output signal f2,
A Down bar signal is generated as shown in FIG.

【0042】また、低域通過フィルタ222はUPバー
信号が入力すると制御電圧V1を低くし、Downバー
信号が入力すると逆に制御電圧V1を高くし、電圧制御
発振器223を制御する。そして、電圧制御発振器22
3は制御電圧V1が高くなると発振出力f3の周波数を
低くし、逆に制御電圧が低くなれば発振出力f3の周波
数を高くするように動作し、発振出力f3を分周器22
4に入力する。分周器224は、入力された発振出力f
3を基準信号の周波数まで分周して出力信号f2を位相
比較器に入力する。
The low-pass filter 222 lowers the control voltage V1 when the UP bar signal is input, and conversely increases the control voltage V1 when the Down bar signal is input, and controls the voltage controlled oscillator 223. Then, the voltage controlled oscillator 22
3 operates so as to lower the frequency of the oscillation output f3 when the control voltage V1 increases, and conversely increases the frequency of the oscillation output f3 when the control voltage lowers.
Enter in 4. The frequency divider 224 receives the input oscillation output f
3 is divided to the frequency of the reference signal and the output signal f2 is input to the phase comparator.

【0043】いま、基準信号f1の周波数が分周器22
4の出力信号f2の周波数に比較して高いとすると、基
準信号f1の位相は出力信号f2の位相よりも進んでい
るため、位相比較器221はUPバー信号を低域通過フ
ィルタ222に入力する。低域通過フィルタは、前に説
明したように制御電圧V1を低くして発振出力f3の周
波数を高くするように電圧制御発振器223を制御す
る。
Now, the frequency of the reference signal f1 is the frequency divider 22.
4 is higher than the frequency of the output signal f2, the phase of the reference signal f1 leads the phase of the output signal f2. Therefore, the phase comparator 221 inputs the UP bar signal to the low-pass filter 222. . The low pass filter controls the voltage controlled oscillator 223 so that the control voltage V1 is lowered and the frequency of the oscillation output f3 is raised as described above.

【0044】したがって、発振出力f3の周波数は高く
なるように変更を受け分周器224を介して位相比較器
221に入力する。このような動作を繰り返すことで、
逓倍回路272は商用交流電源の周波数の65536倍
で発振する。
Therefore, the frequency of the oscillation output f3 is changed so as to be high and is input to the phase comparator 221 via the frequency divider 224. By repeating such operation,
The multiplication circuit 272 oscillates at 65536 times the frequency of the commercial AC power supply.

【0045】次に、CPU103でプログラムを実行す
ることによりR−Sフリップフロップ265をセットす
る。R−Sフリップフロップ265がセットされると、
R−Sフリップフロップの出力Qバーは“0”を出力
し、フリップフロップ266は論理和回路267が
“1”を出力するときだけ、フリップフロップ266の
入力であるDの値を出力であるQから出力する。それ以
外のときはフリップフロップ266の以前のQの値すな
わちAC入力回路203の出力の以前の値がフリップフ
ロップ266で保持され、その保持された値が出力され
る。論理和回路267が“1”となるのは図13に示す
ようにフリップフロップ262〜264の出力が全て1
もしくは全て0を出力しているとき、すなわちAC入力
が正から負もしくは負から正へと極性を変える前後だけ
である。
Next, the CPU 103 executes the program to set the RS flip-flop 265. When the RS flip-flop 265 is set,
The output Q bar of the RS flip-flop outputs "0", and the flip-flop 266 outputs the value of D which is the input of the flip-flop 266 only when the OR circuit 267 outputs "1". Output from. At other times, the previous value of Q of the flip-flop 266, that is, the previous value of the output of the AC input circuit 203 is held in the flip-flop 266, and the held value is output. The OR circuit 267 becomes "1" because the outputs of the flip-flops 262 to 264 are all 1 as shown in FIG.
Or only when all 0s are output, that is, before and after the AC input changes the polarity from positive to negative or from negative to positive.

【0046】以上の説明からわかるように、図13の斜
線の期間はAC入力回路203の出力は位相比較器22
1に伝わらない。したがって、R−Sフリップフロップ
265がセットされると図13の斜線の期間に商用交流
電源142から本来のAC信号以外の偶発的ノイズが来
ても位相比較器221には伝わらない。
As can be seen from the above description, the output of the AC input circuit 203 is the phase comparator 22 during the shaded period in FIG.
Does not reach 1. Therefore, when the RS flip-flop 265 is set, even if accidental noise other than the original AC signal comes from the commercial AC power supply 142 during the hatched period in FIG. 13, it is not transmitted to the phase comparator 221.

【0047】次に、商用電源にノイズが混入した場合の
逓倍回路272の動作について図14を参照して説明す
る。
Next, the operation of the multiplication circuit 272 when noise is mixed into the commercial power supply will be described with reference to FIG.

【0048】図14で負電圧のノイズAが商用電源の正
のピーク値近辺に重畳したときの信号をSAに、正電圧
のノイズBが商用電源が正から負に切り替わるときに重
畳したときの信号をSBに示す。また、信号SAがAC
入力回路203に入力したときの基準信号をf1(S
A)に、信号SBがAC入力回路203に入力したとき
の基準信号をf1(SB)に示す。
In FIG. 14, the signal when the negative voltage noise A is superimposed in the vicinity of the positive peak value of the commercial power source is SA, and the positive voltage noise B is superimposed when the commercial power source is switched from positive to negative. The signal is shown at SB. In addition, the signal SA is AC
The reference signal when input to the input circuit 203 is f1 (S
In A), the reference signal when the signal SB is input to the AC input circuit 203 is indicated by f1 (SB).

【0049】逓倍回路が図4の回路構成を有していると
すると、ノイズAが重畳した時刻t1で信号SAが正か
ら負に反転するので、位相比較器221に入力した基準
信号f1(SA)はハイレベルからロウレベルに反転す
る。したがって、位相比較器221は基準信号f1(S
A)の立ち下がりと分周器出力f2の立ち下がりの時間
差に相当するUPバー信号を発生する。ノイズは商用電
源にランダムなタイミングで混入するから図4の逓倍回
路の場合、ノイズAのように商用電源の正のピーク値近
辺に大きな負のパルスが印加されると、UPバー信号は
巾が広いパルスとして低域通過フィルタ222に入力す
る。したがって、低域通過フィルタ222の制御電圧V
1は電圧制御発振器223の周波数を高くするように大
きく低下し、このため電圧制御発振器223の発振周波
数は本来電圧制御発振器が出力すべき発振出力f3から
大きくずれてしまう。
Assuming that the multiplication circuit has the circuit configuration shown in FIG. 4, the signal SA is inverted from positive to negative at the time t1 when the noise A is superimposed, so that the reference signal f1 (SA inputted to the phase comparator 221 is changed. ) Is inverted from high level to low level. Therefore, the phase comparator 221 outputs the reference signal f1 (S
The UP bar signal corresponding to the time difference between the fall of A) and the fall of the frequency divider output f2 is generated. Since noise mixes into the commercial power supply at random timing, in the case of the multiplication circuit of FIG. 4, when a large negative pulse is applied near the positive peak value of the commercial power supply like the noise A, the UP bar signal has a width. A wide pulse is input to the low pass filter 222. Therefore, the control voltage V of the low pass filter 222 is
1 greatly decreases so as to increase the frequency of the voltage controlled oscillator 223, and therefore the oscillation frequency of the voltage controlled oscillator 223 deviates greatly from the oscillation output f3 that the voltage controlled oscillator should originally output.

【0050】一方、図12の逓倍回路の場合ノイズAが
商用電源に混入したとしても時刻t1は図13の斜線部
の期間内にあり、位相比較器221はノイズに対して不
感であり全くノイズの影響を受けない。また、ノイズB
が商用電源に混入した場合、基準信号f1(SB)はノ
イズの影響を受けてパルス巾が拡大するが、位相比較器
221は分周器の出力f2の立ち下がりと基準信号f1
(SB)の立ち下がりの時間差に等しいDownバー信
号を発生するので、巾が狭いパルスとして低域通過フィ
ルタ222に入力する。したがって、低域通過フィルタ
222は正常動作時の制御電圧V1よりも若干高い電圧
を発生するがDownバー信号のパルス巾が狭いので、
制御電圧V1の上昇分は小さい。したがって、正常動作
時の電圧制御発振器223の発振周波数から少しずれる
だけなので、すぐにもとの電圧制御発振器223の発振
周波数に復帰する。
On the other hand, in the case of the frequency multiplier circuit of FIG. 12, even if the noise A is mixed into the commercial power source, the time t1 is within the shaded portion of FIG. 13, the phase comparator 221 is insensitive to the noise, and no noise is generated. Not affected by. Also, noise B
, The reference signal f1 (SB) is affected by noise and the pulse width is expanded. However, the phase comparator 221 causes the reference signal f1 to fall when the output f2 of the frequency divider falls.
Since a Down bar signal equal to the trailing time difference of (SB) is generated, it is input to the low pass filter 222 as a pulse having a narrow width. Therefore, the low-pass filter 222 generates a voltage slightly higher than the control voltage V1 during normal operation, but the pulse width of the Down bar signal is narrow,
The increase in the control voltage V1 is small. Therefore, the oscillation frequency of the voltage controlled oscillator 223 at the time of normal operation is slightly deviated, and the oscillation frequency of the original voltage controlled oscillator 223 is immediately restored.

【0051】上述の実施の形態では前にも述べた様に周
波数の精度が高い商用交流電源の周波数を逓倍してCP
U103のクロックを得ているので、周波数精度の高い
クロックを得ることができ、また必要な部品もコンデン
サC5、抵抗R4およびR5と安いものであるから、C
PUの性能を安価に、十分引き出すことができる。ま
た、商用電源に混入したノイズの影響を大幅に軽減し電
圧制御発振器223により安定した発振周波数をクロッ
ク発生回路102に供給し、クロック発生回路102で
互いに重ならない2相のクロックとしてCPU103に
供給することができる。
In the above-mentioned embodiment, as described above, the frequency of the commercial AC power source having high frequency accuracy is multiplied to obtain the CP.
Since the clock of U103 is obtained, a clock with high frequency accuracy can be obtained, and the necessary parts are cheap, such as capacitor C5 and resistors R4 and R5.
The performance of the PU can be sufficiently obtained at low cost. The voltage control oscillator 223 supplies a stable oscillation frequency to the clock generation circuit 102, and the clock generation circuit 102 supplies the CPU 103 as a two-phase clock that does not overlap each other. be able to.

【0052】次に、本発明の第3の実施の形態について
図15,図16および図17を参照して説明する。な
お、図1および図4と共通の構成要素には共通の参照文
字/数字を付してある。
Next, a third embodiment of the present invention will be described with reference to FIGS. 15, 16 and 17. It should be noted that common reference characters / numerals are given to constituent elements common to FIGS. 1 and 4.

【0053】本実施の形態では、図15に示すように抵
抗R4およびR5で分圧された商用交流電源142をコ
ンデンサC5を介してマイクロコンピュータ281のA
C入力回路203に入力するが、AC入力回路203の
出力が逓倍回路282に入力するまでの動作については
第1および第2の実施の形態と同様である。
In this embodiment, as shown in FIG. 15, the commercial AC power source 142 divided by the resistors R4 and R5 is connected to the A of the microcomputer 281 via the capacitor C5.
The operation is input to the C input circuit 203, but the operation until the output of the AC input circuit 203 is input to the multiplication circuit 282 is the same as in the first and second embodiments.

【0054】図16を参照すると、逓倍回路282は、
基準信号f1と分周器の出力信号f2の位相差を検出し
て位相差に等しい出力信号UPバーまたはDownバー
を出力する位相比較器221、位相比較器221から入
力するUPバーまたはDownバー信号のパルス巾に応
じた制御電圧V1を発生する低域通過フィルタ222お
よび制御電圧V1によって発振出力f3の周波数を可変
とする電圧制御発振器223を含んでおり、動作および
内部回路は第1および第2の実施の形態と同様である。
Referring to FIG. 16, the multiplication circuit 282 is
A phase comparator 221 that detects a phase difference between the reference signal f1 and the output signal f2 of the frequency divider and outputs an output signal UP bar or Down bar equal to the phase difference, and a UP bar or Down bar signal input from the phase comparator 221. It includes a low-pass filter 222 that generates a control voltage V1 according to the pulse width of V and a voltage controlled oscillator 223 that makes the frequency of the oscillation output f3 variable by the control voltage V1. The operation and the internal circuit include the first and second circuits. This is the same as the embodiment.

【0055】また、分周器224はフリップフロップ2
61〜264を有し、電圧制御発振器から出力される発
振出力f3を分周して出力信号f2を位相比較器221
に供給する。また、A,B,Cはそれぞれフリップフロ
ップ264〜262の出力である。さらに逓倍回路28
2は、R−Sフリップフロップ265、291および2
92、論理積回路293、論理和回路294を含む回路
により位相比較器に入力する信号のタイミングを制御し
ている。
Further, the frequency divider 224 is the flip-flop 2
61 to 264, and divides the oscillation output f3 output from the voltage controlled oscillator to output the output signal f2 to the phase comparator 221.
To supply. A, B, and C are outputs of the flip-flops 264 to 262, respectively. Further, the multiplication circuit 28
2 is RS flip-flops 265, 291 and 2
The timing of the signal input to the phase comparator is controlled by a circuit including 92, AND circuit 293, and OR circuit 294.

【0056】次に、本実施の形態に用いた逓倍回路28
2の動作について、図16および図17を参照して説明
する。
Next, the multiplication circuit 28 used in this embodiment.
The operation 2 will be described with reference to FIGS. 16 and 17.

【0057】最初に、マイクロコンピュータ281がリ
セットされるとR−Sフリップフロップ265はリセッ
トされ出力Qバーは“1”となる。このため、論理和回
路294の出力294OUTは、分周回路224の出力
信号f2によらず常に“1”になり、また論理積回路2
93の出力293OUTは常に“0”になるため、R−
Sフリップフロップのセット端子Sには基準信号f1が
入力し、リセット端子Rには基準信号の反転信号f1バ
ーが入力する。このため、R−Sフリップフロップ29
2の出力端子Qには基準信号f1がそのまま出力され
る。位相比較器221は、基準信号f1と分周器の出力
信号f2の位相を比較し、基準信号f1の位相が出力信
号f2よりも進んでいれば図6(a)に示すようにUP
バー信号を発生し、逆に基準信号f2の位相が出力信号
f2よりも遅れていれば、図6(b)に示すようにDo
wnバー信号を発生し、第1および第2の実施の形態と
同様に低域通過フィルタ222に印加する。さらに電圧
制御発振器223は低域通過フィルタ222から制御電
圧V1をうけて発振周波数を制御し、発振出力f3を分
周回路224に入力する。分周回路224は発振出力f
3を基準信号f1の周波数まで分周した後、位相比較器
221に出力信号f2を入力する。このような動作を繰
り返して、逓倍回路282は安定した発振出力f3をク
ロック発生回路102に供給し、クロック発生回路10
2では発振出力f3から互いに重ならない2相のクロッ
クCLK1およびCLK2を生成しCPU103に供給
する。
First, when the microcomputer 281 is reset, the RS flip-flop 265 is reset and the output Q-bar becomes "1". Therefore, the output 294OUT of the logical sum circuit 294 is always "1" regardless of the output signal f2 of the frequency dividing circuit 224, and the logical product circuit 2
Since the output 293OUT of 93 is always "0", R-
The reference signal f1 is input to the set terminal S of the S flip-flop, and the inverted signal f1 bar of the reference signal is input to the reset terminal R. Therefore, the RS flip-flop 29
The reference signal f1 is directly output to the output terminal Q of No. 2. The phase comparator 221 compares the phases of the reference signal f1 and the output signal f2 of the frequency divider, and if the phase of the reference signal f1 leads the output signal f2, as shown in FIG.
If the bar signal is generated and the phase of the reference signal f2 is delayed behind the output signal f2, Do is output as shown in FIG. 6B.
A wn bar signal is generated and applied to the low pass filter 222 as in the first and second embodiments. Further, the voltage controlled oscillator 223 receives the control voltage V1 from the low pass filter 222 to control the oscillation frequency, and inputs the oscillation output f3 to the frequency dividing circuit 224. The frequency divider 224 outputs the oscillation output f
After dividing 3 into the frequency of the reference signal f1, the output signal f2 is input to the phase comparator 221. By repeating such operation, the multiplication circuit 282 supplies the stable oscillation output f3 to the clock generation circuit 102, and the clock generation circuit 10
2, the two-phase clocks CLK1 and CLK2 that do not overlap each other are generated from the oscillation output f3 and are supplied to the CPU 103.

【0058】次に、CPU103でプログラムを実行す
ることにより時刻t0においてR−Sフリップフロップ
265をセットする。R−Sフリップフロップ265が
セットされると、R−Sフリップフロップの出力Qバー
は“0”を出力し、論理積回路293および論理和回路
294はR−Sフリップフロップ291の出力Qをその
ままそれぞれの出力293OUTおよび294OUTに
出力する。R−Sフリップフロップ292は論理和回路
294の出力294OUTが“1”を出力するとき、す
なわちR−Sフリップフロップ291が“1”を出力す
るときのみセット可能で、論理積回路293の出力29
3OUTが“0”を出力するときすなわちR−Sフリッ
プフロップ291の出力291Qが“0”を出力すると
きのみリセット可能である。図17のR−Sフリップフ
ロップ291のセット端子である291Sに示すよう
に、R−Sフリップフロップ291はフリップフロップ
261〜264の出力A,B,C,およびf2が全て
“0”のとき、すなわちAC入力が負から正に極性を変
えると期待される少し前の時刻t3と時刻t4の間の期
間でセットされ、R−Sフリップフロップ291のリセ
ット端子である291Rに示すように、フリップフロッ
プ262〜264の出力A,B,Cが“0”で、フリッ
プフロップ261の出力信号f2が“1”のとき、すな
わちAC入力が正から負に極性を変えると期待される少
し前の時刻t1と時刻t2の間の期間でリセットされ
る。
Next, the CPU 103 executes the program to set the RS flip-flop 265 at time t0. When the RS flip-flop 265 is set, the output Q bar of the RS flip-flop outputs "0", and the AND circuit 293 and the OR circuit 294 output the output Q of the RS flip-flop 291 as it is. It outputs to respective outputs 293OUT and 294OUT. The RS flip-flop 292 can be set only when the output 294OUT of the logical sum circuit 294 outputs "1", that is, when the RS flip-flop 291 outputs "1", and the output 29 of the logical product circuit 293 can be set.
It can be reset only when 3OUT outputs "0", that is, when the output 291Q of the RS flip-flop 291 outputs "0". As shown by 291S which is a set terminal of the RS flip-flop 291 in FIG. 17, when the outputs A, B, C, and f2 of the flip-flops 261 to 264 are all “0”, the RS flip-flop 291 is That is, the flip-flop is set in the period between time t3 and time t4, which is slightly before the time when the AC input is expected to change the polarity from negative to positive, and as shown in 291R which is the reset terminal of the RS flip-flop 291. When the outputs A, B, and C of 262 to 264 are "0" and the output signal f2 of the flip-flop 261 is "1", that is, a time t1 which is slightly before the time when the AC input is expected to change its polarity from positive to negative. And is reset in the period between time t2.

【0059】R−Sフリップフロップ291の出力29
1Qが時刻t0と時刻t1の間で“1”となりR−Sフ
リップフロップ292がセット可能となった後、基準信
号f1が“1”となってR−Sフリップフロップ292
のセット端子Sに“1”が入力しR−Sフリップフロッ
プ292がセットされると、次にR−Sフリップフロッ
プ291の出力291Qが時刻t1と時刻t3の間で
“0”となりリセット可能となるまでR−Sフリップフ
ロップ292は出力を保持し続ける。また、R−Sフリ
ップフロップ291の出力291Qが“0”となりR−
Sフリップフロップ292がリセット可能となった後、
基準信号f1が“0”となってR−Sフリップフロップ
292のリセット端子Rに“1”が入力しR−Sフリッ
プフロップ292がリセットされると、次にR−Sフリ
ップフロップ291の出力291Qが“1”となりセッ
ト可能となるまでR−Sフリップフロップ292は出力
を保持し続ける。
Output 29 of RS flip-flop 291
After 1Q becomes "1" between time t0 and time t1 and the RS flip-flop 292 can be set, the reference signal f1 becomes "1" and the RS flip-flop 292 is set.
When "1" is input to the set terminal S of the RS flip-flop 292, the output 291Q of the RS flip-flop 291 becomes "0" between the time t1 and the time t3, and the resetting is possible. Until then, the RS flip-flop 292 continues to hold the output. Further, the output 291Q of the RS flip-flop 291 becomes "0" and R-
After the S flip-flop 292 becomes resettable,
When the reference signal f1 becomes "0" and "1" is input to the reset terminal R of the RS flip-flop 292 to reset the RS flip-flop 292, the output 291Q of the RS flip-flop 291 is next output. Becomes 1 and can be set, the RS flip-flop 292 continues to hold the output.

【0060】このように、R−Sフリップフロップ29
2は基準信号に同期してセットおよびリセットを繰り返
し、基準信号に同期した信号を位相比較回路221に供
給する。R−Sフリップフロップ291および292
は、図17からわかるようにセットとリセットが同時に
切り替わることはないのでスパイクノイズは発生せず、
逓倍回路282は安定した動作を行うことができる。ま
た、商用交流電源142から本来のAC信号以外の偶発
的ノイズが来ても位相比較器221には伝わらない。商
用交流電源142にはノイズが乗ることが少なくない
が、本実施の形態においては商用交流電源142に乗る
ノイズにより電圧制御発振器223が影響を受けること
を大幅に軽減することが出来る。マイクロコンピュータ
281は逓倍回路282の出力からクロック発生回路1
02で互いに重ならない2相のクロックを発生しCPU
103に供給している。
Thus, the RS flip-flop 29
Reference numeral 2 repeats setting and reset in synchronization with the reference signal, and supplies a signal in synchronization with the reference signal to the phase comparison circuit 221. RS flip-flops 291 and 292
As can be seen from FIG. 17, since setting and resetting do not switch at the same time, spike noise does not occur,
The multiplication circuit 282 can perform stable operation. Further, even if accidental noise other than the original AC signal comes from the commercial AC power supply 142, it is not transmitted to the phase comparator 221. Although noise is often added to the commercial AC power supply 142, in the present embodiment, the influence of the noise on the commercial AC power supply 142 on the voltage controlled oscillator 223 can be significantly reduced. The microcomputer 281 outputs the clock generation circuit 1 from the output of the multiplication circuit 282.
02 to generate two-phase clocks that do not overlap each other
Is being supplied to 103.

【0061】上述の第3の実施の形態では、周波数の精
度が高い商用交流電源の周波数を逓倍してCPU103
のクロックを得ているので、周波数精度の高いクロック
を得ることができ、また必要な部品もコンデンサC5、
抵抗R4およびR5と安いものであるから、CPUの性
能を安価に、十分引き出すことができる。また、商用電
源に混入したノイズの影響を大幅に軽減し電圧制御発振
器223により安定した発振周波数をクロック発生回路
102に供給することができる。
In the above-described third embodiment, the frequency of the commercial AC power source having high frequency accuracy is multiplied to the CPU 103.
Since the clock of is obtained, it is possible to obtain a clock with high frequency accuracy, and the necessary parts are capacitors C5,
Since the resistors R4 and R5 are cheap, the performance of the CPU can be obtained inexpensively and sufficiently. Further, it is possible to significantly reduce the influence of noise mixed in the commercial power supply and supply a stable oscillation frequency to the clock generation circuit 102 by the voltage controlled oscillator 223.

【0062】[0062]

【発明の効果】以上説明したように、本発明は周波数の
精度が高い商用交流電源の周波数を逓倍してCPUのク
ロックを得ているので、周波数精度の高いクロックを得
ることができ、また必要な部品も安価であるからCPU
の性能を安価にかつ十分に引き出すことができる。さら
に、商用交流電源にノイズが混入した場合もノイズの影
響を大幅に軽減し安定した動作を行うことができる。
As described above, according to the present invention, since the frequency of the commercial AC power source having high frequency accuracy is multiplied to obtain the clock of the CPU, it is possible to obtain the clock with high frequency accuracy, and it is necessary. Various parts are also cheap, so CPU
The performance of can be fully obtained at low cost. Further, even when noise is mixed in the commercial AC power supply, the influence of noise can be significantly reduced and stable operation can be performed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施の形態を示すブロック図で
ある。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】本発明の第1の実施の形態に用いたAC入力回
路の回路図である。
FIG. 2 is a circuit diagram of an AC input circuit used in the first embodiment of the present invention.

【図3】AC入力回路203の動作を説明するための信
号波形図である。
3 is a signal waveform diagram for explaining the operation of an AC input circuit 203. FIG.

【図4】逓倍回路202の構成を示すブロック図であ
る。
FIG. 4 is a block diagram showing a configuration of a multiplication circuit 202.

【図5】位相比較器221の構成を示す回路図である。5 is a circuit diagram showing a configuration of a phase comparator 221. FIG.

【図6】位相比較器221の動作を説明するためのタイ
ミングチャートである。
FIG. 6 is a timing chart for explaining the operation of the phase comparator 221.

【図7】低域通過フィルタ222の構成を示す回路図で
ある。
FIG. 7 is a circuit diagram showing a configuration of a low pass filter 222.

【図8】電圧制御発振器223の構成を示すブロック図
である。
FIG. 8 is a block diagram showing a configuration of a voltage controlled oscillator 223.

【図9】遅延回路240の構成を示す回路図である。9 is a circuit diagram showing a configuration of a delay circuit 240. FIG.

【図10】分周器224の構成を示す回路図である。FIG. 10 is a circuit diagram showing a configuration of a frequency divider 224.

【図11】本発明の第2の実施の形態を示すブロック図
である。
FIG. 11 is a block diagram showing a second embodiment of the present invention.

【図12】逓倍回路272の構成を示す回路図である。FIG. 12 is a circuit diagram showing a configuration of a multiplication circuit 272.

【図13】逓倍回路272の動作を説明するための信号
波形図である。
FIG. 13 is a signal waveform diagram for explaining the operation of the multiplication circuit 272.

【図14】商用電源142にノイズが重畳した場合の逓
倍回路272の動作を説明するための信号波形図であ
る。
FIG. 14 is a signal waveform diagram for explaining the operation of the multiplication circuit 272 when noise is superimposed on the commercial power supply 142.

【図15】本発明の第3の実施の形態を示すブロック図
である。
FIG. 15 is a block diagram showing a third embodiment of the present invention.

【図16】逓倍回路282の構成を示す回路図である。16 is a circuit diagram showing a configuration of a multiplication circuit 282. FIG.

【図17】逓倍回路282の動作を説明するための信号
波形図である。
FIG. 17 is a signal waveform diagram for explaining the operation of the multiplication circuit 282.

【図18】第1の従来例を示すブロック図である。FIG. 18 is a block diagram showing a first conventional example.

【図19】クロック発生回路102の構成を示す回路図
である。
FIG. 19 is a circuit diagram showing a configuration of a clock generation circuit 102.

【図20】クロック発生回路102により発生されるク
ロックのタイミングチャートである。
20 is a timing chart of clocks generated by the clock generation circuit 102. FIG.

【図21】第2の従来例を示すブロック図である。FIG. 21 is a block diagram showing a second conventional example.

【図22】CR発振器124の構成を示す回路図であ
る。
22 is a circuit diagram showing a configuration of a CR oscillator 124. FIG.

【図23】CR発振器124の発振波形を示す信号波形
図である。
23 is a signal waveform diagram showing an oscillation waveform of the CR oscillator 124. FIG.

【図24】第3の従来例を示すブロック図である。FIG. 24 is a block diagram showing a third conventional example.

【符号の説明】[Explanation of symbols]

101,121,143,201,271,281
マイクロコンピュータ 102 クロック発生回路 103 CPU 105,106,130,131,132,133,2
11,212,213,255 インバータ 110 水晶振動子 124 CR発振器 134,240 遅延回路 135 排他的論理和回路 136 クロックドインバータ 140 クロック入力回路 141 発振回路 142 商用交流電源 144 時計の表示器 202,272,282 逓倍回路 203 AC入力回路 221 位相比較器 222 低域通過フィルタ 223 電圧制御発振器 224 分周器 231,251 P型MOSFET 232,252 N型MOSFET 261,262,263,264,266 フリップ
フロップ 265,291,292 R−Sフリップフロップ 267,294 論理和回路 293 論理積回路 R1,R2,R3,R4,R5,R6,R7,R8
抵抗 C1,C2,C3,C4,C5,C6,C7 コンデ
ンサ
101, 121, 143, 201, 271, 281
Microcomputer 102 Clock generation circuit 103 CPU 105, 106, 130, 131, 132, 133, 2
11,112,213,255 Inverter 110 Crystal oscillator 124 CR oscillator 134,240 Delay circuit 135 Exclusive OR circuit 136 Clocked inverter 140 Clock input circuit 141 Oscillation circuit 142 Commercial AC power supply 144 Clock indicator 202,272, 282 Multiplier circuit 203 AC input circuit 221 Phase comparator 222 Low pass filter 223 Voltage controlled oscillator 224 Frequency divider 231,251 P-type MOSFET 232,252 N-type MOSFET 261,262,263,264,266 Flip-flop 265,291 , 292 RS flip-flop 267, 294 OR circuit 293 AND circuit R1, R2, R3, R4, R5, R6, R7, R8
Resistors C1, C2, C3, C4, C5, C6, C7 capacitors

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 商用交流電源からこの電源に同期した基
準信号を抽出する抽出手段と、 前記抽出手段により抽出された基準信号を逓倍する逓倍
手段と、 前記逓倍手段の出力信号から互いに重ならない複数のク
ロックを得るクロック発生手段とを有し、 前記逓倍手段は、該手段の出力信号を分周する分周手
段;前記抽出手段の出力信号と前記分周手段の出力信号
の位相差を検出し前記抽出手段の出力信号の位相が前記
分周手段の出力信号の位相に対して進んでいる場合は第
1の制御信号を出力し、前記抽出手段の出力信号の位相
が前記分周手段の出力信号の位相に対して遅れている場
合は第2の制御信号を出力する位相比較器;前記第1の
制御信号に応答して出力電圧を平衡状態における出力電
圧よりも低くし、前記第2の制御信号に応答して出力電
圧を前記平衡状態における出力電圧よりも高くする低域
通過フィルタ;および前記逓倍手段の出力信号を出力信
号としかつ前記低域通過フィルタの出力電圧が前記平衡
状態における出力電圧よりも高くなったときは該平衡状
態における発振周波数よりも発振周波数を低くし、前記
低域通過フィルタの出力電圧が前記平衡状態における出
力電圧よりも低くなったときは前記平衡状態における発
振周波数よりも前記発振周波数を高くする電圧制御発振
器を含むことを特徴とするマイクロコンピュータ。
1. Extraction means for extracting a reference signal synchronized with this power supply from a commercial AC power supply, multiplication means for multiplying the reference signal extracted by the extraction means, and a plurality of output signals of the multiplication means which do not overlap each other. Clock generating means for obtaining a clock of the frequency dividing means for dividing the output signal of the means, the frequency dividing means for detecting a phase difference between the output signal of the extracting means and the output signal of the frequency dividing means. When the phase of the output signal of the extracting means leads the phase of the output signal of the frequency dividing means, the first control signal is output, and the phase of the output signal of the extracting means is the output of the frequency dividing means. A phase comparator which outputs a second control signal when delayed from the phase of the signal; in response to the first control signal, the output voltage is made lower than the output voltage in the equilibrium state; In response to the control signal A low-pass filter that makes the output voltage higher than the output voltage in the equilibrium state; and an output signal of the multiplying means as an output signal, and the output voltage of the low-pass filter becomes higher than the output voltage in the equilibrium state. When the output frequency of the low pass filter is lower than the output voltage in the balanced state, the oscillation frequency is lower than the output frequency in the balanced state. A microcomputer including a voltage-controlled oscillator for increasing the voltage.
【請求項2】 商用交流電源からこの電源に同期した基
準信号を抽出する抽出手段と、 前記抽出手段により抽出された基準信号を逓倍する逓倍
手段と、 前記逓倍手段の出力信号から互いに重ならない複数のク
ロックを得るクロック発生手段とを有し、 前記逓倍手段は、該手段の出力信号を分周する分周手
段;前記抽出手段の出力信号と前記分周手段の出力信号
の位相差を検出しこの位相差に応じた制御信号を出力す
る位相比較器;前記位相比較器の制御信号を入力信号と
する低域通過フィルタ;前記逓倍手段の出力信号を出力
信号とし、前記低域通過フィルタの出力電圧により発振
周波数を制御する電圧制御発振器を含み、 前記商用交流電源が正電圧から負電圧または負電圧から
正電圧に切り替わるときおよびその直前直後以外の期間
に前記抽出手段と前記逓倍手段との間に前記逓倍手段の
入力信号を保持する手段を設けたことを特徴とするマイ
クロコンピュータ。
2. An extracting unit for extracting a reference signal synchronized with the power source from a commercial AC power source, a multiplying unit for multiplying the reference signal extracted by the extracting unit, and a plurality of output signals of the multiplying unit that do not overlap each other. Clock generating means for obtaining a clock of the frequency dividing means for dividing the output signal of the means, the frequency dividing means for detecting a phase difference between the output signal of the extracting means and the output signal of the frequency dividing means. A phase comparator that outputs a control signal according to this phase difference; a low-pass filter that uses the control signal of the phase comparator as an input signal; an output signal of the multiplying means that is an output signal, and an output of the low-pass filter Including a voltage controlled oscillator that controls the oscillation frequency by a voltage, when the commercial AC power source switches from a positive voltage to a negative voltage or from a negative voltage to a positive voltage, and immediately before and immediately thereafter. Microcomputer, characterized in that a means for holding an input signal of said multiplying means between the extraction means and the multiplying means.
JP7208886A 1995-08-16 1995-08-16 Microcomputer Expired - Lifetime JP2757827B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7208886A JP2757827B2 (en) 1995-08-16 1995-08-16 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7208886A JP2757827B2 (en) 1995-08-16 1995-08-16 Microcomputer

Publications (2)

Publication Number Publication Date
JPH0954629A true JPH0954629A (en) 1997-02-25
JP2757827B2 JP2757827B2 (en) 1998-05-25

Family

ID=16563756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7208886A Expired - Lifetime JP2757827B2 (en) 1995-08-16 1995-08-16 Microcomputer

Country Status (1)

Country Link
JP (1) JP2757827B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6415820A (en) * 1987-07-10 1989-01-19 Hitachi Ltd Integrated circuit
JPH04329721A (en) * 1991-05-02 1992-11-18 Mitsubishi Electric Corp Data reception method
JPH04360431A (en) * 1991-06-07 1992-12-14 Kokusai Electric Co Ltd Network synchronization system for digital communication network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6415820A (en) * 1987-07-10 1989-01-19 Hitachi Ltd Integrated circuit
JPH04329721A (en) * 1991-05-02 1992-11-18 Mitsubishi Electric Corp Data reception method
JPH04360431A (en) * 1991-06-07 1992-12-14 Kokusai Electric Co Ltd Network synchronization system for digital communication network

Also Published As

Publication number Publication date
JP2757827B2 (en) 1998-05-25

Similar Documents

Publication Publication Date Title
US6856202B2 (en) Phase/frequency detector and phase lock loop circuit
US9083338B2 (en) Digital noise protection circuit and method
EP0762262A1 (en) Clock generating circuit, PLL circuit
US5929714A (en) PLL timing generator
KR100985008B1 (en) Capacitive charge pump
EP0053014A1 (en) Clock generator circuit
US5592110A (en) Phase comparison circuit for maintaining a stable phase locked loop circuit in the absence of the pulse of an input signal
JP2877205B2 (en) Two-phase non-overlap signal generation circuit
JP3098471B2 (en) Semiconductor device for low power supply
US6834355B2 (en) Circuit in which the time delay of an input clock signal is dependent only on its logic phase width and a ratio of capacitances
US6646513B1 (en) Oscillator circuit having an improved capacitor discharge circuit
JP3995552B2 (en) Clock multiplier circuit
JP3523362B2 (en) Clock circuit and processor using the same
CN107645288B (en) Electronic circuit, method and electronic device for generating pulses
US20040027181A1 (en) Clock multiplying PLL circuit
JP2757827B2 (en) Microcomputer
EP0673117A1 (en) A delay line circuit
US6177821B1 (en) Microcomputer with frequency multiplication circuit
JPH1013395A (en) Phase synchronization circuit
US20040066872A1 (en) Method and apparatus for reducing clock jitter in a clock recovery circuit
JP2001127629A (en) Pll frequency synthesizer circuit
JP3446425B2 (en) Frequency synchronization circuit
US6680633B2 (en) Small-sized analog generator producing clock signals
JP4032927B2 (en) Initialization circuit for large-scale integrated circuits
US4980655A (en) D type flip-flop oscillator

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980210