JPS60169919A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS60169919A
JPS60169919A JP59026259A JP2625984A JPS60169919A JP S60169919 A JPS60169919 A JP S60169919A JP 59026259 A JP59026259 A JP 59026259A JP 2625984 A JP2625984 A JP 2625984A JP S60169919 A JPS60169919 A JP S60169919A
Authority
JP
Japan
Prior art keywords
signal
output
circuit
frequency
oscillation
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
JP59026259A
Other languages
Japanese (ja)
Other versions
JPH0426127B2 (en
Inventor
Masaaki Tsukagoshi
塚越 政明
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.)
Tokyo Sanyo Electric Co Ltd
Sanyo Electric Co Ltd
Sanyo Denki Co Ltd
Original Assignee
Tokyo Sanyo Electric Co Ltd
Sanyo Electric Co Ltd
Sanyo Denki 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 Tokyo Sanyo Electric Co Ltd, Sanyo Electric Co Ltd, Sanyo Denki Co Ltd filed Critical Tokyo Sanyo Electric Co Ltd
Priority to JP59026259A priority Critical patent/JPS60169919A/en
Publication of JPS60169919A publication Critical patent/JPS60169919A/en
Publication of JPH0426127B2 publication Critical patent/JPH0426127B2/ja
Granted legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Microcomputers (AREA)
  • Direct Current Feeding And Distribution (AREA)

Abstract

PURPOSE:To reduce power consumption at holding state by delaying an operating speed slower than normal state when minimum necessary operation is to be executed at the holding state. CONSTITUTION:A microcomputer outputs a signal having prescribed frequency from its oscillation circuit 1 and divides its frequency by a frequency dividing circuit 3. Both outputs CLK1, CLK2 from the circuits 1, 2 are impressed to a switching circuit 3, which is controlled by a control signal CHG from an operation control circuit 5 to output any one output selectively to a clock generator 4. The generator 4 forms a clock signal CP on the basis of the selected signal CLK and outputs the clock signal CP to respective internal circuits. When holding state is detected 6 at a time of power failure, a switching circuit 3 selects the frequency-divided output CLK2, so that the operating speed of the microcomputer is delayed by the frequency divided by the frequency dividing circuit 2.

Description

【発明の詳細な説明】 (イ) 誼業上の利用分野 本発明は、ホールド機能とホールト機能を有するマイク
ロコンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of use in harassment The present invention relates to a microcomputer having a hold function and a halt function.

(ロ)従来技術 一般に、マイクロコンピュータの電源に開用電源を整流
して安定化された電源を用いた場合、停電等が発生する
とマイクロコンビエータの動作が停止すると共に、それ
までの動作によって蓄積されたデータがすべて消えてし
まう不都合がある。
(b) Prior art In general, when a power supply stabilized by rectifying an open power supply is used as a power supply for a microcomputer, when a power outage etc. occurs, the operation of the microcombiator stops, and the accumulation due to the previous operation occurs. The problem is that all the data that was created will be lost.

そこで、停電時に電池等によって電源をバックアップす
る方法が採用されるが、バックアップ状態に於いて、マ
イクロコンピュータの動作を継続すると電池等の消費電
力が大ぎくなるため、バックアップ状態となったことを
検出して、マイクロコンピュータの動作を停止する機能
、即ち、ホールド機能が設けられる。
Therefore, a method is adopted in which the power source is backed up by batteries etc. in the event of a power outage, but if the microcomputer continues to operate in the backup state, the power consumption of the battery etc. will become large, so it is necessary to detect when the backup state has entered. A function for stopping the operation of the microcomputer, that is, a hold function is provided.

また、電子時計用に作られたマイクロコンピュータに於
いては、特開昭53−143368号公報の如く、消費
電力を減少するために、必要な時以外は動作を停止する
機能が設けられている。即ち、所定の処理が終了すると
、そのプログラムの最後にホールト命令を用意しておき
、ホールト命令の実行によってマイクロコンピュータの
動作を停止させるものであり、所謂、ホールト機能と呼
ばれている。また、ホールト状態から復帰する場合は、
ホールト機能とは無関係に動作している分周回路からの
出力信号、例えば、IHzの信号等が印加されたときで
あり、そのとぎ、杏び所定の動作を再開する。
In addition, microcomputers made for electronic watches are equipped with a function to stop operation except when necessary, in order to reduce power consumption, as disclosed in Japanese Patent Application Laid-open No. 53-143368. . That is, when a predetermined process is completed, a halt instruction is prepared at the end of the program, and the operation of the microcomputer is stopped by executing the halt instruction, which is called a halt function. Also, when returning from a halt state,
This is when an output signal, such as an IHz signal, from a frequency dividing circuit operating independently of the halt function is applied, and then the predetermined operation is resumed.

