JPH0765282A - Electronic measuring instrument - Google Patents

Electronic measuring instrument

Info

Publication number
JPH0765282A
JPH0765282A JP5232208A JP23220893A JPH0765282A JP H0765282 A JPH0765282 A JP H0765282A JP 5232208 A JP5232208 A JP 5232208A JP 23220893 A JP23220893 A JP 23220893A JP H0765282 A JPH0765282 A JP H0765282A
Authority
JP
Japan
Prior art keywords
output
pulse train
serial
pulse
serial output
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.)
Granted
Application number
JP5232208A
Other languages
Japanese (ja)
Other versions
JP2925443B2 (en
Inventor
Etsuro Nakayama
悦郎 中山
Kazumi Maehara
一美 前原
Shuji Nozaki
修司 野崎
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.)
Osaki Electric Co Ltd
Original Assignee
Osaki Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Osaki Electric Co Ltd filed Critical Osaki Electric Co Ltd
Priority to JP5232208A priority Critical patent/JP2925443B2/en
Publication of JPH0765282A publication Critical patent/JPH0765282A/en
Application granted granted Critical
Publication of JP2925443B2 publication Critical patent/JP2925443B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

PURPOSE:To output a pulse train which differs in pulse quantity and pulse interval through slight software processing by providing a serial output means which outputs the serial pulse train. CONSTITUTION:A microcomputer 1 sets the bit rate and output bit quantity of the serial output means 2. Then voltage X current = electric power is calculated from the inputs to a voltage input means 3 and a current input means 4. Further, electric energy in one cycle of a totalization period is totalized and the number of pulses (parallel digital value) corresponding to the electric energy is calculated according to a predetermined constant. An output data converting means 5 reads the pulse train pattern (serial output data) corresponding to the calculated number of pulses out of a table in a read-only memory 6 and an output data setting means 7 sets the serial output data for the serial output means 2. Consequently, the pulse train which differs in pulse quantity and pulse interval can be outputted through the slight software processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、計測されたデータを、
パルス数やパルス間隔が一定でないシリアルなパルス列
として、遠隔の管理事務所などに対して出力する機能を
有する電子式計測器の改良に関するものである。
BACKGROUND OF THE INVENTION The present invention uses measured data to
The present invention relates to an improvement of an electronic measuring instrument having a function of outputting to a remote management office as a serial pulse train in which the number of pulses and the pulse interval are not constant.

【0002】[0002]

【従来の技術】今日、半導体技術の著しい進歩に伴い、
電力量計など、各種の物理量を遠隔計測して集中管理を
行う事務所などに送出する手段を有する電子式計測器が
多数実用化されている。
2. Description of the Related Art Today, with the remarkable progress of semiconductor technology,
A large number of electronic measuring instruments having a means for remotely measuring various physical quantities such as an electric energy meter and sending them to an office for centralized management have been put into practical use.

【0003】このような電子式計測器には、通常マイク
ロコンピュータが内蔵され、計測された入力物理量に比
例したパルス列を出力する、マイクロコンピュータの演
算処理によりパルス列を出力する、または、これらの組
合せによりパルス列を出力するように構成されている。
A microcomputer is usually incorporated in such an electronic measuring instrument, and a pulse train proportional to the measured input physical quantity is output, a pulse train is output by the arithmetic processing of the microcomputer, or a combination thereof is used. It is configured to output a pulse train.

【0004】そして、従来のこれらのパルス列出力にあ
たっては、マイクロコンピュータの出力ポートがソフト
ウエア処理により制御されてパルス列が出力されるか、
マイクロコンピュータのタイマ出力ポートがタイマによ
り制御されてパルス列が出力される。
In outputting these pulse trains in the related art, whether the output port of the microcomputer is controlled by software processing to output the pulse train,
The timer output port of the microcomputer is controlled by the timer to output the pulse train.

【0005】[0005]

【発明が解決しようとする課題】マイクロコンピュータ
の出力ポートをソフトウエア処理により制御してパルス
列を出力する場合は、出力ポートへのパルス出力制御、
パルス幅制御、および、パルス間隔制御のためにソフト
ウエア処理に多大な負担が掛かり、パルス幅やパルス間
隔の管理も容易ではない。
When outputting a pulse train by controlling the output port of the microcomputer by software processing, pulse output control to the output port,
A large load is applied to software processing for pulse width control and pulse interval control, and it is not easy to manage the pulse width and pulse interval.

