JPH06195160A - External interruption edge detecting circuit for microcomputer - Google Patents

External interruption edge detecting circuit for microcomputer

Info

Publication number
JPH06195160A
JPH06195160A JP4357436A JP35743692A JPH06195160A JP H06195160 A JPH06195160 A JP H06195160A JP 4357436 A JP4357436 A JP 4357436A JP 35743692 A JP35743692 A JP 35743692A JP H06195160 A JPH06195160 A JP H06195160A
Authority
JP
Japan
Prior art keywords
microcomputer
interrupt
edge
signal
external interrupt
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.)
Withdrawn
Application number
JP4357436A
Other languages
Japanese (ja)
Inventor
Kazumitsu Katakura
一光 片倉
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4357436A priority Critical patent/JPH06195160A/en
Publication of JPH06195160A publication Critical patent/JPH06195160A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To reduce the number of parts and power consumption required for external interruption edge detection by standing by a microcomputer in a stop mode at the time of an external interruption waiting state. CONSTITUTION:When any interruption factor occurs, a first edge generating part 11 generates an external interruption signal having a slow rising/falling edge for the interruption request. This external interruption signal is inputted to the interruption terminal of a microcomputer 10 and a second edge generating part 12. The second edge generating part 12 detect the external interruption signal sent from the first edge generating part 11 becomes to a prescribed threshold value, and outputs a pulse signal to a start input generating part 13. Based on this output pulse, the start input generating part 13 generates a start input signal and inputs it to the start terminal of the microcomputer 10. When prescribed processing is finished, the microcomputer 10 is set to an operation stop state by a stop mode function and on the other hand, an external interruption recognizing function is activated inputting the start input signal to release the stop state.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はストップモード機能およ
び外部割込み認識機能を内蔵したASIC等のマイクロ
コンピュータの外部割込み検出回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external interrupt detection circuit for a microcomputer such as an ASIC having a stop mode function and an external interrupt recognition function.

【0002】[0002]

【従来の技術】図4にはストップモード機能および外部
割込み認識機能を内蔵したASICマイクロコンピュー
タ・システムが示される。図4において、1は割込み要
因生成部であり、スイッチのオン/オフ信号が割込み要
因信号となる。この割込み要因信号はスイッチで生
じたチャタリングを吸収するチャタリング防止回路6を
経由してエッジ生成部2’に入力される。エッジ生成部
2’は割込み要因信号に対して急峻な立上り/立下り
エッジを持つ外部割込み信号’を生成してASICマ
イクロコンピュータ4の割込み端子に入力させる。
2. Description of the Related Art FIG. 4 shows an ASIC microcomputer system having a stop mode function and an external interrupt recognition function. In FIG. 4, reference numeral 1 is an interrupt factor generation unit, and an ON / OFF signal of a switch becomes an interrupt factor signal. This interrupt factor signal is input to the edge generation unit 2 ′ via the chattering prevention circuit 6 that absorbs chattering generated in the switch. The edge generator 2'generates an external interrupt signal 'having a steep rising / falling edge with respect to the interrupt factor signal and inputs it to the interrupt terminal of the ASIC microcomputer 4.

【0003】5はスタート入力生成部であり、図示しな
い各機能ブロック(マイクロコンピュータ4により制御
される)からのスタート要求に対してスタート入力信号
を生成してマイクロコンピュータ4のスタート端子に
入力させる。
Reference numeral 5 denotes a start input generation section which generates a start input signal in response to a start request from each functional block (not shown) (controlled by the microcomputer 4) and inputs it to the start terminal of the microcomputer 4.

