JP3243801B2 - Digital input circuit - Google Patents

Digital input circuit

Info

Publication number
JP3243801B2
JP3243801B2 JP17235391A JP17235391A JP3243801B2 JP 3243801 B2 JP3243801 B2 JP 3243801B2 JP 17235391 A JP17235391 A JP 17235391A JP 17235391 A JP17235391 A JP 17235391A JP 3243801 B2 JP3243801 B2 JP 3243801B2
Authority
JP
Japan
Prior art keywords
clock
circuit
output
speed
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP17235391A
Other languages
Japanese (ja)
Other versions
JPH0522088A (en
Inventor
日出男 浅川
肇 高桑
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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP17235391A priority Critical patent/JP3243801B2/en
Publication of JPH0522088A publication Critical patent/JPH0522088A/en
Application granted granted Critical
Publication of JP3243801B2 publication Critical patent/JP3243801B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、デジタル入力回路に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital input circuit.

【0002】[0002]

【従来の技術】図3は従来例のデジタル入力回路を示
し、図4は図3のデジタル入力回路の動作説明に供する
タイミングチャートであり、符号2は入力信号Aの入力
端子、4は出力信号OUTの出力端子、6はシフトレジ
スタ、7はANDゲート、8はノイズ除去回路、10は
クロック制御回路である。
2. Description of the Related Art FIG. 3 shows a conventional digital input circuit, and FIG. 4 is a timing chart for explaining the operation of the digital input circuit shown in FIG. OUT of the output terminal, 6 is a shift register, 7 aND gates, 8 noise elimination circuit, 10 a clock control circuits.

【0003】シフトレジスタ6は、Dタイプのフリップ
フロップ6a〜6dの4段構成で直列入力並列出力形に
縦続接続されて構成されているとともに、各フリップフ
ロップ6a〜6cそれぞれのQ端子と、フリップフロッ
プ6dのQ´端子とは、それぞれ、ANDゲートの各
入力部に接続されて構成されている。ノイズ除去回路8
は、ANDゲート8a,8b、およびインバータ8cで
構成されており、ANDゲート8aの各入力部には、フ
リップフロップ6bのQ端子と、フリップフロップ6c
のQ´端子とが、それぞれ、接続されており、ANDゲ
ート8bの各入力部には、ANDゲート8aの出力部
と、インバータ8cの出力部とが、それぞれ、接続さ
れ、インバータ8cの入力部は入力信号Aの入力端子2
に接続されている。
The shift register 6 has a four-stage configuration of D-type flip-flops 6a to 6d, which are cascade-connected in a serial input / parallel output type. The shift register 6 has a Q terminal for each of the flip-flops 6a to 6c and a flip-flop. The Q ′ terminal of the gate 6 d is connected to each input of the AND gate 7 . Noise removal circuit 8
Is composed of AND gates 8a and 8b and an inverter 8c. Each input of the AND gate 8a has a Q terminal of a flip-flop 6b and a flip-flop 6c.
Are connected to the input terminal of the AND gate 8b. The input terminal of the inverter 8c is connected to the output terminal of the AND gate 8a and the output terminal of the inverter 8c. Is the input terminal 2 for the input signal A
It is connected to the.

【0004】このようなデジタル入力回路にあっては、
フリップフロップ6a〜6dそれぞれのクロック端子C
Kに図4に示されるような周期のクロックCKが与えら
れている。そして、フリップフロップ6aの入力端子D
に時刻t0に例えばクロックCKの周期の4倍以上の信
号長さを有する正常な入力信号Aが入力されると、互い
に縦続接続された各フリップフロップ6a〜6cそれぞ
れのQ端子およびフリップフロップ6dのQ′端子から
クロックCKの時刻t1,t2,t3,t4での立ち上
がり入力に応答してハイレベルに立ち上がる出力FF1
〜FF3とローレベルに立ち下がる出力FF4を出力す
る。
In such a digital input circuit,
Clock terminal C of each of flip-flops 6a to 6d
A clock CK having a period as shown in FIG. Then, the input terminal D of the flip-flop 6a
At time t0, when a normal input signal A having a signal length of, for example, four times or more the period of the clock CK is input, the Q terminal of each of the flip-flops 6a to 6c connected in cascade and the flip-flop 6d An output FF1 that rises to a high level in response to a rising input from the Q 'terminal at times t1, t2, t3, and t4 of the clock CK.
FF3 and an output FF4 falling to a low level.

【0005】そして、ANDゲート8aは、時刻t2〜
t3でフリップフロップ6bのQ端子からのハイレベル
出力FF2と、フリップフロップ6dのQ′端子からの
ハイレベル出力(該時刻t2〜t3ではQ端子出力FF
3がローレベルであって、それの反転であるためハイレ
ベルとなる。)との論理積G1を出力する。この時刻t
2〜t3では、入力端子2に正常なハイレベルの入力信
号Aが入力されているから、それの反転出力であるイン
バータ8c出力はローレベルとなっている。
[0005] The AND gate 8a operates at time t2-
At t3, the high-level output FF2 from the Q terminal of the flip-flop 6b and the high-level output from the Q 'terminal of the flip-flop 6d (the Q terminal output FF at the time t2 to t3).
3 is at a low level and is at a high level because it is the inverse of the low level. ) Is output. This time t
From 2 to t3, since the normal high-level input signal A is input to the input terminal 2, the output of the inverter 8c, which is the inverted output thereof, is at the low level.

