Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0714142B2 - Pulse generator - Google Patents
[go: Go Back, main page]

JPH0714142B2 - Pulse generator - Google Patents

Pulse generator

Info

Publication number
JPH0714142B2
JPH0714142B2 JP1246205A JP24620589A JPH0714142B2 JP H0714142 B2 JPH0714142 B2 JP H0714142B2 JP 1246205 A JP1246205 A JP 1246205A JP 24620589 A JP24620589 A JP 24620589A JP H0714142 B2 JPH0714142 B2 JP H0714142B2
Authority
JP
Japan
Prior art keywords
preset
pulse
data
value
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1246205A
Other languages
Japanese (ja)
Other versions
JPH03108813A (en
Inventor
秀夫 萬歳
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1246205A priority Critical patent/JPH0714142B2/en
Publication of JPH03108813A publication Critical patent/JPH03108813A/en
Publication of JPH0714142B2 publication Critical patent/JPH0714142B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明はモータのフィードバック制御システムに位置指
令を与えるためのシリアルパルスを均等間隔で発生する
パルス発生回路の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION <Industrial field of application> The present invention relates to an improvement of a pulse generation circuit for generating serial pulses at regular intervals for giving a position command to a feedback control system of a motor.

<従来の技術> 従来、このようなパルス発生回路としては、本出願人よ
る特願昭63−182536号の出願明細書に記載されたものが
ある。
<Prior Art> Conventionally, as such a pulse generation circuit, there is one described in the specification of Japanese Patent Application No. 63-182536 by the present applicant.

この明細書には、今回のサンプリング周期中に次回のサ
ンプリング周期における出力パルスのパルス数とパルス
レートをプリセットしておくプリセットバッファを1つ
ずつ設けたパルス発生回路が記載されている。このパル
スを発生回路では、マイクロプロセッサ(以下、μPと
する)でパルス数とパルスレートを予め設定しておくこ
とができるため、設定タイミングの遅れが出力パルスに
影響を与えることがないというメリトがある。
This specification describes a pulse generation circuit provided with one preset buffer for presetting the pulse number and the pulse rate of the output pulse in the next sampling period during the present sampling period. In this pulse generation circuit, the number of pulses and the pulse rate can be set in advance by a microprocessor (hereinafter referred to as μP), so that there is a merit that the delay of the setting timing does not affect the output pulse. is there.

<発明が解決しようとする課題> しかし、このように改善されたパルス発生回路でも、μ
Pでパルス数とパルスレートを算出するときに用いるサ
ンプリング周期と、実際の出力パルスのサンプリング周
期との間には若干の誤差があるため、算出したパルスレ
ートで算出した数のパルスを発生すると、パルス発生の
完了時点が遅れることがある。このため、新しいサンプ
リング周期に入ったときに、μPがプリセットバッファ
に新しいデータをプリセットできる時点も遅れる。連続
してパルスを出力する場合、この遅れが積算されると結
果として1周期にわたってパルスが出力されなくなるこ
とにもなる。
<Problems to be Solved by the Invention> However, even with such an improved pulse generation circuit, μ
Since there is a slight error between the sampling period used to calculate the number of pulses and the pulse rate at P and the sampling period of the actual output pulse, when the number of pulses calculated at the calculated pulse rate is generated, The point of completion of pulse generation may be delayed. Therefore, when a new sampling period is entered, the time at which the μP can preset new data in the preset buffer is also delayed. When pulses are output continuously, if this delay is integrated, as a result, pulses will not be output for one cycle.

本発明はこのような問題点を解決するためになされたも
のであり、パルス発生回路内部でパルスレートデータを
増減する機能をもっていて、μPからのデータ設定に対
し、絶えず所定の時間前にプリセットバッファがレディ
状態になっているパルス発生回路を実現することを目的
とする。
The present invention has been made in order to solve such a problem and has a function of increasing / decreasing pulse rate data inside a pulse generating circuit, and a preset buffer is constantly provided a predetermined time before the data setting from μP. The purpose is to realize a pulse generation circuit that is in a ready state.

<課題を解決するための手段> 本発明は、 1サンプリング周期中の出力パルス数のデータがプリセ
ットされ、後述するDDA回路がデータをラッチしところ
で今回のサンプリング周期中に次回のサンプリング周期
の出力パルス数のデータがプリセットされる第1のプリ
セットバッファと、 出力パルスのパルスレートのデータがプリセットされ、
後述するDDA回路がデータをラッチしたところで今回の
サンプリング周期中に次回のサンプリング周期のパルス
レートのデータがプリセットされる第2のプリセットバ
ッファと、 前記第1のプリセットバッファのプリセット値がセット
され、パルスが出力される毎にカウントが変動し、セッ
ト値だけカウントが変動したところでカウントアップ信
号を発生するカウントと、 前記第2のプリセットバッファのプリセット値に対応し
た最適なパルスレート値を与えるデータが格納されたメ
モリと、 前記カウンタにプリセット値がセットされると、前記第
2のプリセットバッファのプリセット値をアドレスにし
て前記メモリから最適なパルスレート値を読み出すコン
トローラと、 このコントローラが読出したパルスレート値をラッチ
し、このパルスレート値に応じた周期で出力パルスとな
る桁上がり信号を発生するDDA回路と、 前記カウントアップ信号が発生したときに桁上がり信号
の通過を禁止して出力パルスの発生を終了させるゲート
と、 前記第2のプリセットバッファに前段に設けられてい
て、パルス出力が完了してから次のサンプリング周期で
第2のプリセットバッファへのプリセットが開始するま
での時間を計測し、計測値に応じて第2のプリセットバ
ッファにプリセットする値を制御するレートデータ制御
回路、 を具備したことを特徴とするパルス発生回路である。
<Means for Solving the Problems> In the present invention, the data of the number of output pulses in one sampling cycle is preset, and the DDA circuit described later latches the data, and the output pulse of the next sampling cycle is generated during the current sampling cycle. The first preset buffer where the number data is preset, and the pulse rate data of the output pulse is preset,
When the DDA circuit described later latches the data, the second preset buffer in which the data of the pulse rate of the next sampling period is preset during the current sampling period, and the preset value of the first preset buffer are set, and the pulse is set. The count fluctuates each time is output, and a count that generates a count-up signal when the count fluctuates by the set value and data that gives the optimum pulse rate value corresponding to the preset value of the second preset buffer are stored. And a controller for reading an optimum pulse rate value from the memory by using the preset value of the second preset buffer as an address when a preset value is set in the counter, and a pulse rate value read by the controller. Latch this pulse A DDA circuit that generates a carry signal that becomes an output pulse in a cycle according to a rate value, a gate that prohibits passage of the carry signal when the count-up signal occurs, and terminates the generation of the output pulse, The second preset buffer is provided in the previous stage, and measures the time from the completion of pulse output to the start of presetting to the second preset buffer in the next sampling cycle, and the second time is measured according to the measured value. And a rate data control circuit for controlling a value preset in the preset buffer of.

<作用> このような本発明では、出力パルスのパルスレートのデ
ータがプリセットされるプリセットバッファの前段にレ
ートデータ制御回路を設け、この回路によりパルスレー
ト値を制御して、μPからのデータ設定に対し、絶えず
所定の時間前にプリセットバッファをレディ状態にす
る。
<Operation> In the present invention as described above, the rate data control circuit is provided in the preceding stage of the preset buffer in which the data of the pulse rate of the output pulse is preset, and the pulse rate value is controlled by this circuit to set the data from the μP. On the other hand, the preset buffer is constantly set to the ready state a predetermined time before.

<実施例> 以下、図面を用いて本発明を説明する。<Example> Hereinafter, the present invention will be described with reference to the drawings.

第1図は本発明にかかるパルス発生回路の一実施例の構
成図である。
FIG. 1 is a block diagram of an embodiment of a pulse generating circuit according to the present invention.

図で、1は1サンプリング周期中の出力パルス数のデー
タがプリセットされるプリセットバッファである。プリ
セット値は、μP(図示せず)から8ビットのデータバ
スIDB0〜7を経由して与えられる。プリセット値のビッ
ト数がデータバスのビット数よりも大きいため、上位バ
イトロード信号▲▼と下位バイトロード信
号▲▼を使い分けて時分割にセットを行
う。このバッファには今回のサンプリング周期中に次回
のサンプリング周期の出力パルス数がプリセットされ
る。
In the figure, reference numeral 1 is a preset buffer in which data of the number of output pulses in one sampling period is preset. The preset value is given from the μP (not shown) via the 8-bit data bus IDB0-7. Since the number of bits of the preset value is larger than the number of bits of the data bus, the upper byte load signal ▲ ▼ and the lower byte load signal ▲ ▼ are used separately and set in time division. The number of output pulses in the next sampling period is preset in this buffer during the current sampling period.

11は出力パルスのパルスレートのデータがプリセットさ
れるプリセットバッファである。パルスレートのデータ
も出力パルス数のデータと同様に、データバスIDB0〜7
を用いて上位バイトロード信号▲▼と下
位バイトロード信号▲▼を使い分けてセ
ットされる。また、今回のサンプリング周期中に次回の
サンプリング周期のパルスレートがセットされる。
1 1 is a preset buffer in which the pulse rate data of the output pulse is preset. The data of pulse rate is the same as the data of the number of output pulses.
Is set by using the upper byte load signal ▲ ▼ and the lower byte load signal ▲ ▼. Also, the pulse rate of the next sampling period is set during the current sampling period.

2はダウンカウンタであり、プリセットバッファ1のプ
リセット値がセットされ、パルスが出力される毎にダウ
ンカウントし、カウントが0になったところでカウント
アップ信号を出力する。カウントアップ信号が発生した
後にプリセットバッファ1から次回の出力パルス数のデ
ータがセットされる。
A down counter 2 is set with a preset value of the preset buffer 1 and counts down each time a pulse is output, and outputs a count-up signal when the count reaches 0. After the count-up signal is generated, the data of the next output pulse number is set from the preset buffer 1.

3は出力パルス数のデータの最上位ビットを取出してパ
ルスの方向を示す信号SIGNを保持して出力するラッチで
ある。出力パルスでモータを駆動する場合は、SIGN信号
はモータの回転方向を決める信号となる。
A latch 3 takes out the most significant bit of the output pulse number data and holds and outputs the signal SIGN indicating the pulse direction. When the motor is driven by the output pulse, the SIGN signal is a signal that determines the rotation direction of the motor.

4はメモリであり、プリセットバッファ11のプリセット
値をアドレスにして、プリセット値に応じた最適なパル
スレート値のデータが格納されている。メモリ4として
はROMが用いられる。メモリ4へのアドレスは15ビット
のアドレスバスRA0〜14により与えられる。
4 is a memory, and the preset value of the preset buffer 1 1 to the address, data optimum pulse rate values corresponding to the preset value is stored. A ROM is used as the memory 4. The address to the memory 4 is given by the 15-bit address bus RA0-14.

5はステータスバッファであり、ステータス読込み信号
▲▼によりプリセットバッファ1と11からの
ステータス信号▲▼と▲▼
を読み込む。
5 is a status buffer status read signal ▲ ▼ by preset buffer 1 and 1 status signal from 1 ▲ ▼ and ▲ ▼
Read.

6はコントロールロジックであり、クロック信号CLOCK
で与えられるタイミングで動作し、プリセットバッファ
1からダウンカウンタ2へのセット値の格納、メモリ4
からのデータの読出し制御等を行う。
6 is a control logic, which is a clock signal CLOCK
It operates at the timing given by, and stores the set value from the preset buffer 1 to the down counter 2 and the memory 4
Controls reading of data from the.

7ははレートラッチ、8は全加算器、9はラッチで、こ
れらによりDDA(Digital Differential Adder)を構
成している。
Reference numeral 7 is a rate latch, 8 is a full adder, and 9 is a latch, which form a DDA (Digital Differential Adder).

レートラッチ7は、メモリ4から読出されたデータをラ
ッチし出力する。読出しデータは8ビットのデータバス
RD0〜7により転送される。
The rate latch 7 latches and outputs the data read from the memory 4. Read data is 8-bit data bus
Transferred by RD0-7.

メモリ4から読み出すデータのビット数は8ビットより
も大きいため、メモリ4に与えられる読出しアドレスの
最下位ビットの状態に応じて上位ビットと下位ビットの
読出しを分けて行う。この最下位ビットはアドレスバス
RA0により転送される。
Since the number of bits of data read from the memory 4 is larger than 8 bits, the upper bit and the lower bit are read separately according to the state of the least significant bit of the read address given to the memory 4. This least significant bit is the address bus
Transferred by RA0.

また、レートラッチ7にラッチするデータのビット数は
8ビットよりも大きいため、このデータのラッチは下位
バイトロード信号▲▼と上位バイトロード
信号▲▼を用いて時分割に行なう。▲
▼と▲▼はコントロールロジック
6が発生する。
Further, since the number of bits of data latched in the rate latch 7 is larger than 8 bits, this data is latched in time division using the lower byte load signal ▲ ▼ and the upper byte load signal ▲ ▼. ▲
The control logic 6 generates ▼ and ▲ ▼.

全加算器8はレートラッチ7とラッチ9の出力を加算
し、加算値をラッチ9に与える。
The full adder 8 adds the outputs of the rate latch 7 and the latch 9 and gives the added value to the latch 9.

ラッチ9には、全加算器8の加算値とコントロールロジ
ック6からのクロックCLK1が与えられている。ラッチ9
は、クロックCLK1のタイミングで全加算器8の加算値を
ラッチし加算値を全加算器8の入力部に帰還する。
To the latch 9, the added value of the full adder 8 and the clock CLK1 from the control logic 6 are given. Latch 9
Latches the added value of the full adder 8 at the timing of the clock CLK1 and feeds the added value back to the input section of the full adder 8.

全加算器8はレートラッチ7とラッチ9の出力を加算
し、加算値をラッチ9に与える。ラッチ9の出力は最上
位ビットが変わる毎に桁上がり信号ADDCY(パルス信
号)が発生する。桁上がり信号ADDCYがDDA回路の出力と
なる。
The full adder 8 adds the outputs of the rate latch 7 and the latch 9 and gives the added value to the latch 9. The carry signal ADDCY (pulse signal) is generated at the output of the latch 9 every time the most significant bit changes. The carry signal ADDCY becomes the output of the DDA circuit.

クロックCLK1のパルスレートはレートラッチ7にデータ
をラッチするDLATCH信号とULATCH信号のパルスレートよ
りも大きく設定されている。
The pulse rate of the clock CLK1 is set to be higher than the pulse rates of the DLATCH signal and the ULATCH signal which latch the data in the rate latch 7.

10はアンドゲートであり、ロジックコントローラ6から
の信号GCにより、ダウンカウンタがカウントアップ信号
を発生する前は桁上がり信号を通過させ、カウントアッ
プ信号が発生すると桁上がり信号の通過を禁止する。ア
ンドゲート10を通過した信号がパルス発生回路の出力パ
ルスになる。
Reference numeral 10 denotes an AND gate. The signal GC from the logic controller 6 allows the carry signal to pass before the down counter generates the count up signal, and prohibits the carry signal from passing when the count up signal occurs. The signal that has passed through the AND gate 10 becomes the output pulse of the pulse generation circuit.

11は本発明の特徴とするところのレートデータ制御回路
であり、プリセットバッファ11の前段に設けられてい
て、前回のサンプリング周期でパルス出力が完了してか
ら次のサンプリング周期でプリセットバッファ11がレデ
ィになるまでの時間を計測し、計測値に応じてプリセッ
トバッファ11にプリセットするパルスレート値を増減す
る。パルスレート値は、バスIDB0〜7により▲
▼と▲▼を使い分けてレートデー
タ制御回路11に与えられる。増減されたパルスレート値
がプリセットバッファ11にプリセットされる。
11 is rate data control circuit at which the feature of the present invention, be provided in front of the preset buffer 1 1, preset buffer 1 1 from the pulse output is completed in the previous sampling period in the next sampling period Measures the time until becomes ready and increases or decreases the pulse rate value preset in the preset buffer 1 1 according to the measured value. Pulse rate value depends on bus IDB0-7
The ▼ and ▲ ▼ are selectively used and given to the rate data control circuit 11. The increased / decreased pulse rate value is preset in the preset buffer 1 1 .

▲▼は、プリセットバッファ1,11、ダウン
カウンタ2、ラッチ3,9、コントロールロジック6、レ
ートラッチ7に与えられるイニシャルリセット信号であ
る。
▲ ▼ is an initial reset signal given to the preset buffer 1, 11 1 , the down counter 2, the latches 3, 9, the control logic 6, and the rate latch 7.

▲▼,▲▼,▲
▼,▲▼,▲▼,▲
▼の信号はμPから与えられる。
▲ ▼, ▲ ▼, ▲
▼, ▲ ▼, ▲ ▼, ▲
The signal of ▼ is given from μP.

次に、このようなパルス発生回路の動作を説明する。Next, the operation of such a pulse generating circuit will be described.

第2図は第1図の回路の各信号のタイムチャートであ
る。
FIG. 2 is a time chart of each signal of the circuit of FIG.

まず、1サンプリング周期中に発生するパルス数のデー
タは、μPからの▲▼信号と▲
▼信号によりプリセットバッファ1にセットされる。
First, the data of the number of pulses generated during one sampling period is
▼ Set in the preset buffer 1 by a signal.

このとき、セット値の最上位ビットの内容はラッチ3に
セットされ、これによりパルスの方向を示す信号SIGNが
出力される。
At this time, the content of the most significant bit of the set value is set in the latch 3, and thereby the signal SIGN indicating the pulse direction is output.

▲▼によるデータのセットが終わると、バ
ッファ書込信号▲▼がハイレベルになり、
これによりコントロールロジック6がクロックCLOCKの
タイミングで動作を開始し、CLOAD信号により出力パル
ス数のデータをダウンカウンタ2にロードする。
When the data setting by ▲ ▼ is completed, the buffer write signal ▲ ▼ becomes high level,
As a result, the control logic 6 starts operating at the timing of the clock CLOCK, and the data of the output pulse number is loaded into the down counter 2 by the CLOAD signal.

一方では、パルスレートのデータはμPからの▲
▼信号と▲▼信号のタイミング
によりレートデータ制御回路11で増減制御された後、プ
リセットバッファ11にプリセットされる。この場合、最
初のサンプリング周期の▲▼信号と▲
▼信号のタイミングによりパルスレートデ
ータはレートデータ制御回路11にセットされ、次のサン
プリング周期の▲▼信号と▲
▼信号のタイミングにより増減制御されたパルスレ
ートデータがプリセットバッファ11にプリセットされ
る。
On the other hand, the pulse rate data is
▼ signals and ▲ ▼ after being increased or decreased controlled by the rate data control circuit 11 by the timing signal is preset in the preset buffer 1 1. In this case, ▲ ▼ signal and ▲ of the first sampling period
▼ The pulse rate data is set in the rate data control circuit 11 according to the signal timing, and the ▲ ▼ signal and ▲ of the next sampling cycle
▼ pulse rate data is increased or decreased controlled by the timing signal is preset to the preset buffer 1 1.

パルスレートデータのプリセットバッファ11へのプリセ
ットが終わると、バッファ書込信号▲▼
がハイレベルになり、これによりコントロールロジック
6はROMOE信号によりメモリ4へのアクセスを可能にす
る。
When the preset of pulse rate data to the preset buffer 1 1 is completed, the buffer write signal ▲ ▼
Becomes high level, which enables the control logic 6 to access the memory 4 by the ROMOE signal.

ここで、プリセットバッファ11のプリセット値をアドレ
スにしてメモリ4から全加算器8の初期値すなわち最適
な出力パルスレートのデータを読出し、レートラッチ7
にセットする。
Here, the preset buffer 1 1 of the preset value in the address read out data of the initial value or optimum output pulse rate of the full adder 8 from the memory 4, rate latch 7
Set to.

セットが終わると、コントロールロジック6がクロック
CLK1をラッチ9に与える。これによって全加算器8が動
き出す。
When setting is completed, the control logic 6 clocks
CLK1 is applied to the latch 9. As a result, the full adder 8 starts to move.

ラッチ9は、全加算器8の出力すなわちレートラッチ7
とラッチ9の出力の加算値をクロックCLK1の周期でラッ
チし出力する。ラッチ9の出力の最上位ビットが変わる
毎に桁上がり信号ADDCYが発生する。ADDCY信号はダウン
カウンタ2でカウントされる。
The latch 9 is the output of the full adder 8, that is, the rate latch 7
And the added value of the output of the latch 9 is latched and output at the cycle of the clock CLK1. The carry signal ADDCY is generated each time the most significant bit of the output of the latch 9 changes. The ADDCY signal is counted by the down counter 2.

全加算器8が動き出すと同時に▲▼信号と
▲▼信号がローレベルになり、次回のサ
ンプリング周期の出力パルス数とパルスレートのデータ
がプリセットバッファ1と11に書込み可能になる。次回
のサンプリング周期の出力パルス数とパルスレートのデ
ータの書込みは今回のサンプリング周期のパルス出力が
終了するまでに行なわれる。
At the same time the full adder 8 starts moving ▲ ▼ signals and ▲ ▼ signal goes low, the data of the output pulse count and pulse rate of the next sampling cycle is writable preset buffer 1 and 1 1. The writing of the output pulse number and pulse rate data in the next sampling cycle is performed until the pulse output in the current sampling cycle is completed.

ダウンカウンタ2のカウントが0になってカウントアッ
プ信号が発生すると、コントロールロジック6はゲート
10を閉じて今回のサンプリング周期のパルスの出力を終
了する。このとき、プリセットバッファ1に出力パルス
数のデータが書込まれていた場合すなわち▲
▼信号がハイレベルである場合は、前述した出力パル
ス数のデータのダウンカウンタ2へのロード以降の動作
を行う。
When the count of the down counter 2 becomes 0 and a count up signal is generated, the control logic 6 becomes a gate.
Close 10 to end the output of the pulse of this sampling cycle. At this time, when the data of the output pulse number is written in the preset buffer 1,
If the signal is at the high level, the operation after loading the data of the output pulse number into the down counter 2 is performed.

ここで、レートデータ制御回路11によるパルスレートの
増減制御の動作を説明する。
Here, the operation of the pulse data increase / decrease control by the rate data control circuit 11 will be described.

パルス発生回路を起動してから最初のサンプリング周期
と2回目のサンプリング周期にμPから与えられたパル
スレートの設定データに対しては、レートデータ制御回
路11は、 (設定データから求められるサンプリング周期−Δt になるように設定したデータを加工してプリセットバッ
ファ11へ送る。ここで、Δtは設定データから求められ
る周期に比べて十分小さい値で、例えば10μs程度であ
る。
For the pulse rate setting data given by μP in the first sampling period and the second sampling period after the pulse generation circuit is activated, the rate data control circuit 11 (sampling period obtained from the setting data − and processing the set data to be Delta] t send the preset buffer 1 1. here, Delta] t is sufficiently smaller than the period determined from the setting data, for example, about 10 [mu] s.

3回目以降のサンプリング周期の設定データに対して
は、レートデータ制御回路11は、 ▲▼信号がローレベルになってから次の
サンプリング周期で▲▼信号がハイレベ
ルになるまでの時間tiを計測する。そして、レートデー
タ制御回路11は計測値が所定の範囲内の値になるように
パルスレート値を増減してプリセットバッファ11に与え
る。
For the setting data of the third and subsequent sampling periods, the rate data control circuit 11 measures the time ti from when the ▲ ▼ signal becomes low level to when the ▲ ▼ signal becomes high level in the next sampling period. To do. The rate data control circuit 11 provides the preset buffer 1 1 by increasing or decreasing the pulse rate values as measured value becomes a value within a predetermined range.

これによって、μPによるデータ設定が行なわれる時点
よりも所定時間だけ前の時点で常にプリセットバッファ
がレディ状態になる。
As a result, the preset buffer is always in the ready state at a time point that is a predetermined time before the time point at which the data setting by the μP is performed.

なお、ダウンカウンタ2の代わりにアップカウンタを用
いてもよい。
An up counter may be used instead of the down counter 2.

また、実施例ではプリセットバッファが1段である場合
について説明したが、FIFO(先入れ先出しメモリ)等を
用いてプリセットバッファを2段以上にしてもよい。こ
のようにすることにより、μPのパルス数設定周期は自
由度が増し、さらに使いやすくなる。
Further, in the embodiment, the case where the preset buffer has one stage has been described, but the preset buffer may have two or more stages using a FIFO (first-in first-out memory) or the like. By doing so, the degree of freedom of the pulse number setting period of μP is increased and it becomes easier to use.

また、各バスの転送信号のビット数は実施例で示すもの
以外であってもよい。
Further, the number of bits of the transfer signal of each bus may be other than that shown in the embodiment.

[効果] 本発明によれば、パルスレート値を制御することによ
り、μPによるデータ設定が行なわれる時点よりも所定
時間だけ前の時点で常にプリセットバッファがレディ状
態になる。これによって、設定データの演算に用いられ
るサンプリング周期と、実際のサンプリング周期との間
に誤差があっても、この誤差はパルス発生回路内部で吸
収される。従って、連続してパルスを出力しても誤差は
積算されない。
[Effect] According to the present invention, by controlling the pulse rate value, the preset buffer is always in the ready state at a time point that is a predetermined time before the time point at which the data setting by μP is performed. As a result, even if there is an error between the sampling cycle used to calculate the setting data and the actual sampling cycle, this error is absorbed inside the pulse generation circuit. Therefore, the error is not integrated even if the pulses are output continuously.

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

第1図は本発明にかかるパルス発生回路の一実施例の構
成図、第2図は第1図の回路の動作説明図である。 1……第1のプリセットバッファ、11……第2のプリセ
ットバッファ、2……ダウンカウンタ、4……メモリ、
6……コントロールロジック、7……レートラッチ、8
……全加算器、9……ラッチ、10……ゲート、11……レ
ートデータ制御回路。
FIG. 1 is a configuration diagram of an embodiment of a pulse generating circuit according to the present invention, and FIG. 2 is an operation explanatory diagram of the circuit of FIG. 1 ... First preset buffer, 1 1 ... Second preset buffer, 2 ... Down counter, 4 ... Memory,
6 ... Control logic, 7 ... Rate latch, 8
…… Full adder, 9 …… Latch, 10 …… Gate, 11 …… Rate data control circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】1サンプリング周期中の出力パルス数のデ
ータがプリセットされ、後述するDDA回路がデータをラ
ッチしところで今回のサンプリング周期中に次回のサン
プリング周期の出力パルス数のデータがプリセットされ
る第1のプリセットバッファと、 出力パルスのパルスレートのデータがプリセットされ、
後述するDDA回路がデータをラッチしたところで今回の
サンプリング周期中に次回のサンプリング周期のパルス
レートのデータがプリセットされる第2のプリセットバ
ッファと、 前記第1のプリセットバッファのプリセット値がセット
され、パルスが出力される毎にカウントが変動し、セッ
ト値だけカウントが変動したところでカウントアップ信
号を発生するカウンタと、 前記第2のプリセットバッファのプリセット値に対応し
た最適なパルスレート値を与えるデータが格納されたメ
モリと、 前記カウンタにプリセット値がセットされると、前記第
2のプリセットバッファのプリセット値をアドレスにし
て前記メモリから最適なパルスレート値を読み出すコン
トローラと、 このコントローラが読出したパルスレート値をラッチ
し、このパルスレート値に応じた周期で出力パルスとな
る桁上がり信号を発生するDDA回路と、 前記カウントアップ信号が発生したときに桁上がり信号
の通過を禁止して出力パルスの発生を終了させるゲート
と、 前記第2のプリセットバッファの前段に設けられてい
て、パルス出力が完了してから次のサンプリング周期で
第2のプリセットバッファへのプリセットが開始するま
での時間を計測し、計測値に応じて第2のプリセットバ
ッファにプリセットする値を制御するレートデータ制御
回路、 を具備したことを特徴とするパルス発生回路。
1. The data of the number of output pulses in one sampling cycle is preset, and the data of the number of output pulses of the next sampling cycle is preset during the sampling cycle of this time when the DDA circuit described later latches the data. The preset buffer of 1 and the pulse rate data of the output pulse are preset,
When the DDA circuit described later latches the data, the second preset buffer in which the data of the pulse rate of the next sampling period is preset during the current sampling period, and the preset value of the first preset buffer are set, and the pulse is set. , A counter that generates a count-up signal when the count changes by the set value, and data that gives an optimum pulse rate value corresponding to the preset value of the second preset buffer are stored. And a controller for reading an optimum pulse rate value from the memory by using the preset value of the second preset buffer as an address when a preset value is set in the counter, and a pulse rate value read by the controller. Latch this pulse A DDA circuit that generates a carry signal that becomes an output pulse in a cycle according to a rate value, a gate that prohibits passage of the carry signal when the count-up signal occurs, and terminates the generation of the output pulse, It is provided in the preceding stage of the second preset buffer, and measures the time from the completion of pulse output to the start of presetting to the second preset buffer in the next sampling cycle, and according to the measured value, the second A pulse generation circuit, comprising: a rate data control circuit for controlling a value preset in the preset buffer of.
JP1246205A 1989-09-21 1989-09-21 Pulse generator Expired - Lifetime JPH0714142B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1246205A JPH0714142B2 (en) 1989-09-21 1989-09-21 Pulse generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1246205A JPH0714142B2 (en) 1989-09-21 1989-09-21 Pulse generator

Publications (2)

Publication Number Publication Date
JPH03108813A JPH03108813A (en) 1991-05-09
JPH0714142B2 true JPH0714142B2 (en) 1995-02-15

Family

ID=17145083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1246205A Expired - Lifetime JPH0714142B2 (en) 1989-09-21 1989-09-21 Pulse generator

Country Status (1)

Country Link
JP (1) JPH0714142B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010041532A (en) * 2008-08-07 2010-02-18 Yokogawa Electric Corp Pulse rate converter

Also Published As

Publication number Publication date
JPH03108813A (en) 1991-05-09

Similar Documents

Publication Publication Date Title
US4829475A (en) Method and apparatus for simultaneous address increment and memory write operations
AU2003499A (en) Method and system for processing pipelined memory commands
JPS61125641A (en) Data compression control system
JPH04232518A (en) Digital processor block circuit
EP0358424B1 (en) Data transfer method
US5269012A (en) Stack memory system including an address buffer for generating a changed address by inverting an address bit
JP2551338B2 (en) Information processing device
JPH0714142B2 (en) Pulse generator
US6003053A (en) Pulse signal generation circuit and pulse signal generation method
JPS6024494B2 (en) Random access memory read/write control circuit
US4238834A (en) Apparatus for coordinating real time transfer of data from a processor to a magnetic media device
JPH0232613A (en) Pulse generation circuit
JPS6356199A (en) Control unit of pulse motor
SU1691891A1 (en) Buffer memory
JP2730275B2 (en) High-speed thermal waveform recorder
JPH0630438B2 (en) Pulse generator
JP2579551B2 (en) Bit buffer circuit
JP3514532B2 (en) Clock signal generator
KR950002405B1 (en) Position controlling method and apparatus of servomotor
KR950010831B1 (en) How to drive a timeout interrupt in a timer
SU1410033A1 (en) Logical analyzer
SU1297011A1 (en) Device for automatic accelerating and braking of motor of numerically controlled machine tool
JP3189280B2 (en) Real-time control device
KR950014159B1 (en) Fifo register control method
SU1575297A1 (en) Device for checking pulse sequence