[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2006118960A - Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus - Google Patents

Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus Download PDF

Info

Publication number
JP2006118960A
JP2006118960A JP2004306492A JP2004306492A JP2006118960A JP 2006118960 A JP2006118960 A JP 2006118960A JP 2004306492 A JP2004306492 A JP 2004306492A JP 2004306492 A JP2004306492 A JP 2004306492A JP 2006118960 A JP2006118960 A JP 2006118960A
Authority
JP
Japan
Prior art keywords
counter
clock pulses
speed
rotation
counting
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
JP2004306492A
Other languages
Japanese (ja)
Inventor
Koji Sato
宏司 佐藤
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2004306492A priority Critical patent/JP2006118960A/en
Publication of JP2006118960A publication Critical patent/JP2006118960A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform wide-range and highly precise rotation speed count. <P>SOLUTION: Rotation pulses output at a period according to the rotation speed of a rotator are input. Clock pulses generated at a period shorter than that of the rotation pulses are counted during one period of the rotation pulses. The number of counted clock pulses is latched. The latched number of clock pulses is cumulatively subtracted from the number of clock pulses set as the number of clock pulses generated in a unit of time. The number of times of subtractions performed in the unit of time is counted. On the basis of the counted number, the rotation speed of the rotator is counted. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、マイコンによる回転速度演算を行うことなく、汎用のディジタルICを用いるだけで、広範囲かつ高精度の回転速度計数が可能な、回転体の回転速度計数装置及びその方法並びに回転体制御装置に関する。   The present invention relates to a rotational speed counting device for a rotating body, a method thereof, and a rotating body control device capable of counting rotational speed with a wide range and high accuracy only by using a general-purpose digital IC without performing a rotational speed calculation by a microcomputer. About.

自動車の内燃機関や車輪アンチロックブレーキシステム、さらに駆動モータなどの回転体制御を行う装置では、センサから得られる検出信号に基づいて運転中のこれら装置の回転数を任意のビット数のディジタルデータに数値化し、このディジタルデータを回転体制御に用いている。回転数は低速から高速まで高精度で検出することが求められるため、たとえば、下記特許文献1に記載されている発明では、低回転数領域から高回転数領域までの演算を可能にするために、「回転数に応じて検出パルスを生成する回転センサと、検出パルスに基づいて回転数を演算し、エンジンを制御するマイコンとを備え、検出パルスは、複数のパルス系列を含み、マイコンは、エンジンの運転領域に応じて複数のパルス系列のうちの1つのパルス系列を選択し、選択されたパルス系列の検出時刻およびパルス数に基づいてエンジンに関連した回転数を演算する」ようにし、演算周期を変更せずに、低回転数領域に対する演算能力を損なうことなく、容易な処理により演算可能な高回転数領域を拡大している。
特開2000−310151号公報
In devices that control rotating bodies such as automobile internal combustion engines, wheel antilock brake systems, and drive motors, the number of rotations of these devices during operation is converted to digital data of an arbitrary number of bits based on detection signals obtained from sensors. It is digitized and this digital data is used for rotating body control. Since the rotational speed is required to be detected with high accuracy from low speed to high speed, for example, in the invention described in Patent Document 1 below, in order to enable calculation from a low rotational speed region to a high rotational speed region. , “A rotation sensor that generates a detection pulse according to the rotation speed, and a microcomputer that calculates the rotation speed based on the detection pulse and controls the engine, the detection pulse includes a plurality of pulse sequences, Select one pulse sequence from a plurality of pulse sequences according to the operating region of the engine, and calculate the rotation speed related to the engine based on the detection time and the number of pulses of the selected pulse sequence. The high rotation speed region that can be calculated by an easy process is expanded without changing the cycle and without impairing the calculation capability for the low rotation speed region.
JP 2000-310151 A

しかしながら、上記の引用文献に記載されている発明を含む従来の発明をもってしても、マイコンの演算処理の負担は高回転になるにしたがって大きくなるために、回転速度の検出精度及び検出可能領域は結局のところマイコンの処理能力に依存する。   However, even with the conventional invention including the invention described in the above cited document, the computational load of the microcomputer increases as the rotation speed increases, so the rotational speed detection accuracy and the detectable area are After all, it depends on the processing power of the microcomputer.

本発明は、上記のような従来の技術の問題点に鑑みて成されたものであり、マイコンによる回転速度演算を行うことなく、汎用のディジタルICを用いるだけで、広範囲かつ高精度の回転速度計数が可能な、回転体の回転速度計数装置及びその方法並びに回転体制御装置の提供を目的とする。   The present invention has been made in view of the above-described problems of the prior art, and it is possible to perform a wide range and high-precision rotation speed only by using a general-purpose digital IC without performing a rotation speed calculation by a microcomputer. An object of the present invention is to provide a rotating body rotation speed counting device and method, and a rotating body control device capable of counting.

上記目的を達成するための本発明にかかる回転体の回転速度計数装置は、回転体の回転速度に応じた周期で出力される回転パルスを入力する回転パルス入力手段と、当該回転パルスの周期よりも短い周期でクロックパルスを発生するクロックパルス発生部と、前記回転パルスが1周期する間に発生した当該クロックパルスの数をカウントする周期測定用カウンタと、当該周期測定用カウンタがカウントしたクロックパルスの数をラッチする分周カウンタと、前記クロックパルス発生部から単位時間内に発生されるクロックパルスの数を設定する変換係数設定用カウンタと、前記回転パルス入力手段が回転パルスを入力する度に当該変換係数設定用カウンタに設定されているクロックパルスの数から当該分周カウンタにラッチされているクロックパルスの数を累積的に減算する減算手段と、当該減算手段が前記単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する計数手段と、を有することを特徴とする。   In order to achieve the above object, a rotation speed counter for a rotating body according to the present invention comprises a rotation pulse input means for inputting a rotation pulse output at a cycle corresponding to the rotation speed of the rotation body, and a cycle of the rotation pulse. A clock pulse generator for generating clock pulses with a short period, a period measuring counter for counting the number of clock pulses generated during one period of the rotation pulse, and a clock pulse counted by the period measuring counter A frequency dividing counter that latches the number of clocks, a conversion coefficient setting counter that sets the number of clock pulses generated within a unit time from the clock pulse generator, and a rotation pulse input means each time a rotation pulse is input. From the number of clock pulses set in the conversion coefficient setting counter, the clock latched in the frequency division counter is set. Subtracting means for cumulatively subtracting the number of pulses, and counting means for counting the number of subtractions performed by the subtracting means within the unit time and counting the rotational speed of the rotating body from the counted number. Features.

また、上記目的を達成するための本発明にかかる回転体の回転速度計数装置は、回転体の回転速度に応じた周期で出力される回転パルスを入力する回転パルス入力手段と、請求項1に記載のクロックパルス発生手段によって発生されるクロックパルスの周波数の複数倍の周波数を持つ高速クロックパルスを発生する高速クロックパルス発生部と、当該高速クロックパルスを分周するクロックパルス分周手段と、前記回転パルスが1周期する間に発生した分周後のクロックパルスの数をカウントする周期測定用カウンタと、当該周期測定用カウンタがカウントしたクロックパルスの数を一時的に記憶するラッチ部と、当該ラッチ部に記憶されたクロックパルスの数をラッチする分周カウンタと、前記高速クロックパルス発生部から単位時間内に発生される高速クロックパルスの分周後のクロックパルスの数を設定する変換係数設定用カウンタと、前記回転パルス入力手段が回転パルスを入力する度に、前記高速クロックパルス発生部が発生した高速クロックパルスに基づいて、当該変換係数設定用カウンタに設定されているクロックパルスの数から当該分周カウンタにラッチされているクロックパルスの数を累積的に減算する減算手段と、当該減算手段が前記単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する計数手段と、を有することを特徴とする。   In order to achieve the above object, a rotational speed counter for a rotating body according to the present invention comprises: a rotational pulse input means for inputting rotational pulses output at a cycle according to the rotational speed of the rotating body; A high-speed clock pulse generator that generates a high-speed clock pulse having a frequency that is a multiple of the frequency of the clock pulse generated by the clock pulse generator described above, a clock pulse divider that divides the high-speed clock pulse, A period measurement counter that counts the number of divided clock pulses generated during one period of the rotation pulse, a latch unit that temporarily stores the number of clock pulses counted by the period measurement counter, A frequency division counter that latches the number of clock pulses stored in the latch unit, and within a unit time from the high-speed clock pulse generation unit A conversion coefficient setting counter for setting the number of clock pulses after frequency division of the generated high-speed clock pulse, and a high-speed clock generated by the high-speed clock pulse generator each time the rotation pulse input means inputs a rotation pulse. Subtracting means for cumulatively subtracting the number of clock pulses latched in the frequency dividing counter from the number of clock pulses set in the conversion coefficient setting counter based on the pulse; and And counting means for counting the number of subtractions performed in time and counting the rotational speed of the rotating body from the counted number.

さらに、上記目的を達成するための本発明にかかる回転体制御装置は、請求項1又は2に記載の回転速度計数装置を、回転体の回転速度に応じた周期で回転パルスを発生する回転パルス検出手段と、前記回転体の制御を行うコンピュータとの間に接続したことを特徴とする。   Furthermore, a rotating body control device according to the present invention for achieving the above object is characterized in that the rotating speed counting device according to claim 1 or 2 is a rotating pulse that generates a rotating pulse at a cycle corresponding to the rotating speed of the rotating body. It is connected between the detection means and a computer that controls the rotating body.

上記目的を達成するための本発明にかかる回転体の回転速度計数方法は、回転体の回転速度に応じた周期で出力される回転パルスを入力する段階と、当該回転パルスの周期よりも短い周期でクロックパルスを発生する段階と、前記回転パルスが1周期する間に発生した当該クロックパルスの数をカウントする段階と、当該カウントしたクロックパルスの数をラッチする段階と、単位時間内に発生されるクロックパルスの数を設定する段階と、前記回転パルスを入力する度に設定されているクロックパルスの数からラッチされているクロックパルスの数を累積的に減算する段階と、単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する段階と、を含むことを特徴とする。   In order to achieve the above object, a rotational speed counting method for a rotating body according to the present invention includes a step of inputting a rotational pulse output at a period corresponding to the rotational speed of the rotating body, and a period shorter than the period of the rotational pulse. Generating a clock pulse, counting the number of clock pulses generated during one period of the rotation pulse, latching the counted number of clock pulses, and generating within a unit time A step of setting the number of clock pulses, a step of cumulatively subtracting the number of clock pulses latched from the number of clock pulses set each time the rotation pulse is input, and a unit time. Counting the number of subtractions, and counting the rotational speed of the rotating body from the counted number.

また、上記目的を達成するための本発明にかかる回転体の回転速度計数方法は、回転体の回転速度に応じた周期で出力される回転パルスを入力する段階と、請求項9に記載のクロックパルスの周波数の複数倍の周波数を持つ高速クロックパルスを発生する段階と、当該高速クロックパルスを分周する段階と、前記回転パルスが1周期する間に発生した分周後のクロックパルスの数をカウントする段階と、当該カウントしたクロックパルスの数を一時的に記憶する段階と、当該一時的に記憶されたクロックパルスの数をラッチする段階と、単位時間内に発生される高速クロックパルスの分周後のクロックパルスの数を設定する段階と、前記回転パルスを入力する度に、前記高速クロックパルスに基づいて、設定されているクロックパルスの数からラッチされているクロックパルスの数を累積的に減算する段階と、単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する段階と、を含むことを特徴とする   A method for counting the rotational speed of a rotating body according to the present invention for achieving the above object comprises the steps of inputting rotational pulses output at a period corresponding to the rotational speed of the rotating body, and the clock according to claim 9. A step of generating a high-speed clock pulse having a frequency that is a multiple of the frequency of the pulse, a step of dividing the high-speed clock pulse, and the number of divided clock pulses generated during one period of the rotation pulse. A step of counting, a step of temporarily storing the counted number of clock pulses, a step of latching the number of temporarily stored clock pulses, and a fraction of high-speed clock pulses generated within a unit time. The step of setting the number of clock pulses after the lap and the number of clock pulses set based on the high-speed clock pulse each time the rotation pulse is input A step of cumulatively subtracting the number of clock pulses latched, and a step of counting the number of subtractions performed within a unit time and counting the rotational speed of the rotating body from the counted number. Do

以上のように構成された本発明に係る回転体の回転速度計数装置及びその方法によれば、マイコンによる回転速度演算を行うことなく、汎用のディジタルICを用いるだけで、広範囲かつ高精度の回転速度計数が可能となる。   According to the rotational speed counting device and method for a rotating body according to the present invention configured as described above, a wide range and high-precision rotation can be performed by using a general-purpose digital IC without performing a rotational speed calculation by a microcomputer. Speed counting is possible.

また、以上のように構成された本発明にかかる回転体制御装置によれば、コンピュータの前段で回転体の回転速度を計数するので、コンピュータは、その演算能力に余裕ができ、コンピュータの処理負担が大幅に減少する。   Further, according to the rotating body control device according to the present invention configured as described above, the rotational speed of the rotating body is counted at the front stage of the computer, so that the computer can afford its computing capacity and the processing load of the computer. Is greatly reduced.

以下、本発明に係る回転体の回転速度計数装置及びその方法並びに回転体制御装置を図面に基づいて詳細に説明する。本明細書においては、まず回転体制御装置について説明し、その次に回転体の回転速度計数装置及びその方法について説明する。なお、回転体の回転速度計数装置及びその方法については[実施の形態1]と[実施の形態2]とに分けて説明する。   DESCRIPTION OF THE PREFERRED EMBODIMENTS A rotating body rotation speed counting device and method and a rotating body control device according to the present invention will be described below in detail with reference to the drawings. In this specification, the rotating body control device will be described first, and then the rotating speed counting device and method of the rotating body will be described. In addition, the rotational speed counting device and the method of the rotating body will be described separately in [Embodiment 1] and [Embodiment 2].

図1は、本発明に係る回転体制御装置の概略構成図である。本実施の形態では回転体の一例として自動車のエンジンを例示しているが、回転体はこれに限るものではなく、たとえば、電気自動車用の駆動モータや車輪アンチロックブレーキシステムの車輪でも良い。   FIG. 1 is a schematic configuration diagram of a rotating body control device according to the present invention. In the present embodiment, an automobile engine is illustrated as an example of a rotating body, but the rotating body is not limited to this, and may be, for example, a drive motor for an electric vehicle or a wheel of a wheel antilock brake system.

エンジン制御装置100には、エンジン210に設けられた、水温センサ、スロットルセンサ、ノックセンサ、吸気温センサ、回転検出センサ200が接続される。エンジン制御装置100はこれらのセンサから入力された信号に基づいて、エンジン210の吸排弁制御、点火制御、キャニスタパージ制御、空燃比制御を行う。さらに、エンジン制御装置100は通信制御、A/T(オートマチックトランスミッション)、ABS(アンチロックブレーキシステム)などの他の制御装置と電気信号の通信を行っている。   A water temperature sensor, a throttle sensor, a knock sensor, an intake air temperature sensor, and a rotation detection sensor 200 provided in the engine 210 are connected to the engine control device 100. The engine control apparatus 100 performs intake / exhaust valve control, ignition control, canister purge control, and air-fuel ratio control of the engine 210 based on signals input from these sensors. Furthermore, the engine control device 100 performs electrical signal communication with other control devices such as communication control, A / T (automatic transmission), and ABS (anti-lock brake system).

回転検出センサ200は、電磁ピックアップで構成されたセンサであり、エンジン210のクランクシャフト又はカムシャフトに取り付けられたシグナルプレート220に対向配置され、エンジン210の回転速度に応じた周期でアナログの回転信号を発生する。   The rotation detection sensor 200 is a sensor composed of an electromagnetic pickup, and is disposed opposite to the signal plate 220 attached to the crankshaft or camshaft of the engine 210. Is generated.

エンジン制御装置100は、回転検出センサ200から出力されたアナログの回転信号を2値化してディジタル信号に変換する信号整形器110と、信号整形器110から出力されるディジタル信号すなわち回転パルスを入力し、入力した回転パルスの周期からエンジン210の回転速度をハード的に演算する回転速度計数装置120と、エンジン制御装置100が行う主要な制御の演算を行うコンピュータ130とを備えている。なお、コンピュータ130はワイチップマイコンであり、回転検出センサ200、シグナルプレート220及び信号整形器110は回転パルス検出手段として機能する。   The engine control apparatus 100 receives a signal shaper 110 that converts an analog rotation signal output from the rotation detection sensor 200 into a digital signal and a digital signal output from the signal shaper 110, that is, a rotation pulse. , A rotation speed counting device 120 that calculates the rotation speed of the engine 210 in hardware from the cycle of the input rotation pulse, and a computer 130 that performs calculation of main control performed by the engine control device 100 are provided. The computer 130 is a Y-chip microcomputer, and the rotation detection sensor 200, the signal plate 220, and the signal shaper 110 function as rotation pulse detection means.

本発明に係る回転速度計数装置120は信号整形器110とコンピュータ130との間に接続され、エンジン210の回転速度に応じた周期で出力される回転パルスを入力しハード的な構成によってエンジン210の回転速度を高速計数し、その計数結果をコンピュータ130に出力する。   The rotational speed counting device 120 according to the present invention is connected between the signal shaper 110 and the computer 130, and receives rotational pulses output at a cycle corresponding to the rotational speed of the engine 210, so that the engine 210 has a hardware configuration. The rotational speed is counted at high speed, and the count result is output to the computer 130.

本発明に係る回転体制御装置によれば、回転体すなわちエンジン210の回転速度をコンピュータ130に演算させるのではなく回転速度計数装置120によって計数させているので、コンピュータ130の負担を大幅に軽減させることができる。したがって、エンジン210の制御に要する演算量が従来と同一の演算量であればコンピュータ130の性能を落とすことができるし、逆に従来と同一の性能のコンピュータ130を用いれば、負担が軽減された分だけエンジン210の制御精度を向上させることができる。   According to the rotating body control device of the present invention, the rotational speed of the rotating body, that is, the engine 210 is not calculated by the computer 130 but is counted by the rotational speed counting device 120, so that the burden on the computer 130 is greatly reduced. be able to. Therefore, if the calculation amount required for controlling the engine 210 is the same as the conventional calculation amount, the performance of the computer 130 can be reduced. Conversely, if the computer 130 having the same performance as the conventional one is used, the burden is reduced. The control accuracy of the engine 210 can be improved by that amount.

次に、本発明に係る回転体の回転速度計数装置について説明する。
[実施の形態1]
図2は、本発明に係る回転体の回転速度計数装置120の構成を示すブロック図である。回転速度計数装置120は、コンピュータ130のデータバスライン140(図1参照)に接続され、エンジン210の回転速度の計数結果はこのデータバスライン140を介してコンピュータ130に出力する。
Next, the rotational speed counting device for a rotating body according to the present invention will be described.
[Embodiment 1]
FIG. 2 is a block diagram showing the configuration of the rotational speed counting device 120 for a rotating body according to the present invention. The rotational speed counting device 120 is connected to the data bus line 140 (see FIG. 1) of the computer 130, and the rotational speed counting result of the engine 210 is output to the computer 130 via the data bus line 140.

回転速度計数装置120は、図2に示すように、タイミング制御回路121、クロックパルス発生部122、周期測定用カウンタ123、分周カウンタ124、変換係数設定用カウンタ125、回転数データカウンタ126、3ステートレジスタ127を備えている。このように、回転速度計数装置120のほとんどの構成要素はハードであるカウンタによって構成されており、クロックパルスのカウントアップ・カウントダウンによってエンジン210の回転速度を計数することができるようになっている。タイミング制御回路121はソフト的な処理を若干行っているが、その処理は非常に軽微なものである。   As shown in FIG. 2, the rotation speed counter 120 includes a timing control circuit 121, a clock pulse generator 122, a period measurement counter 123, a frequency division counter 124, a conversion coefficient setting counter 125, a rotation speed data counter 126, 3 A state register 127 is provided. As described above, most of the components of the rotation speed counting device 120 are constituted by a hard counter, and the rotation speed of the engine 210 can be counted by counting up and counting down the clock pulses. The timing control circuit 121 performs some software processing, but the processing is very slight.

タイミング制御回路121は、エンジン210の回転速度を検出する回転検出センサ200及び信号整形器110を介し、エンジン210の回転速度に応じた周期で出力される回転パルスを入力する回転パルス入力手段を備えている。また、タイミング制御回路121は、これに接続されているカウンタやレジスタ(後述する)に各種の指示を出してそれらの動作順序を制御する。   The timing control circuit 121 includes a rotation pulse input unit that inputs rotation pulses output at a cycle corresponding to the rotation speed of the engine 210 via the rotation detection sensor 200 that detects the rotation speed of the engine 210 and the signal shaper 110. ing. In addition, the timing control circuit 121 gives various instructions to a counter and a register (described later) connected to the timing control circuit 121 and controls their operation order.

クロックパルス発生部122は、タイミング制御回路121に入力される回転パルスの周期よりも短い周期でクロックパルスを発生する。クロックパルスの周波数はエンジン210の回転速度の測定範囲と要求される測定精度とによって決められるが、たとえば、200kHzというような周波数を有するパルスである。   The clock pulse generator 122 generates clock pulses at a cycle shorter than the cycle of the rotation pulse input to the timing control circuit 121. The frequency of the clock pulse is determined by the measurement range of the rotational speed of the engine 210 and the required measurement accuracy, and is a pulse having a frequency of, for example, 200 kHz.

周期測定用カウンタ123は、タイミング制御回路121により制御発生された回転パルスの立ち上がり時から次の立ち上がり時までのクロックパルスをカウントする。なお、タイミング制御回路121からリセット指示が出されるまでカウント値を保持し、その指示に基づいてカウント値をリセットする。したがって、周期測定用カウンタ123は、回転パルスが1周期する間に発生したクロックパルスの数をカウントすることになる。   The period measurement counter 123 counts clock pulses from the rising edge of the rotation pulse controlled and generated by the timing control circuit 121 to the next rising edge. The count value is held until a reset instruction is issued from the timing control circuit 121, and the count value is reset based on the instruction. Therefore, the period measurement counter 123 counts the number of clock pulses generated during one rotation pulse period.

分周カウンタ124は、タイミング制御回路121から出力される指示に基づいて周期測定用カウンタ123がカウントしたクロックパルスの数をロードする。ロードされたクロックパルスの数は、タイミング制御回路121から出力されるクロックパルスに基づいて減算される。また、減算を続け、ロードしたクロックパルスの数が0になると、後述の回転数データカウンタにインクリメントの指示を出力すると同時にタイミング制御回路121へ再ロードの要求を行う。   The frequency division counter 124 loads the number of clock pulses counted by the period measurement counter 123 based on the instruction output from the timing control circuit 121. The number of loaded clock pulses is subtracted based on the clock pulse output from the timing control circuit 121. When the number of clock pulses loaded is continued to 0 after subtraction, an increment instruction is output to a later-described rotation number data counter, and at the same time, a reload request is made to the timing control circuit 121.

変換係数設定用カウンタ125は、タイミング制御回路121から出力されるクロックパルスの数の設定指令に基づいてクロックパルス発生部122から単位時間内に発生されるクロックパルスの数を設定する。設定されたクロックパルスの数は、タイミング制御回路121から出力されるクロックパルスによって減算される。また、減算を続け、設定されたクロックパルスの数が0になると、タイミング制御回路121に0値の指示が出力される。たとえば、上記のように、クロックパルス発生部122から出力されるクロックパルスの周波数が200kHzであれば、変換係数設定用カウンタ125には、単位時間60秒分のクロックパルスの数、200kHz×60sec=1.2×10の数値がクロックパルスの数として設定される。 The conversion coefficient setting counter 125 sets the number of clock pulses generated within a unit time from the clock pulse generator 122 based on a setting command for the number of clock pulses output from the timing control circuit 121. The set number of clock pulses is subtracted by the clock pulse output from the timing control circuit 121. Further, when the subtraction is continued and the number of set clock pulses becomes zero, a zero value instruction is output to the timing control circuit 121. For example, as described above, if the frequency of the clock pulse output from the clock pulse generator 122 is 200 kHz, the conversion coefficient setting counter 125 has the number of clock pulses for a unit time of 60 seconds, 200 kHz × 60 sec = A value of 1.2 × 10 6 is set as the number of clock pulses.

回転数データカウンタ126は、分周カウンタ124からインクリメントの指示が出力される度にカウント数をインクリメントする。なお、タイミング制御回路121からリセット指示が出されると、その指示に基づいてカウントをリセットする。   The rotation number data counter 126 increments the count every time an increment instruction is output from the frequency division counter 124. When a reset instruction is issued from the timing control circuit 121, the count is reset based on the instruction.

3ステートレジスタ127は、回転数データカウンタ126のカウント数をラッチし、そのカウント数をコンピュータ130に出力する。3ステートレジスタ127のカウント数はそのままエンジン210の回転速度を表している。   The 3-state register 127 latches the count number of the rotation speed data counter 126 and outputs the count number to the computer 130. The count number of the 3-state register 127 represents the rotational speed of the engine 210 as it is.

周期測定用カウンタ123、分周カウンタ124、変換係数設定用カウンタ125及び計数手段を構成する回転数データカウンタ126はすべて所定ビット数の汎用的なカウンタのみを用いて構成され、そのビット数は、結果として、エンジン210の回転速度の測定範囲と要求される測定精度とに基づいて決定されることになる。なお、3ステートレジスタ127はカウンタを用いなくとも良い。   The period measurement counter 123, the frequency division counter 124, the conversion coefficient setting counter 125, and the rotation number data counter 126 constituting the counting means are all configured using only a general-purpose counter having a predetermined number of bits, and the number of bits is As a result, it is determined based on the measurement range of the rotational speed of the engine 210 and the required measurement accuracy. Note that the 3-state register 127 may not use a counter.

たとえば上記の場合、エンジン回転速度の測定範囲を60rpm(周波数1Hz)〜12000rpm(周波数200Hz)とし、また、要求される測定精度を0.1%とすると、クロックパルス発生部122が発生するクロックパルスの周波数は200Hz×1000=200kHzとなる。したがって、周波数測定用カウンタ123と分周カウンタ124は同一のクロックパルスの数をカウントできなければならないので、最低でも2×10の数をカウントできるだけのビット数が必要であり、18ビット以上のカウンタを用いる必要がある。そして、変換係数設定用カウンタ125にはrpm表示を可能とするために、最低でも60×2×10=12×106の数をカウントできるだけのビット数が必要であり、24ビット以上のカウンタを用いる必要がある。さらに、回転数データカウンタ126は12000rpmまでの数をカウントできるだけのビット数が必要であり、14ビット以上のカウンタを用いる必要がある。このように、カウンタやレジスタの必要ビット数はエンジン210の回転速度の測定範囲と要求される測定精度とに基づいて決める。 For example, in the above case, if the measurement range of the engine rotation speed is 60 rpm (frequency 1 Hz) to 12000 rpm (frequency 200 Hz) and the required measurement accuracy is 0.1%, the clock pulse generated by the clock pulse generator 122 is generated. The frequency of is 200 Hz × 1000 = 200 kHz. Therefore, since the frequency measurement counter 123 and the frequency division counter 124 must be able to count the same number of clock pulses, the number of bits that can count at least 2 × 10 5 is required, and 18 bits or more. It is necessary to use a counter. The conversion coefficient setting counter 125 needs a number of bits that can count at least 60 × 2 × 10 5 = 12 × 10 6 in order to enable rpm display. Must be used. Further, the rotation speed data counter 126 needs a bit number that can count up to 12000 rpm, and it is necessary to use a counter of 14 bits or more. As described above, the necessary number of bits of the counter and the register is determined based on the measurement range of the rotational speed of the engine 210 and the required measurement accuracy.

本発明に係る回転体の回転速度計数装置120は、コンピュータ130の前段でエンジン210の回転速度を計数するので、コンピュータ130は、従来のように回転パルスの周期の測定、測定された周期に基づくエンジン回転速度の演算、その演算結果の保持、カウンタ類の使用に関連する処理から開放され、その演算能力に余裕ができ、コンピュータ130の処理負担が大幅に減少する。また、測定範囲と測定精度とから決まるビット数のカウンタ及びレジスタを用いればよいので、低回転速度領域から高回転速度領域までの幅広い回転速度領域で高精度の計測を、低コストかつ単純な回路の構成によって行うことができる。さらに、本実施の形態では、5個の汎用カウンタICを用い、クロックパルス発生部122から出力されるクロックパルスが必ずしも正確でなくとも、エンジン210の回転速度を正確に把握することができる。クロックパルス発生部122は正確な周期のクロックパルスを発生するものでなくても良いので、コストの安いクロックパルス発生部の使用が可能である。そして、本発明に係る回転体の回転速度計数装置120はその構造が単純であるので設計が容易であり、汎用のICを用いることができるので、設計の自由度と部品入手性が良く短期間での開発が可能である。   Since the rotational speed counting device 120 of the rotating body according to the present invention counts the rotational speed of the engine 210 at the front stage of the computer 130, the computer 130 is based on the measurement of the period of the rotational pulse and the measured period as in the prior art. This frees you from processing related to the calculation of the engine speed, the storage of the calculation results, and the use of counters, so that the calculation capacity can be afforded and the processing load on the computer 130 is greatly reduced. In addition, since it is only necessary to use a counter and register with the number of bits determined from the measurement range and measurement accuracy, high-accuracy measurement can be performed in a wide range of rotation speeds from a low rotation speed range to a high rotation speed range. This can be done according to the configuration. Furthermore, in this embodiment, five general-purpose counter ICs are used, and the rotational speed of the engine 210 can be accurately grasped even if the clock pulse output from the clock pulse generator 122 is not necessarily accurate. Since the clock pulse generator 122 does not have to generate a clock pulse with an accurate period, a low-cost clock pulse generator can be used. The rotational speed counting device 120 of the rotating body according to the present invention is simple in design and can be easily designed, and a general-purpose IC can be used. Development is possible.

次に、図2に示した回転速度計数装置120の動作を説明する。図3は、図2に示した回転速度計数装置120の動作手順及び回転速度計数方法を示すフローチャート、図4及び図5は、図2に示した回転速度計数装置120の各構成要素のタイミングチャートである。   Next, the operation of the rotation speed counting device 120 shown in FIG. 2 will be described. FIG. 3 is a flowchart showing an operation procedure and a rotational speed counting method of the rotational speed counting device 120 shown in FIG. 2, and FIGS. 4 and 5 are timing charts of each component of the rotational speed counting device 120 shown in FIG. It is.

エンジン210が回転するとシグナルプレート220も回転する。シグナルプレート220には一定間隔で突起が形成されている。回転検出センサ200はこの突起を検出して図4に示すような正弦波状の検出信号f0を出力する。信号整形器110はこの正弦波状の検出信号f0を所定の閾値で2値化し、図4及び図5に示すような回転パルス(周期t1)に変換する。なお、クロックパルス発生部122からは同図に示すようなかなり短い周期のクロックパルスが発生している。なお、図5には回転速度データ更新タイミングとしてtr0及びtr1が例示されているが、タイミング制御回路121からこのタイミングでリセット信号が出力されると、周波数測定用カウンタ123、回転数データカウンタ126のカウント値がリセットされる。   When the engine 210 rotates, the signal plate 220 also rotates. Projections are formed on the signal plate 220 at regular intervals. The rotation detection sensor 200 detects this protrusion and outputs a sinusoidal detection signal f0 as shown in FIG. The signal shaper 110 binarizes the sinusoidal detection signal f0 with a predetermined threshold value and converts it into a rotation pulse (period t1) as shown in FIGS. The clock pulse generator 122 generates clock pulses having a considerably short period as shown in FIG. In FIG. 5, tr0 and tr1 are exemplified as the rotation speed data update timing. However, when a reset signal is output from the timing control circuit 121 at this timing, the frequency measurement counter 123 and the rotation speed data counter 126 The count value is reset.

まず、図5に示すように、タイミング制御回路121から回転速度データ更新タイミングtr0でリセット信号が出力されると、周波数測定用カウンタカウント値が0にリセットされる。   First, as shown in FIG. 5, when a reset signal is output from the timing control circuit 121 at the rotational speed data update timing tr0, the frequency measurement counter count value is reset to zero.

タイミング制御回路121はエンジン210の回転速度に応じた周期で出力される回転パルスa)を入力し、その立ち上がり(前縁)が検知されるまで待機する(S1:NO)。その立ち上がりが検知されると(S1:YES)、タイミング制御回路121は周波数測定用カウンタ123にクロックパルスの供給を開始し、周波数測定用カウンタ123はクロックパルス発生部122からの回転パルスの周期よりも短い周期のクロックパルスb)に基づいて周波数測定用カウンタカウント値c)のカウントを開始する(S2)。そして、周波数測定用カウンタカウント値c)がオーバーフローしていなければ(S3:NO)、回転パルスa)の次の立ち上がりが検知されるまでカウントを継続する(S4:NO)。周波数測定用カウンタカウント値c)がオーバーフローした場合(S3:YES)、または回転パルスa)の立ち上がりが検知されたら(S4:YES)、タイミング制御回路121からのクロックパルスの供給を遮断し周波数測定用カウンタ123によるカウントを停止する(S5)。   The timing control circuit 121 receives the rotation pulse a) output at a cycle according to the rotation speed of the engine 210, and waits until the rising edge (leading edge) is detected (S1: NO). When the rising edge is detected (S1: YES), the timing control circuit 121 starts supplying clock pulses to the frequency measurement counter 123. The frequency measurement counter 123 starts from the cycle of the rotation pulse from the clock pulse generator 122. Also, counting of the frequency measurement counter count value c) is started based on the clock pulse b) having a short cycle (S2). If the frequency measurement counter count value c) does not overflow (S3: NO), the counting is continued until the next rising edge of the rotation pulse a) is detected (S4: NO). When the frequency measurement counter count value c) overflows (S3: YES), or when the rising edge of the rotation pulse a) is detected (S4: YES), the supply of the clock pulse from the timing control circuit 121 is cut off to measure the frequency. The counting by the counter 123 for use is stopped (S5).