【0004】マイクロコンピュータ4はスタンバイ解除
部42、CPUコア43、クロック制御部44、割込み
検出部45等を含み構成されている。CPUコア43は
通常、クロック制御部44からCPU用のクロックの
供給を受けて動作しているが、所要の処理が終了したと
きには自動的にスタンバイモード(あるいはストップモ
ードとも称する)に移行するようになっており、このス
タンバイモードではクロック制御部44に対してクロッ
クの供給を停止させるよう指示をしてCPUコア43
の主要動作を停止して省電力化を図り、一方、スタンバ
イ解除部42からスタンバイ解除要求を受けることに
よってクロック制御部44に対してクロックスタンバイ
解除要求を発し、このクロック制御部44から再びク
ロックの供給を受けて動作を開始するようになってい
る。なお、クロック制御部44はこのクロックスタンバ
イ解除要求を受けたときには、所定の発振安定待ち時
間を経過した後にクロックの供給を再開するよう動作
する。
The microcomputer 4 comprises a standby canceling section 42, a CPU core 43, a clock control section 44, an interrupt detecting section 45 and the like. The CPU core 43 normally operates by receiving the clock for the CPU from the clock control unit 44, but when the required processing is completed, the CPU core 43 automatically shifts to the standby mode (also referred to as stop mode). In this standby mode, the CPU core 43 is instructed to stop the clock supply to the clock control unit 44.
To stop power consumption while receiving a standby release request from the standby release unit 42, the clock standby release request is issued to the clock control unit 44, and the clock control unit 44 returns the clock It is designed to start operating after receiving supply. When the clock control unit 44 receives this clock standby release request, it operates so as to restart the supply of the clock after a predetermined oscillation stabilization wait time has elapsed.

【0005】外部割込み認識部(あるいは外部割込みマ
クロ)41はエッジ生成部2’からの外部割込み信号
のH/L間のレベル変化を検出して、レベル変化をあっ
たときには外部割込みと認識し、CPUコア43に対し
て割込み要求を出力する部分である。この外部割込み
認識部41はCPUコア43が動作中はそのCPUコア
43から内部クロックの供給を受けて動作している
が、CPUコア43が動作停止したときには内部クロッ
クの供給が停止されてその動作を停止するようになっ
ている。
The external interrupt recognition section (or external interrupt macro) 41 detects a level change between H / L of the external interrupt signal from the edge generation section 2 ', and when there is a level change, recognizes it as an external interrupt. This is a part that outputs an interrupt request to the CPU core 43. The external interrupt recognizing unit 41 operates by receiving the internal clock supply from the CPU core 43 while the CPU core 43 is operating, but when the CPU core 43 stops operating, the internal clock supply is stopped and the operation thereof is stopped. Is supposed to stop.

【0006】このマイクロコンピュータ・システムにお
いては、割込み要因生成部1で割込み要因信号が生成
されると、この割込み要因信号はチャタリング防止回
路6を経てエッジ生成部2’に入力され、ここで外部割
込み信号’が生成されてマイクロコンピュータ4の外
部割込み認識部41に入力され、ここでレベル変化の検
出により割込み要求が生成されてCPUコア43に入
力され、これによりCPUコア43が割込み処理を開始
する。この割込みの処理においては、割込み要因信号
の生成が停止されるとき(すなわち再び元のレベルに変
化したとき)に再び割込み処理を行うが、その際、CP
Uコア43が動作停止状態にあると外部割込み認識部4
1も内部クロックの供給を停止されて動作停止状態と
なるので、後者の割込みを認識できなくなる。よって割
込み要因信号に対してはそれが出力されている間中、
CPUコア43は動作を続けるようになっている。
In this microcomputer system, when the interrupt factor signal is generated by the interrupt factor signal generator 1, the interrupt factor signal is input to the edge signal generator 2'through the chattering prevention circuit 6 and the external interrupt signal is generated here. The signal 'is generated and input to the external interrupt recognition unit 41 of the microcomputer 4, and an interrupt request is generated and input to the CPU core 43 by detecting the level change, and the CPU core 43 starts the interrupt processing. . In this interrupt processing, the interrupt processing is performed again when the generation of the interrupt factor signal is stopped (that is, when the original level is changed again).
When the U core 43 is in the operation stop state, the external interrupt recognition unit 4
Since 1 also stops the supply of the internal clock and is in an operation stop state, the latter interrupt cannot be recognized. Therefore, for the interrupt factor signal, while it is being output,
The CPU core 43 continues to operate.

