JP3342044B2 - Pulse generation circuit - Google Patents

Pulse generation circuit

Info

Publication number
JP3342044B2
JP3342044B2 JP18723292A JP18723292A JP3342044B2 JP 3342044 B2 JP3342044 B2 JP 3342044B2 JP 18723292 A JP18723292 A JP 18723292A JP 18723292 A JP18723292 A JP 18723292A JP 3342044 B2 JP3342044 B2 JP 3342044B2
Authority
JP
Japan
Prior art keywords
signal
counter
circuit
input
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP18723292A
Other languages
Japanese (ja)
Other versions
JPH0637609A (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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP18723292A priority Critical patent/JP3342044B2/en
Publication of JPH0637609A publication Critical patent/JPH0637609A/en
Application granted granted Critical
Publication of JP3342044B2 publication Critical patent/JP3342044B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、PWM方式で制御され
るインバータ回路などにおける制御用のパルスを発生す
るパルス発生回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse generation circuit for generating a control pulse in an inverter circuit or the like controlled by a PWM method.

【0002】[0002]

【従来の技術】従来より、クロック信号を基準として出
力パルスのオン期間とオフ期間とを設定できるようにし
たパルス発生回路が提供されている。この種のパルス発
生回路は、たとえば図8のように、マイクロコンピュー
タ等のデータ発生器1から出力されるオン期間およびオ
フ期間のデータDtを、それぞれタイミング信号ta,
tbに同期させて取り込むラッチ回路2a,2bを備え
る。ラッチ回路2a,2bに取り込まれたオン期間およ
びオフ期間のデータDtによって、プリセッタブルカウ
ンタであるカウンタ3a,カウンタ3bのカウントアッ
プの設定値をそれぞれ設定し、カウンタ3a,3bで
は、設定値に対応する個数のクロック信号clk を計数す
る。また、各カウンタ3a,3bは、それぞれオーバー
フロー時にキャリー端子CYより出力されるキャリー信号
を反転回路4a,4bにより反転してロード端子LOADへ
の入力としており、設定された個数のクロック信号clk
の計数が終了してキャリー信号が立ち上がると、ロード
端子LOADへの入力が立ち下がり、次のオン期間やオフ期
間のデータDtを取り込む。
2. Description of the Related Art Heretofore, there has been provided a pulse generating circuit capable of setting an ON period and an OFF period of an output pulse with reference to a clock signal. For example, as shown in FIG. 8, this type of pulse generating circuit converts data Dt in an ON period and an OFF period output from a data generator 1 such as a microcomputer into timing signals ta and ta, respectively.
There are provided latch circuits 2a and 2b which take in in synchronization with tb. The count-up set values of the counters 3a and 3b, which are presettable counters, are set by the data Dt of the ON period and the OFF period taken into the latch circuits 2a and 2b, and the counters 3a and 3b correspond to the set values. The number of clock signals clk to be counted is counted. Each of the counters 3a and 3b inverts the carry signal output from the carry terminal CY at the time of overflow by the inverting circuits 4a and 4b and inputs the inverted signal to the load terminal LOAD.
When the carry signal rises after counting is completed, the input to the load terminal LOAD falls, and the data Dt for the next ON period or OFF period is captured.

【0003】カウンタ3aのキャリー信号はJKフリッ
プフロップよりなる出力回路5のJ端子に入力され、カ
ウンタ3bのキャリー信号は出力回路5のK端子に入力
される。したがって、出力回路5は、カウンタ3aから
の入力がHレベルであるときに非反転出力端子の出力を
Hレベルに設定し、カウンタ3bからの入力がHレベル
であるときに非反転出力端子の出力をLレベルに設定す
る。また、出力回路5の非反転出力端子はカウンタ3b
のイネーブル端子EPに接続され、出力回路5の反転出力
端子はカウンタ3aのイネーブル端子EPに接続される。
その結果、出力回路5の非反転出力端子からの出力がH
レベルである期間にはカウンタ3bがクロック信号clk
を計数して非反転出力端子からの出力がHレベルである
期間の長さを決定し、出力回路5の非反転出力端子がL
レベルである期間にはカウンタ3aがクロック信号clk
を計数して非反転出力端子からの出力がLレベルである
期間の長さを決定する。
The carry signal of the counter 3a is input to the J terminal of an output circuit 5 composed of a JK flip-flop, and the carry signal of the counter 3b is input to the K terminal of the output circuit 5. Therefore, the output circuit 5 sets the output of the non-inverting output terminal to the H level when the input from the counter 3a is at the H level, and sets the output of the non-inverting output terminal when the input from the counter 3b is at the H level. Is set to L level. The non-inverting output terminal of the output circuit 5 is a counter 3b.
And the inverted output terminal of the output circuit 5 is connected to the enable terminal EP of the counter 3a.
As a result, the output from the non-inverting output terminal of the output circuit 5 becomes H
During the period when the level is at the level, the counter 3b outputs the clock signal clk.
And the length of the period during which the output from the non-inverting output terminal is at the H level is determined.
During the period when the level is at the level, the counter 3a outputs the clock signal clk.
To determine the length of the period during which the output from the non-inverting output terminal is at the L level.

【0004】上述した構成によって、ラッチ回路2a,
2bにオン期間およびオフ期間のデータDtを設定すれ
ば、出力パルスのオン期間およびオフ期間をクロック信
号clk の整数倍である範囲で任意に設定できることにな
る。
With the above-described configuration, the latch circuits 2a,
If the data Dt of the ON period and the OFF period is set in 2b, the ON period and the OFF period of the output pulse can be arbitrarily set within a range that is an integral multiple of the clock signal clk.

【0005】[0005]

【発明が解決しようとする課題】ところで、放電灯点灯
回路やモータ制御回路等においてPWM方式で制御され
るインバータ回路を用いる場合に、負荷の種類等に応じ
てパルス発生回路の制御形式を変更する必要が生じる。
たとえば、出力パルスのオン期間とオフ期間とをともに
調節する制御形式、出力パルスの周期を一定にしてオン
デューティのみを調節する制御形式、外部から入力され
るタイミング信号に基づいてオン期間の開始点やオフ期
間の開始点が決定される制御形式などが要求される。上
述した従来構成では、オン期間とオフ期間とをともに設
定する制御形式にしか対応できず、他の制御形式での制
御が必要な場合には対応できないという問題がある。
In the case where an inverter circuit controlled by a PWM method is used in a discharge lamp lighting circuit, a motor control circuit, or the like, the control form of the pulse generation circuit is changed according to the type of load. Need arises.
For example, a control method that adjusts both the on-period and the off-period of the output pulse, a control method that regulates only the on-duty by keeping the period of the output pulse constant, a start point of the on-period based on a timing signal input from the outside And a control format in which the start point of the off period is determined. The above-described conventional configuration has a problem that it can only cope with a control format in which both the ON period and the OFF period are set, and cannot cope with a case where control in another control format is required.

【0006】すなわち、従来構成では各制御形式ごとに
別の回路を構成する必要があり、類似した回路を構成す
るにもかかわらず、組立時において多種類の部品を管理
することになって部品管理が面倒であるという問題が生
じる。本発明は上記問題点の解決を目的とするものであ
り、外部信号や外部データの種類に応じて複数種類の制
御形式での動作を可能とし、1回路を複数機能に共用す
ることができるようにしたパルス発生回路を提供しよう
とするものである。
That is, in the conventional configuration, it is necessary to configure a separate circuit for each control type. Even though a similar circuit is configured, various types of components are managed during assembly, and component management is performed. Is troublesome. SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problems, and it is possible to operate in a plurality of types of control formats according to types of external signals and external data, and to share one circuit for a plurality of functions. It is an object of the present invention to provide a pulse generating circuit as described above.

【0007】[0007]

【課題を解決するための手段】本発明では、上記目的を
達成するために、ロード端子を備えロード端子に入力さ
る信号に同期して外部からのデータを取り込むととも
にそのデータに対応する個数のクロック信号を計数する
とキャリー信号を出力する2個のカウンタと、2個の入
力端子を備え一方の入力信号によって出力信号をHレベ
ルに設定し他方の入力信号によって出力信号をLレベル
に設定する出力回路と、各カウンタのロード端子に信号
を入力する入力元と各カウンタのキャリー信号を与える
出力先出力回路への入力信号の入力元とを外部から
の指示により生成される2値のロード信号と外部から与
えられる2値の選択信号との組み合わせにより選択する
選択回路とを備え、選択回路は、各カウンタのキャリー
信号を互いに他のカウンタのロード端子に入力する信号
とするとともに出力回路の各入力信号とする第1の動作
状態と、上記ロード信号を適宜間隔で発生させ一方のカ
ウンタのキャリー信号を出力回路の一方の入力信号とし
そのカウンタのロード端子に入力する信号と出力回路の
他方の入力信号とを上記ロード信号とする第2の動作状
態と、一方のカウンタのキャリー信号を出力回路の一方
の入力信号とし他方のカウンタのキャリー信号を両カウ
ンタのロード端子に入力する信号および出力回路の他方
の入力信号とする第3の動作状態とを択一的に選択する
のである。
In the present invention, there is provided a means for solving], in order to achieve the above object, of the number corresponding to the data fetches data from the outside in synchronization with the signal that will be input to the load terminal with the load terminal Two counters for outputting a carry signal when the clock signal is counted, and an output having two input terminals for setting the output signal to H level by one input signal and setting the output signal to L level by the other input signal a circuit, the input source of the input source and the input signal to the <br/> output destination and an output circuit for providing a carry signal of each counter for inputting a signal to the load terminal of each counter from the outside
A binary load signal generated by the instruction of
And a selection circuit for selecting the combination of the carry signals of the respective counters with the load terminals of the other counters. a first operating state of the other input signal of the signal output circuit for inputting to the counter load terminal of the one input signal of the output circuit of the carry signal of one of the counters is generated at appropriate intervals the load signal and for The load signal , a signal for inputting the carry signal of one counter to one input signal of the output circuit and the carry signal of the other counter to the load terminals of both counters, and the other of the output circuit. The third operation state as an input signal is selected alternatively.

【0008】[0008]

【作用】上記構成によれば、第1の動作状態では、各カ
ウンタにそれぞれ取り込まれるデータによって、出力回
路の出力信号のオン期間とオフ期間とが決定されること
になり、また第2の動作状態では、ロード信号の発生間
隔が出力回路の出力信号の周期になるとともに、カウン
タに取り込まれたデータが出力信号のオン期間もしくは
オフ期間を設定することになり、さらに第3の動作状態
では、一方のカウンタに取り込まれたデータによって出
力回路の出力信号の周期が決定され他方のカウンタに取
り込まれたデータによって出力信号のオン期間もしくは
オフ期間を設定することになる。このように、カウン
タ、出力回路を共用し選択回路によって動作状態を選択
することにより、3種類の動作が可能になるのであっ
て、1つの回路を3種類の異なる制御形式で共用できる
のである。
According to the above configuration, in the first operating state, respectively, by the incorporated Lud over data in each counter, will be the ON period and OFF period of the output signal of the output circuit is determined, also the In the second operation state, the load signal generation interval becomes the cycle of the output signal of the output circuit, and the data taken into the counter sets the ON period or the OFF period of the output signal. In this state, the period of the output signal of the output circuit is determined by the data captured by one counter, and the ON period or the OFF period of the output signal is set by the data captured by the other counter. As described above, by sharing the counter and the output circuit and selecting the operation state by the selection circuit, three types of operations can be performed, and one circuit can be shared by three different types of control.

【0009】[0009]

【実施例】図1に示すように、基本的には、2個のデー
タを保持することができるラッチ回路2と、一対のカウ
ンタ3a,3bと、Dフリップフロップよりなる出力回
路5とを備える。各カウンタ3a,3bは、ロード端子
LOADに入力される信号が立ち下がるとD端子に入力され
ているデータを取込み、取り込んだデータ値からクロッ
ク信号clk を計数するようにオーバーフローまでのクロ
ック数の設定値を設定することができるプリセッタブル
カウンタよりなる。各カウンタ3a,3bでは、設定値
に相当する個数のクロック信号clk を計数してオーバー
フローすると、キャリー端子CYから出力されるキャリー
信号をHレベルに立ち上げる。また、クリア端子CLR に
入力されるリセット信号rst がLレベルになると設定値
および出力値を解除する。一方のカウンタ3aには、ラ
ッチ回路2から設定値が入力され、他方のカウンタ3b
には、ラッチ回路2と内部データを設定したデータ設定
部6との一方から択一的に設定値が入力される。カウン
タ3bに入力される設定値を、ラッチ回路2とデータ設
定部6とのどちらから入力するかは論理回路よりなる選
択回路7aで選択される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in FIG. 1, basically, a latch circuit 2 capable of holding two data, a pair of counters 3a and 3b, and an output circuit 5 comprising a D flip-flop are provided. . Each counter 3a, 3b has a load terminal
When the signal input to LOAD falls, the data input to the D terminal is fetched, and the preset value of the number of clocks up to the overflow can be set so that the clock signal clk is counted from the fetched data value. Consists of a counter. Each of the counters 3a and 3b counts the number of clock signals clk corresponding to the set value and, when it overflows, raises the carry signal output from the carry terminal CY to the H level. When the reset signal rst input to the clear terminal CLR becomes L level, the set value and the output value are released. One counter 3a receives a set value from the latch circuit 2, and the other counter 3b
, A set value is alternatively input from one of the latch circuit 2 and the data setting unit 6 in which the internal data is set. Whether the set value input to the counter 3b is input from the latch circuit 2 or the data setting unit 6 is selected by a selection circuit 7a composed of a logic circuit.

【0010】選択回路7aは、一対のアンド回路A
11,AN12と、両アンド回路AN11,AN12の出力の
論理和を出力するオア回路OR1 と、一方のアンド回路
AN11の一方の入力を反転させる反転回路NT1 とから
なる。他方のアンド回路AN12の一方の入力端と反転回
路NT1 の入力端とは共通に接続されて選択信号sel が
入力される。したがって、選択信号sel がLレベルであ
るときにはアンド回路AN 11が通過可能となり、選択信
号sel がHレベルであるときにはアンド回路AN12が通
過可能となる。すなわち、選択信号sel に応じて一方の
アンド回路AN11,AN12が択一的に通過可能となるの
である。ここに、アンド回路AN11にはラッチ回路2が
接続され、アンド回路AN12にはデータ設定部6が接続
され、オア回路ORの出力はカウンタ3bに入力されて
いるから、選択信号sel によってカウンタ3aの設定値
をラッチ回路2とデータ設定部6とのどちらから入力す
るかを選択することができるのである。
The selection circuit 7a includes a pair of AND circuits A
N11, AN12And both AND circuits AN11, AN12Output of
OR circuit OR that outputs logical sum1And one of the AND circuits
AN11Circuit NT for inverting one input of1And from
Become. The other AND circuit AN12One input terminal of the
Road NT1And the selection signal sel is
Is entered. Therefore, the selection signal sel is at L level.
AND circuit AN 11Can be passed, and
When signal sel is at H level, AND circuit AN12Through
It will be possible. That is, one of the signals is selected according to the selection signal sel.
AND circuit AN11, AN12Can be passed through alternatively
It is. Here, AND circuit AN11Has a latch circuit 2
Connected AND circuit AN12Is connected to the data setting unit 6
The output of the OR circuit OR is input to the counter 3b.
The setting value of the counter 3a by the selection signal sel
Is input from either the latch circuit 2 or the data setting unit 6.
Or you can choose.

【0011】両カウンタ3a,3bのキャリー端子CYか
ら出力されるキャリー信号は選択回路7bを通して出力
回路5のクロック端子に択一的に入力され、また選択回
路7cを通してナンド回路NAおよび排他的ノア回路X
ORに入力される。出力回路5ではD端子に電源電圧が
印加されているから、選択回路7bの出力であるクロッ
ク端子への入力が立ち上がると、非反転出力端子の出力
をHレベルに設定する。
A carry signal output from the carry terminal CY of each of the counters 3a and 3b is alternatively input to a clock terminal of the output circuit 5 through a selection circuit 7b, and is supplied to a NAND circuit NA and an exclusive NOR circuit through a selection circuit 7c. X
Input to OR. In the output circuit 5, since the power supply voltage is applied to the D terminal, when the input to the clock terminal, which is the output of the selection circuit 7b, rises, the output of the non-inverting output terminal is set to H level.

【0012】選択回路7b,7cは、上述した選択回路
7aと同じ構成を有し、それぞれ一対のアンド回路AN
21,AN22、AN31,AN32、オア回路OR2 、O
3 、反転回路NT2 、NT3 により構成される。選択
回路7bは、選択信号sel がLレベルのときに、カウン
タ3bのキャリー信号を出力回路5に入力し、選択信号
sel がHレベルのときに、カウンタ3aのキャリー信号
を出力回路5に入力する。また、選択回路7cは、選択
信号sel がLレベルのときに、カウンタ3aのキャリー
信号を出力し、選択信号sel がHレベルのときに、カウ
ンタ3bのキャリー信号を出力する。さらに、カウンタ
3bのキャリー信号はカウンタ3aのロード端子LOADに
入力されるとともに、オア回路ORを通してカウンタ3
bのロード端子LOADに入力される。
The selection circuits 7b and 7c have the same configuration as the selection circuit 7a, and each of the selection circuits 7b and 7c has a pair of AND circuits AN.
21, AN 22, AN 31, AN 32, OR circuit OR 2, O
R 3 and inverting circuits NT 2 and NT 3 . The selection circuit 7b inputs the carry signal of the counter 3b to the output circuit 5 when the selection signal sel is at the L level,
When sel is at H level, the carry signal of the counter 3a is input to the output circuit 5. The selection circuit 7c outputs a carry signal of the counter 3a when the selection signal sel is at the L level, and outputs a carry signal of the counter 3b when the selection signal sel is at the H level. Further, the carry signal of the counter 3b is input to the load terminal LOAD of the counter 3a, and the counter 3b passes through the OR circuit OR.
b is input to the load terminal LOAD.

【0013】ナンド回路NAには、選択回路7cの出力
とともにリセット信号rst が入力され、ナンド回路NA
の出力はアンド回路ANを通して出力回路5のリセット
端子Rに入力される。このアンド回路ANには、ロード
信号発生部8からのロード信号ldも入力される。ロード
信号発生部8は外部からのロード要求信号に応じて出力
を一定期間だけLレベルにしたロード信号ldを発生す
る。排他的ノア回路XORには、選択回路7cの出力と
ともに起動信号stが入力される。カウンタ3bのキャリ
ー信号、排他的ノア回路XORの出力信号、ロード信号
ldはオア回路ORを通してカウンタ3bのロード端子LO
ADに入力される。
The reset signal rst is input to the NAND circuit NA together with the output of the selection circuit 7c.
Is input to the reset terminal R of the output circuit 5 through the AND circuit AN. The load signal ld from the load signal generator 8 is also input to the AND circuit AN. The load signal generator 8 generates a load signal ld whose output is kept at L level for a certain period according to a load request signal from the outside. The activation signal st is input to the exclusive NOR circuit XOR together with the output of the selection circuit 7c. Carry signal of counter 3b, output signal of exclusive NOR circuit XOR, load signal
ld is the load terminal LO of the counter 3b through the OR circuit OR.
Input to AD.

【0014】図1に示した回路は、集積回路として構成
することが可能であって、1つの部品として扱うことが
できる。また、選択信号sel およびロード要求信号の組
み合わせによって、以下に説明する3種類の制御形式で
の動作が可能である。すなわち、選択信号sel がLレベ
ルであってロード要求信号がロード信号発生部8の出力
をHレベルに保っている相互ロード形式、選択信号sel
がLレベルであってロード要求信号に応じてロード信号
発生部8から所望のタイミングでロード信号ldが出力さ
れる外部ロード形式、選択信号sel がHレベルであって
ロード要求信号がロード信号発生部8の出力をHレベル
に保っている自己ロード形式の3種類を選択することが
できる。
The circuit shown in FIG. 1 can be configured as an integrated circuit and can be handled as one component. In addition, by the combination of the selection signal sel and the load request signal, it is possible to operate in the following three types of control formats. That is, the mutual load format in which the selection signal sel is at the L level and the load request signal keeps the output of the load signal generator 8 at the H level,
Is an L level, an external load format in which the load signal ld is output from the load signal generator 8 at a desired timing in response to the load request signal, and the selection signal sel is at an H level and the load request signal is 8 can be selected from among three types of self-loading type in which the output of H is maintained at H level.

【0015】相互ロード形式では、図2に示す接続関係
になる。すなわち、両カウンタ3a,3bには、それぞ
れラッチ回路2からのデータが入力され、かつキャリー
端子CYから出力されるキャリー信号を互いに他方のロー
ド端子LOADに入力することになる。また、出力回路5か
らの出力パルスout は、カウンタ3aのキャリー信号が
立ち上がるとHレベルになり、カウンタ3aのキャリー
信号が立ち上がるとLレベルになる。
In the mutual load format, the connection relationship is as shown in FIG. That is, the data from the latch circuit 2 is input to each of the counters 3a and 3b, and the carry signal output from the carry terminal CY is input to the other load terminal LOAD. The output pulse out from the output circuit 5 goes high when the carry signal of the counter 3a rises, and goes low when the carry signal of the counter 3a rises.

【0016】各部の信号のタイミングを示すと、図3の
ようになる。すなわち、始動時に図3(b)のようにリ
セット信号rst が立ち上がると、カウンタ3a,3bの
設定値が解除され、また出力回路5の出力パルスout が
Lレベルになる。この状態で、ラッチ回路2に2個のデ
ータを順次入力する。すなわち、図3(a)のようにデ
ータ(10,01)を順次発生させ、図3(c)(d)
のようにタイミング信号ta,tbを順次発生させて、
各データをラッチ回路2に取り込む。
FIG. 3 shows the timings of the signals of the respective sections. That is, when the reset signal rst rises as shown in FIG. 3B at the time of starting, the set values of the counters 3a and 3b are released, and the output pulse out of the output circuit 5 becomes L level. In this state, two data are sequentially input to the latch circuit 2. That is, data (10, 01) is sequentially generated as shown in FIG.
The timing signals ta and tb are sequentially generated as shown in FIG.
Each data is taken into the latch circuit 2.

【0017】ラッチ回路2にデータが設定された状態
で、図3(e)のように起動信号stを発生させると、カ
ウンタ3bにデータが取り込まれて図3(f)のように
計数が開始される。カウンタ3bがオーバーフローする
と、図3(g)のようにカウンタ3bのキャリー信号が
立ち上がり、出力回路5の出力パルスout がHレベルに
なる。また、カウンタ3bのキャリー信号はすぐに立ち
下がるから、図3(h)のように、カウンタ3aのロー
ド端子LOADへの入力が立ち下がり、カウンタ3aはラッ
チ回路2からデータを取り込んで計数を開始する。その
後、カウンタ3aがオーバーフローすると、図3(i)
のようにキャリー信号がHレベルになって、図3(j)
のように出力回路5の出力パルスout がLレベルにな
る。また、カウンタ3aのキャリー信号の立ち下がりに
よって、カウンタ3bはラッチ回路2のデータを取り込
んで計数を開始することになる。このように、両カウン
タ3a,3bが交互に計数動作を繰り返し、出力パルス
out のオン期間とオフ期間とが、ラッチ回路2に保持さ
れている2個のデータによって決定されるのである。こ
こに、図3(k)はクロック信号clk を示す。
When a start signal st is generated as shown in FIG. 3 (e) in a state where data is set in the latch circuit 2, the data is taken into the counter 3b and counting is started as shown in FIG. 3 (f). Is done. When the counter 3b overflows, the carry signal of the counter 3b rises as shown in FIG. 3 (g), and the output pulse out of the output circuit 5 goes high. Also, since the carry signal of the counter 3b falls immediately, the input to the load terminal LOAD of the counter 3a falls as shown in FIG. 3 (h), and the counter 3a takes in data from the latch circuit 2 and starts counting. I do. Thereafter, when the counter 3a overflows, FIG.
The carry signal becomes H level as shown in FIG.
, The output pulse out of the output circuit 5 becomes L level. Further, the falling edge of the carry signal of the counter 3a causes the counter 3b to take in the data of the latch circuit 2 and start counting. In this way, the counters 3a and 3b alternately repeat the counting operation, and output pulses
The ON period and the OFF period of out are determined by the two data held in the latch circuit 2. FIG. 3 (k) shows the clock signal clk.

【0018】外部ロード形式では、図4に示す接続関係
になる。この構成の場合、所望時点でロード要求信号を
発生させると、カウンタ3bが計数を開始し、ラッチ回
路2に設定されたデータに対応する個数のクロック信号
を計数した後に、カウンタ3bのキャリー信号がHレベ
ルになって出力回路5の出力パルスout をHレベルに立
ち上げ、次にロード要求信号が入力された時点で出力パ
ルスout をLレベルに立ち下げるようになっている。す
なわち、出力パルスout の周期をロード要求信号の発生
間隔によって設定し、かつ出力パルスout のオフ期間を
ラッチ回路2に設定する外部データにより設定できるよ
うになっている。
In the external load format, the connection relationship is as shown in FIG. In this configuration, when a load request signal is generated at a desired time, the counter 3b starts counting, and after counting the number of clock signals corresponding to the data set in the latch circuit 2, the carry signal of the counter 3b is output. The output pulse out of the output circuit 5 rises to the H level and rises to the H level, and the output pulse out falls to the L level when a load request signal is next input. In other words, the cycle of the output pulse out can be set by the generation interval of the load request signal, and the off period of the output pulse out can be set by external data set in the latch circuit 2.

【0019】各部の信号のタイミングを示すと、図5の
ようになる。すなわち、始動時に図5(b)のようにリ
セット信号rst が立ち上がると、カウンタ3bの設定値
が解除され、また図5(g)のように出力回路5の出力
パルスout がLレベルになる。この状態でラッチ回路2
に1個のデータを入力する。すなわち、図5(a)のよ
うにデータ(01)を発生させ、図5(c)のようにタ
イミング信号tbを発生させて、データをラッチ回路2
に取り込む。
FIG. 5 shows the timings of the signals of the respective parts. That is, when the reset signal rst rises as shown in FIG. 5B at the time of starting, the set value of the counter 3b is released, and the output pulse out of the output circuit 5 becomes L level as shown in FIG. 5G. In this state, the latch circuit 2
Input one piece of data. That is, the data (01) is generated as shown in FIG. 5A, and the timing signal tb is generated as shown in FIG.
Take in.

【0020】ラッチ回路2にデータが設定された状態
で、図5(d)のようにロード信号ldを発生させると、
カウンタ3bにデータが取り込まれて図5(e)のよう
に計数が開始される。カウンタ3bがタイムアップする
と、図5(f)のようにカウンタ3bのキャリー信号が
立ち上がり、図5(g)のように出力回路5の出力パル
スout がHレベルになる。その後、出力回路5の出力パ
ルスout はHレベルに維持される。一方、図5(d)の
ように次のロード信号ldがロード信号発生部8から発生
すると、ロード信号ldの立ち上がりによって出力回路5
がリセットされてLレベルになると同時に、カウンタ3
bに次のデータが入力されることになる。以上の動作を
繰り返すことによって、外部からのロード要求信号に基
づくロード信号ldの発生間隔によって出力パルスout の
周期が決定され、出力パルスout のオフ期間がラッチ回
路2に保持されたデータにより決定されることになる。
ここに、図5(h)はクロック信号clk を示す。
When the load signal ld is generated as shown in FIG. 5D with the data set in the latch circuit 2,
Data is taken into the counter 3b and counting is started as shown in FIG. When the time of the counter 3b is up, the carry signal of the counter 3b rises as shown in FIG. 5 (f), and the output pulse out of the output circuit 5 becomes H level as shown in FIG. 5 (g). Thereafter, the output pulse out of the output circuit 5 is maintained at the H level. On the other hand, when the next load signal ld is generated from the load signal generator 8 as shown in FIG.
Is reset to the L level and the counter 3
The next data is input to b. By repeating the above operation, the period of the output pulse out is determined by the generation interval of the load signal ld based on the external load request signal, and the off period of the output pulse out is determined by the data held in the latch circuit 2. Will be.
FIG. 5H shows the clock signal clk.

【0021】自己ロード形式では、図6に示す接続関係
になる。この構成の場合、一方のカウンタ3aにはラッ
チ回路2からデータが入力され、他方のカウンタ3bに
はデータ設定部6からのデータが入力される。また、一
方のカウンタ3aのキャリー端子CYは出力回路5のクロ
ック端子に接続され、他方のカウンタ3bのキャリー端
子CYはカウンタ3aのロード端子LOADに接続される。カ
ウンタ3bのキャリー信号はカウンタ3bのロード端子
LOADに対して起動信号stとともに排他的オア回路XOR
を通して入力される。したがって、起動信号stとカウン
タ3bのキャリー信号との一方だけがHレベルになる
と、ロード端子LOADへの入力が立ち下がってデータ設定
部6からカウンタ3bにデータを取り込む。また、カウ
ンタ3bのキャリー信号が立ち下がると、カウンタ3a
にラッチ回路2からのデータが取り込まれる。さらに、
カウンタ3bのキャリー信号は、リセット信号rst とと
もにナンド回路NAを通して出力回路5のリセット端子
Rに入力される。すなわち、リセット信号rst は起動後
にはHレベルになっているから、カウンタ3bのキャリ
ー信号が立ち上がると出力回路5がリセットされて出力
回路5からの出力パルスout はLレベルになる。また、
出力回路5からの出力パルスout はカウンタ3aのキャ
リー信号が立ち上がるとHレベルになる。結局、出力パ
ルスout は、カウンタ3bに取り込まれるデータ発生部
6からのデータによって周期が決定され、カウンタ3a
に取り込まれるラッチ回路2からのデータによってオフ
期間が決定されることになる。
In the self-load type, the connection relationship is as shown in FIG. In this configuration, one counter 3a receives data from the latch circuit 2 and the other counter 3b receives data from the data setting unit 6. The carry terminal CY of one counter 3a is connected to the clock terminal of the output circuit 5, and the carry terminal CY of the other counter 3b is connected to the load terminal LOAD of the counter 3a. The carry signal of the counter 3b is the load terminal of the counter 3b.
Exclusive OR circuit XOR with start signal st for LOAD
Is entered through Therefore, when only one of the start signal st and the carry signal of the counter 3b becomes H level, the input to the load terminal LOAD falls and data is taken in from the data setting unit 6 to the counter 3b. When the carry signal of the counter 3b falls, the counter 3a
The data from the latch circuit 2 is fetched. further,
The carry signal of the counter 3b is input to the reset terminal R of the output circuit 5 through the NAND circuit NA together with the reset signal rst. That is, since the reset signal rst is at the H level after activation, when the carry signal of the counter 3b rises, the output circuit 5 is reset, and the output pulse out from the output circuit 5 goes to the L level. Also,
The output pulse out from the output circuit 5 goes high when the carry signal of the counter 3a rises. After all, the cycle of the output pulse out is determined by the data from the data generator 6 which is taken into the counter 3b.
The off-period is determined by the data from the latch circuit 2 which is taken into the memory.

【0022】各部の信号のタイミングを示すと、図7の
ようになる。ここに、ラッチ回路2には図7(a)のよ
うにデータ(10)が設定され、データ設定部6では図
7(f)のようにデータ(01)が設定されているもの
とする。始動時に図7(b)のようにリセット信号rst
が立ち上がると、図7(j)のように出力回路5がリセ
ットされる。リセット後には、図7(g)のように起動
信号stが立ち上げられて、カウンタ3bにデータ設定部
6からデータ(01)が取り込まれ、また図7(c)の
ようにタイミング信号taによって、ラッチ回路2にデ
ータ(10)が取り込まれる。カウンタ3bは(01)
からクロック信号clk を計数し、計数値が次に(00)
となるときに(すなわち、クロック信号を3個計数する
と)、図7(i)のようにキャリー信号を立ち上げる。
このとき、カウンタ3bはデータ設定部6のデータを再
び取り込むとともに、出力回路5をリセットする。ただ
し、出力パルスout はもともとLレベルであるから、出
力パルスout に変化はない。また、カウンタ3bのキャ
リー信号が立ち下がるときには、カウンタ3aにラッチ
回路2のデータが取り込まれ、カウンタ3aが(10)
からクロック信号を計数する。したがって、図7(d)
のようにクロック信号clk を2個計数すると、図7
(e)のようにカウンタ3aのキャリー信号が立ち上が
り、図7(j)に示すように、出力回路5からの出力パ
ルスout を立ち上げる。その後、図7(i)のようにカ
ウンタ3bのキャリー信号が立ち上がると、出力パルス
out は立ち下がる。このように、カウンタ3bは出力パ
ルスout の周期を決定し、カウンタ3aは出力パルスou
t のオフ期間を決定する。ここに、図7(k)はクロッ
ク信号clk を示す。
FIG. 7 shows the timing of the signals of the respective parts. Here, it is assumed that data (10) is set in the latch circuit 2 as shown in FIG. 7A, and data (01) is set in the data setting unit 6 as shown in FIG. 7F. At the start, the reset signal rst as shown in FIG.
Rises, the output circuit 5 is reset as shown in FIG. After the reset, the start signal st rises as shown in FIG. 7 (g), the data (01) is taken into the counter 3b from the data setting unit 6, and the timing signal ta as shown in FIG. 7 (c). , The data (10) is taken into the latch circuit 2. The counter 3b is (01)
The clock signal clk is counted from
(That is, when three clock signals are counted), the carry signal rises as shown in FIG. 7 (i).
At this time, the counter 3b takes in the data of the data setting unit 6 again and resets the output circuit 5. However, since the output pulse out is originally at the L level, there is no change in the output pulse out. When the carry signal of the counter 3b falls, the data of the latch circuit 2 is taken into the counter 3a, and the counter 3a sets (10)
And counts the clock signal. Therefore, FIG.
When two clock signals clk are counted as shown in FIG.
7 (e), the carry signal of the counter 3a rises, and as shown in FIG. 7 (j), the output pulse out from the output circuit 5 rises. Then, when the carry signal of the counter 3b rises as shown in FIG.
out falls. Thus, the counter 3b determines the period of the output pulse out, and the counter 3a determines the period of the output pulse ou.
Determine the off period of t. FIG. 7 (k) shows the clock signal clk.