つまり、S1からS5のステップでは、回転パルスが1周期する間(図5の周期t1)にクロックパルス発生部122から出力されたクロックパルスの数を周波数測定用カウンタ123でカウントすることになる。   That is, in steps S1 to S5, the frequency measurement counter 123 counts the number of clock pulses output from the clock pulse generator 122 during one period of the rotation pulse (period t1 in FIG. 5).

次に、S5の処理と同時に、周波数測定用カウンタ123のカウント値c)を分周カウンタ124のカウント値d)にプリセットし(S6)、変換係数設定用カウンタ124のカウント値e)を単位時間内に発生されるクロックパルスの数、たとえば上記の例で言えば12,000,000に設定する(S7)。   Next, simultaneously with the processing of S5, the count value c) of the frequency measurement counter 123 is preset to the count value d) of the frequency dividing counter 124 (S6), and the count value e) of the conversion coefficient setting counter 124 is set to unit time. Is set to the number of clock pulses generated, for example, 12,000,000 in the above example (S7).

さらに、クロックパルスb)を待って(S8:NO)、クロックパルスb)が検知されると(S8:YES)、タイミング制御回路121は分周カウンタ124及び変換係数設定用カウンタ125へクロックパルスb)の供給を開始し、クロックパルスb)に基づいて分周カウンタ124のカウント値d)の減算を開始すると同時に(S9)、クロックパルスb)に基づいて変換係数設定用カウンタ125のカウント値e)の減算を開始する(S10)。   Further, after waiting for the clock pulse b) (S8: NO) and detecting the clock pulse b) (S8: YES), the timing control circuit 121 sends the clock pulse b to the frequency division counter 124 and the conversion coefficient setting counter 125. ) And the subtraction of the count value d) of the frequency dividing counter 124 is started based on the clock pulse b) (S9), and at the same time, the count value e of the conversion coefficient setting counter 125 is based on the clock pulse b). ) Is started (S10).