【0007】[0007]

【発明が解決しようとする課題】従来のASICマイク
ロコンピュータ・システムでは、エッジ生成部2’への
入力にチャタリングがあることを防止するために、その
前段にチャタリング防止回路6を必要とし、その分、部
品数が大きくなる。また、エッジ生成部2’から出力さ
れる外部割込み信号はエッジの立上り/立下りが緩慢
であると誤動作の原因になるので、エッジを急峻にする
必要があるが、そのためにはエッジ生成部2’内におい
てある程度大きな電流を流す必要があるので、エッジ生
成部2’での消費電力が大きくなる。また、CPUコア
43は外部割込み信号が出力されている期間中はその
動作を停止することができないので、このCPUコア4
3においても無駄な消費電力がある。
In the conventional ASIC microcomputer system, in order to prevent chattering in the input to the edge generator 2 ', the chattering prevention circuit 6 is required in the preceding stage, and the chattering prevention circuit 6 is required. , The number of parts increases. Further, the external interrupt signal output from the edge generator 2'may cause a malfunction if the rising / falling edge is slow, so it is necessary to make the edge steep. For that purpose, the edge generator 2 ' Since it is necessary to flow a certain amount of current inside the ', power consumption in the edge generation unit 2'becomes large. Further, the CPU core 43 cannot stop its operation while the external interrupt signal is being output.
Also in No. 3, there is unnecessary power consumption.

【0008】本発明はかかる問題点に鑑みてなされたも
のであり、外部割込みエッジ検出のために要する部品点
数と消費電力を削減することを目的とする。
The present invention has been made in view of the above problems, and an object thereof is to reduce the number of parts and power consumption required for detecting an external interrupt edge.

【0009】[0009]

【課題を解決するための手段】図1は本発明にかかる原
理説明図である。本発明のストップモード機能および外
部割込み認識機能を持つマイクロコンピュータ10の外
部割込みエッジ検出回路は、割込み要因に対して緩慢な
立上り/立下りのエッジを持つ外部割込み信号を生成し
てマイクロコンピュータ10の割込み端子に入力する第
1のエッジ生成部11と、第1のエッジ生成部11から
の外部割込み信号が所定のしきい値になったことを検出
してパルス信号を出力する第2のエッジ生成部12と、
第2のエッジ生成部12の出力パルスに基づいてスター
ト入力信号を生成してマイクロコンピュータ10のスタ
ート端子に入力するスタート入力生成部13とを備え、
ストップモード機能は所定の処理が終了するとマイクロ
コンピュータ10を動作停止状態に設定するようになっ
ており、マイクロコンピュータ10はスタート入力信号
が入力されるとストップ状態を解除して外部割込み認識
機能を起動するようになっており、外部割込み認識機能
はストップ状態になる前の割込み端子のレベルとマイク
ロコンピュータが動作再開時の割込み端子のレベルとを
比較して外部割込みを認識するようになっている。
FIG. 1 is a diagram illustrating the principle of the present invention. The external interrupt edge detection circuit of the microcomputer 10 having the stop mode function and the external interrupt recognition function of the present invention generates the external interrupt signal having the rising / falling edge which is slow with respect to the interrupt factor to generate the external interrupt signal of the microcomputer 10. A first edge generation unit 11 that inputs to an interrupt terminal and a second edge generation that detects that an external interrupt signal from the first edge generation unit 11 has reached a predetermined threshold value and outputs a pulse signal Part 12 and
And a start input generation unit 13 for generating a start input signal based on the output pulse of the second edge generation unit 12 and inputting the start input signal to the start terminal of the microcomputer 10.
The stop mode function sets the microcomputer 10 to an operation stop state when a predetermined process is completed. When the start input signal is input, the microcomputer 10 releases the stop state and activates the external interrupt recognition function. The external interrupt recognition function recognizes an external interrupt by comparing the level of the interrupt terminal before the stop state and the level of the interrupt terminal when the microcomputer resumes operation.

【0010】[0010]

【作用】割込み要因が発生すると第1のエッジ生成部1
1はその割込み要求に対して緩慢な立上り/立下りのエ
ッジを持つ外部割込み信号を生成する。この外部割込み
信号はマイクロコンピュータ10の割込み端子と第2の
エッジ生成部12に入力される。第2のエッジ生成部で
は、第1のエッジ生成部11からの外部割込み信号が所
定のしきい値になったことを検出してスタート入力生成
部13にパルス信号を出力する。スタート入力生成部1
3は第2のエッジ生成部12の出力パルスに基づいてス
タート入力信号を生成してマイクロコンピュータ10の
スタート端子に入力する。マイクロコンピュータ10
は、ストップモード機能により所定の処理が終了すると
マイクロコンピュータ10が動作停止状態に設定され、
一方、スタート入力信号が入力されるとストップ状態を
解除して外部割込み認識機能を起動する。外部割込み認
識機能は、起動されると、ストップ状態になる前の割込
み端子のレベルとマイクロコンピュータが動作再開時の
割込み端子のレベルとを比較して両者が違うとそのレベ
ル変化を外部割込みと見なして、マイクロコンピュータ
10に割込み要求を行う。
When the interrupt factor occurs, the first edge generator 1
1 generates an external interrupt signal having a slow rising / falling edge in response to the interrupt request. This external interrupt signal is input to the interrupt terminal of the microcomputer 10 and the second edge generator 12. The second edge generation unit detects that the external interrupt signal from the first edge generation unit 11 has reached a predetermined threshold value and outputs a pulse signal to the start input generation unit 13. Start input generator 1
3 generates a start input signal based on the output pulse of the second edge generator 12 and inputs it to the start terminal of the microcomputer 10. Microcomputer 10
When the predetermined processing is completed by the stop mode function, the microcomputer 10 is set to the operation stop state,
On the other hand, when the start input signal is input, the stop state is released and the external interrupt recognition function is activated. When activated, the external interrupt recognition function compares the level of the interrupt pin before the stop state with the level of the interrupt pin when the microcomputer resumes operation, and if the two differ, the level change is regarded as an external interrupt. Then, an interrupt request is issued to the microcomputer 10.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図2には本発明の一実施例としてのASICによ
るマイクロコンピュータ・システムの外部割込みエッジ
検出回路が示される。図2において、1は割込み要因生
成部であり、従来例で示したと同様にスイッチなどで構
成される。2はエッジ生成部であり、割込み要因生成部
1からの割込み要因信号に対してエッジを持つ外部割
込み信号を生成する回路であるが、このエッジ生成部
2は従来例のものよりもエッジの立上り/立下りがなだ
らかになっており、したがってエッジ生成部2のトラン
ジスタに流す電流は小電流でよいようになっている。こ
のエッジ生成部2からの外部割込み信号はマイクロコ
ンピュータ4の割込み端子およびエッジ生成部3に入力
される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 shows an external interrupt edge detection circuit of an ASIC microcomputer system according to an embodiment of the present invention. In FIG. 2, reference numeral 1 denotes an interrupt factor generator, which is composed of switches and the like as in the conventional example. Reference numeral 2 denotes an edge generation unit, which is a circuit for generating an external interrupt signal having an edge with respect to the interrupt factor signal from the interrupt factor generation unit 1. / The falling edge is gentle, so that the current flowing through the transistor of the edge generation unit 2 may be a small current. The external interrupt signal from the edge generator 2 is input to the interrupt terminal of the microcomputer 4 and the edge generator 3.

