JPH04101147U - Edge detection circuit - Google Patents

Edge detection circuit

Info

Publication number
JPH04101147U
JPH04101147U JP224191U JP224191U JPH04101147U JP H04101147 U JPH04101147 U JP H04101147U JP 224191 U JP224191 U JP 224191U JP 224191 U JP224191 U JP 224191U JP H04101147 U JPH04101147 U JP H04101147U
Authority
JP
Japan
Prior art keywords
signal
falling
input
rising
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP224191U
Other languages
Japanese (ja)
Inventor
俊秀 永留
Original Assignee
沖電気工業株式会社
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 沖電気工業株式会社 filed Critical 沖電気工業株式会社
Priority to JP224191U priority Critical patent/JPH04101147U/en
Publication of JPH04101147U publication Critical patent/JPH04101147U/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

(57)【要約】 【目的】 動作クロックの停止するストップモード時に
於いても、通常動作時と同様に立上り及び立下りエッジ
の検出を行う。 【構成】 立下りエッジ検出用のDフリップフロップ1
と、立上りエッジ検出用のDフリップフロップ2とを設
け、入力端子3には立下り/反転立上り選択信号φ1を
入力し、入力端子4にはインバータ12で反転させた立
下り/反転立上り選択信号φ1を入力する。次に、Dフ
リップフロップ1のクロック端子5にはデータ信号φ2
を、Dフリップフロップ2のクロック端子6にはインバ
ータ回路11で反転したデータ信号を入力する。そして
Dフリップフロップ1,2の出力端子9,10の出力信
号を、エッジ検出信号φ5として出力する。
(57) [Summary] [Purpose] Even in the stop mode where the operating clock is stopped, rising and falling edges are detected in the same way as in normal operation. [Configuration] D flip-flop 1 for falling edge detection
and a D flip-flop 2 for detecting rising edges, input terminal 3 receives a falling/inverted rising selection signal φ1, and input terminal 4 receives a falling/inverted rising selection signal inverted by an inverter 12. Input φ1. Next, the data signal φ2 is applied to the clock terminal 5 of the D flip-flop 1.
A data signal inverted by an inverter circuit 11 is input to the clock terminal 6 of the D flip-flop 2. Then, the output signals of the output terminals 9 and 10 of the D flip-flops 1 and 2 are outputted as an edge detection signal φ5.

Description

【考案の詳細な説明】[Detailed explanation of the idea]

【0001】0001

【産業上の利用分野】[Industrial application field]

本考案は、動作クロックを停止させる低消費電力モード(ストップモード)を 備えたマイクロコントローラの外部割り込み機能における、エッジ(立上り/立 下り)検出回路に関するものである。 This invention has a low power consumption mode (stop mode) that stops the operating clock. Edge (rising/rising edge) in the external interrupt function of microcontrollers with This relates to the downlink) detection circuit.

【0002】0002

【従来の技術】[Conventional technology]

図3に従来のエッジ(立上り/立下り)検出回路の一構成例を示す。この図3 の回路における、立下りエッジ検出の選択時(立下り/反転立上り選択信号φ1 がH)の動作を示すタイムチャートを図5に示す。 FIG. 3 shows a configuration example of a conventional edge (rising/falling) detection circuit. This figure 3 When falling edge detection is selected in the circuit (falling/inverted rising selection signal φ1 A time chart showing the operation of H) is shown in FIG.

【0003】 Dフリップフロップ101は、クロックφ7の立下りで入力データφ2をQ出 力端109に出力する。Dフリップフロップ102も同様に、クロックφ7の立 下りで、Dフリップフロップ101のQ出力をQ出力端子110に出力する。0003 The D flip-flop 101 outputs the input data φ2 at the falling edge of the clock φ7. Output to the power end 109. Similarly, the D flip-flop 102 also receives the rise of the clock φ7. On the downstream side, the Q output of the D flip-flop 101 is outputted to the Q output terminal 110.

【0004】 立下りエッジの検出を選択したときは、立下り/反転立上り選択信号φ1がH となり、論理積回路113,114のうち論理積回路113が選択されるため、 Dフリップフロップ101のQ出力がL(反転Q出力がH),Dフリップフロッ プ102のQ出力がHのときに検出信号φ5がHとなり、立下りを検出する。0004 When falling edge detection is selected, falling/inverted rising select signal φ1 is H. Since the AND circuit 113 is selected from the AND circuits 113 and 114, The Q output of the D flip-flop 101 is L (the inverted Q output is H), and the D flip-flop When the Q output of the pulley 102 is H, the detection signal φ5 becomes H, and a falling edge is detected.