S9の減算を継続すると、分周カウンタ124のカウント値d)が0になるが、カウント値d)が0になると(S11:YES)、分周カウンタ124からインクリメントの指示が出て、回転データカウンタ126の値が1だけインクリメントされる(S12)。そして再度、周波数測定用カウンタ123のカウント値c)を分周カウンタ124のカウント値d)にプリセットし(S13)、変換係数設定用カウンタ125のカウント値e)の値が0になるまで繰り返す(S14:NO)。つまり、S11〜S14の処理では、変換係数設定用カウンタ125に設定されたクロックパルスの数から分周カウンタ124にプリセットされるクロックパルスの数を累積的に減算するということが行われる。さらに具体的には、1回の減算処理において、クロックパルス発生部122が発生したクロックパルスに基づいて、変換係数設定用カウンタ125に設定されているクロックパルスの数と分周カウンタ124にプリセットされたクロックパルスの数とを、分周カウンタ124にプリセットされたクロックパルスの数が0になるまで同時に減算するということが行われる。   If the subtraction in S9 is continued, the count value d) of the frequency division counter 124 becomes 0. If the count value d) becomes 0 (S11: YES), the frequency division counter 124 issues an increment instruction, and the rotation data The value of the counter 126 is incremented by 1 (S12). Then, again, the count value c) of the frequency measurement counter 123 is preset to the count value d) of the frequency division counter 124 (S13), and is repeated until the value of the count value e) of the conversion coefficient setting counter 125 becomes zero (S13). S14: NO). That is, in the processing of S11 to S14, the number of clock pulses preset in the frequency dividing counter 124 is cumulatively subtracted from the number of clock pulses set in the conversion coefficient setting counter 125. More specifically, the number of clock pulses set in the conversion coefficient setting counter 125 and the frequency dividing counter 124 are preset based on the clock pulse generated by the clock pulse generator 122 in one subtraction process. The number of clock pulses is subtracted simultaneously until the number of clock pulses preset in the frequency dividing counter 124 becomes zero.