【0006】また、マイクロコンピュータのタイマ出力
ポートをタイマにより制御してパルス列を出力する場合
は、出力されるパルス列のパルス数やパルス間隔が一定
である場合にはソフトウエア処理に殆ど負担が掛からな
いが、出力されるパルス列のパルス数やパルス間隔が一
定でない場合には、ソフトウエア処理によりタイマを頻
繁に制御する必要があり、さらに、タイマがパルス出力
制御を行っている最中にソフトウエア処理によりタイマ
を制御してしまう場合などのように、パルスの欠けやパ
ルス幅の不足が生じないようにソフトウエア処理によっ
てタイマ制御のタイミングを合わせる必要があるなど、
前述のマイクロコンピュータの出力ポートを制御してパ
ルス列を出力する場合と同様、ソフトウエア処理に多大
の負担が掛かってしまう。
Further, when a timer output port of a microcomputer is controlled by a timer to output a pulse train, if the number of pulses and the pulse interval of the output pulse train are constant, the software processing is hardly burdened. However, if the number of pulses in the output pulse train or the pulse interval is not constant, it is necessary to frequently control the timer by software processing.In addition, the software processing must be performed while the timer is performing pulse output control. For example, when you want to control the timer due to, it is necessary to adjust the timer control timing by software processing so that there are no missing pulses or insufficient pulse width.
As in the case where the output port of the microcomputer is controlled to output the pulse train, the software processing is greatly burdened.

【0007】本発明の目的は、上述の課題を解決し、パ
ルス数やパルス間隔が異なるパルス列の出力を僅かのソ
フトウエア処理により実現可能とする電子式計測器を提
供することである。
An object of the present invention is to solve the above-mentioned problems and to provide an electronic measuring instrument capable of realizing the output of a pulse train having a different number of pulses and a different pulse interval by a small amount of software processing.

【0008】[0008]

【課題を解決する手段】本発明は、パラレルなディジタ
ル値を対応するパルス列パターンに変換する出力データ
変換手段と、シリアルなパルス列を出力するシリアル出
力手段と、前記パルス列パターンを前記シリアル出力手
段に設定する出力データ設定手段とを設けたことを特徴
とする。
According to the present invention, output data conversion means for converting a parallel digital value into a corresponding pulse train pattern, serial output means for outputting a serial pulse train, and the pulse train pattern set in the serial output means. And an output data setting means for performing the same.

【0009】[0009]

【実施例】通常、マイクロコンピュータにシリアル出力
ポートとして内蔵され、またはパラレル・シリアル変換
手段として外付けされる、シリアル出力手段からの出力
パルスは、同期式の場合、ビットレートにより定まる時
間幅で、出力ビット数により定まる個数にて、ソフトウ
エア処理により任意にハイまたはローとして出力され
る。また、このシリアル出力手段からの出力は、前記出
力ビット数を単位として、複数個連続して出力すること
ができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An output pulse from a serial output means, which is usually built in a microcomputer as a serial output port or externally attached as a parallel-serial conversion means, has a time width determined by a bit rate in the case of a synchronous system. The number determined by the number of output bits is arbitrarily output as high or low by software processing. Further, the output from the serial output means can be continuously output in plural units with the output bit number as a unit.

【0010】したがって、マイクロコンピュータに内蔵
されるか、あるいは、ICなどにより外付けされるシリ
アル出力手段から、前記ビットレートで定まる時間幅を
分解能とし、前記出力ビット数を単位とした、任意のパ
ルス列をマイクロコンピュータのソフトウエア処理によ
り出力することができる。
Therefore, an arbitrary pulse train in which the time width determined by the bit rate is set as the resolution and the number of output bits is set as a unit from the serial output means which is built in the microcomputer or is externally attached by an IC or the like. Can be output by software processing of a microcomputer.

【0011】そこで、前記ビットレートで定まる時間幅
のN倍(Nは正の整数)が出力パルス幅となるようにビ
ットレートを定め、ソフトウエア処理により求めたパル
ス列パターンのデータをシリアル出力手段から出力する
ようにすることにより、僅かなソフトウエア処理の負担
によってパルス数やパルス間隔が一定でない任意のパル
ス列の出力が可能となる。
Therefore, the bit rate is set so that the output pulse width is N times the time width determined by the bit rate (N is a positive integer), and the pulse train pattern data obtained by software processing is output from the serial output means. By outputting it, it becomes possible to output an arbitrary pulse train in which the number of pulses and the pulse interval are not constant with a slight load of software processing.

【0012】図1は、本発明の一実施例である、電子式
電力量計のブロック図であり、図2は、図1におけるマ
イクロコンピュータ1のソフトウエア処理のフローチャ
ートである。
FIG. 1 is a block diagram of an electronic watt-hour meter which is an embodiment of the present invention, and FIG. 2 is a flowchart of software processing of the microcomputer 1 in FIG.

【0013】マイクロコンピュータ1は、ステップで
シリアル出力手段2の初期設定を行い、シリアル出力手
段2のビットレート、出力ビット数を設定する。
The microcomputer 1 initializes the serial output means 2 in steps, and sets the bit rate and the number of output bits of the serial output means 2.

【0014】次に、ステップで電圧入力手段3に入力
された電圧を読み込み、ステップで電流入力手段4に
入力された電流を読み込み、ステップでステップで
読み込まれた電圧入力手段3の電圧と、ステップで電
流入力手段4に入力された電流を乗算して、電圧×電流
=電力の演算を行う。
Next, the voltage input to the voltage input means 3 in the step is read, the current input to the current input means 4 in the step is read, and the voltage of the voltage input means 3 read in the step and the step Then, the current input to the current input means 4 is multiplied to calculate voltage × current = power.

【0015】さらに、マイクロコンピュータ1はステッ
プで、集計期間1周期(通常、500μSなどの短時
間とされる)の電力量を集計し、予め定められた定数に
従ってその電力量に相当するパルス数(パラレルなディ
ジタル値)を計算する。この処理により集計期間のパル
ス数が求められる。このパルス数は集計期間中の電力量
により変化し、たとえば0〜8といった整数とされる
(ここで、小数点以下の端数は保持されて、次の集計期
間の集計値に加算することにより誤差をなくする)。
Further, the microcomputer 1 totals the electric energy for one cycle of the totaling period (usually a short time such as 500 μS) in step, and the number of pulses corresponding to the electric energy according to a predetermined constant ( Calculate parallel digital values). By this processing, the number of pulses in the counting period is obtained. This pulse number changes depending on the amount of electric power during the aggregation period, and is an integer such as 0 to 8 (here, the fractional part after the decimal point is retained and the error is added by adding it to the aggregated value in the next aggregation period. Lost).

【0016】ステップのデータ変換で、マイクロコン
ピュータ1に機能的に内蔵される出力データ変換手段5
により、読出専用メモリ6のテーブルから計算したパル
ス数に相当するパルス列パターン(シリアル出力デー
タ)を読みだし、ステップで、マイクロコンピュータ
1に機能的に内蔵される出力データ設定手段7によりシ
リアル出力手段2にシリアル出力データを設定する。以
上によりシリアル出力手段2よりシリアル出力パルスの
列が送出される。
Output data conversion means 5 functionally built in the microcomputer 1 by step data conversion.
The pulse train pattern (serial output data) corresponding to the number of pulses calculated from the table of the read-only memory 6 is read by the serial output means 2 by the output data setting means 7 functionally incorporated in the microcomputer 1 in step. Set the serial output data to. As described above, a serial output pulse train is transmitted from the serial output means 2.

【0017】一例として、たとえば集計期間1周期中に
電力量に応じて0〜8のパルス数を出力する場合で、0
〜8のパルス数を16ビット分のシリアルで正のパルス
として出力する場合のパルス列パターンは、図3に示す
ようになる。
As an example, when the number of pulses of 0 to 8 is output in accordance with the amount of electric power in one cycle of the counting period, 0 is output.
The pulse train pattern in the case of outputting the number of pulses of 8 to 16 bits serially as positive pulses is as shown in FIG.

【0018】通常、マイクロコンピュータ1のシリアル
出力手段2は二重バッファ構造とされており、ステップ
の初期設定で設定された出力ビット数のデータを、1
ビットずつ、同じく初期設定で設定されたビットレート
により等間隔でパルスを出力するパラレル・シリアル変
換器とされている。
Normally, the serial output means 2 of the microcomputer 1 has a double buffer structure, and the data of the output bit number set in the initial setting of the step is set to 1
It is a parallel-serial converter that outputs pulses at regular intervals, bit by bit, also at the bit rate set in the initial setting.

【0019】この機能をソフトウエアで利用するには、
初期設定を除いて、「シリアル出力データのビット数÷
出力ビット数(出力ビット数の整数倍にシリアル出力デ
ータのビット数を決定すると最適である)」による回数
だけ必要なデータをシリアル出力手段2に設定するだけ
で済む。
To use this function in software,
Except for the initial setting, "the number of bits of serial output data ÷
It is only necessary to set the necessary data in the serial output means 2 by the number of output bits (it is optimal to determine the number of bits of serial output data to an integer multiple of the number of output bits).

【0020】すなわち、集計期間中の電力量に応じたパ
ルス数に対応するパルス列データを、その出力順に並べ
てシリアル出力手段2に設定する場合、出力ビット数を
8、シリアル出力データのビット数を16とすると、通
常、シリアル出力手段2は低位ビットから出力するた
め、パルス数が「1」の場合にシリアル出力手段2に設
定されるシリアル出力データは、「100000000
0000000」を8ビットずつに区切って出力順に並
べた「00000001」と「00000000」とな
り、2回の設定で済む。
That is, when the pulse train data corresponding to the number of pulses corresponding to the electric energy during the totaling period are arranged in the output order and set in the serial output means 2, the number of output bits is 8 and the number of bits of serial output data is 16. Then, since the serial output means 2 normally outputs from the low-order bit, the serial output data set in the serial output means 2 when the number of pulses is "1" is "100000000."
"0000000" is divided into 8-bit units and arranged in the output order, resulting in "0000001" and "00000000", and the setting is required twice.

【0021】なお、この場合のシリアル出力データのビ
ットレートは、 シリアル出力データのビット数/集計期間1周期の時間
(BITS/S) となる。
The bit rate of the serial output data in this case is the number of bits of the serial output data / the time of one cycle of the totaling period (BITS / S).

【0022】一方、従来のように、全てソフトウエア処
理によりこの機能を実現するためには、タイマなどの一
定間隔(前述のビットレートに相当)の割り込みを用い
て、そのタイミング毎に1または0を出力ポートに出力
し、かつ、これを出力データのビット数に相当する回数
(前述の例では16回)だけ繰り返さなければならな
い。それぞれの場合の処理内容は同一ではないが、単純
な処理回数の比較においてもソフトウエア処理が著しく
軽減されることになり、本発明によれば、パルス数やパ
ルス間隔が一定でないパルス列の出力を多大なソフトウ
エア処理の負担なしに行うことができる。
On the other hand, in order to realize this function by software processing as in the conventional case, an interrupt at a constant interval (corresponding to the above-mentioned bit rate) such as a timer is used, and 1 or 0 is set at each timing. Must be output to the output port, and this must be repeated the number of times corresponding to the number of bits of the output data (16 times in the above example). Although the processing contents in each case are not the same, the software processing can be remarkably reduced even in a simple comparison of the number of times of processing, and according to the present invention, the output of a pulse train in which the number of pulses or the pulse interval is not constant is output. It can be performed without a heavy software processing load.

【0023】また、通常、シリアル出力手段2は二重バ
ッファ構造であるから、ソフトウエア処理によりシリア
ル出力手段2にシリアル出力データを設定するタイミン
グに関わる制約もかなり緩和される。
Further, since the serial output means 2 normally has a double buffer structure, the restrictions on the timing for setting the serial output data in the serial output means 2 by software processing are alleviated considerably.

【0024】[0024]

【発明の効果】以上説明したように、本発明によれば、
パラレルなディジタル値を対応するパルス列パターンに
変換する出力データ変換手段と、シリアルなパルス列を
出力するシリアル出力手段と、前記パルス列パターンを
前記シリアル出力手段に設定する出力データ設定手段と
を設けたから、パルス数やパルス間隔が異なるパルス列
の出力を僅かのソフトウエア処理により実現することが
できる。
As described above, according to the present invention,
Output data conversion means for converting a parallel digital value into a corresponding pulse train pattern, serial output means for outputting a serial pulse train, and output data setting means for setting the pulse train pattern in the serial output means are provided. Output of pulse trains having different numbers and pulse intervals can be realized by a small amount of software processing.

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

【図1】本発明の一実施例である電子式電力量計のブロ
ック図である。
FIG. 1 is a block diagram of an electronic watthour meter that is an embodiment of the present invention.