【0005】 立上りエッジの検出を選択したときは、立下り/反転立上り選択信号φ1がL となり、論理積回路104が選択されるため、Dフリップフロップ101のQ出 力がH,Dフリップフロップ102のQ出力がL(反転Q出力がH)のときに検 出信号φ5がHとなり、立上りを検出する。[0005] When rising edge detection is selected, the falling/inverted rising edge selection signal φ1 is L. Since the AND circuit 104 is selected, the Q output of the D flip-flop 101 is Detected when the input voltage is H and the Q output of the D flip-flop 102 is L (the inverted Q output is H). The output signal φ5 becomes H, and the rising edge is detected.

【0006】[0006]

【考案が解決しようとする課題】[Problem that the idea aims to solve]

しかしながら、上記構造のエッジ(立上り/立下り)検出回路では、入力デー タ信号φ2の立下り及び立上りの検出にクロックパルスφ7を必要とする。 However, in the edge (rising/falling) detection circuit with the above structure, the input data The clock pulse φ7 is required to detect the falling and rising edges of the data signal φ2.

【0007】 二つのDフリップフロップ101及び102はクロックパルスφ7の後に、パ ルス入力前の入力データと等しいQ出力を行う。そのため、クロックパルスφ7 が存在しないと、Dフリップフロップ101に入力データ信号φ2が入力されて も、それに伴ったDフリップフロップ101のQ出力が行われず、Dフリップフ ロップ102のQ出力も変化しない。[0007] Two D flip-flops 101 and 102 turn on after clock pulse φ7. A Q output equal to the input data before the pulse input is performed. Therefore, clock pulse φ7 is not present, the input data signal φ2 is input to the D flip-flop 101. Also, the Q output of the D flip-flop 101 is not performed accordingly, and the D flip-flop The Q output of drop 102 also remains unchanged.

【0008】 例えば立下りエッジの検出を選択したときには、立下り/反転立上り選択信号 φ1がL→Hと変化するがクロックパルスφ7が存在しないため、Dフリップフ ロップ101のQ出力以後が変化せず、論理積回路113,論理積回路114共 に選択されないために、立下りを検出することができない。[0008] For example, when you select falling edge detection, the falling/inverted rising select signal φ1 changes from L to H, but since there is no clock pulse φ7, the D flip-flop There is no change after the Q output of the loop 101, and both the AND circuit 113 and the AND circuit 114 Because it is not selected, the falling edge cannot be detected.

【0009】 立上りエッジの検出を選択したときも同様に、Dフリップフロップ101のQ 出力以後に変化が現われず、立上りを検出することができない。[0009] Similarly, when rising edge detection is selected, the Q of the D flip-flop 101 is No change appears after the output, and the rising edge cannot be detected.

【0010】 上記の理由から、この様な従来のエッジ(立上り/立下り)検出回路は、クロ ックパルスが停止するストップモード時には、立下り及び立上りの検出を行うこ とができない。0010 For the above reasons, such conventional edge (rising/falling) detection circuits In stop mode, where the clock pulse stops, falling and rising edges can be detected. I can't do it.

【0011】 本考案の目的は、以上述べたクロックパルスが停止するストップモード時には 、立下り及び立上りの検出ができないという問題点を除去し、ストップモード時 においても立下り及び立上りのエッジ検出ができるエッジ検出回路を提供するこ とにある。[0011] The purpose of this invention is to , eliminates the problem of not being able to detect falling and rising edges, and To provide an edge detection circuit that can detect falling and rising edges even in It's there.

【0012】0012

【課題を解決するための手段】[Means to solve the problem]

前述の、ストップモード時には立上り及び立下りの検出ができないという問題 点を解決するために、本考案は以下の手段を有する。 The above-mentioned problem of not being able to detect rising and falling edges in stop mode In order to solve this problem, the present invention has the following measures.