そして、以上の処理が終了すると、タイミング制御回路121からのクロックパルスの供給を遮断し分周カウンタ124のカウントを停止し(S15)、変換係数設定用カウンタ125のカウントを停止し(S16)、回転データカウンタ126のカウントが保持される。次に、3ステートレジスタ127の値を更新する(S17)。したがって、3ステートレジスタ127の値そのものがエンジン120の回転速度を示すことになる。その後、次の回転パルスの計測のために周期測定用カウンタ123をリセットし(S18)、タイミング制御回路121を初期化する(S19)。これは分周カウンタ124にセットされた単位時間(たとえば60秒)内に周期測定用カウンタ123で測定した時間が何回入るかをカウントすることになる。   When the above processing is completed, the supply of the clock pulse from the timing control circuit 121 is cut off, the count of the frequency dividing counter 124 is stopped (S15), and the count of the conversion coefficient setting counter 125 is stopped (S16). The count of the rotation data counter 126 is held. Next, the value of the 3-state register 127 is updated (S17). Therefore, the value of the 3-state register 127 itself indicates the rotation speed of the engine 120. Thereafter, the period measurement counter 123 is reset for measurement of the next rotation pulse (S18), and the timing control circuit 121 is initialized (S19). This counts how many times the time measured by the period measuring counter 123 falls within a unit time (for example, 60 seconds) set in the frequency dividing counter 124.

したがって、この減算回数は単純にエンジン210の回転速度(rpm)を示すことになるので、単に複数のカウンタのインクリメント・減算の処理を行うのみでエンジン210の回転速度を計数することができる。   Therefore, since the number of subtractions simply indicates the rotational speed (rpm) of the engine 210, the rotational speed of the engine 210 can be counted simply by performing increment / subtraction processing of a plurality of counters.

なお、クロックパルス発生部122が設計通りの正確なクロック周波数を刻むことができなくても、回転パルスの発生周期t1に対してクロックパルスの発生周期が十分に小さければ、変換係数設定用カウンタ125に設定するクロックパルスの数を補正することにより回転速度の測定誤差は無視できる程度のものとなる。
[実施の形態2]
図6は、本発明の実施の形態2に係る回転体の回転速度計数装置の構成を示すブロック図である。なお、この図において、図2の回転速度計数装置120と同一の部材には同一の符号を付してある。同一の符号が付してある要素は、実施の形態1に示した要素と同一の作用をする。したがって、同一の作用をする要素のここでの説明は省略する。
Even if the clock pulse generator 122 cannot set the exact clock frequency as designed, if the clock pulse generation period is sufficiently smaller than the rotation pulse generation period t1, the conversion coefficient setting counter 125 is used. By correcting the number of clock pulses set to, the measurement error of the rotational speed becomes negligible.
[Embodiment 2]
FIG. 6 is a block diagram showing the configuration of the rotational speed counter of the rotating body according to Embodiment 2 of the present invention. In this figure, the same members as those in the rotational speed counting device 120 in FIG. Elements to which the same reference numerals are attached operate in the same manner as the elements shown in the first embodiment. Therefore, the description of the elements having the same action is omitted here.