【図2】図1におけるマイクロコンピュータのソフトウ
エア処理のフローチャートである。
FIG. 2 is a flowchart of software processing of the microcomputer shown in FIG.

【図3】シリアル出力データのパルス列データおよびパ
ルス列パターンの一例を示す図である。
FIG. 3 is a diagram showing an example of pulse train data and pulse train patterns of serial output data.

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

1 マイクロコンピュータ 2 シリアル出力手段 3 電圧入力手段 4 電流入力手段 5 出力データ変換手段 6 読出専用メモリ 7 出力データ設定手段 1 Microcomputer 2 Serial Output Means 3 Voltage Input Means 4 Current Input Means 5 Output Data Converting Means 6 Read Only Memory 7 Output Data Setting Means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 計測値をパラレルなディジタル値として
出力する演算手段を備えた電子式計測器において、前記
パラレルなディジタル値を対応するパルス列パターンに
変換する出力データ変換手段と、シリアルなパルス列を
出力するシリアル出力手段と、前記パルス列パターンを
前記シリアル出力手段に設定する出力データ設定手段と
を設けたことを特徴とする電子式計測器。
1. An electronic measuring instrument having an arithmetic means for outputting a measured value as a parallel digital value, wherein an output data conversion means for converting the parallel digital value into a corresponding pulse train pattern and a serial pulse train are outputted. And an output data setting unit for setting the pulse train pattern to the serial output unit.
JP5232208A 1993-08-26 1993-08-26 Electronic measuring instrument Expired - Fee Related JP2925443B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5232208A JP2925443B2 (en) 1993-08-26 1993-08-26 Electronic measuring instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5232208A JP2925443B2 (en) 1993-08-26 1993-08-26 Electronic measuring instrument

Publications (2)

Publication Number Publication Date
JPH0765282A true JPH0765282A (en) 1995-03-10
JP2925443B2 JP2925443B2 (en) 1999-07-28

Family

ID=16935685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5232208A Expired - Fee Related JP2925443B2 (en) 1993-08-26 1993-08-26 Electronic measuring instrument

Country Status (1)

Country Link
JP (1) JP2925443B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003047171A (en) * 2001-07-31 2003-02-14 Aiphone Co Ltd House monitoring system
JP2019215234A (en) * 2018-06-12 2019-12-19 四国計測工業株式会社 Pulse generator

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003047171A (en) * 2001-07-31 2003-02-14 Aiphone Co Ltd House monitoring system
JP2019215234A (en) * 2018-06-12 2019-12-19 四国計測工業株式会社 Pulse generator

Also Published As

Publication number Publication date
JP2925443B2 (en) 1999-07-28

Similar Documents

Publication Publication Date Title
US4233591A (en) Digital-to-analog converter of the pulse width modulation type
US4125295A (en) Digital speed detecting circuit for a rotating member having a wide speed range
AU612574B2 (en) Gain switching device with reduced error for watt meter
GB1598783A (en) Analogue-digital converter and conversion method
JPH0783267B2 (en) Device for converting a binary signal into a DC signal proportional thereto
WO2004031789A1 (en) Test device and test method
JPH0765282A (en) Electronic measuring instrument
JPH05333067A (en) Electronic watt-hour meter
US4205303A (en) Performing arithmetic using indirect digital-to-analog conversion
JPH0769996B2 (en) Simultaneous measurement data transmission method
RU2168827C1 (en) Extreme solar-battery power regulator
SU1029410A1 (en) Device for converting voltage to resiual class system code
Marcy Digital Electronics for Microprocessor Applications in Control of Manufacturing Processes
JP2571614B2 (en) Display device drive circuit
JPH07135469A (en) D/a converter
JPS6159486A (en) Display signal generator
SU888111A1 (en) Sine-cosine function generator
SU1471143A2 (en) Active-power-to-code converter
JP2517764Y2 (en) D / A converter
JP2738862B2 (en) Period measurement circuit
SU1332530A1 (en) Device for measuring the setting time of output voltage of the digital-to-analog converter
RU1798705C (en) Method of measurement of root-mean-square values of variable signals
SU894720A1 (en) Function computing device
SU515130A1 (en) Device for determining the electrical load of an enterprise
SU716145A1 (en) Pulse shaper

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090507

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100507

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110507

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120507

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130507

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees