JPH08274845A - Standby time controller for microcomputer - Google Patents

Standby time controller for microcomputer

Info

Publication number
JPH08274845A
JPH08274845A JP7400195A JP7400195A JPH08274845A JP H08274845 A JPH08274845 A JP H08274845A JP 7400195 A JP7400195 A JP 7400195A JP 7400195 A JP7400195 A JP 7400195A JP H08274845 A JPH08274845 A JP H08274845A
Authority
JP
Japan
Prior art keywords
output
microcomputer
time constant
capacitor
frequency divider
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
JP7400195A
Other languages
Japanese (ja)
Inventor
Isao Takahashi
高橋  功
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP7400195A priority Critical patent/JPH08274845A/en
Publication of JPH08274845A publication Critical patent/JPH08274845A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a standby time controller for microcomputer with which fluctuation in the time constant of a time constant circuit composed of resistors and a capacitor can be suppressed. CONSTITUTION: The time constant circuit is constituted by connecting the node of any one of plural serial resistors from 24-2 to 24-n with a capacitor 17 based on the result of comparing the level period of one of rectangular waves provided by shaping the waveform of an output from a frequency divider 29 with a reference clock. Thus, the time constant of the time constant circuit can be kept constant and the standby time of a microcomputer 15 can be fixed. Therefore, by using this device as the slave set of a telephone, the calling state of a base unit is surely detected and a ring back tone can be emitted from a speaker 4 of the slave set.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コードレス電話機の子
機等に使用されるマイクロコンピュータのスタンバイ時
間を一定に制御するのに好適なマイクロコンピュータの
スタンバイ時間調整装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microcomputer standby time adjusting device suitable for controlling the standby time of a microcomputer used in a cordless telephone handset or the like.

【0002】[0002]

【従来の技術】現在では、一般家庭において、親機及び
子機から成る電話機を使用するまでに電話機市場は活性
化している。この種の電話機の市場を拡大するには、電
話機自体のコストダウンは必至であり、その為、最近で
は、電話回線と接続されている親機側及び該親機と無線
通信される子機側共に呼び出し音を放音する為のスピー
カを設けるのを止め、親機側のスピーカを省いて子機側
のみにスピーカを設ける低価格帯の機種もある。この場
合、子機は、親機が電話回線を通じて外部からの通話を
受け入れ可能状態になっているか否かを定期的に判断
し、受け入れ可能と判断した場合のみ子機のスピーカを
放音させる様に、親機及び子機間のシステムを構成して
おく必要がある。具体的には、子機にマイクロコンピュ
ータを内蔵し、該マイクロコンピュータにて親機が電話
ベルの呼び出し状態になっているか否かを判断する。子
機はコードレスタイプであり、バッテリー駆動される
為、該バッテリーの寿命を考慮したマイクロコンピュー
タの使い方をしなければならない。図2は、子機に内蔵
されて使用されるマイクロコンピュータの一例を示す図
である。
2. Description of the Related Art At present, the telephone market has become active by the time a telephone consisting of a master unit and a slave unit is used in a general household. In order to expand the market for this type of telephone, it is inevitable to reduce the cost of the telephone itself. Therefore, recently, a master side connected to the telephone line and a slave side wirelessly communicated with the master side. There is also a low-priced model in which both the provision of a speaker for emitting a ringing sound is stopped and the speaker of the master unit side is omitted and the speaker is provided only on the slave unit side. In this case, the child device periodically determines whether the parent device is ready to accept an external call through the telephone line, and outputs the speaker of the child device only when it is accepted. In addition, it is necessary to configure a system between the master unit and the slave unit. Specifically, the slave unit has a microcomputer built therein, and the microcomputer determines whether or not the master unit is in the calling state of the telephone bell. Since the child device is a cordless type and is driven by a battery, it is necessary to use a microcomputer in consideration of the life of the battery. FIG. 2 is a diagram showing an example of a microcomputer that is built in and used in a child device.

【0003】図2において、(1)はマイクロコンピュ
ータであり、該マイクロコンピュータ(1)外部には、
電源Vdd及び接地間に直列接続された抵抗(2)及び
コンデンサ(3)とスピーカ(4)とが設けられ、特
に、抵抗(2)及びコンデンサ(3)の接続点はマイク
ロコンピュータ(1)の端子(5)(6)と接続され、
且つ、スピーカ(4)の入力はマイクロコンピュータ
(1)の端子(7)と接続されている。尚、抵抗(2)
及びコンデンサ(3)より固定された時定数を有する時
定数回路が構成される。
In FIG. 2, (1) is a microcomputer, and outside the microcomputer (1),
A resistor (2) and a capacitor (3) and a speaker (4) connected in series between the power supply Vdd and the ground are provided. In particular, the connection point of the resistor (2) and the capacitor (3) is connected to the microcomputer (1). Connected to terminals (5) and (6),
Moreover, the input of the speaker (4) is connected to the terminal (7) of the microcomputer (1). The resistance (2)
And a capacitor (3) constitutes a time constant circuit having a fixed time constant.