【0012】エッジ生成部3は抵抗器R、キャパシタ
C、シュミット回路、排他的OR回路等を含み構成され
ており、エッジ生成部2からの割込み要因信号のレベ
ルが所定のしきい値を上回るあるいは下回るときに一定
幅のパルス信号を生成し出力するよう動作する。この
パルス信号はスタート入力生成部5に入力される。
The edge generator 3 includes a resistor R, a capacitor C, a Schmitt circuit, an exclusive OR circuit, etc., and the level of the interrupt factor signal from the edge generator 2 exceeds a predetermined threshold value. When it falls below, it operates so as to generate and output a pulse signal of a constant width. This pulse signal is input to the start input generation unit 5.

【0013】スタート入力生成部5はパルス信号に対
して他の機能ブロックからのスタート入力要求があった
場合と同様にスタート入力信号を生成するようになっ
ており、このスタート入力信号はマイクロコンピュー
タ4のスタート端子を経てスタンバイ解除部42に入力
される。
The start input generator 5 is adapted to generate a start input signal for a pulse signal in the same manner as when a start input request is made from another functional block. It is input to the standby canceling unit 42 via the start terminal of.

【0014】マイクロコンピュータ4における外部割込
み認識部41、スタンバイ解除部42、CPUコア4
3、クロック制御部44の動作は前述のものとほぼ同様
であるが、CPUコア43は外部割込み認識部41から
の割込み要求に対してその割込み処理を行いそれが終
了すると自動的に動作を停止しスタンバイ解除部42か
らスタンバイ解除要求が入力されるまでその停止状態
を継続するストップモード(スタンバイモードとも称す
る)になるようになっている。すなわち、外部割込み待
ち状態のときにはマイクロコンピュータ4をストップモ
ードで待機させるようにしてある。
The external interrupt recognition unit 41, the standby release unit 42, and the CPU core 4 in the microcomputer 4
3. The operation of the clock control unit 44 is almost the same as that described above, but the CPU core 43 performs the interrupt processing for the interrupt request from the external interrupt recognition unit 41 and automatically stops the operation when the processing ends. A standby mode (also referred to as a standby mode) that continues the stopped state until a standby release request is input from the standby release unit 42 is set. That is, the microcomputer 4 is made to wait in the stop mode when waiting for an external interrupt.

【0015】この実施例回路の動作が図3のタイムチャ
ートを参照して以下に説明される。図3において、
(a)は割込み要因生成部1からの割込み要因信号、
(b)はエッジ生成部2からの外部割込み信号、
(c)はエッジ生成部3からのパルス信号、(d)は
マイクロコンピュータ4におけるCPUコア43の動作
モード、(e)は外部割込み認識部41からの割込み要
求をそれぞれ示す。
The operation of this embodiment circuit will be described below with reference to the time chart of FIG. In FIG.
(A) is an interrupt factor signal from the interrupt factor generator 1,
(B) is an external interrupt signal from the edge generator 2,
(C) shows a pulse signal from the edge generation unit 3, (d) shows an operation mode of the CPU core 43 in the microcomputer 4, and (e) shows an interrupt request from the external interrupt recognition unit 41.

【0016】割込み要因生成部1で割込み要因信号が
生成されると、エッジ生成部2でこの割込み要因信号
のオン/オフ変化点で立ち上がり/立ち下がる外部割込
み信号が生成される。この外部割込み信号はその立
上り/立下りのエッジが時定数を持ったなだらかなもの
となる。外部割込み信号の立上りがある所定のしきい
値を超えると、エッジ生成部3は一定幅のパルス信号
を生成し、これをスタート入力生成部5に入力する。こ
れを受けてスタート入力生成部5はスタート入力信号
を生成してマイクロコンピュータ4のスタンバイ解除部
42に入力させる。これによりスタンバイ解除部42は
スタンバイ解除要求をCPUコア43に対して発す
る。
When the interrupt factor generator 1 generates the interrupt factor signal, the edge generator 2 generates an external interrupt signal which rises / falls at the on / off change point of the interrupt factor signal. This external interrupt signal becomes gentle with its rising / falling edges having a time constant. When the rising edge of the external interrupt signal exceeds a predetermined threshold value, the edge generation unit 3 generates a pulse signal having a constant width and inputs this to the start input generation unit 5. In response to this, the start input generation unit 5 generates a start input signal and inputs it to the standby canceling unit 42 of the microcomputer 4. As a result, the standby canceling unit 42 issues a standby cancel request to the CPU core 43.