【0013】 まず、立下り選択信号を入力する第1の入力端子とデータ信号を入力する第1 のクロック端子と第1のリセット端子と立下り検出信号を出力する第1の出力端 子とを有する第1のDフリップフロップと、前記データ信号を入力し反転したデ ータ信号を出力する第1のインバータ回路と、立上り選択信号を入力する第2の 入力端子と前記第1のインバータ回路によって反転されたデータ信号を入力する 第2のクロック端子と第2のリセット端子と立上り検出信号を出力する第2の出 力端子とを有する第2のDフリップフロップと、前記立下り検出信号と前記立上 り検出信号の論理和を求めエッジ検出信号を出力する論理和回路とからなる。[0013] First, there is a first input terminal to which a falling selection signal is input, and a first input terminal to which a data signal is input. a clock terminal, a first reset terminal, and a first output terminal that outputs a falling detection signal. a first D flip-flop having a second D flip-flop, and a first D flip-flop having The first inverter circuit outputs the data signal, and the second inverter circuit inputs the rising edge selection signal. inputting the data signal inverted by the input terminal and the first inverter circuit; A second clock terminal, a second reset terminal, and a second output that outputs a rising edge detection signal. a second D flip-flop having a power terminal; a second D flip-flop having a power terminal; and an OR circuit that calculates the OR of edge detection signals and outputs an edge detection signal.

【0014】 あるいは、立下り及び立上り選択信号を一つの立下り/反転立上り選択信号あ るいは反転立下り/立上り選択信号とする。前記選択信号が立下り/反転立下り 選択信号の場合は前記第1のD入力端子の一方にはそのまま前記選択信号を入力 し、前記第2のD入力端子にはインバータ回路を介して接続する。そして、出力 されるエッジ検出信号に応答して前記第1と第2のリセット端子に信号を入力す る手段とからなる。[0014] Alternatively, the falling and rising selection signals can be combined into one falling/inverted rising selection signal. Alternatively, use an inverted falling/rising selection signal. The selection signal is falling/inverted falling In the case of a selection signal, input the selection signal as it is to one of the first D input terminals. However, it is connected to the second D input terminal via an inverter circuit. And the output inputting a signal to the first and second reset terminals in response to an edge detection signal generated by the It consists of means for

【0015】 また、前記選択信号が前記反転立下り/立上り選択信号であった場合は、前記 第2のD入力端子の一方にはそのまま前記選択信号を入力し、前記第1のD入力 端子には選択信号反転用のインバータ回路を介して接続する。そして、出力され るエッジ検出信号に応答して前記第1と第2のリセット端子に信号を入力する手 段とからなる。[0015] Further, if the selection signal is the inverted falling/rising selection signal, The selection signal is input as is to one of the second D input terminals, and the selection signal is input to one of the second D input terminals. It is connected to the terminal via an inverter circuit for inverting the selection signal. And the output is means for inputting a signal to the first and second reset terminals in response to an edge detection signal; It consists of steps.

【0016】[0016]

【作用】[Effect]

本考案によれば、立下りエッジの検出を選択した場合、前記立下り選択信号が Hとなり、前記第1のDフリップフロップの前記第1の入力端子に入力される。 一方前記第2のDフリップフロップの前記第2の入力端子は、立上りエッジの検 出を選択しなかったので、Lのままである。 According to the present invention, when falling edge detection is selected, the falling selection signal is H, and is input to the first input terminal of the first D flip-flop. On the other hand, the second input terminal of the second D flip-flop is connected to the rising edge detection terminal. Since I did not choose to go out, it remains at L.

【0017】 もしも前記第1及び第2のクロック端子に入力されていたデータが立下がると 、前記クロック端子での信号がH→Lとなり、前記第1のDフリップフロップは 前記立下り検出信号の出力をHとする。前記第2のDフリップフロップは、前記 立上り選択信号がLのままなのでもしもデータが立ち上がっても、前記立上り検 出信号の出力はLのままである。[0017] If the data input to the first and second clock terminals falls , the signal at the clock terminal changes from H to L, and the first D flip-flop The output of the falling detection signal is set to H. The second D flip-flop is Since the rising edge selection signal remains L, even if the data rises, the rising edge detection The output of the output signal remains at L.

【0018】 前記検出信号が前記論理和回路に入力され、論理和が求められ前記エッジ検出 信号の出力をHとする。[0018] The detection signal is input to the logical sum circuit, the logical sum is calculated, and the edge detection is performed. Let the signal output be H.