【0004】さて、マイクロコンピュータ(1)内部に
おいて、(8)はヒステリシスを有するシュミットイン
バータであり、入力が端子(5)と接続され、コンデン
サ(3)の端子電圧即ち図3(a)の充放電電圧(鋸歯
状電圧)が印加される。ここで、シュミットインバータ
(8)は、異なる2つのスレッショルド電圧を有してお
り、一方の高いスレッショルド電圧Vthを一点鎖線
で、他方の低いスレッショルド電圧Vtlを二点鎖線で
図3(a)に示す。尚、抵抗(2)の抵抗値及びコンデ
ンサ(3)の容量は1度行われた充放電期間が1sec
となる様に(充放電動作が1sec周期で行われる様
に)設定されている。更に詳しくは、シュミットインバ
ータ(8)の出力が、1sec周期のうち990mse
cはハイレベル残りの10msecはローレベルとなる
様に、即ち990msecに充電を行い且つその後の1
0mescで放電を行う様に、抵抗(2)及びコンデン
サ(3)の値が決定されている。こうすると、結果的
に、シュミットインバータ(8)の出力は、図3(b)
に示す様に、1secの中で990msecだけハイレ
ベルとなり且つ10msecだけローレベルとなる。
(9)はホールド制御部であり、シュミットインバータ
(8)からのハイレベル出力を受け取ると、この990
msecだけマイクロコンピュータ(1)をホールドモ
ード(スタンバイ状態)とし、また、シュミットインバ
ータ(8)のローレベル出力を受け取ると、この10m
sec期間だけマイクロコンピュータ(1)を通常動作
状態とするものである。このホールド制御部(9)は、
詳細すると、ソフトウエア処理を行う部分であり、シュ
ミットインバータ(8)出力をハイレベルと認識する
と、割り込み信号を発生し、この時ROM(図示せず)
から読み出されるプログラムデータの解読結果に基づ
き、マイクロコンピュータ(1)を必要最小限の動作だ
け行わせるホールドモードとして該マイクロコンピュー
タ(1)で消費される電流を低減させる。また、ホール
ド制御部(9)は、シュミットインバータ(8)出力を
ローレベルと認識すると、別の割り込み信号を発生し、
この時前記ROMから読み出されるプログラムデータの
解読結果に基づき、マイクロコンピュータ(1)を通常
動作状態とする。
In the inside of the microcomputer (1), reference numeral (8) is a Schmitt inverter having hysteresis, the input of which is connected to the terminal (5) and the terminal voltage of the capacitor (3), that is, the charging voltage of FIG. 3 (a). A discharge voltage (sawtooth voltage) is applied. Here, the Schmitt inverter (8) has two different threshold voltages, one high threshold voltage Vth is shown by a chain line, and the other low threshold voltage Vtl is shown by a chain line in FIG. . The resistance value of the resistor (2) and the capacity of the capacitor (3) are such that the charging / discharging period performed once is 1 sec.
Is set so that the charging / discharging operation is performed in a cycle of 1 sec. More specifically, the output of the Schmitt inverter (8) is 990 mse in one second cycle.
c is at a high level, so that the remaining 10 msec is at a low level, that is, charging is performed for 990 msec and then 1
The values of the resistor (2) and the capacitor (3) are determined so that the discharge is performed at 0 mesc. As a result, as a result, the output of the Schmitt inverter (8) becomes as shown in FIG.
As shown in (1), the level becomes high for 990 msec and low level for 10 msec within 1 sec.
(9) is a hold control unit, which receives this high level output from the Schmitt inverter (8)
When the microcomputer (1) is set to the hold mode (standby state) for msec and the low level output of the Schmitt inverter (8) is received, this 10 m
The microcomputer (1) is brought into a normal operation state only for the sec period. This hold control section (9)
In detail, it is a part that performs software processing, and when the output of the Schmitt inverter (8) is recognized as a high level, an interrupt signal is generated, and at this time, a ROM (not shown)
Based on the result of decoding the program data read from, the microcomputer (1) is set to the hold mode for performing the minimum necessary operation to reduce the current consumed by the microcomputer (1). Further, when the hold control section (9) recognizes the output of the Schmitt inverter (8) as a low level, another hold signal is generated,
At this time, the microcomputer (1) is set to the normal operation state based on the result of decoding the program data read from the ROM.

【0005】(10)は呼び出し判定部であり、子機に
内蔵された親機との通信信号処理を行う前段の回路部
(図示せず)から、親機が現在相手からの要求で通話を
すべく呼び出し状態となっているか否かを表す信号を受
け取り、後述する充放電制御部を制御するものである。
尚、読み出し判定部(10)の判定動作は、マイクロコ
ンピュータ(1)が通常動作する10msec期間中に
行われる。(11)は前述した充放電制御部であり、ま
ず、シュミットインバータ(8)の出力を受け取り、コ
ンデンサ(3)の充放電を制御する。(12)はコンデ
ンサ(3)の端子電圧の放電経路を形成するNチャンネ
ル型MOSトランジスタ(以下NMOSトランジスタと
称する)であり、ゲートは充放電制御部(11)の出力
と接続され、ドレインは端子(6)を介してコンデンサ
(3)の非接地側と接続され、ソースは接地されてい
る。充放電制御部(11)は、基本的に、シュミットイ
ンバータ(8)の出力がハイレベルであると、ローレベ
ルの放電禁止信号(例えば0ボルト)を出力し、NMO
Sトランジスタ(12)をオフしてコンデンサ(3)の
充電動作を継続させる。一方、シュミットインバータ
(8)の出力がローレベルであると、ハイレベルの放電
許可信号(例えば5ボルト)を出力し、NMOSトラン
ジスタ(12)をオンしてコンデンサ(3)の電荷を放
電させる。更に、呼び出し判定部(10)から「呼び出
し無し」を表す出力が充放電制御部(11)に印加され
ると、充放電制御部(11)はシュミットインバータ
(8)の出力に基づく信号出力を行う。一方、呼び出し
判定部(10)から「呼び出し有り」を表す出力が得ら
れると、充放電制御部(11)はシュミットインバータ
(8)の出力を無視し、放電禁止信号のみを出力し続け
る。即ち、シュミットインバータ(8)出力が最終的に
ローレベルに固定されてマイクロコンピュータ(1)は
通常動作状態を継続することになる。(13)は呼び出
し音発生部であり、呼び出し判定部(10)からの「呼
び出し有り」の出力を受けて呼び出し音を発生するもの
である。該呼び出し音発生部(13)から出力された呼
び出し音はバッファ(14)を介して端子(7)から出
力され、スピーカ(4)から放音される。
Reference numeral (10) is a call determination unit, which is a circuit unit (not shown) in the preceding stage for carrying out communication signal processing with the master unit built in the slave unit, and the master unit now makes a call at the request of the other party. In order to do so, it receives a signal indicating whether or not it is in a calling state, and controls a charge / discharge control unit described later.
The determination operation of the read determination unit (10) is performed during the 10 msec period during which the microcomputer (1) normally operates. (11) is the charge / discharge control unit described above, and first receives the output of the Schmitt inverter (8) and controls the charge / discharge of the capacitor (3). Reference numeral (12) is an N-channel MOS transistor (hereinafter referred to as an NMOS transistor) that forms a discharge path of the terminal voltage of the capacitor (3), the gate is connected to the output of the charge / discharge control unit (11), and the drain is the terminal. It is connected to the non-grounded side of the capacitor (3) via (6), and the source is grounded. When the output of the Schmitt inverter (8) is at a high level, the charge / discharge control unit (11) basically outputs a low level discharge prohibition signal (for example, 0 volt), and the NMO
The S transistor (12) is turned off to continue the charging operation of the capacitor (3). On the other hand, when the output of the Schmitt inverter (8) is at a low level, a high level discharge permission signal (for example, 5 volts) is output to turn on the NMOS transistor (12) to discharge the electric charge of the capacitor (3). Further, when an output indicating "no call" is applied to the charge / discharge control unit (11) from the call determination unit (10), the charge / discharge control unit (11) outputs a signal output based on the output of the Schmitt inverter (8). To do. On the other hand, when the call determination unit (10) obtains an output indicating "calling", the charge / discharge control unit (11) ignores the output of the Schmitt inverter (8) and continues to output only the discharge inhibition signal. That is, the output of the Schmitt inverter (8) is finally fixed to the low level, and the microcomputer (1) continues the normal operation state. Reference numeral (13) is a ringing tone generating section, which receives a "calling present" output from the calling determining section (10) and generates a ringing tone. The ringing tone output from the ringing tone generator (13) is output from the terminal (7) via the buffer (14) and is emitted from the speaker (4).