ところで、時計あるいはタイマ機能を有しているマイク
ロコンビエータを停電時に電池等でバックアップする場
合、バックアップ状態中、即ち、ホールド状態中に計時
のための動作を間欠的に行う必要がある。しかし、バッ
クアップ電圧は、消費電力を極力少なくするために、で
きるだけ低電圧に設定されるので、バックアップ状態中
の動作は、その電圧でも十分動作する程匿の速さに設定
しなければならない。となると、通常通電状態に於いて
も同じ速さEならざるを得す、処理できる仕事量が減少
し、マイクロコンピュータの能力を十分に発揮すること
ができない欠点を有していた。
By the way, when a micro combiator having a clock or timer function is backed up by a battery or the like during a power outage, it is necessary to perform a timekeeping operation intermittently during a backup state, that is, a hold state. However, since the backup voltage is set as low as possible in order to reduce power consumption as much as possible, the operation during the backup state must be set to be fast enough to operate at that voltage. In this case, the speed E has to be the same even in the normal energized state, resulting in a decrease in the amount of work that can be processed and the drawback that the microcomputer's capabilities cannot be fully utilized.

(ハ) 発明の目的 本発明は、上述した点に鑑みて為されたものであり、ホ
ールド機能とホールト機能とを備え、通常通電状態に於
いては高速動作となり、停電してバックアップ状態にあ
るときに動作を再開する場合には低速の製作となること
によって、通電時の舵方向上と停′亀時の消費電力の減
少とを実現することを目的とする。
(c) Purpose of the Invention The present invention has been made in view of the above-mentioned points, and is equipped with a hold function and a halt function, and operates at high speed in a normal energized state, and in a backup state in the event of a power outage. The purpose of this is to reduce power consumption when the rudder is energized and when stopped by manufacturing at a low speed when restarting the operation.

に)発明の構成 本発明は、ホールト命令が実行されたとぎ動作を停止す
るホールト機能を有し、ホールド端子に所定レベルの信
号が印加されているとき、前記ホールト命令の実行によ
りホールド状態となるマイクロコンピュータであって、
システムのクロック信号を作成するための周波数信号を
発生する発振回路と、前記ホールト命令の実行によって
セットされ所定の信号によってリセットされその出力に
よって前記発振回路の発振を制御する第1のフリップフ
ロップと、前記発振回路の発振出力を所定の周波数に分
周する分周回路と、該分周回路の分周出力と前記発振出
力とを切り換え、システムのクロック信号を作成するク
ロックジェネレータに印加する切換え回路と、前記ホー
ルド端子に所定レベルの信号が印加されたことを検出し
前記切換回路を制御する第2のフリップ70ツブとを備
え、ホールド機能中にセットされた前記第1のフリップ
フロップが所定の信号によってリセットされ動作停止が
解除されたとぎ、前記切換回路は分周出力を選択し、シ
ステムの動作速度が低下する構成であり、前記第1の7
リツプフロツプをリセットする所定信号が少なくとも時
刻計時用の信号であるものである。
B) Structure of the Invention The present invention has a halt function that stops the operation when a halt command is executed, and when a signal of a predetermined level is applied to the hold terminal, a hold state is entered by the execution of the halt command. A microcomputer,
an oscillation circuit that generates a frequency signal for creating a system clock signal; a first flip-flop that is set by execution of the halt instruction and reset by a predetermined signal, and whose output controls the oscillation of the oscillation circuit; a frequency divider circuit that divides the oscillation output of the oscillation circuit into a predetermined frequency; and a switching circuit that switches between the frequency division output of the frequency divider circuit and the oscillation output and applies it to a clock generator that creates a system clock signal. , a second flip-flop 70 that detects that a signal of a predetermined level is applied to the hold terminal and controls the switching circuit, and the first flip-flop set during the hold function detects that a signal of a predetermined level is applied to the hold terminal. When the operation stoppage is canceled by being reset by
The predetermined signal for resetting the lip-flop is at least a signal for timekeeping.

(ホ)災施例 第1図は本発明の実施例を示すマイクロコンビエータの
一部ブロック図である。発振回路(1)は、外部端子に
セラミック発振子、水晶発振子、あるいは、R,C(抵
抗、コンデンサ)回路を接続することにより、所定周波
数の信号、例えば、200Kllzあるいは400KH
zの信号を発振出力する。
(E) Embodiment FIG. 1 is a partial block diagram of a micro combinator according to an embodiment of the present invention. The oscillation circuit (1) generates a signal of a predetermined frequency, for example, 200Kllz or 400KH, by connecting a ceramic oscillator, a crystal oscillator, or an R, C (resistance, capacitor) circuit to an external terminal.
Oscillates and outputs the z signal.