【0019】 立上りエッジの検出を選択した場合は、まず立上り選択信号がHとなり、前記 第2のDフリップフロップの前記第2の入力端子に入力される。一方前記第1の Dフリップフロップの第1の入力端子は、立下りエッジの検出を選択していなか ったので、Lのままである。[0019] When rising edge detection is selected, the rising selection signal becomes H and the above-mentioned It is input to the second input terminal of the second D flip-flop. On the other hand, the first The first input terminal of the D flip-flop indicates whether falling edge detection is selected or not. Therefore, it remains at L.

【0020】 もしも入力されているデータが立下がると、入力データ信号はL→Hとなるが 、途中に前記第1のインバータ回路が配置されているためH→Lとなる。この結 果、前記第2のDフリップフロップは、前記立上り検出信号を出力する前記出力 端子をHとし、以後前述した立下りエッジの検出を選択した場合と同様に、前記 エッジ検出信号を出力する。[0020] If the input data falls, the input data signal will change from L to H. , because the first inverter circuit is placed in the middle, the state changes from H to L. This conclusion As a result, the second D flip-flop outputs the rising edge detection signal. As with the case where the terminal is set to H and the falling edge detection described above is selected, the above-mentioned Outputs edge detection signal.

【0021】 また、立上り及び立下り選択信号を一つの立下り/反転立上り選択信号あるい は反転立下り/立上り選択信号とし、前記第1と第2の入力端子の一方にはその まま入力し他方には選択信号反転用のインバータ回路を介して接続したことによ り、前記第1と第2の入力端子には、常に逆相の信号が入力されることになる。 その結果、立下り選択信号がHのときは立上り選択信号がLに、立下り選択信号 がLのときは立上り選択信号がHになる。そして、前記エッジ検出信号に応答す る手段から出力された信号が、前記第1と第2のリセット端子に入力され、前記 エッジ検出信号をリセットしLとする。[0021] Also, the rising and falling selection signals can be combined into one falling/inverted rising selection signal or is an inverted falling/rising selection signal, and one of the first and second input terminals has that signal. By inputting the signal as it is and connecting it to the other side via an inverter circuit for inverting the selection signal. Therefore, signals of opposite phase are always input to the first and second input terminals. As a result, when the falling selection signal is H, the rising selection signal is L, and the falling selection signal is When is L, the rising selection signal becomes H. Then, in response to the edge detection signal, A signal output from the means is input to the first and second reset terminals, The edge detection signal is reset to L.

【0022】 上述の作用によって、入力データの立上り及び立下りの検出に、クロックパル スを必要としないエッジ検出回路の動作が可能となる。[0022] Due to the above action, clock pulses are used to detect the rising and falling edges of input data. This makes it possible to operate an edge detection circuit that does not require a bus.

【0023】[0023]

【実施例】【Example】

図1は本考案の第1の実施例を示す回路図であり、図2は本考案の第2の実施 例を示す回路図である。図2は、図1の立下り/反転立上り選択信号φ1を立下 り選択信号φ1a及び立上り選択信号φ1bの二本の信号に分割することにより 、立下りエッジの検出と立上りエッジの検出を個別または同時に選択可能にした 回路である。尚図1及び図2中に於いて、図3の従来のエッジ検出回路と同一の 構成要件については、同一の番号で表示する。 FIG. 1 is a circuit diagram showing a first embodiment of the present invention, and FIG. 2 is a circuit diagram showing a second embodiment of the present invention. FIG. 2 is a circuit diagram showing an example. In FIG. 2, the falling/inverted rising select signal φ1 in FIG. By dividing into two signals, the rising selection signal φ1a and the rising selection signal φ1b. , falling edge detection and rising edge detection can be selected individually or simultaneously. It is a circuit. Note that in FIGS. 1 and 2, the same circuit as the conventional edge detection circuit in FIG. The configuration requirements are displayed using the same number.

【0024】 図4は、図1の回路立下りエッジ検出を選択した時(立下り/反転立上り選択 信号φ1がH)の動作を示すタイムチャートである。[0024] Figure 4 shows the circuit in Figure 1 when falling edge detection is selected (falling/inverted rising edge selection). 3 is a time chart showing the operation when the signal φ1 is H).

