JPH0786890A - External edge detecting circuit for microcomputer - Google Patents

External edge detecting circuit for microcomputer

Info

Publication number
JPH0786890A
JPH0786890A JP5228402A JP22840293A JPH0786890A JP H0786890 A JPH0786890 A JP H0786890A JP 5228402 A JP5228402 A JP 5228402A JP 22840293 A JP22840293 A JP 22840293A JP H0786890 A JPH0786890 A JP H0786890A
Authority
JP
Japan
Prior art keywords
signal
input
port
output
edge detection
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
JP5228402A
Other languages
Japanese (ja)
Inventor
Hisashi Tonai
久志 藤内
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.)
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki 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 Oki Electric Industry Co Ltd, Oki Micro Design Miyazaki Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5228402A priority Critical patent/JPH0786890A/en
Publication of JPH0786890A publication Critical patent/JPH0786890A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the malfunctions of an external edge detecting circuit by using a reset circuit which eliminates an edge detecting signal that is produced by the change of the input signal produced when a port function display signal changes. CONSTITUTION:An external edge detecting circuit contains a reset circuit 30 which supplies an input signal DIN received from a port part and a port function display signal F that changes by the input/output changeover of the port part and detects the change of the signal DIN due to the change of the signal F to produce a reset signal S37. Then an edge detecting circuit is added to input the signal DIN and output it synchronously with a clock signal CLK and to be reset by the signal S37. When both signals DIN and F are supplied to a detecting means, the change of the signal DIN due to the change of the signal F is detected and the signal S37 is produced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
等に使用される外部エッジ検出回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an external edge detecting circuit used in a microcomputer or the like.

【0002】[0002]

【従来の技術】図2は、従来のマイクロコンピュータ
(以下、マイコンという)の一構成例を示す概略のブロ
ック図である。このマイコンは、プログラムに従って演
算処理を行う中央処理装置(Central Proc
essing Unit、以下、CPUという)1、プ
ログラムを記憶するプログラムメモリ2、CPUからの
データの書き込みと読み出しを行うデータメモリ3、周
辺機器に接続される複数の外部端子4−1〜4−4、マ
イコンと外部とのデータのやり取りに使用するための1
次機能及びある特殊な機能として使用するための2次機
能を有する複数のポート部5−1〜5−4、外部から入
力された信号DINを検出し検出信号EGをマイコン内
部の各ブロックへ供給する複数の外部エッジ検出回路
6、複数のポート部から割込み要求があった場合に割込
みの優先順位をつけ緊急度の高いものから割込みを行う
ように割込み要求信号INTを出力する割込みコントロ
ールブロック7を備えている。図3は、図2中のポート
部5−1〜5−4の一構成例を示す概略のブロック図で
ある。このポート部5−1は、出力バッファ11と、入
力バッファ12と、ポートモードコントロールレジスタ
15とを備えている。出力バッファ11は、入力側が入
力端子13を介してマイコン内部の各ブロックに接続さ
れ、出力側は外部端子4−1に接続されている。入力バ
ッファ12は入力側が外部端子4−1に接続され、出力
側は出力端子14を介して外部エッジ検出回路6に接続
され、入力信号DINを出力する。出力バッファ11及
び入力バッファ12の出力部は、マイコンからの制御信
号Cに基づき、ポートモードコントロールレジスタ15
を介して制御されるトライステートの構成になってい
る。ポート部5−2〜5−4についても同様である。
2. Description of the Related Art FIG. 2 is a schematic block diagram showing a configuration example of a conventional microcomputer (hereinafter referred to as a microcomputer). This microcomputer is a central processing unit (Central Proc) that performs arithmetic processing according to a program.
essing Unit (hereinafter referred to as CPU) 1, a program memory 2 for storing a program, a data memory 3 for writing and reading data from the CPU, a plurality of external terminals 4-1 to 4-4 connected to peripheral devices, 1 for use in exchanging data between the microcomputer and the outside
A plurality of port units 5-1 to 5-4 having a secondary function and a secondary function to be used as a certain special function, a signal DIN input from the outside is detected, and a detection signal EG is supplied to each block inside the microcomputer. A plurality of external edge detection circuits 6 and an interrupt control block 7 which outputs an interrupt request signal INT so that when there are interrupt requests from a plurality of ports, the interrupts are prioritized and interrupts are executed from the one having the highest urgency. I have it. FIG. 3 is a schematic block diagram showing a configuration example of the port units 5-1 to 5-4 in FIG. The port unit 5-1 includes an output buffer 11, an input buffer 12, and a port mode control register 15. The output buffer 11 has an input side connected to each block inside the microcomputer via an input terminal 13, and an output side connected to an external terminal 4-1. The input side of the input buffer 12 is connected to the external terminal 4-1 and the output side is connected to the external edge detection circuit 6 via the output terminal 14, and outputs the input signal DIN. The output sections of the output buffer 11 and the input buffer 12 are based on the control signal C from the microcomputer, and the port mode control register 15
It has a tri-state configuration that is controlled via. The same applies to the port units 5-2 to 5-4.