【0006】したがって、この時刻t2〜t3における
インバータ8cとANDゲート8aとの論理積G2であ
るANDゲート8b出力はローレベルのままとなって、
該ANDゲート8bの論理積G2では各フリップフロッ
プ6a〜6dはリセットされないから、時刻t3では、
フリップフロップ6a〜6cの各Q端子出力FF1〜F
F3は、ハイレベルであり、また、フリップフロップ6
dのQ′端子出力FF4もハイレベルとなっているか
ら、ANDゲート7からは時刻t3〜t4では正常な入
力信号Aのカウントのためのハイレベルの出力信号OU
Tがカウント出力として出力端子4から出力される。以
上のようにして正常な入力信号Aが入力端子2から入力
された場合には、時刻t3〜t4でそれのカウント出力
OUTが出力されることになる。
Therefore, the output of the AND gate 8b, which is the logical product G2 of the inverter 8c and the AND gate 8a at the time t2 to t3, remains low.
Since the flip-flops 6a to 6d are not reset by the logical product G2 of the AND gate 8b, at time t3,
Q terminal outputs FF1-F of flip-flops 6a-6c
F3 is at a high level and the flip-flop 6
Since the Q 'terminal output FF4 of d is also at the high level, the AND gate 7 outputs the high-level output signal OU for counting the normal input signal A from time t3 to t4.
T is output from the output terminal 4 as a count output. When the normal input signal A is input from the input terminal 2 as described above, the count output OUT is output from time t3 to t4.

【0007】これに対して、時刻t5以降に示すように
クロックCKの周期に同期した複数の同期ノイズが入力
端子2に対して入力信号Aとして連続して入力されるこ
とがある。このような同期ノイズをカウント出力OUT
としたのでは誤カウントとなるから、この誤カウントを
防止するために、時刻t5でフリップフロップ6aのD
入力端子に同期ノイズが入力されると、時刻t6
7,t8のそれぞれでのクロックCKの立ち上がりで各
フリップフロップ6a〜6cはそれぞれのQ端子からハ
イレベルに立ち上がる出力FF1〜FF3を、時刻t9
でクロックCKの立ち上がりでフリップフロップ6dか
らローレベルに立ち下がる出力FF4を出力し、この時
刻t7〜t8においては、フリップフロップ6bのQ端
子出力FF2と、フリップフロップ6cのQ´端子出力
とがいずれもハイレベルであるから、ANDゲート8a
からは、ハイレベルの論理積出力G1を出力する。そし
て、この時刻t7〜t8においては、入力信号Aはロー
レベルであるから、インバータ8c出力はハイレベルで
ある。したがって、ANDゲート8aからのハイレベル
論理積出力G1とインバータ8cのハイレベル出力とか
ら、ANDゲート8bの論理積出力G2はハイレベルと
なって、各フリップフロップ6a〜6dはリセットされ
ることになる結果、この時刻t7〜t8においてはAN
Dゲートからはカウント出力OUTは出力されず、同
期ノイズのような誤カウントを招く入力信号Aのカウン
トはされない。
On the other hand, a plurality of synchronous noises synchronized with the cycle of the clock CK may be continuously input to the input terminal 2 as the input signal A as shown after time t5. Such synchronization noise is counted out OUT
In this case, an erroneous count is generated. To prevent this erroneous count, the D of the flip-flop 6a is set at time t5.
When the synchronous noise is input to the input terminal, time t6 , t6
7 and t8, the flip-flops 6a to 6c output the output FF1 to FF3 rising from the respective Q terminal to the high level at the rising edge of the clock CK at time t9.
At the rising edge of the clock CK, the flip-flop 6d outputs an output FF4 that falls to a low level. During the time t7 to t8, the Q terminal output FF2 of the flip-flop 6b and the Q ′ terminal output of the flip-flop 6c are output. Is also at a high level, so that the AND gate 8a
Outputs a high-level AND output G1. Then, from time t7 to time t8, since the input signal A is at the low level, the output of the inverter 8c is at the high level. Therefore, the AND output G2 of the AND gate 8b becomes high level from the high-level AND output G1 from the AND gate 8a and the high-level output of the inverter 8c, and the flip-flops 6a to 6d are reset. As a result, during this time t7 to t8, AN
The count output OUT is not output from the D gate 7, and the input signal A that causes erroneous counting such as synchronization noise is not counted.