【0006】以上の如く構成されたマイクロコンピュー
タ(1)を子機に内蔵する訳であるが、電話回線から親
機に送られて来る呼び出しを行う為の信号は、通常、1
sec間隔で呼び出し音を鳴らせようとするものであ
る。従って、マイクロコンピュータ(1)が時定数回路
の時定数に従って、ホールドモードと通常動作モードと
から成る各周期を1sec毎に繰り返し実行していれ
ば、間欠的に行われる通常動作モードの10msec期
間で親機が呼び出し状態であるか否かを確実に判定し、
呼び出しを行うべきタイミングで必ずスピーカ(4)か
ら呼び出し音を放音できる。
The microcomputer (1) configured as described above is built in the slave unit, but the signal for making a call sent from the telephone line to the master unit is usually 1
It is intended to ring a ringing sound at intervals of sec. Therefore, if the microcomputer (1) repeatedly executes each cycle consisting of the hold mode and the normal operation mode every 1 sec in accordance with the time constant of the time constant circuit, it will be intermittently performed in the 10 msec period of the normal operation mode. Make sure to determine whether the base unit is in the calling state,
A ringing tone can be emitted from the speaker (4) without fail at the timing of calling.

【0007】[0007]

【発明が解決しようとする課題】ところで、上記した従
来の技術では、抵抗(2)及びコンデンサ(3)はマイ
クロコンピュータ(1)に対して外付部品であり、理想
的に1sec周期で充放電を行うべく抵抗値及び容量を
選定した固定時定数である。しかしながら、実際には、
前記時定数は電源Vddの変動や温度変化等の要因を受
けて変化してしまう。この時定数が変化してしまうと、
充放電周期が1secからずれてしまい、これに伴いシ
ュミットインバータ(8)のハイ及びローレベル期間に
変動が生じる。特に、前記時定数が大となってシュミッ
トインバータ(8)のハイレベル期間が1sec以上継
続してしまうと、親機が呼び出し状態となっている1s
ec期間に、マイクロコンピュータ(1)をホールドモ
ードから通常動作モードに移行できない不良タイミング
が生じる場合があり、この不良タイミングではスピーカ
(4)から呼び出し音を放音できない不具合が生じる問
題があった。
By the way, in the above-mentioned conventional technique, the resistor (2) and the capacitor (3) are external parts to the microcomputer (1), and ideally, they are charged and discharged in a cycle of 1 sec. It is a fixed time constant in which the resistance value and the capacitance are selected to perform. However, in practice,
The time constant changes due to factors such as fluctuations in the power supply Vdd and temperature changes. If this time constant changes,
The charging / discharging cycle deviates from 1 sec, and the high and low level periods of the Schmitt inverter (8) fluctuate accordingly. In particular, when the time constant becomes large and the high level period of the Schmitt inverter (8) continues for 1 sec or more, the main unit is in the calling state for 1 s.
In the ec period, there may be a defective timing in which the microcomputer (1) cannot shift from the hold mode to the normal operation mode, and there is a problem that the speaker (4) cannot emit the ringing tone at this defective timing.

【0008】この時定数の変動を抑える為に、従来は変
動の小さい水晶振動子を用いていたが、コスト高となる
問題があり、あまり好ましい対策ではなかった。そこ
で、本発明は、抵抗及びコンデンサから成る時定数回路
の時定数の変動を抑えることのできるマイクロコンピュ
ータのスタンバイ時間調整装置を提供することを目的と
する。
In order to suppress the fluctuation of the time constant, a crystal resonator having a small fluctuation has been conventionally used, but this is not a preferable measure because of the problem of high cost. Therefore, it is an object of the present invention to provide a standby time adjustment device for a microcomputer capable of suppressing fluctuations in the time constant of a time constant circuit composed of resistors and capacitors.

【0009】[0009]