【0017】CPUコア43はそれまでストップモード
にあったが、スタンバイ解除部42からスタンバイ解除
要求を受けると、ストップモードを解除し、クロック
制御部44に対してクロックスタンバイ解除要求を発
する。これによりクロック制御部44は所定の発振安定
待ち時間(例えば10mS程度)の経過後、クロック
をCPUコア43に供給する。するとCPUコア43は
動作を再開し、外部割込み認識部41に対して内部クロ
ックを供給してそれを動作させる。
The CPU core 43, which has been in the stop mode until then, receives the standby release request from the standby release unit 42, releases the stop mode, and issues a clock standby release request to the clock control unit 44. As a result, the clock control unit 44 supplies the clock to the CPU core 43 after a predetermined oscillation stabilization wait time (for example, about 10 mS) has elapsed. Then, the CPU core 43 restarts the operation and supplies the internal clock to the external interrupt recognition unit 41 to operate it.

【0018】外部割込み認識部41はストップモードで
待機中はストップ前の割込み端子のレベル状態(外部割
込み信号のレベル状態で図3の例では“L”レベル)
を記憶しており、動作を開始した後にはそのときの割込
み端子のレベル(図3の例では“H”レベル)をモニタ
する。この割込み端子のレベルすなわち外部割込み信号
のレベルは急激には“L”から“H”に変化しない
が、発振安定待ち時間経過後にマイクロコンピュータ4
が動作再開した時点では“H”に変化しているので、外
部割込み認識部41はストップ前のレベルとモニタした
レベルを比較してレベル変化を検出することにより擬似
的にエッジを認識し、それによりCPUコア43に対し
て割込み要求を発する。CPUコア43は割込み要求
を受けると割込み処理を行い、所定の割込み処理が終
了すると自動的にストップモードに移行する。
The external interrupt recognizing unit 41 is in the stop mode and is in a standby state in the standby state before the stop (the level state of the external interrupt signal is "L" level in the example of FIG. 3) before the stop.
After the operation is started, the level of the interrupt terminal at that time (“H” level in the example of FIG. 3) is monitored. The level of this interrupt terminal, that is, the level of the external interrupt signal does not change from "L" to "H" rapidly, but after the oscillation stabilization wait time has passed, the microcomputer 4
Has changed to "H" when the operation is restarted, the external interrupt recognition unit 41 recognizes a pseudo edge by comparing the level before the stop and the monitored level to detect the level change, and Issues an interrupt request to the CPU core 43. When the CPU core 43 receives the interrupt request, the CPU core 43 performs the interrupt process, and automatically shifts to the stop mode when the predetermined interrupt process is completed.

【0019】次に外部割込み信号が立ち下がると、そ
のレベルが所定のしきい値を下回った時点でエッジ生成
部3が一定幅のパルス信号をスタート入力生成部5に
出力し、前述同様にしてスタート入力信号がマイクロ
コンピュータ4のスタート端子を経てスタンバイ解除部
42に入力され、CPUコア43がストップモードから
再び動作モードに移行する。
Next, when the external interrupt signal falls, when the level falls below a predetermined threshold value, the edge generator 3 outputs a pulse signal of a constant width to the start input generator 5, and in the same manner as described above. The start input signal is input to the standby canceling section 42 via the start terminal of the microcomputer 4, and the CPU core 43 shifts from the stop mode to the operation mode again.