分周回路(2)は、例えば、1/4分周回路であり、光
振回路(11から印加された発振出力CLKIの周波数
を分周し、分周出力CLK2を出力する。発振出力CL
KIと分周出力CLK2は共に切換回路(3)に印加さ
れ、切換回路(3)は、制御信号CHGによって制御さ
れ、発振出力CLKIあるいは分周出力CLK2のいず
れか一方を選択的にクロックジェネレータ(4)K出力
する。クロックジェネレータ(4)は切換回路(3)か
ら出力された信号CLKに基いて、マイクロコンビエー
タの動作を制御するりはツク信号CPを作成し、内部の
各回路に出力する。即ち、マイクロコンピュータは、ク
ロック信号CPによって命令に従りた動作を行うのであ
り、動作速度は切換回路(3)から出力される信号CL
Kの周波数によって決定される。
The frequency dividing circuit (2) is, for example, a 1/4 frequency dividing circuit, which divides the frequency of the oscillation output CLKI applied from the optical oscillation circuit (11) and outputs the frequency-divided output CLK2.
Both KI and the frequency-divided output CLK2 are applied to a switching circuit (3), and the switching circuit (3) is controlled by a control signal CHG and selectively outputs either the oscillation output CLKI or the frequency-divided output CLK2 to the clock generator ( 4) Output K. A clock generator (4) generates a clock signal CP for controlling the operation of the micro combinator based on the signal CLK output from the switching circuit (3), and outputs it to each internal circuit. That is, the microcomputer performs operations according to instructions based on the clock signal CP, and the operating speed is determined by the signal CL output from the switching circuit (3).
determined by the frequency of K.

動作制御回路(5)は、ホールド端子(6)K印加され
る信号HOLD、インストラクシ目ンデプーダ(7)か
ら出力されるHALT信号、入力回路(8)から印加さ
れるボート信号PA、及び、分周回路(9)から印加さ
れる秒信号SECに基いて、制御信号C3TOPあるい
はCHGを出力し、発振回路(1)の発振開始あるいは
発振停止を制御すると共に、切換回路(3)の切換を制
御する。この動作制御回路(5)は、第2図で詳しく示
されるが、ホールト信号HALTでセットされ秒信号S
EC及びボート信号PAで、リセットされる第1の7リ
ツプフロツプと、ホールト信号Wσnによってホールド
状態にあることを検出する第2のフリップフロップとを
有しており、第1の7リツプフロツプの出力が制御信号
C3TOPとなり、第2のフリップフロップの出力が制
@信号CHGとなっている。一方、インストラクシ=1
ノデコーダ(力は、プログラムカウンタ(図示せず)で
指定されたROM(図示せず)のアドレスから順次送出
される命令IRを解読し、その命令IRに基いた動作を
行うために各部回路を制御するものであり、特に、動作
の停止を行うホールト命令が実行されたときに゛はホー
ルト信号HALTを出力する。従って、ホールト命令が
実行されホールト信号HALTThZ出力されると、制
御信号C3TOPが出力され、発振回路(1)の発振が
停止されるので、クロックジェネレータ(4)からクロ
ック信号CPが出力されなくなり、マイクロコンピュー
タの動作が停止する。即ち、ホールト状態となる。また
、ホールト状態から復帰するのは秒信号SECあるいは
ポートイ百号FAが出力されたときである。秒信号SE
Cは、マイクロコンピータの動作停止と無関係に常時動
作している計時用発振回路Q(1の発振出力8Tを分周
する分周回路(9)の出力であり、例えば、I Hzの
信号である。
The operation control circuit (5) receives a signal HOLD applied to a hold terminal (6) K, a HALT signal outputted from an instruction depuder (7), a boat signal PA applied from an input circuit (8), and a Based on the second signal SEC applied from the circulation circuit (9), a control signal C3TOP or CHG is output to control the start or stop of oscillation of the oscillation circuit (1) and control the switching of the switching circuit (3). do. This operation control circuit (5) is shown in detail in FIG.
It has a first 7-lip-flop that is reset by EC and a vote signal PA, and a second flip-flop that detects that it is in a hold state by a halt signal Wσn, and the output of the first 7-lip-flop is controlled. The signal C3TOP becomes the signal C3TOP, and the output of the second flip-flop becomes the control signal CHG. On the other hand, instruction = 1
The decoder (decoder) decodes the instructions IR sent out sequentially from the address of the ROM (not shown) specified by the program counter (not shown), and controls each circuit to perform operations based on the instructions IR. In particular, when a halt command to stop the operation is executed, a halt signal HALT is output. Therefore, when a halt command is executed and a halt signal HALTThZ is output, a control signal C3TOP is output. Since the oscillation of the oscillation circuit (1) is stopped, the clock signal CP is no longer output from the clock generator (4), and the operation of the microcomputer is stopped.In other words, it enters a halt state.Also, it returns from the halt state. This is when the seconds signal SEC or Portoy No. 100 FA is output.Seconds signal SE
C is the output of a frequency divider circuit (9) that divides the oscillation output 8T of the timekeeping oscillation circuit Q (1), which is always operating regardless of whether the microcomputer stops operating, and is, for example, an I Hz signal. .

即ち、秒信号SECによって、1秒毎に定期的に動作の
再開が為される。一方、ボート信号FAは、所定の入力
ボートaυに所定レベルの信号が印加されたとき、その
入力ボートaυの入力回路(8)から出力される信号で
ある。即ち、入カポ−H1)に所定レベルの信号を印加
することKよってホールト状態から脱出できるのである
。ホールト状態が解除されると、プログラムによって、
解除の原因を判定し、その原因に対応するプログラムを
実行するが、各プログラムの最後罠は必ずホールト命令
が設けられであるため、各プログラム終了後にはホール
ト信号HALTによって再び動作が停止しホールト状態
になる。
That is, the operation is restarted periodically every second by the second signal SEC. On the other hand, the boat signal FA is a signal output from the input circuit (8) of the input port aυ when a signal of a predetermined level is applied to the predetermined input port aυ. That is, it is possible to escape from the halt state by applying a signal of a predetermined level to the input capo H1). When the halt state is released, the program will
The cause of the release is determined and the program corresponding to the cause is executed, but since the last trap of each program is always provided with a halt command, after each program ends, the operation is stopped again by the halt signal HALT and the halt state is returned. become.

一方、ホールド端子(6)には通常電源電圧を印加し℃
おき、停電時にホールド信号HOLDが′L”となるこ
とによって、ホールド状態を検出する。
On the other hand, the normal power supply voltage is applied to the hold terminal (6).
The hold state is detected when the hold signal HOLD becomes 'L' at the time of power failure.

通電時ホールド信号HOLDがH”である場合には、制
御信号CHG Kよって切換回路(3)は発振出力CL
KIを選択している。停電時、ホールド信号HOLDが
L”にある状態、即ち、ホールド状態にあるとき、秒信
号SECによって動作が開始する場合、制御信号CHG
によって切換回路(3)は分周出力CLK2を選択する
ので、このとき、マイクロコンビ二一タの動作速度は分
周回路(2)で分周された分だけ遅くなる。
When the hold signal HOLD is "H" during energization, the control signal CHG K causes the switching circuit (3) to change the oscillation output CL.
KI is selected. During a power outage, when the hold signal HOLD is in the "L" state, that is, in the hold state, when the operation is started by the second signal SEC, the control signal CHG
Since the switching circuit (3) selects the frequency-divided output CLK2, at this time, the operating speed of the microcombinator becomes slower by the frequency divided by the frequency-dividing circuit (2).

第2図は、第1図に示された動作制御回路(5)、発振
回路(1)、分周回路(2)及び切換回路(3)の具体
的な論理回路図である。
FIG. 2 is a concrete logic circuit diagram of the operation control circuit (5), oscillation circuit (1), frequency dividing circuit (2), and switching circuit (3) shown in FIG.

第2図に於いて、動作制御回路(5)は、NANDゲー
)Q2)から成る第1のフリップフロップ(13iと、
NANDゲートa4)から成るm2のフリップフロップ
Q5)とを有し、第1の7リツプフロツプa3のセット
人力Sにはインバータαeを介してホールト信号HAL
Tが印加され、リセット入力豆には、秒信号5ECiJ
′−NORゲートα℃を介して印加され、更に、ボート
信号PAがANDゲート(1樽及びNORゲートanを
介して印加される。また、第1のフリップフロップ([
31のQ出力はインバータ(1!J’に介して制御信号
C3TOPとして出力される。第2のフリップフロップ
u5Iのセクト入力百にはNANDゲート四を介して制
御信号C3TOPが印加されると共に、インバータQυ
シ21(ハ)及びNANDゲート(イ)を介してホール
ド信号HOLDが印加され、リセット人力πには、ホー
ルド信号HOLDとリセット信号RESETが印加され
たNANDANDゲートの出力がインバータ(ハ)及び
NORゲート(ホ)を介して印加され、更に、ANDゲ
ート(5)の出力がN。
In FIG. 2, the operation control circuit (5) includes a first flip-flop (13i) consisting of a NAND game (Q2);
The first seven flip-flops a3 are set by a halt signal HAL via an inverter αe.
T is applied, and a second signal 5ECiJ is applied to the reset input bean.
' - is applied through the NOR gate α°C, and furthermore, the boat signal PA is applied through the AND gate (1 barrel and the NOR gate an), and the first flip-flop ([
The Q output of 31 is outputted as a control signal C3TOP via the inverter (1!J').The control signal C3TOP is applied to the sector input 100 of the second flip-flop u5I via the NAND gate 4, and Qυ
A hold signal HOLD is applied through the NAND gate (A) and the NAND gate (A), and the output of the NAND gate to which the hold signal HOLD and the reset signal RESET are applied is applied to the reset input π via the inverter (C) and the NOR gate. (e), and furthermore, the output of AND gate (5) is N.

Rゲート(4)を介して印加される。また、第2のフリ
ップ′フロップQ5F+Q出力はインバータ(ハ)を介
して制御信号CHGとして出力され、制御信号C)−I
GはANDゲート7)に印加される。このANDゲート
(5)にはホールド信号HOLDがインバータ(2I)
(2)を介して印加され、ANDゲートQ′0の出力は
NORゲート住η(26)に印加される。
Applied via R gate (4). Further, the output of the second flip-flop Q5F+Q is outputted as a control signal CHG via an inverter (c), and the control signal C)-I
G is applied to the AND gate 7). This AND gate (5) has a hold signal HOLD connected to the inverter (2I).
(2), and the output of AND gate Q'0 is applied to NOR gate η (26).

また、発振回路(1)は、シュミットインバータ(ハ)
、NORゲート(至)、及び、インバータC31)とを
有し、インバータ翰の入力茗びインバータ(31)の出
力には、発振素子、例えば水晶振動子、セラミック振動
子あるいはR,C回路を接続するための端子08C4及
び08C2が接続される。また、NORゲート(至)の
一方の入力には、制御信号C3TOPが入力され、発振
が制御される。分周回路(2)はT−FF04(至)が
接続された1/4分周回路であり、T−FF(ハ)の出
力Qは制御信号C3TOPによって制御されるNORゲ
ート(財)を介してANDゲー)C3ωに印加される。
In addition, the oscillation circuit (1) is a Schmitt inverter (c)
, a NOR gate (to), and an inverter C31), and an oscillation element, such as a crystal resonator, a ceramic resonator, or an R, C circuit is connected to the output of the inverter inverter (31). Terminals 08C4 and 08C2 are connected. Furthermore, a control signal C3TOP is input to one input of the NOR gate (to) to control oscillation. The frequency divider circuit (2) is a 1/4 frequency divider circuit to which T-FF04 (to) is connected, and the output Q of T-FF (c) is passed through a NOR gate controlled by the control signal C3TOP. AND game) is applied to C3ω.