【課題を解決するための手段】本発明は、前記問題点を
解決する為に成されたものであり、その特徴とするとこ
ろは、発振クロックを基に基準クロックを発生する基準
クロック発生部と、直列接続され各接続点のうち何れか
1つの接続点とコンデンサが接続されることにより時定
数回路を構成する複数の直列抵抗と、前記時定数回路の
充放電動作を制御すると共に前記時定数回路の充放電周
期に対応した原クロックを発生する原クロック発生部
と、原クロックを所定分周する分周器と、前記分周器の
出力を波形整形し1周期出力を所定デューティに設定す
るデューティ設定部と、前記分周器の1周期出力の一方
のレベル期間と、前記基準クロックとを比較する比較部
と、前記比較部の出力に基づき、前記複数の直列抵抗の
何れか1つの接続点を前記コンデンサと接続させる抵抗
切換部と、前記分周器の出力を基にマイクロコンピュー
タをスタンバイ状態とするホールド制御部と、を備え、
前記時定数回路の充放電出力の周期を制御して、前記分
周器の1周期出力の一方又は他方のレベル期間に対応す
るマイクロコンピュータのスタンバイ時間を一定とする
点である。
The present invention has been made to solve the above-mentioned problems, and is characterized by a reference clock generating section for generating a reference clock based on an oscillation clock. , A plurality of series resistors forming a time constant circuit by connecting a capacitor to any one of the connection points connected in series, and controlling the charging / discharging operation of the time constant circuit and the time constant. An original clock generator that generates an original clock corresponding to the charging / discharging cycle of the circuit, a frequency divider that divides the original clock by a predetermined frequency, the output of the frequency divider is waveform-shaped, and one cycle output is set to a predetermined duty. A duty setting section, a comparing section for comparing one level period of one cycle output of the frequency divider with the reference clock, and connection of any one of the plurality of series resistors based on the output of the comparing section. point Includes a resistance switching section for connecting to the capacitor, and a hold control section for the microcomputer in the standby state based on the output of the frequency divider, a,
The point is that the cycle of the charge / discharge output of the time constant circuit is controlled so that the standby time of the microcomputer corresponding to one or the other level period of one cycle output of the frequency divider is made constant.

【0010】[0010]

【作用】本発明によれば、分周器の1周期出力の一方の
レベル期間と基準クロックとの比較結果に基づき、複数
の直列抵抗の何れか1つの接続点をコンデンサと接続し
て時定数回路を構成する様にした。これにより、時定数
回路の時定数を一定に保持でき、マイクロコンピュータ
のスタンバイ時間を一定とできる。従って、本発明の装
置を電話の子機に使用すれば、親機の呼び出し状態を確
実に検出して子機のスピーカから呼び出し音を放音でき
る。更にマイクロコンピュータに接続されるコンデンサ
の容量を小さくできコストダウンにも寄与する。
According to the present invention, based on the result of comparison between one level period of one cycle output of the frequency divider and the reference clock, one of the plurality of series resistors is connected to the capacitor to connect the time constant. The circuit is configured. As a result, the time constant of the time constant circuit can be kept constant, and the standby time of the microcomputer can be kept constant. Therefore, if the device of the present invention is used in a slave unit of a telephone, the calling state of the master unit can be reliably detected and a ringing tone can be emitted from the speaker of the slave unit. Further, the capacity of the capacitor connected to the microcomputer can be reduced, which also contributes to cost reduction.

【0011】[0011]

【実施例】本発明の詳細を図面に従って具体的に説明す
る。図1は本発明のマイクロコンピュータのスタンバイ
時間調整装置を示す図である。尚、図1において、図2
と同一構成については同一番号を記し、その説明を省略
する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a diagram showing a standby time adjusting device for a microcomputer according to the present invention. In addition, in FIG.
The same numbers are given to the same configurations as those and the description thereof is omitted.

【0012】図1において、(15)はマイクロコンピ
ュータであり、該マイクロコンピュータ(15)外部に
はセラミック等の振動子(16)及びコンデンサ(1
7)が設けられている。振動子(16)の両端は端子
(18)(19)と接続され、コンデンサ(17)の非
接地側の一端は端子(20)と接続されている。さて、
マイクロコンピュータ(15)内部において、(21)
(22)は各々並列接続されたインバータ及び抵抗であ
り、両端は端子(18)(19)と接続されている。
尚、外部の振動子(16)と内部のインバータ(21)
及び抵抗(22)とで発振器が構成されている。例え
ば、振動子(16)の発振周波数を4MHzとすると、
インバータ(21)の出力から4MHzの矩形状の原ク
ロックが発生する。(23)は基準クロック発生部であ
り、4MHzの原クロックを例えば4分周し、1MHz
即ち1μsec周期の基準クロックを発生するものであ
る。
In FIG. 1, reference numeral (15) is a microcomputer, and a vibrator (16) such as ceramic and a capacitor (1) are provided outside the microcomputer (15).
7) is provided. Both ends of the vibrator (16) are connected to the terminals (18) and (19), and one end of the capacitor (17) on the non-grounded side is connected to the terminal (20). Now,
Inside the microcomputer (15), (21)
Reference numeral (22) is an inverter and a resistor connected in parallel, and both ends thereof are connected to terminals (18) and (19).
An external oscillator (16) and an internal inverter (21)
And the resistor (22) constitutes an oscillator. For example, if the oscillation frequency of the oscillator (16) is 4 MHz,
A rectangular original clock of 4 MHz is generated from the output of the inverter (21). Reference numeral (23) is a reference clock generator, which divides an original clock of 4 MHz into, for example, 4 and outputs 1 MHz.
That is, a reference clock having a period of 1 μsec is generated.

【0013】一方、(24−1)〜(24−n)は直列
接続された抵抗であり、抵抗(24−1)の一端は電源
Vddと接続されている。尚、抵抗(24−1)〜(2
4−n)の抵抗値は本実施例においては等しいものとす
る。また、抵抗(24−1)〜(24−n)の接続点に
は各々トランスミッションゲート(25−1)〜(25
−n)の一端が接続され、該トランスミッションゲート
(25−1)〜(25−n)の他端は共通接続されて端
子(20)を介してコンデンサ(17)の非接地側と接
続されている。即ち、後述する抵抗切換部によりトラン
スミッションゲート(25−1)〜(25−n)の何れ
か1つを選択することにより、抵抗(24−1)〜(2
4−n)の何れか1個とコンデンサ(17)とによりn
種類の時定数回路を構成できることになる。
On the other hand, (24-1) to (24-n) are resistors connected in series, and one end of the resistor (24-1) is connected to the power supply Vdd. The resistors (24-1) to (2
The resistance values of 4-n) are the same in this embodiment. Further, transmission gates (25-1) to (25-) are connected to the connection points of the resistors (24-1) to (24-n), respectively.
-N) is connected to one end, and the other ends of the transmission gates (25-1) to (25-n) are commonly connected to each other and connected to the non-grounded side of the capacitor (17) via the terminal (20). There is. That is, by selecting any one of the transmission gates (25-1) to (25-n) by the resistance switching unit described later, the resistances (24-1) to (2-1) are selected.
N by any one of 4-n) and the capacitor (17)
This makes it possible to configure various types of time constant circuits.