【0025】 図1のエッジ(立上り/立下り)検出回路は、立下り/反転立上り選択信号φ 1を入力するD入力端子3と入力データ信号φ2を入力するクロック端子5とリ セット端子7と検出信号φ3を出力するQ出力端子9とを有するDフリップフロ ップ1と、入力データ信号φ2を入力するインバータ回路11と、立下り/反転 立上り選択信号φ1を入力し逆相で出力するインバータ回路12と、インバータ 回路12の出力を入力するD入力端子4とインバータ回路11の出力を入力する クロック端子6とリセット端子8と検出信号φ4を出力するQ出力端子10とを 有するDフリップフロップ2と、検出信号φ3,φ4を入力し検出信号φ5を出 力する論理和回路13と、検出信号φ5に応答してリセット端子7,8にリセッ ト信号φ6を入力する例えばゲート回路からなる手段14とから構成されている 。[0025] The edge (rising/falling) detection circuit in Figure 1 uses the falling/inverted rising select signal φ The D input terminal 3 that inputs 1 and the clock terminal 5 that inputs the input data signal φ2 are connected. A D flip-flop having a set terminal 7 and a Q output terminal 9 that outputs a detection signal φ3. 1, an inverter circuit 11 inputting the input data signal φ2, and a falling/inverting An inverter circuit 12 that inputs a rising selection signal φ1 and outputs it in reverse phase; D input terminal 4 inputs the output of the circuit 12 and inputs the output of the inverter circuit 11 The clock terminal 6, the reset terminal 8, and the Q output terminal 10 that outputs the detection signal φ4 are connected to each other. A D flip-flop 2 having a The OR circuit 13 that outputs the and a means 14 consisting of, for example, a gate circuit, which inputs the gate signal φ6. .

【0026】 図2のエッジ(立上り/立下り)検出回路は、インバータ回路12を持ってお らず、立下り選択信号φ1aと立上り選択信号φ1bがそれぞれ別々にD入力端 子3とD入力端子4に接続されている。そして、Q出力端子9,10の代りに、 反転Q出力端子9aと反転Q出力端子10aを非論理積回路13aに接続し、論 理和回路と同様の働きをさせるものである。[0026] The edge (rising/falling) detection circuit in FIG. 2 has an inverter circuit 12. The falling selection signal φ1a and the rising selection signal φ1b are separately connected to the D input terminal. 3 and D input terminal 4. And instead of Q output terminals 9 and 10, The inverted Q output terminal 9a and the inverted Q output terminal 10a are connected to the non-AND circuit 13a, and the logic It works in the same way as a logic and sum circuit.

【0027】 本実施例の動作について、図1及び図4を参照して説明する。[0027] The operation of this embodiment will be explained with reference to FIGS. 1 and 4.

【0028】 立下りエッジの検出を選択する時は、立下り/反転立上り選択信号φ1はHを 選択する。もしも入力データφ2が立下る(H→L)と、Dフリップフロップ1 のQ出力端子9からの検出信号φ3がHとなる。この時、Dフリップフロップ2 のD入力端子4には、インバータ回路12によって逆相となった立下り/反転立 上り選択信号φ1(反転立下り/立上り選択信号)が入力されるので、たとえ入 力データφ2の立上りがあっても、検出信号φ4はLのままである。[0028] When selecting falling edge detection, the falling/inverted rising select signal φ1 is set to H. select. If input data φ2 falls (H→L), D flip-flop 1 The detection signal φ3 from the Q output terminal 9 becomes H. At this time, D flip-flop 2 The D input terminal 4 of the Since the upstream selection signal φ1 (inverted falling/rising selection signal) is input, even if the Even if the force data φ2 rises, the detection signal φ4 remains at L level.

【0029】 以上述べたDフリップフロップ1,2の出力結果の論理和を、論理和回路13 で求めると、検出信号φ3がHとなっているので、検出信号φ5はHとなる。立 下りエッジ検出後、リセット信号入力手段14によってリセット信号φ6をHと する。その結果、Dフリップフロップ1はリセットされ、検出信号φ5をLにす る。[0029] A logical sum circuit 13 calculates the logical sum of the output results of the D flip-flops 1 and 2 described above. Since the detection signal φ3 is H, the detection signal φ5 is H. standing After the falling edge is detected, the reset signal φ6 is set to H by the reset signal input means 14. do. As a result, the D flip-flop 1 is reset and the detection signal φ5 is set to L. Ru.