【0008】つぎに、クロック制御回路10について説
明すると、該クロック制御回路10は、基準クロック発
生回路10a、分周器10b、10c、クロック設定ス
イッチ10d、およびクロック選択回路10eで構成さ
れている。基準クロック発生回路10aは、基準のクロ
ックを発生するものであり、分周器10bは、基準クロ
ック発生回路10aからの基準クロックを分周するもの
であり、分周器10cは、分周器10bで分周された分
周クロックをさらに分周するものである。したがって、
分周器10b出力は、基準クロックよりは周期の長い、
つまり高速のクロックであり、分周器10c出力はその
クロックよりもさらに周期の長い低速クロックであ
る。
Next, the clock control circuit 10 will be described. The clock control circuit 10 comprises a reference clock generation circuit 10a, frequency dividers 10b and 10c, a clock setting switch 10d, and a clock selection circuit 10e. The reference clock generation circuit 10a generates a reference clock, the frequency divider 10b divides the frequency of the reference clock from the reference clock generation circuit 10a, and the frequency divider 10c outputs the frequency of the frequency divider 10b. Is to further divide the frequency-divided clock. Therefore,
The output of the frequency divider 10b has a longer period than the reference clock.
That is, the clock is a high-speed clock, and the output of the frequency divider 10c is a low-speed clock having a longer cycle than the clock.

【0009】クロック設定スイッチ10dは、各フリッ
プフロップ6a〜6dに対するクロックCKの周期を設
定するためのスイッチであり、クロック選択回路10e
は、該クロック設定スイッチ10dで設定された周期に
対応して分周器10bからの高速クロックまたは分周器
10cからの低速クロックの一方を選択して各フリップ
フロップ6a〜6dにシフト動作用クロックCKとして
出力するものである。
The clock setting switch 10d is a switch for setting the period of the clock CK for each of the flip-flops 6a to 6d, and is a clock selection circuit 10e.
Selects one of the high-speed clock from the frequency divider 10b and the low-speed clock from the frequency divider 10c in accordance with the cycle set by the clock setting switch 10d, and supplies a shift operation clock to each of the flip-flops 6a to 6d. It is output as CK.

【0010】このようなクロック制御回路10において
は、入力信号Aの信号幅内に、クロックCKを少なくと
も4個は存在させる必要がある。したがって、入力信号
Aの信号幅が短い場合では分周器10b出力側の高速の
クロックCKを、また入力信号の信号幅が長い場合では
分周器10c出力側の低速のクロックCKをそれぞれ、
選択する必要があり、そのために、操作者によってクロ
ック設定スイッチ10dを操作して、そのクロックCK
を選択できるようにしていた。
In such a clock control circuit 10, it is necessary that at least four clocks CK exist within the signal width of the input signal A. Therefore, when the signal width of the input signal A is short, the high-speed clock CK on the output side of the frequency divider 10b is used. When the signal width of the input signal is long, the low-speed clock CK on the output side of the frequency divider 10c is used.
It is necessary to select the clock CK by operating the clock setting switch 10d by the operator.
Had to be selectable.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、このよ
うにクロックCKを選択するためにクロック設定スイッ
チ10dを操作していたのでは、誤操作もありえるか
ら、所望の入力信号に対するカウントができなかった
り、あるいは同期ノイズの除去ができなかったりする。
However, if the clock setting switch 10d is operated to select the clock CK as described above, an erroneous operation may occur, so that a count for a desired input signal cannot be performed, or Synchronization noise cannot be removed.

【0012】したがって、本発明においては、入力信号
の信号幅から自動的にそれに対応した適切なクロックが
選択されるようにすることを目的している。
Accordingly, an object of the present invention is to automatically select an appropriate clock corresponding to the input signal width from the signal width.

【0013】[0013]