【0003】図4は、図2中の外部エッジ検出回路6の
一構成例を示す回路図である。この外部エッジ検出回路
6は、遅延フリップフロップ(以下、D−FFという)
21と、D−FF22と、2入力ANDゲート23,2
4とを備えている。D−FF21は、前記入力信号DI
Nを入力してクロック信号CLKの立ち下がりに同期し
て出力する回路である。D−FF22は、D−FF21
の出力信号を入力してクロック信号CLKの立ち下がり
に同期して出力する回路である。2入力ANDゲート2
3は、D−FF21の反転出力信号とD−FF22の出
力信号との論理積を出力する回路である。2入力AND
ゲート24は、D−FF21の出力信号とD−FF22
の反転出力信号との論理積を出力する回路である。図5
は、図2、図3及び図4の動作を説明するためのタイム
チャートであり、横軸に時間、縦軸に電圧がとられてい
る。この図を参照しつつ、図2、図3及び図4の動作を
説明する。1次機能F1は、マイコンと外部とのデータ
のやりとりに使用する機能、及び2次機能F2は、外部
エッジ検出回路6への入力専用ポートとして使用する機
能として定義される。入力信号DINは、ポート部5−
1から出力される信号であり、ポート部5−1が1次機
能F1に設定されているときは、高レベル(以下、
“H”という)に固定されており、外部エッジ検出回路
6が動作しないようになっている。ポート部5−1が2
次機能F2に設定されると、入力信号DINは、そのと
きの外部端子4−1に印加されているデータのレベルに
なる。ここで、入力信号DINが“H”から低レベル
(以下、“L”という)に変化すると、D−FF21の
反転出力Q2は次のクロック信号CLKの立ち下がりで
“L”から“H”へ変化し、その反転出力Q2とD−F
F22の出力Q1との論理積を出力するANDゲート2
3から立ち下がりエッジ検出信号EG1が出力される。
同様に、入力信号DINが“L”から“H”に変化する
と、D−FF21の出力Q1は次のクロック信号CLK
の立ち下がりで“L”から“H”へ変化し、その出力Q
1とD−FF22の反転出力Q2との論理積を出力する
ANDゲート24から立ち上がりエッジ検出信号EG2
が出力される。
FIG. 4 is a circuit diagram showing a configuration example of the external edge detection circuit 6 shown in FIG. The external edge detection circuit 6 is a delay flip-flop (hereinafter referred to as D-FF).
21, D-FF 22, and 2-input AND gates 23 and 2
4 and. The D-FF 21 receives the input signal DI
It is a circuit that inputs N and outputs it in synchronization with the falling edge of the clock signal CLK. The D-FF 22 is the D-FF 21.
Is a circuit which inputs the output signal of and outputs it in synchronization with the fall of the clock signal CLK. 2-input AND gate 2
Reference numeral 3 is a circuit that outputs a logical product of the inverted output signal of the D-FF 21 and the output signal of the D-FF 22. 2-input AND
The gate 24 outputs the output signal of the D-FF 21 and the D-FF 22.
Is a circuit that outputs a logical product with the inverted output signal of. Figure 5
4 is a time chart for explaining the operation of FIG. 2, FIG. 3, and FIG. 4, in which the horizontal axis represents time and the vertical axis represents voltage. The operation of FIGS. 2, 3 and 4 will be described with reference to this figure. The primary function F1 is defined as a function used for exchanging data between the microcomputer and the outside, and the secondary function F2 is defined as a function used as an input-only port to the external edge detection circuit 6. The input signal DIN is supplied to the port section 5-
1 is a signal output from the terminal 1, and when the port unit 5-1 is set to the primary function F1, it is at a high level (hereinafter,
It is fixed to "H") so that the external edge detection circuit 6 does not operate. Port part 5-1 is 2
When the next function F2 is set, the input signal DIN becomes the level of the data applied to the external terminal 4-1 at that time. Here, when the input signal DIN changes from "H" to a low level (hereinafter referred to as "L"), the inverted output Q2 of the D-FF 21 changes from "L" to "H" at the next fall of the clock signal CLK. Change and its inverted output Q2 and DF
AND gate 2 that outputs a logical product with the output Q1 of F22
A falling edge detection signal EG1 is output from 3.
Similarly, when the input signal DIN changes from “L” to “H”, the output Q1 of the D-FF 21 outputs the next clock signal CLK.
Changes from "L" to "H" at the falling edge of the output Q
1 and the inverted output Q2 of the D-FF 22 are output from the AND gate 24 which outputs a rising edge detection signal EG2.
Is output.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
マイコン等に用いられる図4の外部エッジ検出回路で
は、次のような課題があった。図2、図3、及び図4に
示す従来回路では、ポート部5−1が1次機能F1に設
定されているときは、入力信号DINが“H”に固定さ
れているが、外部端子4−1に印加されているデータの
レベルが“L”になっていると、ポート部5−1が2次
機能F2に設定されたとき、入力信号DINが“H”か
ら“L”へ変化するので、立ち下がりエッジが検出され
る。つまり、外部端子4−1にエッジが発生していない
にもかかわらず、外部エッジ検出回路6はエッジ検出信
号を出力するのである。本発明は、前記従来技術が持っ
ていた課題として、外部端子にエッジが発生していない
にもかかわらず、外部エッジ検出回路はエッジ検出信号
を出力するという誤動作について解決し、外部エッジ検
出回路をリセットするリセット回路を設け、誤動作を防
止した外部エッジ検出回路を提供するものである。
However, the external edge detection circuit of FIG. 4 used in the conventional microcomputer or the like has the following problems. In the conventional circuits shown in FIG. 2, FIG. 3, and FIG. 4, when the port section 5-1 is set to the primary function F1, the input signal DIN is fixed at "H", but the external terminal 4 When the level of the data applied to -1 is "L", the input signal DIN changes from "H" to "L" when the port section 5-1 is set to the secondary function F2. Therefore, the falling edge is detected. That is, the external edge detection circuit 6 outputs the edge detection signal even though no edge has occurred at the external terminal 4-1. SUMMARY OF THE INVENTION The present invention solves the problem that the above-described conventional technique has a malfunction that the external edge detection circuit outputs an edge detection signal even though no edge is generated in the external terminal. A reset circuit for resetting is provided to provide an external edge detection circuit that prevents malfunction.

