JPS6248932B2 - - Google Patents
Info
- Publication number
- JPS6248932B2 JPS6248932B2 JP55119362A JP11936280A JPS6248932B2 JP S6248932 B2 JPS6248932 B2 JP S6248932B2 JP 55119362 A JP55119362 A JP 55119362A JP 11936280 A JP11936280 A JP 11936280A JP S6248932 B2 JPS6248932 B2 JP S6248932B2
- Authority
- JP
- Japan
- Prior art keywords
- counter
- output
- cot2
- cot1
- cot3
- 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
Links
Landscapes
- Manipulation Of Pulses (AREA)
Description
【発明の詳細な説明】
本発明は、外部からの要求によつて計数値を出
力する機能を有するパルス計数回路の改良に関す
るものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement in a pulse counting circuit having a function of outputting a count value in response to an external request.
例えば、γ線を測定するためのシンチレーシヨ
ンカウンタは、γ線の量に応じたパルスを発生す
るので、このパルスを計数することによりγ線の
量を測定することができる。 For example, a scintillation counter for measuring gamma rays generates pulses corresponding to the amount of gamma rays, so the amount of gamma rays can be measured by counting these pulses.
そして、計数された値は、外部からの要求によ
つて適宜出力される。 Then, the counted value is outputted as appropriate in response to an external request.
この様な計数値では出力要求中に計数回路が動
作して、出力される計数値が不定になるのを防ぐ
ため、従来は第1図に示す様に出力要求信号OP
が出ている間は阻止回路1により入力パルスPが
計数器2に入力されるのを阻止するか、第2図に
示すように出力専用のバツフアレジスタ3を備
え、出力要求信号OPが出ている間は書き替え禁
止回路4によりタイミング回路5の出力を禁止し
てバツフアレジスタ3の書き替えを禁止すること
が行なわれて来た。尚、第2図に於いて6は遅延
回路であり、バツフアレジスタ3の動作が安定し
て後に計数出力を得るために設けられているもの
である。 To prevent such a count value from operating during an output request and causing the output count value to become undefined, conventionally the output request signal OP was used as shown in Figure 1.
While the input pulse P is output, the input pulse P is prevented from being input to the counter 2 by the blocking circuit 1, or a buffer register 3 exclusively for output is provided as shown in Fig. 2, and the output request signal OP is output. During this period, the rewrite inhibiting circuit 4 inhibits the output of the timing circuit 5 to inhibit rewriting of the buffer register 3. In FIG. 2, 6 is a delay circuit, which is provided to obtain a counting output after the operation of the buffer register 3 is stabilized.
しかし、第1図の構成では出力要求中は、入力
パルスを計数できないため、繰り返しの速いパル
スの場合は、真値との誤差が大きくなり、又第2
図に示す回路の場合は計数器と同容量のバツフア
レジスタ及びタイミング回路、書き替え回路が必
要である欠点を有する。尚、第1図、第2図にお
いてANDはアンドゲートである。 However, in the configuration shown in Figure 1, input pulses cannot be counted during an output request, so in the case of rapidly repeating pulses, the error from the true value becomes large, and the second
The circuit shown in the figure has the disadvantage that it requires a buffer register of the same capacity as the counter, a timing circuit, and a rewriting circuit. Note that AND in FIGS. 1 and 2 is an AND gate.
また、第3図は上記の問題点を解決するために
提案された回路であり、第4図は第3図のタイム
チヤートである。図中COT1〜COT3は計数
器、CONは比較器、OSCは発振器、AND,AND
1はアンドゲート、DELは遅延回路であり、第
3図中a〜h点の波形を第4図に同一符号を用い
て示している。 Further, FIG. 3 shows a circuit proposed to solve the above problem, and FIG. 4 is a time chart of FIG. 3. In the figure, COT1 to COT3 are counters, CON is a comparator, OSC is an oscillator, AND, AND
1 is an AND gate, DEL is a delay circuit, and the waveforms at points a to h in FIG. 3 are shown using the same symbols in FIG.
第4a図に示すパルスが計数器COT1に入力
すると計数器COT1はこれを計数する。この計
数出力は比較器CONに入力される。 When the pulse shown in FIG. 4a is input to the counter COT1, the counter COT1 counts it. This count output is input to the comparator CON.
一方、計数器COT2、計数器COT3は発振器
OSCからのパルスをカウントするが、このパル
スは比較器CONからの出力に応じて発生する。 On the other hand, counter COT2 and counter COT3 are oscillators.
Count the pulses from OSC, which are generated in response to the output from comparator CON.
即ち、比較器CONに於いて計数器COT1と
COT2の計数値b,cを比較し、一致していな
ければ比較器CONからパルスが出力される。 That is, in the comparator CON, the counter COT1 and
The count values b and c of COT2 are compared, and if they do not match, a pulse is output from the comparator CON.
また、このとき出力要求信号fが出されていな
ければ、アンドゲートANDからパルスdが出力
される。このパルスdにより発振器OSCが駆動
されパルスeが出力され、計数器COT2、計数
器COT3はこれを計数する。これにより、計数
器COT1と計数器COT2の計数値が一致すると
比較器CONからはパルスが出力されなくなる。 Furthermore, if the output request signal f is not output at this time, the pulse d is output from the AND gate AND. This pulse d drives the oscillator OSC to output a pulse e, which is counted by the counters COT2 and COT3. As a result, when the count values of the counter COT1 and the counter COT2 match, no pulse is output from the comparator CON.
以上の様にして計数器COT3は入力パルスを
累積していく。 In the manner described above, the counter COT3 accumulates input pulses.
一方、計数器COT1,COT2は一定値毎にオ
ーバーフローする。 On the other hand, the counters COT1 and COT2 overflow every fixed value.
この計数器COT1,COT2は、M>TOUT/T
INを満足するM進カウンタである。尚、TOUTは
出力要求時間の最大値、TINは入力パルスの最小
周期である。 These counters COT1 and COT2 have M>T OUT /T
It is an M-adic counter that satisfies IN . Note that T OUT is the maximum value of the required output time, and T IN is the minimum period of the input pulse.
以上のことを第4図により具体的に説明する
と、時刻T1において入力パルスaが入力する
と、その立下がりにおいて計数器COT1が計数
し、計数値bは「1」となる。 To explain the above in detail with reference to FIG. 4, when the input pulse a is input at time T1 , the counter COT1 counts at the falling edge of the input pulse a, and the count value b becomes "1".
この時点において計数器COT2の計数値は
「0」であるので、比較器CONからパルスが出力
さる。 At this point, the count value of the counter COT2 is "0", so a pulse is output from the comparator CON.
この出力要求信号fは低レベルであるためイン
バータにより高レベルに反転してアンドゲート
ANDに入力されており、このアンドゲートAND
を介してパルスdが発振器OSCに入力される。
これにより発振器OSCからパルスeが出力され
るので、計数器COT2,COT3はこれを計数す
る。 Since this output request signal f is at a low level, it is inverted to a high level by an inverter and an AND gate is applied.
is input to AND, and this AND gate AND
The pulse d is input to the oscillator OSC via.
As a result, the oscillator OSC outputs a pulse e, which is counted by the counters COT2 and COT3.
この時点において計数器COT1とCOT2の計
数値b,cは共に「1」であるので比較器CON
からは出力されない。 At this point, the count values b and c of counters COT1 and COT2 are both "1", so the comparator CON
There is no output from.
以上の動作を繰り返して計数器COT1と計数
器COT2の計数値が同じになる様にして、計数
器COT3に於いて入力パルスaの数を正確に計
数できる様にしている。 By repeating the above operations, the count values of the counter COT1 and the counter COT2 become the same, so that the number of input pulses a can be accurately counted in the counter COT3.
時刻T2において出力要求信号fが高レベルに
なると、インバータを介してアンドゲートAND
への入力は低レベルとなるので、アンドゲート
ANDの出力が禁止される。よつて、発振器OSC
からパルスeが出力されなくなる。 When the output request signal f becomes high level at time T2 , the AND gate AND
Since the input to is low level, the AND gate
Output of AND is prohibited. Therefore, the oscillator OSC
From then on, pulse e is no longer output.
この状態において、計数器COT3の計数値g
がアンドゲートAND1を介して出力される。 In this state, the count value g of counter COT3
is output via the AND gate AND1.
遅延回路DELは第2図に示した回路と同様
に、計数器COT3の計数動作が安定した後計数
出力を得るために設けている。 Similar to the circuit shown in FIG. 2, the delay circuit DEL is provided to obtain a counting output after the counting operation of the counter COT3 is stabilized.
アンドゲートANDの出力が禁止されている間
入力パルスaは計数器COT1で計数している
が、計数器COT2は計数動作を停止している。
従つて、第4図の如く時刻T2において、計数器
COT1計数値bは「7」であるが計数器COT2
の計数値cは「4」になつている。 While the output of the AND gate AND is prohibited, the input pulse a is counted by the counter COT1, but the counter COT2 stops its counting operation.
Therefore, as shown in Figure 4, at time T2 , the counter
COT1 count value b is "7", but counter COT2
The count value c has become "4".
時刻T3において出力要求信号fが低レベルに
なるとアンドゲートANDの禁止が解除される。
従つて、アンドゲートANDを介してパルスdが
発振器OSCに入力され、前述の如く計数器COT
1とCOT2の計数値が一致するまで発振器OSC
からパルスeが出力される。 When the output request signal f becomes a low level at time T3 , the inhibition of the AND gate AND is released.
Therefore, the pulse d is input to the oscillator OSC via the AND gate AND, and the counter COT is input as described above.
Oscillator OSC until count value of 1 and COT2 match
A pulse e is output from.
この様にして、計数値が補正される。 In this way, the count value is corrected.
上記の構成により計数値の誤差をなくすことが
できる、又バツフアメモリ等が不要となるが、次
のような問題を生じることがある。 Although the above configuration makes it possible to eliminate errors in the counted values and eliminates the need for a buffer memory, the following problems may occur.
即ち、第5図に示す如く時刻T4において入力
パルスaが立下がり、計数器COT1が動作した
直後に出力要求があつた場合、2つの時間差に相
当する細いパルスが発振器OSCから出力される
が、このバルス幅が計数器COT2,COT3の動
作保証範囲よりも狭い場合、計数器COT2,
COT3が確実に動作することは保証されない。
両方の計数器が計数動作をしない場合には後で補
正が行なわれるため特に問題はないが、計数器
COT2が動作して、計数器COT3が動作しなか
つた場合、又はその逆の場合には補正を行なうこ
とができず、このことが度重なると真値と計数値
との誤差が大きくなつてしまう問題点がある。 That is, as shown in FIG. 5, when the input pulse a falls at time T4 and an output request is made immediately after the counter COT1 operates, a thin pulse corresponding to the time difference between the two is output from the oscillator OSC. , if this pulse width is narrower than the guaranteed operation range of counters COT2, COT3, counters COT2, COT3
There is no guarantee that COT3 will operate reliably.
If both counters do not perform counting, there is no particular problem as correction will be made later, but
If COT2 operates and counter COT3 does not operate, or vice versa, correction cannot be made, and if this happens repeatedly, the error between the true value and the counted value will increase. There is a problem.
本発明は、係る問題点を解決することを目的と
して為されたもので、第3図に示した回路構成に
於いて、発振器の出力部にマルチバイブレータを
設けるものである。 The present invention was made with the aim of solving this problem, and in the circuit configuration shown in FIG. 3, a multivibrator is provided at the output section of the oscillator.
以下第6図、第7図を参照して本発明の実施例
について説明する。 Embodiments of the present invention will be described below with reference to FIGS. 6 and 7.
第6図に於いて上記第3図と同一の参照番号で
指示される部分は第3図を同一の構成を表す。 In FIG. 6, parts indicated by the same reference numerals as in FIG. 3 above represent the same structure as in FIG.
第6図に示される構成では発振器OSCの出力
段に単安定マルチバイブレータMMを挿入してい
る。 In the configuration shown in FIG. 6, a monostable multivibrator MM is inserted in the output stage of the oscillator OSC.
即ち、ここでは発振器OSCからのパルスeを
単安定マルチバイブレータMMに入力して、一定
の幅を持つパルスe′に整形している。従つて、第
7図に示されるように時刻T4において入力パル
スと出力要求信号とが接近した場合でも計数器
COT1と計数器COT2の動作が異なることはな
くなる。即ち、発振器OSCの出力が細くなり、
マルチバイブレータMMが動作しなかつた場合
は、マルチバイブレータMMよりの出力は全く得
られなくなるので、計数器COT2,COT3共に
計数動作が行なわれない。一方、発振器OSCの
出力が細くなつても、マルチバイブレータMMが
動作する範囲であれば、マルチバイブレータMM
より一定のパルス幅を有する出力が得られるの
で、計数器COT2,COT3共に計数動作を行な
う。従つて、いずれか一方ののみが動作すること
による計数値の誤差を防止できる。 That is, here, the pulse e from the oscillator OSC is input to the monostable multivibrator MM and shaped into a pulse e' having a constant width. Therefore, even if the input pulse and the output request signal are close to each other at time T4 as shown in FIG.
The operations of COT1 and counter COT2 are no longer different. In other words, the output of the oscillator OSC becomes thinner,
If the multivibrator MM does not operate, no output from the multivibrator MM can be obtained, so that neither the counters COT2 nor COT3 perform a counting operation. On the other hand, even if the output of the oscillator OSC becomes thin, as long as the multivibrator MM is within the operating range, the multivibrator MM
Since an output having a more constant pulse width can be obtained, both counters COT2 and COT3 perform counting operations. Therefore, it is possible to prevent errors in the counted value due to only one of them operating.
以上、本発明によれば、入力パルスが立下が
り、計数器COT1が動作した直後に出力要求が
あつた場合等細いパルスが発振器OSCから出力
された場合にも、非常に簡単な回路の付加により
確実な計数動作を行なわせることができる。 As described above, according to the present invention, even when a thin pulse is output from the oscillator OSC, such as when an output request is made immediately after the input pulse falls and the counter COT1 operates, it is possible to A reliable counting operation can be performed.
第1図、第2図は従来のパルス計数回路の一例
を示す図、第3図は第1図、第2図に示される回
路の問題点を解決する回路構成を示す図、第4図
は第3図のタイム・チヤート、第5図は第3図に
示した回路構成で生じる問題点を説明するための
図、第6図は本発明の実施例を示す図、第7図は
第6図に示される回路のタイムチヤートである。
図中、COT1〜COT3は計数器、CONは比較
器、OSCは発振器、MMは単安定マルチバイブレ
ータである。
Figures 1 and 2 are diagrams showing an example of a conventional pulse counting circuit, Figure 3 is a diagram showing a circuit configuration that solves the problems of the circuits shown in Figures 1 and 2, and Figure 4 is a diagram showing an example of a conventional pulse counting circuit. 3 is a time chart, FIG. 5 is a diagram for explaining problems that occur in the circuit configuration shown in FIG. 3, FIG. 6 is a diagram showing an embodiment of the present invention, and FIG. 2 is a time chart of the circuit shown in the figure. In the figure, COT1 to COT3 are counters, CON is a comparator, OSC is an oscillator, and MM is a monostable multivibrator.
Claims (1)
と、発振器OSCからのパルスを一定期間保持す
るマルチバイブレータMMと該マルチバイブレー
タMMを介して受信された該発振器OSCからのパ
ルスを計数する第2、第3の計数器COT2,
COT3と、該第一の計数器COT1と第2の計数
器COT2の計数値を比較し、計数値が一致する
まで該発振器OSCからパルスを出力させる比較
器CONとを具備し、外部からの該第3の計数器
COT3の計数値の出力要求により第3の計数器
COT3の計数値を出力するとともに該比較器
CONによる該発振器OSCの駆動を停止させ、該
計数値の出力完了後第1の計数器COT1と第2
の計数器COT2の計数値が等しくなるまで該発
振器OSCからパルスを発生させるようにしたこ
とを特徴とするパルス計数回路。1 First counter COT1 that counts input pulses
a multivibrator MM that holds pulses from the oscillator OSC for a certain period of time; and second and third counters COT2 that count the pulses received from the oscillator OSC via the multivibrator MM.
COT3, and a comparator CON that compares the count values of the first counter COT1 and the second counter COT2 and outputs pulses from the oscillator OSC until the count values match. third counter
The third counter is activated by the request to output the count value of COT3.
Outputs the count value of COT3 and the comparator
The drive of the oscillator OSC by CON is stopped, and after the output of the count value is completed, the first counter COT1 and the second counter
A pulse counting circuit characterized in that the oscillator OSC generates pulses until the counted values of the counter COT2 become equal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55119362A JPS5744337A (en) | 1980-08-29 | 1980-08-29 | Pulse counting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55119362A JPS5744337A (en) | 1980-08-29 | 1980-08-29 | Pulse counting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5744337A JPS5744337A (en) | 1982-03-12 |
| JPS6248932B2 true JPS6248932B2 (en) | 1987-10-16 |
Family
ID=14759611
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55119362A Granted JPS5744337A (en) | 1980-08-29 | 1980-08-29 | Pulse counting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5744337A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61111462U (en) * | 1984-12-26 | 1986-07-15 | ||
| DE3812699C2 (en) * | 1988-04-16 | 1994-09-08 | Friedrich Wolff | Training device |
-
1980
- 1980-08-29 JP JP55119362A patent/JPS5744337A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5744337A (en) | 1982-03-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5097490A (en) | Apparatus and method for improving the resolution with which a test signal is counted | |
| US3943379A (en) | Symmetrical odd modulus frequency divider | |
| US4163946A (en) | Noise-immune master timing generator | |
| JPS6248932B2 (en) | ||
| JPH01144738A (en) | Circuit for protecting window method synchronization | |
| EP0393716A2 (en) | Delay circuit | |
| JPS62276925A (en) | Digital counter circuit | |
| US6191991B1 (en) | Data rate converter | |
| JPS633230Y2 (en) | ||
| JP2984802B2 (en) | Input signal abnormality detection circuit | |
| JPH0210915A (en) | Polarity unification circuit for pulse signal | |
| JPS6233394Y2 (en) | ||
| JP2776999B2 (en) | Counter circuit | |
| JP2824080B2 (en) | Period measurement circuit | |
| JP2803305B2 (en) | Inverter on-delay circuit | |
| JPS63312754A (en) | Error generation circuit | |
| JPH0522360A (en) | Fifo test diagnostic circuit | |
| KR100393421B1 (en) | Counter System for Synchronous AF Converter | |
| SU1109741A1 (en) | Device for determining difference of two numbers | |
| US6670823B2 (en) | Detecting counter contents for time-critical applications | |
| JP2708151B2 (en) | Internal timing digital synchronization interface circuit | |
| JPS5814626A (en) | Counting device | |
| JPH05113467A (en) | Edge generation circuit | |
| JPH028492B2 (en) | ||
| JPS58175469U (en) | Phase difference measuring device |