JP5235372B2 - Pulse generator - Google Patents

Pulse generator Download PDF

Info

Publication number
JP5235372B2
JP5235372B2 JP2007254251A JP2007254251A JP5235372B2 JP 5235372 B2 JP5235372 B2 JP 5235372B2 JP 2007254251 A JP2007254251 A JP 2007254251A JP 2007254251 A JP2007254251 A JP 2007254251A JP 5235372 B2 JP5235372 B2 JP 5235372B2
Authority
JP
Japan
Prior art keywords
signal
update
pulse
value
end timing
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.)
Active
Application number
JP2007254251A
Other languages
Japanese (ja)
Other versions
JP2009088841A (en
Inventor
広地 石川
Original Assignee
岩通計測株式会社
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 岩通計測株式会社 filed Critical 岩通計測株式会社
Priority to JP2007254251A priority Critical patent/JP5235372B2/en
Publication of JP2009088841A publication Critical patent/JP2009088841A/en
Application granted granted Critical
Publication of JP5235372B2 publication Critical patent/JP5235372B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Description

本発明は、パルス発生装置に関する。特に、本発明はシームレスにパルス生成条件を変更可能なパルス発生装置に関する。   The present invention relates to a pulse generator. In particular, the present invention relates to a pulse generator capable of seamlessly changing pulse generation conditions.

従来、所定の周期でパルス信号を生成して出力するパルス発生装置が用いられている。この種のパルス発生装置は、例えばインバータ回路等の負荷回路に出力パルス信号を供給するために用いられる。   Conventionally, a pulse generator that generates and outputs a pulse signal at a predetermined cycle is used. This type of pulse generator is used to supply an output pulse signal to a load circuit such as an inverter circuit.

従来の例によるパルス発生装置300のブロック図を図8に示す。パルス発生装置300は、同期信号Syと出力パルス信号Soを、例えばインバータ回路等の負荷回路400に供給する。   A block diagram of a conventional pulse generator 300 is shown in FIG. The pulse generator 300 supplies the synchronization signal Sy and the output pulse signal So to a load circuit 400 such as an inverter circuit.

パルス発生装置300は、基準クロックとして所定周波数のパルス信号を供給する発振器360と、発振器360が発振したパルス信号を入力してカウントアップするパルス生成カウンタ310と、パルス生成カウンタ310のカウント値と周期値設定レジスタ321に設定された周期値Thとに基づいてパルス生成カウンタ310をクリアし、パルス生成カウンタ310に該周期で同期信号Syを生成させるデジタルコンパレータ320と、を有している。   The pulse generator 300 includes an oscillator 360 that supplies a pulse signal having a predetermined frequency as a reference clock, a pulse generation counter 310 that receives a pulse signal generated by the oscillator 360 and counts up, and a count value and a period of the pulse generation counter 310. A digital comparator 320 that clears the pulse generation counter 310 based on the period value Th set in the value setting register 321 and causes the pulse generation counter 310 to generate the synchronization signal Sy in the period.

更に、パルス発生装置300は、上記周期毎に、パルス生成カウンタ310のカウント値と、前端タイミング値設定レジスタ331に設定された前端タイミング値Tfとを比較して、前端タイミングで出力パルス信号を立ち上げる信号を出力するデジタルコンパレータ333と、同様に、パルス生成カウンタ310のカウント値と、後端タイミング値設定レジスタ334に設定された後端タイミング値Tbとを比較して、後端タイミングで出力パルス信号を立ち下げる信号を出力するデジタルコンパレータ336と、上記デジタルコンパレータ333,336が出力する信号に基づいて出力パルス信号Soを生成する出力パルス生成手段337と、を有している。   Further, the pulse generator 300 compares the count value of the pulse generation counter 310 with the front end timing value Tf set in the front end timing value setting register 331 for each cycle, and sets the output pulse signal at the front end timing. Similarly to the digital comparator 333 that outputs a signal to be increased, the count value of the pulse generation counter 310 is compared with the rear end timing value Tb set in the rear end timing value setting register 334, and the output pulse is output at the rear end timing. A digital comparator 336 that outputs a signal that causes the signal to fall, and an output pulse generation means 337 that generates an output pulse signal So based on the signals output from the digital comparators 333 and 336 are provided.

図8では、パルス発生装置300が出力する同期信号Sy及び出力パルス信号Soそれぞれは、負荷回路400に供給される。   In FIG. 8, each of the synchronization signal Sy and the output pulse signal So output from the pulse generator 300 is supplied to the load circuit 400.

次に、図8に示すパルス発生装置300が出力パルス信号Soを生成する様子を、図9に示すタイミング図を参照して説明する。図9において、(a)は、パルス生成カウンタ310が生成する同期信号Syの波形を示し、(b)は、パルス生成カウンタ310のカウント値Cpを示し、(c)は、出力パルス生成回路337が生成する出力パルス信号Soを示している。   Next, how the pulse generator 300 shown in FIG. 8 generates the output pulse signal So will be described with reference to the timing chart shown in FIG. 9, (a) shows the waveform of the synchronization signal Sy generated by the pulse generation counter 310, (b) shows the count value Cp of the pulse generation counter 310, and (c) shows the output pulse generation circuit 337. Shows an output pulse signal So generated by.

(b)のカウント値Cpは、時間t1において、(a)の同期信号Syの立ち上がりと共にクリアされてゼロになる。パルス生成カウンタ310は、その後カウントアップして、再び同期信号Syの立ち上がりと共にカウント値Cpがクリアされてゼロになる。このカウント値Cpがクリアされる所定の時間間隔が、周期信号Syの周期値Thである。   The count value Cp in (b) is cleared to zero with the rise of the synchronization signal Sy in (a) at time t1. The pulse generation counter 310 then counts up, and the count value Cp is cleared to zero again with the rise of the synchronization signal Sy. The predetermined time interval at which the count value Cp is cleared is the periodic value Th of the periodic signal Sy.

(c)の時間t1から出力パルス信号Soの立ち上がりまでの遅延時間値Trは、前端タイミング値Tfにより定められる。また、(c)の出力パルス信号Soのパルス幅Pwは、後端タイミング値Tbと前端タイミング値Tfとの差により定められる。このようにして、(c)の出力パルス信号Soが、時間t2からt3の間に生成される。出力パルス信号Soは、(c)に示すように、周期ごとに繰り返し生成される。   The delay time value Tr from the time t1 of (c) to the rise of the output pulse signal So is determined by the front end timing value Tf. The pulse width Pw of the output pulse signal So in (c) is determined by the difference between the rear end timing value Tb and the front end timing value Tf. In this way, the output pulse signal So of (c) is generated between the times t2 and t3. The output pulse signal So is repeatedly generated every period as shown in (c).

上述した出力パルス信号Soの周期値を変更する手法としては、例えば、周期値設定レジスタ321に記憶する周期値Thを変更する方法、または、広範囲の周波数で安定した信号をシームレス(継ぎ目なく)に発生させる観点から、上記発振器として、ダイレクト・デジタル・シンセサイザ(DDS)を用いる方法がある。   As a method of changing the cycle value of the output pulse signal So described above, for example, a method of changing the cycle value Th stored in the cycle value setting register 321 or a stable signal in a wide range of frequencies can be seamlessly (seamlessly). From the viewpoint of generation, there is a method using a direct digital synthesizer (DDS) as the oscillator.

上記パルス発生装置300において、出力パルス信号Soの遅延時間値Tr又はパルス幅Pwを変更するためには、周期値Th、前端タイミング値Tf又は後端タイミング値Tb等のパルス生成条件のパラメータを変更すれば良い。しかし、これらのパラメータを変更するタイミングによっては、図10(c)に示すように、不要な出力パルス信号So´を生成する場合があり、シームレスな周波数の変更を行えないことがある。   In the pulse generator 300, in order to change the delay time value Tr or the pulse width Pw of the output pulse signal So, the parameters of the pulse generation conditions such as the period value Th, the front end timing value Tf, or the rear end timing value Tb are changed. Just do it. However, depending on the timing of changing these parameters, an unnecessary output pulse signal So ′ may be generated as shown in FIG. 10C, and the seamless frequency change may not be performed.

図10は、パルス生成条件を変更した場合を説明するタイミング図である。図10における(a)から(c)は、図9の(a)から(c)と同様のことを示しているが、時間t3とt4との間で、パルス生成条件の変更が行われている。   FIG. 10 is a timing diagram illustrating a case where the pulse generation conditions are changed. (A) to (c) in FIG. 10 show the same as (a) to (c) in FIG. 9, but the pulse generation conditions are changed between times t3 and t4. Yes.

図10に示す例では、パルス生成条件のパラメータは、前端タイミング値TfがTf´に、後端タイミング値TbがTb´に変更されている。上記パラメータの変更が、時間t3とt4との間で行われたので、変更後のパルス生成条件に基づいた出力パルス信号Soと共に、不要な出力パルス信号So´が生成されている。   In the example shown in FIG. 10, the parameters of the pulse generation condition are changed such that the front end timing value Tf is Tf ′ and the rear end timing value Tb is Tb ′. Since the parameter change is performed between time t3 and t4, an unnecessary output pulse signal So ′ is generated along with the output pulse signal So based on the changed pulse generation condition.

上記不要な出力パルス信号の生成を回避する手法として、パルス生成条件の変更を同期信号と同じタイミングで行うことがある。しかし、常に同期信号と同じ周期でパルス生成条件を変更できないとすると、非常に長い周期値を有する同期信号を用いている場合には、例えば誤って周期値として1000秒を設定した場合等、その周期が経過するまでパルス生成条件の変更を行えなくなり、操作性が悪くなるという問題点がある。   As a technique for avoiding the generation of the unnecessary output pulse signal, the pulse generation condition may be changed at the same timing as the synchronization signal. However, if the pulse generation condition cannot always be changed in the same cycle as the synchronization signal, when using a synchronization signal having a very long cycle value, for example, when 1000 seconds is erroneously set as the cycle value, There is a problem that the pulse generation conditions cannot be changed until the period elapses, and the operability is deteriorated.

更に、パルス発生装置は、装置外部からの指令信号に基づいて出力パルス信号の発生及び停止を行う場合もあるので、このように、装置外部の指令信号に基づいて、出力パルス信号の発生及び停止が制御される場合には、同期信号と同じ周期でパルス生成条件を変更することは困難である。   Furthermore, since the pulse generator may generate and stop the output pulse signal based on a command signal from the outside of the device, the output pulse signal is generated and stopped based on the command signal outside the device. Is controlled, it is difficult to change the pulse generation condition in the same cycle as the synchronization signal.

そこで、本発明は、装置外部からの指令信号に基づいて出力パルス信号の発生及び停止を行う場合も、パルス生成条件の変更をシームレスに行うことができるパルス発生装置を提供することを目的とする。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a pulse generator capable of seamlessly changing pulse generation conditions even when generating and stopping an output pulse signal based on a command signal from the outside of the apparatus. .

上記の課題を解決するために、本発明に係るパルス発生装置は、所定周波数パルス信号のパルス数をカウントする第1カウント手段と、上記第1カウント手段のカウント値と設定された周期値とに基づいて上記第1カウント手段をクリアし、上記第1カウント手段に該周期で同期信号を生成させる同期信号生成手段と、上記周期毎に、上記カウント値と設定された前端及び後端タイミング値とに基づいて決められるパルス生成条件を有する出力パルス信号を生成するパルス生成手段と、更新コマンド信号の入力に基づいて上記出力パルス信号の上記パルス生成条件を更新する更新信号を発生する更新信号発生手段と、上記更新信号発生手段を制御する制御手段と、を備え、上記制御手段は、上記周期値が設定された更新制御時間値より小さい場合には、上記更新信号を次入力の同期信号に同期させて発生させ、上記周期値が該更新制御時間値より大きい場合には、上記更新信号を上記更新コマンドの入力に同期させて発生させることを特徴とする。   In order to solve the above-described problems, a pulse generator according to the present invention includes a first count unit that counts the number of pulses of a predetermined frequency pulse signal, a count value of the first count unit, and a set cycle value. Based on the first count means, the synchronization signal generation means for generating a synchronization signal in the cycle, the count value and the front and rear end timing values set for each cycle, Generation means for generating an output pulse signal having a pulse generation condition determined based on the update command signal, and an update signal generation means for generating an update signal for updating the pulse generation condition of the output pulse signal based on an input of the update command signal And control means for controlling the update signal generating means, wherein the control means is smaller than the update control time value for which the period value is set. In this case, the update signal is generated in synchronization with the synchronization signal of the next input, and when the period value is larger than the update control time value, the update signal is generated in synchronization with the input of the update command. It is characterized by that.

上述した本発明に係るパルス発生装置によれば、装置外部からの指令信号に基づいて出力パルス信号の発生及び停止を行う場合も、パルス生成条件の変更をシームレスに行うことができる。   According to the above-described pulse generator according to the present invention, even when the output pulse signal is generated and stopped based on a command signal from the outside of the device, the pulse generation conditions can be changed seamlessly.

以下、本発明に係るパルス発生装置の好ましい一実施形態を図面を参照して説明する。図1は、本発明に係るパルス発生装置の一実施形態を示すブロック図である。   Hereinafter, a preferred embodiment of a pulse generator according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a pulse generator according to the present invention.

本実施形態のパルス発生装置100は、図1に示すように、所定周波数パルス信号のパルス数をカウントする第1カウント手段10と、この第1カウント手段10のカウント値Cpと設定された周期値Thとに基づいて第1カウント手段10をクリアし、第1カウント手段10に該周期で同期信号Syを生成させる同期信号生成手段20と、上記周期毎に、カウント値Cpと設定された前端タイミング値Tf及び後端タイミング値Tbとに基づいて決められるパルス生成条件を有する出力パルス信号Soを生成するパルス生成手段30と、更新コマンド信号S3の入力に基づいて出力パルス信号Soのパルス生成条件を更新する更新信号S2を発生する更新信号発生手段40と、この更新信号発生手段40を制御する制御手段50と、を備えている。   As shown in FIG. 1, the pulse generator 100 according to the present embodiment includes a first count unit 10 that counts the number of pulses of a predetermined frequency pulse signal, and a count value Cp of the first count unit 10 and a set cycle value. Based on Th, the first count means 10 is cleared, and the first count means 10 generates the synchronization signal Sy in the cycle, and the front end timing set with the count value Cp for each period. The pulse generation means 30 for generating the output pulse signal So having a pulse generation condition determined based on the value Tf and the trailing edge timing value Tb, and the pulse generation condition for the output pulse signal So based on the input of the update command signal S3 An update signal generating means 40 for generating an update signal S2 to be updated, and a control means 50 for controlling the update signal generating means 40 are provided. There.

本実施形態のパルス発生装置100は、図1に示すように、同期信号生成手段20が生成した同期信号Syと、パルス生成手段30が生成した出力パルス信号Soとが、負荷回路200に供給される。この負荷回路200としては、例えば、インバータ回路が挙げられる。   As shown in FIG. 1, the pulse generator 100 of the present embodiment is supplied with the synchronization signal Sy generated by the synchronization signal generation unit 20 and the output pulse signal So generated by the pulse generation unit 30 to the load circuit 200. The An example of the load circuit 200 is an inverter circuit.

本実施形態のパルス発生装置100では、第1カウント手段10は、指令信号によりパルス数のカウントの開始又は停止が制御される。この指令信号は、パルス発生装置100の装置外部から供給される場合と、装置内部から供給される場合とがある。   In the pulse generator 100 of the present embodiment, the first count unit 10 is controlled to start or stop counting the number of pulses by a command signal. This command signal may be supplied from the outside of the pulse generator 100 or supplied from the inside of the apparatus.

上記同期信号生成手段20が生成した同期信号Syは、出力パルス信号Soが供給される負荷回路200において、入力した出力パルス信号Soの周期を特定するための基準として用いられるものである。本実施形態のパルス発生装置100では、この同期信号Syを各構成要素の同期信号に用いている。   The synchronization signal Sy generated by the synchronization signal generation means 20 is used as a reference for specifying the cycle of the input output pulse signal So in the load circuit 200 to which the output pulse signal So is supplied. In the pulse generator 100 of the present embodiment, this synchronization signal Sy is used as a synchronization signal for each component.

上記制御手段50は、少なくともCPU、ROM、RAM、表示部及び操作入力部(図示せず)を有し、予め記憶されているプログラムに従って、更新信号発生手段40の制御を行う。制御手段50のCPUは、パルス発生装置100の他の構成要素の制御を兼ねていても良い。   The control means 50 includes at least a CPU, a ROM, a RAM, a display unit, and an operation input unit (not shown), and controls the update signal generation unit 40 according to a program stored in advance. The CPU of the control unit 50 may also control other components of the pulse generator 100.

この制御手段50は、周期値Thが、設定された更新制御時間値Tiより小さい場合には、更新信号S2を次入力の同期信号に同期させて発生させ、周期値Thが該更新制御時間値Tiより大きい場合には、更新信号S2を更新コマンドS3の入力に同期させて発生させる。   When the cycle value Th is smaller than the set update control time value Ti, the control means 50 generates the update signal S2 in synchronization with the synchronization signal of the next input, and the cycle value Th is the update control time value. If it is greater than Ti, the update signal S2 is generated in synchronization with the input of the update command S3.

上記更新制御時間値Tiは、ユーザ等により任意に定められる時間値である。本実施形態のパルス発生装置100は、上記指令信号が、パルス発生装置100外部から供給される場合であっても、この更新制御時間Tiを用いた上記処理を行うことにより、周期信号Syと同期させてパルス生成条件を変更することが可能となる。   The update control time value Ti is a time value arbitrarily determined by a user or the like. Even if the command signal is supplied from the outside of the pulse generator 100, the pulse generator 100 of the present embodiment synchronizes with the periodic signal Sy by performing the process using the update control time Ti. This makes it possible to change the pulse generation conditions.

以下、上述した本実施形態のパルス発生装置100の一実施例を、図面を参照しながら説明する。図2は、図1のパルス発生装置100の実施例を示すブロック図である。   Hereinafter, an example of the above-described pulse generator 100 of the present embodiment will be described with reference to the drawings. FIG. 2 is a block diagram showing an embodiment of the pulse generator 100 of FIG.

本実施例のパルス発生装置100は、図2に示すように、基準クロックとしての所定周波数のパルス信号を供給する発振器60を備えている。この発振器60としては、例えば水晶発振器を用いることができる。発振器60は、パルス生成カウンタ10及び制御手段50に基準クロックのパルス信号を出力する。
以下、パルス発生装置100の他の各構成要素について詳述する。
As shown in FIG. 2, the pulse generator 100 according to the present embodiment includes an oscillator 60 that supplies a pulse signal having a predetermined frequency as a reference clock. As the oscillator 60, for example, a crystal oscillator can be used. The oscillator 60 outputs a pulse signal of the reference clock to the pulse generation counter 10 and the control means 50.
Hereinafter, other components of the pulse generator 100 will be described in detail.

まず、第1カウント手段としてのパルス生成カウンタ10について以下に説明する。
本実施例のパルス生成カウンタ10では、図2に示すように、パルス発生装置100外部からの指令信号Seによりパルス数のカウントの開始又は停止が制御される。パルス生成カウンタ10は、カウント開始の指令信号Seを入力(指令信号SeがHの状態)するとカウントを開始し、カウント値Cpを同期信号生成手段20及びパルス生成手段30に出力し、出力パルス信号Soが発生される。一方、指令信号Seを入力していない状態(指令信号SeがLの状態)では、パルス生成カウンタ10は、カウントを停止して、出力パルス信号Soは発生しない。
First, the pulse generation counter 10 as the first counting means will be described below.
In the pulse generation counter 10 of the present embodiment, as shown in FIG. 2, the start or stop of counting the number of pulses is controlled by a command signal Se from the outside of the pulse generator 100. The pulse generation counter 10 starts counting when the count start command signal Se is input (the command signal Se is in the H state), outputs the count value Cp to the synchronization signal generation means 20 and the pulse generation means 30, and outputs an output pulse signal. So is generated. On the other hand, in a state where the command signal Se is not input (a state where the command signal Se is L), the pulse generation counter 10 stops counting and does not generate the output pulse signal So.

パルス生成カウンタ10は、発振器60から出力された基準クロックであるパルス信号のパルス数をカウントし、そのカウント値Cpを同期信号生成手段20に出力する。また、パルス生成カウンタ10は、後述する同期信号生成手段20から出力されるクリア信号CLが入力されて、カウント値Cpがクリアされる。パルス生成カウンタ10は、同期式カウンタであることが好ましい。本実施例では、同期式のアップカウンタを用いている。   The pulse generation counter 10 counts the number of pulses of the pulse signal that is the reference clock output from the oscillator 60 and outputs the count value Cp to the synchronization signal generation means 20. The pulse generation counter 10 receives a clear signal CL output from a synchronization signal generation means 20 described later, and the count value Cp is cleared. The pulse generation counter 10 is preferably a synchronous counter. In this embodiment, a synchronous up counter is used.

パルス生成カウンタ10、所定の周期を有する同期信号Syを、更新信号発生手段40及び制御手段50に出力する。また、パルス生成カウンタ10は、同期信号Syを負荷回路200に出力する。   The pulse generation counter 10 outputs a synchronization signal Sy having a predetermined cycle to the update signal generation means 40 and the control means 50. Further, the pulse generation counter 10 outputs the synchronization signal Sy to the load circuit 200.

パルス生成カウンタ10は、公知の回路を用いて構成することができる。同期信号生成手段20から出力されるクリア信号CLは、例えば、パルス生成カウンタ回路のクリア端子に入力することができる。   The pulse generation counter 10 can be configured using a known circuit. The clear signal CL output from the synchronization signal generation means 20 can be input to the clear terminal of the pulse generation counter circuit, for example.

次に、同期信号生成手段20について以下に説明する。
同期信号生成手段20は、図2に示すように、第1の周期値設定レジスタ21と、第2の周期値設定レジスタ22と、同期信号生成コンパレータ23とで構成される。
Next, the synchronization signal generating means 20 will be described below.
As shown in FIG. 2, the synchronization signal generation unit 20 includes a first period value setting register 21, a second period value setting register 22, and a synchronization signal generation comparator 23.

第1の周期値設定レジスタ21は、パルス生成カウンタ10が生成する同期信号Syの周期値Thを記憶する。この周期値Thは、後述する制御手段50によって、第1の周期値設定レジスタ21に設定される。第1の周期値設定レジスタ21は、設定された周期値Thを第2の周期値設定レジスタ22に出力する。この周期値Thは、パルス発生装置100が出力する出力パルス信号Soの周期値となる。   The first cycle value setting register 21 stores the cycle value Th of the synchronization signal Sy generated by the pulse generation counter 10. This cycle value Th is set in the first cycle value setting register 21 by the control means 50 described later. The first cycle value setting register 21 outputs the set cycle value Th to the second cycle value setting register 22. This period value Th is the period value of the output pulse signal So output from the pulse generator 100.

第2の周期値設定レジスタ22は、後述する更新信号発生手段40が発生する更新信号S2を入力すると、第1の周期値設定レジスタ21が出力する周期値Thを記憶する。第2の周期値設定レジスタ22は、設定された周期値Thを同期信号生成コンパレータ23に出力する。   The second cycle value setting register 22 stores the cycle value Th output from the first cycle value setting register 21 when an update signal S2 generated by an update signal generation means 40 described later is input. The second cycle value setting register 22 outputs the set cycle value Th to the synchronization signal generation comparator 23.

同期信号生成コンパレータ23は、パルス生成カウンタ10が出力するカウント値Cpを一方の入力部に入力する。また、第2の周期値設定レジスタ22が出力する周期値Thを他方の入力部に入力する。   The synchronization signal generation comparator 23 inputs the count value Cp output from the pulse generation counter 10 to one input unit. Also, the cycle value Th output from the second cycle value setting register 22 is input to the other input unit.

同期信号生成コンパレータ23は、入力したカウント値Cpと、第2の周期値設定レジスタ22に設定された周期値Thとを比較して、カウント値Cpが、カウント値Cpが、周期値Thと一致するか、又は、周期値Thよりも大きければ、パルス生成カウンタ10のカウント値Cpをクリアするクリア信号CLを、パルス生成カウンタ10に出力する。   The synchronization signal generation comparator 23 compares the input count value Cp with the cycle value Th set in the second cycle value setting register 22, and the count value Cp and the count value Cp match the cycle value Th. Or if it is greater than the period value Th, a clear signal CL for clearing the count value Cp of the pulse generation counter 10 is output to the pulse generation counter 10.

上記同期信号生成手段20は、公知の回路を用いて構成することができる。例えば、第1の周期値設定レジスタ21及び第2の周期値設定レジスタ22は、メモリを用いて構成できる。また、同期信号生成コンパレータ23は、デジタルコンパレータを用いて構成できる。   The synchronization signal generating means 20 can be configured using a known circuit. For example, the first cycle value setting register 21 and the second cycle value setting register 22 can be configured using a memory. The synchronization signal generation comparator 23 can be configured using a digital comparator.

次に、パルス生成手段30について、以下に説明する。
パルス生成手段30は、図2に示すように、第1の前端タイミング値設定レジスタ31と、第2の前端タイミング値設定レジスタ32と、前端タイミング生成コンパレータ33と、第1の後端タイミング値設定レジスタ34と、第2の後端タイミング値設定レジスタ35と、後端タイミング生成コンパレータ36と、出力パルス生成手段37とで構成される。
Next, the pulse generation means 30 will be described below.
As shown in FIG. 2, the pulse generation means 30 includes a first front end timing value setting register 31, a second front end timing value setting register 32, a front end timing generation comparator 33, and a first rear end timing value setting. It comprises a register 34, a second rear end timing value setting register 35, a rear end timing generation comparator 36, and an output pulse generation means 37.

第1の前端タイミング値設定レジスタ31は、出力パルス信号Soの前端タイミング値Tfを記憶する。この前端タイミング値Tfは、後述する制御手段50によって、第1の前端タイミング値設定レジスタ31に設定される。第1の前端タイミング値設定レジスタ31は、設定された前端タイミング値Tfを第2の前端タイミング値設定レジスタ32に出力する。   The first front end timing value setting register 31 stores the front end timing value Tf of the output pulse signal So. This front end timing value Tf is set in the first front end timing value setting register 31 by the control means 50 described later. The first front end timing value setting register 31 outputs the set front end timing value Tf to the second front end timing value setting register 32.

第2の前端タイミング値設定レジスタ32は、後述する更新信号発生手段40が生成する更新信号S2を入力すると、第1の前端タイミング値設定レジスタ31が出力する前端タイミング値Tfを記憶する。第2の前端タイミング値設定レジスタ32は、設定された前端タイミング値Tfを前端タイミング生成コンパレータ33に出力する。   The second front end timing value setting register 32 stores a front end timing value Tf output from the first front end timing value setting register 31 when an update signal S2 generated by an update signal generating unit 40 described later is input. The second front end timing value setting register 32 outputs the set front end timing value Tf to the front end timing generation comparator 33.

前端タイミング生成コンパレータ33は、パルス生成カウンタ10が出力するカウント値Cpを一方の入力部に入力する。また、第2の前端タイミング値設定レジスタ32が出力する前端タイミング値Tfを他方の入力部に入力する。   The front end timing generation comparator 33 inputs the count value Cp output from the pulse generation counter 10 to one input unit. Further, the front end timing value Tf output from the second front end timing value setting register 32 is input to the other input unit.

前端タイミング生成コンパレータ33は、入力したカウント値Cpと、第2の前端タイミング値設定レジスタ32に設定された前端タイミング値Tfとを比較して、カウント値Cpが、前端タイミング値Tfと一致するか、又は、前端タイミング値Tfよりも大きければ、前端タイミングで出力パルス信号を立ち上げる信号を、出力パルス生成手段37に出力する。   The front end timing generation comparator 33 compares the input count value Cp with the front end timing value Tf set in the second front end timing value setting register 32, and whether the count value Cp matches the front end timing value Tf. Alternatively, if it is larger than the front end timing value Tf, a signal for raising the output pulse signal at the front end timing is output to the output pulse generating means 37.

第1の後端タイミング値設定レジスタ34及び第2の後端タイミング値設定レジスタ35それぞれは、出力パルス信号Soの後端タイミング値Tbを記憶する点を除いて、上述した第1の前端タイミング値設定レジスタ31又は第2の前端タイミング値設定レジスタ32と同様に構成されている。   Each of the first rear end timing value setting register 34 and the second rear end timing value setting register 35 stores the rear end timing value Tb of the output pulse signal So, and the first front end timing value described above. The configuration is the same as the setting register 31 or the second front end timing value setting register 32.

また、後端タイミング生成コンパレータ36は、後端タイミングで出力パルス信号を立ち下げる信号を、出力パルス生成手段37に出力する点を除いて、上述した前端タイミング生成コンパレータ33と同様に構成されている。   The rear end timing generation comparator 36 is configured in the same manner as the front end timing generation comparator 33 described above except that a signal that causes the output pulse signal to fall at the rear end timing is output to the output pulse generation unit 37. .

出力パルス生成手段37は、前端タイミングで出力パルス信号を立ち上げる信号と、後端タイミングで出力パルス信号を立ち下げる信号とを入力して、出力パルス信号Soを生成し、負荷回路200に出力する。   The output pulse generation means 37 receives the signal for raising the output pulse signal at the front end timing and the signal for lowering the output pulse signal at the rear end timing, generates the output pulse signal So, and outputs it to the load circuit 200. .

本実施例のパルス発生装置100のパルス生成手段30では、上述したように、第1の周期値設定レジスタ21、第1の前端タイミング値設定レジスタ31及び第1の後端タイミング値設定レジスタ34からなる第1のレジスタ群と、第2の周期値設定レジスタ22、第2の前端タイミング値設定レジスタ32及び第2の後端タイミング値設定レジスタ35からなる第2のレジスタ群と有している。   In the pulse generator 30 of the pulse generator 100 of the present embodiment, as described above, from the first period value setting register 21, the first front end timing value setting register 31, and the first rear end timing value setting register 34, And a second register group including a second period value setting register 22, a second front end timing value setting register 32, and a second rear end timing value setting register 35.

そして、パルス生成手段30は、出力パルス信号Soのパルス生成条件を変更する更新信号S2の供給を受けて、はじめて上記第1のレジスタ群に記憶されたデータにより、上記第2のレジスタ群のデータが更新されて、出力パルス信号Soを生成する。   Then, the pulse generation means 30 receives the update signal S2 for changing the pulse generation condition of the output pulse signal So, and only the data stored in the first register group for the first time is the data in the second register group. Is updated to generate the output pulse signal So.

上記パルス生成手段30は、公知の回路を用いて構成することができる。例えば、各レジスタ22は、メモリを用いて構成できる。また、各コンパレータは、デジタルコンパレータを用いて構成できる。   The pulse generation means 30 can be configured using a known circuit. For example, each register 22 can be configured using a memory. Each comparator can be configured using a digital comparator.

次に、制御手段50について、以下に説明する。   Next, the control means 50 will be described below.

制御手段50は、発振器60が出力する所定周期パルス信号を入力して分周する分周器5と、分周器5が出力する分周したパルス信号を入力し、この分周したパルス信号をカウントしたカウント値Ciを出力する第2カウント手段52(以下、インヒビットカウンタ52ともいう)と、設定された更新制御時間値Ti(以下、インヒビット時間値Tiともいう)を後述する更新制御信号生成手段53に出力する更新制御時間設定レジスタ54(以下、インヒビット時間値設定レジスタ54ともいう)と、カウント値Ciを一方の入力部に入力し、且つインヒビット時間値Tiを他方の入力部に入力して、カウント値Ciがインヒビット時間値Tiよりも大きい場合に更新制御信号S1(以下、インヒビット信号S1ともいう)を出力する更新制御信号生成手段53と、パルス生成条件等を表示する表示部56と、上記各構成要素を制御するCPU55と、で構成される。 Control means 50 inputs a frequency divider 5 1 to divide by inputting a predetermined periodic pulse signal generator 60 outputs a pulse signal divider 5 1 obtained by dividing the frequency output, and the divider pulse Second count means 52 (hereinafter also referred to as an inhibit counter 52) that outputs a count value Ci obtained by counting the signal, and an update control signal that will be described later with a set update control time value Ti (hereinafter also referred to as an inhibit time value Ti). An update control time setting register 54 (hereinafter also referred to as an inhibit time value setting register 54) output to the generation means 53 and a count value Ci are input to one input unit, and an inhibit time value Ti is input to the other input unit. When the count value Ci is greater than the inhibit time value Ti, the update control signal S1 (hereinafter also referred to as the inhibit signal S1) is output. An update control signal generating means 53, a display unit 56 for displaying the pulse generation conditions, the CPU55 for controlling the above components, in constructed.

以下、制御手段50の各構成要素について説明する。   Hereinafter, each component of the control means 50 is demonstrated.

分周器51は、発振器60の出力する基準クロックである所定周期パルス信号を入力して、分周したパルス信号をインヒビットカウンタ52に出力する。分周器51の分周比は、インヒビット時間値Tiの値等に基づいて適宜設定されることが好ましい。この観点から、分周器51としては、プログラマブル分周器を用いることが好ましい。   The frequency divider 51 receives a predetermined period pulse signal that is a reference clock output from the oscillator 60, and outputs the divided pulse signal to the inhibit counter 52. The frequency division ratio of the frequency divider 51 is preferably set as appropriate based on the value of the inhibit time value Ti or the like. From this viewpoint, it is preferable to use a programmable frequency divider as the frequency divider 51.

インヒビットカウンタ52は、分周器51を介して発振器60が出力するパルス信号を入力してカウントし、同期信号Syの入力によりカウント値Ciがクリアされる。インヒビットカウンタ52は、カウント値Ciを更新制御信号生成手段53の一方の入力部に出力する。   The inhibit counter 52 receives and counts the pulse signal output from the oscillator 60 via the frequency divider 51, and the count value Ci is cleared by the input of the synchronization signal Sy. The inhibit counter 52 outputs the count value Ci to one input unit of the update control signal generation unit 53.

インヒビットカウンタ52は、更新制御信号生成手段53が出力するインヒビット信号S1を入力している時(インヒビット信号SiがHの状態)のみパルス信号のカウントを行い、インヒビット信号S1を入力していない時(インヒビット信号SiがLの状態)にはカウントを停止して、その時のカウント値Ciを保持する。   The inhibit counter 52 counts the pulse signal only when the inhibit signal S1 output from the update control signal generation means 53 is input (when the inhibit signal Si is in the H state), and does not input the inhibit signal S1 ( When the inhibit signal Si is L), the count is stopped and the count value Ci at that time is held.

インヒビットカウンタ52は、同期式カウンタであることが好ましい。本実施例では、同期式のアップカウンタを用いている。パルス生成カウンタ10から出力される同期信号Syは、例えば、インヒビットカウンタ回路のクリア(CL)端子に入力することができる。また、更新制御信号生成手段53が出力するインヒビット信号S1は、インヒビットカウンタ回路のネガティブイネーブル(*EN)端子に入力することができる。   The inhibit counter 52 is preferably a synchronous counter. In this embodiment, a synchronous up counter is used. The synchronization signal Sy output from the pulse generation counter 10 can be input to, for example, the clear (CL) terminal of the inhibit counter circuit. The inhibit signal S1 output from the update control signal generating means 53 can be input to the negative enable (* EN) terminal of the inhibit counter circuit.

インヒビット時間値設定レジスタ54は、インヒビット時間値Tiを記憶しており、その設定されたインヒビット時間値Tiを更新制御信号生成手段53の他方の入力部に出力する。インヒビット時間値設定レジスタ54は、CPU55によって、インヒビット時間値Tiが設定される。   The inhibit time value setting register 54 stores the inhibit time value Ti and outputs the set inhibit time value Ti to the other input section of the update control signal generating means 53. The inhibit time value setting register 54 is set with the inhibit time value Ti by the CPU 55.

インヒビット時間値Tiは、周期値Thよりも大きいことが好ましく、ユーザが、CPU55にパルス生成条件の更新を指示した後、更新完了までを待つことができる時間よりも小さいことが好ましい。即ち、同期信号Syの周波数が数MHz以上の場合には、インヒビット時間値Tiは、ユーザの感覚で見分けられないくらい十分に短い時間値であれば良い。   The inhibit time value Ti is preferably larger than the cycle value Th, and is preferably smaller than the time during which the user can wait until the update is completed after instructing the CPU 55 to update the pulse generation condition. That is, when the frequency of the synchronization signal Sy is several MHz or more, the inhibit time value Ti may be a time value that is sufficiently short that it cannot be distinguished by the user's sense.

更新制御信号生成手段53は、カウント値Ciがインヒビット時間値Tiよりも大きい場合にインヒビット信号S1を、更新信号発生手段40及び上記インヒビットカウンタ52に出力する。更新制御信号生成手段53は、例えばデジタルコンパレータを用いて構成することができる。   The update control signal generation means 53 outputs the inhibit signal S1 to the update signal generation means 40 and the inhibit counter 52 when the count value Ci is larger than the inhibit time value Ti. The update control signal generation unit 53 can be configured using, for example, a digital comparator.

インヒビットカウンタ52が有するビット数は、分周器5の分周比と、パルス生成カウンタ10で発生可能な最大発生周期値との関係に基づいて決定されることが好ましい。例えば、パルス生成カウンタ10が最大周期値1000秒まで発生可能とする。また、分周器5の分周比を1000000とし、発振器60の発振周波数を100MHzとする。この場合、インヒビット時間値Tiを10と選べば、インヒビットカウンタ52は0.1秒までカウントアップすることになるので、このインヒビット時間値は、ユーザの感覚で見分けられないくらい十分に短い時間値となり、ユーザが、CPU55にパルス生成条件の更新を指示した後、更新完了までを待つことができる時間よりも十分に小さくなる。 The number of bits included in the inhibit counter 52, the minute and divider 5 1 division ratio is preferably determined based on the relationship between the maximum generation period value capable of generating a pulse generating counter 10. For example, the pulse generation counter 10 can generate up to a maximum cycle value of 1000 seconds. Also, the frequency division ratio of the frequency divider 5 1 and 1,000,000, the oscillation frequency of the oscillator 60 and 100 MHz. In this case, if the inhibit time value Ti is selected as 10, the inhibit counter 52 counts up to 0.1 second, so this inhibit time value is a time value that is sufficiently short that it cannot be discerned by the user. After the user instructs the CPU 55 to update the pulse generation condition, it is sufficiently shorter than the time that the user can wait until the update is completed.

また、通常、同期信号Syの周期値Thは高々10−3秒であるので、0.1秒に対応するインヒビット時間値Tiは、同期信号Syの周期値よりも大きい。この場合、インヒビットカウンタ52は、長くても10-3秒の周期で同期信号Syを入力するので、0.1秒までカウントアップする前に、常にカウント値Ciがクリアされるため、更新制御信号生成手段53がインヒビット信号S1を出力することはない。 Usually, since the cycle value Th of the synchronization signal Sy is at most 10 −3 seconds, the inhibit time value Ti corresponding to 0.1 seconds is larger than the cycle value of the synchronization signal Sy. In this case, since the inhibit counter 52 inputs the synchronization signal Sy at a period of 10 −3 seconds at the longest, the count value Ci is always cleared before counting up to 0.1 seconds, so the update control signal The generation means 53 does not output the inhibit signal S1.

CPU55は、制御手段50の各構成要素を制御する。また、CPU55は、ユーザ等の要求に応じて、更新コマンド信号S3を生成し、更新信号発生手段40に出力する。   The CPU 55 controls each component of the control unit 50. Further, the CPU 55 generates an update command signal S3 in response to a request from the user or the like, and outputs it to the update signal generating means 40.

また、本実施例のCPU55は、同期信号生成手段20及びパルス生成手段30を制御する。CPU55が、更新コマンド信号S3を出力する場合には、まず、パルス生成条件のパラメータを、同期信号生成手段20及びパルス生成手段30に出力した後、更新コマンド信号S3を生成し、更新信号発生手段40に出力する。   Further, the CPU 55 of this embodiment controls the synchronization signal generation unit 20 and the pulse generation unit 30. When the CPU 55 outputs the update command signal S3, first, after outputting the parameters of the pulse generation conditions to the synchronization signal generation means 20 and the pulse generation means 30, the update command signal S3 is generated and the update signal generation means Output to 40.

また、制御手段50は、表示部56を有している。表示部56には、パルス生成条件のパラメータ等、制御手段50及びパルス発生装置100の処理状態が表示される。パルス生成条件のパラメータ等には、周期値Th、遅延時間値Tr、パルス幅Pw、前端タイミング値Tf,後端タイミング値Tbなどが含まれる。遅延時間値Tr及びパルス幅Pwは、前端タイミング値Tf又は後端タイミング値Tbを用いて設定することもできる。   Further, the control means 50 has a display unit 56. The display unit 56 displays processing states of the control means 50 and the pulse generator 100, such as parameters of pulse generation conditions. The parameters of the pulse generation condition include a cycle value Th, a delay time value Tr, a pulse width Pw, a front end timing value Tf, a rear end timing value Tb, and the like. The delay time value Tr and the pulse width Pw can also be set using the front end timing value Tf or the rear end timing value Tb.

本実施例では、ユーザが、CPUにパルス生成条件のパラメータ等の変更を指示した後、該パラメータ等の変更が完了するまでの間、表示部56には、パルス生成条件が更新中であることが表示される。   In this embodiment, after the user instructs the CPU to change the parameters of the pulse generation conditions, the pulse generation conditions are being updated on the display unit 56 until the change of the parameters is completed. Is displayed.

具体的には、CPU55は、更新コマンドS3を更新信号発生手段40に出力した後、更新信号発生手段40が更新履歴信号S4を発生してCPU55に出力している間は、表示部56にパルス生成条件が更新中であることを表示する。即ち、更新信号発生手段40からの更新履歴信号S4の入力がなくなった時点で、CPU55は、パルス生成条件の更新が完了したと判断する。または、更新信号発生回路40が出力する更新信号S2を割り込み信号としてCPU55に入力し、この割り込み信号を用いて、パルス生成条件の更新が完了をCPU55に認識させても良い。   Specifically, the CPU 55 outputs the update command S3 to the update signal generation means 40, and then pulses the display unit 56 while the update signal generation means 40 generates the update history signal S4 and outputs it to the CPU 55. Displays that the generation condition is being updated. That is, when the update history signal S4 is no longer input from the update signal generating means 40, the CPU 55 determines that the update of the pulse generation condition has been completed. Alternatively, the update signal S2 output from the update signal generation circuit 40 may be input to the CPU 55 as an interrupt signal, and this interrupt signal may be used to cause the CPU 55 to recognize that the update of the pulse generation condition has been completed.

パルス生成条件が更新中であることを示す表示としては、パラメータの背景色を変えること、又は、アイコンを表示させること等が挙げられる。   Examples of the display indicating that the pulse generation condition is being updated include changing the background color of a parameter or displaying an icon.

次に、更新信号発生手段40について、更に以下に説明する。
更新信号発生手段40は、CPU55からの更新コマンド信号S3を入力した時、更新制御信号生成手段53からのインヒビット信号S1を入力していない場合には、次入力の同期信号Syが来るまで、更新信号S1の発生を保留して、次入力の同期信号Syに同期させて更新信号S2を発生する。
Next, the update signal generating means 40 will be further described below.
When the update command generator 40 receives the update command signal S3 from the CPU 55 and does not receive the inhibit signal S1 from the update control signal generator 53, the update signal generator 40 updates until the next input synchronization signal Sy is received. The generation of the signal S1 is suspended, and the update signal S2 is generated in synchronization with the synchronization signal Sy of the next input.

更新信号発生手段40は、更新信号設定レジスタ(図示せず)を有しており、更新コマンドS3を入力すると、上記更新信号設定レジスタの設定をハイ(H)状態に設定する。そして、更新信号S2を発生した後に、上記更新信号設定レジスタの設定をロー(L)状態に変更する。つまり、更新信号発生手段40が更新信号S2を発生して、はじめて、CPU55が出力した更新コマンド信号S3の入力が更新信号発生手段40に許可される。   The update signal generating means 40 has an update signal setting register (not shown), and when the update command S3 is input, the setting of the update signal setting register is set to a high (H) state. Then, after generating the update signal S2, the setting of the update signal setting register is changed to a low (L) state. That is, the update signal generator 40 is allowed to input the update command signal S3 output from the CPU 55 only after the update signal generator 40 generates the update signal S2.

また、更新信号発生手段40は、上記更新信号設定レジスタの設定がハイ(H)状態の場合に、更新履歴信号S4を発生しCPU55に出力する(更新履歴信号S4がHの状態)。更新信号発生手段40は、上記更新信号設定レジスタの設定をロー(L)状態の場合には、CPU55に更新履歴信号S4を出力しない(更新履歴信号S4がLの状態)。   Further, the update signal generation means 40 generates the update history signal S4 and outputs it to the CPU 55 when the setting of the update signal setting register is in the high (H) state (the update history signal S4 is in the H state). The update signal generating means 40 does not output the update history signal S4 to the CPU 55 when the setting of the update signal setting register is in the low (L) state (the update history signal S4 is in the L state).

一方、更新信号発生手段40は、CPU55からの更新コマンド信号S3を入力した時、更新制御信号生成手段53からのインヒビット信号S1を入力している場合には、即座に更新信号S2を発生する。   On the other hand, when the update command signal S3 from the CPU 55 is input, the update signal generation means 40 immediately generates the update signal S2 if the inhibit signal S1 from the update control signal generation means 53 is input.

このように、制御手段50の更新制御信号生成手段53は、更新コマンド信号S3の入力から次の同期信号Syの入力までに、インヒビットカウンタ52のカウント値Ciがインヒビット時間値Tiより大きい場合には、インヒビット信号S1を出力する。従って、インヒビット時間値Tiが出力されているときには、制御手段50は、更新信号発生手段40に更新コマンド信号S3の入力を許可して、即座に更新信号S2を発生させる。即ち、更新信号発生手段40は、次入力の同期信号Syを待つことはない。   As described above, the update control signal generation unit 53 of the control unit 50 determines that the count value Ci of the inhibit counter 52 is greater than the inhibit time value Ti from the input of the update command signal S3 to the input of the next synchronization signal Sy. Inhibit signal S1 is output. Therefore, when the inhibit time value Ti is output, the control means 50 allows the update signal generating means 40 to input the update command signal S3 and immediately generates the update signal S2. That is, the update signal generating means 40 does not wait for the next input synchronization signal Sy.

次に、上述した本実施例のパルス発生装置100の動作の一例を、まず図3に示すタイミング図を参照して、以下に説明する。   Next, an example of the operation of the above-described pulse generator 100 of the present embodiment will be described below with reference to the timing chart shown in FIG.

図3において、(a)は、同期信号Syを示し、(b)は、更新コマンド信号S3を示し、(c)は、更新履歴信号S4を示し、(d)は、インヒビットカウンタ52のカウント値Ciを示し、(e)は、インヒビット信号S1を示し、(f)は、更新信号S2を示している。また、(d)には、インヒビット時間値Tiも示している。   In FIG. 3, (a) shows the synchronization signal Sy, (b) shows the update command signal S3, (c) shows the update history signal S4, and (d) shows the count value of the inhibit counter 52. Ci indicates (e) indicates the inhibit signal S1, and (f) indicates the update signal S2. Further, (d) also shows an inhibit time value Ti.

(1)同期信号Syの周期値Thがインヒビット時間値Tiよりも小さい場合
(d)の左側の部分では、同期信号Syの周期値Thがインヒビット時間値Tiよりも小さいので、インヒビットカウンタ52のカウント値Ciがインヒビット時間値Tiを越える前に、同期信号Syによりカウント値Ciがクリアされる。従って、(e)に示すように、インヒビット信号S1は出力されない。
(1) When the cycle value Th of the synchronization signal Sy is smaller than the inhibit time value Ti In the left part of (d), the cycle value Th of the synchronization signal Sy is smaller than the inhibit time value Ti. Before the value Ci exceeds the inhibit time value Ti, the count value Ci is cleared by the synchronization signal Sy. Therefore, as shown in (e), the inhibit signal S1 is not output.

ここで、(b)に示すように、時間t1において、CPU55が更新コマンド信号S3を出力すると、(c)に示すように、更新信号発生手段40は更新履歴信号S4を出力し、(f)に示すように、次入力の同期信号Syが来るまで、更新信号S2の発生を保留した後、時間t2において、次入力の同期信号Syに同期させて更新信号S2を発生する。そして、(c)に示すように、更新信号発生手段40は更新履歴信号S4の出力を停止する。また、(d)に示すように、インヒビットカウンタ52のカウント値Ciが、同期信号Syと同期して、クリアされる。   Here, as shown in (b), when the CPU 55 outputs the update command signal S3 at time t1, as shown in (c), the update signal generating means 40 outputs the update history signal S4, and (f) As shown in FIG. 4, after the update signal S2 is suspended until the next input synchronization signal Sy is received, the update signal S2 is generated in synchronization with the next input synchronization signal Sy at time t2. Then, as shown in (c), the update signal generator 40 stops outputting the update history signal S4. Further, as shown in (d), the count value Ci of the inhibit counter 52 is cleared in synchronization with the synchronization signal Sy.

(2)同期信号Syの周期値Thがインヒビット時間値Tiよりも大きい場合
(d)の右側の部分では、同期信号Syの周期値Thがインヒビット時間値Tiよりも大きいので、時間t4において、インヒビットカウンタ52のカウント値Ciがインヒビット時間値Tiを越えた後、インヒビットカウンタ52はパルス信号のカウントを停止して、その後カウント値Ciは一定の値に保持されている。そして、(e)に示すように、更新制御信号生成手段53は、時間t4において、インヒビット信号S1を出力する。
(2) When the cycle value Th of the synchronization signal Sy is greater than the inhibit time value Ti In the right part of (d), the cycle value Th of the synchronization signal Sy is greater than the inhibit time value Ti, so After the count value Ci of the counter 52 exceeds the inhibit time value Ti, the inhibit counter 52 stops counting the pulse signal, and then the count value Ci is held at a constant value. Then, as shown in (e), the update control signal generation means 53 outputs the inhibit signal S1 at time t4.

ここで、(b)に示すように、時間T4よりも過去の時間t3において、CPU55が更新コマンド信号S3を既に発生していたとすると、(c)に示すように、更新信号発生手段40は、更新履歴信号S4を出力した後、次入力の同期信号Syが来るか又はインヒビット信号S1が出力されるまで、(f)に示すように、更新信号S2の発生を保留している。   Here, as shown in (b), when the CPU 55 has already generated the update command signal S3 at time t3 past the time T4, as shown in (c), the update signal generating means 40 After the update history signal S4 is output, the generation of the update signal S2 is suspended as shown in (f) until the next input synchronization signal Sy is received or the inhibit signal S1 is output.

そして、(e)に示すように、時間t4において、更新制御信号生成手段53が、インヒビット信号S1を出力すると、(f)に示すように、更新信号発生手段40は、同期信号Syを待つことなく即座に更新信号S2を発生する。そして、(c)に示すように、更新信号発生手段40は更新履歴信号S4の出力を停止する。一方、(d)に示すように、インヒビットカウンタ52のカウント値Ciは、その後一定の値が保持され続けて、次入力の同期信号Syと同期して、クリアされる。そして、(e)に示すように、更新制御信号生成手段53は、インヒビット信号S1の出力を停止する。   Then, as shown in (e), when the update control signal generating means 53 outputs the inhibit signal S1 at time t4, as shown in (f), the update signal generating means 40 waits for the synchronization signal Sy. Instead, the update signal S2 is generated immediately. Then, as shown in (c), the update signal generator 40 stops outputting the update history signal S4. On the other hand, as shown in (d), the count value Ci of the inhibit counter 52 continues to hold a constant value thereafter, and is cleared in synchronization with the synchronization signal Sy of the next input. Then, as shown in (e), the update control signal generation means 53 stops outputting the inhibit signal S1.

また、(b)に示すように、時間t4より後の時間t5において、CPU55が更新コマンド信号S3を出力した場合にも、(c)に示すように、更新信号発生手段40は、更新履歴信号S4を出力すると共に、(f)に示すように、即座に更新信号S2を発生する。   As shown in (b), when the CPU 55 outputs the update command signal S3 at time t5 after time t4, as shown in (c), the update signal generating means 40 While outputting S4, as shown in (f), the update signal S2 is generated immediately.

次に、本実施例の動作の一例を、図4に示す状態遷移図を用いて、以下に説明する。
本実施例のパルス発生装置100は、以下の4つの状態を有する。
(1)「状態0(ゼロ)」:パルス生成カウンタ10がパルス信号のカウントを停止しており出力パルス信号Soを発生していない状態。
(2)「状態1」:出力パルス信号Soを発生中であるがパルス生成条件のパラメータを更新していない状態。
(3)「状態2」:出力パルス信号Soを発生中であり且つパルス生成条件のパラメータを更新中であるが、カウント値Ciがインヒビット時間値Tiを経過する前の状態。
(4)「状態3」:出力パルス信号Soを発生中であり且つカウント値Ciがインヒビット時間値Tiを経過した後の状態。
Next, an example of the operation of this embodiment will be described below with reference to the state transition diagram shown in FIG.
The pulse generator 100 of the present embodiment has the following four states.
(1) “State 0 (zero)”: a state in which the pulse generation counter 10 has stopped counting the pulse signal and has not generated the output pulse signal So.
(2) “State 1”: a state in which the output pulse signal So is being generated but the parameters of the pulse generation conditions are not updated.
(3) “State 2”: State in which the output pulse signal So is being generated and the pulse generation condition parameter is being updated, but before the count value Ci has passed the inhibit time value Ti.
(4) “State 3”: State after the output pulse signal So is being generated and the count value Ci has passed the inhibit time value Ti.

(1)状態0(ゼロ)
パルス発生装置100は、外部からの指令信号Seが入力されていない(Se=L)ので、パルス生成カウンタ10は、カウントを停止して、出力パルス信号Soは発生しない。パルス発生装置100が、指令信号Seを入力する(Se=H)と、状態0から状態1に遷移する。
(1) State 0 (zero)
Since the pulse generator 100 does not receive an external command signal Se (Se = L), the pulse generation counter 10 stops counting and does not generate the output pulse signal So. When the pulse generator 100 receives the command signal Se (Se = H), the state transitions from the state 0 to the state 1.

(2)状態1
パルス発生装置100は、状態0から状態1に遷移すると、パルス生成カウンタ10がカウントを開始して、出力パルス信号Soを発生する。状態1では、同期信号Syが発生しても、状態は遷移せずにインヒビットカウンタ52がクリアされるのみである。状態1では、パルス発生装置100は、CPU55が更新コマンド信号S3を発生すると、更新履歴信号S4を発生する(S4=H)と共に、状態1から状態2に遷移する。また、パルス発生装置100は、表示部56にパルス生成条件のパラメータを更新中である表示を示す。
(2) State 1
When the pulse generator 100 transitions from the state 0 to the state 1, the pulse generation counter 10 starts counting and generates the output pulse signal So. In the state 1, even if the synchronization signal Sy is generated, the state counter does not change and the inhibit counter 52 is only cleared. In the state 1, when the CPU 55 generates the update command signal S3, the pulse generator 100 generates the update history signal S4 (S4 = H) and transitions from the state 1 to the state 2. In addition, the pulse generator 100 displays a display in which the parameter of the pulse generation condition is being updated on the display unit 56.

一方、状態1において、カウント値Ciがインヒビット時間値Tiを越えると、更新制御信号生成手段53がインヒビット信号S1を出力(S1=H)して、パルス発生装置100は、状態1から状態3に遷移する。   On the other hand, when the count value Ci exceeds the inhibit time value Ti in the state 1, the update control signal generation unit 53 outputs the inhibit signal S1 (S1 = H), and the pulse generator 100 changes from the state 1 to the state 3 Transition.

状態2では、パルス発生装置100は、同期信号Syが発生すると、更新信号発生手段40が更新信号S2を生成して、パルス生成条件のパラメータを更新する。パルス発生装置100は、パラメータの更新を完了した後、更新履歴信号S4の出力を停止(S4=L)すると共に、表示部56の更新中の表示を元に戻した後、状態2から状態1に遷移する。状態2では、CPU55が更新コマンド信号を繰り返し発生しても、パルス発生装置100の状態は遷移しない。   In state 2, when the synchronization signal Sy is generated, in the pulse generator 100, the update signal generator 40 generates the update signal S2 and updates the parameters of the pulse generation condition. After completing the parameter update, the pulse generation device 100 stops the output of the update history signal S4 (S4 = L) and returns the display during the update of the display unit 56 to the original state. Transition to. In state 2, even if the CPU 55 repeatedly generates an update command signal, the state of the pulse generator 100 does not transition.

また、状態2において、パルス発生装置100は、同期信号Syが発生する前に、カウント値Ciがインヒビット時間値Tiを超えた場合には、以下の処理を行った後に、状態2から状態3に遷移する。パルス発生装置100は、カウント値Ciがインヒビット時間値Tiを超えた場合には、まず、インヒビット信号S1を発生する(S1=H)と共に更新信号S2を発生し、パルス生成条件のパラメータを更新した後、更新履歴信号S4の出力を停止(S4=L)すると共に、表示部56の更新中の表示を元に戻す。また、状態2において、パルス発生装置100は、同期信号Syとインヒビット信号S1とが同時に発生した場合には、更新信号S2を発生させ、パルス生成条件のパラメータを更新する。   In state 2, if the count value Ci exceeds the inhibit time value Ti before the synchronization signal Sy is generated, the pulse generator 100 performs the following processing and then changes from state 2 to state 3. Transition. When the count value Ci exceeds the inhibit time value Ti, the pulse generator 100 first generates the inhibit signal S1 (S1 = H) and also generates the update signal S2 and updates the parameters of the pulse generation condition Thereafter, the output of the update history signal S4 is stopped (S4 = L), and the display during update on the display unit 56 is restored. In state 2, when the synchronization signal Sy and the inhibit signal S1 are generated at the same time, the pulse generator 100 generates the update signal S2 and updates the parameter of the pulse generation condition.

状態3では、パルス発生装置100は、CPU55が更新コマンド信号S3を発生すると、状態の遷移を行うことなく、以下の処理を行う。パルス発生装置100は、CPU55が更新コマンド信号S3を発生すると、次入力の同期信号Syの発生を待つことなく、更新履歴信号S4を発生(S4=H)して、表示部56にパルス生成条件のパラメータを更新中である表示を行うと共に、更新信号S2を発生した後、パルス生成条件のパラメータを更新し、更新履歴信号S4の出力を停止(S4=L)すると共に、表示部56の更新中の表示を元に戻す。   In the state 3, when the CPU 55 generates the update command signal S3, the pulse generator 100 performs the following process without performing a state transition. When the CPU 55 generates the update command signal S3, the pulse generator 100 generates the update history signal S4 (S4 = H) without waiting for the generation of the next input synchronization signal Sy, and causes the display unit 56 to generate a pulse generation condition. Is updated, the update signal S2 is generated, the parameter of the pulse generation condition is updated, the output of the update history signal S4 is stopped (S4 = L), and the display unit 56 is updated. Restore the display inside.

また、状態3では、パルス発生装置100は、同期信号Syが発生すると、インヒビットカウンタ52のカウント値Ciをクリアし、インヒビット信号S1の出力を停止する(S1=L)。また、パルス発生装置100は、同期信号Syの発生と、更新コマンド信号S3とが同時に発生した場合には、状態3から状態1に遷移すると同時に、更新信号S2を発生し、パルス生成条件のパラメータを更新する。
なお、パルス発生装置100は、状態3から状態2への遷移することはない。
In state 3, when the synchronization signal Sy is generated, the pulse generator 100 clears the count value Ci of the inhibit counter 52 and stops outputting the inhibit signal S1 (S1 = L). Further, when the generation of the synchronization signal Sy and the update command signal S3 are generated at the same time, the pulse generator 100 generates the update signal S2 at the same time as the transition from the state 3 to the state 1, and the parameter of the pulse generation condition Update.
Note that the pulse generator 100 does not transition from the state 3 to the state 2.

いずれの状態においても、パルス発生装置100は、装置外部からの指令信号Seの入力がなくなった場合(Se=L)には、出力パルス信号Soの発生を停止して、状態0に遷移する。ただし、状態2でパラメータを更新中の場合には、更新信号S2を発生すると共に、表示部56に更新中の表示を行う。また、状態3において、更新コマンド信号S3の発生と、指令信号SeのHからLへの変化が同時に生じた場合にも、状態3から状態0へ遷移するのと同時に、更新信号S2を発生すると共に、表示部56の更新中の表示を行う。   In any state, when the command signal Se from the outside of the device is no longer input (Se = L), the pulse generator 100 stops generating the output pulse signal So and transitions to the state 0. However, if the parameter is being updated in the state 2, the update signal S2 is generated and the display unit 56 displays that the parameter is being updated. Also, in the state 3, when the generation of the update command signal S3 and the change of the command signal Se from H to L occur at the same time, the update signal S2 is generated simultaneously with the transition from the state 3 to the state 0. At the same time, the display unit 56 displays that is being updated.

次に、上記本実施例のパルス発生装置100の表示部56の動作について、図5及び図6を参照して、以下に説明する。ここでは、表示部56がCRTである場合について述べる。図5は、パルス発生装置100の表示部56の動作を説明するフローチャートである。図6は、パルス発生装置100の表示部56の表示を説明する図である。   Next, the operation of the display unit 56 of the pulse generator 100 of the present embodiment will be described below with reference to FIGS. Here, a case where the display unit 56 is a CRT will be described. FIG. 5 is a flowchart for explaining the operation of the display unit 56 of the pulse generator 100. FIG. 6 is a diagram illustrating the display on the display unit 56 of the pulse generator 100.

まず、図5のステップS101において、ユーザが、パルス生成条件のパラメータの変更を行うために、パルス発生装置100の操作入力部を操作して、前端タイミング値Tfを更新する操作を行う。   First, in step S101 in FIG. 5, the user operates the operation input unit of the pulse generator 100 to update the front end timing value Tf in order to change the parameter of the pulse generation condition.

次に、ステップS102において、CPU55が変更コマンド信号S3を発生し更新信号発生手段40に出力する。更新信号発生手段40は、更新履歴信号S4を発生し、CPU55に出力する。   Next, in step S102, the CPU 55 generates a change command signal S3 and outputs it to the update signal generating means 40. The update signal generation means 40 generates an update history signal S4 and outputs it to the CPU 55.

次に、ステップS103において、CPU55は、表示部56にパルス生成条件のパラメータを更新中である表示を行う。具体的には、CPU55は、表示部56に表示されているパルス生成条件のパラメータの背景色を変更するか、又は、アイコンを表示することができる。   Next, in step S <b> 103, the CPU 55 displays on the display unit 56 that the parameters for the pulse generation conditions are being updated. Specifically, the CPU 55 can change the background color of the parameter of the pulse generation condition displayed on the display unit 56 or display an icon.

次に、ステップS104において、CPU55は、更新信号発生手段40から更新履歴信号S4を入力しているのかを判断する。もし、更新信号発生手段40から更新履歴信号S4を入力していれば、S104の前に戻る。一方、更新信号発生手段40から更新履歴信号S4を入力していなければ、CPU55は、パルス生成条件のパラメータの更新が完了した判断して、ステップS105に進む。   Next, in step S104, the CPU 55 determines whether or not the update history signal S4 is input from the update signal generator 40. If the update history signal S4 is input from the update signal generating means 40, the process returns to S104. On the other hand, if the update history signal S4 has not been input from the update signal generating means 40, the CPU 55 determines that the update of the parameter of the pulse generation condition has been completed, and proceeds to step S105.

次に、ステップS105において、CPU55は、表示部56の表示を元に戻す。
以上で、パルス発生装置100の表示部56が、パルス生成条件が変更中であることを示す動作が終了する。
Next, in step S105, the CPU 55 restores the display on the display unit 56.
This completes the operation of the display unit 56 of the pulse generator 100 indicating that the pulse generation condition is being changed.

次に、図5のステップS103において、表示部56に表示される例を、図6を参照して以下に説明する。   Next, an example displayed on the display unit 56 in step S103 of FIG. 5 will be described below with reference to FIG.

図6(a)は、パルス生成条件を変更する前の状態における表示部56の表示を示す。表示部56には、周期値Th、遅延時間値Tr及びパルス幅Pwが表示されている。   Fig.6 (a) shows the display of the display part 56 in the state before changing pulse generation conditions. The display unit 56 displays a cycle value Th, a delay time value Tr, and a pulse width Pw.

次に、図6(b)は、パルス生成条件を変更中の状態の表示部56の表示を示す。図5の例では、前端タイミング値Tfのみを変更しているので、遅延時間値Trが変更前の20.000msから60.000msに変更中であり、この遅延時間値の背景色が変更されていると共に、アイコン57が表示されている。   Next, FIG.6 (b) shows the display of the display part 56 of the state which is changing the pulse generation conditions. In the example of FIG. 5, since only the front end timing value Tf is changed, the delay time value Tr is being changed from 20.000 ms before the change to 60.000 ms, and the background color of this delay time value is changed. And an icon 57 is displayed.

次に、図6(c)は、パルス生成条件の変更が完了した状態の表示部56の表示を示す。遅延時間値Trが、変更前の20.000msから60.000msに更新されている。また、アイコンの表示が消えている。   Next, FIG.6 (c) shows the display of the display part 56 of the state which the change of pulse generation conditions was completed. The delay time value Tr is updated from 20.000 ms before the change to 60.000 ms. Also, the icon disappears.

上述した本実施例のパルス発生装置300によれば、装置外部からの指令信号Seに基づいて出力パルス信号Soの発生及び停止を行う場合も、パルス生成条件の変更をシームレスに行うことができる。具体的には、同期信号Syの周期値Thがインヒビット時間値Tiよりも小さい場合には、変更コマンド信号S3の発生後の次入力の同期信号Syと同期してパルス生成条件が更新されるので、不要なパルスを生成しない。また、同期信号Syの周期値Thがインヒビット時間値Tiよりも大きい場合には、変更コマンド信号S3の発生と同時に、パルス生成条件が更新される。従って、比較的に長い周期値を設定している場合にも、パルス生成条件の更新が速やかに実行されるので、操作性に優れている。   According to the pulse generator 300 of this embodiment described above, even when the output pulse signal So is generated and stopped based on the command signal Se from the outside of the apparatus, the pulse generation conditions can be changed seamlessly. Specifically, when the cycle value Th of the synchronization signal Sy is smaller than the inhibit time value Ti, the pulse generation condition is updated in synchronization with the synchronization signal Sy of the next input after the generation of the change command signal S3. Does not generate unnecessary pulses. When the period value Th of the synchronization signal Sy is larger than the inhibit time value Ti, the pulse generation condition is updated simultaneously with the generation of the change command signal S3. Therefore, even when a relatively long cycle value is set, the pulse generation conditions are updated quickly, so that the operability is excellent.

また、パルス生成条件の更新中には、表示部56に更新中の表示がなされるので、ユーザは、パルス発生装置100がパルス生成条件の更新中である状態にあることが明確に認識できる。例えば、パルス発生装置100において、比較的長い周期値Thを扱うためにインヒビット時間値Tiを比較的長い時間に設定された状態で、ユーザが、パルス生成条件のパラメータを変更した場合には、変更が完了するまでに相当の時間を要するが、表示部56に更新中の表示がなされることで、ユーザは、更新の状態を把握することが可能となる。   In addition, during the update of the pulse generation condition, the display unit 56 displays that the update is in progress, so that the user can clearly recognize that the pulse generation device 100 is in the state of updating the pulse generation condition. For example, in the pulse generator 100, when the user changes the parameter of the pulse generation condition in the state where the inhibit time value Ti is set to a relatively long time in order to handle a relatively long cycle value Th, the change is made. However, it takes a considerable amount of time to complete, but the display of updating is made on the display unit 56, so that the user can grasp the update state.

次に、本発明の実施形態に係る他の実施例を、図7を参照しながら以下に説明する。特に説明しない点については、上述の実施例に関して詳述した説明が適宜適用される。また、図7において、図1〜図6と同じ構成要素に同じ符号を付してある。   Next, another example according to the embodiment of the present invention will be described below with reference to FIG. For points that are not particularly described, the description in detail regarding the above-described embodiments is applied as appropriate. Moreover, in FIG. 7, the same code | symbol is attached | subjected to the same component as FIGS.

本実施例のパルス発生装置100は、図7に示すように、制御手段50が、更新信号S2´と強制更新信号S5の論理和を出力する論理手段70を有している。制御手段50は、周期値Thが設定されたインヒビット時間値Tiより小さい場合には、更新信号S2を次入力の同期信号Syに同期させて発生させ、周期値Thがインヒビット時間値Tiより大きい場合には、更新信号S2を強制更新信号S5に基づいてパルス生成条件を更新する。   In the pulse generator 100 of this embodiment, as shown in FIG. 7, the control means 50 includes a logic means 70 that outputs a logical sum of the update signal S2 ′ and the forced update signal S5. When the cycle value Th is smaller than the set inhibit time value Ti, the control unit 50 generates the update signal S2 in synchronization with the synchronization signal Sy of the next input, and when the cycle value Th is greater than the inhibit time value Ti. The update signal S2 is updated based on the forced update signal S5.

本実施例では、パルス生成カウンタ10への指令信号Siが、パルス発生装置100内部のCPU55から出力される。本実施例では、CPU55が、出力パルス信号Soの発生状態を把握しているので、CPU55のみで、同期信号Syと同期させてパルス生成条件を更新する更新コマンド信号S3を発生し、この更新コマンド信号S3を更新信号発生手段40に出力することができる。そのため、本実施例では、上述した実施例が有していた、インヒビットカウンタ、インヒビット時間値設定レジスタ、更新制御信号生成手段及び分周器を備えていない。即ち、制御手段50は、CPU55により構成される。   In this embodiment, a command signal Si to the pulse generation counter 10 is output from the CPU 55 inside the pulse generator 100. In this embodiment, since the CPU 55 knows the generation state of the output pulse signal So, only the CPU 55 generates an update command signal S3 that updates the pulse generation condition in synchronization with the synchronization signal Sy. The signal S3 can be output to the update signal generator 40. For this reason, this embodiment does not include the inhibit counter, the inhibit time value setting register, the update control signal generation means, and the frequency divider that the above-described embodiments have. That is, the control means 50 is constituted by the CPU 55.

本実施例では、論理手段70を有している。論理手段70は、更新信号発生手段40が出力する更新信号S2´が一方の入力部に入力され、CPU55が出力する強制更新信号S5が他方の入力部に入力される。論理手段70は、更新信号S2´と強制更新信号S5との論理和の結果を更新信号S2として、同期信号生成手段20及びパルス生成手段30に出力する。   In this embodiment, a logic means 70 is provided. In the logic means 70, the update signal S2 ′ output from the update signal generating means 40 is input to one input section, and the forced update signal S5 output from the CPU 55 is input to the other input section. The logic means 70 outputs the result of the logical sum of the update signal S2 ′ and the forced update signal S5 to the synchronization signal generation means 20 and the pulse generation means 30 as the update signal S2.

CPU55は、周期値Thがインヒビット時間値Tiよりも小さい場合には、更新コマンド信号S3のみを発生する。この場合には、更新コマンド信号S3を入力した更新信号発生手段40は、更新信号S2´を次入力の同期信号syに同期させて発生し論理手段70に出力する。   When the period value Th is smaller than the inhibit time value Ti, the CPU 55 generates only the update command signal S3. In this case, the update signal generation means 40 having received the update command signal S3 generates the update signal S2 ′ in synchronization with the next input synchronization signal sy and outputs it to the logic means 70.

一方、CPU55は、周期値Thがインヒビット時間値Tiよりも大きい場合には、強制更新信号S5を発生し論理手段70に出力する。   On the other hand, when the cycle value Th is larger than the inhibit time value Ti, the CPU 55 generates a forced update signal S5 and outputs it to the logic means 70.

従って、更新信号S2´又は強制更新信号S5を入力した論理手段70は、更新信号S2を即座に発生するので、パルス生成条件は速やかに更新される。   Therefore, the logic means 70 that has received the update signal S2 ′ or the forced update signal S5 immediately generates the update signal S2, so that the pulse generation conditions are updated quickly.

その他の構成は、上述した実施例と同様である。   Other configurations are the same as those in the above-described embodiment.

上述した本実施例のパルス発生装置100によれば、パルス生成カウンタ10への指令信号Siが、パルス発生装置100内部の制御手段50から出力されているので、制御手段50を簡易に構成できるため、製造コストが低減される。また、パルス生成条件の変更をシームレスに行うことができる。   According to the pulse generator 100 of this embodiment described above, the command signal Si to the pulse generator counter 10 is output from the control means 50 inside the pulse generator 100, so that the control means 50 can be configured easily. Manufacturing costs are reduced. In addition, the pulse generation conditions can be changed seamlessly.

本発明のパルス発生装置は、上述した実施形態又は実施例に制限されることなく、本発明の趣旨を逸脱しない限り適宜変更が可能である。   The pulse generator of the present invention is not limited to the above-described embodiments or examples, and can be appropriately changed without departing from the spirit of the present invention.

例えば、上述した実施形態又は実施例では、上記第1カウンタ手段は、アップカウンタであったが、ダウンカウンタであっても良い。この場合には、カウント値がゼロになった時に同期信号を生成して出力するようにすれば、上記同期信号生成コンパレータを設けずに上記同期信号生成手段を構成することも可能である。   For example, in the above-described embodiment or example, the first counter unit is an up counter, but may be a down counter. In this case, if the synchronization signal is generated and output when the count value becomes zero, the synchronization signal generation means can be configured without providing the synchronization signal generation comparator.

本発明に係るパルス発生装置の一実施形態を示すブロック図である。It is a block diagram which shows one Embodiment of the pulse generator which concerns on this invention. 図1のパルス発生装置の一実施例を示すブロック図である。It is a block diagram which shows one Example of the pulse generator of FIG. 図2のパルス発生装置の動作を説明するタイミング図である。FIG. 3 is a timing chart for explaining the operation of the pulse generator of FIG. 図2のパルス発生装置の動作を説明する状態遷移図である。It is a state transition diagram explaining operation | movement of the pulse generator of FIG. 図2のパルス発生装置の表示部の動作を説明するフローチャートである。It is a flowchart explaining operation | movement of the display part of the pulse generator of FIG. 図2のパルス発生装置の表示部の表示の例を説明する図である。It is a figure explaining the example of a display of the display part of the pulse generator of FIG. 本発明の他の実施例を示すブロック図である。It is a block diagram which shows the other Example of this invention. 従来の例によるパルス発生装置を示すブロック図である。It is a block diagram which shows the pulse generator by a prior art example. 図8に示すパルス発生装置が発生する出力パルス信号を説明するタイミング図である。FIG. 9 is a timing chart for explaining an output pulse signal generated by the pulse generator shown in FIG. 8. 図8に示すパルス発生装置がパルス生成条件を変更した場合を説明するタイミング図である。It is a timing diagram explaining the case where the pulse generator shown in FIG. 8 changed the pulse generation conditions.

符号の説明Explanation of symbols

100 パルス発生装置
10 第1カウント手段(パルス生成カウンタ)
20 同期信号生成手段
21 第1の周期値設定レジスタ
22 第2の周期値設定レジスタ
23 同期信号生成コンパレータ
30 パルス生成手段
31 第1の前端タイミング値設定レジスタ
32 第2の前端タイミング値設定レジスタ
33 前端タイミング生成コンパレータ
34 第1の後端タイミング値設定レジスタ
35 第2の後端タイミング値設定レジスタ
36 後端タイミング生成コンパレータ
37 出力パルス生成手段
40 更新信号発生手段
50 制御手段
51 分周器
52 第2のカウント手段(インヒビットカウンタ)
53 更新制御信号生成手段
54 インヒビット時間値設定レジスタ
55 CPU
56 表示部
60 発振器
70 論理手段(OR論理回路)
200 負荷回路
Se 外部指令信号
Si 内部指令信号
Sy 同期信号
So 出力パルス信号
S1 インヒビット信号
S2 更新信号
S3 更新コマンド信号
S4 更新履歴信号
S5 強制更新コマンド信号
Cp 第1カウント手段(パルス生成カウンタ)のカウント値
Ci 第2のカウント手段(インヒビットカウンタ)のカウント値
Ti 更新制御時間値(インヒビット時間)値
Th 周期値
Tf 前端タイミング値
Tb 後端タイミング値
100 Pulse generator 10 First count means (pulse generation counter)
20 synchronization signal generating means 21 first period value setting register 22 second period value setting register 23 synchronization signal generating comparator 30 pulse generating means 31 first front end timing value setting register 32 second front end timing value setting register 33 front end Timing generation comparator 34 First rear end timing value setting register 35 Second rear end timing value setting register 36 Rear end timing generation comparator 37 Output pulse generation means 40 Update signal generation means 50 Control means 51 Frequency divider 52 Second Count means (inhibit counter)
53 Update control signal generation means 54 Inhibit time value setting register 55 CPU
56 Display Unit 60 Oscillator 70 Logic Means (OR Logic Circuit)
200 Load circuit Se External command signal Si Internal command signal Sy Synchronization signal So Output pulse signal S1 Inhibit signal S2 Update signal S3 Update command signal S4 Update history signal S5 Forced update command signal Cp Count value of first count means (pulse generation counter) Ci Count value of second counting means (inhibit counter) Ti Update control time value (inhibit time) value Th Period value Tf Front end timing value Tb Rear end timing value

Claims (6)

所定周波数パルス信号のパルス数をカウントする第1カウント手段と、
前記第1カウント手段のカウント値と設定された周期値とに基づいて前記第1カウント手段をクリアし、前記第1カウント手段に該周期で同期信号を生成させる同期信号生成手段と、
前記周期毎に、前記カウント値と設定された前端及び後端タイミング値とに基づいて決められるパルス生成条件を有する出力パルス信号を生成するパルス生成手段と、
更新コマンド信号の入力に基づいて前記出力パルス信号の前記パルス生成条件を更新する更新信号を発生する更新信号発生手段と、
前記更新信号発生手段を制御する制御手段と、を備え、
前記制御手段は、前記所定周波数パルス信号をカウントし、前記同期信号の入力によりクリアされる第2カウント手段と、前記更新コマンド信号の入力から次の同期信号の入力までに、前記第2カウント手段のカウント値が前記更新制御時間値より大きい場合に、更新制御信号を出力する更新制御信号生成手段と、を有し、前記更新制御信号が出力されているとき、前記更新コマンド信号の入力を許可して、前記更新信号発生手段に前記更新信号を発生させることを特徴とするパルス発生装置。
First counting means for counting the number of pulses of the predetermined frequency pulse signal;
Synchronization signal generating means for clearing the first counting means based on the count value of the first counting means and the set cycle value, and causing the first counting means to generate a synchronization signal in the cycle;
Pulse generation means for generating an output pulse signal having a pulse generation condition determined based on the count value and the set front end and rear end timing values for each cycle;
Update signal generating means for generating an update signal for updating the pulse generation condition of the output pulse signal based on an input of an update command signal;
Control means for controlling the update signal generating means,
The control means counts the predetermined frequency pulse signal and is cleared by the input of the synchronization signal, and the second count means from the input of the update command signal to the input of the next synchronization signal Update control signal generation means for outputting an update control signal when the count value is greater than the update control time value, and permits the input of the update command signal when the update control signal is output Then, the update signal generating means causes the update signal to be generated .
前記制御手段は、
前記所定周波数パルス信号をカウントし、前記同期信号の入力によりクリアされる第2カウント手段と、
前記更新コマンド信号の入力から次の同期信号の入力までに、前記第2カウント手段のカウント値が前記更新制御時間値より大きい場合に、更新制御信号を出力する更新制御信号生成手段と、を有し、
前記更新制御信号が出力されているとき、前記更新コマンド信号の入力を許可して、前記更新信号発生手段に前記更新信号を発生させることを特徴とする請求項1に記載のパルス発生装置。
The control means includes
A second counting means for counting the predetermined frequency pulse signal and being cleared by the input of the synchronization signal;
Update control signal generation means for outputting an update control signal when the count value of the second count means is greater than the update control time value between the input of the update command signal and the input of the next synchronization signal. And
2. The pulse generation device according to claim 1, wherein when the update control signal is output, the update command signal is allowed to be input and the update signal generation means generates the update signal.
前記第1カウント手段は、指令信号によりパルス数のカウントの開始又は停止が制御され、前記指令信号が装置外から供給されることを特徴とする請求項2に記載のパルス発生装置。   3. The pulse generator according to claim 2, wherein the first counting means is controlled to start or stop counting the number of pulses by a command signal, and the command signal is supplied from outside the device. 前記第2カウント手段は、前記所定周波数パルス信号を分周したパルス信号をカウントすることを特徴とする請求項2又は3に記載のパルス発生装置。   4. The pulse generation device according to claim 2, wherein the second counting unit counts a pulse signal obtained by dividing the predetermined frequency pulse signal. 5. 前記パルス生成手段は、
前記周期値を記憶する第1の周期値設定手段と、前記前端タイミング値を記憶する第1の前端タイミング値設定手段と、前記後端タイミング値を記憶する第1の後端タイミング値設定手段と、
前記更新信号が入力されて、前記第1の周期値設定手段に記憶された周期値が記憶される第2の周期値設定手段と、前記第1の前端タイミング値設定手段に記憶された前端タイミング値が記憶される第2の前端タイミング値設定手段と、前記第1の後端タイミング値設定手段に記憶された後端タイミング値が記憶される第2の後端タイミング値設定手段と、を有しており、
前記第2の周期値設定手段に記憶された周期値と、第2の前端タイミング値設定手段に記憶された前端タイミング値と、第2の後端タイミング値設定手段に記憶された後端タイミング値とに基づいて決められるパルス生成条件を有する出力パルス信号を生成することを特徴とする請求項1からの何れか一項に記載のパルス発生装置。
The pulse generation means includes
First period value setting means for storing the period value; first front end timing value setting means for storing the front end timing value; and first rear end timing value setting means for storing the rear end timing value; ,
Second period value setting means for receiving the update signal and storing the period value stored in the first period value setting means; and front end timing stored in the first front end timing value setting means Second front end timing value setting means for storing a value, and second rear end timing value setting means for storing a rear end timing value stored in the first rear end timing value setting means. And
The period value stored in the second period value setting means, the front end timing value stored in the second front end timing value setting means, and the rear end timing value stored in the second rear end timing value setting means pulse generator according to claim 1, any one of 4 and generates an output pulse signal having a pulse generation condition determined based on and.
前記更新信号発生手段は、前記更新コマンド信号の入力により、入力されてから前記パルス生成条件が更新されるまでの間、更新履歴信号を発生し、
前記更新履歴信号を発生している間は、パルス生成条件が更新中であることを表示する表示部を有していることを特徴とする請求項1からの何れか一項に記載のパルス発生装置。
The update signal generation means generates an update history signal from the time when the update command signal is input until the pulse generation condition is updated,
Wherein while the update history signal occurs, the pulse according to any one of claims 1 5, characterized in that the pulse generating condition and a display unit for displaying that the updating Generator.
JP2007254251A 2007-09-28 2007-09-28 Pulse generator Active JP5235372B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007254251A JP5235372B2 (en) 2007-09-28 2007-09-28 Pulse generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007254251A JP5235372B2 (en) 2007-09-28 2007-09-28 Pulse generator

Publications (2)

Publication Number Publication Date
JP2009088841A JP2009088841A (en) 2009-04-23
JP5235372B2 true JP5235372B2 (en) 2013-07-10

Family

ID=40661696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007254251A Active JP5235372B2 (en) 2007-09-28 2007-09-28 Pulse generator

Country Status (1)

Country Link
JP (1) JP5235372B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0365328U (en) * 1989-10-30 1991-06-25
JPH05276020A (en) * 1992-03-30 1993-10-22 Nec Ic Microcomput Syst Ltd Timer counter
JP2840905B2 (en) * 1992-10-07 1998-12-24 三菱電機株式会社 Counter circuit
JP2842824B2 (en) * 1996-01-30 1999-01-06 日本電気アイシーマイコンシステム株式会社 PWM signal generator
JP2912290B2 (en) * 1997-03-25 1999-06-28 日本電気アイシーマイコンシステム株式会社 PWM control circuit
JP2007036310A (en) * 2005-07-22 2007-02-08 Calsonic Kansei Corp Pulse output unit

Also Published As

Publication number Publication date
JP2009088841A (en) 2009-04-23

Similar Documents

Publication Publication Date Title
JP5886015B2 (en) Time measuring device, microcontroller, program, and time measuring method
JP2009005288A (en) Clock generating circuit
JPH06112813A (en) Clock generating circuit
JP5114218B2 (en) Frequency correction circuit and clock device using the same
JPH11264857A (en) Semiconductor testing device
JP5235372B2 (en) Pulse generator
JP2006303863A (en) Pulse signal generating device
JP3039781B1 (en) Timer circuit
JP3970474B2 (en) Clock signal generation circuit and clock frequency adjustment method thereof
JP5112792B2 (en) Synchronous processing system and semiconductor integrated circuit
JP6623745B2 (en) Control method of electronic circuit and oscillator
JP6500550B2 (en) Timer correction device, timer correction method and timer correction program
KR101147361B1 (en) RTC Control Circuit
US6760798B1 (en) Interface mechanism and method for interfacing a real-time clock with a data processing circuit
JP4825415B2 (en) Display driver generating charge pumping signals synchronized to different clocks for multiple mode
JPH1020052A (en) Time correction method and device therefor
JPS6356565B2 (en)
US20060153008A1 (en) Control device and control method capable of external synchronization
JP4176720B2 (en) Synchronization control device and synchronization control method
JP5056886B2 (en) Clock signal generation device and electronic device
JP7456216B2 (en) Drive control device, electronic clock, and motor drive signal output control method
JP5000420B2 (en) PLL synthesizer circuit
JP2001244812A (en) Method and device for clock switching
JP6421779B2 (en) Signal generation apparatus and signal generation method
JP2000101347A (en) Oscillation control circuit

Legal Events

Date Code Title Description
A625 Written request for application examination (by other person)

Free format text: JAPANESE INTERMEDIATE CODE: A625

Effective date: 20100803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130226

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130326

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5235372

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160405

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250