【0030】 立上りエッジの検出を選択する時は、立下り/反転立上り選択信号φ1はLを 選択し、インバータ回路12を通すことにより、Dフリップフロップ2のD入力 端子4ではHとなる。もしも入力データφ2が立上る(L→H)と、インバータ 回路11によって、クロック端子6ではH→Lとなり、その結果Dフリップフロ ップ2のQ出力端子10からの検出信号φ4がHとなる。この時、Dフリップフ ロップ1はD入力端子3への入力はLとなっているので、検出信号φ3はLのま まである。[0030] When selecting rising edge detection, the falling/inverted rising edge selection signal φ1 is set to L. By selecting and passing the inverter circuit 12, the D input of the D flip-flop 2 It becomes H at terminal 4. If input data φ2 rises (L→H), the inverter Due to the circuit 11, the clock terminal 6 changes from H to L, resulting in a D flip-flop. The detection signal φ4 from the Q output terminal 10 of the top 2 becomes H. At this time, D flip Since the input to the D input terminal 3 of the loop 1 is L, the detection signal φ3 remains at L. There is even.

【0031】 以上述べたDフリップフロップ1,2の出力結果の論理和を、論理和回路13 で求めると、検出信号φ4がHとなっているので、検出信号φ5はHとなる。立 上りエッジ検出後、リセット信号入力手段14によってリセット信号φ6をHと するその結果、Dフリップフロップ2はリセットされ、検出信号φ5をLにする 。[0031] A logical sum circuit 13 calculates the logical sum of the output results of the D flip-flops 1 and 2 described above. Since the detection signal φ4 is H, the detection signal φ5 is H. standing After the rising edge is detected, the reset signal φ6 is set to H by the reset signal input means 14. As a result, the D flip-flop 2 is reset and the detection signal φ5 is set to L. .

【0032】 リセット信号入力手段14としてゲート回路を使用することができるが、本考 案に於けるリセット信号入力手段はこれに限定されるものではなく、本考案のエ ッジ検出回路を使用する装置に於いて必要とされるパルス巾のエッジ検出信号φ 5が出力された後に、リセット信号φ6を発生させる機構であればよく、数々の バリエーションが可能である。[0032] A gate circuit can be used as the reset signal input means 14, but in this case The reset signal input means in the present invention is not limited to this, but can be Edge detection signal φ with the pulse width required in devices using edge detection circuits Any mechanism that generates the reset signal φ6 after 5 is output is sufficient, and a number of mechanisms are possible. Variations are possible.

【0033】 図2の実施例の動作は、立下り/反転立上り選択信号φ1をDフリップフロッ プ1のD入力端子3への立下り選択信号φ1aと、Dフリップフロップ2のD入 力端子4への立上り選択信号φ1bの二本に分割する。この分割によって、立下 りエッジの検出と立上りエッジの検出を、個別又は同時に選択することを可能と しているが、立下り及び立上りエッジの検出動作は、図1の実施例と同一である 。[0033] The operation of the embodiment shown in FIG. 2 is as follows: The falling selection signal φ1a to the D input terminal 3 of the flip-flop 1 and the D input terminal of the D flip-flop 2 The rising selection signal φ1b to the power terminal 4 is divided into two. By this division, the falling It is possible to select rising edge detection and rising edge detection individually or simultaneously. However, the falling and rising edge detection operations are the same as in the embodiment of FIG. .

【0034】[0034]

【考案の効果】[Effect of the idea]

以上詳細に説明したように、本考案によればDフリップフロップのクロック端 子に入力データ信号を入力する構造としたため、立上り及び立下りエッジの検出 にクロックを必要とせず、従って動作クロックの停止するストップモード時にお いても通常動作時と同様に立上り及び立下りエッジの検出が可能となる。 As explained in detail above, according to the present invention, the clock end of the D flip-flop Since the input data signal is input to the child, it is possible to detect rising and falling edges. Therefore, it is useful in stop mode where the operating clock is stopped. It is possible to detect rising and falling edges in the same way as during normal operation.

【0035】 また、一つの立下り/反転立上り選択信号を二つのDフリップフロップのそれ ぞれの入力端子に一方は逆相で入力すると、立下り選択信号がHのときは立上り 選択信号がL、立下り選択信号がLのときは立上り選択信号がHとなり、一つの 信号で立下りエッジの検出と、立上りエッジの検出の選択が可能となる。[0035] Also, one falling/inverted rising selection signal is used as that of two D flip-flops. If one is input in opposite phase to each input terminal, when the falling selection signal is H, the rising When the selection signal is L and the falling selection signal is L, the rising selection signal becomes H, and one It is possible to select between falling edge detection and rising edge detection for the signal.

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