【0005】[0005]

【課題を解決するための手段】第1の発明は、前記課題
を解決するために、入出力機能が切り換えられるポート
部を備え、そのポート部に対しクロック信号に同期した
信号の入出力が行われるマイコン内に設けられ、前記ク
ロック信号に同期してポート部からの信号のエッジを検
出し、その検出結果により前記マイコンで信号処理を行
わせるエッジ検出部を有するマイコンの外部エッジ検出
回路において、次のような手段を講じている。即ち、前
記ポート部からの入力信号と該ポート部の入出力切り換
え時に変化するポート機能表示信号とを入力し、該ポー
ト機能表示信号の変化に起因する該入力信号の変化を検
出してリセット信号を生成する検出手段と、前記クロッ
ク信号に同期して前記リセット信号を出力して前記エッ
ジ検出部をリセットする同期手段とを設けている。第2
の発明では、前記検出手段は、論理積回路で構成し、前
記同期手段は、フリップフロップで構成している。
In order to solve the above-mentioned problems, a first aspect of the present invention is provided with a port unit whose input / output function is switched, and a signal synchronized with a clock signal is input / output to / from the port unit. In an external edge detection circuit of a microcomputer, which is provided in a microcomputer, detects an edge of a signal from a port unit in synchronization with the clock signal, and has an edge detection unit that causes the microcomputer to perform signal processing according to the detection result, The following measures are taken. That is, an input signal from the port unit and a port function display signal that changes when inputting / outputting the port unit is input, a change in the input signal caused by a change in the port function display signal is detected, and a reset signal is detected. And a synchronization means for outputting the reset signal in synchronization with the clock signal to reset the edge detection unit. Second
In the invention, the detecting means is composed of an AND circuit, and the synchronizing means is composed of a flip-flop.