【0023】以上説明したように、ラッチ回路2、2個
のカウンタ3a,3b、選択回路4a,4b,4c、出
力回路5、データ設定部6を用いて、相互ロード形式、
外部ロード形式、自己ロード形式の3種類の動作形式を
選択することができ、従来は用途に応じた各形式の動作
について各別に異なる構成部品を用いていたのに対し
て、1つの回路を3種類の動作形式に兼用できるという
利点を有する。とくに、上記回路を集積回路として1つ
の部品とすれば、1部品を各種用途に兼用できることに
なり、部品管理が容易になる。
As described above, using the latch circuit 2, the two counters 3a and 3b, the selection circuits 4a, 4b and 4c, the output circuit 5, and the data setting unit 6, the mutual load format is used.
One of three types of operation, an external load type and a self-load type, can be selected. In contrast to the conventional configuration in which different components are used for each type of operation according to the application, one circuit is used for three types. It has the advantage that it can be used for different types of operation. In particular, if the circuit is formed as one component as an integrated circuit, one component can be used for various purposes, and component management becomes easy.

【0024】[0024]

【発明の効果】本発明は上述のように、ロード端子を備
えロード端子に入力される信号に同期して外部からの
ータを取り込むとともにそのデータに対応する個数のク
ロック信号を計数するとキャリー信号を出力する2個の
カウンタと、2個の入力端子を備え一方の入力信号によ
って出力信号をHレベルに設定し他方の入力信号によっ
て出力信号をLレベルに設定する出力回路と、各カウン
のロード端子に信号を入力する入力元と各カウンタの
キャリー信号を与える出力先出力回路への入力信号
の入力元とを外部からの指示により生成される2値のロ
ード信号と外部から与えられる2値の選択信号との組み
合わせにより選択する選択回路とを備え、選択回路は、
各カウンタのキャリー信号を互いに他のカウンタのロー
端子に入力する信号とするとともに出力回路の各入力
信号とする第1の動作状態と、上記ロード信号を適宜間
隔で発生させ一方のカウンタのキャリー信号を出力回路
の一方の入力信号としそのカウンタのロード端子に入力
する信号と出力回路の他方の入力信号とを上記ロード信
とする第2の動作状態と、一方のカウンタのキャリー
信号を出力回路の一方の入力信号とし他方のカウンタの
キャリー信号を両カウンタのロード端子に入力する信号
および出力回路の他方の入力信号とする第3の動作状態
とを択一的に選択するものであり、第1の動作状態で
は、各カウンタが交互に計数動作を繰り返し、出力回路
は一方のカウンタの計数中の出力信号をHレベルにし、
他方のカウンタの計数中にLレベルにする。つまり、
カウンタにそれぞれ取り込まれるデータによって、出力
回路の出力信号のオン期間とオフ期間とが決定されるこ
とになる。また、第2の動作状態では、一方のカウンタ
のロード端子に入力する信号の発生間隔が出力回路から
の出力信号の周期になるとともに、カウンタのロード端
子に入力される信号の変化点に同期してカウンタに取り
込まれたデータが出力信号のオン期間もしくはオフ期間
を設定することになる。さらに、第3の動作状態では、
一方のカウンタに取り込まれたデータによって出力回路
の出力信号の周期が決定され他方のカウンタに取り込ま
れたデータによって出力信号のオン期間もしくはオフ期
間を設定することになる。このように、カウンタ、出力
回路を共用し外部からのロード信号と選択信号との組み
合わせに よってカウンタと出力回路との接続関係を変更
する選択回路を設けたことによって、3種類の動作が可
能になるのであって、1つの回路を3種類の異なる制御
形式で共用できるという利点を有するのである。
According to the present invention as described above, the number of clock signals corresponding to the data fetches the de <br/> over data from the outside in synchronization with the signal that will be input to the load terminal with the load terminal An output circuit having two input terminals for setting the output signal to H level by one input signal and setting the output signal to L level by the other input signal; , 2 value generated by the instruction of the input source of the input signal to the output destination and an output circuit for providing an input source and <br/> carry signal of each counter for inputting a signal to the load terminal of each counter from the outside No
Combination of mode signal and binary selection signal given from outside
And a selection circuit that selects by matching .
A first operation state in which the carry signal of each counter is a signal to be input to the load terminal of another counter and each input signal of the output circuit, and the load signal is appropriately interposed.
Generated at an interval and the carry signal of one counter as one input signal of the output circuit and input to the load terminal of that counter
Signal and the other input signal and the load signal of the output circuit that
A second operating state of the item, and the other input signal of one of the counter one of the input signals signal and an output circuit for inputting the carry signal of the other counter to both counter load terminal of the output circuit a carry signal In the first operating state, each counter repeats the counting operation alternately, and the output circuit
Sets the output signal of one counter during counting to H level,
Set to L level during counting by the other counter. In other words, each by incorporated Lud over data in each counter, the on period and off period of the output signal of the output circuit is to be determined. In the second operation state, one of the counters
From generation interval output circuit of the input signal to the load terminal
Output cycle and the load end of the counter .
The data taken into the counter in synchronization with the transition point of the signal input to the slave sets the ON period or the OFF period of the output signal . Further, in the third operation state,
The period of the output signal of the output circuit is determined by the data captured by one counter, and the ON period or the OFF period of the output signal is set by the data captured by the other counter. In this way, the counter and output circuit are shared and the combination of the external load signal and the selection signal
Suit Thus changing the connection between the counter and the output circuit
By providing the selection circuit, there is made possible three types of operations, it has a advantage that share a single circuit in three different control types.

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

【図1】実施例を示す回路図である。FIG. 1 is a circuit diagram showing an embodiment.

【図2】実施例において相互ロード形式を選択した状態
での接続関係を示す回路図である。
FIG. 2 is a circuit diagram showing a connection relationship when a mutual load format is selected in the embodiment.

【図3】実施例における相互ロード形式の動作説明図で
ある。
FIG. 3 is an explanatory diagram of an operation of a mutual loading format in the embodiment.

【図4】実施例において外部ロード形式を選択した状態
での接続関係を示す回路図である。
FIG. 4 is a circuit diagram showing a connection relationship when an external load format is selected in the embodiment.

【図5】実施例における外部ロード形式の動作説明図で
ある。
FIG. 5 is an explanatory diagram of an operation of an external load format in the embodiment.