【課題を解決するための手段】このような目的を達成す
るために、本発明のデジタル入力回路においては、シフ
トレジスタ(6)と、クロック制御回路(10´)とを
有しており、前記シフトレジスタ(6)は、複数のフリ
ップフロップ(6a〜6d)を縦続接続してなり、各フ
リップフロップ(6a〜6d)へのシフト動作用クロッ
クに応答して入力信号を初段側のフリップフロップから
後段側のフリップフロップへ順次にシフトしていくもの
であり、前記クロック制御回路(10´)は、基準クロ
ック発生回路(10a)と、該基準クロック発生回路か
らのクロック信号を分周して高速クロックを出力する高
速クロック発生用分周器(10b)と、該高速クロック
を分周して低速クロックを出力する低速クロック発生用
分周器(10c)と、該低速クロックを分周してリセッ
ト用クロックを出力するリセットクロック発生用分周器
(10j)と、該 リセットクロック発生用分周器(10
j)から出力されたリセット用クロックを遅延処理する
遅延回路(10m)と、カウント回路(10h)と、ラ
ッチ回路(10i)と、クロック選択回路(10e)と
を有しており、 前記カウント回路(10h)は、前記入
力信号の信号数をカウントするとともに、所定周期で
記遅延回路(10m)から入力される前記リセット用ク
ロックでカウントがリセットされるものであって、か
つ、該所定周期内に、所定のカウント値になったとき
は、高速クロックを選択する高速クロック選択信号を、
所定のカウント値にならないときは、低速クロックを選
択する低速クロック選択信号を、それぞれ、出力するも
のであり、前記ラッチ回路(10i)は、前記カウント
回路(10h)から出力されたクロック選択信号をラッ
チし、前記リセットクロック発生用分周器(10j)か
らの前記リセット用クロックが入力されるまでそのラッ
チ状態を保持するものであり、 前記クロック選択回路
(10e)は、前記ラッチ回路(10i)から高速クロ
ック選択信号が与えられたときは前記高速クロック発生
用分周器(10b)から出力された高速クロックを、ま
た、低速クロック選択信号が与えられたときは前記低速
クロック発生用分周器(10c)から出力された低速ク
ロックを、それぞれ、選択して前記各フリップフロップ
(6a〜6d)に出力するものであることを特徴として
いる。
To achieve the above object, a digital input circuit according to the present invention includes a shift register (6) and a clock control circuit (10 '). The shift register (6) is formed by cascade-connecting a plurality of flip-flops (6a to 6d). In response to a shift operation clock to each of the flip-flops (6a to 6d), an input signal is transmitted from the first-stage flip-flop. The clock control circuit (10 ') sequentially shifts to a subsequent flip-flop.
Clock generation circuit (10a) and the reference clock generation circuit
To divide these clock signals and output a high-speed clock.
A high-speed clock generating frequency divider (10b);
For low-speed clock generation by dividing the frequency and outputting a low-speed clock
A frequency divider (10c) for dividing the low-speed clock and resetting
Clock divider for outputting reset clock
(10j) and the frequency divider (10
delay processing of the reset clock output from j)
A delay circuit (10 m), a count circuit (10 h),
Switch circuit (10i), clock selection circuit (10e)
The has, the counting circuit (10h) is adapted to count the number of signals of the input signal, before a predetermined period
The reset clock input from the delay circuit (10m) .
When the count is reset by the lock and the count value reaches a predetermined value within the predetermined period, a high-speed clock selection signal for selecting a high- speed clock is output.
When the count value does not reach the predetermined count value, the latch circuit (10i) outputs a low-speed clock selection signal for selecting a low-speed clock.
The clock selection signal output from the circuit (10h) is latched.
And the reset clock generating frequency divider (10j)
Until the reset clock is input.
It is intended to hold the switch state, the clock selecting circuit (10e), the high-speed clock generated when the high-speed clock selection signal from the latch circuit (10i) is given
Use dividers speed clock output from (10b), also the low-speed when the low-speed clock selection signal is given
The low-speed clock output from the clock generating frequency divider (10c) is selected and output to each of the flip-flops (6a to 6d).

【0014】[0014]