【0006】[0006]

【作用】第1及び第2の発明によれば、以上のように外
部エッジ検出回路を構成したので、検出手段にポート部
からの入力信号と該ポート部の入出力切り換え時に変化
するポート機能表示信号とが入力されると、該ポート機
能表示信号の変化に起因する該入力信号の変化が検出さ
れ、リセット信号が生成される。そのため、エッジ検出
部がエッジ検出信号を生成する前にリセットされる。従
って、前記課題を解決できるのである。
According to the first and second aspects of the present invention, since the external edge detection circuit is configured as described above, the detection means displays an input signal from the port section and a port function display that changes when the input / output of the port section is switched. When a signal is input, a change in the input signal due to a change in the port function display signal is detected and a reset signal is generated. Therefore, the edge detection unit is reset before generating the edge detection signal. Therefore, the above problem can be solved.

【0007】[0007]

【実施例】図1は、本発明の実施例を示す外部エッジ検
出回路の回路図である。外部エッジ検出回路は、図2に
示すマイコンの外部エッジ検出回路6に相当するもので
ある。この外部エッジ検出回路は、前記ポート部5−1
からの入力信号DINと該ポート部5−1の入出力切り
換え時に変化するポート機能表示信号Fとを入力し、該
ポート機能表示信号Fの変化に起因する該入力信号DI
Nの変化を検出してリセット信号S37を生成するリセ
ット部30と、前記入力信号DINを入力して前記クロ
ック信号CLKに同期して出力し、前記リセット部の出
力信号S37でリセットされるエッジ検出部とを設けて
いる。リセット部30は、ポート機能表示信号Fを反転
するインバータ31,32を有している。インバータ3
2の出力側は2入力NORゲート33の一方の入力側に
接続され、他方の入力側にはリセット信号RSTが入力
する。2入力NORゲート33の出力側はRS(リセッ
ト・セット)フリップフロップ(以下、RS−FFとい
う)34のセット入力端子Sに接続されている。RS−
FF34は、2入力NORゲート34a,34bを有し
ている。2入力NORゲート34a,34bは、セット
入力端子S及びリセット入力端子Rと出力端子Qとの間
にたすき掛け接続されている。
FIG. 1 is a circuit diagram of an external edge detection circuit showing an embodiment of the present invention. The external edge detection circuit corresponds to the external edge detection circuit 6 of the microcomputer shown in FIG. This external edge detection circuit is provided with the port section 5-1.
Input signal DIN and a port function display signal F which changes when the input / output of the port unit 5-1 is switched, and the input signal DI caused by the change of the port function display signal F is input.
A reset unit 30 that detects a change in N and generates a reset signal S37, and an edge detection that receives the input signal DIN, outputs the signal in synchronization with the clock signal CLK, and is reset by the output signal S37 of the reset unit. Section is provided. The reset unit 30 has inverters 31 and 32 that invert the port function display signal F. Inverter 3
The output side of 2 is connected to one input side of the 2-input NOR gate 33, and the reset signal RST is input to the other input side. The output side of the 2-input NOR gate 33 is connected to a set input terminal S of an RS (reset / set) flip-flop (hereinafter referred to as RS-FF) 34. RS-
The FF 34 has 2-input NOR gates 34a and 34b. The two-input NOR gates 34a and 34b are connected between the set input terminal S and the reset input terminal R and the output terminal Q in a crossed manner.