【0020】上述の実施例のような構成にすると、エッ
ジ生成部2の出力する外部割込み信号のエッジはその
立上り/立下りが緩慢であるので、その前段にチャタリ
ング防止回路を設置しなくとも、割込み要因生成部で生
じたチャタリングの影響を取り除くことができる。また
マイクロコンピュータ4は全期間にわたり動作している
必要がなくなるので、その消費電力を削減することがで
きる。またエッジ生成部2の出力信号のエッジは急峻で
なくともよくそのトランジスタに流す電流を小電流にで
きるので、このエッジ生成部2における消費電力を小さ
くすることができる。
With the configuration of the above-described embodiment, the rising edge / falling edge of the external interrupt signal output from the edge generating section 2 is slow, so that even if a chattering prevention circuit is not provided in the preceding stage, The influence of chattering generated in the interrupt factor generation unit can be removed. Further, since the microcomputer 4 does not need to operate for the entire period, its power consumption can be reduced. Further, the edge of the output signal of the edge generator 2 does not have to be steep, and the current flowing through the transistor can be made small, so that the power consumption of the edge generator 2 can be reduced.

【0021】[0021]

【発明の効果】以上に説明したように、本発明によれば
チャタリング防止回路が不要になるなど周辺回路規模を
小さくして使用部品数を少なくできる。またASICマ
イクロコンピュータは通常、ストップモードになってい
るためその消費電力を削減することができるし、またエ
ッジ生成部で割込みエッジを鋭くする必要がないので、
エッジ生成部で大きな電流を流さなくともよくその分消
費電力を小さくできる。
As described above, according to the present invention, the number of parts used can be reduced by reducing the scale of peripheral circuits such as the need for a chattering prevention circuit. Moreover, since the ASIC microcomputer is normally in the stop mode, its power consumption can be reduced, and it is not necessary to sharpen the interrupt edge in the edge generation unit.
The edge generator does not need to supply a large current, and the power consumption can be reduced accordingly.

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

【図1】本発明に係る原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例としてのマイクロコンピュー
タの外部割込みエッジ検出回路を示す図である。
FIG. 2 is a diagram showing an external interrupt edge detection circuit of a microcomputer as one embodiment of the present invention.

【図3】実施例回路の各部信号のタイムチャートであ
る。
FIG. 3 is a time chart of signals of respective parts of the embodiment circuit.

【図4】従来例を示す図である。FIG. 4 is a diagram showing a conventional example.

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

1 割込み要因生成部 2、2’、3 エッジ生成部 4 ASICマイクロコンピュータ 5 スタート入力生成部 6 チャタリング防止回路 7 原発振器 41 外部割込み認識部 42 スタンバイ解除部 43 CPUコア 44 クロック制御部 割込み要因信号 外部割込み信号 パルス信号 スタンバイ解除要求 クロックスタンバイ解除要求 クロック 内部クロック 割込み要求 スタート入力信号 1 Interrupt factor generation unit 2, 2 ', 3 edge generation unit 4 ASIC microcomputer 5 Start input generation unit 6 Chattering prevention circuit 7 Original oscillator 41 External interrupt recognition unit 42 Standby release unit 43 CPU core 44 Clock control unit Interrupt factor signal external Interrupt signal Pulse signal Standby release request Clock Standby release request Clock Internal clock Interrupt request Start input signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ストップモード機能および外部割込み認
識機能を持つマイクロコンピュータ(10)の外部割込
みエッジ検出回路であって、 割込み要因に対して緩慢な立上り/立下りのエッジを持
つ外部割込み信号を生成して該マイクロコンピュータの
割込み端子に入力する第1のエッジ生成部(11)と、 該第1のエッジ生成部からの外部割込み信号が所定のし
きい値になったことを検出してパルス信号を出力する第
2のエッジ生成部(12)と、 該第2のエッジ生成部の出力パルスに基づいてスタート
入力信号を生成して該マイクロコンピュータのスタート
端子に入力するスタート入力生成部(13)とを備え、 該ストップモード機能は所定の処理が終了するとマイク
ロコンピュータを動作停止状態に設定するようになって
おり、 該マイクロコンピュータはスタート入力信号が入力され
るとストップ状態を解除して該外部割込み認識機能を起
動するようになっており、 該外部割込み認識機能はストップ状態になる前の割込み
端子のレベルとマイクロコンピュータが動作再開時の割
込み端子のレベルとを比較して外部割込みを認識するよ
うになっているマイクロコンピュータの外部割込みエッ
ジ検出回路。
1. An external interrupt edge detection circuit for a microcomputer (10) having a stop mode function and an external interrupt recognition function, which generates an external interrupt signal having a slow rising / falling edge with respect to an interrupt factor. A first edge generator (11) for input to the interrupt terminal of the microcomputer, and a pulse signal when it is detected that the external interrupt signal from the first edge generator has reached a predetermined threshold value. And a start input generator (13) for generating a start input signal based on the output pulse of the second edge generator and inputting the start input signal to a start terminal of the microcomputer. The stop mode function sets the microcomputer to an operation stop state when a predetermined process is completed. When the start input signal is input, the black computer releases the stop state and activates the external interrupt recognition function. The external interrupt recognition function is the level of the interrupt terminal before the stop state and the microcomputer. An external interrupt edge detection circuit of a microcomputer adapted to recognize an external interrupt by comparing the level of the interrupt pin when the operation is restarted.
JP4357436A 1992-12-24 1992-12-24 External interruption edge detecting circuit for microcomputer Withdrawn JPH06195160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4357436A JPH06195160A (en) 1992-12-24 1992-12-24 External interruption edge detecting circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4357436A JPH06195160A (en) 1992-12-24 1992-12-24 External interruption edge detecting circuit for microcomputer

Publications (1)

Publication Number Publication Date
JPH06195160A true JPH06195160A (en) 1994-07-15

Family

ID=18454119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4357436A Withdrawn JPH06195160A (en) 1992-12-24 1992-12-24 External interruption edge detecting circuit for microcomputer

Country Status (1)

Country Link
JP (1) JPH06195160A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003051960A (en) * 2001-08-06 2003-02-21 Sony Corp Electronic device
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system
JP2003051960A (en) * 2001-08-06 2003-02-21 Sony Corp Electronic device
JP4599774B2 (en) * 2001-08-06 2010-12-15 ソニー株式会社 Electronics

Similar Documents

Publication Publication Date Title
US7516347B2 (en) Electronic device having power-down mode and method of reducing power consumption
KR100340361B1 (en) A detector of an oscillation stopping and an apparatus for executing a treatment after the detection of an oscillation stopping
JPH0630541B2 (en) Operation stop and reset circuit device
JPH06195160A (en) External interruption edge detecting circuit for microcomputer
JP2004070767A (en) Controller
JP2776772B2 (en) Oscillation control circuit
JPH0720963A (en) Operation control circuit for clock oscillator
JPH05189272A (en) Controller
JP2001356917A (en) Pulse judging device
JPS60118941A (en) Runaway control circuit
KR890003751B1 (en) Reset data protect and autorestart circuits in system by microprocessor
JPH10145970A (en) Image forming apparatus
EP0173052A2 (en) Microcomputer clock circuit
JPS5916029A (en) Starting circuit of electronic device
JP2705311B2 (en) Microcomputer
JPH0756774A (en) Watching timer
KR100407569B1 (en) Oscillator circuit with oscillation control function
JP2830522B2 (en) Watchdog timer
JP2006189996A (en) Semiconductor device
JP3177139B2 (en) Oscillation restart controller
JPH0922403A (en) Integrated circuit having reset control function
JPS62214419A (en) Arithmatic and control unit
JPH05189078A (en) System clock selecting circuit
JP2006107263A (en) Power supply start-stop control circuit
JPH0784834A (en) Semiconductor device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000307