JPH0431402B2 - - Google Patents
Info
- Publication number
- JPH0431402B2 JPH0431402B2 JP1195862A JP19586289A JPH0431402B2 JP H0431402 B2 JPH0431402 B2 JP H0431402B2 JP 1195862 A JP1195862 A JP 1195862A JP 19586289 A JP19586289 A JP 19586289A JP H0431402 B2 JPH0431402 B2 JP H0431402B2
- Authority
- JP
- Japan
- Prior art keywords
- clock signal
- restart
- signal
- timing
- restart timing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Power Sources (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロコンピユータにおけるマイク
ロプログラム制御回路などのように動作の基本を
形ずくつているクロツク信号の発生を停止した後
に再起動を行うクロツク信号再起動方法に関す
る。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a clock signal that forms the basis of operation, such as a microprogram control circuit in a microcomputer, and which restarts after stopping the generation of a clock signal. Regarding the signal restart method.
従来、マイクロコンピユータ内にあつてマイク
ロプログラムにより動作するマイクロプログラム
制御回路では、クロツク信号の一部あるいは全て
を停止させる事は、ほとんど行われなかつたが、
消費電力の削減を追求した結果、一連のプログラ
ム終了後、クロツク信号を停止する方法が用いら
れつつある。従来のクロツク信号再起動の方法で
は、クロツク信号停止後、クロツク信号再起動は
固定されたタイミングのみで行われ、マイクロプ
ログラムによる制御、及び、マスキングによる制
御は不可能であつた第1図に従来のクロツク信号
再起動回路を示す。1は発振回路、2は分周回
路、3,4はアンドゲート、5はオアゲート、6
はキー入力制御回路である。キー入力が有つた場
合あるいは分周回路2からの定期的な信号により
オアゲート6からクロツク信号再起動信号が出力
される。従来の方法では分周回路2からアンドゲ
ート3に与えられる信号は、1秒あるいは1/10秒
などに固定され、その選択は不可能であつた。そ
の為、1/10秒毎の処理を必要とするマイクロプロ
グラム制御回路においては、常に1/10秒のクロツ
クタイミングで、クロツク信号が起動され、その
為、1/10秒毎の処理が必要でないプログラム処理
モード(第3図)においても1/10秒信号毎に、ク
ロツク信号が再起動されることになり、消費電力
削減の大きな障害となつている。
Conventionally, in microprogram control circuits in microcomputers that operate according to microprograms, stopping part or all of the clock signal has rarely been done.
As a result of efforts to reduce power consumption, a method is being used in which the clock signal is stopped after a series of programs are completed. In the conventional method of restarting the clock signal, the clock signal is restarted only at a fixed timing after the clock signal has stopped, and control using a microprogram or masking is not possible. This figure shows the clock signal restart circuit. 1 is an oscillation circuit, 2 is a frequency dividing circuit, 3 and 4 are AND gates, 5 is an OR gate, 6
is a key input control circuit. A clock signal restart signal is output from the OR gate 6 in response to a key input or a periodic signal from the frequency dividing circuit 2. In the conventional method, the signal given from the frequency divider circuit 2 to the AND gate 3 was fixed at 1 second or 1/10 second, and it was impossible to select it. Therefore, in microprogram control circuits that require processing every 1/10 seconds, the clock signal is always activated at a clock timing of 1/10 seconds, and therefore processing is required every 1/10 seconds. Even in the non-program processing mode (Fig. 3), the clock signal is restarted every 1/10 second signal, which is a major obstacle to reducing power consumption.
クロツク信号再起動タイミングが1/10秒に替え
て1/100秒に固定されている場合は、より大きな
デメリツトであることは言うまでもない。逆にク
ロツク再起動タイミングを1秒に固定した場合、
1/10秒毎、1/100秒毎の処理でよい場合でも、1
秒間はクロツク信号を停止させることが不可能と
なり、マイクロプログラム制御回路が動き続ける
為、消費電力が増加してしまう。 Needless to say, it would be a bigger disadvantage if the clock signal restart timing was fixed at 1/100 seconds instead of 1/10 seconds. Conversely, if the clock restart timing is fixed at 1 second,
Even if processing every 1/10 seconds or 1/100 seconds is sufficient, 1
It is impossible to stop the clock signal for a second, and the microprogram control circuit continues to operate, resulting in increased power consumption.
第4図はクロツク再起動タイミングを1秒に固
定し、1/10秒毎の処理を実行した場合の消費電力
の様子である。第2図から第4図において、7は
マイクロプログラム制御回路がプログラムを実行
することにより有効に消費する電力を、8はマイ
クロプログラム制御回路がプログラムを処理せず
に、無効に消費する電力を示す。以上の様に、従
来のクロツク信号再起動回路は、クロツク再起動
タイミングが固定されている為、消費電力削減の
面で大きな問題を持つている。 Figure 4 shows the power consumption when the clock restart timing is fixed at 1 second and processing is executed every 1/10 second. In Figures 2 to 4, 7 indicates the power effectively consumed by the microprogram control circuit by executing the program, and 8 indicates the power consumed ineffectively by the microprogram control circuit without processing the program. . As described above, the conventional clock signal restart circuit has a fixed clock restart timing, which poses a major problem in terms of reducing power consumption.
本発明は以上説明したような従来の固定された
クロツク信号再起動タイミング方法を改良し、ク
ロツク信号の発生を禁止した後、任意のタイミン
グでクロツク信号の再起動を行えるようにしたク
ロツク信号再起動方法を提供することにある。
The present invention improves the conventional fixed clock signal restart timing method as described above, and provides a clock signal restart method that enables the clock signal to be restarted at any timing after the generation of the clock signal is prohibited. The purpose is to provide a method.
本発明によるクロツク信号再起動方法は、クロ
ツク信号の停止後にクロツク信号再起動信号を出
力して前記クロツク信号の再起動を行うクロツク
信号再起動方法において、分周回路より入力され
る複数の分周信号に基ずいて複数の再起動タイミ
ング信号を再起動タイミング信号発生手段により
発生させた後、再起動タイミング選択手段にて前
記複数の再起タイミング信号の内から任意の再起
動タイミング信号を再起動タイミング選択命令に
従つて選択することを特徴とする。
A clock signal restart method according to the present invention is a clock signal restart method in which a clock signal restart signal is output after a clock signal is stopped to restart the clock signal. After the restart timing signal generation means generates a plurality of restart timing signals based on the signal, the restart timing selection means selects an arbitrary restart timing signal from among the plurality of restart timing signals as a restart timing. The feature is that the selection is made according to a selection instruction.
以下実施例に基づき本発明を詳しく説明する。 The present invention will be explained in detail below based on Examples.
第5図は、本発明によるクロツク信号再起動方
法を用いたクロツク信号再起動回路の一実施例で
ある。1は発振回路、2は分周回路、3,4はア
ンドゲート、5はオアゲート、6はキー入力制御
回路、9は本発明のポイントであるクロツク信号
再起動制御回路であり、第6図はクロツク信号再
起動制御回路9の詳細回路図を示す。分周回路2
から複数種類の分周信号12が半導体製造段階で
作り込まれるマスク10(再起動タイミング発生
手段)に入力されると、マスク10内に作り込ま
れた情報に応じて数種の信号13(複数の再起動
タイミング信号)がマスク10から出力されて、
プログラマブルロジツクアレイ(以下PLAと略
す)11に入力される。PLA11(再起動タイ
ミング選択手段)はマイクロ命令14(再起動タ
イミング選択命令)に従い、マスク10から入力
された数種の信号13の内から任意の信号を選択
し、選択した信号をアンドゲート3に出力する。
アンドケード3そしてオアゲート5を通過した信
号はクロツク信号再起動信号となつてクロツク信
号を再起動させるものである。 FIG. 5 is an embodiment of a clock signal restart circuit using the clock signal restart method according to the present invention. 1 is an oscillation circuit, 2 is a frequency dividing circuit, 3 and 4 are AND gates, 5 is an OR gate, 6 is a key input control circuit, 9 is a clock signal restart control circuit which is the key point of the present invention, and FIG. A detailed circuit diagram of the clock signal restart control circuit 9 is shown. Frequency divider circuit 2
When a plurality of types of frequency-divided signals 12 from restart timing signal) is output from the mask 10,
The signal is input to a programmable logic array (hereinafter abbreviated as PLA) 11. The PLA 11 (restart timing selection means) selects any signal from among the several types of signals 13 input from the mask 10 according to the microinstruction 14 (restart timing selection command), and sends the selected signal to the AND gate 3. Output.
The signal passing through ANDade 3 and OR gate 5 becomes a clock signal restart signal and restarts the clock signal.
使用する目的に応じてマスク10を変更すれば
目的に応じた様々な再起動タイミングを作り出す
ことができる。そして、マイクロ命令によつて
様々な再起動タイミングの内の一つを選択するこ
とが可能となる。つまりマイクロコンピユータが
動作中でも必要に応じてクロツク信号再起動タイ
ミングを変更できることを可能とするものであ
る。 By changing the mask 10 according to the purpose of use, various restart timings can be created according to the purpose. Then, it becomes possible to select one of various restart timings using microinstructions. In other words, it is possible to change the clock signal restart timing as necessary even when the microcomputer is in operation.
クロツク信号再起動タイミングを任意に設定で
きる本発明の利点を生かしたマイクロコンピユー
タを時計に応用した例のフローチヤートを第7図
に示す。S−1はクロツク信号再起動端子であ
り、S−2でクロツク信号再起動タイミングモー
ドのチエツクを行う。チエツクの結果、1秒毎の
再起動が必要である計時処理モードの場合には、
S−3で処理し、1秒再起動マイクロ命令である
RST−1(S−4)の実行によりクロツク信号が
停止する。クロツク信号の停止後、キー入力ある
いは1秒信号によつてS−1から再起動する。 FIG. 7 shows a flowchart of an example in which a microcomputer is applied to a clock, taking advantage of the advantage of the present invention that the clock signal restart timing can be arbitrarily set. S-1 is a clock signal restart terminal, and S-2 checks the clock signal restart timing mode. As a result of the check, if the timing processing mode requires restarting every second,
It is processed by S-3 and is a 1 second restart microinstruction.
The clock signal is stopped by executing RST-1 (S-4). After the clock signal stops, it is restarted from S-1 by key input or a 1 second signal.
1/2秒制御の必要な2Hz表示フラツシングを行
う場合は、S−5で処理され、1/2秒再起動マイ
クロ命令であるRST−2(S−6)の実行により
クロツク信号が停止する。クロツク信号停止後の
再起動は上述の1秒再起動と同様にキー入力ある
いは1/2秒信号により再起動する。 When performing 2Hz display flashing that requires 1/2 second control, processing is performed in S-5, and the clock signal is stopped by executing RST-2 (S-6), which is a 1/2 second restart microinstruction. Restarting after stopping the clock signal is performed by key input or a 1/2 second signal, similar to the 1 second restart described above.
8Hzアラーム処理の場合にも同様にS−7で処
理され、RST−3(S−8)命令の実行によりク
ロツク信号が停止し、その後キー入力あるいは1/
8秒信号により再起動する。 In the case of 8Hz alarm processing, it is processed in the same way in S-7, and the clock signal is stopped by executing the RST-3 (S-8) command, and then the clock signal is stopped by key input or 1/
Restart with 8 seconds signal.
本応用例ではクロツク信号停止時間として1
秒、1/2秒、1/8秒の3通りを用いた例を示した
が、マスク10を変えることで他の任意時間の設
定および選択可能時間数を増すことは容易であ
る。 In this application example, the clock signal stop time is 1
Although an example using three types of seconds, 1/2 seconds, and 1/8 seconds has been shown, it is easy to set other arbitrary times and increase the number of selectable times by changing the mask 10.
[発明の効果]
以上説明したように、本発明のクロツク信号再
起動方法によればクロツク信号再起動タイミング
をマイクロコンピユータの動作中に状況に応じて
任意を設定・変更できるので動作する必要のない
場合にはクロツク信号を停止させて消費電力を大
幅に減少させることができる。従つて時計やその
他低消費電力化が必要な分野にマイクロコンピユ
ータを活用することが容易になる。[Effects of the Invention] As explained above, according to the clock signal restart method of the present invention, the clock signal restart timing can be arbitrarily set or changed depending on the situation while the microcomputer is operating, so there is no need to operate the clock signal. In some cases, the clock signal can be stopped to significantly reduce power consumption. Therefore, it becomes easy to utilize microcomputers in watches and other fields that require low power consumption.
第1図は従来のクロツク信号再起動回路図、第
2図は1/10秒毎の処理実行中の消費電力を示す
図。第3図は1/10秒毎にクロツク信号再起動のか
かるマイクロプログラム制御回路において1秒毎
の処理を実行した場合の消費電力を示す図。第4
図は1秒毎にクロツク信号再起動のかかるマイク
ロプログラム制御回路において1/10秒毎の処理を
実行した場合の消費電力を示す図。第5図は本発
明によるクロツク信号再起動方法を用いたクロツ
ク信号再起動回路図。第6図は本発明の要部であ
るクロツク信号再起動制御回路の詳細回路図。第
7図は本発明によるクロツク信号再起動方法を用
いたマイクロコンピユータによるプログラム処理
のフローチヤート。
1……発振回路、2……分周回路、3,4……
アンドゲート、5……オアゲート、6……キー入
力制御回路、9……クロツク信号再起動制御回
路、10……マスク(再起動タイミング発生手
段)、11……PLA(再起動タイミング選択手
段)、12……複数の分周信号、13……複数の
再起動タイミング信号、14……マイクロ命令
(再起動タイミング選択命令)。
Fig. 1 is a diagram of a conventional clock signal restart circuit, and Fig. 2 is a diagram showing power consumption during execution of processing every 1/10 second. FIG. 3 is a diagram showing the power consumption when processing is executed every second in a microprogram control circuit that restarts the clock signal every 1/10 seconds. Fourth
The figure shows the power consumption when processing is executed every 1/10 seconds in a microprogram control circuit that restarts the clock signal every 1 second. FIG. 5 is a clock signal restart circuit diagram using the clock signal restart method according to the present invention. FIG. 6 is a detailed circuit diagram of a clock signal restart control circuit which is a main part of the present invention. FIG. 7 is a flowchart of program processing by a microcomputer using the clock signal restart method according to the present invention. 1... Oscillator circuit, 2... Frequency dividing circuit, 3, 4...
AND gate, 5... OR gate, 6... Key input control circuit, 9... Clock signal restart control circuit, 10... Mask (restart timing generation means), 11... PLA (restart timing selection means), 12... Plural frequency divided signals, 13... Plural restart timing signals, 14... Microinstruction (restart timing selection command).
Claims (1)
信号を出力して前記クロツク信号の再起動を行う
クロツク信号再起動方法において、 分周回路より入力される複数の分周信号に基ず
いて複数の再起動タイミング信号を再起動タイミ
ング信号発生手段により発生させた後、 再起動タイミング選択手段にて前記複数の再起
動タイミング信号の内から任意の再起動タイミン
グ信号を再起動タイミング選択命令に従つて選択
し再起動するか、キー入力制御回路の出力により
再起動することを特徴とするクロツク信号再起動
方法。[Claims] 1. In a clock signal restart method for restarting the clock signal by outputting a clock signal restart signal after the clock signal is stopped, the clock signal is restarted based on a plurality of divided signals input from a frequency dividing circuit. After the restart timing signal generation means generates a plurality of restart timing signals, the restart timing selection means selects a restart timing signal from among the plurality of restart timing signals with a restart timing selection command. A method for restarting a clock signal, characterized in that the clock signal is restarted by selecting according to the following or by an output of a key input control circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1195862A JPH02210513A (en) | 1989-07-28 | 1989-07-28 | Microprogram control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1195862A JPH02210513A (en) | 1989-07-28 | 1989-07-28 | Microprogram control circuit |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14299579A Division JPS5667452A (en) | 1979-11-05 | 1979-11-05 | Microprogram control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02210513A JPH02210513A (en) | 1990-08-21 |
| JPH0431402B2 true JPH0431402B2 (en) | 1992-05-26 |
Family
ID=16348226
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1195862A Granted JPH02210513A (en) | 1989-07-28 | 1989-07-28 | Microprogram control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02210513A (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS4997539A (en) * | 1973-01-19 | 1974-09-14 | ||
| JPS5072550A (en) * | 1973-10-29 | 1975-06-16 | ||
| JPS5667452A (en) * | 1979-11-05 | 1981-06-06 | Seiko Epson Corp | Microprogram control circuit |
-
1989
- 1989-07-28 JP JP1195862A patent/JPH02210513A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02210513A (en) | 1990-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4393954B2 (en) | Microcomputer | |
| JPS58205226A (en) | Microcomputer incorporating stand-by function | |
| US5737588A (en) | Driving circuit for a microcomputer that enables sleep control using a small-scale timer | |
| JPH0431402B2 (en) | ||
| JP3214469B2 (en) | Method and apparatus for controlling writing of flash EEPROM by microcomputer | |
| JPH04348410A (en) | microcomputer | |
| JPS6350725B2 (en) | ||
| JP2694948B2 (en) | Micro program processor | |
| JPH0724006B2 (en) | Data processing device | |
| JP2805295B2 (en) | Pachinko machine control device | |
| JPH0682310B2 (en) | Operation frequency switching control circuit for arithmetic unit | |
| JPS62221729A (en) | Microprogram control system | |
| JPS63153634A (en) | Data processor | |
| JPH035948Y2 (en) | ||
| JPH0573296A (en) | Microcomputer | |
| JPH05298088A (en) | Microcomputer | |
| JPH08263177A (en) | Method and circuit for resetting cpu | |
| JPH0441376Y2 (en) | ||
| JPH0267655A (en) | Memory control circuit | |
| JPS6270923A (en) | Integrated circuit with oscillator circuit | |
| JPS595327A (en) | CMOS digital control circuit | |
| KR100308117B1 (en) | Digital signal processing | |
| JPH02224123A (en) | Information processor | |
| JPH10216337A (en) | Pachinko machine control device | |
| JPH0728662A (en) | Microcomputer |