JPH10246662A - Electronic type water meter - Google Patents

Electronic type water meter

Info

Publication number
JPH10246662A
JPH10246662A JP9050666A JP5066697A JPH10246662A JP H10246662 A JPH10246662 A JP H10246662A JP 9050666 A JP9050666 A JP 9050666A JP 5066697 A JP5066697 A JP 5066697A JP H10246662 A JPH10246662 A JP H10246662A
Authority
JP
Japan
Prior art keywords
signal
sampling
mode
speed
reverse
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
JP9050666A
Other languages
Japanese (ja)
Inventor
Masaharu Takeda
正春 武田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9050666A priority Critical patent/JPH10246662A/en
Publication of JPH10246662A publication Critical patent/JPH10246662A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measuring Volume Flow (AREA)
  • Details Of Flowmeters (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic type water meter which can carry out accurate integration and reverse judgment by intermittently supplying a current to a magnetic sensor to lower consumed current gradually. SOLUTION: One of the cycles of signals (a) and (b) to be outputted from a magnetic sensor 1 is measured by a cycle measuring section 5 and when the results of the measurement exceed a specified cycle, an overflow signal is outputted. Receiving the overflow signal, a stop/fine flow rate mode control section 4 works so that a sampling signal of the magnetic sensor 1 is switched over to a slow sampling. Under a slow sampling state in the stop/fine flow rate mode, when changes in the signal outputted by the magnetic sensor 1 are detected by a state change detecting section 3, a control is made to switch the sampling signal to a fast sampling.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、電子式水道メータ
に関し、更に詳しくは、水道使用量に応じて回転する回
転体の回転数を磁気センサによって磁気的に検出して、
第1および第2の信号を出力し、該第1および第2の信
号に基づいて回転体の回転方向を示す正逆情報および該
第1および第2の信号の合成パルスを積算部に出力して
水道使用量を積算する電子式水道メータに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic water meter, and more particularly, to a magnetic sensor which magnetically detects the number of rotations of a rotating body that rotates according to the amount of water used.
The first and second signals are output, and based on the first and second signals, forward / reverse information indicating the rotation direction of the rotating body and a composite pulse of the first and second signals are output to an integrating unit. And an electronic water meter for integrating water consumption.

【0002】[0002]

【従来の技術】図20は、従来の電子式水道メータの構
成を示すブロック図である。同図において、1は磁気セ
ンサで、2は磁気センサの出力する2つの信号を基に正
逆を判定するとともに、後段に接続される積算部で積算
するためのパルスを出力する正逆判定部および合成パル
ス出力部である。図21は正逆判定部および合成パルス
出力部2の1例を示している。入力端子a,bには磁気
センサ1にて検出された回転体の回転に応じた互いに位
相の異なる2つのパルス信号が供給され、この2つのパ
ルス信号がフリップフロップ29,30の各端子に印加
される。そして出力端子cには回転体の回転方向に無関
係に端子aに入力されたパルスの数だけ合成パルス信号
が出力され、出力端子dには正回転では”L”レベル、
逆回転では”H”レベルとなる正逆情報が出力される。
2. Description of the Related Art FIG. 20 is a block diagram showing a configuration of a conventional electronic water meter. In the figure, 1 is a magnetic sensor, 2 is a forward / reverse determining unit that determines forward / reverse based on two signals output from the magnetic sensor, and outputs a pulse for integration by an integrating unit connected to the subsequent stage. And a composite pulse output unit. FIG. 21 shows an example of the forward / reverse determination unit and the composite pulse output unit 2. Two pulse signals having different phases according to the rotation of the rotating body detected by the magnetic sensor 1 are supplied to the input terminals a and b, and these two pulse signals are applied to the respective terminals of the flip-flops 29 and 30. Is done. The output terminal c outputs as many composite pulse signals as the number of pulses input to the terminal a irrespective of the rotation direction of the rotating body.
In the reverse rotation, the forward / reverse information at the “H” level is output.

【0003】また、磁気センサ1により回転体の回転速
度と回転方向を検出しようとする場合、磁気センサ1か
ら出力される2つのパルス信号を回転速度に追従させな
ければならないため、磁気センサ1に常時電流を供給さ
せる方法がとられている。
When the rotational speed and the rotational direction of the rotating body are to be detected by the magnetic sensor 1, two pulse signals output from the magnetic sensor 1 must follow the rotational speed. A method of constantly supplying current is used.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の電子式
水道メータのように、磁気センサ1に常時電流を供給す
る方法では、消費電流が増大し、非経済的であるという
問題がある。
The method of constantly supplying a current to the magnetic sensor 1 as in the above-mentioned conventional electronic water meter has a problem that current consumption increases and it is uneconomical.

【0005】本発明は、上記に鑑みてなされたもので、
その目的とするところは、磁気センサに間欠的に電流を
供給して消費電流を低減しながら適確な積算および正逆
判定を行うことができる電子式水道メータを提供するこ
とにある。
[0005] The present invention has been made in view of the above,
An object of the present invention is to provide an electronic water meter capable of performing accurate integration and forward / reverse determination while reducing current consumption by intermittently supplying current to a magnetic sensor.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の本発明は、水道使用量に応じて回転
する回転体の回転数を磁気センサによって磁気的に検出
して、第1および第2の信号を出力し、該第1および第
2の信号に基づいて前記回転体の回転方向を示す正逆情
報および該第1および第2の信号の合成パルスを積算部
に出力して水道使用量を積算する電子式水道メータであ
って、前記磁気センサから出力される前記第1および第
2の信号の一方の周期を測定し、この測定結果が所定の
周期以上になった場合にオーバーフロー信号を出力する
周期測定部と、前記オーバーフロー信号を受け、前記磁
気センサのサンプリング信号を遅いサンプリングに切り
替えるように制御する制御信号を出力して停止・微流量
モードを設定する停止・微流量モード制御部と、該停止
・微流量モード制御部によって設定された前記停止・微
流量モードの遅いサンプリング状態において前記磁気セ
ンサが出力する信号の変化を検出した場合、速いサンプ
リングに切り替えるように制御する制御信号を出力する
状態変化検出部とを有することを要旨とする。
In order to achieve the above object, according to the first aspect of the present invention, the number of rotations of a rotating body that rotates according to the amount of water used is magnetically detected by a magnetic sensor. The first and second signals are output, and based on the first and second signals, forward / reverse information indicating the rotation direction of the rotator and a composite pulse of the first and second signals are output to an integrating unit. An electronic water meter that integrates water consumption by measuring one cycle of the first and second signals output from the magnetic sensor, and when the measurement result is equal to or longer than a predetermined cycle. A period measuring unit that outputs an overflow signal to the stop, and a stop signal that receives the overflow signal and outputs a control signal that controls the sampling signal of the magnetic sensor to switch to a slower sampling to set the stop / micro flow rate mode. When the change of the signal output by the magnetic sensor is detected in the slow sampling state of the stop / fine flow mode set by the minute flow mode control unit and the stop / fine flow mode control unit, the sampling is switched to fast sampling. And a state change detecting unit that outputs a control signal for controlling the state change.

【0007】請求項1記載の本発明にあっては、磁気セ
ンサから出力される第1および第2の信号の一方の周期
を測定し、この測定結果が所定の周期以上になった場合
にオーバーフロー信号を出力し、該オーバーフロー信号
により磁気センサのサンプリング信号を遅いサンプリン
グに切り替えて停止・微流量モードを設定し、停止・微
流量モードの遅いサンプリング状態において磁気センサ
の出力信号の変化を検出した場合、速いサンプリングに
切り替えるように制御するため、カウント誤差を最小と
しながら消費電流を低減することができる。
According to the first aspect of the present invention, one of the periods of the first and second signals output from the magnetic sensor is measured, and if the measurement result becomes longer than a predetermined period, an overflow occurs. When a signal is output, the sampling signal of the magnetic sensor is switched to slow sampling by the overflow signal, the stop / fine flow mode is set, and a change in the output signal of the magnetic sensor is detected in the slow sampling state of the stop / fine flow mode. Since the control is performed so as to switch to the fast sampling, the current consumption can be reduced while minimizing the count error.

【0008】また、請求項2記載の本発明は、請求項1
記載の発明において、前記状態変化検出部が状態変化を
検出した場合、前記回転体の回転方向を確定するために
速いサンプリング信号を前記第1および第2の信号の両
方に供給する正逆確定モード制御部と、前記周期測定部
の測定結果に応じて前記磁気センサのサンプリング信号
を低速、中速および高速サンプリング信号のいずれかに
制御して、対応するサンプリングモードを設定するサン
プリングモード制御部と、前記周期測定部の測定結果が
所定の周期以下になった場合、前記合成パルスの代わり
に前記第1または第2の信号を積算部に出力すべく切り
替える合成パルス切り替えスイッチとを有することを要
旨とする。
[0008] The present invention according to claim 2 is based on claim 1.
In the invention described above, when the state change detection unit detects a state change, a forward / reverse determination mode in which a fast sampling signal is supplied to both the first and second signals to determine the rotation direction of the rotating body. A control unit, a sampling mode control unit that controls the sampling signal of the magnetic sensor to one of a low speed, a medium speed, and a high speed sampling signal according to a measurement result of the period measurement unit, and sets a corresponding sampling mode, A synthesizing pulse changeover switch that switches the first or second signal to the integrating unit in place of the synthesized pulse when the measurement result of the period measuring unit becomes equal to or shorter than a predetermined period. I do.

【0009】請求項2記載の本発明にあっては、磁気セ
ンサの出力信号の状態変化を検出した場合、速いサンプ
リング信号を第1および第2の信号の両方に供給して回
転方向を確定し、周期測定結果に応じて磁気センサのサ
ンプリング信号を低速、中速および高速サンプリング信
号のいずれかに制御して、対応するサンプリングモード
を設定し、周期測定結果が所定の周期以下になった場
合、合成パルスの代わりに第1または第2の信号を積算
部に出力するように切り替えるため、正逆を適確に判定
できるとともに、積算も正確に行うことができ、カウン
ト誤差を最小にすることができる。
According to the present invention, when a change in the state of the output signal of the magnetic sensor is detected, a fast sampling signal is supplied to both the first and second signals to determine the rotation direction. By controlling the sampling signal of the magnetic sensor to one of low-speed, medium-speed, and high-speed sampling signals according to the cycle measurement result, and setting a corresponding sampling mode, and when the cycle measurement result falls below a predetermined cycle, Since the switching is performed so that the first or second signal is output to the integrating unit instead of the synthesized pulse, the forward / reverse can be accurately determined, the integration can be performed accurately, and the counting error can be minimized. it can.

【0010】更に、請求項3記載の本発明は、請求項2
記載の発明において、前記サンプリングモード制御部に
よって設定されたサンプリングモードが低速サンプリン
グモードから他のサンプリングモードに切り替わった場
合または他のサンプリングモードから低速サンプリング
モードに切り替わった場合の前記正逆情報を無効にする
低速モード変化時マスク信号出力部と、前記正逆情報を
ラッチするタイミングを発生する正逆情報ラッチタイミ
ング発生部と、前記サンプリングモードが決定した後に
該サンプリングモードに変化がない時のみ前記正逆情報
をラッチする正逆情報ラッチ部と、前記正逆情報をその
まま使用するかまたは前記正逆情報ラッチ部からの出力
信号を前記積算部への正逆情報として使用するかを切り
替える正逆情報切り替えスイッチと、前記サンプリング
モード制御部によって設定された高速サンプリングモー
ドが前記第1の信号側のみに電圧を印加するサンプリン
グパターンである場合、前記正逆情報を常に無効にする
高速用マスク信号出力部とを有することを要旨とする。
Further, the present invention according to claim 3 provides the present invention as claimed in claim 2.
In the invention described, when the sampling mode set by the sampling mode control unit is switched from the low-speed sampling mode to another sampling mode, or when switching from another sampling mode to the low-speed sampling mode, the reciprocal information is invalidated. A low-speed mode change-time mask signal output unit, a normal / reverse information latch timing generation unit for generating a timing for latching the normal / reverse information, and the forward / reverse only when there is no change in the sampling mode after the sampling mode is determined. A forward / reverse information latch unit for latching information, and forward / reverse information switching for switching between using the forward / reverse information as it is or using an output signal from the forward / reverse information latch unit as forward / reverse information to the integrating unit A switch and the sampling mode control unit. If fast sampling mode set Te is the sampling pattern for applying a voltage only to the first signal side, and summarized in that and a high-speed mask signal output unit always disable the forward and reverse information.

【0011】請求項3記載の本発明にあっては、低速サ
ンプリングモードから他のサンプリングモードに切り替
わった場合または他のサンプリングモードから低速サン
プリングモードに切り替わった場合の正逆情報を無効に
し、サンプリングモードが決定した後にモードに変化が
ない時のみ正逆情報をラッチし、正逆情報をそのまま使
用するかまたは正逆情報ラッチ部からの出力信号を使用
するかを切り替え、高速サンプリングモードが第1の信
号側のみに電圧を印加するサンプリングパターンである
場合、正逆情報を常に無効にするため、積算値を正しく
カウントすることができる。
According to the third aspect of the present invention, the normal / reverse information when switching from the low-speed sampling mode to another sampling mode or when switching from another sampling mode to the low-speed sampling mode is invalidated. Is latched only when the mode does not change after the determination is made, and switching is made between using the forward / reverse information as it is or using the output signal from the forward / reverse information latch unit. In the case of a sampling pattern in which a voltage is applied only to the signal side, since the forward / reverse information is always invalidated, the integrated value can be correctly counted.

【0012】請求項4記載の本発明は、請求項2記載の
発明において、前記中速サンプリングモードのサンプリ
ングパターンが、基準信号を順次分周した第1、第2お
よび第3の分周信号によって画定される第1ないし第8
の区間を中速サンプリングモードの1周期とし、該第1
ないし第3の区間が前記第1および第2の両信号側サン
プリングであり、第4ないし第8の区間が前記第1の信
号側のみサンプリングがあるというように電圧を印加す
るサンプリングパターンであると定義された場合、中速
サンプリングモード状態において前記第1および第2の
両信号側サンプリング時に前記回転体の正逆を正常に検
出できたときのみ正逆情報を取り込む中速用正逆情報ラ
ッチ許可部と、前記第1および第2の両信号側サンプリ
ングから第1の信号側のみサンプリング状態に移行する
とき正逆情報を取り込む中速用正逆ラッチ信号出力部
と、前記第1および第2の両信号側サンプリング区間の
始めから終わりまで中速サンプリングモードでない場
合、中速用正逆ラッチ信号を無効にする中速モード変化
時マスク信号出力部とを有することを要旨とする。
According to a fourth aspect of the present invention, in the second aspect of the present invention, the sampling pattern in the medium-speed sampling mode is based on first, second, and third frequency-divided signals obtained by sequentially dividing a reference signal. First to eighth defined
Is defined as one cycle of the medium-speed sampling mode,
The third to third sections are sampling on both the first and second signal sides, and the fourth to eighth sections are sampling patterns for applying a voltage such that sampling is performed only on the first signal side. When defined, medium-speed forward / reverse information latch permission to take in forward / reverse information only when forward / reverse of the rotator can be normally detected during sampling on the first and second signal sides in the middle-speed sampling mode state. A medium-speed forward / reverse latch signal output unit for capturing forward / reverse information when shifting from the first and second signal-side sampling to the first signal-side sampling state only; and the first and second If the medium-speed sampling mode is not set from the beginning to the end of both signal-side sampling sections, the medium-speed mode change mask signal output unit that invalidates the medium-speed forward / reverse latch signal And summarized in that a.

【0013】請求項4記載の本発明にあっては、中速サ
ンプリングモード状態において第1および第2の両信号
側のサンプリング時に回転体の正逆を正常に検出できた
ときのみ正逆情報を取り込み、第1および第2の両信号
側サンプリングから第1の信号側のみサンプリング状態
に移行するとき正逆情報を取り込み、第1および第2の
両信号側サンプリング区間の始めから終わりまで中速サ
ンプリングモードでない場合、中速用正逆ラッチ信号を
無効にするため、中速回転においても正逆情報を取り込
め、カウント誤差を抑えることができる。
According to the present invention, the forward / reverse information is obtained only when the forward / reverse of the rotating body can be normally detected during sampling on both the first and second signal sides in the medium-speed sampling mode state. When the first and second signal side sampling are shifted to the sampling state only from the first and second signal side sampling, the normal / reverse information is fetched, and the medium speed sampling is performed from the beginning to the end of the first and second signal side sampling sections. When the mode is not the mode, the medium-speed forward / reverse latch signal is invalidated, so that the forward / reverse information can be taken in even at the middle speed, and the count error can be suppressed.

【0014】また、請求項5記載の本発明は、請求項2
記載の発明において、前記中速サンプリングモードのサ
ンプリングパターンが、基準信号を順次分周した第1、
第2および第3の分周信号によって画定される第1ない
し第8の区間を中速サンプリングモードの1周期とし、
該第1ないし第3の区間が前記第1および第2の両信号
側サンプリングであり、第4ないし第8の区間が前記第
1の信号側のみサンプリングがあるというように電圧を
印加するサンプリングパターンであると定義された場
合、中速サンプリングモード状態において第1の信号の
1周期を検出する度にラッチ信号を出力するラッチ信号
発生部と、前記第1および第2の両信号側サンプリング
の時に正逆が正常に検出できたときのみ正逆情報のラッ
チを許可する中速用正逆情報ラッチ許可部と、サンプリ
ングモードの移行があったとき正逆情報をマスクするモ
ード移行時モード出力部とを有することを要旨とする。
The present invention described in claim 5 is the same as the claim 2.
In the invention described in the first aspect, the sampling pattern in the medium-speed sampling mode is a first pattern obtained by sequentially dividing a reference signal.
The first to eighth sections defined by the second and third frequency-divided signals are defined as one cycle of the medium-speed sampling mode,
A sampling pattern for applying a voltage such that the first to third sections are sampling on both the first and second signal sides, and the fourth to eighth sections are sampling only on the first signal side. And a latch signal generating unit that outputs a latch signal each time one cycle of the first signal is detected in the medium-speed sampling mode state, and when the first and second signal-side samplings are performed, A medium-speed forward / reverse information latch permitting unit that permits latching of forward / reverse information only when forward / reverse can be normally detected; and a mode transition time mode output unit that masks forward / reverse information when there is a transition to the sampling mode. The gist is to have.

【0015】請求項5記載の本発明にあっては、中速サ
ンプリングモード状態において第1の信号の1周期を検
出する度にラッチ信号を出力し、第1および第2の両信
号側サンプリングの時に正逆が正常に検出できたときの
み正逆情報のラッチを許可し、サンプリングモードの移
行があったとき正逆情報をマスクするため、カウント誤
差を最小限に抑えることができる。
According to the fifth aspect of the present invention, a latch signal is output each time one cycle of the first signal is detected in the medium-speed sampling mode, and the first and second signal-side samplings are performed. Sometimes, the forward / reverse information is latched only when the forward / reverse is normally detected, and the forward / reverse information is masked when the sampling mode is shifted, so that the counting error can be minimized.

【0016】[0016]

【発明の実施の形態】以下、図面を用いて本発明の実施
の形態について説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0017】図1は、本発明の一実施形態に係わる電子
式水道メータの構成を示すブロック図である。同図にお
いて、1は磁気センサ、2は磁気センサの出力する2つ
の信号a,bから生成されるPA,PB信号を基に正逆
を判定して正逆情報を出力するとともに、後段に接続さ
れている積算部で積算するための合成パルスを出力する
正逆判定部および合成パルス出力部である。3はPA信
号の状態変化を監視する状態変化検出部、4は停止&微
流量モードにするか停止&微流量モードを解除するかを
制御する停止&微流量モード制御部、5はPA信号の周
期を測定し、ある周期以上になるとオーバーフロー信号
を出力するカウンタからなる周期測定部、6はPA信号
の立ち下がりを検出するたびに周期測定部のカウンタを
リスタートさせるカウンタリセット部である。7は磁気
センサ1にサンプリング信号SMPA,SMPBを供給
するサンプリング電圧駆動部であり、8aおよび8bは
それぞれ磁気センサ1から出力される信号a,bをサン
プリング電圧駆動部7からのサンプリング信号SMP
A,SMPBの反転信号でラッチするD型フリップフロ
ップ(F/F)である。
FIG. 1 is a block diagram showing the configuration of an electronic water meter according to one embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a magnetic sensor, 2 denotes a forward / reverse judgment based on PA and PB signals generated from two signals a and b output from the magnetic sensor, and outputs forward / reverse information, and is connected to a subsequent stage. A forward / reverse determining unit that outputs a combined pulse to be integrated by the integrating unit, and a combined pulse output unit. Reference numeral 3 denotes a state change detection unit that monitors a change in the state of the PA signal. Reference numeral 4 denotes a stop & fine flow mode control unit that controls whether to enter the stop & fine flow mode or cancel the stop & fine flow mode. A period measuring unit comprising a counter which measures the period and outputs an overflow signal when the period becomes equal to or longer than a certain period, and a counter reset unit 6 which restarts the counter of the period measuring unit every time a falling edge of the PA signal is detected. Reference numeral 7 denotes a sampling voltage driver for supplying sampling signals SMPA and SMPB to the magnetic sensor 1. Reference numerals 8a and 8b denote signals a and b output from the magnetic sensor 1, respectively, for the sampling signal SMP from the sampling voltage driver 7.
A, D-type flip-flop (F / F) that latches with an inverted signal of SMPB.

【0018】図1に示す実施形態に使用されている状態
変化検出部3、停止&微流量モード制御部4、周期測定
部5、カウンタリセット部6は、詳細には図2に示すよ
うに構成されている。すなわち、状態変化検出部3は2
つのフリップフロップ(以下、F/Fとも称する)、A
NDゲート3aおよびインバータで構成され、停止&微
流量モード制御部4は1つのF/Fとインバータで構成
され、周期測定部5はカウンタで構成され、カウンタリ
セット部6はディレイ回路6aおよび6c、F/F6b
およびインバータで構成されている。
The state change detecting unit 3, the stop & minute flow mode control unit 4, the cycle measuring unit 5, and the counter reset unit 6 used in the embodiment shown in FIG. 1 are configured as shown in FIG. Have been. That is, the state change detection unit 3
A flip-flop (hereinafter also referred to as F / F), A
An ND gate 3a and an inverter, the stop & minute flow mode control unit 4 is composed of one F / F and an inverter, the cycle measuring unit 5 is composed of a counter, and the counter reset unit 6 is a delay circuit 6a and 6c. F / F6b
And an inverter.

【0019】次に、以上のように構成される電子式水道
メータの作用を説明する。
Next, the operation of the electronic water meter configured as described above will be described.

【0020】まず、電源投入(Power-on)時、状態変化
検出部3のANDゲート3aの出力UMODE信号は”
H”で停止&微流量モード制御部4の出力SMODE
は”L”となる。このUMODE,SMODE信号はサ
ンプリング電圧駆動部7に入力され、SMODE=”
L”なので磁気センサ1に停止&微流量モードの遅い周
期で電圧を印加する(”L”アクティブ)。
First, when the power is turned on (Power-on), the output UMODE signal of the AND gate 3a of the state change detection unit 3 is "1".
Stop at H "& output SMODE of micro flow rate mode controller 4
Becomes "L". The UMODE and SMODE signals are input to the sampling voltage driver 7 and SMODE = ”
Since the voltage is L ", a voltage is applied to the magnetic sensor 1 at a slow cycle in the stop & fine flow mode (" L "active).

【0021】停止&微流量モードにおいてPA信号が”
L”レベルから”H”レベルに変化した場合を図3のタ
イミングチャートを用いて説明する。図3において、S
MPA信号は磁気センサ1のa側サンプリング信号、a
信号は磁気センサ1のa信号出力、PA信号はフリップ
フロップ8aのQ出力、UMODE信号は状態変化検出
部3の出力、SMODE信号は停止&微流量モード制御
部4の出力である。
In the stop & fine flow mode, the PA signal is "
The case where the level changes from L level to “H” level will be described with reference to the timing chart of FIG.
The MPA signal is an a-side sampling signal of the magnetic sensor 1, a
The signal is the a signal output of the magnetic sensor 1, the PA signal is the Q output of the flip-flop 8a, the UMODE signal is the output of the state change detection unit 3, and the SMODE signal is the output of the stop & minute flow mode control unit 4.

【0022】磁気センサ1からのa信号が”L”から”
H”に変化すると、図3の<1>のタイミングでPA信
号が”L”から”H”になり、UMODE信号は”H”
から”L”、SMODE信号は”L”から”H”とな
る。このUMODE,SMODE信号はサンプリング電
圧駆動部7に入力され、UMODE=”L”なので磁気
センサ1に速い周期で電圧を印加する。
The signal a from the magnetic sensor 1 changes from "L" to "L".
When the signal changes to "H", the PA signal changes from "L" to "H" at the timing <1> in FIG. 3, and the UMODE signal changes to "H".
From "L" to "H", and the SMODE signal from "L" to "H". The UMODE and SMODE signals are input to the sampling voltage driver 7 and apply a voltage to the magnetic sensor 1 at a fast cycle because UMODE = “L”.

【0023】次に、周期測定部5、カウンタリセット部
6の動作も含め、周期測定部5のカウント値がある値よ
り小(仮にカウント値<”F”とする)の場合にカウン
タリセット部6により周期測定部5のカウンタがリスタ
ートする動作と、周期測定部5のカウント値がある値
(=”F”)になった場合、ある周期以上になったとみ
なし周期測定部5からオーバーフロー信号TOUTが出
力され、速いサンプリングモードから停止&微流量モー
ドの遅いサンプリングに切り替えられる動作を図4のタ
イミングチャートを用いて説明する。
Next, when the count value of the cycle measuring unit 5 is smaller than a certain value (assuming that the count value is smaller than "F"), including the operations of the cycle measuring unit 5 and the counter reset unit 6, When the count value of the cycle measurement unit 5 becomes a certain value (= “F”), it is considered that the cycle has exceeded a certain period, and the overflow signal TOUT is output from the cycle measurement unit 5. The operation of switching from the fast sampling mode to the slow sampling in the stop & minute flow rate mode will be described with reference to the timing chart of FIG.

【0024】図4において、PA信号は図3と同じフリ
ップフロップ8aのQ出力であり、(ア)はカウンタリ
セット部6のディレイ回路6aの出力、(イ)はF/F
(フリップフロップ)6bのQN出力、(ウ)はディレ
イ回路6cの出力、(エ)は周期測定部5のカウント
値、TOUT信号は周期測定部5のカウント値がオーバ
ーフロー(カウンタ値=Fでオーバーフローする)する
と、”L”レベルとなる信号である。UMODE,SM
ODE信号は図3に示した信号と同じである。
In FIG. 4, the PA signal is the Q output of the flip-flop 8a as in FIG. 3, (A) is the output of the delay circuit 6a of the counter reset unit 6, and (A) is the F / F.
(Flip-flop) The QN output of 6b, (c) is the output of the delay circuit 6c, (d) is the count value of the cycle measuring section 5, and the TOUT signal overflows the count value of the cycle measuring section 5 (count value = F overflows Then, the signal becomes the “L” level. UMODE, SM
The ODE signal is the same as the signal shown in FIG.

【0025】まず、図3で説明したように図4の<2>
のタイミングで停止&微流量モードを抜けると、SMO
DE信号が”H”なので周期測定部5のカウンタのリセ
ットが解除され、カウンタがカウントアップし始める。
次に、PA信号が”H”から”L”に変化すると(<2
>′のタイミング)、ディレイ回路6aを通った信号
(ア)は少し遅れて立ち上がり、F/F6bのQN出力
(=(イ))は”L”、ディレイ回路6cを通った信号
(ウ)は少し遅れて”L”となり、F/F6bがリセッ
トされ、信号(イ)は再び”H”となる。この信号
(イ)が”L”の間周期測定部5のカウンタはリセット
され、信号(イ)が再び”H”となるとカウントを始め
る。こうしてPA信号の立ち下がり信号が入力されるた
びに周期測定部5のカウンタはリスタートするのでオー
バーフロー信号TOUTは出力されず、速いサンプリン
グモードで動作し続ける。ここで図4のタイミング<3
>のようにPA信号に変化がなかった場合、周期測定部
5のカウント値(エ)が”F”となり、TOUT信号
が”L”となり、UMODE=”H”,SMODE=”
L”となる。
First, as described with reference to FIG. 3, <2> of FIG.
At the timing of & stop from the micro flow mode, SMO
Since the DE signal is "H", the reset of the counter of the cycle measuring unit 5 is released, and the counter starts counting up.
Next, when the PA signal changes from “H” to “L” (<2
>'), The signal (a) passing through the delay circuit 6a rises with a slight delay, the QN output (= (a)) of the F / F 6b is "L", and the signal (c) passing through the delay circuit 6c is After a short delay, the signal becomes "L", the F / F 6b is reset, and the signal (a) becomes "H" again. While this signal (a) is "L", the counter of the cycle measuring unit 5 is reset, and when the signal (a) becomes "H" again, counting starts. In this manner, the counter of the cycle measuring unit 5 restarts each time the falling signal of the PA signal is input, so that the overflow signal TOUT is not output and the operation continues in the fast sampling mode. Here, the timing <3 in FIG.
When the PA signal does not change as in>, the count value (D) of the cycle measuring unit 5 becomes “F”, the TOUT signal becomes “L”, and UMODE = “H”, SMODE = ”
L ”.

【0026】このUMODE,SMODE信号はサンプ
リング電圧駆動部7に入力され、SMODE=”L”な
ので磁気センサ1に停止&微流量モードの遅い周期で電
圧を印加する。周期測定部5のカウンタがオーバーフロ
ー信号TOUTを出力する時間はカウンタの長さを加減
することにより任意に調節することができる。また、こ
こではPA信号を基準に状態変化を検出する回路、PA
信号が”H”から”L”になるときに周期測定部5のカ
ウンタにリセットをかける回路を示したが、PB信号を
基準に状態変化を検出する方法、PA,PBそれぞれの
状態変化を検出する方法、PA信号が”L”から”H”
になるときにカウンタにリセットをかける方法もある。
The UMODE and SMODE signals are input to the sampling voltage driver 7, and since SMODE = "L", a voltage is applied to the magnetic sensor 1 at a slow cycle in the stop & fine flow mode. The time during which the counter of the cycle measuring unit 5 outputs the overflow signal TOUT can be arbitrarily adjusted by adjusting the length of the counter. Here, a circuit for detecting a state change based on the PA signal, PA
The circuit that resets the counter of the cycle measuring unit 5 when the signal changes from "H" to "L" has been described. A method of detecting a state change based on the PB signal, and detecting a state change of each of PA and PB The PA signal changes from "L" to "H"
There is also a method of resetting the counter when it becomes.

【0027】図5は、本発明の他の実施形態における構
成を示すブロック図である。同図において、1,2,
3,4,5,6,7はそれぞれ図1に示した磁気セン
サ、正逆判定部&合成パルス発生部、状態変化検出部、
停止&微流量モード制御部、周期測定部、カウンタリセ
ット部、サンプリング電圧駆動部である。10は停止&
微流量モードにおいて状態変化検出部3が状態変化を検
出した場合、回転体の回転方向を確定するため速いサン
プリング信号をa,b両側に印加するようにサンプリン
グ電圧駆動部7に制御信号を出力する正逆確定モード制
御部であり、11は周期測定部5の測定結果によりサン
プリングモードを高速、中速、低速のいずれのモードに
するか制御するサンプリングモード制御部であり、12
は周期測定結果の読み込みタイミングを作るデコードタ
イミング発生部である。SW1は、図7において後述す
るように、積算部に対して合成パルスをそのまま出力す
るかまたはPA信号を出力するかを切り替えるスイッチ
である。
FIG. 5 is a block diagram showing a configuration according to another embodiment of the present invention. In FIG.
Reference numerals 3, 4, 5, 6, and 7 denote the magnetic sensor, the forward / reverse determination unit & composite pulse generation unit, the state change detection unit, respectively, shown in FIG.
A stop & micro flow mode control unit, a period measurement unit, a counter reset unit, and a sampling voltage drive unit. 10 stops &
When the state change detecting unit 3 detects a state change in the minute flow rate mode, a control signal is output to the sampling voltage driving unit 7 so as to apply a fast sampling signal to both sides a and b in order to determine the rotation direction of the rotating body. A forward / reverse determination mode control unit 11 is a sampling mode control unit that controls whether the sampling mode is set to a high speed, a medium speed, or a low speed based on the measurement result of the cycle measurement unit 5.
Reference numeral denotes a decode timing generator for generating a read timing of the cycle measurement result. SW1 is a switch that switches between outputting the synthesized pulse to the integrating section as it is and outputting the PA signal, as described later in FIG.

【0028】また、サンプリングモード制御部11は、
周期測定部5の測定結果に基づいてサンプリングモード
を高速、中速、低速サンプリングモードのいずれかに制
御するが、これらのモード信号はそれぞれ図5において
HMODE,MMODE,LMODE信号として出力さ
れ、サンプリング電圧駆動部7に供給されている。
Further, the sampling mode control unit 11
The sampling mode is controlled to one of the high-speed, medium-speed, and low-speed sampling modes based on the measurement result of the cycle measuring unit 5. These mode signals are output as HMODE, MMODE, and LMODE signals in FIG. It is supplied to the drive unit 7.

【0029】図5に示す正逆確定モード制御部10、サ
ンプリングモード制御部11およびデコードタイミング
発生部12は、詳細には図6に示すように構成されてい
る。すなわち、正逆確定モード制御部10はANDゲー
ト10a、カウンタ10b、F/F10cで構成され、
サンプリングモード制御部11はデコーダ11a、コン
パレータ11b、ORゲートで構成され、デコードタイ
ミング発生部12はディレイ回路12a、F/F12
b,12c、ANDゲート12dで構成されている。
The forward / reverse determination mode control unit 10, sampling mode control unit 11, and decode timing generation unit 12 shown in FIG. 5 are configured in detail as shown in FIG. That is, the forward / reverse determination mode control unit 10 includes an AND gate 10a, a counter 10b, and an F / F 10c.
The sampling mode control unit 11 includes a decoder 11a, a comparator 11b, and an OR gate, and the decode timing generation unit 12 includes a delay circuit 12a, an F / F 12
b, 12c and an AND gate 12d.

【0030】次に、作用を説明する。まず、電源投入
(Power-on)時、SMODE=”L”、UMODE=”
H”、正逆確認モード制御部10のF/F10cから出
力される信号(オ)は”H”のため、HMODE=”
H”、MMODE=”H”、LMODE=”H”とな
り、これらのMODE信号はサンプリング電圧駆動部7
に入力され、SMODE=”L”なので磁気センサ1に
停止&微流量モードの遅い周期で電圧を印加する。停止
&微流量モードにおいて状態変化検出部3がPA信号の
変化を検出し、正逆確定モードを経て高速あるいは中速
モードに移行する場合の動作を図8のタイミングチャー
トを用いて説明する。
Next, the operation will be described. First, when the power is turned on (Power-on), SMODE = “L”, UMODE = ”
H ", since the signal (e) output from the F / F 10c of the forward / reverse confirmation mode control unit 10 is" H ", HMODE ="
H ", MMODE =" H ", LMODE =" H ", and these MODE signals are output to the sampling voltage driver 7
Since SMODE = “L”, a voltage is applied to the magnetic sensor 1 at a slow cycle in the stop & fine flow mode. The operation when the state change detection unit 3 detects a change in the PA signal in the stop & minute flow mode and shifts to the high-speed or medium-speed mode via the forward / reverse determination mode will be described with reference to the timing chart of FIG.

【0031】停止&微流量モードにおいて状態変化検出
部3がPA信号の変化を検出すると、UMODE=”
L”、SMODE=”H”となり、サンプリング電圧駆
動部7はUMODE=”L”なので磁気センサ1に速い
サンプリング信号をa,b両側に印加する。デコードタ
イミング発生部12のディレイ回路12aを通った信号
(カ)の1回目の立ち上がり(図8の<4>のタイミン
グ)でF/F12bのQ出力(キ)は”H”となり、信
号(カ)の2回目の立ち上がり(図8の<5>のタイミ
ング)でF/F12cのQ出力(ク)が”H”なり、信
号(ケ)は信号(カ)と(ク)のAND出力なので図8
のようになる。この信号(ケ)の立ち上がるタイミング
でサンプリングモード制御部11のデコーダ11aに周
期測定部5のカウント値を入力してデコードする。
When the state change detecting section 3 detects a change in the PA signal in the stop & minute flow rate mode, UMODE = "".
L ", SMODE =" H ", and the sampling voltage driving unit 7 applies a fast sampling signal to both sides a and b to the magnetic sensor 1 because UMODE =" L ", and passes through the delay circuit 12a of the decode timing generation unit 12. At the first rise of the signal (f) (timing <4> in FIG. 8), the Q output (g) of the F / F 12b becomes “H”, and the second rise of the signal (f) (<5 in FIG. 8). 8) since the Q output (h) of the F / F 12c becomes "H" at the timing (>) and the signal (h) is the AND output of the signals (h) and (h).
become that way. The count value of the cycle measuring unit 5 is input to the decoder 11a of the sampling mode control unit 11 and decoded at the timing when this signal (k) rises.

【0032】サンプリングモード制御部11のコンパレ
ータ11bは予め比較値をもっており(例えば、デコー
ド値≦3の時、信号(コ)=”L”、信号(サ)=信号
(シ)=”H”、3<デコード値≦6の時、信号(サ)
=”L”、信号(コ)=信号(シ)=”H”、デコード
値>6の時、信号(シ)=”L”、信号(コ)=信号
(サ)=”H”とする(なお、初期値は信号(コ)=信
号(サ)=”H”、信号(シ)=”L”である)。デコ
ードされた結果(デコード値=4とする)により図8の
<5>のタイミングで信号(サ)=”L”、信号(コ)
=信号(シ)=”H”となる。一方、前記信号(ケ)の
タイミング<5>での立ち上がり信号は、F/F10c
にも入力され、F/F10cのQ出力信号(オ)は”
H”から”L”となり、信号(サ)=”L”なのでMM
ODE信号のみ”L”となる。MMODE=”L”なの
で、サンプリング電圧駆動部7が中速モードのサンプリ
ング電圧を印加する。正逆確定モードから高速モードに
移行する場合は、デコードされた値が3以下の場合であ
り、その他の動作タイミングは中速の場合と同じなので
説明は省略する。
The comparator 11b of the sampling mode control section 11 has a comparison value in advance (for example, when the decoding value ≦ 3, the signal (co) = “L”, the signal (sa) = the signal (h) = “H”, When 3 <decode value ≦ 6, signal (S)
= "L", signal (co) = signal (h) = "H", and when decode value> 6, signal (h) = "L" and signal (h) = signal (h) = "H" (Note that the initial values are signal (co) = signal (sa) = "H" and signal (shi) = "L"). At the timing of <5> in FIG. 8, the signal (sa) = “L” and the signal (c) according to the decoded result (decoded value = 4)
= Signal (S) = "H". On the other hand, the rising signal at the timing <5> of the signal (f) is the F / F 10c.
And the Q output signal (E) of the F / F 10c is "
From "H" to "L", and since the signal (S) = "L", MM
Only the ODE signal becomes “L”. Since MMODE = “L”, the sampling voltage drive unit 7 applies the medium speed mode sampling voltage. When the mode shifts from the forward / reverse determination mode to the high-speed mode, the decoded value is 3 or less, and the other operation timings are the same as those in the case of the medium speed, and thus the description is omitted.

【0033】次に、正逆確定モードになった後、デコー
ドタイミング発生部12に立ち上がり信号が発生しない
(PA信号が2回立ち下がらない)場合の低速モードに
移行する動作を図9に示す。PA信号の1回目の立ち下
がり(図9の<6>のタイミング)でデコードタイミン
グ発生部12のF/F12bのQ出力(キ)は”L”か
ら”H”に変化するが、PA信号の2回目の立ち下がり
がないため、F/F12cのQ出力(ク)は”L”レベ
ルのままとなり、信号(ケ)も依然として”L”のまま
である。この状態では永久に正逆確定モードを抜けられ
ず、a,b両側に常に速いサンプリングが行われ、消費
電流の無駄であるため、正逆確定モード制御部10はカ
ウンタ10bによって所定の時間が経過するとタイムオ
ーバー信号(セ)を出力する(図9のタイミング<7
>)。信号(セ)の立ち上がり信号により、信号(オ)
は”H”から”L”となり、信号(シ)=”L”である
のでLMODB=”L”となる。LMODE=”L”で
あるのでサンプリング電圧駆動部7は低速モードのサン
プリング電圧を印加する。
Next, FIG. 9 shows an operation for shifting to the low-speed mode in the case where no rising signal is generated in the decode timing generation section 12 (the PA signal does not fall twice) after the normal / reverse determination mode is set. At the first falling edge of the PA signal (timing <6> in FIG. 9), the Q output (G) of the F / F 12b of the decode timing generator 12 changes from "L" to "H". Since the second fall does not occur, the Q output (h) of the F / F 12c remains at the “L” level, and the signal (h) still remains at the “L” level. In this state, the normal / reverse determination mode cannot be exited forever, fast sampling is always performed on both sides a and b, and the current consumption is wasted. Then, a time-over signal is output (timing <7 in FIG. 9).
>). The signal (E) is generated by the rising signal of the signal (S).
Changes from “H” to “L”, and since the signal (S) = “L”, LMODB = “L”. Since LMODE = “L”, the sampling voltage driver 7 applies the sampling voltage in the low-speed mode.

【0034】また、スイッチSW1は、図7に示したよ
うに、HMODE・MMODEのいずれかが”L”(高
速or中速モード)の時、PA信号をそのまま出力し
て、PA信号を基に積算値としてカウントし、HMOD
E=MMODE=”H”(低速or正逆確定モードor
停止&微流量モード)の時合成パルスを出力して、合成
パルスを基に積算値としてカウントする。
As shown in FIG. 7, when either HMODE or MMODE is "L" (high-speed or medium-speed mode), the switch SW1 outputs the PA signal as it is and outputs the PA signal based on the PA signal. Count as integrated value, HMOD
E = MMODE = “H” (low speed or forward / reverse determination mode or
In the case of (stop & micro flow rate mode), a composite pulse is output and counted as an integrated value based on the composite pulse.

【0035】ここで、それぞれのモードのサンプリング
パターンは、例えば低速はa,b両側サンプリング、サ
ンプリング間隔(T)であり、中速は一部a,b両側サ
ンプリング(サンプリング間隔(T/4))、残りaの
みサンプリング(サンプリング間隔(T))、高速はa
側のみサンプリング(サンプリング間隔(T/2))、
正逆確定モードは、a,b両側サンプリング(サンプリ
ング間隔(T/4))のように予め用意されている。
Here, the sampling pattern of each mode is, for example, a low-speed sampling with a and b both-side sampling and a sampling interval (T), and a medium-speed sampling pattern with a part of a and b both-side sampling (sampling interval (T / 4)). , Sampling only the remaining a (sampling interval (T))
Side only sampling (sampling interval (T / 2)),
The forward / reverse determination mode is prepared in advance such as sampling on both sides a and b (sampling interval (T / 4)).

【0036】図10は、本発明の更に他の実施形態にお
ける構成を示す回路図である。同図において、1および
2は図1に示したものと同じである。16は低速サンプ
リングモードから他のサンプリングモードに、あるいは
他のサンプリングモードから低速モードに切り替わった
時の正逆情報を無効にするための低速モード変化時マス
ク信号出力部、17は正逆情報ラッチタイミング発生
部、18はモードが決定した後にモード変化がなかった
時のみ正逆情報をラッチする正逆情報ラッチ部、19は
積算部の正逆情報として正逆判定部の出力をそのまま使
うか、正逆情報ラッチ部18の出力信号を使うかを切り
替えるスイッチSW2、20は高速モードでは常に正逆
情報を無効にする高速用マスク信号出力部である。ラッ
チタイミング発生部17は例えば図6に示したデコード
タイミング発生部12と同じ回路構成で実施することが
できる。
FIG. 10 is a circuit diagram showing a configuration according to still another embodiment of the present invention. In the figure, 1 and 2 are the same as those shown in FIG. Reference numeral 16 denotes a low-speed mode change mask signal output unit for invalidating normal / reverse information when switching from the low-speed sampling mode to another sampling mode or from another sampling mode to the low-speed mode. A generation unit 18 is a forward / reverse information latch unit that latches forward / reverse information only when there is no mode change after the mode is determined. Switches SW2 and SW20 for switching whether to use the output signal of the reverse information latch section 18 are high-speed mask signal output sections that always invalidate the forward / reverse information in the high-speed mode. The latch timing generator 17 can be implemented with, for example, the same circuit configuration as the decode timing generator 12 shown in FIG.

【0037】以上のように構成された装置の動作につい
て図11のタイミングチャートを用いて詳細に説明す
る。常時電圧を印加した場合の磁気センサ1の出力を図
11に示す(A),(B)とし、サンプリング電圧駆動
部7より印加されるサンプリング信号がSMPAおよび
SMPBであった場合、PA,PB信号と正逆判定部&
合成パルス出力部2の出力である合成パルスと正逆情報
は図11のようになる(ここでPA,PB信号が同時に
変化した場合にも合成パルスが発生するようにPB信号
をディレイ回路により少し遅れさせている)。基本的に
低速モードではラッチタイミング発生部17の出力信号
(ケ)(図6に示したデコードタイミング発生部12の
信号(ケ)の動作と同じ)の立ち上がり信号が正逆情報
ラッチ部18に入力されたとき正逆情報が更新される。
The operation of the apparatus configured as described above will be described in detail with reference to the timing chart of FIG. The outputs of the magnetic sensor 1 when a voltage is constantly applied are shown in FIGS. 11A and 11B, and when the sampling signals applied from the sampling voltage driver 7 are SMPA and SMPB, PA and PB signals And forward / reverse judgment part &
FIG. 11 shows a composite pulse output from the composite pulse output unit 2 and forward / reverse information. (Here, even if the PA and PB signals change simultaneously, the PB signal is slightly reduced by a delay circuit so that a composite pulse is generated. Is delayed). Basically, in the low-speed mode, the rising signal of the output signal (k) of the latch timing generation unit 17 (same as the operation of the signal (k) of the decode timing generation unit 12 shown in FIG. 6) is input to the forward / reverse information latch unit 18. When this is done, the forward / reverse information is updated.

【0038】すなわち、信号(ケ)の最初の立ち上がり
時(図11に示す<8>のタイミング)で正逆情報ラッ
チ部18の入力信号(ナ)が立ち上がり、正逆情報ラッ
チ部18に正逆情報がラッチされる。信号(ケ)の2つ
目の立ち上がり(<9>のタイミング)ではモードが低
速から高速に移行しており、低速モード変化時マスク信
号出力部16の信号(タ)の斜線部により信号(ケ)は
マスクされ、正逆情報ラッチ部18の入力(ナ)は”
L”レベルのままである。すなわち、正逆情報ラッチ部
18の出力Qは変化しない(Iの区間は高速の波形を低
速モードでサンプリングしているため<10>のタイミン
グで正逆判定部2の出力は正転なのに逆転と認識してい
るが正逆情報は取り込まない)。信号(ケ)の3つ目の
立ち上がりと4つ目の立ち上がりは、高速用マスク信号
出力部20の出力信号(ツ)の斜線部によりマスクさ
れ、正逆情報ラッチ部18の入力(ナ)は”L”レベル
のままである(高速モードでは正逆情報を取り込まな
い)。
That is, the input signal (n) of the forward / reverse information latch section 18 rises at the first rise of the signal (q) (timing <8> shown in FIG. 11), and the forward / reverse information latch section 18 forward / reverse. Information is latched. At the second rising edge of the signal (q) (timing <9>), the mode shifts from the low speed to the high speed. When the low speed mode changes, the signal (q) of the mask signal output unit 16 is indicated by the hatched portion of the signal (q). ) Is masked, and the input (n) of the forward / reverse information latch unit 18 is "
In other words, the output Q of the forward / reverse information latch unit 18 does not change (in the section I, the high-speed waveform is sampled in the low-speed mode; Is recognized as a reverse rotation though it is a normal rotation, but does not capture the normal / reverse information.) The third rising edge and the fourth rising edge of the signal (q) correspond to the output signal of the high-speed mask signal output unit 20 ( The input (n) of the forward / reverse information latch unit 18 remains at the “L” level (the forward / reverse information is not taken in the high-speed mode).

【0039】また、信号(ケ)の5つ目の立ち上がりで
はモードが高速から低速に移行しており、低速モード変
化時マスク信号出力部16の信号(ト)の斜線部により
信号(ケ)はマスクされ正逆情報ラッチ部18の入力
(ナ)は”L”レベルのままである(ここでも正逆情報
は取り込まない)。信号(ケ)の6つ目の立ち上がりで
はモード変化もなく低速モードのままであるので、低速
モード変化時マスク信号出力部16および高速用マスク
信号出力部20のマスク信号は出力されず、正逆情報ラ
ッチ部18の入力信号(ナ)は”L”から”H”となり
正逆情報が取り込まれる。低速モードから中速モードに
移行するときおよび、中速から低速に移行するときの動
作も高速移行時と同様であり説明は省略する。
At the fifth rising of the signal (G), the mode shifts from the high speed to the low speed. When the low speed mode changes, the signal (G) is indicated by the hatched portion of the signal (G) of the mask signal output unit 16. The input (n) of the forward / reverse information latch unit 18 is masked and remains at the “L” level (again, forward / reverse information is not taken in). At the sixth rising edge of the signal (g), the mode is not changed and the low-speed mode is maintained. Therefore, when the low-speed mode is changed, the mask signals of the mask signal output unit 16 and the high-speed mask signal output unit 20 are not output. The input signal (n) of the information latch unit 18 changes from "L" to "H", and the forward / reverse information is captured. The operation when shifting from the low-speed mode to the medium-speed mode and when shifting from the medium-speed to the low-speed mode are the same as those at the time of shifting to the high-speed mode, and the description is omitted.

【0040】図12は、本発明の別の実施形態における
構成を示す回路図である。同図において、2,18,1
9は図10に示したものと同じものである。21は中速
用正逆ラッチ信号出力部であり、以下において図19を
参照して説明するように第1、第2および第3の分周信
号(A),(B),(C)およびMMODE信号を入力
とするANDゲート、ORゲート、インバータで構成さ
れ、22は中速モード変化時マスク信号出力部であり、
インバータおよびF/F22aで構成され、24は中速
用正逆情報ラッチ許可部であり、ディレイ回路24a、
F/F24b,24c,24d、ANDゲート、ORゲ
ート、EX−ORゲートで構成されている。
FIG. 12 is a circuit diagram showing a configuration according to another embodiment of the present invention. In the figure, 2, 18, 1
9 is the same as that shown in FIG. Reference numeral 21 denotes a medium-speed forward / reverse latch signal output unit, as will be described below with reference to FIG. 19, the first, second and third frequency-divided signals (A), (B), (C) and An AND gate, an OR gate, and an inverter which receive an MMODE signal as inputs are provided. Reference numeral 22 denotes a medium-speed mode change mask signal output unit.
24 is a medium-speed forward / reverse information latch permitting unit, and includes a delay circuit 24a,
F / Fs 24b, 24c, and 24d, an AND gate, an OR gate, and an EX-OR gate.

【0041】中速用正逆ラッチ信号出力部21は、中速
モードのサンプリングパターンが、図19に示すよう
に、基準信号を順次分周した第1、第2および第3の分
周信号(A),(B),(C)によって画定される第1
ないし第8の区間z0,z1,z2,z3,z4,z
5,z6,z7を中速サンプリングモードの1周期と
し、該第1ないし第3の区間z0−z2が信号a,b両
側サンプリングであり、第4ないし第8の区間z3−z
7が信号a側のみサンプリングがあるというように電圧
を印加するサンプリングパターンであると定義された場
合(なお、第1から第8の区間z0−z7は、基準クロ
ックに同期しており、低速、中速、高速のモード変化は
信号aに同期している)、例えば図12のようにAND
ゲートとORゲートからなるゲート回路で実施できる。
中速用正逆ラッチ信号出力部21の出力Mは中速以外の
モードでは”L”レベルを出力し、中速モードであり、
かつz2からz3に移行するタイミング(図13の<11
><12>のタイミング)で”L”から”H”となり、中
速用正逆ラッチ信号Mを出力する。
The medium-speed forward / reverse latch signal output section 21 outputs the first, second, and third frequency-divided signals (the first, second, and third frequency-divided signals) obtained by dividing the frequency of the reference signal, as shown in FIG. A), the first defined by (B) and (C)
To the eighth section z0, z1, z2, z3, z4, z
5, z6, and z7 are defined as one cycle of the medium-speed sampling mode, the first to third sections z0 to z2 are both-side sampling of signals a and b, and the fourth to eighth sections z3-z
7 is defined as a sampling pattern for applying a voltage such that sampling is performed only on the signal a side (note that the first to eighth sections z0 to z7 are synchronized with the reference clock, Mode changes of medium speed and high speed are synchronized with the signal a), for example, as shown in FIG.
It can be implemented by a gate circuit including a gate and an OR gate.
The output M of the medium-speed forward / reverse latch signal output section 21 outputs an “L” level in a mode other than the medium speed, which is the medium speed mode.
And the timing of transition from z2 to z3 (<11 in FIG. 13).
><12>), the signal changes from “L” to “H”, and the medium-speed forward / reverse latch signal M is output.

【0042】中速モード変化時マスク信号出力部22の
動作を図13を用いて説明する。出力(ニ)は信号Mの
立ち下がりを検出するまで”L”レベルのままである。
すなわち、z0からz2の途中で他のモードから中速モ
ードに移行した場合(区間IV)、信号Mの立ち下がりが
ないため、出力(ニ)は”L”レベルのままであり、z
0からz2の区間全て中速モードである(区間V)にお
いてはz7からz0に移行するときM信号が立ち下がる
ため、信号(ニ)は”H”となる。こうしてz0からz
2の途中で中速モードになった場合は、信号(ニ)=”
L”で信号Mの立ち上がりがマスクされるため、ラッチ
信号は無効となり、正逆情報ラッチ部18の入力(フ)
は”L”のままであり(タイミング<11>)、z0から
z2の区間全て中速モードである場合は、信号(ニ)
=”H”で入力(フ)にラッチ信号が出力される(タイ
ミング<12>)(ただし、ここでは(ヒ)は常に”H”
と仮定している)。
The operation of the mask signal output section 22 when the medium speed mode is changed will be described with reference to FIG. The output (d) remains at "L" level until the falling of the signal M is detected.
That is, when the mode shifts from the other mode to the middle speed mode in the middle of z0 to z2 (section IV), the output (d) remains at “L” level because the signal M does not fall, and z
In the medium speed mode in all the sections from 0 to z2 (section V), the signal (d) becomes "H" because the M signal falls when the state shifts from z7 to z0. Thus from z0 to z
If the mode is changed to the middle speed mode in the middle of Step 2, the signal (d) = ”
Since the rise of the signal M is masked by L ", the latch signal becomes invalid, and the input (f)
Remains at "L" (timing <11>), and when the entire section from z0 to z2 is in the medium speed mode, the signal (d)
= “H”, a latch signal is output to the input (f) (timing <12>) (here, (h) is always “H”)
Is assumed).

【0043】中速用正逆情報ラッチ許可部24の動作を
図14を用いて説明する。図14の前半は中速用正逆ラ
ッチ許可部24が正常に正逆を検出した場合を示し、図
14の後半は正常に正逆を検出できなかった場合を示し
ている。なお、正常に検出できたか否かは、F/F24
b,24cにより検出し、PA信号が”H”レベルの状
態でPB信号が”L”から”H”あるいは”H”から”
L”に変化すると正逆が正常に検出できたとする。図1
4のタイミング<13>でF/F24dのQ出力(ヒ)
が”L”から”H”となり、ラッチ信号Mが入力(フ)
に出力される(タイミング<14>)。F/F24b,2
4c,24dのリセット信号(ノ)は信号Mと信号
(ニ)とにより制御され、図14のように斜線の間のみ
リセット解除される。すなわち、z0からz2の間に確
実に正逆を検出できたとき(タイミング<13>)のみ、
入力(フ)にラッチ信号が発生し(タイミング<14
>)、正逆ラッチ部18に正逆情報が取り込まれる。区
間(VI)のように正逆が検出できず信号(ヒ)が”H”
にならない場合は、ラッチ信号(フ)は発生しない。
The operation of the medium-speed forward / reverse information latch permission section 24 will be described with reference to FIG. The first half of FIG. 14 shows a case where the medium-speed forward / reverse latch permitting section 24 has normally detected normal / reverse, and the latter half of FIG. 14 shows a case where normal / reverse has not been normally detected. It should be noted that whether or not detection has been normally performed is determined by the F / F 24
b, 24c, and when the PA signal is at the “H” level, the PB signal is changed from “L” to “H” or from “H” to “H”.
When it changes to L ", it is assumed that the normal and reverse directions can be normally detected.
Q output of F / F 24d at timing <13> of 4 (h)
Changes from “L” to “H”, and the latch signal M is input (f).
(Timing <14>). F / F24b, 2
The reset signals (no) of 4c and 24d are controlled by the signal M and the signal (d), and the reset is released only during the diagonal lines as shown in FIG. That is, only when the forward / reverse is reliably detected between z0 and z2 (timing <13>),
A latch signal is generated at the input (f) (timing <14
>), The forward / reverse information is taken into the forward / reverse latch unit 18. As shown in section (VI), normal / reverse cannot be detected and signal (H) is "H".
Otherwise, no latch signal (f) is generated.

【0044】図15は、本発明の更に別の実施形態にお
ける構成を示す回路図である。同図において、17はラ
ッチタイミング発生部、25はモード移行があったとき
マスク信号を出力するモード移行時マスク信号出力部、
26はa,b両側サンプリングの時に正逆が正常に検出
できたときのみ正逆のラッチを許可する中速用正逆情報
ラッチ許可部、27は中速用正逆情報ラッチ許可部26
を初期化するリセット部、18は正逆情報をラッチする
正逆情報ラッチ部である。ラッチタイミング発生部17
は例えば図6に示したデコードタイミング発生部12と
同じ回路構成で実施することもできるが、ここでは簡略
化のためPA信号を反転させたものをディレイ回路17
aで遅らせたものとする。また、リセット部27は図2
に示したカウンタリセット部6と同じ回路構成で実施す
ることができる。中速用正逆情報ラッチ許可部26は、
z0からz2の区間で中速モードであるときのみリセッ
トが解除され動作する。
FIG. 15 is a circuit diagram showing a configuration of still another embodiment of the present invention. In the figure, reference numeral 17 denotes a latch timing generation unit; 25, a mode transition-time mask signal output unit that outputs a mask signal when a mode transition occurs;
Reference numeral 26 denotes a medium-speed forward / reverse information latch permitting unit for permitting forward / reverse latching only when forward / reverse can be normally detected during a and b both-side sampling;
Is a forward / reverse information latch unit for latching forward / reverse information. Latch timing generator 17
Can be implemented with the same circuit configuration as the decode timing generator 12 shown in FIG. 6, for example.
Let it be delayed by a. Also, the reset unit 27 is provided in FIG.
Can be implemented with the same circuit configuration as the counter reset unit 6 shown in FIG. The medium-speed forward / reverse information latch permission unit 26
The reset is released and the operation is performed only in the middle speed mode in the section from z0 to z2.

【0045】図16〜18を用いて正逆情報の取り込み
方法について説明する。中速モードでPA,PB信号の
動作が図16に示すものであった場合、ディレイ回路1
7aの信号(ヘ)およびリセット部27のF/F27a
の出力信号(ホ)の動作は図16のようになる。中速用
正逆情報ラッチ許可部26の信号(マ)は図16の<15
>のタイミングで立ち上がり、信号(ホ)からリセット
信号が入力され”L”レベルとなる。中速用正逆情報ラ
ッチ許可部26の出力信号(ミ)はその入力信号(マ)
が立ち上がることにより”H”となり、リセット信号
(ホ)で”L”となる。ここで信号(ヘ)と(ミ)の重
なり分だけANDゲート31の信号(ム)は”H”とな
り、信号(ム)の立ち上がりで正逆情報は正逆情報ラッ
チ部18にラッチされる。図16のタイミング<16>で
は区間(VII) の間に正逆情報が確定されないので、AN
Dゲート31の出力(ム)にラッチ信号は発生しない。
A method of capturing the forward / reverse information will be described with reference to FIGS. When the operation of the PA and PB signals in the medium speed mode is as shown in FIG.
7a signal (f) and the F / F 27a of the reset unit 27
The operation of the output signal (e) is as shown in FIG. The signal (ma) of the medium-speed forward / reverse information latch permission section 26 is <15 in FIG.
>, The reset signal is input from the signal (e), and the signal becomes “L” level. The output signal (m) of the medium-speed forward / reverse information latch permission section 26 is the input signal (m)
Rises to "H", and becomes "L" by the reset signal (e). Here, the signal (M) of the AND gate 31 becomes "H" for the overlap of the signals (F) and (MI), and the forward / reverse information is latched by the forward / reverse information latch unit 18 at the rise of the signal (MU). At timing <16> in FIG. 16, since the reciprocal information is not determined during the interval (VII),
No latch signal is generated at the output (D) of the D gate 31.

【0046】中速モードでPA,PB信号の動作が図1
7であった場合、タイミング<17><18>で正逆が確定
されるので、ANDゲート31の出力(ム)にラッチ信
号が発生する。なお、タイミング<18>で入力信号
(マ)が”H”となったのをF/F26aで保持してい
るため(信号(ミ)が”H”のまま)、PA信号の立ち
下がりがz2からz3に移行した後に発生してもAND
ゲートの出力(ム)にラッチ信号が発生するので、正逆
情報を確実に取り込むことができる。
The operation of the PA and PB signals in the medium speed mode is shown in FIG.
If it is 7, since the forward / reverse is determined at timing <17><18>, a latch signal is generated at the output (M) of the AND gate 31. Since the F / F 26a holds that the input signal (MA) has become "H" at the timing <18> (the signal (MI) remains "H"), the falling edge of the PA signal is z2. AND occurs even after the transition from
Since a latch signal is generated at the output (m) of the gate, forward / reverse information can be reliably captured.

【0047】図18にモードが移行する場合の動作を示
す。タイミング<19><20>では図17と同じように信
号(ム)にラッチ信号が発生する。しかし、タイミング
<21>で高速モードに移行するためモード移行時マスク
信号出力部25の出力信号(モ)の斜線部により信号
(ム)はマスクされ、ANDゲート32の出力信号
(ヤ)は”L”のままであり、モード移行時は正逆情報
は取り込まない。
FIG. 18 shows the operation when the mode shifts. At timings <19> and <20>, a latch signal is generated in the signal (m) as in FIG. However, since the mode shifts to the high-speed mode at the timing <21>, the signal (M) is masked by the hatched portion of the output signal (M) of the mask signal output unit 25 at the time of the mode shift, and the output signal (Y) of the AND gate 32 becomes "". L ", and no forward / reverse information is taken in at the time of mode transition.

【0048】[0048]

【発明の効果】以上説明したように、請求項1記載の本
発明によれば、磁気センサから出力される第1および第
2の信号の一方の周期を測定し、この測定結果が所定の
周期以上になった場合にオーバーフロー信号を出力し、
磁気センサのサンプリング信号を遅いサンプリングに切
り替え、磁気センサの信号出力の変化を検出した場合、
速いサンプリングに切り替えるように制御するので、回
転体が停止している時または非常に遅く回転している時
には磁気センサの電圧印加間隔を遅くして、消費電流を
低減することができ、また状態変化検出時には再度磁気
センサの電圧印加間隔を速くして、カウント誤差を最小
限に抑えることができる。
As described above, according to the first aspect of the present invention, one cycle of the first and second signals output from the magnetic sensor is measured, and the measurement result is determined by the predetermined cycle. If this is the case, an overflow signal is output,
If the sampling signal of the magnetic sensor is switched to slow sampling and a change in the signal output of the magnetic sensor is detected,
Since control is performed to switch to fast sampling, when the rotating body is stopped or rotating very slowly, the voltage application interval of the magnetic sensor can be delayed to reduce current consumption and change the state. At the time of detection, the voltage application interval of the magnetic sensor can be increased again to minimize the counting error.

【0049】また、請求項2記載の本発明によれば、状
態変化を検出した場合、速いサンプリング信号を供給し
て回転方向を確定し、周期測定結果に応じて磁気センサ
のサンプリング信号を低速、中速または高速サンプリン
グ信号に制御し、所定の周期以下になった場合、合成パ
ルス出力部の信号を積算パルスとして使用するように切
り替えるので、停止状態から急に速い回転になった場合
でも正逆を正しく判定でき、合成パルスも発生し、積算
を適確に行うことができ、カウント誤差を最小にするこ
とができるとともに、常に正逆判定&合成パルス出力部
の信号を積算パルスおよび正逆情報として使用する場合
は磁気センサの電圧印加間隔を非常に速くしなければ磁
気センサの出力が回転体の回転速度に追従できないが、
低速と中速の一部のみに正逆判定部の正逆情報を使用
し、低速のみに合成パルス出力部の信号を積算パルスと
して使用するため、磁気センサの電圧印加間隔を粗くす
ることができ、消費電流を低減することができる。ま
た、中速の一部および高速サンプリングモードではb側
の電圧印加を停止するので消費電流を更に低減すること
ができる。
According to the second aspect of the present invention, when a state change is detected, a fast sampling signal is supplied to determine the rotation direction, and the sampling signal of the magnetic sensor is reduced at a low speed according to the cycle measurement result. Controls to medium or high speed sampling signal, and when it becomes shorter than the predetermined period, it switches to use the signal of the synthesized pulse output unit as an integrated pulse, so even if the rotation suddenly changes from the stop state to the fast rotation, it reverses Can be determined correctly, a synthesized pulse is also generated, integration can be performed accurately, the counting error can be minimized, and the signal of the forward / reverse determination & synthesized pulse output section is always integrated pulse and forward / reverse information. When used as, the output of the magnetic sensor cannot follow the rotation speed of the rotating body unless the voltage application interval of the magnetic sensor is made very fast,
Since the forward / reverse information of the forward / reverse determination unit is used only for a part of low speed and medium speed, and the signal of the combined pulse output unit is used as an integration pulse only for low speed, the voltage application interval of the magnetic sensor can be made coarse. Thus, current consumption can be reduced. In addition, since the application of the voltage on the b side is stopped in a part of the medium speed and the high speed sampling mode, the current consumption can be further reduced.

【0050】更に、請求項3記載の本発明によれば、低
速サンプリングモードから他のサンプリングモードに切
り替わった場合または他のサンプリングモードから低速
サンプリングモードに切り替わった場合の正逆情報を無
効にし、モード決定後にモードに変化がない時のみ正逆
情報をラッチし、正逆情報をそのまま使用するかまたは
正逆情報ラッチ部からの出力信号を使用するかを切り替
え、高速サンプリングモードが第1の信号側のみに電圧
を印加するサンプリングパターンである場合、正逆情報
を常に無効にしている。すなわち、低速モードから中速
モードまたは高速モードに、また他のモードから低速モ
ードに移行する時、中速モードの回転を低速モードの電
圧印加間隔で磁気センサに電圧を印加しているので、正
回転を逆回転と認識することがあり、このため低速モー
ドから他のモードに、他のモードから低速モードに移行
するときには、低速モード変化時マスク信号出力部の信
号により正逆情報を取り込まないので正しく積算値をカ
ウントすることができる。また、高速モードでは、a側
のみの電圧印加のため正逆を判定できないため、高速用
マスク信号出力部の信号により正逆情報を取り込まない
ようにすることができる。
Further, according to the present invention, the normal / reverse information when switching from the low-speed sampling mode to another sampling mode or when switching from another sampling mode to the low-speed sampling mode is invalidated. Only when there is no change in the mode after the determination, the forward / reverse information is latched, and switching is made between using the forward / reverse information as it is or using the output signal from the forward / reverse information latch unit. In the case of the sampling pattern in which the voltage is applied only to the normal pattern, the reciprocal information is always invalidated. That is, when shifting from the low-speed mode to the medium-speed mode or the high-speed mode and from another mode to the low-speed mode, the rotation of the medium-speed mode is applied to the magnetic sensor at the voltage application interval of the low-speed mode. The rotation may be recognized as reverse rotation, so when shifting from the low-speed mode to another mode and from another mode to the low-speed mode, the forward / reverse information is not taken in by the signal of the mask signal output unit at the time of the low-speed mode change. The integrated value can be correctly counted. Further, in the high-speed mode, the forward / reverse cannot be determined because only the voltage on the a side is applied, so that the forward / reverse information can be prevented from being taken in by the signal of the high-speed mask signal output unit.

【0051】請求項4記載の本発明によれば、中速サン
プリングモード状態において第1および第2の両信号側
のサンプリング時に回転体の正逆を正常に検出できたと
きのみ正逆情報を取り込み、第1および第2の両信号側
サンプリングから第1の信号側のみサンプリング状態に
移行するとき正逆情報を取り込み、第1および第2の両
信号側サンプリング区間の始めから終わりまで中速サン
プリングモードでない場合、中速用正逆ラッチ信号を無
効にする。すなわち、第1の区間z0の始めから第3の
区間z2の終わりまで中速モードであった時および正逆
が正常に検出できたときのみ、第3の区間z2から第4
の区間z3に移行するとき正逆情報を取り込むので、中
速回転においても確実に正逆情報を取り込めるので、カ
ウント誤差を抑えることができる。
According to the fourth aspect of the present invention, the forward / reverse information is fetched only when the forward / reverse of the rotating body can be normally detected at the time of sampling on both the first and second signal sides in the medium speed sampling mode state. When the transition from the first and second signal-side sampling to only the first signal-side sampling state is performed, normal / reverse information is fetched, and the medium-speed sampling mode is performed from the beginning to the end of the first and second signal-side sampling sections. If not, invalidate the medium-speed forward / reverse latch signal. That is, only when the mode is the medium speed mode from the beginning of the first section z0 to the end of the third section z2 and when normal / reverse is normally detected, the fourth section z2 to the fourth section z4
Since the forward / reverse information is fetched when moving to the section z3, the forward / reverse information can be fetched reliably even at the medium speed rotation, so that the counting error can be suppressed.

【0052】また、請求項5記載の本発明によれば、中
速サンプリングモード状態において第1の信号の1周期
を検出する度にラッチ信号を出力し、第1および第2の
両信号側サンプリングの時に正逆が正常に検出できたと
きのみ正逆情報のラッチを許可し、サンプリングモード
の移行があったとき正逆情報をマスクするため、中速モ
ードにおいて正逆が正常に検出できる毎に確実な正逆情
報を瞬時に取り込め、カウント誤差を最小限に抑えるこ
とができる。
According to the fifth aspect of the present invention, a latch signal is output each time one cycle of the first signal is detected in the middle-speed sampling mode, and the first and second signal-side samplings are performed. Only when forward / reverse can be normally detected at the time of, the forward / reverse information latch is enabled, and when there is a transition to the sampling mode, the forward / reverse information is masked. Reliable forward / reverse information can be captured instantaneously, and count errors can be minimized.

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

【図1】本発明の一実施形態に係わる電子式水道メータ
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an electronic water meter according to an embodiment of the present invention.

【図2】図1の実施形態の要部の詳細な構成を示す回路
図である。
FIG. 2 is a circuit diagram showing a detailed configuration of a main part of the embodiment of FIG. 1;

【図3】図1の実施形態の作用を示すタイミング図であ
る。
FIG. 3 is a timing chart showing the operation of the embodiment of FIG. 1;

【図4】図1の実施形態の作用を示すタイミング図であ
る。
FIG. 4 is a timing chart showing the operation of the embodiment of FIG. 1;

【図5】本発明の他の実施形態の構成を示すブロック図
である。
FIG. 5 is a block diagram showing a configuration of another embodiment of the present invention.

【図6】図5の実施形態の要部の詳細な構成を示す回路
図である。
FIG. 6 is a circuit diagram illustrating a detailed configuration of a main part of the embodiment of FIG. 5;

【図7】図5の実施形態に使用されているスイッチの構
成を示す回路図である。
FIG. 7 is a circuit diagram showing a configuration of a switch used in the embodiment of FIG.

【図8】図5の実施形態の作用を示すタイミング図であ
る。
FIG. 8 is a timing chart showing the operation of the embodiment of FIG. 5;

【図9】図5の実施形態の作用を示すタイミング図であ
る。
FIG. 9 is a timing chart showing the operation of the embodiment of FIG. 5;

【図10】本発明の更に他の実施形態の構成を示すブロ
ック図である。
FIG. 10 is a block diagram showing a configuration of still another embodiment of the present invention.

【図11】図10の実施形態の作用を示すタイミング図
である。
FIG. 11 is a timing chart showing the operation of the embodiment of FIG. 10;

【図12】本発明の別の実施形態の構成を示す回路図で
ある。
FIG. 12 is a circuit diagram showing a configuration of another embodiment of the present invention.

【図13】図12の実施形態の作用を示すタイミング図
である。
FIG. 13 is a timing chart showing the operation of the embodiment of FIG.

【図14】図12の実施形態の作用を示すタイミング図
である。
FIG. 14 is a timing chart showing the operation of the embodiment of FIG.

【図15】本発明の更に別の実施形態の構成を示す回路
図である。
FIG. 15 is a circuit diagram showing a configuration of still another embodiment of the present invention.

【図16】図15の実施形態の作用を示すタイミング図
である。
FIG. 16 is a timing chart showing the operation of the embodiment of FIG.

【図17】図15の実施形態の作用を示すタイミング図
である。
FIG. 17 is a timing chart showing the operation of the embodiment in FIG. 15;

【図18】図15の実施形態の作用を示すタイミング図
である。
FIG. 18 is a timing chart showing the operation of the embodiment of FIG.

【図19】中速サンプリングモードのパターン例を示す
タイミング図である。
FIG. 19 is a timing chart showing an example of a pattern in a medium-speed sampling mode.

【図20】従来の電子式水道メータの構成を示すブロッ
ク図である。
FIG. 20 is a block diagram showing a configuration of a conventional electronic water meter.

【図21】図20に示すブロックの詳細な構成を示す回
路図である。
21 is a circuit diagram showing a detailed configuration of a block shown in FIG. 20.

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

1 磁気センサ 2 正逆判定部&合成パルス出力部 3 状態変化検出部 4 停止&微流量モード制御部 5 周期測定部 6 カウンタリセット部 7 サンプリング電圧駆動部 10 正逆確定モード制御部 11 サンプリングモード制御部 12 デコードタイミング発生部 16 低速モード変化時マスク信号出力部 17 正逆情報ラッチタイミング発生部 18 正逆情報ラッチ部 20 高速用マスク信号出力部 21 中速用正逆ラッチ信号出力部 22 中速モード変化時マスク信号出力部 24 中速用正逆ラッチ許可部 REFERENCE SIGNS LIST 1 magnetic sensor 2 forward / reverse determination section & composite pulse output section 3 state change detection section 4 stop & fine flow mode control section 5 cycle measurement section 6 counter reset section 7 sampling voltage drive section 10 forward / reverse determination mode control section 11 sampling mode control Unit 12 Decode timing generation unit 16 Low-speed mode change mask signal output unit 17 Forward / reverse information latch timing generation unit 18 Forward / reverse information latch unit 20 High-speed mask signal output unit 21 Medium-speed forward / reverse latch signal output unit 22 Medium-speed mode Change-time mask signal output section 24 Medium-speed forward / reverse latch enable section

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 水道使用量に応じて回転する回転体の回
転数を磁気センサによって磁気的に検出して、第1およ
び第2の信号を出力し、該第1および第2の信号に基づ
いて前記回転体の回転方向を示す正逆情報および該第1
および第2の信号の合成パルスを積算部に出力して水道
使用量を積算する電子式水道メータであって、前記磁気
センサから出力される前記第1および第2の信号の一方
の周期を測定し、この測定結果が所定の周期以上になっ
た場合にオーバーフロー信号を出力する周期測定部と、
前記オーバーフロー信号を受け、前記磁気センサのサン
プリング信号を遅いサンプリングに切り替えるように制
御する制御信号を出力して停止・微流量モードを設定す
る停止・微流量モード制御部と、該停止・微流量モード
制御部によって設定された前記停止・微流量モードの遅
いサンプリング状態において前記磁気センサが出力する
信号の変化を検出した場合、速いサンプリングに切り替
えるように制御する制御信号を出力する状態変化検出部
とを有することを特徴とする電子式水道メータ。
1. A magnetic sensor for magnetically detecting the number of revolutions of a rotating body that rotates according to the amount of water used, outputs first and second signals, and outputs the first and second signals based on the first and second signals. Forward / reverse information indicating the rotation direction of the rotating body;
And an integrated water meter that outputs a combined pulse of the second signal to an integrating unit to integrate the amount of water used, and measures one cycle of the first and second signals output from the magnetic sensor. A period measuring unit that outputs an overflow signal when the measurement result is equal to or longer than a predetermined period;
A stop / fine flow mode control unit that receives the overflow signal, outputs a control signal for controlling the sampling signal of the magnetic sensor to switch to slow sampling, and sets a stop / fine flow mode, and the stop / fine flow mode When detecting a change in the signal output by the magnetic sensor in the slow sampling state of the stop / micro flow rate mode set by the control unit, a state change detection unit that outputs a control signal that controls switching to fast sampling. An electronic water meter, comprising:
【請求項2】 前記状態変化検出部が状態変化を検出し
た場合、前記回転体の回転方向を確定するために速いサ
ンプリング信号を前記第1および第2の信号の両方に供
給する正逆確定モード制御部と、前記周期測定部の測定
結果に応じて前記磁気センサのサンプリング信号を低
速、中速および高速サンプリング信号のいずれかに制御
して、対応するサンプリングモードを設定するサンプリ
ングモード制御部と、前記周期測定部の測定結果が所定
の周期以下になった場合、前記合成パルスの代わりに前
記第1または第2の信号を積算部に出力すべく切り替え
る合成パルス切り替えスイッチとを有することを特徴と
する請求項1記載の電子式水道メータ。
2. A forward / reverse determination mode for supplying a fast sampling signal to both the first and second signals in order to determine a rotation direction of the rotating body when the state change detection unit detects a state change. A control unit, a sampling mode control unit that controls the sampling signal of the magnetic sensor to one of a low speed, a medium speed, and a high speed sampling signal according to a measurement result of the period measurement unit, and sets a corresponding sampling mode, When the measurement result of the period measuring unit is equal to or shorter than a predetermined period, a synthesized pulse switch that switches the first or second signal to the integrating unit instead of the synthesized pulse. The electronic water meter according to claim 1, wherein
【請求項3】 前記サンプリングモード制御部によって
設定されたサンプリングモードが低速サンプリングモー
ドから他のサンプリングモードに切り替わった場合また
は他のサンプリングモードから低速サンプリングモード
に切り替わった場合の前記正逆情報を無効にする低速モ
ード変化時マスク信号出力部と、前記正逆情報をラッチ
するタイミングを発生する正逆情報ラッチタイミング発
生部と、前記サンプリングモードが決定した後に該サン
プリングモードに変化がない時のみ前記正逆情報をラッ
チする正逆情報ラッチ部と、前記正逆情報をそのまま使
用するかまたは前記正逆情報ラッチ部からの出力信号を
前記積算部への正逆情報として使用するかを切り替える
正逆情報切り替えスイッチと、前記サンプリングモード
制御部によって設定された高速サンプリングモードが前
記第1の信号側のみに電圧を印加するサンプリングパタ
ーンである場合、前記正逆情報を常に無効にする高速用
マスク信号出力部とを有することを特徴とする請求項2
記載の電子式水道メータ。
3. When the sampling mode set by the sampling mode control unit is switched from the low-speed sampling mode to another sampling mode, or when the sampling mode is switched from another sampling mode to the low-speed sampling mode, the normal / inverse information is invalidated. A low-speed mode change-time mask signal output unit, a normal / reverse information latch timing generation unit for generating a timing for latching the normal / reverse information, and the forward / reverse only when there is no change in the sampling mode after the sampling mode is determined. A forward / reverse information latch unit for latching information, and forward / reverse information switching for switching between using the forward / reverse information as it is or using an output signal from the forward / reverse information latch unit as forward / reverse information to the integrating unit Set by a switch and the sampling mode control unit And a high-speed mask signal output section for always invalidating the reciprocal information when the high-speed sampling mode is a sampling pattern for applying a voltage only to the first signal side.
Electronic water meter as described.
【請求項4】 前記中速サンプリングモードのサンプリ
ングパターンが、基準信号を順次分周した第1、第2お
よび第3の分周信号によって画定される第1ないし第8
の区間を中速サンプリングモードの1周期とし、該第1
ないし第3の区間が前記第1および第2の両信号側サン
プリングであり、第4ないし第8の区間が前記第1の信
号側のみサンプリングがあるというように電圧を印加す
るサンプリングパターンであると定義された場合、中速
サンプリングモード状態において前記第1および第2の
両信号側サンプリング時に前記回転体の正逆を正常に検
出できたときのみ正逆情報を取り込む中速用正逆情報ラ
ッチ許可部と、前記第1および第2の両信号側サンプリ
ングから第1の信号側のみサンプリング状態に移行する
とき正逆情報を取り込む中速用正逆ラッチ信号出力部
と、前記第1および第2の両信号側サンプリング区間の
始めから終わりまで中速サンプリングモードでない場
合、中速用正逆ラッチ信号を無効にする中速モード変化
時マスク信号出力部とを有することを特徴とする請求項
2記載の電子式水道メータ。
4. The first through eighth sampling patterns in the medium-speed sampling mode are defined by first, second and third frequency-divided signals obtained by sequentially dividing a reference signal.
Is defined as one cycle of the medium-speed sampling mode,
The third to third sections are sampling on both the first and second signal sides, and the fourth to eighth sections are sampling patterns for applying a voltage such that sampling is performed only on the first signal side. When defined, medium-speed forward / reverse information latch permission to take in forward / reverse information only when forward / reverse of the rotator can be normally detected during sampling on the first and second signal sides in the middle-speed sampling mode state. A medium-speed forward / reverse latch signal output unit for capturing forward / reverse information when shifting from the first and second signal-side sampling to the first signal-side sampling state only; and the first and second If the medium-speed sampling mode is not set from the beginning to the end of both signal-side sampling sections, the medium-speed mode change mask signal output unit that invalidates the medium-speed forward / reverse latch signal Electronic water meter according to claim 2, characterized in that it has.
【請求項5】 前記中速サンプリングモードのサンプリ
ングパターンが、基準信号を順次分周した第1、第2お
よび第3の分周信号によって画定される第1ないし第8
の区間を中速サンプリングモードの1周期とし、該第1
ないし第3の区間が前記第1および第2の両信号側サン
プリングであり、第4ないし第8の区間が前記第1の信
号側のみサンプリングがあるというように電圧を印加す
るサンプリングパターンであると定義された場合、中速
サンプリングモード状態において第1の信号の1周期を
検出する度にラッチ信号を出力するラッチ信号発生部
と、前記第1および第2の両信号側サンプリングの時に
正逆が正常に検出できたときのみ正逆情報のラッチを許
可する中速用正逆情報ラッチ許可部と、サンプリングモ
ードの移行があったとき正逆情報をマスクするモード移
行時モード出力部とを有することを特徴とする請求項2
記載の電子式水道メータ。
5. A first to eighth sampling patterns in the middle-speed sampling mode defined by first, second and third frequency-divided signals obtained by sequentially dividing a reference signal.
Is defined as one cycle of the medium-speed sampling mode,
The third to third sections are sampling on both the first and second signal sides, and the fourth to eighth sections are sampling patterns for applying a voltage such that sampling is performed only on the first signal side. When defined, a latch signal generating unit that outputs a latch signal each time one cycle of the first signal is detected in the medium-speed sampling mode state, and performs a forward / reverse operation at the time of both the first and second signal-side sampling. A medium-speed forward / reverse information latch permitting unit that permits latching of forward / reverse information only when a normal detection is possible, and a mode transition mode output unit that masks forward / reverse information when there is a transition to the sampling mode. 3. The method according to claim 2, wherein
Electronic water meter as described.
JP9050666A 1997-03-05 1997-03-05 Electronic type water meter Pending JPH10246662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9050666A JPH10246662A (en) 1997-03-05 1997-03-05 Electronic type water meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9050666A JPH10246662A (en) 1997-03-05 1997-03-05 Electronic type water meter

Publications (1)

Publication Number Publication Date
JPH10246662A true JPH10246662A (en) 1998-09-14

Family

ID=12865285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9050666A Pending JPH10246662A (en) 1997-03-05 1997-03-05 Electronic type water meter

Country Status (1)

Country Link
JP (1) JPH10246662A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002221439A (en) * 2001-01-25 2002-08-09 Toyo Keiki Co Ltd Electronic water service meter system
EP1278047A2 (en) * 2001-07-16 2003-01-22 Abb Research Ltd. Sampling method for flowmeters
JP2006276035A (en) * 2006-07-12 2006-10-12 Matsushita Electric Ind Co Ltd Apparatus for measuring quantity of flow
JP2011527415A (en) * 2008-07-08 2011-10-27 フィリップ・モーリス・プロダクツ・ソシエテ・アノニム Flow sensor system
CN103278200A (en) * 2013-05-20 2013-09-04 新奥科技发展有限公司 Gas flow detecting method
US8671773B2 (en) 2011-06-02 2014-03-18 Renesas Electronics Corporation Electronic flow meter

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002221439A (en) * 2001-01-25 2002-08-09 Toyo Keiki Co Ltd Electronic water service meter system
EP1278047A2 (en) * 2001-07-16 2003-01-22 Abb Research Ltd. Sampling method for flowmeters
EP1278047A3 (en) * 2001-07-16 2003-04-16 Abb Research Ltd. Sampling method for flowmeters
US6829543B2 (en) 2001-07-16 2004-12-07 Abb Research Ltd Sampling method for flowmeters
JP2006276035A (en) * 2006-07-12 2006-10-12 Matsushita Electric Ind Co Ltd Apparatus for measuring quantity of flow
JP2011527415A (en) * 2008-07-08 2011-10-27 フィリップ・モーリス・プロダクツ・ソシエテ・アノニム Flow sensor system
US8671773B2 (en) 2011-06-02 2014-03-18 Renesas Electronics Corporation Electronic flow meter
CN103278200A (en) * 2013-05-20 2013-09-04 新奥科技发展有限公司 Gas flow detecting method

Similar Documents

Publication Publication Date Title
JP3299636B2 (en) Jitter compensated low power phase locked loop and method
US6563349B2 (en) Multiplexor generating a glitch free output when selecting from multiple clock signals
WO2007060756A1 (en) Phase comparator and regulation circuit
JP4843480B2 (en) System, apparatus and method for providing a counter for scaling the operating frequency of a microprocessor
TW201030350A (en) Pulse period measuring method
JPH10246662A (en) Electronic type water meter
US7076159B2 (en) Method and apparatus for generating accurate fan tachometer readings
KR20020039350A (en) Apparatus for measuring intervals between signal edges
JP3080805B2 (en) Digital phase locked loop circuit
JP3768663B2 (en) Semiconductor memory device for generating burst mode control signal
US6973155B2 (en) Highly scalable glitch-free frequency divider
US6362668B1 (en) Circuit and method for frequency generator control
JPH11178380A (en) Motor speed controller
JP3218720B2 (en) Input signal edge time measuring circuit and digital PLL device
JP2008153754A (en) Semiconductor integrated circuit
JPH06244739A (en) Multiplexer circuit
JP3589527B2 (en) Displacement measuring device
JP2798125B2 (en) Digital signal synchronization circuit
JP4122128B2 (en) Edge detection circuit
JP3514532B2 (en) Clock signal generator
JP3622703B2 (en) Pulse train generation method and apparatus, and motor rotation speed command generation apparatus using the same
TWI282664B (en) Method of single delay line and working-cell number minimization for an all digital delay locking loop (ADDLL)
CN116483189A (en) Circuit system
TWI330466B (en) All-digital phase-locked loop circuit and control method thereof
JP2002312082A (en) Key input discriminating circuit