【0014】また、(26)は異なる2つのスレッショ
ルド電圧Vth及びVtlを有するシュミットインバー
タであり、入力は端子(20)と接続されている。(2
7)は前記時定数回路の放電路を形成するNMOSトラ
ンジスタであり、ドレインは端子(20)と接続され且
つソースは接地されている。特に、NMOSトランジス
タ(27)のゲートはインバータ(28)を介してシュ
ミットインバータ(26)の出力と接続されており、該
シュミットインバータ(26)の出力に基づいてオンオ
フ制御される。これにより、コンデンサ(17)の両端
には充放電を繰り返す波形が得られる。
Further, (26) is a Schmitt inverter having two different threshold voltages Vth and Vtl, and its input is connected to the terminal (20). (2
7) is an NMOS transistor forming a discharge path of the time constant circuit, the drain of which is connected to the terminal (20) and the source of which is grounded. In particular, the gate of the NMOS transistor (27) is connected to the output of the Schmitt inverter (26) via the inverter (28), and on / off control is performed based on the output of the Schmitt inverter (26). As a result, a waveform that repeats charging and discharging is obtained at both ends of the capacitor (17).

【0015】ここで、コンデンサ(17)の端子電圧を
得る動作について図4を用いて説明する。尚、図4
(a)はコンデンサ(17)の充放電出力、図4(b)
はシュミットインバータ(26)の出力、図4(c)は
インバータ(28)の出力を表している。コンデンサ
(17)が前記時定数回路の時定数に従って充電を開始
しその端子電圧が高い側のスレッショルド電圧Vthに
達すると、シュミットインバータ(26)の出力はロー
レベルとなる。これに伴いインバータ(28)の出力が
ハイレベルとなる為、NMOSトランジスタ(27)は
オンし、コンデンサ(17)の端子電圧は急峻に放電さ
れる。この時、コンデンサ(26)の端子電圧は低い側
のスレッショルド電圧Vtlに瞬時に達してしまう為、
シュミットインバータ(26)の出力は即座にハイレベ
ルとなり、NMOSトランジスタ(27)がオフしてコ
ンデンサ(17)は再び前記時定数に従って充電を開始
する。この動作を繰り返すことにより、コンデンサ(1
7)の非接地側には鋸歯状の充放電電圧が得られる。
尚、端子(20)に現れる1回の充放電の周波数が13
0Hzとなる様に、時定数回路の時定数が決定される。
例えばコンデンサ(17)の容量は0.01μFという
非常に小さな値の外付部品で済む。
The operation of obtaining the terminal voltage of the capacitor (17) will be described with reference to FIG. Incidentally, FIG.
(A) is the charge / discharge output of the capacitor (17), FIG. 4 (b)
Represents the output of the Schmidt inverter (26), and FIG. 4 (c) represents the output of the inverter (28). When the capacitor (17) starts charging according to the time constant of the time constant circuit and its terminal voltage reaches the high threshold voltage Vth, the output of the Schmitt inverter (26) becomes low level. Along with this, the output of the inverter (28) becomes high level, the NMOS transistor (27) is turned on, and the terminal voltage of the capacitor (17) is rapidly discharged. At this time, the terminal voltage of the capacitor (26) instantly reaches the low-side threshold voltage Vtl,
The output of the Schmitt inverter (26) immediately becomes high level, the NMOS transistor (27) is turned off, and the capacitor (17) starts charging again according to the time constant. By repeating this operation, the capacitor (1
A sawtooth charge / discharge voltage is obtained on the non-grounded side of 7).
The frequency of one charge / discharge appearing at the terminal (20) is 13
The time constant of the time constant circuit is determined so that it becomes 0 Hz.
For example, the capacitance of the capacitor (17) may be an external component having a very small value of 0.01 μF.

