JPS63313014A - Reoutput pulse generating device - Google Patents
Reoutput pulse generating deviceInfo
- Publication number
- JPS63313014A JPS63313014A JP14984787A JP14984787A JPS63313014A JP S63313014 A JPS63313014 A JP S63313014A JP 14984787 A JP14984787 A JP 14984787A JP 14984787 A JP14984787 A JP 14984787A JP S63313014 A JPS63313014 A JP S63313014A
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- input
- pulses
- retransmission
- microprocessor
- 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
Links
- 230000000737 periodic effect Effects 0.000 claims description 14
- 101100481778 Caenorhabditis elegans mup-2 gene Proteins 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 7
- 230000007423 decrease Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 239000012530 fluid Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Measuring Volume Flow (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、入力パルスを計数し、この計数値を測定周期
毎に読取リスケール定数を乗じて、再びパルスを発信す
るようにした再発信パルス発生装置に関するものである
。Detailed Description of the Invention (Industrial Application Field) The present invention provides a re-transmission pulse that counts input pulses, reads this counted value every measurement period, multiplies it by a rescale constant, and transmits the pulse again. This relates to a generator.
一般に、タービン流量計等のパルス発信式流量計では、
通過流体の単位容積当りのパルス数が、例えば1g当り
、12.42発といったように区切りのよい値ではない
。このため、パルス数を計数してta算波流量求めよう
とすれば、パルス発信式流量計からの入力パルスをスケ
ーリングし、例えばIQ当り10発といったような単位
パルスに変換するための再発信パルス発生装置が必要と
なる。Generally, in pulse-generating flowmeters such as turbine flowmeters,
The number of pulses per unit volume of the passing fluid is not a well-defined value, such as 12.42 pulses per gram. Therefore, if you try to calculate the ta calculation flow rate by counting the number of pulses, you need to scale the input pulses from the pulse emitting type flowmeter and convert them into unit pulses, such as 10 pulses per IQ. A generator is required.
(従来の技術)
第5図は、従来のこの種の再発信パルス発生装置の一例
を示す構成ブロック図である。この装置は、入力パルス
Piを計数する入力カウンタ1と、周期クロックCLK
の割込みを受け、人力カウンタ1の計数/I Nを読み
込むとともに、スケーリング(係数k)の演算を行なう
マイクロプロセッサ2と、マイクロプロセッサ2での演
算結果に応じた数のパルスを出力するパルス出力回路3
とで構成されている。(Prior Art) FIG. 5 is a block diagram showing an example of a conventional retransmission pulse generator of this type. This device includes an input counter 1 that counts input pulses Pi, and a periodic clock CLK.
A microprocessor 2 receives the interrupt and reads the count /IN of the human counter 1 and performs scaling (coefficient k) calculations, and a pulse output circuit outputs a number of pulses according to the calculation results in the microprocessor 2. 3
It is made up of.
第6図は、第5図装置の動作を示すタイムチャートであ
る。(a)はマイクロプロセッサ2に割込みをかける周
期クロックCLKであり、(b)は入力カウンタlが計
数する入力パルスPiをそれぞれ示している。マイクロ
プロセッサ2は、(a)に示す周期クロックCLKの割
込みのタイミングで、入力カウンタlの計数@Nを読み
込み、演算を行ない、その演算結果をパルス出力回路3
に出力するもので、パルス出力回路3は、次の周期で(
c)に示すように前回周期に入力した分のパルス分を出
力する。FIG. 6 is a time chart showing the operation of the device shown in FIG. (a) shows the periodic clock CLK that interrupts the microprocessor 2, and (b) shows the input pulses Pi counted by the input counter l. The microprocessor 2 reads the count @N of the input counter l at the interrupt timing of the periodic clock CLK shown in (a), performs calculation, and sends the calculation result to the pulse output circuit 3.
The pulse output circuit 3 outputs (
As shown in c), the pulses input in the previous cycle are output.
(発明が解決しようとする問題点)
このような従来装置においては、前回周期分についての
演算結果に基づくパルスが今回周期中に出力されるもの
で、入力パルスに対して出力パルスは、平均して処理周
期分だけ遅れることになる。(Problem to be Solved by the Invention) In such conventional devices, pulses are output during the current cycle based on the calculation results for the previous cycle, and the output pulse is an average of the input pulse. This results in a delay corresponding to the processing cycle.
二のため、この装置からの再発信出力パルスを受イ8し
てパッチ制御を行なうような場合、遅れた分だけバッチ
制御の精度が悪くなるという問題点がある。For this reason, when patch control is performed by receiving retransmission output pulses from this device, there is a problem that the accuracy of batch control deteriorates by the amount of delay.
本発明は、このような問題点に鑑みてなされたもので、
その目的は、入力パルスに対する出力パルスの遅れを少
な゛くすることの可能な再発信パルス発生装置を実現す
ることにある。The present invention was made in view of these problems, and
The purpose is to realize a retransmission pulse generator that can reduce the delay of output pulses with respect to input pulses.
(問題点を解決するための手段)
第1図は本発明の基本的な構成ブロック図である1図に
おいて、1は入力パルスPiを計数する入力カウンタ、
2は入力カウンタlで計数した受信パルス数にある係数
を演算して再発信パルス数を求めるマイクロプロセッサ
、3はマイクロプロセッサ2での演算結果に応じた数の
パルスを出力する再発信パルス出力回路、4は周期クロ
ックCLKと、入力パルスPiとを入力し、周期クロッ
クCLKの直後に来る入力パルスPiのタイミングでマ
イクロプロセッサ2に対し割込みをかけるパルス割込制
御手段である。(Means for solving the problem) FIG. 1 is a basic configuration block diagram of the present invention. In FIG. 1, 1 is an input counter that counts input pulses Pi;
2 is a microprocessor that calculates the number of retransmission pulses by calculating a coefficient on the number of received pulses counted by the input counter l; 3 is a retransmission pulse output circuit that outputs a number of pulses according to the calculation result of the microprocessor 2; , 4 is a pulse interrupt control means which inputs a periodic clock CLK and an input pulse Pi and interrupts the microprocessor 2 at the timing of the input pulse Pi which comes immediately after the periodic clock CLK.
(作 用)
マイクロプロセッサ2は、パルス割込制御手段4からの
割込みタイミングで、入力カウンタlからの計数値を読
み込み、再発信パルスの演算、演算結果の再発信パルス
出力回路への出力を行なう。(Function) The microprocessor 2 reads the count value from the input counter l at the interrupt timing from the pulse interrupt control means 4, calculates a retransmission pulse, and outputs the calculation result to the retransmission pulse output circuit. .
(実施例)
第2図は、本発明装置の一実施例の構成ブロック図であ
る。図において、第2図の各部分と同じものには同一符
号を付して示す。(Embodiment) FIG. 2 is a configuration block diagram of an embodiment of the apparatus of the present invention. In the figure, the same parts as those in FIG. 2 are designated by the same reference numerals.
パルス割込制御手段4は、Dt4子に+5vが印加され
、CKi子に周期クロックCLKが印加され、CLにと
同期して立上るパルス割込ステータスPSTを出力する
第1のフリップフロップF1と、D端子にパルス割込ス
テータスPSTが印加され、CKi子に入力パルスPi
が印加され、周期クロックの直後に入る入力パルスPi
で、割込パルスWPをマイクロプロセッサ2に出力する
第2のフリップフロップF2とで構成されている。なお
、第1.第2の各フリップフロップF1. F2のCL
@子には、マイクロプロセッサ2から出力される割込み
クリア(fi号が印加されている。The pulse interrupt control means 4 includes a first flip-flop F1 to which +5V is applied to the Dt4 terminal, a periodic clock CLK is applied to the CKi terminal, and outputs a pulse interrupt status PST that rises in synchronization with CL; Pulse interrupt status PST is applied to the D terminal, and input pulse Pi is applied to the CKi pin.
is applied, and the input pulse Pi entering immediately after the periodic clock
and a second flip-flop F2 that outputs an interrupt pulse WP to the microprocessor 2. In addition, 1. Each second flip-flop F1. F2 CL
An interrupt clear (fi number) output from the microprocessor 2 is applied to the @ child.
このように構成した装置の動作を次に説明する。The operation of the device configured in this way will be described next.
第3図は、動作の一例を示すタイムチャートであり、第
4図はマイクロプロセッサ2が、割込みパルスを受けて
実行する割込み処理のフローチャートである。FIG. 3 is a time chart showing an example of the operation, and FIG. 4 is a flowchart of interrupt processing executed by the microprocessor 2 in response to an interrupt pulse.
第3図(a)は、周期クロックCLKを示し、第1のフ
リップフロップF1はこの周期クロックCLKに同期し
て、(b)に示すようにイネーブルとなるパルス割込ス
テータス信号PSTを出力する。この信号は、第2のフ
リップフロップF2のD端子に印加されており、第2の
フリップフロップF2は、周期クロックCLKの直後の
入力パルスPi(これを(C)に示す)が印加されるタ
イミングで、(d)に示すような割込みパルスWPを出
力する。FIG. 3(a) shows a periodic clock CLK, and the first flip-flop F1 outputs an enabled pulse interrupt status signal PST in synchronization with this periodic clock CLK as shown in FIG. 3(b). This signal is applied to the D terminal of the second flip-flop F2, and the second flip-flop F2 operates at a timing when an input pulse Pi (this is shown in (C)) immediately after the periodic clock CLK is applied. Then, an interrupt pulse WP as shown in (d) is output.
マイクロプロセッサ2は、この割込みパルスWPを受け
ると、(e)に示すようなタイミングで、第4図のフロ
ーチャートで示されるような割込み処理を実行する
すなわち、はじめに、割込みクリア信号を出力し、第1
.第2の各フリップフロップF1. F2をクリアする
(ステップl)。次に、入力カウンタ1の計数値Nを読
み込み、再発信パルス数Noの演算、例えば入力パルス
数にスケーリング係数k(この例ではに=1/3)を掛
ける演算(No= k−N)を行なう(ステップ2,3
)。次に、演算結果(No)をパルス出力回路3に出力
して終了する(ステップ4)。When the microprocessor 2 receives this interrupt pulse WP, it executes the interrupt processing as shown in the flowchart of FIG. 4 at the timing shown in (e). That is, it first outputs an interrupt clear signal and 1
.. Each second flip-flop F1. Clear F2 (step l). Next, read the count value N of input counter 1 and calculate the retransmission pulse number No. For example, multiply the input pulse number by the scaling coefficient k (in this example, = 1/3) (No = k - N). (Steps 2 and 3)
). Next, the calculation result (No) is output to the pulse output circuit 3 and the process ends (step 4).
パルス出力回路3は、この演算結果を受けると同時に、
(f)に示すように演算結果に対応した数の再発信パル
スPoを出力する。At the same time as the pulse output circuit 3 receives this calculation result,
As shown in (f), the number of retransmission pulses Po corresponding to the calculation result is output.
以上のような動作によって、再発信パルス出力回路3か
らは、周期クロックCLKの直後から入力パルスPiが
印加されるまでの僅かな時間(割込ステータスがイネー
ブルとなっている時間)遅れるだけで、演算結果に基づ
く数の再発信パルスPoを出力させることができる。With the above-described operation, the re-transmission pulse output circuit 3 outputs the signal from the periodic clock CLK with only a slight delay (the time during which the interrupt status is enabled) until the input pulse Pi is applied. It is possible to output a number of retransmission pulses Po based on the calculation result.
なお、上記の説明では、マイクロプロセッサ2における
演算は、単にスケーリング係数kを掛ける演算を行なう
場合を示したが、これ以外に例えば温度補正演算等、池
の演算を行なわせるようにしてもよい。In the above description, the calculation in the microprocessor 2 is simply a calculation of multiplying by a scaling coefficient k, but other calculations such as a temperature correction calculation may also be performed.
(発明の効果)
以上詳細に説明したように、本発明によれば、人力カウ
ンタから読み込んだ、入力パルス数に基づいて演算され
た数の再発信パルスを、はとんど遅れなく出力すること
のできる再発信パルス発生装はが提供できる。(Effects of the Invention) As described in detail above, according to the present invention, the number of retransmission pulses calculated based on the number of input pulses read from the manual counter can be outputted without delay. A re-transmission pulse generator is available.
一般に、流量の制御を行なうバッチ・シーケンスにおい
て、下限領域での流量は上限領域の流量に比べて100
0程度少なくなる。このため、パルス流量計からの出力
パルスは、上限領域で例えば1kllzであったものが
、下限領域では10011z程度(10ms)に低下す
る。いま、例えば周期クロックCLKを5msに選定す
るものとすれば、上限領域では複数のパルスが入力され
るが、下限領域では1周期で1パルスが来るか来ないか
どちらかとなる。Generally, in a batch sequence that controls the flow rate, the flow rate in the lower limit region is 100% higher than the flow rate in the upper limit region.
It decreases by about 0. Therefore, the output pulse from the pulse flowmeter is, for example, 1 kllz in the upper limit region, but decreases to about 10011z (10 ms) in the lower limit region. For example, if the periodic clock CLK is selected to be 5 ms, a plurality of pulses will be input in the upper limit region, but in the lower limit region, either one pulse will come in one cycle or not.
本発明装置によれば、上限領域では1周期に複数パルス
入力され、再発信パルスの出力は多少遅れるが、下限領
域での再発信パルスの出力の遅れはほとんど無くなる。According to the device of the present invention, a plurality of pulses are input in one cycle in the upper limit region, and the output of the retransmission pulse is delayed somewhat, but the delay in the output of the retransmission pulse in the lower limit region is almost eliminated.
バッチ・シーケンスでは、上限領域での遅れは余り問題
とはならず、下限領域でのパッチング精度が重要であり
、本発明装置はバッチ・シーケンスを行なう場合に適用
して特に実用上の効果がある。In batch sequences, delays in the upper limit range are not so much of a problem, but patching accuracy in the lower limit range is important, and the device of the present invention has a particularly practical effect when applied to batch sequences. .
第1図は本発明の基本的な構成ブロック図、第2図は本
発明装置の一実施例の構成ブロック図、第3図は動作の
一例を示すタイムチャート、第4図はマイクロプロセッ
サが行なう割込処理の動作を示すフローチャート、第5
図は従来装置の一例を示す構成ブロック図、第6図は第
5図装置の動作を示すタイムチャートである。
1・・・入力カウンタ、2・・・マイクロプロセッサ、
3・・・再発信パルス出力回路、4・・・パルス割込制
御手段。
ご、) I V
人力パルス 再発信パルス出力
Pin l’fiJtrL
2 図
ムFIG. 1 is a basic configuration block diagram of the present invention, FIG. 2 is a configuration block diagram of an embodiment of the device of the present invention, FIG. 3 is a time chart showing an example of the operation, and FIG. 4 is a diagram showing the operation performed by the microprocessor. Flowchart showing operation of interrupt processing, fifth
The figure is a block diagram showing an example of a conventional device, and FIG. 6 is a time chart showing the operation of the device shown in FIG. 1... Input counter, 2... Microprocessor,
3... Re-transmission pulse output circuit, 4... Pulse interrupt control means. ) I V Human power pulse Re-transmission pulse output Pin l'fiJtrL 2 Figure
Claims (1)
タで計数した受信パルス数に所定の演算を行なって再発
信パルス数を求めるマイクロプロセッサ、このマイクロ
プロセッサで求められた演算結果を入力し当該演算結果
に応じた数の再発信パルスを出力する再発信パルス出力
回路、周期クロックと前記入力パルスとを入力し周期ク
ロックの直後に来る入力パルスのタイミングで前記マイ
クロプロセッサに割込みをかけるパルス割込制御手段と
を備え、 前記マイクロプロセッサはパルス割込制御手段からの割
込みパルスを受け前記入力カウンタの計数値を読み込み
、所定の演算を行なうとともに演算結果を再発信パルス
出力回路に出力する動作を行なうことを特徴とする再発
信パルス発生装置。[Claims] An input counter that counts the number of input pulses, a microprocessor that performs a predetermined calculation on the number of received pulses counted by this input counter to determine the number of retransmission pulses, and a microprocessor that calculates the number of retransmission pulses, and a retransmission pulse output circuit that inputs and outputs a number of retransmission pulses according to the calculation result; a retransmission pulse output circuit that inputs a periodic clock and the input pulse; and interrupts the microprocessor at the timing of the input pulse that comes immediately after the periodic clock; pulse interrupt control means, the microprocessor receives an interrupt pulse from the pulse interrupt control means, reads the counted value of the input counter, performs a predetermined calculation, and outputs the calculation result to a re-transmission pulse output circuit. 1. A retransmission pulse generator characterized in that the retransmission pulse generator performs the following operations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14984787A JPS63313014A (en) | 1987-06-16 | 1987-06-16 | Reoutput pulse generating device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14984787A JPS63313014A (en) | 1987-06-16 | 1987-06-16 | Reoutput pulse generating device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63313014A true JPS63313014A (en) | 1988-12-21 |
Family
ID=15483952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP14984787A Pending JPS63313014A (en) | 1987-06-16 | 1987-06-16 | Reoutput pulse generating device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63313014A (en) |
-
1987
- 1987-06-16 JP JP14984787A patent/JPS63313014A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63313014A (en) | Reoutput pulse generating device | |
JPS6260673B2 (en) | ||
JPS62240824A (en) | Thermometer | |
JPS6298265A (en) | Speed detecting device | |
US4941160A (en) | Frequency multiplier circuitry and method | |
JPS63294117A (en) | Recall pulse generating device | |
JPS63187913A (en) | Pulse duty detecting circuit | |
JPS6311662Y2 (en) | ||
JPH05302940A (en) | Frequency measuring apparatus | |
KR950013602B1 (en) | Frequency measuring device | |
JP3031970B2 (en) | Filter circuit | |
JPS60143709A (en) | Apparatus for measuring flow rate of fluid | |
JPH09114541A (en) | Interruption generation time confirming circuit and processor | |
JPH10255489A (en) | Microcomputer | |
JPH0285792A (en) | Ac period watch | |
JP2004053455A (en) | Electronic watthour meter | |
JPH02227698A (en) | Automatic adjusting device for clock | |
JP2000055958A (en) | Duty ratio deciding circuit and method for deciding duty rato | |
JPH0395484A (en) | Pace measuring apparatus of electronic time-piece | |
JPH08101288A (en) | Time measuring system and clock | |
JP3990331B2 (en) | Time correction control circuit, time correction control method, and time correction control program | |
JP2001033500A (en) | Duty ratio measuring apparatus | |
JP2003315115A (en) | Flow measuring device | |
JPS59116864A (en) | Measurement system for use rate of central processing unit | |
JPH0658965A (en) | Phase meter |