JPH04325876A - Pulse generator - Google Patents
Pulse generatorInfo
- Publication number
- JPH04325876A JPH04325876A JP3093782A JP9378291A JPH04325876A JP H04325876 A JPH04325876 A JP H04325876A JP 3093782 A JP3093782 A JP 3093782A JP 9378291 A JP9378291 A JP 9378291A JP H04325876 A JPH04325876 A JP H04325876A
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- signal
- counter circuit
- 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.)
- Granted
Links
- 238000003079 width control Methods 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 19
- 101100273567 Arabidopsis thaliana CYCL1-1 gene Proteins 0.000 description 6
- 101100412046 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) RCY1 gene Proteins 0.000 description 6
- 230000001276 controlling effect Effects 0.000 description 4
- 239000004575 stone Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Landscapes
- Circuit Arrangements For Discharge Lamps (AREA)
- Inverter Devices (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、放電灯点灯回路を制御
するパルス幅変調された出力パルス信号を得るためなど
に使用されるパルス発生装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pulse generator used to obtain a pulse width modulated output pulse signal for controlling a discharge lamp lighting circuit.
【0002】0002
【従来の技術】放電灯点灯回路を制御するパルス幅変調
された出力パルス信号を得るために使用されるパルス発
生装置としては、マイクロプロセッサを用い、プログラ
ムによってソフト的に形成される内部カウンタにより所
定のオン, オフデューティ(所定の ”H” 区間と
”L” 区間)の出力パルス信号を得るようにしたも
のがある。[Prior Art] A pulse generator used to obtain a pulse width modulated output pulse signal for controlling a discharge lamp lighting circuit uses a microprocessor, and a predetermined value is determined by an internal counter formed by software according to a program. There is a device that obtains output pulse signals of on and off duty (predetermined "H" section and "L" section).
【0003】しかしながら、このようなパルス発生装置
では、マイクロプロセッサのマシンサイクルによってオ
ン, オフデューティの設定精度が規制され、一般的に
マシンサイクルは数μsec程度であるので、数μse
c以下の精度でオン,オフデューティを設定することが
できないという問題があり、放電灯を高周波点灯する放
電灯点灯回路のスイッチング制御用のパルス発生装置と
して用いる場合に問題があった。However, in such a pulse generator, the setting accuracy of on/off duty is regulated by the machine cycle of the microprocessor, and since the machine cycle is generally about several μsec,
There is a problem in that the on/off duty cannot be set with an accuracy of less than c, which is a problem when used as a pulse generator for switching control of a discharge lamp lighting circuit that lights a discharge lamp at a high frequency.
【0004】そこで、出力パルス信号の” H” 区間
設定データおよび” L” 区間設定データをデータラ
ッチ回路にラッチし、一定周期のクロック信号をカウン
トし上記両区間設定データが交互にセットされるプリセ
ッタブルなカウンタ回路からのリップルキャリー信号を
トグルフリップフロップ回路のトリガクロック信号とし
、上記トグルフリップフロップ回路からパルス幅変調さ
れた出力パルス信号を得るようにして、マイクロプロセ
ッサの内部カウンタを用いて ”H” 区間および ”
L” 区間を設定していた場合のように、マイクロプロ
セッサのマシンサイクルにてオン, オフデューティの
設定精度が規制されることがないようにし、マシンサイ
クルに関係なく ”H” 区間および ”L” 区間を
任意に設定することができ、オン,オフデューティの設
定精度を高くすることができるようにしたパルス発生装
置が提案されている。[0004] Therefore, the "H" section setting data and "L" section setting data of the output pulse signal are latched in a data latch circuit, a clock signal of a constant period is counted, and a preset is established in which the above two section setting data are set alternately. The ripple carry signal from the double counter circuit is used as the trigger clock signal of the toggle flip-flop circuit, and a pulse width modulated output pulse signal is obtained from the toggle flip-flop circuit. "Interval and"
The on/off duty setting accuracy is not restricted by the microprocessor's machine cycle, as would be the case if the "L" section was set, and the "H" section and "L" section are set regardless of the machine cycle. A pulse generator has been proposed in which the interval can be arbitrarily set and the on/off duty setting accuracy can be increased.
【0005】[0005]
【発明が解決しようとする課題】ところで、上述のパル
ス発生装置においてはパルス幅変調された出力パルス信
号の1周期以内に新たなデータがマイクロプロセッサか
ら出力されないと、次の周期も前の周期と同じパルス幅
の出力パルス信号が出力されてしまう。従って、マイク
ロプロセッサのマシンサイクルより小さいパルス幅の出
力パルス信号の場合には1周期以内に新たなデータをマ
イクロプロセッサから出力することができず、図13に
示すように前の周期と同じパルス幅の出力パルス信号が
複数回出力されてしまうことになる。これは言い換える
と、1周期毎にパルス幅を変化させた出力パルス信号を
生成する条件が、マイクロプロセッサの能力に関わって
くる。これに対処するためには、高速なマイクロプロセ
ッサを用いればよいのであるが、それにも限度がある。
例えば、現状の最速のマイクロプロセッサでも40MH
zクロック前後である。しかも、このようなマイクロプ
ロセッサは高価であるので実用的ではない。However, in the above-described pulse generator, if new data is not output from the microprocessor within one cycle of the pulse width modulated output pulse signal, the next cycle will also be the same as the previous cycle. Output pulse signals with the same pulse width are output. Therefore, in the case of an output pulse signal with a pulse width smaller than the machine cycle of the microprocessor, new data cannot be output from the microprocessor within one cycle, and as shown in Figure 13, the pulse width is the same as the previous cycle. The output pulse signal will be output multiple times. In other words, the conditions for generating an output pulse signal whose pulse width is changed every cycle are related to the ability of the microprocessor. In order to deal with this problem, it is possible to use a high-speed microprocessor, but even that has its limits. For example, even the current fastest microprocessor has 40MHz
It is before and after the z clock. Moreover, such microprocessors are expensive and therefore impractical.
【0006】本発明は上記の点に鑑みて為されたもので
あり、その目的とするところは、高速にパルス幅を変化
させることができるパルス発生装置を提供することにあ
る。The present invention has been made in view of the above points, and its object is to provide a pulse generator that can change the pulse width at high speed.
【0007】[0007]
【課題を解決するための手段】本発明では、上記目的を
達成するために、出力パルス信号の ”H” 区間設定
データおよび ”L” 区間設定データをそれぞれ独立
に変化させるパルス幅制御手段から与えられる上記両区
間設定データがセットされ、上記区間設定データをアッ
プカウントあるいはダウンカウントするアップダウンカ
ウンタ回路と、上記パルス幅制御手段によりアップダウ
ンカウンタ回路の最終データが設定され、上記アップダ
ウンカウンタ回路から出力されるカウントデータが最終
データと一致するまでカウントを行わせるデータ比較回
路と、上記アップダウンカウンタ回路のカウントデータ
をラッチするバッファと、このバッファのラッチデータ
が両区間設定データ毎に交互にセットされ一定周期のク
ロック信号でカウントするプリセッタブルなカウンタ回
路と、このカウンタ回路のリップルキャリー信号をトリ
ガクロックとしてパルス幅変調された出力パルス信号を
作成するトグルフリップフロップ回路とを備えている。[Means for Solving the Problems] In order to achieve the above object, the present invention provides a pulse width control means that independently changes "H" section setting data and "L" section setting data of an output pulse signal. The above-mentioned two section setting data are set, and the final data of the up-down counter circuit is set by the up-down counter circuit that counts up or down the above-mentioned section setting data, and the above-mentioned pulse width control means, and the final data of the up-down counter circuit is set by the above-mentioned pulse width control means. A data comparison circuit that counts until the output count data matches the final data, a buffer that latches the count data of the up/down counter circuit, and the latch data of this buffer is set alternately for each section setting data. This includes a presettable counter circuit that counts using a clock signal of a constant period, and a toggle flip-flop circuit that uses the ripple carry signal of this counter circuit as a trigger clock to create a pulse width modulated output pulse signal.
【0008】[0008]
【作用】上述のように構成することにより、パルス幅制
御手段がアップダウンカウンタ回路にパルス幅を変化さ
せる場合の初期データをセットし、データ比較回路に最
終データをセットしておけば、アップダウンカウンタ回
路でマイクロプロセッサのマシンサイクルに関係なくア
ップカウントあるいはダウンカウントしてプリセッタブ
ルなカウンタ回路にセットされるデータを更新すること
ができ、高速にパルス幅を変化させることができるよう
にしたものである。[Operation] By configuring as described above, the pulse width control means sets the initial data for changing the pulse width in the up/down counter circuit, and sets the final data in the data comparison circuit. The counter circuit can update the data set in the presettable counter circuit by up-counting or down-counting regardless of the microprocessor's machine cycle, making it possible to change the pulse width at high speed. be.
【0009】[0009]
【実施例】図1乃至図12に本発明の一実施例を示す。
本実施例のパルス発生装置は、出力パルス信号の ”H
” 区間設定データおよび ”L” 区間設定データを
それぞれ独立に変化させるパルス幅制御手段から与えら
れる上記両区間設定データがセットされ、上記区間設定
データをアップカウントあるいはダウンカウントするア
ップダウンカウンタ回路1aと、上記パルス幅制御手段
によりアップダウンカウンタ回路1aの最終データが設
定され、上記アップダウンカウンタ回路1aから出力さ
れるカウントデータが最終データと一致するまでカウン
トを行わせるデータ比較回路1cと、上記アップダウン
カウンタ回路11のカウントデータをラッチするバッフ
ァ1bと、このバッファ1bのラッチデータが両区間設
定データ毎に交互にセットされ一定周期のクロック信号
CLKでカウントするプリセッタブルなカウンタ回路2
と、上記カウンタ回路2からのリップルキャリー信号R
CY1 をトリガクロックとするトグルフリップフロッ
プ回路3とで構成されている。Embodiment FIGS. 1 to 12 show an embodiment of the present invention. The pulse generator of this embodiment has an output pulse signal of “H”.
an up/down counter circuit 1a which is set with the above-mentioned section setting data given from a pulse width control means that changes the "section setting data" and "L" section setting data independently, and counts up or down the section setting data; , a data comparison circuit 1c in which the final data of the up/down counter circuit 1a is set by the pulse width control means, and counts are performed until the count data outputted from the up/down counter circuit 1a matches the final data; A buffer 1b that latches the count data of the down counter circuit 11, and a presettable counter circuit 2 that latches the count data of the down counter circuit 11 and that the latch data of this buffer 1b is set alternately for each interval setting data and counts with a clock signal CLK of a constant period.
and the ripple carry signal R from the counter circuit 2.
The toggle flip-flop circuit 3 uses CY1 as a trigger clock.
【0010】上記パルス幅制御手段はマイクロプロセッ
サで形成され、このマイクロプロセッサから出力される
パルス幅を変化させる場合の初期データとしての ”H
” 区間設定データ及び ”L” 区間設定データがア
ップダウンカウンタ回路1aの入力端子IN1 〜IN
12に入力され、データ比較回路1cで作成したタイミ
ング信号によってラッチされる。また、マイクロプロセ
ッサから出力されるパルス幅を変化させる場合の最終デ
ータとしての ”H” 区間設定データ及び ”L”
区間設定データがデータ比較回路1cの入力端子I1
〜I12に入力され、タイミング制御回路4から出力さ
れるタイミング信号によってラッチされる。The pulse width control means is formed by a microprocessor, and "H" is used as initial data when changing the pulse width output from the microprocessor.
” section setting data and "L" section setting data are input terminals IN1 to IN of the up/down counter circuit 1a.
12, and is latched by a timing signal generated by the data comparison circuit 1c. In addition, "H" section setting data and "L" are used as final data when changing the pulse width output from the microprocessor.
The section setting data is input to the input terminal I1 of the data comparison circuit 1c.
~I12, and is latched by the timing signal output from the timing control circuit 4.
【0011】上記アップダウンカウンタ回路1a,バッ
ファ1b及びデータ比較回路1cでデータラッチ回路1
が形成され、アップダウンカウンタ回路1aは図2に示
すように両区間設定データ毎に4ビットのアップダウン
カウンタUDCを3個用いて12ビット構成としてある
。なお、このアップダウンカウンタUDCとしては図3
に示す構成のものを用いてある。また、バッファ1bは
図5に示すようにフリップフロップSFRとトライステ
ートバッファTBUFとで形成されている。The up/down counter circuit 1a, buffer 1b and data comparison circuit 1c form a data latch circuit 1.
As shown in FIG. 2, the up/down counter circuit 1a has a 12-bit configuration using three 4-bit up/down counters UDC for each section setting data. Note that this up/down counter UDC is shown in Figure 3.
The configuration shown in is used. Further, the buffer 1b is formed of a flip-flop SFR and a tri-state buffer TBUF, as shown in FIG.
【0012】アップダウンカウンタ回路1aでは、区間
データ設定信号HLが入力されているときに、入力端子
IN1 〜IN12を介して入力されるDT1 〜DT
12をラッチ信号LATCHA ,LATCHB によ
って ”L” 区間設定データDA1 〜DA12、
”H” 区間設定データDB1 〜DB12としてラッ
チし、データ比較回路1cでは、この区間設定データに
続いて入力端子I1 〜I12に入力される区間設定デ
ータをラッチ信号LATCHA ,LATCHB によ
ってラッチする。また、2次バッファ1bでは、データ
比較回路1cで作成されたラッチ信号LTCHによって
1次バッファ1aのラッチデータDA1 〜DA12、
DB1 〜DB12を取り込んで、イネーブル信号EN
A ,ENB によって選択された区間設定データDA
1 〜DA12あるいはDB1 〜DB12をカウンタ
回路2のプリセットデータとして出力する。また、ハー
フクロック制御信号HLFも一旦ラッチして信号HAL
Fとして出力している。なお、このハーフクロック制御
とは、マイクロプロセッサのマシンサイクルに関係なく
”H” 区間及び ”L” 区間を任意に設定できる
ようにした制御であり、その詳細な説明は後述する。In the up/down counter circuit 1a, when the section data setting signal HL is input, the DT1 to DT input through the input terminals IN1 to IN12 is input to the up/down counter circuit 1a.
12 is set to "L" by the latch signals LATCHA and LATCHB, and the section setting data DA1 to DA12,
The data comparison circuit 1c latches the section setting data DB1 to DB12 as "H" section setting data, and the section setting data input to the input terminals I1 to I12 following this section setting data is latched by the latch signals LATCHA and LATCHB. In addition, in the secondary buffer 1b, the latch data DA1 to DA12,
Take in DB1 to DB12 and send enable signal EN
Section setting data DA selected by A,ENB
1 to DA12 or DB1 to DB12 are output as preset data for the counter circuit 2. In addition, the half clock control signal HLF is also latched once and the signal HAL is
It is output as F. Note that this half-clock control is a control that allows the "H" period and the "L" period to be arbitrarily set regardless of the machine cycle of the microprocessor, and a detailed explanation thereof will be given later.
【0013】カウンタ回路2およびトグルフリップフロ
ップ回路3はカウンタ/出力回路5として一体化されて
おり、図6に示すように、4ビットのプリセッタブルカ
ウンタCNTを3個用いて12ビットのカウンタ回路2
を構成してあり、カウンタ回路2のリップルキャリー信
号RCY1 がハーフクロック制御回路6を介してトグ
ルフリップフロップ回路3にトリガクロックとしてのリ
ップルキャリー信号RCYとして出力されている。The counter circuit 2 and the toggle flip-flop circuit 3 are integrated as a counter/output circuit 5, and as shown in FIG. 6, the 12-bit counter circuit 2 is constructed by using three 4-bit presettable counters CNT.
The ripple carry signal RCY1 of the counter circuit 2 is outputted to the toggle flip-flop circuit 3 via the half clock control circuit 6 as a ripple carry signal RCY as a trigger clock.
【0014】トグルフリップフロップ回路3のフリップ
フロップ出力は2個のインバータを介して出力パルス信
号OUTとして出力され、同時に所定のプリセットデー
タをデータラッチ回路1から読み出すイネーブル信号E
NA ,ENB として出力される。ハーフクロック制
御回路6は、ハーフクロック制御信号HALFが ”H
” のときに、リップルキャリー信号RCY1 の立ち
上がり(トグルフリップフロップ回路の反転タイミング
) を半クロックだけ右にシフトさせ、クロック信号C
LKの半クロックの精度(倍精度) で ”H” 区間
、 ”L” 区間の設定を可能にしている。 タイミ
ング制御回路4は、ラッチ信号LATCH,LATCH
A ,LATCHB ,LTCHを発生する図7に示す
ラッチ制御回路4aと、クリア信号CLEAR,ロード
信号LOAD,ラッチ信号LTCH1 を発生する図8
に示すカウンタ制御回路4bとで形成されており、マイ
クロプロセッサから出力されるクロック信号CLK,ス
タート信号START,区間データ設定信号HLに基づ
いて所定のタイミング信号を出力し、各回路の動作タイ
ミングを制御する。The flip-flop output of the toggle flip-flop circuit 3 is outputted as an output pulse signal OUT via two inverters, and at the same time an enable signal E for reading predetermined preset data from the data latch circuit 1 is output.
Output as NA and ENB. The half clock control circuit 6 is configured such that the half clock control signal HALF is “H”.
”, the rise of the ripple carry signal RCY1 (the inversion timing of the toggle flip-flop circuit) is shifted to the right by half a clock, and the clock signal C
It is possible to set the “H” and “L” intervals with half-clock precision (double precision) of LK. The timing control circuit 4 outputs latch signals LATCH and LATCH.
The latch control circuit 4a shown in FIG. 7 generates A, LATCHB, and LTCH, and the latch control circuit 4a shown in FIG. 8 generates a clear signal CLEAR, a load signal LOAD, and a latch signal LTCH1.
It is formed of a counter control circuit 4b shown in FIG. 4, and outputs a predetermined timing signal based on the clock signal CLK, start signal START, and section data setting signal HL output from the microprocessor to control the operation timing of each circuit. do.
【0015】ところで、この種のパルス発生装置では、
出力パルス信号OUTに基づいて2相クロック信号OU
T1 ,OUT2 を発生させる2相クロック発生回路
7と、放電灯点灯回路10のスイッチングを制御する出
力信号として出力パルス信号OUTを出力するか、2相
クロック信号OUT1,OUT2 を出力するかを切換
信号SE/HBにより切り換える出力切換回路8とが設
けられており、シングルエンド型(出力パルス信号OU
Tでスイッチングトランジスタが制御される1石インバ
ータ方式) あるいはハーフブリッジ型(2相クロック
信号OUT1 ,OUT2 によって直列接続された一
対のスイッチングトランジスタが制御される2石インバ
ータ方式) の放電灯点灯回路10のスイッチング制御
信号が得られるようになっている。By the way, in this type of pulse generator,
Two-phase clock signal OU based on output pulse signal OUT
A switching signal is used to determine whether to output the output pulse signal OUT or the two-phase clock signals OUT1 and OUT2 as output signals for controlling the switching of the two-phase clock generation circuit 7 that generates T1 and OUT2 and the discharge lamp lighting circuit 10. An output switching circuit 8 that is switched by SE/HB is provided, and is a single-ended type (output pulse signal OU
A discharge lamp lighting circuit 10 of a single-stone inverter type in which a switching transistor is controlled by T or a half-bridge type (a two-stone inverter type in which a pair of switching transistors connected in series are controlled by two-phase clock signals OUT1 and OUT2). A switching control signal is available.
【0016】ここで、2相クロック発生回路7は、クロ
ック信号CLKをカウントしてノンオーバラップ区間を
設定するプリセッタブルカウンタ回路7aと、プリセッ
タブルカウンタ回路7aから出力されるリップルキャリ
ー信号RCY2 ’に基づいてゲート回路7cを制御す
るゲート制御回路7bとで形成され、8ビットの設定ス
イッチで設定されるノンオーバッラップ区間設定データ
HB1 〜HB8 に基づいてノンオーバラップ区間が
設定された2相クロック信号OUT1 ,OUT2 を
出力するようになっている。Here, the two-phase clock generation circuit 7 includes a presettable counter circuit 7a that counts the clock signal CLK and sets a non-overlapping period, and a ripple carry signal RCY2' outputted from the presettable counter circuit 7a. A two-phase clock signal in which a non-overlapping section is set based on non-overlapping section setting data HB1 to HB8, which is formed by a gate control circuit 7b that controls a gate circuit 7c based on the 8-bit setting switch. It is designed to output OUT1 and OUT2.
【0017】以下に、パルス発生装置の全体動作につい
て説明する。なお、以下の説明はアップダウンカウンタ
回路1aのアップダウンカウントをデータ比較回路1c
により禁止し、単にデータラッチ回路1の1次バッファ
として用いた場合について説明する。なお、この際には
アップダウンカウンタ回路1aとデータ比較回路1cと
に同一の区間設定データをセットすることにより行える
。The overall operation of the pulse generator will be explained below. Note that the following explanation is based on the up/down count of the up/down counter circuit 1a and the data comparison circuit 1c.
A case will be explained in which the data latch circuit 1 is prohibited by the following and is simply used as a primary buffer of the data latch circuit 1. Note that this can be done by setting the same section setting data in the up/down counter circuit 1a and the data comparison circuit 1c.
【0018】まず、図10に示すように、マイクロプロ
セッサから出力されるスタート信号STARTが立ち上
がると、システムリセットが行われる。そして、 ”L
” 区間設定データDA1 〜DA12が確定すると、
マイクロプロセッサから区間データ設定信号HLが立ち
上がり、ラッチ信号LATCHA が1パルス出力され
てデータラッチ回路1のアップダウンカウンタ回路1a
に ”L” 区間設定データDA1 〜DA12がラッ
チされる。First, as shown in FIG. 10, when the start signal START output from the microprocessor rises, a system reset is performed. And “L”
” When the section setting data DA1 to DA12 is confirmed,
The section data setting signal HL rises from the microprocessor, one pulse of the latch signal LATCHA is output, and the up/down counter circuit 1a of the data latch circuit 1
"L" section setting data DA1 to DA12 are latched.
【0019】次に、 ”H” 区間設定データDB1
〜DB12が確定すると、区間データ設定信号HLの立
ち下がりでラッチ信号LATCHB が1パルス出力さ
れて ”H” 区間設定データDB1 〜DB12がデ
ータラッチ回路1のアップダウンカウンタ回路1aにラ
ッチされる。そして、クリア信号CLEARが ”L”
になり、ラッチ信号LTCHが1パルス出力され、両
区間設定データDA1 〜DA12、DB1 〜DB1
2は2次バッファ1bにラッチされる。このとき、イネ
ーブル信号ENA が”H” となっているので、バッ
ファ1bから ”L” 区間設定データDA1 〜DA
12が読み出され、カウンタ回路2にプリセットデータ
をセットするロード信号LOADが出力されたとき、カ
ウンタ回路2に ”L” 区間設定データDA1 〜D
A12がセットされる。この状態でカウンタ回路2によ
るクロック信号CLKのカウントが開始され、カウンタ
回路2の出力Q1 〜Q12が総て ”H” になると
、リップルキャリー信号RCY1 が出力される。この
リップルキャリー信号RCY1 によってイネーブル信
号ENB が ”H” になり、同時に出力パルス信号
OUTも ”H” になる。すると、”H” 区間設定
データDB1 〜DB12がカウンタ回路2にプリセッ
トされ、クロック信号CLKのカウントが開始され、リ
ップルキャリー信号RCY1 が得られると、出力パル
ス信号が ”L” になるとともにイネーブル信号EN
A が ”H” になり、上述の動作を繰り返す。した
がって、両区間設定データDA1 〜DA12、DB1
〜DB12に基づいて出力パルス信号OUTの ”L
” 区間および ”H” 区間が任意に(12ビットの
範囲で) 設定でき、オン, オフデューティを設定で
きることになる。なお、オン, オフデューティを変更
する場合には、 ”L” 区間設定データDA1 〜D
A12をセットした後、区間データ設定信号HLを”H
” にし、”H” 区間設定データDB1 〜DB12
をセットした後、区間データ設定信号HLを ”L”
にすれば良い。Next, "H" section setting data DB1
When ~DB12 is determined, one pulse of the latch signal LATCHB is output at the fall of the interval data setting signal HL, and the "H" interval setting data DB1 to DB12 are latched into the up/down counter circuit 1a of the data latch circuit 1. Then, the clear signal CLEAR is “L”
, one pulse of the latch signal LTCH is output, and both section setting data DA1 to DA12, DB1 to DB1 are output.
2 is latched into the secondary buffer 1b. At this time, since the enable signal ENA is "H", the "L" section setting data DA1 to DA is sent from the buffer 1b.
12 is read out and a load signal LOAD for setting preset data in the counter circuit 2 is output, the counter circuit 2 receives "L" section setting data DA1 to D.
A12 is set. In this state, the counter circuit 2 starts counting the clock signal CLK, and when the outputs Q1 to Q12 of the counter circuit 2 all become "H", the ripple carry signal RCY1 is output. This ripple carry signal RCY1 causes the enable signal ENB to become "H", and at the same time, the output pulse signal OUT also becomes "H". Then, the "H" section setting data DB1 to DB12 are preset in the counter circuit 2, the clock signal CLK starts counting, and when the ripple carry signal RCY1 is obtained, the output pulse signal becomes "L" and the enable signal EN is activated.
A becomes "H" and the above operation is repeated. Therefore, both section setting data DA1 to DA12, DB1
~Based on DB12, the output pulse signal OUT is “L”
" section and "H" section can be set arbitrarily (within a range of 12 bits), and on/off duty can be set. Furthermore, when changing on/off duty, "L" section setting data DA1 ~D
After setting A12, set the section data setting signal HL to “H”.
” and “H” Section setting data DB1 to DB12
After setting the section data setting signal HL to “L”
You should do it.
【0020】例えば、図10に示すように、クロック信
号CLKの周波数を16MHz(周期62. 5nse
c) とし、 ”H” 区間を161パルス、 ”L”
区間を164パルスに設定する場合には、 ”H”
区間設定データDA1 〜DA12の8ビット目および
6ビット目を” 1” に設定し、 ”L” 区間設定
データDB1 〜DB12の8ビット目、6ビット目、
2ビット目、1ビット目を ”1” に設定すれば良い
ことになる。この場合、出力パルス信号OUTの周期は
、クロック信号CLKの325パルス分となって20.
2μsec であり、周波数49. 2kHzとなる
。また、 ”H” 区間あるいは ”L” 区間の幅を
1パルス分(62. 5nsec) だけ広くすると、
周期はクロック信号CLKの326パルス分となり、周
波数は49. 1kHzになる。したがって、出力パル
ス信号OUTの ”H” 区間あるいは ”L” 区間
を62. 5nsec刻みで設定できるとともに、0.
1kHz刻みで周波数を制御できることになり、パルス
発生装置のスイッチング制御信号として用いた場合にお
いて、きめ細かな点灯制御が行えることになる。なお、
カウンタ回路2にてカウントされるクロック信号CLK
の周波数を高くすれば、設定精度をより高くできること
は言うまでもない。For example, as shown in FIG. 10, the frequency of the clock signal CLK is set to 16 MHz (period 62.5 ns).
c) Set the “H” section to 161 pulses, “L”
When setting the interval to 164 pulses, select “H”
Set the 8th bit and 6th bit of section setting data DA1 to DA12 to "1", and set the 8th bit and 6th bit of section setting data DB1 to DB12 to "L".
It is sufficient to set the second bit and the first bit to "1". In this case, the period of the output pulse signal OUT is 325 pulses of the clock signal CLK, which is 20.
2μsec, frequency 49. It becomes 2kHz. Also, if the width of the "H" section or "L" section is widened by one pulse (62.5nsec),
The period is 326 pulses of the clock signal CLK, and the frequency is 49. It becomes 1kHz. Therefore, the "H" section or "L" section of the output pulse signal OUT is set to 62. It can be set in 5nsec increments, and can be set in 0.
The frequency can be controlled in 1 kHz increments, and when used as a switching control signal for a pulse generator, fine lighting control can be performed. In addition,
Clock signal CLK counted by counter circuit 2
It goes without saying that setting accuracy can be increased by increasing the frequency.
【0021】次に、図11に基づいてハーフクロック制
御について説明する。いま、ハーフクロック制御信号H
ALFが ”L”の場合には、リップルキャリー信号R
CY1 はそのままトグルフリップフロップ回路3のト
リガクロックとなり、図11(b)に示すように、トリ
ガクロックとしてのリップルキャリー信号RCYの立ち
上がりに同期して出力パルス信号OUTの反転が行われ
る。Next, half clock control will be explained based on FIG. 11. Now, the half clock control signal H
When ALF is “L”, ripple carry signal R
CY1 directly serves as the trigger clock for the toggle flip-flop circuit 3, and as shown in FIG. 11(b), the output pulse signal OUT is inverted in synchronization with the rise of the ripple carry signal RCY as the trigger clock.
【0022】一方、ハーフクロック制御信号HALFが
”H” になると、図11(a)に示すように、リッ
プルキャリー信号RCY1 の立ち上がりが半クロック
だけ右にシフトし、このシフトされたリップルキャリー
信号RCYがトグルフリップフロップ回路3のトリガク
ロックとなって出力パルス信号OUTの反転動作が行わ
れる。
したがって、ハーフクロック制御信号HLFが ”H”
の場合、 ”H” 区間あるいは ”L” 区間を、
区間設定データDA1 〜DA12,DB1 〜DB1
2にて設定される図11(b)の場合に比べてクロック
信号CLKの半クロック分だけ広くでき、クロック信号
CLKの周波数を高くすることなく、 ”H” 区間お
よび ”L”区間の設定精度を倍にすることができる。On the other hand, when the half clock control signal HALF becomes "H", the rising edge of the ripple carry signal RCY1 is shifted to the right by half a clock, as shown in FIG. 11(a), and this shifted ripple carry signal RCY serves as a trigger clock for the toggle flip-flop circuit 3, and the inversion operation of the output pulse signal OUT is performed. Therefore, half clock control signal HLF is “H”
In the case of “H” section or “L” section,
Section setting data DA1 ~DA12, DB1 ~DB1
Compared to the case of Figure 11(b) set in 2, it can be made wider by half a clock of the clock signal CLK, and the setting accuracy of the "H" interval and "L" interval can be increased without increasing the frequency of the clock signal CLK. can be doubled.
【0023】2相クロック発生回路7は次のように動作
する。つまり、この2相クロック発生回路7では、ノン
オーバッラップ区間設定データHB1 〜HB8 がプ
リセットされたプリセッタブルカウンタ回路7aにてク
ロック信号CLKをカウントしてノンオーバラップ区間
を設定するようになっており、図12に示すように、プ
リセッタブルカウンタ回路7aから出力されるリップル
キャリー信号RCY2’に基づいてゲート回路7cを制
御するゲート制御信号が形成され、このゲート制御信号
にて制御されるゲート回路7cによって出力パルス信号
OUTにノンオーバラップ区間を付与した2相クロック
信号OUT1 ,OUT2 が形成される。Two-phase clock generation circuit 7 operates as follows. In other words, in this two-phase clock generation circuit 7, a presettable counter circuit 7a to which non-overlap interval setting data HB1 to HB8 is preset counts the clock signal CLK to set a non-overlap interval. , as shown in FIG. 12, a gate control signal for controlling the gate circuit 7c is formed based on the ripple carry signal RCY2' output from the presettable counter circuit 7a, and the gate circuit 7c is controlled by this gate control signal. Thus, two-phase clock signals OUT1 and OUT2 are formed by adding a non-overlapping section to the output pulse signal OUT.
【0024】上述のようにして発生された出力パルス信
号OUTおよび2相クロック信号OUT1 ,OUT2
は、出力切換回路8を介して出力され、切換信号SE
/HBが”H” のとき、出力パルス信号OUTが出力
され、切換信号SE/HBが ”L”のとき、2相クロ
ック信号OUT1 ,OUT2 が出力される。したが
って、切換信号SE/HBを適当に設定することにより
、シングルエンド型あるいはハーフブリッジ型の放電灯
点灯回路10に対応できるパルス発生装置が得られるこ
とになる。Output pulse signal OUT and two-phase clock signals OUT1 and OUT2 generated as described above
is output via the output switching circuit 8, and the switching signal SE
When /HB is "H", output pulse signal OUT is output, and when switching signal SE/HB is "L", two-phase clock signals OUT1 and OUT2 are output. Therefore, by appropriately setting the switching signal SE/HB, it is possible to obtain a pulse generator compatible with the single-end type or half-bridge type discharge lamp lighting circuit 10.
【0025】以下に、出力パルス信号のパルス幅を変化
させる際の動作について説明する。このように出力パル
ス信号のパルス幅を変化させる場合には、マイクロプロ
セッサがアップダウンカウンタ回路1aにパルス幅を変
化させる場合の初期データをセットし、データ比較回路
1cにパルス幅を変化させる場合の最終データをセット
する。ここで、データ比較回路1cに最終データとして
の区間設定データが設定されたときには、この設定デー
タがアップダウンカウンタ回路1aに設定されたデータ
と一致するかどうかを比較して判断し、不一致の場合に
はデータ比較回路1cからアップダウンカウンタ回路1
aにアップカウントあるいはダウンカウントさせるため
のアップダウン信号DNUP1 ,DNUP2 を与え
ることにより、アップダウンカウンタ回路1aを初期デ
ータからインクリメントあるいはディクリメントさせる
という動作を、アップダウンカウンタ回路1aの出力デ
ータが設定データに一致するまで行う。The operation when changing the pulse width of the output pulse signal will be explained below. When changing the pulse width of the output pulse signal in this way, the microprocessor sets initial data for changing the pulse width in the up/down counter circuit 1a, and sets initial data for changing the pulse width in the data comparison circuit 1c. Set the final data. Here, when the section setting data as the final data is set in the data comparison circuit 1c, it is determined by comparing whether this setting data matches the data set in the up/down counter circuit 1a, and if they do not match, then From the data comparison circuit 1c to the up/down counter circuit 1
By applying up/down signals DNUP1 and DNUP2 for up-counting or down-counting to a, the output data of the up-down counter circuit 1a can be set to the setting data. Do this until it matches.
【0026】このようにしてアップダウンカウンタ回路
1aでアップカウントあるいはダウンカウントが行われ
ているとき、バッファ1bにはインクリメントあるいは
ディリメントされる毎に、新たなデータがラッチされ、
このデータはイネーブル信号ENA ,ENB が ”
H” となり、ロード信号LOADがカウンタ回路2に
入力される毎にカウンタ回路2にセットされ、以降は上
述したと同様にしてアップダウンカウンタ回路1aの出
力データが設定データに一致するまで、連続的に異なる
データをカウンタ回路2がカウントする。なお、データ
比較回路1cはカウンタ回路2でデータが更新されるこ
とに同期してアップダウンカウンタ回路1aのアップカ
ウントあるいはダウンカウントの制御を行っている。従
って、トグルフリップフロップ回路3からは図4に示す
ように連続的にパルス幅が変化する出力パルス信号が得
られる。
なお、この図4の場合には ”L” 区間設定データは
固定して ”H” 区間設定データだけを可変した場合
を示し、初期データが ”1” で最終データが ”5
” の場合を示す。このようにマイクロプロセッサがア
ップダウンカウンタ回路1aにパルス幅を変化させる場
合の初期データをセットし、データ比較回路1cに最終
データをセットすれば、アップダウンカウンタ回路1a
でマイクロプロセッサのマシンサイクルに関係なくアッ
プカウントあるいはダウンカウントしてプリセッタブル
なカウンタ回路2にセットされるデータを更新すること
ができ、高速にパルス幅を変化させることができる。そ
して、上記アップダウンカウンタ回路1aの出力データ
が一致した場合にはそこで上記動作は終了し、上述した
アップダウンカウンタ回路1aを1次バッファとして使
用する通常の動作に戻る。本実施例は、放電灯を全点灯
、全消灯あるいは所定の調光点灯状態に切り換える際の
過渡的な段階における放電灯の点灯制御に用いることが
できる。When up-counting or down-counting is performed in the up-down counter circuit 1a in this manner, new data is latched into the buffer 1b every time it is incremented or decremented.
This data is transmitted by enable signals ENA and ENB.
H" and is set in the counter circuit 2 every time the load signal LOAD is input to the counter circuit 2. From then on, it is set in the counter circuit 2 in the same way as described above until the output data of the up/down counter circuit 1a matches the setting data. The counter circuit 2 counts different data.The data comparison circuit 1c controls up-counting or down-counting of the up-down counter circuit 1a in synchronization with the updating of data in the counter circuit 2. Therefore, an output pulse signal whose pulse width changes continuously as shown in Fig. 4 is obtained from the toggle flip-flop circuit 3. In the case of Fig. 4, the "L" section setting data is fixed. H” Indicates the case where only the section setting data is changed, the initial data is “1” and the final data is “5”.
”. In this way, if the microprocessor sets the initial data for changing the pulse width in the up-down counter circuit 1a and sets the final data in the data comparison circuit 1c, the up-down counter circuit 1a
The data set in the presettable counter circuit 2 can be updated by up-counting or down-counting regardless of the machine cycle of the microprocessor, and the pulse width can be changed at high speed. When the output data of the up/down counter circuit 1a match, the above operation ends and the normal operation returns to using the above-mentioned up/down counter circuit 1a as a primary buffer. The present embodiment can be used to control the lighting of a discharge lamp in a transitional stage when switching the discharge lamp to a fully lit state, a completely unlit state, or a predetermined dimmed lighting state.
【0027】[0027]
【発明の効果】本発明は上述のように、出力パルス信号
の ”H” 区間設定データおよび ”L”区間設定デ
ータをそれぞれ独立に変化させるパルス幅制御手段から
与えられる上記両区間設定データがセットされ、上記区
間設定データをアップカウントあるいはダウンカウント
するアップダウンカウンタ回路と、上記パルス幅制御手
段によりアップダウンカウンタ回路の最終データが設定
され、上記アップダウンカウンタ回路から出力されるカ
ウントデータが最終データと一致するまでカウントを行
わせるデータ比較回路と、上記アップダウンカウンタ回
路のカウントデータをラッチするバッファと、このバッ
ファのラッチデータが両区間設定データ毎に交互にセッ
トされ一定周期のクロック信号でカウントするプリセッ
タブルなカウンタ回路と、このカウンタ回路のリップル
キャリー信号をトリガクロックとしてパルス幅変調され
た出力パルス信号を作成するトグルフリップフロップ回
路とを備えているので、パルス幅制御手段がアップダウ
ンカウンタ回路にパルス幅を変化させる場合の初期デー
タをセットし、データ比較回路に最終データをセットし
ておけば、アップダウンカウンタ回路でマイクロプロセ
ッサのマシンサイクルに関係なくアップカウントあるい
はダウンカウントしてプリセッタブルなカウンタ回路に
セットされるデータを更新することができ、高速にパル
ス幅を変化させることができる。[Effects of the Invention] As described above, the present invention provides a system in which both the above-mentioned interval setting data given from the pulse width control means that independently change the "H" interval setting data and the "L" interval setting data of the output pulse signal are set. The final data of the up-down counter circuit is set by the up-down counter circuit for up-counting or down-counting the section setting data and the pulse width control means, and the count data output from the up-down counter circuit is the final data. a data comparison circuit that counts until it matches, a buffer that latches the count data of the up/down counter circuit, and the latch data of this buffer is set alternately for each interval setting data and is counted using a constant cycle clock signal. The device is equipped with a presettable counter circuit that performs pulse width modulation, and a toggle flip-flop circuit that creates a pulse width modulated output pulse signal using the ripple carry signal of this counter circuit as a trigger clock. By setting the initial data for changing the pulse width in , and setting the final data in the data comparison circuit, the up/down counter circuit can count up or down regardless of the microprocessor's machine cycle, making it a presettable function. The data set in the counter circuit can be updated, and the pulse width can be changed at high speed.
【図1】本発明の一実施例の全体構成を示すブロック図
である。FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.
【図2】(a)はアップダウンカウンタ回路の回路図で
ある。
(b)同上に用いられる4ビットアップダウンカウンタ
の端子配列を示す説明図である。FIG. 2(a) is a circuit diagram of an up/down counter circuit. (b) is an explanatory diagram showing a terminal arrangement of a 4-bit up/down counter used in the above.
【図3】同上を構成する4ビットアップダウンカウンタ
の回路図である。FIG. 3 is a circuit diagram of a 4-bit up/down counter constituting the same.
【図4】主要動作の説明図である。FIG. 4 is an explanatory diagram of main operations.
【図5】(a)はバッファの回路図である。
(b)は同上に用いられるフリップフロップの端子配列
の説明図である。FIG. 5(a) is a circuit diagram of a buffer. (b) is an explanatory diagram of the terminal arrangement of the flip-flop used in the above.
【図6】(a)はカウンタ/出力回路の回路図である。
(b)は同上に用いられるカウンタの端子配列を示す説
明図である。
(c)は同上に用いられるフリップフロップの端子配列
の説明図である。FIG. 6(a) is a circuit diagram of a counter/output circuit. (b) is an explanatory diagram showing the terminal arrangement of the counter used in the above. (c) is an explanatory diagram of the terminal arrangement of the flip-flop used in the above.
【図7】ラッチ制御回路の回路図である。FIG. 7 is a circuit diagram of a latch control circuit.
【図8】カウンタ制御回路の回路図である。FIG. 8 is a circuit diagram of a counter control circuit.
【図9】(a)は2相クロック発生回路の回路図である
。
(b)は同上に用いられるカウンタの端子配列を示す説
明図である。
(c)は同上に用いられるフリップフロップの端子配列
の説明図である。FIG. 9(a) is a circuit diagram of a two-phase clock generation circuit. (b) is an explanatory diagram showing the terminal arrangement of the counter used in the above. (c) is an explanatory diagram of the terminal arrangement of the flip-flop used in the above.
【図10】同上の全体動作の説明図である。FIG. 10 is an explanatory diagram of the overall operation same as above.
【図11】ハーフクロック制御の動作説明図である。FIG. 11 is an explanatory diagram of half clock control operation.
【図12】2相クロック発生回路の動作説明図である。FIG. 12 is an explanatory diagram of the operation of the two-phase clock generation circuit.
【図13】従来の問題点の説明図である。FIG. 13 is an explanatory diagram of conventional problems.
1a アップダウンカウンタ回路 1b バッファ 1c データ比較回路 2 カウンタ回路 3 トグルフリップフロップ回路 1a Up/down counter circuit 1b Buffer 1c Data comparison circuit 2 Counter circuit 3 Toggle flip-flop circuit
Claims (1)
データおよび ”L” 区間設定データをそれぞれ独立
に変化させるパルス幅制御手段から与えられる上記両区
間設定データがセットされ、上記区間設定データをアッ
プカウントあるいはダウンカウントするアップダウンカ
ウンタ回路と、上記パルス幅制御手段によりアップダウ
ンカウンタ回路の最終データが設定され、上記アップダ
ウンカウンタ回路から出力されるカウントデータが最終
データと一致するまでカウントを行わせるデータ比較回
路と、上記アップダウンカウンタ回路のカウントデータ
をラッチするバッファと、このバッファのラッチデータ
が両区間設定データ毎に交互にセットされ一定周期のク
ロック信号でカウントするプリセッタブルなカウンタ回
路と、このカウンタ回路のリップルキャリー信号をトリ
ガクロックとしてパルス幅変調された出力パルス信号を
作成するトグルフリップフロップ回路とを備えて成るこ
とを特徴とするパルス発生装置。[Claim 1] Both section setting data given from a pulse width control means that independently changes the "H" section setting data and "L" section setting data of the output pulse signal are set, and the section setting data is updated. The final data of the up-down counter circuit is set by an up-down counter circuit that counts or down-counts, and the pulse width control means, and counting is performed until the count data output from the up-down counter circuit matches the final data. a data comparison circuit, a buffer that latches the count data of the up/down counter circuit, and a presettable counter circuit that sets the latch data of this buffer alternately for each interval setting data and counts with a clock signal of a constant cycle; A pulse generator comprising: a toggle flip-flop circuit that generates a pulse width modulated output pulse signal using the ripple carry signal of the counter circuit as a trigger clock.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3093782A JP2978270B2 (en) | 1991-04-24 | 1991-04-24 | Pulse generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3093782A JP2978270B2 (en) | 1991-04-24 | 1991-04-24 | Pulse generator |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04325876A true JPH04325876A (en) | 1992-11-16 |
| JP2978270B2 JP2978270B2 (en) | 1999-11-15 |
Family
ID=14091988
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3093782A Expired - Fee Related JP2978270B2 (en) | 1991-04-24 | 1991-04-24 | Pulse generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2978270B2 (en) |
-
1991
- 1991-04-24 JP JP3093782A patent/JP2978270B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2978270B2 (en) | 1999-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2000188528A (en) | Pulse generator | |
| KR950004058A (en) | Pulse width modulation circuit | |
| JPH04325876A (en) | Pulse generator | |
| JPH05216558A (en) | Timer circuit | |
| JP2688277B2 (en) | Pulse generator | |
| JP2840138B2 (en) | Pulse generator | |
| JP2998898B2 (en) | Pulse generator | |
| JPH04325874A (en) | Pulse generator | |
| JP2998899B2 (en) | Pulse generator | |
| JPH0346794A (en) | Electric discharge lamp lighting controller | |
| JPH04325877A (en) | Discharge lamp burning device | |
| JP2978271B2 (en) | Pulse generator | |
| JP2955117B2 (en) | Pulse generation circuit | |
| JPH0766868B2 (en) | Discharge lamp lighting control device | |
| JPH05259895A (en) | Frequency divider of odd number frequency division ratio | |
| JP2023141310A (en) | Driver circuit and power conversion system | |
| JP2001156597A (en) | Duty correction circuit | |
| JPH0522094A (en) | Pulse generator | |
| JPH09186563A (en) | Signal generating circuit and method thereof | |
| JP2000236267A (en) | Remote control carrier generation circuit | |
| JPH03217121A (en) | Asynchronous counter device | |
| JPS615617A (en) | Pulse width modulation circuit | |
| JPH0346795A (en) | Electric discharge lamp lighting device | |
| JPH0548429A (en) | Semiconductor integrated circuit | |
| JPH04117020A (en) | Pulse generator |
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: 19990831 |
|
| LAPS | Cancellation because of no payment of annual fees |