【0016】(29)はシュミットインバータ(26)
の出力を分周する分周器である。該分周器(29)は、
130Hz(約7.7msec)を分周する為に256
分周を行うべく例えば8個のTフリップフロップ(図示
せず)を直列接続して成る。(30)は制御部であり、
分周器(29)の分周出力は本来130Hzを1周期と
した原クロックを256分周した波形となるが、分周器
(29)の出力を990msecのローレベル期間及び
10msecのハイレベル期間に波形整形して1分周出
力のデューティ比を99:1に設定するものである。こ
の動作を図5を用いて説明する。尚、図5において、
(a)はシュミットインバータ(26)の出力、(b)
は分周器(29)の出力を表している。まず、分周器
(29)がリセットされた状態でシュミットインバータ
(26)の出力の256分周を行うと、分周器(29)
の出力はシュミットインバータ(26)の128周期出
力が経過するまでローレベルを継続する。このローレベ
ル期間は、7.7msecが128周期加算された期間
であり、約990msecとなる。その後、分周器(2
9)出力はハイレベルに立ち上がる。制御部(30)は
タイマ(図示せず)を内蔵しており、分周器(29)の
ハイレベル出力を受けた時点から10msecを計数
し、10msec計数後にオーバーフロー信号を分周器
(29)に向けて出力する。このオーバーフロー信号が
分周器(29)のリセット信号RSTとなる。従って、
分周器(29)の出力はリセット信号RSTを受けてロ
ーレベルに立ち下がる為、990msecだけローレベ
ル且つ10msecだけハイレベルの組み合わせを1周
期とする1secの波形を繰り返し出力する。理想的に
は、シュミットインバータ(26)の出力が130Hz
となっていることが前提であるが、実際には、温度や素
子特性のばらつき等の影響によりシュミットインバータ
(26)の出力は130Hzから変動する可能性があ
る。そこで、この変動を抑える為に以下の構成が必要と
なる。
(29) is a Schmitt inverter (26)
It is a frequency divider that divides the output of. The frequency divider (29) is
256 to divide 130Hz (about 7.7msec)
For example, eight T flip-flops (not shown) are connected in series to perform frequency division. (30) is a control unit,
The frequency-divided output of the frequency divider (29) originally has a waveform obtained by dividing the original clock with one cycle of 130 Hz by 256, but the frequency-divided output of the frequency divider (29) is a low level period of 990 msec and a high level period of 10 msec. The waveform is shaped into 1 and the duty ratio of the 1-divided output is set to 99: 1. This operation will be described with reference to FIG. In addition, in FIG.
(A) is the output of the Schmidt inverter (26), (b)
Represents the output of the frequency divider (29). First, when the output of the Schmitt inverter (26) is divided by 256 while the frequency divider (29) is reset, the frequency divider (29)
The output of is kept low level until the output of 128 cycles of the Schmitt inverter (26) elapses. This low level period is a period in which 7.7 msec is added by 128 cycles, which is about 990 msec. After that, the frequency divider (2
9) The output rises to high level. The control unit (30) incorporates a timer (not shown), counts 10 msec from the time when the high level output of the frequency divider (29) is received, and after counting 10 msec, the overflow signal is divided by the frequency divider (29). Output to. This overflow signal becomes the reset signal RST of the frequency divider (29). Therefore,
Since the output of the frequency divider (29) falls to the low level upon receiving the reset signal RST, a waveform of 1 sec in which one cycle is a combination of the low level for 990 msec and the high level for 10 msec is repeatedly output. Ideally, the output of the Schmitt inverter (26) is 130Hz.
However, in practice, the output of the Schmitt inverter (26) may fluctuate from 130 Hz due to the influence of variations in temperature and element characteristics. Therefore, the following configuration is required to suppress this fluctuation.

【0017】(31)は測定部であり、基準クロック発
生部(23)からの基準クロックと分周器(29)から
のローレベル出力期間とを比較する。理想的には、分周
器(29)のローレベル期間は990msecであるこ
とから、この期間に1μsec周期の基準クロックが9
90000個存在することが基本条件となる。測定部
(31)は、分周器(29)のローレベル出力期間内に
入る基準クロックの個数を計数する。(32)は判定部
であり、測定部(31)にて測定した基準クロック数が
990000個より多いか少ないかを判定する。そし
て、990000個に対して基準クロック数がどれだけ
多いか少ないかに応じて、ROM(図示せず)から読み
出されたnビットのテーブルデータを、nビットのレジ
スタから成る後述する抵抗切換部にセットするものであ
る。ここで、測定部(31)及び判定部(32)は、通
常動作モードとなっている上記した990msec期間
内に、前記ROMからのプログラムデータに基づきソフ
トウエア処理されるものである。
Reference numeral (31) is a measuring unit for comparing the reference clock from the reference clock generating unit (23) with the low level output period from the frequency divider (29). Ideally, since the low level period of the frequency divider (29) is 990 msec, the reference clock having a period of 1 μsec is 9 msec during this period.
The basic condition is that there are 90000 pieces. The measurement unit (31) counts the number of reference clocks that fall within the low level output period of the frequency divider (29). Reference numeral (32) is a determination unit that determines whether the number of reference clocks measured by the measurement unit (31) is more or less than 990000. The n-bit table data read from the ROM (not shown) is converted into a resistance switching unit (to be described later) including an n-bit register according to how much or less the number of reference clocks is relative to 990000. To be set to. Here, the measurement unit (31) and the determination unit (32) are software-processed based on the program data from the ROM within the above-mentioned 990 msec period in the normal operation mode.

【0018】(33)は上記した抵抗切換部であり、前
記ROMからのnビットのテーブルデータがセットされ
る。このテーブルデータの各ビットはトランスミッショ
ンゲート(25−1)〜(25−n)の各制御端子と接
続されている。即ち、テーブルデータのnビットの内、
1ビットのみが「1」となって、前記時定数回路の充放
電周期を7.7msecとするのに適切なトランスミッ
ションゲートのみが開き、当該トランスミッションゲー
トに対応する複数の直列抵抗の接続点が端子(20)を
介してコンデンサ(17)の非接地側と接続される。
以上より、コンデンサ(17)と接続されて時定数回路
を構成する複数の直列抵抗(24−1)〜(24−n)
を切換可能とした為、電源Vdd変動や周囲温度変化、
更にはシュミットインバータ(26)の素子特性にばら
つきが生じた場合でも、シュミットインバータ(26)
の出力を常に130Hzとできる。即ち、分周器(2
9)から、常に、990msecだけローレベル及び1
0msecだけハイレベルとなる1周期(1sec)を
繰り返す出力が得られる。
(33) is the resistance switching unit described above, to which n-bit table data from the ROM is set. Each bit of this table data is connected to each control terminal of transmission gates (25-1) to (25-n). That is, of n bits of table data,
Only 1 bit becomes "1", only the transmission gate suitable for setting the charging / discharging cycle of the time constant circuit to 7.7 msec is opened, and the connection point of a plurality of series resistors corresponding to the transmission gate is a terminal. It is connected to the non-grounded side of the capacitor (17) via (20).
From the above, a plurality of series resistors (24-1) to (24-n) connected to the capacitor (17) to form a time constant circuit
Since it is possible to switch the power supply Vdd fluctuation and ambient temperature change,
Further, even if the element characteristics of the Schmitt inverter (26) vary, the Schmitt inverter (26)
Can always output 130 Hz. That is, the frequency divider (2
From 9), always low level and 1 for 990 msec.
It is possible to obtain an output that repeats one cycle (1 sec) in which the level becomes high only for 0 msec.

【0019】(34)(35)は電源Vdd及び接地の
間に直列接続された抵抗及びNMOSトランジスタであ
り、該NMOSトランジスタ(35)のゲートは制御部
(30)の出力と接続されている。該制御部(30)
は、分周器(29)の出力がローレベルの990mse
c期間にはハイレベルの制御信号を出力し、分周器(2
9)の出力がハイレベルの10msec期間にはローレ
ベルの制御信号を出力する。(36)はホールド制御部
であり、その入力はインバータ(37)を介してNMO
Sトランジスタ(35)のドレインと接続されている。
即ち、ホールド制御部(36)の入力は、図3(b)に
示す如く、分周器(29)の990msecのローレベ
ル期間はNMOSトランジスタ(35)のオンに伴いハ
イレベルとなり、また、分周器(29)の10msec
のハイレベル期間はNMOSトランジスタ(35)のオ
フに伴いローレベルとなる。
Numerals (34) and (35) are a resistor and an NMOS transistor connected in series between the power source Vdd and the ground, and the gate of the NMOS transistor (35) is connected to the output of the control section (30). The control unit (30)
The output of the frequency divider (29) is low level 990 mse
During period c, a high level control signal is output and the frequency divider (2
During the 10 msec period when the output of 9) is high level, a low level control signal is output. (36) is a hold control unit, the input of which is an NMO via an inverter (37).
It is connected to the drain of the S transistor (35).
That is, as shown in FIG. 3B, the input of the hold controller (36) becomes high level when the NMOS transistor (35) is turned on during a low level period of 990 msec of the frequency divider (29), and the 10 msec of the circumference (29)
During the high level period, the level becomes low as the NMOS transistor (35) is turned off.

【0020】該ホールド制御部(36)は、インバータ
(37)からのハイレベル出力を受け取ると、この99
0msecだけマイクロコンピュータ(15)をホール
ドモード(スタンバイ状態)とし、また、インバータ
(37)のローレベル出力を受け取ると、この10ms
ec期間だけマイクロコンピュータ(15)を通常動作
状態とするものである。該ホールド制御部(36)は、
詳細すると、ソフトウエア処理を行う部分であり、イン
バータ(37)出力をハイレベルと認識すると、割り込
み信号を発生し、この時前記ROMから読み出されるプ
ログラムデータの解読結果に基づき、マイクロコンピュ
ータ(15)を必要最小限の動作だけ行わせるホールド
モードとして該マイクロコンピュータ(15)で消費さ
れる電流を低減させる。また、該ホールド制御部(3
6)は、インバータ(37)出力をローレベルと認識す
ると、別の割り込み信号を発生し、この時前記ROMか
ら読み出されるプログラムデータの解読結果に基づき、
マイクロコンピュータ(15)を通常動作状態とする。
When the hold controller (36) receives the high level output from the inverter (37), it
When the microcomputer (15) is set to the hold mode (standby state) for 0 msec and the low level output of the inverter (37) is received, this 10 ms
The microcomputer (15) is put into a normal operation state only for the ec period. The hold control unit (36)
More specifically, it is a part that performs software processing, and when the output of the inverter (37) is recognized as a high level, an interrupt signal is generated, and the microcomputer (15) based on the decoding result of the program data read from the ROM at this time. The current consumed by the microcomputer (15) is reduced as a hold mode in which the minimum operation is performed. Further, the hold controller (3
When 6) recognizes the output of the inverter (37) as a low level, another interrupt signal is generated, and based on the decoding result of the program data read from the ROM at this time,
The microcomputer (15) is brought into a normal operation state.

【0021】以上より、分周器(29)の出力を、電源
変動、周囲温度変化及び素子特性のばらつきに関係なく
一定のデューティを有する波形とできる為、本実施例の
マイクロコンピュータ(15)を電話機の子機に内蔵し
て間欠動作させれば、親機側が呼び出し状態となってい
るかどうかを検出ミスすることなく確実に検出でき、親
機の呼び出しに同期して子機のスピーカ(4)から呼び
出し音を放音でき、非常に好適である。更に、分周器
(29)を設けることからマイクロコンピュータに外部
接続されるコンデンサ(17)の容量を小さくでき、コ
ストダウンにも寄与する。
From the above, the output of the frequency divider (29) can be a waveform having a constant duty irrespective of power supply fluctuations, ambient temperature changes, and variations in element characteristics. Therefore, the microcomputer (15) of this embodiment can be used. If it is built into the slave unit of the telephone and is operated intermittently, it can be surely detected whether or not the master unit is in the ringing state without making a detection error, and the speaker of the slave unit (4) in synchronization with the call of the master unit. It is very suitable because it can emit a ringing tone. Further, since the frequency divider (29) is provided, the capacity of the capacitor (17) externally connected to the microcomputer can be reduced, which contributes to cost reduction.

【0022】[0022]

【発明の効果】本発明によれば、分周器出力を波形整形
して得られる矩形波の一方のレベル期間と基準クロック
との比較結果に基づき、複数の直列抵抗の何れか1つの
接続点をコンデンサと接続して時定数回路を構成する様
にした。これにより、時定数回路の時定数を一定に保持
でき、マイクロコンピュータのスタンバイ時間を一定と
できる。従って、本発明の装置を電話の子機に使用すれ
ば、親機の呼び出し状態を確実に検出して子機のスピー
カから呼び出し音を放音できる利点が得られる。更に、
時定数回路を構成するコンデンサの容量が小さくて済む
為、コストダウンにも寄与する。
According to the present invention, the connection point of any one of a plurality of series resistors is based on the result of comparison between one level period of a rectangular wave obtained by shaping the frequency divider output and the reference clock. Is connected to a capacitor to form a time constant circuit. As a result, the time constant of the time constant circuit can be kept constant, and the standby time of the microcomputer can be kept constant. Therefore, if the device of the present invention is used in a slave unit of a telephone, there is an advantage that the calling state of the master unit can be reliably detected and a ringing tone can be emitted from the speaker of the slave unit. Furthermore,
Since the capacity of the capacitor forming the time constant circuit can be small, it also contributes to cost reduction.

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