【図6】実施例において自己ロード形式を選択した状態
での接続関係を示す回路図である。
FIG. 6 is a circuit diagram showing a connection relationship when a self-loading type is selected in the embodiment.

【図7】実施例における自己ロード形式の動作説明図で
ある。
FIG. 7 is an explanatory diagram of an operation of a self-loading type in the embodiment.

【図8】従来例を示す回路図である。FIG. 8 is a circuit diagram showing a conventional example.

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

2 ラッチ回路 3a カウンタ 3b カウンタ 5 出力回路 6 データ設定部 7a 選択回路 7b 選択回路 7c 選択回路 8 ロード信号発生部 2 Latch circuit 3a Counter 3b Counter 5 Output circuit 6 Data setting section 7a Selection circuit 7b Selection circuit 7c Selection circuit 8 Load signal generation section

───────────────────────────────────────────────────── フロントページの続き (72)発明者 黒田 稔 大阪府門真市大字門真1048番地松下電工 株式会社内 (58)調査した分野(Int.Cl.7,DB名) H03K 5/135 H03K 7/08 H03K 5/156 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Minoru Kuroda 1048 Odomo Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Works, Ltd. (58) Field surveyed (Int. Cl. 7 , DB name) H03K 5/135 H03K 7 / 08 H03K 5/156

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ロード端子を備えロード端子に入力され
る信号に同期して外部からのデータを取り込むとともに
そのデータに対応する個数のクロック信号を計数すると
キャリー信号を出力する2個のカウンタと、2個の入力
端子を備え一方の入力信号によって出力信号をHレベル
に設定し他方の入力信号によって出力信号をLレベルに
設定する出力回路と、各カウンタのロード端子に信号を
入力する入力元と各カウンタのキャリー信号を与える
力先出力回路への入力信号の入力元とを外部からの
指示により生成される2値のロード信号と外部から与え
られる2値の選択信号との組み合わせにより選択する選
択回路とを備え、選択回路は、各カウンタのキャリー信
号を互いに他のカウンタのロード端子に入力する信号と
するとともに出力回路の各入力信号とする第1の動作状
態と、上記ロード信号を適宜間隔で発生させ一方のカウ
ンタのキャリー信号を出力回路の一方の入力信号としそ
のカウンタのロード端子に入力する信号と出力回路の他
方の入力信号とを上記ロード信号とする第2の動作状態
と、一方のカウンタのキャリー信号を出力回路の一方の
入力信号とし他方のカウンタのキャリー信号を両カウン
タのロード端子に入力する信号および出力回路の他方の
入力信号とする第3の動作状態とを択一的に選択するこ
とを特徴とするパルス発生回路。
A load terminal connected to the load terminal;
And two counter outputs a carry signal when counting the clock signal number corresponding to the data fetches data from an external signal in synchronization that the output signal by one input signal includes two input terminals and an output circuit for setting the output signal by the set other input signal to the H level to the L level, output <br/> Chikarasaki provide input source and the carry signal of the counter for inputting a signal to the load terminal of each counter input source and the external of the input signals to an output circuit
Binary load signal generated by instruction and given from outside
And a selection circuit for selecting the carry signals of the respective counters as signals input to the load terminals of the other counters and as input signals of the output circuit. A first operating state, wherein the load signal is generated at appropriate intervals, a carry signal of one counter is used as one input signal of an output circuit, and a signal input to the load terminal of the counter and the other input signal of the output circuit are used. A second operation state as the load signal , a signal for inputting the carry signal of one counter to one input signal of the output circuit and the carry signal of the other counter to the load terminals of both counters, and the other input to the output circuit. A pulse generating circuit for selectively selecting a third operation state to be a signal.
JP18723292A 1992-07-15 1992-07-15 Pulse generation circuit Expired - Fee Related JP3342044B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18723292A JP3342044B2 (en) 1992-07-15 1992-07-15 Pulse generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18723292A JP3342044B2 (en) 1992-07-15 1992-07-15 Pulse generation circuit

Publications (2)

Publication Number Publication Date
JPH0637609A JPH0637609A (en) 1994-02-10
JP3342044B2 true JP3342044B2 (en) 2002-11-05

Family

ID=16202373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18723292A Expired - Fee Related JP3342044B2 (en) 1992-07-15 1992-07-15 Pulse generation circuit

Country Status (1)

Country Link
JP (1) JP3342044B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5151484B2 (en) 2008-01-08 2013-02-27 株式会社ジェイテクト Torque limiter

Also Published As

Publication number Publication date
JPH0637609A (en) 1994-02-10

Similar Documents

Publication Publication Date Title
JPH01129616A (en) Format converting circut
US7030676B2 (en) Timing circuit for separate positive and negative edge placement in a switching DC-DC converter
JP3540844B2 (en) Semiconductor integrated circuit
KR930010689B1 (en) Clock signal converting circuit
TW437169B (en) Reset circuit for flip-flop
JP3342044B2 (en) Pulse generation circuit
EP2163998A1 (en) Cooperation circuit
US6839783B2 (en) Programmable state machine interface
JP2006527569A (en) High resolution PWM generator or digitally controlled oscillator
KR100594315B1 (en) Multiple pulse generator
JP3777242B2 (en) Motor control device
JP2008535305A (en) Electronic circuit that realizes asynchronous delay
JPH11509658A (en) Extended chip select reset device and method
JP3284317B2 (en) Pulse width modulator
JP2998898B2 (en) Pulse generator
KR100238208B1 (en) Synchronous serial input and output circuit
KR101768603B1 (en) PWM signal generator for controlling an inverter with varying frequency and duty
JP3578614B2 (en) PWM signal generation circuit
JP2998899B2 (en) Pulse generator
JP3382329B2 (en) Odd counter circuit
JPH0756651A (en) Clock generating circuit
JPS60217722A (en) Pulse signal generator circuit
JPH07245561A (en) Pulse generator
JPH01260376A (en) Test mode selection circuit
JPH06169260A (en) Serial-parallel conversion circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020806

LAPS Cancellation because of no payment of annual fees