実施の形態1に係る回転体の回転速度計数装置120でも、上記のように、コンピュータ130に演算負担をかけずに正確な回転速度を広範囲の回転速度領域において得ることができる。しかしながら、実施の形態1では回転速度データ更新タイミングとしてtr0を採用しており(図5参照)、これが被測定周期t1(回転パルスの発生タイミング)よりも非常に長いため、更なる正確な測定値を得ようとする場合には多少の問題がある。本実施の形態では、この問題を解消するために、クロックパルスとして実施の形態1の周期よりもかなり短い周期(複数分の一:換言すれば周波数が複数倍)の高速クロックパルス発生することができる高速クロックパルス発生部122Aを採用し、分周カウンタ124と変換係数設定用カウンタ125におけるカウント値の減算をこの高速パルスで短時間に行えるようにした。また、クロックパルスの高速化に伴い、周期測定用カウンタ123をインクリメントさせる分周クロックを生成するため、高速クロックパルス発生部122Aとタイミング回路121との間にクロックパルス分周手段として機能するクロックパルス分周回路129を設けた。さらに、クロックパルスの高速化に伴い、各カウンタやレジスタへのデータのストア時間を確保するために、タイミング回路121の処理を高速クロックパルスに基づいて行えるようにした。以上によりすべての処理を回転パルスの発生タイミングt1内に終了させることができるようにした。さらに、周波数設定用カウンタ123と分周カウンタ124との間にカウント値を一時的に記憶させるラッチ部128を設け、回転パルスごとの回転データの更新ができるようにしている。   As described above, the rotational speed counter 120 of the rotating body according to the first embodiment can also obtain an accurate rotational speed in a wide rotational speed region without imposing a calculation burden on the computer 130. However, in the first embodiment, tr0 is adopted as the rotation speed data update timing (see FIG. 5), which is much longer than the measurement period t1 (rotation pulse generation timing), and therefore more accurate measurement values. There are some problems when trying to get In this embodiment, in order to solve this problem, a high-speed clock pulse having a cycle (one-multiple: in other words, multiple times the frequency) considerably shorter than that of the first embodiment may be generated as a clock pulse. A high-speed clock pulse generator 122A capable of performing the subtraction of the count values in the frequency division counter 124 and the conversion coefficient setting counter 125 can be performed in a short time with this high-speed pulse. As the clock pulse speed increases, a clock pulse that functions as a clock pulse frequency dividing means is generated between the high-speed clock pulse generator 122A and the timing circuit 121 in order to generate a frequency-divided clock that increments the period measurement counter 123. A frequency divider circuit 129 is provided. Further, with the increase in the speed of the clock pulse, the timing circuit 121 can be processed based on the high-speed clock pulse in order to ensure the storage time of data in each counter and register. Thus, all the processes can be completed within the generation timing t1 of the rotation pulse. Further, a latch unit 128 for temporarily storing the count value is provided between the frequency setting counter 123 and the frequency dividing counter 124 so that the rotation data can be updated for each rotation pulse.

回転速度計数装置120Aの構成上実施の形態1と異なる部分は以上の通りである。次に本実施の形態に係る図6に示した回転速度計数装置120Aの動作を、実施の形態1同様図3から図5に基づいて説明する。なお、高速クロックパルス発生部122Aからは非常に周波数の高いクロックパルスが出力されている。この高速クロックパルスはクロックパルス分周回路129で分周され、分周後のクロックパルスと分周前の高速クロックパルスがタイミング制御回路121に出力される。高速クロックパルスは分周カウンタ124及び変換係数設定用カウンタ125のカウント値を減算するときに使用される。高速クロックパルスで減算すると減算に要する時間が短くて済むからである。   The difference from the first embodiment in the configuration of the rotation speed counting device 120A is as described above. Next, the operation of the rotational speed counting device 120A shown in FIG. 6 according to the present embodiment will be described based on FIGS. 3 to 5 as in the first embodiment. Note that a clock pulse with a very high frequency is output from the high-speed clock pulse generator 122A. The high-speed clock pulse is frequency-divided by the clock pulse frequency dividing circuit 129, and the clock pulse after frequency division and the high-speed clock pulse before frequency division are output to the timing control circuit 121. The high-speed clock pulse is used when the count values of the frequency division counter 124 and the conversion coefficient setting counter 125 are subtracted. This is because the time required for subtraction can be shortened by subtracting with the high-speed clock pulse.

まず、図5に示すように、回転速度データ更新タイミングtr0でリセット信号が出力されると、周波数測定用カウンタカウント値が0にリセットされる。   First, as shown in FIG. 5, when a reset signal is output at the rotation speed data update timing tr0, the frequency measurement counter count value is reset to zero.

タイミング制御回路121はエンジン210の回転速度に応じた周期で出力される回転パルスa)を入力し、その立ち上がり(前縁)が検知されるまで待機する(S1:NO)。その立ち上がりが検知されると(S1:YES)、タイミング制御回路121は周波数測定用カウンタ123にインクリメントの指令を出力し、周波数測定用カウンタ123は高速クロックパルス発生部122からの分周後のクロックパルスb)に基づいて周波数測定用カウンタカウント値c)のカウントを開始する(S2)。そして、周波数測定用カウンタカウント値c)がオーバーフローしていなければ(S3:NO)、回転パルスa)の立ち上がりが検知されるまでカウントを継続する(S4:NO)。周波数測定用カウンタカウント値c)がオーバーフローした場合(S3:YES)、または回転パルスa)の立ち上がりが検知されたら(S4:YES)、周波数測定用カウンタ123によるカウントを停止する(S5)。   The timing control circuit 121 receives the rotation pulse a) output at a cycle according to the rotation speed of the engine 210, and waits until the rising edge (leading edge) is detected (S1: NO). When the rising edge is detected (S1: YES), the timing control circuit 121 outputs an increment command to the frequency measurement counter 123, and the frequency measurement counter 123 outputs the divided clock from the high-speed clock pulse generator 122. Based on the pulse b), counting of the frequency measurement counter count value c) is started (S2). If the frequency measurement counter count value c) does not overflow (S3: NO), the count is continued until the rising edge of the rotation pulse a) is detected (S4: NO). When the frequency measurement counter count value c) overflows (S3: YES) or when the rising edge of the rotation pulse a) is detected (S4: YES), the frequency measurement counter 123 stops counting (S5).

つまり、S1からS5のステップでは、回転パルスが1周期する間(図5の周期t1)にクロックパルス分周回路129から出力された分周後のクロックパルスの数を周波数測定用カウンタ123でカウントすることになる。   That is, in steps S1 to S5, the frequency measurement counter 123 counts the number of frequency-divided clock pulses output from the clock pulse frequency dividing circuit 129 during one rotation pulse period (period t1 in FIG. 5). Will do.

次に、S5の処理とほぼ同時に、周波数測定用カウンタ123のカウント値c)を一時的にラッチ部128に記憶させておき、タイミング制御回路121の指示に基づいて、一旦リセット後再度カウントを始める。これを分周カウンタ124のカウント値d)にプリセットし(S6)、変換係数設定用カウンタ125のカウント値e)を単位時間内に発生される分周後のクロックパルスの数、たとえば上記の例で言えば1200000に設定し(S7)する。   Next, almost simultaneously with the processing of S5, the count value c) of the frequency measurement counter 123 is temporarily stored in the latch unit 128, and once reset, the counting is started again based on the instruction of the timing control circuit 121. . This is preset to the count value d) of the frequency division counter 124 (S6), and the count value e) of the conversion coefficient setting counter 125 is set to the number of frequency-divided clock pulses generated within a unit time, for example, the above example In other words, it is set to 1200000 (S7).

さらに、高速パルスが入力されるのを待って(S8:NO)、高速パルスの入力が検知されると(S8:YES)、タイミング制御回路121は高速クロックパルスb)に基づいて分周カウンタ124のカウント値d)の減算を開始すると同時に(S9)、高速クロックパルスb)に基づいて変換係数設定用カウンタ125のカウント値e)の減算を開始する(S10)。   Further, after waiting for the input of the high-speed pulse (S8: NO), when the input of the high-speed pulse is detected (S8: YES), the timing control circuit 121 determines the frequency division counter 124 based on the high-speed clock pulse b). (S9), the subtraction of the count value e) of the conversion coefficient setting counter 125 is started based on the high-speed clock pulse b) (S10).

S9の減算を継続すると、分周カウンタ124のカウント値d)が0になるが、カウント値d)が0になると(S11:YES)、分周カウンタ124からインクリメントの指示が出て、回転データカウンタ126の値が1だけインクリメントされる(S12)。そして再度、周波数測定用カウンタ123のカウント値c)を分周カウンタ124のカウント値d)にプリセットし(S13)、変換係数設定用カウンタ125のカウント値e)の値が0になるまで減算の処理を繰り返す(S14:NO)。つまり、S11〜S14の処理では、変換係数設定用カウンタ125に設定されている分周後のクロックパルスの数から分周カウンタ124にラッチされるクロックパルスの数を、累積的に高速クロックパルスを用いて減算するということが行われる。さらに具体的には、1回の減算処理において、高速クロックパルス発生部122Aが発生した高速クロックパルスに基づいて、変換係数設定用カウンタ125に設定されているクロックパルスの数と分周カウンタ124にラッチされているクロックパルスの数とを、分周カウンタ124にラッチされているクロックパルスの数が0になるまで同時に減算するということが行われる。   If the subtraction in S9 is continued, the count value d) of the frequency division counter 124 becomes 0. If the count value d) becomes 0 (S11: YES), the frequency division counter 124 issues an increment instruction, and the rotation data The value of the counter 126 is incremented by 1 (S12). Again, the count value c) of the frequency measurement counter 123 is preset to the count value d) of the frequency division counter 124 (S13), and the subtraction is performed until the count value e) of the conversion coefficient setting counter 125 becomes zero. The process is repeated (S14: NO). In other words, in the processing of S11 to S14, the number of clock pulses latched in the frequency division counter 124 from the number of frequency-divided clock pulses set in the conversion coefficient setting counter 125 is accumulated, and the high-speed clock pulse is accumulated. Subtracting using is performed. More specifically, the number of clock pulses set in the conversion coefficient setting counter 125 and the frequency dividing counter 124 based on the high-speed clock pulse generated by the high-speed clock pulse generator 122A in one subtraction process. The number of clock pulses latched is simultaneously subtracted until the number of clock pulses latched in the frequency division counter 124 becomes zero.

そして、以上の処理が終了すると、分周カウンタ124のカウントを停止し(S15)、変換係数設定用カウンタ125のカウントを停止し(S16)、3ステートレジスタ127の値を更新する(S17)。したがって、3ステートレジスタ127の値そのものがエンジン120の回転速度を示すことになる。   When the above processing is completed, the count of the frequency dividing counter 124 is stopped (S15), the count of the conversion coefficient setting counter 125 is stopped (S16), and the value of the 3-state register 127 is updated (S17). Therefore, the value of the 3-state register 127 itself indicates the rotation speed of the engine 120.

このように、本実施の形態では、高速クロックパルスを用いてカウント数の減算を行っているので、処理時間を大幅に短縮することができ、回転検出センサの分解能(回転パルス1周期)に近い時間内での回転速度の検出も可能となる。したがって、ほぼリアルタイムでエンジンの回転速度を検出することができ、エンジンの細かな制御が可能となる。   Thus, in this embodiment, since the count number is subtracted using the high-speed clock pulse, the processing time can be greatly shortened and is close to the resolution of the rotation detection sensor (one rotation pulse period). It is also possible to detect the rotational speed within the time. Therefore, the rotational speed of the engine can be detected almost in real time, and the engine can be finely controlled.

本発明は、回転体の回転速度を広範囲かつ高精度で測定することができるので、たとえば、エンジンやモータの回転速度を測定する装置に利用可能である。   Since the present invention can measure the rotational speed of a rotating body over a wide range and with high accuracy, it can be used for an apparatus for measuring the rotational speed of an engine or motor, for example.

本発明に係る回転体制御装置の概略構成図である。It is a schematic block diagram of the rotary body control apparatus which concerns on this invention. 本発明に係る回転速度計数装置の構成を示すブロック図である。It is a block diagram which shows the structure of the rotational speed counting apparatus which concerns on this invention. 図2に示した回転速度計数装置の動作手順及び回転速度計数方法を示すフローチャートである。It is a flowchart which shows the operation | movement procedure and rotational speed counting method of the rotational speed counting apparatus shown in FIG. 図2に示した回転速度計数装置の各構成要素のタイミングチャートである。It is a timing chart of each component of the rotational speed counting device shown in FIG. 図2に示した回転速度計数装置の各構成要素のタイミングチャートである。It is a timing chart of each component of the rotational speed counting device shown in FIG. 本発明に係る他の回転体制御装置の概略構成図である。It is a schematic block diagram of the other rotary body control apparatus which concerns on this invention.

符号の説明Explanation of symbols

100 エンジン制御装置、
110 信号整形器、
120、120A 回転速度計数装置、
121 タイミング制御回路、
122 クロックパルス発生部、
122A 高速クロックパルス発生部、
123 周期測定用カウンタ、
124 分周カウンタ、
125 変換係数設定用カウンタ、
126 回転数データカウンタ、
127 3ステートレジスタ、
128 ラッチ部、
129 クロックパルス分周回路、
130 コンピュータ、
140 データバスライン、
200 回転検出センサ、
210 エンジン、
220 シグナルプレート。
100 engine control device,
110 signal shaper,
120, 120A rotational speed counting device,
121 timing control circuit,
122 clock pulse generator,
122A high-speed clock pulse generator,
123 counter for period measurement,
124 divider counter,
125 Counter for setting conversion coefficient,
126 rotation speed data counter,
127 3-state register,
128 latch part,
129 clock pulse frequency divider,
130 computers,
140 data bus lines,
200 rotation detection sensor,
210 engine,
220 Signal plate.

Claims (10)