【図1】本発明装置を示す図である。FIG. 1 is a diagram showing a device of the present invention.

【図2】従来装置を示す図である。FIG. 2 is a diagram showing a conventional device.

【図3】図2における充放電波形及び矩形波形を示す波
形図である。
FIG. 3 is a waveform diagram showing a charge / discharge waveform and a rectangular waveform in FIG.

【図4】図1の要部波形を示す波形図である。FIG. 4 is a waveform diagram showing a main waveform of FIG.

【図5】図1の他の要部波形を示す波形図である。5 is a waveform chart showing another main waveform of FIG. 1. FIG.

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

(17) コンデンサ (23) 基準クロック発生部 (24−1)〜(24−n) 直列抵抗 (26) シュミットインバータ (27)(35) NMOSトランジスタ (29) 分周器 (30) 制御部 (31) 測定部 (32) 判定部 (33) 抵抗切換部 (36) ホールド制御部 (17) Capacitor (23) Reference clock generator (24-1) to (24-n) Series resistance (26) Schmitt inverter (27) (35) NMOS transistor (29) Divider (30) Control section (31 ) Measuring unit (32) Judgment unit (33) Resistance switching unit (36) Hold control unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 発振クロックを基に基準クロックを発生
する基準クロック発生部と、 直列接続され各接続点のうち何れか1つの接続点とコン
デンサが接続されることにより時定数回路を構成する複
数の直列抵抗と、 前記時定数回路の充放電動作を制御すると共に前記時定
数回路の充放電周期に対応した原クロックを発生する原
クロック発生部と、 原クロックを所定分周する分周器と、 前記分周器の出力を波形整形し1周期出力を所定デュー
ティに設定するデューティ設定部と、 前記分周器の1周期出力の一方のレベル期間と、前記基
準クロックとを比較する比較部と、 前記比較部の出力に基づき、前記複数の直列抵抗の何れ
か1つの接続点を前記コンデンサと接続させる抵抗切換
部と、 前記分周器の出力を基にマイクロコンピュータをスタン
バイ状態とするホールド制御部と、を備え、 前記時定数回路の充放電出力の周期を制御して、前記分
周器の1周期出力の一方又は他方のレベル期間に対応す
るマイクロコンピュータのスタンバイ時間を一定とする
ことを特徴とするマイクロコンピュータのスタンバイ時
間調整装置。
1. A plurality of reference clock generators that generate a reference clock based on an oscillation clock, and a plurality of units that form a time constant circuit by connecting in series any one of the connection points and a capacitor. A series resistor, an original clock generator that controls the charge / discharge operation of the time constant circuit and generates an original clock corresponding to the charge / discharge cycle of the time constant circuit, and a divider that divides the original clock by a predetermined frequency. A duty setting unit that shapes the output of the frequency divider to set a one-cycle output to a predetermined duty; a comparison unit that compares one level period of the one-cycle output of the frequency divider with the reference clock; A resistance switching unit that connects any one of the plurality of series resistors to the capacitor based on the output of the comparison unit; and a microcomputer based on the output of the frequency divider. And a hold control unit for setting a standby state of the microcomputer for controlling the cycle of the charge / discharge output of the time constant circuit to correspond to one or the other level period of one cycle output of the frequency divider. A standby time adjustment device for a microcomputer, which is characterized by a constant value.
【請求項2】 前記比較部は、前記時定数回路の複数周
期の充放電出力の中の所定の1周期だけ比較動作を行う
ことを特徴とする請求項1記載のマイクロコンピュータ
のスタンバイ時間調整装置。
2. The standby time adjustment device for a microcomputer according to claim 1, wherein the comparison unit performs a comparison operation only for a predetermined one cycle of a plurality of cycles of charge / discharge output of the time constant circuit. .
JP7400195A 1995-03-30 1995-03-30 Standby time controller for microcomputer Pending JPH08274845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7400195A JPH08274845A (en) 1995-03-30 1995-03-30 Standby time controller for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7400195A JPH08274845A (en) 1995-03-30 1995-03-30 Standby time controller for microcomputer

Publications (1)

Publication Number Publication Date
JPH08274845A true JPH08274845A (en) 1996-10-18

Family

ID=13534410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7400195A Pending JPH08274845A (en) 1995-03-30 1995-03-30 Standby time controller for microcomputer

Country Status (1)

Country Link
JP (1) JPH08274845A (en)

Similar Documents

Publication Publication Date Title
EP0881765A1 (en) Precision oscillator circuit having a controllable duty cycle and related method
US6084441A (en) Apparatus for and method of processing data
US7649422B2 (en) Real time clock integrated circuit and electronic apparatus using the same
JPH1032852A (en) Calling device for radio equipment
AU687182B2 (en) Electronic delay detonator
US20060055417A1 (en) Method and IC for detecting capacitance variation
US6518848B2 (en) Oscillation stop detection circuit
US20030076182A1 (en) Chattering eliminating apparatus including oscillation circuit using charging and discharging operations
US5063355A (en) Timer circuit
JPH08274845A (en) Standby time controller for microcomputer
JPH08272768A (en) Stand-by time adjusting device for microcomputer
KR0168079B1 (en) Clock generating apparatus
US6005447A (en) Method and device for adjusting the frequency of oscillator built in an integrated circuit
WO1996038911A1 (en) Heat balance circuit
JPH07152448A (en) Control circuit for oscillator
JPS6349816Y2 (en)
JPH07294602A (en) Integrated circuit for oscillation
JPH1065569A (en) Reset system for radio communication equipment
JPH0633717Y2 (en) Oscillator circuit rate adjuster
JPH10187500A (en) Cycle correction circuit for watchdog timer
JP3177139B2 (en) Oscillation restart controller
JP2003067076A (en) Semiconductor integrated circuit
TW428309B (en) Frequency adjusting method and device for oscillator built in the integrated circuit
JPH02162821A (en) Chattering elimination circuit
JPH0998108A (en) Wireless telecontrol equipment