ANDゲート(ト)(ト)及びORゲー)GV)は、切
換回路(3)を形成し、D−FF(3119の出力及び
インバータ側の出力によって発振回路(1)のNORゲ
ート■の出ブハ即ち、発振出力CLKIと分周回路(2
)の分周出力CLK2とを切換えて出力する。
The AND gates (G) and OR gate (GV) form a switching circuit (3), and the output of the NOR gate (2) of the oscillation circuit (1) is controlled by the output of the D-FF (3119) and the output of the inverter. That is, the oscillation output CLKI and the frequency dividing circuit (2
) and the divided output CLK2.

D−FF關は制御信号CHGを発振出力CLKIによっ
て記憶し切換え制御するものであり、また、T−FF(
321曵はNORゲート(40)及びインバータ0υを
介して制御信号C3TOPあるいはインバータ側の出力
によってセット状態に保持される。
The D-FF unit stores and switches the control signal CHG using the oscillation output CLKI, and also controls the T-FF (
321 is maintained in the set state by the control signal C3TOP or the output of the inverter via the NOR gate (40) and the inverter 0υ.

第2図に示された回路に於いて、電源投入時には、ホー
ルド信号HOLDはH″となり、また、リセット信号R
ESETが所定期間″H”となるため、インバータ(2
51の出力から”H”のパルスが出力され、第1の7リ
ツプフロツプa3及び第2のフリップフロップaωは共
にリセット状態となり、各Q出力は1H1′となる。即
ち、制御信号C3T0Pは”L”であるから発振回路(
1)の発振は持続する。また、制御信号CHGも′L”
であるからD−FF(至)の出力QはL”となり、従っ
て、ANDゲート(至)が導通し、発振出力CLKIが
選択され出力される。このとぎ、インバータ(3!Jの
出力は”H”であるからT−FF(3a(33)はセッ
トされたままとなり、ANDゲート(ハ)にはL II
が印加される。この状態では、マイクロコンピュータは
発振出力CLKIによってクロックパルスCPが作成さ
れるので高速動作となる。
In the circuit shown in FIG. 2, when the power is turned on, the hold signal HOLD becomes H'', and the reset signal R
Since ESET remains "H" for a predetermined period, the inverter (2
An "H" pulse is output from the output of 51, the first 7 flip-flop a3 and the second flip-flop aω are both in a reset state, and each Q output becomes 1H1'. That is, since the control signal C3T0P is "L", the oscillation circuit (
The oscillation of 1) continues. Also, the control signal CHG is also 'L'
Therefore, the output Q of the D-FF (to) becomes "L", and therefore, the AND gate (to) becomes conductive, and the oscillation output CLKI is selected and output.At this time, the output of the inverter (3!J) becomes " Since it is "H", T-FF (3a (33) remains set, and the AND gate (c) has L II
is applied. In this state, the microcomputer operates at high speed because the clock pulse CP is generated by the oscillation output CLKI.

上述の状態に於いて、ホールト命令が実行されホールト
信号HALTがHIIのパルスとなると、第1の7リツ
プフロツプQ31がセットされ、制御信号C3TOPは
H”となる。従って、発振回路(1)の発振が停止し、
マイクロコンピュータの動作が停止する。このとき、ホ
ールド信号HOLDはH”であるため、制御信号C3T
OP=″H”はNANDANDゲーfillて遮断され
るため、第2のフリップフロップ(l!19はリセット
状態のままである。そして、秒信号SECあるいはボー
ト信号PAがI(”のパルスになると、第1の7リツプ
フロツプQ阻【再びリセットされるため、発振回路(1
)の発振が再開する。
In the above state, when the halt command is executed and the halt signal HALT becomes a HII pulse, the first 7 lip-flop Q31 is set and the control signal C3TOP becomes H". Therefore, the oscillation of the oscillation circuit (1) stopped,
The microcomputer stops working. At this time, since the hold signal HOLD is H'', the control signal C3T
Since OP="H" is cut off by the NANDAND gate, the second flip-flop (l!19 remains in the reset state. Then, when the second signal SEC or boat signal PA becomes a pulse of I("), First 7 lip-flop Q block [Since it is reset again, the oscillation circuit (1
) oscillation resumes.

一方、停電によってホールド信号HOLDが”L”とな
ると、NANDANDゲートにはインバータ(ハ)の出
力″′H”が印加されるため、第2のフリップフロップ
Q5)は制御信号C3TOPによつでセット可能な状態
となる。即ち、第1の7リツプフロツプ031がリセッ
ト状態で制御信号C3TOPが”L”であるときには第
2の7リツプフロツプQ5はセットされない。一方、ホ
ールト命令が実行されて第1の7リツプフロツプ03が
セットされると、制御信号C3TOPは“H”となり、
第2の7リツプフロツプ(15)がセットされる。しか
し、この状態では発振回路(1)が停止しているため、
D−FF關は制御信号CHG=”H″を入力せず、従っ
て切換回路(3)は分周出力CLK2をまだ選択してい
ない。そこで、秒信号SECが′H”のパルスと。
On the other hand, when the hold signal HOLD becomes "L" due to a power outage, the output "'H" of the inverter (C) is applied to the NANDAND gate, so the second flip-flop Q5) is set by the control signal C3TOP. becomes possible. That is, when the first 7-lip-flop 031 is in the reset state and the control signal C3TOP is "L", the second 7-lip-flop Q5 is not set. On the other hand, when the halt command is executed and the first 7 lip-flop 03 is set, the control signal C3TOP becomes "H".
The second 7 lip-flop (15) is set. However, in this state, the oscillation circuit (1) is stopped, so
The control signal CHG="H" is not input to the D-FF, so the switching circuit (3) has not yet selected the frequency-divided output CLK2. Therefore, the second signal SEC becomes a 'H' pulse.

なると第1のフリップフロップa3がリセットされるが
、このとき、制御信号C3TOPがH”となることによ
つ≦、亭2の7リツプフロツプ(151がセットされ、
制御信号CHGが′H”となる。従って、発振回路(1
)が発振を再開するため、D−FF(至)は制御信号C
HG=″′H”を入力し、その出力な′H”とする。よ
って、ANDゲート(至)は発振出力CLKIを遮断し
、ANDゲート051は分周出力CLK2を選択する。
Then, the first flip-flop a3 is reset, but at this time, the control signal C3TOP becomes H'', so that
The control signal CHG becomes 'H'. Therefore, the oscillation circuit (1
) resumes oscillation, D-FF (to) receives control signal C
HG="'H" is input, and its output is set to 'H'. Therefore, the AND gate (to) cuts off the oscillation output CLKI, and the AND gate 051 selects the frequency-divided output CLK2.

同時に、T−FF(321(ト)のセットが解放される
ため、クロックジェネレータ(4)には1/4分周され
た分局出力CLK2が印加され、マイクロコンピュータ
は低速動作となる。
At the same time, since the set of T-FF (321) is released, the divided output CLK2 whose frequency is divided by 1/4 is applied to the clock generator (4), and the microcomputer operates at a low speed.

尚、ホールド状態ではANDゲーHatがポート信号P
Aを遮断しているため、入力ポート仕りに所定レベルの
信号を印加しても、動作を再開させることはできない。
In addition, in the hold state, the AND game Hat is connected to the port signal P.
Since A is cut off, operation cannot be restarted even if a signal of a predetermined level is applied to the input port.

即ち、秒信号SECのみが動作を再開できるようにし、
時刻計数という必要な動作だけを行うことによって、ホ
ールド状態での消費電力を最少限にしている。
That is, only the seconds signal SEC is allowed to resume operation;
By performing only the necessary operation of time counting, power consumption in the hold state is minimized.

また、ホールド状態に於いて、第1のフリップフロップ
(I9及び第2のフリップ70ツブa9がセット状態で
あるとき、即ち、ホールド状態で動作が停止していると
き、停電等の回復でホールド信号HOLDが′H″とな
ると、制御信号CHG=”H”の印加されたANDゲー
ト(27)の出力が”H”となるため、第1のフリップ
フロップQ3)及び第2のフリップフロップa$はリセ
ットされ、発振回路(1)の動作が再開され、切換回路
(3)は発振出力CLK1を選択する。従って、マイク
ロコンピュータは高速動作の通常動作状態に復帰する。
In addition, in the hold state, when the first flip-flop (I9) and the second flip-flop 70 knob a9 are in the set state, that is, when the operation is stopped in the hold state, the hold signal is When HOLD becomes 'H', the output of the AND gate (27) to which the control signal CHG='H' is applied becomes 'H', so the first flip-flop Q3) and the second flip-flop a$ The microcomputer is reset, the operation of the oscillation circuit (1) is restarted, and the switching circuit (3) selects the oscillation output CLK1.Therefore, the microcomputer returns to the normal operating state of high-speed operation.

(へ) 発明の効果 上述の如く本発明によれば、ホールド状態に於いて最少
限必要な動作を行わせる場合、その動作の速度を、通常
状態よりも遅(することにより、ホールド状態での消費
電力の減少と、計時動作の如く不可欠な動作を行うこと
が可能となり、マイクロコンピュータの能力を十分に発
揮することができる利点を有している。
(F) Effects of the Invention As described above, according to the present invention, when performing the minimum necessary operation in the hold state, the speed of the operation is slower than in the normal state (by doing so, the speed of the operation is slower than in the normal state). This has the advantage of reducing power consumption, making it possible to perform essential operations such as timekeeping, and making full use of the capabilities of the microcomputer.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例を示すブロック図、第2図は第
1図に示された一部ブロックの具体的な論理回路図であ
る。 主な図番の説明 (1)・・・発振回路、 (2)・・・分局回路、 (
3)・・・切換回路、 (4)・・・クロックジェネレ
ータ、 (5)・・・動作制御回路、 (6)・・・ホ
ールド端子、(7)・・・インストラクションデコーダ
、 (8)・・・入力回路、 (9)・・パ分周回路、
 QOI・・・計時用発振回路、 (11)・・・入力
ボート。 出願人 三洋電機株式会社 外1名 代理人 弁理士 佐 野 靜 夫 第1図
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a specific logic circuit diagram of some blocks shown in FIG. Explanation of main drawing numbers (1)...Oscillation circuit, (2)...Branch circuit, (
3)...Switching circuit, (4)...Clock generator, (5)...Operation control circuit, (6)...Hold terminal, (7)...Instruction decoder, (8)...・Input circuit, (9)...Pa frequency dividing circuit,
QOI: oscillation circuit for timing, (11): input port. Applicant Sanyo Electric Co., Ltd. and one other agent Patent attorney Mamoru Sano Figure 1

Claims (1)

【特許請求の範囲】 1、ホールト命令が実行されたとき動作を停止するホー
ルト機能を有し、ホールド端子に所定レベルの信号が印
加されているとぎ前記ホールト命令の実行によりホール
ド状態となるマイクロコンピュータであって、システム
のクロック信号を作成するための周波数信号を発生する
発振回路と、前記ホールト命令の実行によってセットさ
れ所属の信号によってリセットされ、その出力によって
前記発振回路の発振を制御する第1のフリップフロップ
と、前記発振回路の発揚出力を所定の周波数に分周する
分周回路と、該分周回路の分周出力と前記発振出力とを
切り換え、システムのクロック信号を作成するクロック
ジェネレータに印加する切換え回路と、前記ホールド端
子に所定レベルの信号が印加されたことを検出し前記切
換回路を制御する第2の7リツプフロツプとを備え、ホ
ールド機能中にセットされた前記第1の7リツプフーロ
ツプが所定の信号によってリセットされ動作停止が解除
されたとき、前記切換回路は分局出力を選択し、システ
ムの動作速度が低下することを特徴とするマイクロコン
ピュータ。 2、特許請求の範囲第1項に於いて、第1のフリップフ
ロップをリセットする信号は、少なくとも時刻計時用の
信号であることを特徴とするマイクロコンピュータ。
[Scope of Claims] 1. A microcomputer that has a halt function that stops operation when a halt command is executed, and enters a hold state by executing the halt command as long as a signal at a predetermined level is applied to a hold terminal. an oscillation circuit that generates a frequency signal for creating a system clock signal; and a first oscillation circuit that is set by execution of the halt instruction and reset by an associated signal, and whose output controls the oscillation of the oscillation circuit. a flip-flop, a frequency divider circuit that divides the oscillation output of the oscillation circuit into a predetermined frequency, and a clock generator that switches between the frequency division output of the frequency divider circuit and the oscillation output to create a system clock signal. and a second 7-lip-flop that detects that a signal of a predetermined level is applied to the hold terminal and controls the switching circuit, and the first 7-lip-flop is set during a hold function. 2. A microcomputer characterized in that when the switching circuit selects a branch output when the operation stoppage is canceled by being reset by a predetermined signal, the operating speed of the system is reduced. 2. The microcomputer according to claim 1, wherein the signal for resetting the first flip-flop is at least a timekeeping signal.
JP59026259A 1984-02-14 1984-02-14 Microcomputer Granted JPS60169919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59026259A JPS60169919A (en) 1984-02-14 1984-02-14 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59026259A JPS60169919A (en) 1984-02-14 1984-02-14 Microcomputer

Publications (2)

Publication Number Publication Date
JPS60169919A true JPS60169919A (en) 1985-09-03
JPH0426127B2 JPH0426127B2 (en) 1992-05-06

Family

ID=12188264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59026259A Granted JPS60169919A (en) 1984-02-14 1984-02-14 Microcomputer

Country Status (1)

Country Link
JP (1) JPS60169919A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02242410A (en) * 1989-03-16 1990-09-26 Sanyo Electric Co Ltd Frequency division circuit
US5548765A (en) * 1990-08-28 1996-08-20 Seiko Epson Corporation Power saving display subsystem for portable computers

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54146926A (en) * 1978-05-10 1979-11-16 Nec Corp Computer system
JPS5514609U (en) * 1978-07-10 1980-01-30
JPS58137023A (en) * 1982-02-10 1983-08-15 Hitachi Ltd One-chip microcomputer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54146926A (en) * 1978-05-10 1979-11-16 Nec Corp Computer system
JPS5514609U (en) * 1978-07-10 1980-01-30
JPS58137023A (en) * 1982-02-10 1983-08-15 Hitachi Ltd One-chip microcomputer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02242410A (en) * 1989-03-16 1990-09-26 Sanyo Electric Co Ltd Frequency division circuit
US5548765A (en) * 1990-08-28 1996-08-20 Seiko Epson Corporation Power saving display subsystem for portable computers

Also Published As

Publication number Publication date
JPH0426127B2 (en) 1992-05-06

Similar Documents

Publication Publication Date Title
EP0446958B1 (en) Single-chip microcomputer with clock signal switching function
EP0150316B1 (en) Clock generator
JPH0450629B2 (en)
JPS60169919A (en) Microcomputer
JPH0128408B2 (en)
JPH076155A (en) Single chip microcomputer
JPH0114552B2 (en)
JPH035948Y2 (en)
JPS59189426A (en) Clock supply controlling system
JP2653654B2 (en) Computer system runaway monitoring device
JP2751400B2 (en) Equipment control device
JPH04158419A (en) Microcomputer
JPS6270923A (en) Integrated circuit containing oscillating circuit
JPH0511877A (en) Microcomputer
JPH0334111B2 (en)
JPH05258087A (en) Microcomputer
JPS5990102A (en) Program controller
JPS61281318A (en) Semiconductor integrated circuit
JPS5916029A (en) Starting circuit of electronic device
JP2017162392A (en) Semiconductor device and control method thereof
JP2830216B2 (en) Standby circuit
JPH03273415A (en) Microprocessor
JPS5918478A (en) Cpu type electronic time piece
JPS58134339A (en) Information processor
JPS62105217A (en) Signal generating circuit