【図1】本考案の第1の実施例のエッジ(立上り/立下
り)検出回路。
FIG. 1 shows an edge (rising/falling) detection circuit according to a first embodiment of the present invention.

【図2】本考案の第2の実施例のエッジ(立上り/立下
り)検出回路。
FIG. 2 shows an edge (rising/falling) detection circuit according to a second embodiment of the present invention.

【図3】従来技術によるエッジ(立上り/立下り)検出
回路。
FIG. 3 shows an edge (rising/falling) detection circuit according to the prior art.

【図4】本考案である図1のエッジ(立上り/立下り)
検出回路の、立下りエッジ検出を選択したときの動作を
示すタイムチャート。
[Figure 4] Edges (rising/falling) of Figure 1, which is the invention
5 is a time chart showing the operation of the detection circuit when falling edge detection is selected.

【図5】図3に示す従来技術によるエッジ(立上り/立
下り)検出回路の、立下りエッジ検出を選択したときの
動作を示すタイムチャート。
FIG. 5 is a time chart showing the operation of the conventional edge (rising/falling) detection circuit shown in FIG. 3 when falling edge detection is selected.

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

1 立下りエッジ検出用Dフリップフロップ 2 立上りエッジ検出用Dフリップフロップ 11 入力データ反転用インバータ回路 12 立下り/反転立上り選択信号反転用インバータ
回路 13 論理和回路 14 リセット信号発生手段
1 D flip-flop for falling edge detection 2 D flip-flop for rising edge detection 11 Inverter circuit for inverting input data 12 Inverter circuit for inverting falling/inverted rising selection signal 13 OR circuit 14 Reset signal generation means