【作用】本発明において、カウント回路(10h)は、
入力信号をカウントしていって、リセット用クロック発
生用分周器(10c)、遅延回路(10m)を介して入
力されるリセット用クロックの周期内に所定のカウント
値になったときは、高速クロック選択信号を、所定のカ
ウント値にならないときは、低速クロック選択信号を、
それぞれ、ラッチ回路(10i)に出力し、ラッチ回路
(10i)は、そのクロック選択信号をラッチし、リセ
ットクロック発生用分周器(10j)からの前記リセッ
ト用クロックが入力されるまでそのラッチ状態を保持す
。クロック選択回路(10e)は、ラッチ回路(10
i)から高速クロック選択信号が与えられたときは高速
クロックを、また、ラッチ回路(10i)から低速クロ
ック選択信号が与えられたときは高速クロックよりも低
速となる低速クロックを、それぞれ、選択してシフトレ
ジスタ(6)に出力し、シフトレジスタ(6)はクロッ
ク制御回路(10´)からの高速または低速のクロック
に応答して入力信号をシフトしていく。また、低速クロ
ックを利用してカウント回路(10h)のリセット用ク
ロックを生成しているので、回路構成が簡易にできる。
In the present invention, the count circuit (10h)
Counts input signals and generates reset clock
Input via raw frequency divider (10c) and delay circuit (10m)
When the predetermined count value is reached within the period of the reset clock to be input , the high-speed clock selection signal is output . When the count value does not reach the predetermined count value, the low-speed clock selection signal is output .
Output to the latch circuit (10i), respectively.
(10i) latches the clock selection signal and resets it.
Reset from the frequency divider (10j) for generating a reset clock.
Hold the latched state until the clock for
You . The clock selection circuit (10e) includes a latch circuit (10e).
The high-speed clock is selected when the high-speed clock selection signal is supplied from i), and the low-speed clock that is slower than the high-speed clock when the low-speed clock selection signal is supplied from the latch circuit (10i). The shift register (6) shifts the input signal in response to a high-speed or low-speed clock from the clock control circuit (10 '). In addition, low speed
Reset clock of the count circuit (10h)
Since the lock is generated, the circuit configuration can be simplified.

【0015】[0015]

【実施例】以下、本発明を図面を参照して詳細に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings.

【0016】図1は、本発明の実施例に係るクロック制
御回路を具備したデジタル入力回路の回路図であり、図
3と対応する部分には同一の符号を付すとともに、同一
の符号に係る部分についてのここでの詳しい説明は省略
する。
FIG. 1 is a circuit diagram of a digital input circuit provided with a clock control circuit according to an embodiment of the present invention. Parts corresponding to those in FIG. Here, the detailed description of is omitted.

【0017】本実施例のクロック制御回路10′は、従
来の基準クロック発生回路10a、分周器10b、10
c、およびクロック選択回路10eを具備している点で
は、従来例と同様であるが、クロック設定スイッチ10
dを省略する代わりに、ANDゲート10f、インバー
タ10g、カウント回路10h、ラッチ回路10i、第
3の分周器10j、微分回路10k、および遅延回路1
0mを具備している。
The clock control circuit 10 'of this embodiment comprises a conventional reference clock generation circuit 10a, a frequency divider 10b,
c and a clock selection circuit 10e, which is the same as the conventional example.
Instead of omitting d, an AND gate 10f, an inverter 10g, a count circuit 10h, a latch circuit 10i, a third frequency divider 10j, a differentiating circuit 10k, and a delay circuit 1
0 m.

【0018】このような構成のクロック制御回路10´
の動作を図2のタイミングチャートを参照して説明する
と、入力端子2には、入力信号Aが入力されている。こ
の場合、入力信号Aは、期間Xでは信号幅が短く高周波
のものであり、期間Yでは信号幅が長く低周波のもので
ある。高速クロック発生用分周器としての分周器10b
からは、基準クロック発生回路10aの基準クロックB
を分周した高速クロックCが、低速クロック発生用分周
器としての分周器10cからは、高速クロックCを分周
した低速クロックDが、それぞれ出力され、両クロック
C,Dはそれぞれクロック選択回路10eに与えられる
とともに、低速クロックDがリセットクロック発生用分
周器としての分周器10jに与えられる。この分周器1
0jからは、低速クロックDをさらに分周した図示して
いないリセット用クロックとしてクロックEが出力され
る。微分回路10kからは、クロックEを微分したリセ
ット用クロックとして微分クロックFが出力され、該微
分クロックFは、遅延回路10mとラッチ回路10iと
にそれぞれ与えられる。微分クロックFは遅延回路10
mで遅延されて、カウント回路10hに、リセット用の
遅延クロックGとして与えられる。カウント回路10h
は、遅延クロックGの周期の間、入力信号Aの信号数を
カウントしていくのであるが、この遅延クロックGの周
期内に所定のカウント値例えばカウントアップしたとき
は、最上位ビットに桁上がりしてハイレベルのキャリー
信号Hを出力する。キャリー信号Hはインバータ10f
で反転してローレベルとなり、ANDゲート10fに入
力信号Aが入ってもカウント回路10hにそれが入らな
いようにする。一方、カウント回路10hからのキャリ
ー信号Hは、ラッチ回路10iにおいて微分クロックF
の立ち上がりで、クロック選択信号Iとしてラッチさ
れ、次の微分クロックFが立ち上がるまでそのクロック
選択信号Iのラッチ状態が保持される。カウント回路1
0hは、遅延クロックGでリセットされてゼロからカウ
ントを繰り返す。
The clock control circuit 10 'having such a configuration.
2 will be described with reference to the timing chart of FIG. 2. The input signal A is input to the input terminal 2. In this case, the input signal A has a short signal width and a high frequency in the period X, and has a long signal width and a low frequency in the period Y. Frequency divider 10b as frequency divider for high-speed clock generation
From the reference clock B of the reference clock generation circuit 10a.
The high-speed clock C obtained by dividing the frequency
A low-speed clock D obtained by dividing the high-speed clock C is output from a frequency divider 10c as a divider, and both clocks C and D are respectively supplied to a clock selection circuit 10e, and the low-speed clock D is used for generating a reset clock. Minute
It is provided to a frequency divider 10j as a frequency divider. This divider 1
The clock E is output from 0j as a reset clock ( not shown) obtained by further dividing the low-speed clock D. From the differentiating circuit 10k, a reset
A differential clock F is output as a reset clock, and the differential clock F is supplied to the delay circuit 10m and the latch circuit 10i. The differential clock F is a delay circuit 10
After being delayed by m, it is supplied to the count circuit 10h as a reset delay clock G. Counting circuit 10h
Counts the number of the input signals A during the cycle of the delay clock G. When a predetermined count value, for example, counts up within the cycle of the delay clock G, the carry is increased to the most significant bit. Then, a high-level carry signal H is output. Carry signal H is output from inverter 10f
To make it low level, so that even if the input signal A enters the AND gate 10f, it does not enter the count circuit 10h. On the other hand, carry signal H from count circuit 10h is supplied to differential clock F in latch circuit 10i.
At the rising edge of the clock selection signal I, the latched state of the clock selection signal I is held until the next differential clock F rises. Counting circuit 1
0h is reset by the delay clock G and repeats counting from zero.

【0019】クロック選択回路10eは、ラッチ回路1
でのクロック選択信号Iのラッチの有無により高速
クロックC,または低速クロックDの一方を選択し、選
択した高速または低速のクロックC,Dを、シフトレジ
スタ6のシフト動作用クロックCKとして出力する。こ
の例では、カウント回路10hからのキャリー信号Hが
出力されたときは高速クロックCをシフト動作用クロッ
クCKとして選択し、キャリー信号Hが出力されなかっ
たときは低速クロックDをシフト動作用クロックCKと
して選択する。
The clock selection circuit 10e includes a latch circuit 1
0 i in the clock selection signal speed clock by the presence or absence of the latch of the I C or one selects the low-speed clock D, the output fast or slow clock C was selected, the D, as a shift operation clock CK of the shift register 6, I do. In this example, when carry signal H is output from count circuit 10h, high-speed clock C is selected as shift operation clock CK, and when carry signal H is not output, low-speed clock D is used as shift operation clock CK. Select as

【0020】ここで、クロックEの周期は、シフト動作
用クロックCKが低速クロックDのとき決まる有効信号
の周期と、カウント回路10hがビット数nのときにキ
ャリー信号Hを出力する値2のn乗−1との積で求まる
値にしておく。例えば高速クロックCのとき決まる有効
信号の周期を30msとし、カウント回路10hが3ビ
ットとすると、クロックEの周期は30×22=120
msにすればよい。したがって、周期が30ms以下の
短い入力信号A(期間X内)が入ると、カウント回路1
0hのカウント値が22以上となり、キャリー信号Hが
出力されて高速クロックCがシフト動作用クロックCK
として選択され、周期が30msを越えた長い入力信号
A(期間Y内)が入ると、カウント回路10hのカウン
ト値が22以下となってキャリー信号Hが出力されず低
速クロックDがシフト動作用クロックCKとして選択さ
れる。
Here, the cycle of the clock E is the cycle of the valid signal determined when the shift operation clock CK is the low-speed clock D, and the cycle of n of the value 2 for outputting the carry signal H when the count circuit 10h has n bits. The value is determined by the product of the power of -1. For example, if the period of the valid signal determined at the time of the high-speed clock C is 30 ms, and the count circuit 10h has 3 bits, the period of the clock E is 30 × 2 2 = 120.
ms. Therefore, when a short input signal A (within the period X) having a cycle of 30 ms or less is input, the counting circuit 1
The count value of 0h becomes 2 2 or more, a carry signal H is outputted fast clock C is a clock CK for the shift operation
Is selected as, when the period is long input signal A (the period Y) beyond the 30ms enters, the count value of the count circuit 10h is 2 2 follows it and carry signal H is low-speed clock D shift operation is not output Selected as clock CK.

【0021】このように構成することにより、入力信号
Aの信号幅が変わると、自動的に有効な信号幅が変わる
ため、適正なノイズ除去常に行なうことができる。
With this configuration, when the signal width of the input signal A changes, the effective signal width automatically changes, so that proper noise removal can always be performed.

【0022】なお、この実施例では2種類のクロックの
切り替えで説明したが、カウント回路10hの出力数と
分周器の数とを増加することで、3種類以上のクロック
の切り替えができるようにしてもよい。この実施例では
ハードウエア的な回路構成で説明したが、マイクロコン
ピュータを用いたソフトウエア的な回路構成で構成する
こともできる。
Although this embodiment has been described with reference to switching between two types of clocks, it is possible to switch between three or more types of clocks by increasing the number of outputs of the count circuit 10h and the number of frequency dividers. You may. In this embodiment, a description has been given of a hardware circuit configuration. However, a software circuit configuration using a microcomputer may be used.

【0023】[0023]

【発明の効果】以上説明したことから明らかなように、
本発明によれば、カウント回路は、入力信号をカウント
していって、リセット用クロック発生用分周器、遅延回
路を介して入力されるリセット用クロックの周期内に所
定のカウント値になったときは、高速クロック選択信号
を、所定のカウント値にならないときは、低速クロック
選択信号を、それぞれ、ラッチ回路に出力する。ラッチ
回路は、そのクロック選択信号をラッチし、リセットク
ロック発生用分周器からのリセット用クロックが入力さ
れるまでそのラッチ状態を保持する。クロック選択回路
は、ラッチ回路から高速クロック選択信号が与えられた
ときは高速クロックを、また、ラッチ回路から低速クロ
ック選択信号が与えられたときは高速クロックよりも低
速となる低速クロックを、それぞれ、選択して出力する
ようにしたから、入力信号の信号幅から自動的にそれに
対応した適切なクロックが選択され、シフトレジスタ
は、クロック制御回路からの高速または低速のクロック
に応じたシフト速度で入力信号をシフトしていくことが
できる。
As is apparent from the above description,
According to the present invention, the count circuit counts an input signal, and generates a reset clock generating frequency divider, a delay
When the predetermined count value is reached within the period of the reset clock input through the path , the high-speed clock selection signal is sent to the latch circuit. When the predetermined count value is not reached, the low-speed clock selection signal is sent to the latch circuit. Output. latch
The circuit latches its clock select signal and resets it.
The reset clock from the lock generation frequency divider is input.
Hold the latched state until the The clock selection circuit, a high-speed clock when given a high-speed clock selection signal from the latch circuit, also a low-speed clock to be slower than the high speed clock when the low-speed clock selection signal from the latch circuit are given, respectively, Since the clock is selected and output, an appropriate clock is automatically selected according to the signal width of the input signal, and the shift register inputs at a shift speed according to the high-speed or low-speed clock from the clock control circuit. The signal can be shifted.

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

【図1】本発明の実施例に係るデシタル入力回路の回路
図である。
FIG. 1 is a circuit diagram of a digital input circuit according to an embodiment of the present invention.

【図2】実施例の動作説明に供するタイミングチャート
である。
FIG. 2 is a timing chart for explaining the operation of the embodiment.

【図3】従来例に係るデシタル入力回路の回路図であ
る。
FIG. 3 is a circuit diagram of a digital input circuit according to a conventional example.

【図4】従来例の動作説明に供するタイミングチャート
である。
FIG. 4 is a timing chart for explaining the operation of the conventional example.

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

6 シフトレジスタ 10′ クロック制御回路 6 shift register 10 'clock control circuit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03K 5/1252 Continuation of front page (58) Field surveyed (Int.Cl. 7 , DB name) H03K 5/1252

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シフトレジスタ(6)と、クロック制御
回路(10´)とを有しており、 前記シフトレジスタ(6)は、複数のフリップフロップ
(6a〜6d)を縦続接続してなり、各フリップフロッ
プ(6a〜6d)へのシフト動作用クロックに応答して
入力信号を初段側のフリップフロップから後段側のフリ
ップフロップへ順次にシフトしていくものであり、前記クロック制御回路(10´)は、基準クロック発生
回路(10a)と、該基準クロック発生回路からのクロ
ック信号を分周して高速クロックを出力する高速クロッ
ク発生用分周器(10b)と、該高速クロックを分周し
て低速クロックを出力する低速クロック発生用分周器
(10c)と、該低速クロックを分周してリセット用ク
ロックを出力するリセットクロック発生用分周器(10
j)と、該リセットクロック発生用分周器(10j)か
ら出力されたリセット用クロックを遅延処理する遅延回
路(10m)と、カウント回路(10h)と、ラッチ回
路(10i)と、クロック選択回路(10e)とを有し
ており、 前記 カウント回路(10h)は、前記入力信号の信号数
をカウントするとともに、所定周期で前記遅延回路(1
0m)から入力される前記リセット用クロックでカウン
トがリセットされるものであって、かつ、該所定周期内
に、所定のカウント値になったときは、高速クロックを
選択する高速クロック選択信号を、所定のカウント値に
ならないときは、低速クロックを選択する低速クロック
選択信号を、それぞれ、出力するものであり、前記ラッチ回路(10i)は、前記カウント回路(10
h)から出力されたクロック選択信号をラッチし、前記
リセットクロック発生用分周器(10j)からの前記リ
セット用クロックが入力されるまでそのラッチ状態を保
持するものであり、 前記 クロック選択回路(10e)は、前記ラッチ回路
(10i)から高速クロック選択信号が与えられたとき
前記高速クロック発生用分周器(10b)から 出力さ
れた高速クロックを、また、低速クロック選択信号が与
えられたときは前記低速クロック発生用分周器(10
c)から出力された低速クロックを、それぞれ、選択し
て前記各フリップフロップ(6a〜6d)に出力するも
のであることを特徴とするデジタル入力回路。
1. A shift register (6) and a clock control circuit (10 '), wherein the shift register (6) is formed by cascade-connecting a plurality of flip-flops (6a to 6d). are those sequentially shifted to the subsequent stage of the flip-flop input signal in response to the shift operation clock to each flip-flop (6 a to 6 d) from the first stage of the flipflop, said clock control circuit (10 ' ) Is the reference clock generation
Circuit (10a) and a clock from the reference clock generation circuit.
High-speed clock that divides clock signal and outputs high-speed clock
Frequency divider (10b) for dividing the high-speed clock
Clock generating frequency divider that outputs low-speed clock
(10c), the low-speed clock is divided and the reset clock is
Frequency divider for reset clock generation (10
j) and the reset clock generating frequency divider (10j)
Circuit that delays the reset clock output from the
Road (10m), count circuit (10h), latch times
(10i) and a clock selection circuit (10e).
And which, the counting circuit (10h) is adapted to count the number of signals of said input signal, said delay circuit at a predetermined cycle (1
0m) , the count is reset by the reset clock , and when the count value reaches a predetermined value within the predetermined period, a high-speed clock selection signal for selecting a high-speed clock is output . When the count value does not reach the predetermined count value, a low-speed clock selection signal for selecting a low- speed clock is output, and the latch circuit (10i) outputs the low-speed clock selection signal.
h) latching the clock selection signal output from
The reset from the reset clock generating frequency divider (10j)
The latch state is maintained until the set clock is input.
Is intended to lifting, the clock selection circuit (10e), said latch circuit
When the high-speed clock selection signal is given from (10i), the output from the high-speed clock generation frequency divider (10b) is output.
The supplied high-speed clock and the low-speed clock selection signal are applied to the low-speed clock generation frequency divider (10
A digital input circuit for selecting and outputting the low-speed clocks output from c) to each of the flip-flops (6a to 6d).
JP17235391A 1991-07-12 1991-07-12 Digital input circuit Expired - Fee Related JP3243801B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17235391A JP3243801B2 (en) 1991-07-12 1991-07-12 Digital input circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17235391A JP3243801B2 (en) 1991-07-12 1991-07-12 Digital input circuit