回転体の回転速度に応じた周期で出力される回転パルスを入力する回転パルス入力手段と、
当該回転パルスの周期よりも短い周期でクロックパルスを発生するクロックパルス発生部と、
前記回転パルスが1周期する間に発生した当該クロックパルスの数をカウントする周期測定用カウンタと、
当該周期測定用カウンタがカウントしたクロックパルスの数をラッチする分周カウンタと、
前記クロックパルス発生部から単位時間内に発生されるクロックパルスの数を設定する変換係数設定用カウンタと、
当該変換係数設定用カウンタに設定されているクロックパルスの数から当該分周カウンタにラッチされているクロックパルスの数を累積的に減算する減算手段と、
当該減算手段が前記単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する計数手段と、
を有することを特徴とする回転体の回転速度計数装置。
Rotation pulse input means for inputting a rotation pulse output at a cycle according to the rotation speed of the rotating body;
A clock pulse generator for generating a clock pulse with a cycle shorter than the cycle of the rotation pulse;
A period measuring counter that counts the number of clock pulses generated during one period of the rotation pulse;
A frequency division counter that latches the number of clock pulses counted by the period measurement counter;
A conversion coefficient setting counter for setting the number of clock pulses generated within a unit time from the clock pulse generator;
Subtracting means for cumulatively subtracting the number of clock pulses latched in the frequency dividing counter from the number of clock pulses set in the conversion coefficient setting counter;
Counting means for counting the number of subtractions performed by the subtracting means within the unit time and counting the rotational speed of the rotating body from the counted number;
A rotating speed counting device for a rotating body, comprising:
回転体の回転速度に応じた周期で出力される回転パルスを入力する回転パルス入力手段と、
請求項1に記載のクロックパルス発生手段によって発生されるクロックパルスの周波数の複数倍の周波数を持つ高速クロックパルスを発生する高速クロックパルス発生部と、
当該高速クロックパルスを分周するクロックパルス分周手段と、
前記回転パルスが1周期する間に発生した分周後のクロックパルスの数をカウントする周期測定用カウンタと、
当該周期測定用カウンタがカウントしたクロックパルスの数を一時的に記憶するラッチ部と、
当該ラッチ部に記憶されたクロックパルスの数をラッチする分周カウンタと、
前記高速クロックパルス発生部から単位時間内に発生される高速クロックパルスの分周後のクロックパルスの数を設定する変換係数設定用カウンタと、
前記高速クロックパルス発生部が発生した高速クロックパルスに基づいて、当該変換係数設定用カウンタに設定されているクロックパルスの数から当該分周カウンタにラッチされているクロックパルスの数を累積的に減算する減算手段と、
当該減算手段が前記単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する計数手段と、
を有することを特徴とする回転体の回転速度計数装置。
Rotation pulse input means for inputting a rotation pulse output at a cycle according to the rotation speed of the rotating body;
A high-speed clock pulse generator for generating a high-speed clock pulse having a frequency that is a multiple of the frequency of the clock pulse generated by the clock pulse generator according to claim 1;
Clock pulse dividing means for dividing the high-speed clock pulse;
A period measurement counter that counts the number of frequency-divided clock pulses generated during one period of the rotation pulse;
A latch unit that temporarily stores the number of clock pulses counted by the period measurement counter;
A frequency dividing counter for latching the number of clock pulses stored in the latch unit;
A conversion coefficient setting counter for setting the number of clock pulses after frequency division of the high-speed clock pulse generated within a unit time from the high-speed clock pulse generator;
Based on the high-speed clock pulse generated by the high-speed clock pulse generator, the number of clock pulses latched in the frequency division counter is cumulatively subtracted from the number of clock pulses set in the conversion coefficient setting counter. Subtracting means to
Counting means for counting the number of subtractions performed by the subtracting means within the unit time and counting the rotational speed of the rotating body from the counted number;
A rotating speed counting device for a rotating body, comprising:
請求項1又は2に記載の回転速度計数装置を、回転体の回転速度に応じた周期で回転パルスを発生する回転パルス検出手段と前記回転体の制御を行うコンピュータとの間に接続したことを特徴とする回転体制御装置。   The rotation speed counting device according to claim 1 or 2 is connected between a rotation pulse detecting means for generating a rotation pulse at a cycle corresponding to the rotation speed of the rotating body and a computer for controlling the rotating body. A rotating body control device. 前記周期測定用カウンタ、前記分周カウンタ、変換係数設定用カウンタ及び計数手段はすべて所定ビット数のカウンタのみを用いて構成されていることを特徴とする請求項1又は2に記載の回転速度計数装置。   3. The rotational speed counting according to claim 1, wherein the period measuring counter, the frequency dividing counter, the conversion coefficient setting counter, and the counting means are all configured using only a counter having a predetermined number of bits. apparatus. 前記周期測定用カウンタ、前記分周カウンタ、変換係数設定用カウンタ及び計数手段に要求されるビット数は、前記回転体の回転速度の測定範囲と要求される測定精度とに基づいて決定されることを特徴とする請求項1又は2に記載の回転速度計数装置。   The number of bits required for the period measurement counter, the frequency division counter, the conversion coefficient setting counter, and the counting means is determined based on the measurement range of the rotational speed of the rotating body and the required measurement accuracy. The rotation speed counting device according to claim 1 or 2, characterized in that. 前記単位時間は60秒間であることを特徴とする請求項1又は2に記載の回転速度計数装置。   The rotation speed counting apparatus according to claim 1 or 2, wherein the unit time is 60 seconds. 前記減算手段は、1回の減算において、前記クロックパルス発生部が発生したクロックパルスに基づいて、前記変換係数設定用カウンタに設定されているクロックパルスの数と前記分周カウンタにラッチされているクロックパルスの数とを、前記分周カウンタにラッチされているクロックパルスの数が0になるまで同時に減算することを特徴とする請求項1に記載の回転速度計数装置。   The subtracting means is latched in the frequency dividing counter and the number of clock pulses set in the conversion coefficient setting counter based on the clock pulse generated by the clock pulse generator in one subtraction. 2. The rotational speed counting apparatus according to claim 1, wherein the number of clock pulses is subtracted simultaneously until the number of clock pulses latched in the frequency dividing counter becomes zero. 前記減算手段は、1回の減算において、前記高速クロックパルス発生部が発生した高速クロックパルスに基づいて、前記変換係数設定用カウンタに設定されているクロックパルスの数と前記分周カウンタにラッチされているクロックパルスの数とを、前記分周カウンタにラッチされているクロックパルスの数が0になるまで同時に減算することを特徴とする請求項2に記載の回転速度計数装置。   The subtracting means is latched by the frequency dividing counter and the number of clock pulses set in the conversion coefficient setting counter based on the high speed clock pulse generated by the high speed clock pulse generator in one subtraction. 3. The rotational speed counting device according to claim 2, wherein the number of clock pulses being subtracted is simultaneously subtracted from the number of clock pulses latched in the frequency dividing counter until the number of clock pulses latched to zero. 回転体の回転速度に応じた周期で出力される回転パルスを入力する段階と、
当該回転パルスの周期よりも短い周期でクロックパルスを発生する段階と、
前記回転パルスが1周期する間に発生した当該クロックパルスの数をカウントする段階と、
当該カウントしたクロックパルスの数をラッチする段階と、
単位時間内に発生されるクロックパルスの数を設定する段階と、
前記回転パルスを入力する度に設定されているクロックパルスの数からラッチされているクロックパルスの数を累積的に減算する段階と、(タイミング制御回路)
単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する段階と、(回転数データカウンタ、3ステートレジスタ)
を含むことを特徴とする回転体の回転速度計数方法。
A step of inputting a rotation pulse output at a cycle according to the rotation speed of the rotating body;
Generating a clock pulse with a period shorter than the period of the rotation pulse;
Counting the number of clock pulses generated during one period of the rotation pulse;
Latching the counted number of clock pulses;
Setting the number of clock pulses generated within a unit time; and
A step of cumulatively subtracting the number of clock pulses latched from the number of clock pulses set each time the rotation pulse is input (timing control circuit)
A step of counting the number of subtractions performed within a unit time and counting the rotational speed of the rotating body from the counted number, (rotation number data counter, 3-state register)
A method of counting the rotational speed of a rotating body.
回転体の回転速度に応じた周期で出力される回転パルスを入力する段階と、
請求項9に記載のクロックパルスの周波数の複数倍の周波数を持つ高速クロックパルスを発生する段階と、
当該高速クロックパルスを分周する段階と、
前記回転パルスが1周期する間に発生した分周後のクロックパルスの数をカウントする段階と、
当該カウントしたクロックパルスの数を一時的に記憶する段階と、
当該一時的に記憶されたクロックパルスの数をラッチする段階と、
単位時間内に発生される高速クロックパルスの分周後のクロックパルスの数を設定する段階と、
前記高速クロックパルスに基づいて、設定されているクロックパルスの数からラッチされているクロックパルスの数を累積的に減算する段階と、
単位時間内に行なった減算回数をカウントしそのカウント数から前記回転体の回転速度を計数する段階と、
を含むことを特徴とする回転体の回転速度計数方法。
A step of inputting a rotation pulse output at a cycle according to the rotation speed of the rotating body;
Generating a high-speed clock pulse having a frequency that is a multiple of the frequency of the clock pulse of claim 9;
Dividing the high-speed clock pulse;
Counting the number of divided clock pulses generated during one period of the rotation pulse;
Temporarily storing the counted number of clock pulses;
Latching the number of temporarily stored clock pulses;
Setting the number of clock pulses after dividing the high-speed clock pulse generated within a unit time; and
Cumulatively subtracting the number of latched clock pulses from the set number of clock pulses based on the fast clock pulses;
Counting the number of subtractions performed within a unit time and counting the rotational speed of the rotating body from the counted number;
A method of counting the rotational speed of a rotating body.
JP2004306492A 2004-10-21 2004-10-21 Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus Pending JP2006118960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004306492A JP2006118960A (en) 2004-10-21 2004-10-21 Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004306492A JP2006118960A (en) 2004-10-21 2004-10-21 Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus

Publications (1)

Publication Number Publication Date
JP2006118960A true JP2006118960A (en) 2006-05-11

Family

ID=36536982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004306492A Pending JP2006118960A (en) 2004-10-21 2004-10-21 Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus

Country Status (1)

Country Link
JP (1) JP2006118960A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100443898C (en) * 2007-02-06 2008-12-17 鲁东大学 A method for measuring the rotational speed of a rotating shaft using a rotational speed measuring device
JP2015151945A (en) * 2014-02-14 2015-08-24 トヨタ自動車株式会社 Engine control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100443898C (en) * 2007-02-06 2008-12-17 鲁东大学 A method for measuring the rotational speed of a rotating shaft using a rotational speed measuring device
JP2015151945A (en) * 2014-02-14 2015-08-24 トヨタ自動車株式会社 Engine control device

Similar Documents

Publication Publication Date Title
JP2000044135A (en) Speed control device in elevator and recording medium for recording speed detection program of elevator
JP3173174B2 (en) Speed detector
JP2006118960A (en) Apparatus for counting rotation speed of rotator, its method, and rotator control apparatus
EP2667199B1 (en) Semiconductor data processing apparatus and engine control apparatus
US5198750A (en) Extremely wide range frequency measurement method
JP2002119090A (en) Stepper motor drive circuit
JPH09505395A (en) Electronic counting circuit
JPH061279B2 (en) Digital speed detector
KR100372946B1 (en) Control device of motor
EP2110644B1 (en) Phase difference detector and rotational position detector
JPH09151779A (en) Control device inspection device
JP3366291B2 (en) Microcomputer
JPS63179259A (en) Speed detection method using resolver
JPS5967459A (en) Method for detecting engine speed of internal combustion engine
JP2000074962A (en) Cycle-measuring device and method therefor, and storage medium
RU2258297C2 (en) Direct-current drive
KR19990001541A (en) Speed detection method and device
JPH04233467A (en) Method and apparatus for measuring speed of motor
JPH03289567A (en) Apparatus for detecting rotational speed
JP2533320B2 (en) Gas engine speed detector
JPH11160338A (en) Instrument and method for measuring pulse width for detecting rotation
KR19990085942A (en) Speed detection device and method
KR20250025939A (en) Apparatus and method for compensating phase delay of resolver signal
JP3152327B2 (en) Speed change detection device
CN115933611A (en) Method and device for improving power shaft position signal precision

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070925

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090901

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091006

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100216