Claims (3)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 (a)立下り選択信号を入力する第1の
入力端子と入力データ信号を入力する第1のクロック端
子と第1のリセット端子と第1の検出信号を出力する第
1の出力端子とを有する第1のDフリップフロップと、
(b)前記入力データ信号を入力する第1のインバータ
回路と、(c)立上り選択信号を入力する第2の入力端
子と前記第1のインバータの出力信号を入力する第2の
クロック端子と第2のリセット端子と第2の検出信号を
出力する第2の出力端子とを有する第2のDフリップフ
ロップと、(d)前記第1及び第2の検出信号の論理和
をとり第3の検出信号を出力する論理和回路とからなる
ことを特徴とする前記入力データ信号の立上り及び立下
りを検知するエッジ検出回路。
Claim 1: (a) A first input terminal for inputting a falling selection signal, a first clock terminal for inputting an input data signal, a first reset terminal, and a first output terminal for outputting a first detection signal. a first D flip-flop having an output terminal;
(b) a first inverter circuit to which the input data signal is input; (c) a second input terminal to which the rising edge selection signal is input; a second clock terminal to which the output signal of the first inverter is input; a second D flip-flop having a second reset terminal and a second output terminal that outputs a second detection signal; An edge detection circuit for detecting rising and falling edges of the input data signal, comprising an OR circuit that outputs a signal.
【請求項2】 (a)立下り/反転立上り選択信号を入
力する第1の入力端子と入力データ信号を入力する第1
のクロック端子と第1のリセット端子と第1の検出信号
を出力する第1の出力端子とを有する第1のDフリップ
フロップと、(b)前記入力データ信号を入力する第1
のインバータ回路と、(c)前記立下り/反転立上り選
択信号を入力し反転立下り/立上り信号として出力する
第2のインバータ回路と、(d)前記反転立下り/立上
り選択信号を入力する第2の入力端子と前記第1のイン
バータの出力信号を入力する第2のクロック端子と第2
のリセット端子と第2の検出信号を出力する第2の出力
端子とを有する第2のDフリップフロップと、(e)前
記第1及び第2の検出信号の論理和をとり第3の検出信
号を出力する論理和回路と、(f)前記第3の検出信号
に応答して前記第1及び第2のリセット端子にリセット
信号を入力する手段とからなることを特徴とする前記入
力データ信号の立上り及び立下りを検知するエッジ検出
回路。
(a) A first input terminal to which a falling/inverted rising selection signal is input, and a first input terminal to which an input data signal is input.
(b) a first D flip-flop having a clock terminal, a first reset terminal, and a first output terminal that outputs a first detection signal; (b) a first D flip-flop that receives the input data signal;
(c) a second inverter circuit that receives the falling/inverted rising selection signal and outputs it as an inverted falling/rising signal; (d) a second inverter circuit that receives the inverted falling/rising selection signal; a second clock terminal into which the output signal of the first inverter is input;
a second D flip-flop having a reset terminal and a second output terminal that outputs a second detection signal; and (f) means for inputting a reset signal to the first and second reset terminals in response to the third detection signal. Edge detection circuit that detects rising and falling edges.
【請求項3】 (a)反転立下り/立上り選択信号を入
力し立下り/反転立上り選択信号を出力する第1のイン
バータ回路と、(b)前記立下り/反転立上り選択信号
を入力する第1の入力端子と入力データ信号を入力する
第1のクロック端子と第1のリセット端子と第1の検出
信号を出力する第1の出力端子とを有する第1のDフリ
ップフロップと、(c)前記入力データ信号を入力する
第2のインバータ回路と、(d)前記反転立下り/立上
り選択信号を入力する第2の入力端子と前記第1のイン
バータの出力信号を入力する第2のクロック端子と第2
のリセット端子と第2の検出信号を出力する第2の出力
端子とを有する第2のDフリップフロップと、(e)前
記第1及び第2の検出信号の論理和をとり第3の検出信
号を出力する論理和回路と、(f)前記第3の検出信号
に応答して前記第1及び第2のリセット端子にリセット
信号を入力する手段とからなることを特徴とする前記入
力データ信号の立上り及び立下りを検知するエッジ検出
回路。
3. (a) a first inverter circuit that inputs an inverted falling/rising selection signal and outputs a falling/inverted rising selection signal; (b) a first inverter circuit that inputs the falling/inverted rising selection signal; (c) a first D flip-flop having one input terminal, a first clock terminal inputting an input data signal, a first reset terminal, and a first output terminal outputting a first detection signal; a second inverter circuit to which the input data signal is input; (d) a second input terminal to which the inverted falling/rising selection signal is input; and a second clock terminal to which the output signal of the first inverter is input. and second
(e) a second D flip-flop having a reset terminal and a second output terminal that outputs a second detection signal; and (f) means for inputting a reset signal to the first and second reset terminals in response to the third detection signal. Edge detection circuit that detects rising and falling edges.
JP224191U 1991-01-28 1991-01-28 Edge detection circuit Pending JPH04101147U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP224191U JPH04101147U (en) 1991-01-28 1991-01-28 Edge detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP224191U JPH04101147U (en) 1991-01-28 1991-01-28 Edge detection circuit

Publications (1)

Publication Number Publication Date
JPH04101147U true JPH04101147U (en) 1992-09-01

Family

ID=31730218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP224191U Pending JPH04101147U (en) 1991-01-28 1991-01-28 Edge detection circuit

Country Status (1)

Country Link
JP (1) JPH04101147U (en)

Similar Documents

Publication Publication Date Title
JPH01259480A (en) Clock signal switching device for ic card
JPH04101147U (en) Edge detection circuit
JPH06350415A (en) Module clock signal genarating circuit and electronics system
JP2632512B2 (en) Semiconductor integrated circuit
JP2682520B2 (en) Edge detection circuit
JP2969732B2 (en) Semiconductor integrated circuit
JP2984429B2 (en) Semiconductor integrated circuit
JPH0646143Y2 (en) Integrated circuit
JP2693798B2 (en) Control signal generation circuit
KR930010940B1 (en) Input sensing circuit
JPH0429248B2 (en)
JPS59128822A (en) Semiconductor circuit
JPH04148385A (en) Microcomputer cell
JPH06120812A (en) Semiconductor integrated circuit
JPH0843501A (en) Mode setting circuit
JPH05227007A (en) Interface circuit
JPS6082276U (en) Phase sequence detection device
JPH02130015A (en) Semiconductor integrated circuit
JPS639768B2 (en)
KR970066799A (en) Reset signal filtering circuit
JPH04135309A (en) Monostable multivibrator circuit
JPH0198320A (en) Counter circuit
JPH05235427A (en) Interface circuit
JPH0537306A (en) Flip-flop circuit
JPS62172273A (en) Test signal generating circuit