【0008】入力信号DIN、インバータ31の出力、
及びRS−FF34の出力は、3入力NORゲート35
の入力側にそれぞれ接続されている。3入力NORゲー
ト35の出力側は、2入力ANDゲート36の一方の入
力側に接続されている。2入力ANDゲート36の出力
側は、D−FF37の入力端子Dに接続されている。D
−FF37は正エッジトリガD−FFで構成されてい
る。クロック入力端子CKにはクロック信号CLKが入
力する。D−FF37の反転出力端子Q2は、2入力A
NDゲート36の他方の入力側に接続されている。D−
FF37の出力端子Q1からはリセット信号S37が出
力する。D−FF37のリセット入力端子Rにはリセッ
ト信号RSTが入力する。D−FF37の出力Q1はR
S−FF34のリセット入力端子Rに接続されていると
共に、D−FF41,42のリセット入力端子Rに接続
されている。D−FF41,42は負エッジトリガD−
FFで構成されている。クロック入力端子CKにはクロ
ック信号CLKが入力する。D−FF41の反転出力Q
2は2入力ANDゲート43の一方の入力側に接続さ
れ、D−FF42の出力Q1が2入力ANDゲート43
の他方の入力側に接続されている。2入力ANDゲート
43の出力側からは、立ち下がりエッジ検出信号EG1
1が出力する。D−FF41の出力Q1は2入力AND
ゲート44の一方の入力側に接続されると共に、D−F
F42の入力端子Dに接続されている。D−FF42の
反転出力Q2が2入力ANDゲート44の他方の入力側
に接続されている。2入力ANDゲート44の出力側か
らは、立ち上がりエッジ検出信号EG12が出力する。
The input signal DIN, the output of the inverter 31,
And the output of the RS-FF 34 is a 3-input NOR gate 35.
Are connected to the input side of each. The output side of the 3-input NOR gate 35 is connected to one input side of the 2-input AND gate 36. The output side of the 2-input AND gate 36 is connected to the input terminal D of the D-FF 37. D
The -FF 37 is composed of a positive edge trigger D-FF. The clock signal CLK is input to the clock input terminal CK. The inverting output terminal Q2 of the D-FF 37 has 2 inputs A
It is connected to the other input side of the ND gate 36. D-
The reset signal S37 is output from the output terminal Q1 of the FF37. The reset signal RST is input to the reset input terminal R of the D-FF 37. Output Q1 of D-FF37 is R
It is connected to the reset input terminal R of the S-FF 34 and also to the reset input terminal R of the D-FFs 41 and 42. D-FF 41 and 42 are negative edge triggers D-
It is composed of FF. The clock signal CLK is input to the clock input terminal CK. Inverted output Q of D-FF41
2 is connected to one input side of the 2-input AND gate 43, and the output Q1 of the D-FF 42 is the 2-input AND gate 43.
Is connected to the other input side of. From the output side of the 2-input AND gate 43, the falling edge detection signal EG1
1 is output. The output Q1 of the D-FF41 is a 2-input AND
It is connected to one input side of the gate 44 and
It is connected to the input terminal D of F42. The inverted output Q2 of the D-FF 42 is connected to the other input side of the 2-input AND gate 44. The rising edge detection signal EG12 is output from the output side of the 2-input AND gate 44.

【0009】図6は、図1の動作を説明するためのタイ
ムチャートであり、横軸に時間、縦軸に電圧がとられて
いる。この図を参照しつつ、図1の動作を説明する。初
期状態ではリセット信号RSTによりRS−FF34の
出力Qは“L”となり、D−FF37の出力であるリセ
ット信号S37も“L”となる。ポート部は1次機能F
1になっているので、ポート機能表示信号Fは“L”と
なっていると共に、入力信号DINは“H”に固定され
ている。そのため、D−FF41の出力Q1及びD−F
F42の出力Q1は常に“H”になっている。次に、ポ
ート部が2次機能F2になると、ポート機能表示信号F
は“H”となる。このとき外部端子に“L”が印加され
ているものとする。すると、入力信号DINが“L”に
変化する。入力信号DINが“L”に変化すると、2入
力ANDゲート36の出力側は“H”となる。この
“H”をD−FF37がクロック信号CLKの立ち上が
りで取り込むことによりリセット信号S37が“H”と
なる。そのため、D−FF41,42にリセットが掛か
る。つまり、D−FF41,42の出力が次のクロック
信号CLKの立ち下がりで変化する前にリセットが掛か
るので、立ち下がりエッジ検出信号EG11が出力しな
い。又、リセット信号S37が“H”になると、2入力
ANDゲート36の出力側は“L”となるので、次のク
ロック信号CLKの立ち上がりでリセット信号S37が
“L”になり、D−FF41,42のリセットが禁止さ
れる。リセット信号S37が“H”となったとき、RS
−FF34もリセットされ、RS−FF34の出力Qは
“H”となるので、リセット信号S37が“L”となり
変化しない。つまり、ポート機能表示信号Fが“H”と
なったとき、入力信号DINが“L”に変化したときに
のみ、リセット信号S37が“H”となる。
FIG. 6 is a time chart for explaining the operation of FIG. 1, in which the horizontal axis represents time and the vertical axis represents voltage. The operation of FIG. 1 will be described with reference to this figure. In the initial state, the reset signal RST causes the output Q of the RS-FF 34 to be "L", and the reset signal S37 which is the output of the D-FF 37 also be "L". Port part has primary function F
Since it is 1, the port function display signal F is "L" and the input signal DIN is fixed to "H". Therefore, the output Q1 and D-F of D-FF41
The output Q1 of F42 is always "H". Next, when the port section becomes the secondary function F2, the port function display signal F
Becomes "H". At this time, it is assumed that "L" is applied to the external terminal. Then, the input signal DIN changes to "L". When the input signal DIN changes to "L", the output side of the 2-input AND gate 36 becomes "H". The reset signal S37 becomes "H" by the D-FF 37 taking in this "H" at the rising edge of the clock signal CLK. Therefore, the D-FFs 41 and 42 are reset. That is, since the outputs of the D-FFs 41 and 42 are reset before they change at the next falling edge of the clock signal CLK, the falling edge detection signal EG11 is not output. Further, when the reset signal S37 becomes "H", the output side of the 2-input AND gate 36 becomes "L", so that the reset signal S37 becomes "L" at the next rising of the clock signal CLK, and the D-FF 41, Reset of 42 is prohibited. When the reset signal S37 becomes "H", RS
Since the -FF 34 is also reset and the output Q of the RS-FF 34 becomes "H", the reset signal S37 becomes "L" and does not change. That is, the reset signal S37 becomes "H" only when the port function display signal F becomes "H" and the input signal DIN changes to "L".

【0010】以上のように、本実施例では、外部エッジ
検出回路において、ポート部が1次機能F1から2次機
能F2に切り替わるときに発生する入力信号DINの変
化によりエッジ検出信号が生成されることを防止するた
めリセット回路を設けた。そのため、外部エッジ検出回
路の誤動作を防止することができる。なお、本発明は上
記実施例に限定されず、種々の変形が可能である。その
変形例としては、例えば次のようなものがある。 (a)図2のマイコンの全体構成は、他の回路構成にし
てもよい。 (b)リセット部30は、他の回路構成にしてもよい。 (c)D−FF41,42は、1ビット又は複数ビット
のシフトレジスタにしてもよい。 (d)ANDゲート43,44は、検出する信号によっ
ては1個又は複数個にしてもよい。
As described above, in the present embodiment, in the external edge detection circuit, the edge detection signal is generated by the change of the input signal DIN generated when the port section is switched from the primary function F1 to the secondary function F2. A reset circuit is provided to prevent this. Therefore, malfunction of the external edge detection circuit can be prevented. The present invention is not limited to the above embodiment, and various modifications can be made. The following are examples of such modifications. (A) The entire configuration of the microcomputer shown in FIG. 2 may have another circuit configuration. (B) The reset unit 30 may have another circuit configuration. (C) The D-FFs 41 and 42 may be 1-bit or multi-bit shift registers. (D) One or more AND gates 43 and 44 may be provided depending on the signal to be detected.

【0011】[0011]

【発明の効果】以上詳細に説明したように、第1及び第
2の発明によれば、外部エッジ検出回路において、ポー
ト機能表示信号が変化するときに発生する入力信号の変
化によりエッジ検出信号が生成されることを防止するた
めのリセット回路を設けたので、外部エッジ検出回路の
誤動作を防止することができる。
As described above in detail, according to the first and second aspects of the invention, in the external edge detection circuit, the edge detection signal is changed by the change of the input signal generated when the port function display signal changes. Since the reset circuit for preventing the generation is provided, the malfunction of the external edge detection circuit can be prevented.

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

【図1】本発明の実施例の外部エッジ検出回路の回路図
である。
FIG. 1 is a circuit diagram of an external edge detection circuit according to an embodiment of the present invention.

【図2】従来のマイクロコンピュータのブロック図であ
る。
FIG. 2 is a block diagram of a conventional microcomputer.

【図3】図2中のポート部のブロック図である。FIG. 3 is a block diagram of a port unit in FIG.

【図4】図2中の外部エッジ検出回路の回路図である。4 is a circuit diagram of an external edge detection circuit in FIG.

【図5】図4の外部エッジ検出回路のタイムチャートで
ある。
5 is a time chart of the external edge detection circuit of FIG.

【図6】図1に示す外部エッジ検出回路のタイムチャー
トである。
FIG. 6 is a time chart of the external edge detection circuit shown in FIG.

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

30 リセット部 35 3入力NORゲート 36 2入力ANDゲート 37 D−FF 30 reset unit 35 3-input NOR gate 36 2-input AND gate 37 D-FF

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入出力機能が切り換えられるポート部を
備え、 そのポート部に対しクロック信号に同期した信号の入出
力が行われるマイクロコンピュータ内に設けられ、 前記クロック信号に同期してポート部からの信号のエッ
ジを検出し、その検出結果で前記マイクロコンピュータ
で信号処理を行わせるエッジ検出部を有するマイクロコ
ンピュータの外部エッジ検出回路において、 前記ポート部からの入力信号と該ポート部の入出力切り
換え時に変化するポート機能表示信号とを入力し、該ポ
ート機能表示信号の変化に起因する該入力信号の変化を
検出してリセット信号を生成する検出手段と、 前記クロック信号に同期して前記リセット信号を出力し
て前記エッジ検出部をリセットする同期手段とを、 設けたことを特徴とするマイクロコンピュータの外部エ
ッジ検出回路。
1. A microcomputer provided with a port unit whose input / output functions are switched, the port unit being provided in a microcomputer for inputting and outputting a signal in synchronization with a clock signal, the port unit being synchronized with the clock signal. An external edge detection circuit for a microcomputer having an edge detection section for detecting an edge of a signal of the signal and causing the microcomputer to perform signal processing on the basis of the detection result, and switching an input signal from the port section and input / output of the port section. A detection unit that inputs a port function display signal that changes from time to time and detects a change in the input signal due to a change in the port function display signal to generate a reset signal, and the reset signal in synchronization with the clock signal. And a synchronization means for resetting the edge detection section by outputting Outside edge detection circuit of Yuta.
【請求項2】 前記検出手段は、論理積回路で構成し、 前記同期手段は、フリップフロップで構成したことを特
徴とする請求項1記載のマイクロコンピュータの外部エ
ッジ検出回路。
2. The external edge detection circuit for a microcomputer according to claim 1, wherein said detection means is composed of an AND circuit, and said synchronization means is composed of a flip-flop.
JP5228402A 1993-09-14 1993-09-14 External edge detecting circuit for microcomputer Withdrawn JPH0786890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5228402A JPH0786890A (en) 1993-09-14 1993-09-14 External edge detecting circuit for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5228402A JPH0786890A (en) 1993-09-14 1993-09-14 External edge detecting circuit for microcomputer

Publications (1)

Publication Number Publication Date
JPH0786890A true JPH0786890A (en) 1995-03-31

Family

ID=16875909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5228402A Withdrawn JPH0786890A (en) 1993-09-14 1993-09-14 External edge detecting circuit for microcomputer

Country Status (1)

Country Link
JP (1) JPH0786890A (en)

Similar Documents

Publication Publication Date Title
US5948111A (en) Real time comparison of integrated circuit operation
JP3604323B2 (en) Clock switching circuit
JP2001326566A (en) Clock abnormality detecting circuit
JPH0786890A (en) External edge detecting circuit for microcomputer
JPS63313222A (en) Key input device
JPH04306013A (en) Latch circuit device
KR100237298B1 (en) Interrupt signal generating control apparatus
JPH02207312A (en) Clock generating circuit
KR100214327B1 (en) Interrupt circuit
JP2776157B2 (en) Oscillation circuit
JP2722920B2 (en) Clock oscillation stop control circuit
JP4608143B2 (en) Calling information processing device
JPH08335179A (en) One-chip microcomputer
KR930005653B1 (en) Clock variable circuit
JPH03218112A (en) Register circuit
JPH0993097A (en) Noise removing circuit device
JPH0369212A (en) Programmable counter circuit
KR200300385Y1 (en) Synchronous Clock Monitor Circuit in Electronic Switching System
KR19980066705A (en) Reset Circuit with Noise Rejection
JPH0537306A (en) Flip-flop circuit
JP2001111395A (en) Warning changing point detecting circuit
JPH05291895A (en) Clock selection circuit
JPH0573360A (en) Watchdog timer
JPH0955723A (en) Clock replacing circuit
JPH0222912A (en) Flip flop circuit

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: 20001128