Publications (2)

Publication Number Publication Date
JPH0522088A JPH0522088A (en) 1993-01-29
JP3243801B2 true JP3243801B2 (en) 2002-01-07

Family

ID=15940331

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17235391A Expired - Fee Related JP3243801B2 (en) 1991-07-12 1991-07-12 Digital input circuit

Country Status (1)

Country Link
JP (1) JP3243801B2 (en)

Also Published As

Publication number Publication date
JPH0522088A (en) 1993-01-29

Similar Documents

Publication Publication Date Title
JP2758994B2 (en) Tuning ring oscillator circuit
KR940007543B1 (en) High speed programmable divider
EP0473251B1 (en) Frequency divider and pulse signal former
JPH03136520A (en) Variable frequency dividing circuit
US4741004A (en) High-speed programmable divide-by-N counter
KR19980043235A (en) Data retiming circuit
US4703495A (en) High speed frequency divide-by-5 circuit
US5432830A (en) High speed counter for alternative up/down counting of pulse trains and method therefor
US6404839B1 (en) Selectable clock divider circuit with a 50% duty cycle clock
US6108393A (en) Enhanced prescaler phase interface
JP3243801B2 (en) Digital input circuit
US6172538B1 (en) Universal pulse synchronizer
US6091794A (en) Fast synchronous counter
US4924484A (en) High speed digital counter
JPH0548433A (en) Multi-stage frequency divider
JP2570933B2 (en) Synchronous clock generator
JP2778527B2 (en) Counting circuit
JP3485449B2 (en) Clock division switching circuit
JPH0522087A (en) Digital input circuit
JPH06311025A (en) Up-down counter circuit
JP2804421B2 (en) Coefficient switching prescaler
JP2572302B2 (en) Variable frequency divider
JP2530663B2 (en) Divider circuit
KR100278271B1 (en) A clock frequency divider
JP2689539B2 (en) Divider

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees