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

JPH0654862B2 - Waveform signal generation circuit - Google Patents

Waveform signal generation circuit

Info

Publication number
JPH0654862B2
JPH0654862B2 JP22680889A JP22680889A JPH0654862B2 JP H0654862 B2 JPH0654862 B2 JP H0654862B2 JP 22680889 A JP22680889 A JP 22680889A JP 22680889 A JP22680889 A JP 22680889A JP H0654862 B2 JPH0654862 B2 JP H0654862B2
Authority
JP
Japan
Prior art keywords
counter
signal
duty
value
count
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
JP22680889A
Other languages
Japanese (ja)
Other versions
JPH0389619A (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.)
Iwatsu Electric Co Ltd
Original Assignee
Iwatsu Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Iwatsu Electric Co Ltd filed Critical Iwatsu Electric Co Ltd
Priority to JP22680889A priority Critical patent/JPH0654862B2/en
Publication of JPH0389619A publication Critical patent/JPH0389619A/en
Publication of JPH0654862B2 publication Critical patent/JPH0654862B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)
  • Pulse Circuits (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、アップダウンカウンタを使用した波形信号発
生回路に関するものである。
TECHNICAL FIELD The present invention relates to a waveform signal generation circuit using an up / down counter.

[従来の技術] 従来の波形信号発生回路は、第7図に示すように、クロ
ック信号発生回路1と、アップダウンカウンタ2と、D
/A変換器3との組み合せから成る。この回路によれ
ば、クロック信号の計数に対応したディジタル波形信号
がアップダウンカウンタ2から得られ、D/A変換器3
からはアナログ波形信号が得られる。
[Prior Art] As shown in FIG. 7, a conventional waveform signal generating circuit includes a clock signal generating circuit 1, an up / down counter 2, and a D / D counter.
A / A converter 3 in combination. According to this circuit, the digital waveform signal corresponding to the counting of the clock signal is obtained from the up / down counter 2, and the D / A converter 3
An analog waveform signal is obtained from.

ところで、波形の周期(周波数)を一定に保って、アッ
プカウント動作期間Ta とダウンカウント動作期間Tb
との割合を変えた複数種の波形が要求されることがあ
る。この種の要求に応えるために第8図に示すようにク
ロック信号発生回路1アップダウンカウンタ2との間に
クロック切換回路4を設ける方式が知られている。この
方式のクロック切換回路4は、クロック信号発生回路1
に接続された1/10分周用の10進カウンタ5と、同様に
クロック信号発生回路1に接続された1/4 分周及び1/16
分周用の16進カウンタ6と、これ等の出力を選択する
ためのクロック信号選択回路7とから成る。波形信号の
周期Ta +Tb に対するアップカウント動作期間Ta の
割合をデューティと定義し、デューティ20%の波形信
号を第8図の回路で得る場合には、クロック信号選択回
路7をアップダウンカウンタ2から得られるアップダウ
ン(U/D)信号で制御する。クロック信号選択回路7
は、アップダウンカウンタ2から得られるアップダウン
(U/D)信号に応答して、アップカウント動作中に1/
4 分周出力をアップダウンカウンタ2に与え、ダウンカ
ウント動作中に1/16分周出力をアップダウンカウンタ2
に与える。これにより、アップダウンカウンタ2からデ
ューティ20%の波形信号が得られる。
By the way, with the period (frequency) of the waveform kept constant, the up-count operation period Ta and the down-count operation period Tb
Multiple types of waveforms with different ratios may be required. In order to meet this type of request, there is known a system in which a clock switching circuit 4 is provided between the clock signal generating circuit 1 and the up / down counter 2 as shown in FIG. The clock switching circuit 4 of this system is the clock signal generating circuit 1
And a decimal counter 5 for 1/10 frequency division, which is also connected to 1/4 frequency division and 1/16 frequency division, which are also connected to the clock signal generation circuit 1.
It consists of a hexadecimal counter 6 for frequency division and a clock signal selection circuit 7 for selecting the outputs of these. When the ratio of the up-counting operation period Ta to the cycle Ta + Tb of the waveform signal is defined as duty and the waveform signal with a duty of 20% is obtained by the circuit of FIG. 8, the clock signal selection circuit 7 is obtained from the up / down counter 2. It is controlled by an up / down (U / D) signal. Clock signal selection circuit 7
Responds to the up / down (U / D) signal obtained from the up / down counter 2 by 1 / during the up-count operation.
4 divided output is given to up / down counter 2, and 1/16 divided output is up / down counter 2 during down count operation.
Give to. As a result, a waveform signal with a duty of 20% is obtained from the up / down counter 2.

一方、デューティ50%の波形信号を得る時には、これ
を示す信号を50%動作指示ライン8からクロック信号
選択回路7に与え、10進カウンタ5の出力をアップダ
ウンカウンタ2に送る。この時には、アップカウント動
作期間Ta とダウンカウント動作期間Tb の両方で同一
の1/10分周信号がアップダウンカウンタ2に与えられ
る。
On the other hand, when obtaining a waveform signal with a duty of 50%, a signal indicating this is applied to the clock signal selection circuit 7 from the 50% operation instruction line 8 and the output of the decimal counter 5 is sent to the up / down counter 2. At this time, the same 1/10 frequency division signal is given to the up / down counter 2 in both the up-count operation period Ta and the down-count operation period Tb.

[発明が解決しようとする課題] ところで、第8図の方式では、回路構成が複雑であるに
も拘らず2種類のデューティを得ることができるのみで
あり、多くのデューティを得ることができない。
[Problems to be Solved by the Invention] By the way, in the system of FIG. 8, only two kinds of duties can be obtained, and many duties cannot be obtained, although the circuit configuration is complicated.

そこで、本発明の目的は、デューティは異なるが、周期
(周波数)は同一の複数の波形信号を容易に得ることが
できる波形信号発生回路を提供することにある。
Therefore, it is an object of the present invention to provide a waveform signal generation circuit that can easily obtain a plurality of waveform signals having different cycles but the same cycle (frequency).

[課題を解決するための手段] 上記目的を達成するための本発明は、アップダウンカウ
ンタ入力パルス発生回路と、このアップダウンカウンタ
入力パルス発生回路から発生したパルスを所定数だけア
ップカウントした後に所定数だけダウンカウントして波
形信号を発生するアップダウンカウンタとから成る波形
信号発生回路において、前記アップダウンカウンタ入力
パルス発生回路が、クロックパルス発生回路と、前記ク
ロックパルス発生回路から得られたクロックパルスを計
数するカウンタと、前記アップダウンカウンタから得ら
れる前記波形信号の周期に対するアップカウント動作期
間の割合(デューティ)を示すデューティ指示信号を発
生するデューティ指示信号発生回路と、前記アップダウ
ンカウンタに内蔵されているか又は独立に設けられてい
るものであって、前記アップダウンカウンタのアップカ
ウント動作とダウンカウント動作とを区別するアップダ
ウン信号を発生するアップダウン信号発生手段と、前記
デューティ指示信号と前記アップダウン信号とに基づい
てアドレス指定され、所望の波形信号を得るためのメモ
リ内容を出力するものであり、前記メモリ内容として、
前記アップダウン信号のアップカウント動作を示す信号
と前記デューティ指示信号の複数段階の値とに対応して
複数段階のアップカウント動作用デューティ指示値が書
き込まれており、且つ前記アップダウン信号のダウンカ
ウント動作を示す信号と前記デューティ指示信号の複数
段階の値とに対応して100%のデューティを示す10
0デューティ値から前記アップカウント動作用デューテ
ィ指示値を引いた値から成るダウンカウント動作用デュ
ーティ指示値が書き込まれているメモリと、前記カウン
タの出力値と前記メモリから読み出されたアップカウン
ト動作用及びダウンカウント動作用デューティ指示値と
を比較し、両者が一致した時に前記カウンタをクリアす
る比較器と、前記カウンタのクリアに同期して前記カウ
ンタから得られる特定の値又は前記比較器の一致出力を
前記アップダウンカウンタのカウント入力として与える
アップダウンカウンタの入力手段とから成ることを特徴
とする波形信号発生回路に係わるものである。
[Means for Solving the Problems] The present invention for achieving the above object is directed to an up-down counter input pulse generation circuit and a predetermined number after up-counting a predetermined number of pulses generated from the up-down counter input pulse generation circuit. In a waveform signal generation circuit including an up-down counter that counts down by a number and generates a waveform signal, the up-down counter input pulse generation circuit includes a clock pulse generation circuit and a clock pulse obtained from the clock pulse generation circuit. Incorporated in the up-down counter, a counter for counting the number of pulses, a duty-instruction-signal generating circuit for generating a duty-instruction signal indicating a ratio (duty) of an up-counting operation period to the cycle of the waveform signal obtained from the up-down counter. Or independently An up-down signal generating means for generating an up-down signal for distinguishing between an up-counting operation and a down-counting operation of the up-down counter, based on the duty instruction signal and the up-down signal The memory contents are output to obtain a desired waveform signal, and the memory contents are:
Duty instruction values for up-count operation of a plurality of stages are written corresponding to a signal indicating an up-count operation of the up-down signal and a value of the duty instruction signal in a plurality of steps, and the down-count of the up-down signal is performed. 10 indicating 100% duty corresponding to the signal indicating the operation and the values of the plurality of levels of the duty instruction signal
A memory in which a duty-instruction value for down-count operation, which is a value obtained by subtracting the duty-instruction value for up-count operation from 0 duty value, is written, and an output value of the counter and for up-count operation read from the memory. And a duty count value for down-count operation, and a comparator that clears the counter when both match, and a specific value obtained from the counter in synchronization with the clearing of the counter or the coincidence output of the comparator And an input means of the up / down counter for giving as the count input of the up / down counter.

[作 用] 上記発明によれば、カウンタのクリア時点を変えること
によってアップダウンカウンタの入力パルスの周期を変
えることができる。メモリには、あるデューティ指示信
号に対応して2種類の値(データ)が書き込まれてい
る。即ち、あるデューティ指示信号とアップカウント動
作を示す信号とに対応して目標とするデューティを示す
値(アップ用データ)が書き込まれ、またあるデューテ
ィ指示信号とダウンカウント動作を示す信号とに対応し
てデューティ100%から目標デューティ値を引いた値
を示す値(ダウン用データ)が書き込まれている。メモ
リはアップカウント動作期間にアップ用データを出力
し、ダウン動作期間にダウン用データを出力す。比較器
はカウンタの出力とメモリ出力とを比較し、両信号が一
致した時に一致出力を発生する。アップ用データとダウ
ン用データとの値が異なる時には、比較器から得られる
一致出力パルスの周期も異なる。アップ用データとダウ
ン用データとの和が常に一定になるので、デューティ指
示信号を変えてもアップダウンカウンタから得られる波
形信号の周期は変化しない。
[Operation] According to the above invention, the cycle of the input pulse of the up / down counter can be changed by changing the clearing point of the counter. Two kinds of values (data) are written in the memory in correspondence with a certain duty instruction signal. That is, a value (up data) indicating a target duty is written corresponding to a certain duty instruction signal and a signal indicating the up-count operation, and also corresponds to a certain duty instruction signal and a signal indicating the down-count operation. Then, a value (down data) indicating a value obtained by subtracting the target duty value from 100% duty is written. The memory outputs the up data during the up count operation period and outputs the down data during the down operation period. The comparator compares the output of the counter with the memory output and produces a coincidence output when both signals coincide. When the values of the up data and the down data are different, the cycle of the coincidence output pulse obtained from the comparator is also different. Since the sum of the up data and the down data is always constant, the cycle of the waveform signal obtained from the up / down counter does not change even if the duty instruction signal is changed.

[実施例] 次に、第1図〜第6図を参照して本発明の一実施例に係
わる波形信号発生回路を説明する。
[Embodiment] Next, a waveform signal generating circuit according to an embodiment of the present invention will be described with reference to FIGS.

この波形信号発生回路は、第1図に示すように、アップ
ダウンカウンタ入力パルス発生回路11と、アップダウ
ンカウンタ12と、D/A変換器13とから成る。アッ
プダウンカウンタ12は、Nカウント(この実施例では
500カウント)までアップカウントした後に、Nカウ
ント(500カウント)までダウンカウントすることを
繰返すものである。また、アップダウンカウンタ12
は、アップカウント動作期間Ta とダウンカウント動作
期間Tb とを示すアップダウン(U/D)信号発生回路
を内蔵し、ライン14にこれを出力する。
As shown in FIG. 1, this waveform signal generating circuit includes an up / down counter input pulse generating circuit 11, an up / down counter 12, and a D / A converter 13. The up-down counter 12 repeats counting up to N counts (500 counts in this embodiment) and then down-counting to N counts (500 counts). Also, the up / down counter 12
Incorporates an up-down (U / D) signal generation circuit showing the up-counting operation period Ta and the down-counting operation period Tb, and outputs it to the line 14.

アップダウンカウンタ入力パルス発生回路11は、クロ
ックパルス発生回路15と、カウンタ16と、デューテ
ィ指示信号発生回路17と、ROM(リード・オンリー
・メモリ)18と、ディジタル比較器19と、アップダ
ウンカウンタ12の入力手段としてのゲート回路20と
から成る。クロックパルス発生回路15は、第3図、第
4図及び第5図の(A)に示す一定周期Tのクロックパ
ルスを発生する。カウンタ16の入力端子aはクロック
パルス発生回路15に接続されているので、カウンタ1
6は第3図〜第5図(A)のクロックパルスを計数して
出力端子bに第3図〜第5図(B)(C)(D)に示す
出力を発生する。デューティ指示信号発生回路17は、
A0 〜A3 から成る4ビットの信号を第2図のA3 、A
2 、A1 、A0 の欄に示すように発生する。このデュー
ティ指示信号A0 〜A3 は、第2図でA4 で示すアップ
ダウン信号と共にROM18のアドレス信号となる。
The up / down counter input pulse generation circuit 11 includes a clock pulse generation circuit 15, a counter 16, a duty instruction signal generation circuit 17, a ROM (read only memory) 18, a digital comparator 19, and an up / down counter 12. And a gate circuit 20 as an input means. The clock pulse generation circuit 15 generates a clock pulse having a constant period T shown in FIGS. 3, 4, and 5 (A). Since the input terminal a of the counter 16 is connected to the clock pulse generation circuit 15, the counter 1
Reference numeral 6 counts the clock pulses shown in FIGS. 3 to 5 (A) to generate the outputs shown in FIGS. 3 to 5 (B) (C) (D) at the output terminal b. The duty instruction signal generation circuit 17
A 4-bit signal consisting of A0 to A3 is converted to A3, A in FIG.
2, as shown in columns A1, A0. The duty instruction signals A0 to A3 serve as the address signal of the ROM 18 together with the up / down signal indicated by A4 in FIG.

デューティ指示信号発生回路17とアップダウン信号ラ
イン14とが接続されている。ROMは、アドレス信号
に対応した多数のアドレスを有し、各アドレスに第2図
のメモリ内容の欄に示されている内容に対応した値(デ
ータ)が書き込まれている。なお、第2図のデューティ
の欄には、デューティ指示信号(A0 〜A3 )で指示し
たデューティがパーセントで示されている。また、第2
図の中の×印は使用しないためにその内容が不明である
ことを示す。
The duty instruction signal generation circuit 17 and the up / down signal line 14 are connected. The ROM has a large number of addresses corresponding to the address signals, and values (data) corresponding to the contents shown in the memory contents column of FIG. 2 are written in each address. In the duty column of FIG. 2, the duty indicated by the duty instruction signal (A0 to A3) is shown in percentage. Also, the second
The X mark in the figure indicates that the content is unknown because it is not used.

ところで、第2図のアドレス信号A0 〜A4 とメモリ内
容との関係から明らかになるように、アップカウント動
作期間Ta であるためにビットA4 が0の時には、デュ
ーティ指示信号A0 〜A3 が増大するに従って、メモリ
内容も1から9の間で増大している。一方、ダウンカウ
ント動作期間Tb のためにビットA4 が1の時には、デ
ューティ指示信号A0 〜A3 が増大するに従って、メモ
リ内容が9から1の間で減少している。アップカウント
動作期間中のあるデューティ指示信号に対応するメモリ
内容と、ダウンカウント動作期間中のあるデューティ指
示信号に対応するメモリ内容との加算値は常に10であ
る。従って、アップカウント動作期間中のあるデューテ
ィ指示信号に対応するメモリ内容は、アップ用デューテ
ィデータであり、ダウンカウント動作期間中のあるデュ
ーティ指示信号に対応するメモリ内容は、100%デュ
ーティ値からアップ用デューティ値を引いた値に相当す
るダウン用デューティデータである。
By the way, as is clear from the relationship between the address signals A0 to A4 and the memory contents in FIG. 2, when the bit A4 is 0 due to the up-counting operation period Ta, as the duty instruction signals A0 to A3 increase. , The memory content is also increasing between 1 and 9. On the other hand, when the bit A4 is 1 due to the down-count operation period Tb, the memory content decreases between 9 and 1 as the duty instruction signals A0 to A3 increase. The sum of the memory content corresponding to a certain duty instruction signal during the up-counting operation period and the memory content corresponding to a duty instruction signal during the down-counting operation period is always 10. Therefore, the memory content corresponding to a certain duty instruction signal during the up-count operation period is up duty data, and the memory content corresponding to a certain duty instruction signal during the down-count operation period is for up-shifting from a 100% duty value. It is down duty data corresponding to a value obtained by subtracting the duty value.

比較器19の一方の入力端子dはROM18の出力端子
に接続され、他方の入力端子eはカウンタ16の出力端
子bに接続され、比較出力端子fはカウンタ16のクリ
ア端子cに接続されている。
One input terminal d of the comparator 19 is connected to the output terminal of the ROM 18, the other input terminal e is connected to the output terminal b of the counter 16, and the comparison output terminal f is connected to the clear terminal c of the counter 16. .

ゲート回路20の一方の入力端子はカウンタ16の出力
端子bに接続され、他方の入力端子はクロックパルス発
生回路15に接続され、出力端子はアップダウンカウン
タ12のカウント入力端子に接続されている。
One input terminal of the gate circuit 20 is connected to the output terminal b of the counter 16, the other input terminal is connected to the clock pulse generation circuit 15, and the output terminal is connected to the count input terminal of the up / down counter 12.

[動 作] デューティ指示信号発生回路17からデューティ指示信
号[A3 、A2 、A1 、A0 ]として[0101]をR
OM18に与え、且つROM18にアップダウン信号A
4 としてアップカウント動作を指示する0が入力してい
るとすれば、第2図の[00101]に対応するアドレ
スに書き込まれているメモリ内容5が読み出される。こ
のメモリ内容5は勿論ディジタル値で出力され、比較器
19に入力する。カウンタ16は第3図(A)に示すク
ロックパルスを計数し、第3図(B)(C)(D)に示
す出力を発生している。第3図のt1 時点でカウンタ1
6の出力が10進数の5に対応した値になると、ROM
18の出力とが一致するために、第3図(E)に示す一
致出力が比較器19から発生し、カウンタ16がクリア
され、カウンタ16の出力は零に戻り、再び計数を開始
する。ゲート回路20はORゲートであるので、すべて
の入力が低レベルの時のみ低レベル出力を発生する。即
ち、カウンタ16の出力が零の期間中において、第3図
(A)のクロックパルスが低レベルになると、第3図
(F)のt2 〜t3 期間に示すように低レベルの出力パ
ルスがゲート回路20から得られる。これにより、第3
図(A)のクロックパルを1/5 に分周した第3図(F)
の低周波数クロックパルスがアップダウンカウンタ12
に与えられる。アップダウンカウンタ12は500カウ
ントのアップカウント動作の後に500カウントのダウ
ンカウント動作を行うことを繰返すように構成されてい
るので、第3図(F)に示す低周波数クロックで500
カウントまでアップ動作し、第6図(A)のアップカウ
ント動作期間Ta に示す波形信号が得られる。アップダ
ウンカウンタ12が500カウントした後にダウンカウ
ント動作に転換すると、ライン14にダウンを示す1が
得られ、ROM18のアドレス指定は[10101]に
変化し、第2図から明らかなようにメモリ内容5が読み
出される。このメモリ内容(ダウン用デューティデー
タ)は今迄のアップ用デューティデータと同一値である
ので、1/5 に分周された低い周波数のクロックパルスで
アップダウンカウンタ12が駆動され、第6図(A)の
ダウンカウント期間Tb に示す波形信号を発生する。第
3図(A)に示すクロックパルスの周期をTとすれば、
第6図(A)のアップカウント期間Ta は5T×500
であり、ダウンカウント期間Tb も同様に5T×500
であり、一周期は5000Tとなる。
[Operation] [0101] is converted to R from the duty instruction signal generation circuit 17 as the duty instruction signals [A3, A2, A1, A0].
It is given to OM18 and up / down signal A is sent to ROM18.
Assuming that 0 is inputted as 4 to instruct the up-counting operation, the memory content 5 written in the address corresponding to [00101] in FIG. 2 is read out. This memory content 5 is of course output as a digital value and input to the comparator 19. The counter 16 counts the clock pulses shown in FIG. 3 (A) and generates the outputs shown in FIGS. 3 (B) (C) (D). Counter 1 at time t1 in FIG.
When the output of 6 becomes the value corresponding to the decimal number 5, ROM
Since the output of 18 coincides with the output of the comparator 18, the coincidence output shown in FIG. 3 (E) is generated from the comparator 19, the counter 16 is cleared, the output of the counter 16 returns to zero, and counting is started again. Since gate circuit 20 is an OR gate, it produces a low level output only when all inputs are low. That is, when the clock pulse in FIG. 3 (A) becomes low level while the output of the counter 16 is zero, the low level output pulse is gated as shown in the period t2 to t3 in FIG. 3 (F). Obtained from circuit 20. This makes the third
The clock pal in Fig. (A) is divided into 1/5, and Fig. 3 (F)
Low frequency clock pulse of up-down counter 12
Given to. Since the up-down counter 12 is configured to repeat the up-count operation of 500 counts and then the down-count operation of 500 counts, the up-down counter 12 operates at a low frequency clock of 500 counts as shown in FIG. 3 (F).
Up operation is performed up to the count, and the waveform signal shown in the up count operation period Ta of FIG. 6 (A) is obtained. When the up-down counter 12 counts 500 and then shifts to the down-count operation, a 1 indicating down is obtained on the line 14, the addressing of the ROM 18 is changed to [10101], and the memory contents 5 as shown in FIG. Is read. Since this memory content (down duty data) has the same value as the up duty data up to now, the up / down counter 12 is driven by a clock pulse of a low frequency divided by 1/5, and FIG. A waveform signal shown in the down count period Tb of A) is generated. If the period of the clock pulse shown in FIG.
The up-count period Ta in FIG. 6A is 5T × 500.
And the down count period Tb is also 5T × 500.
And one cycle is 5000T.

デューティ指示信号[A3 A2 A1 A0 ]がデューティ
30%を指示する[0011]に設定され、且つアップ
ダウン信号がアップを示す0の時には、ROM18から
メモリ内容3が出力され、第4図に示すようにカウンタ
16が3カウントしたt1 時点で比較器19から第4図
(E)に示すように一致出力が発生し、t2 〜t3 で第
4図(F)に示すように1/3 に分周されたクロックパル
スがゲート回路20から得られ、アップダウンカウンタ
12にはこのクロックパルスで駆動され、アップカウン
ト動作期間Ta に第6図(B)に示す波形信号を出力す
る。アップダウン信号がダウンカウントを示す1になる
と、[A4 A3 A2 A1 A0 ]=[10011]のアド
レスからメモリ内容7が読み出され、カウンタ16が7
カウントした時に比較器19から第5図(E)のt1 時
点に示す一致出力が発生し、カウンタ16がクリアさ
れ、第5図(F)のt2 〜t3 期間に1/7 分周パルスが
発生し、アップダウンカウンタ12の入力となり、第6
図(B)のダウンカウント動作期間Tb に示す波形信号
が得られる。第6図(B)のアップカウント動作期間T
a は3T×500であり、ダウンカウント動作期間は7
T×500であり、合計時間(一周期)は第6図(A)
と同一の5000Tである。
When the duty instruction signal [A3 A2 A1 A0] is set to [0011] for instructing the duty of 30% and the up / down signal is 0 indicating up, the memory content 3 is output from the ROM 18, and as shown in FIG. At time t1 when the counter 16 counts three times, a coincidence output is generated from the comparator 19 as shown in FIG. 4 (E), and is divided into 1/3 at t2 to t3 as shown in FIG. 4 (F). The generated clock pulse is obtained from the gate circuit 20, and the up / down counter 12 is driven by this clock pulse to output the waveform signal shown in FIG. 6 (B) during the up-counting operation period Ta. When the up / down signal becomes 1 indicating down count, the memory content 7 is read from the address [A4 A3 A2 A1 A0] = [10011], and the counter 16 reads 7
At the time of counting, the comparator 19 produces the coincidence output shown at time t1 in FIG. 5 (E), the counter 16 is cleared, and the 1/7 frequency division pulse is generated in the period from t2 to t3 in FIG. 5 (F). Then, it becomes the input of the up / down counter 12, and the sixth
The waveform signal shown in the down count operation period Tb of FIG. The up-count operation period T of FIG. 6 (B)
a is 3T × 500, and the down count operation period is 7
T × 500, and the total time (one cycle) is FIG. 6 (A)
It is the same as 5000T.

第2図で10%間隔で設定された種々のデューティが選
択されても、アップダウンカウンタ12及びD/A変換
器13から得られる波形信号の周期は変化しない。
The cycle of the waveform signal obtained from the up / down counter 12 and the D / A converter 13 does not change even if various duties set at 10% intervals in FIG. 2 are selected.

[変形例] 本発明は上述の実施例に限定されるものでなく、例えば
次の変形が可能なものである。
[Modification] The present invention is not limited to the above-described embodiments, and the following modifications are possible, for example.

(1) ROM18のメモリ内容をアップカウント動作
時に対応させて1〜99、ダウンカウント動作時に対応
させて99〜1のように1%間隔又は種々の間隔に設定
することもできる。
(1) The memory contents of the ROM 18 can be set to 1% intervals or various intervals such as 1 to 99 corresponding to the up-counting operation and 99 to 1 corresponding to the down-counting operation.

(2) 比較器19から得られる第3図〜第5図(E)
に示す一致出力パルス、又はこのパルス幅拡大及び/又
は遅延パルスをアップダウンカウンタ12の入力として
もよい。
(2) FIG. 3 to FIG. 5 (E) obtained from the comparator 19.
The coincidence output pulse shown in, or the pulse width expansion and / or delay pulse thereof may be input to the up / down counter 12.

(3) この実施例ではアップダウン信号がアップダウ
ンカウンタ12から得られるが、アップダウンカウンタ
12に関係付けて独立のアップダウン信号発生回路を設
けてもよい。
(3) In this embodiment, the up / down signal is obtained from the up / down counter 12, but an independent up / down signal generating circuit may be provided in association with the up / down counter 12.

(4) 波形信号の周期を変えるために、クロックパル
ス発生回路15の出力クロックパルスの周期を変えるこ
とができるようにしてもよい。
(4) In order to change the cycle of the waveform signal, the cycle of the output clock pulse of the clock pulse generation circuit 15 may be changed.

[発明の効果] 以上説明したように、本発明によればデューティの値を
容易に変えることができ、且つデューティの値の変化に
拘らず波形信号の周期を一定に保つことができる。
EFFECTS OF THE INVENTION As described above, according to the present invention, the duty value can be easily changed, and the cycle of the waveform signal can be kept constant regardless of the change of the duty value.

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

第1図は本発明の一実施例の波形信号発生回路を示すブ
ロック図、 第2図は第1図のROMのアドレス入力と指示デューテ
ィ値とメモリ内容との関係を示す図、 第3図はデューティを50%とした場合の第1図のA〜
F点の状態を示す電圧波形図、 第4図はデューティ30%の時のアップカウント動作期
間の第1図のA〜F点の状態を示す波形図、 第5図はデューティ30%の時のダウンカウント動作期
間の第1図のA〜F点の状態を示す電圧波形図、 第6図(A)はデューティ50%の時の波形信号を説明
的に示す図、第6図(B)はデューティ30%の波形信
号を説明的に示す図、 第7図は従来の波形信号発生回路を示すブロック図、 第8図は従来の別の波形信号発生回路を示すブロック図
である。 11……アップダウンカウンタ入力パルス発生回路、1
2……アップダウンカウンタ、13……D/A変換器、
15……クロックパルス発生回路、16……カウンタ、
17……デューティ指示信号発生回路、18……RO
M、19……比較器、20……ゲート回路。
FIG. 1 is a block diagram showing a waveform signal generating circuit according to an embodiment of the present invention, FIG. 2 is a diagram showing a relationship between an address input of a ROM shown in FIG. 1, a designated duty value and a memory content, and FIG. A of FIG. 1 when the duty is 50%
FIG. 4 is a waveform diagram showing the state of point F, FIG. 4 is a waveform diagram showing the state of points A to F in FIG. 1 during the up-counting operation period when the duty is 30%, and FIG. FIG. 6 (B) is a voltage waveform diagram showing the states of points A to F in FIG. 1 during the down-counting operation period, FIG. 6 (A) is a diagram showing waveform signals at a duty of 50%, and FIG. 6 (B) is FIG. 7 is an explanatory diagram showing a waveform signal having a duty of 30%, FIG. 7 is a block diagram showing a conventional waveform signal generating circuit, and FIG. 8 is a block diagram showing another conventional waveform signal generating circuit. 11 ... Up-down counter input pulse generation circuit, 1
2 ... Up-down counter, 13 ... D / A converter,
15 ... Clock pulse generation circuit, 16 ... Counter,
17 ... Duty instruction signal generating circuit, 18 ... RO
M, 19 ... Comparator, 20 ... Gate circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】アップダウンカウンタ入力パルス発生回路
と、このアップダウンカウンタ入力パルス発生回路から
発生したパルスを所定数だけアップカウントした後に所
定数だけダウンカウントして波形信号を発生するアップ
ダウンカウンタとから成る波形信号発生回路において、
前記アップダウンカウンタ入力パルス発生回路が、 クロックパルス発生回路と、 前記クロックパルス発生回路から得られたクロックパル
スを計数するカウンタと、 前記アップダウンカウンタから得られる前記波形信号の
周期に対するアップカウント動作期間の割合(デューテ
ィ)を示すデューティ指示信号を発生するデューティ指
示信号発生回路と、 前記アップダウンカウンタに内蔵されているか又は独立
に設けられているものであって、前記アップダウンカウ
ンタのアップカウント動作とダウンカウント動作とを区
別するアップダウン信号を発生するアップダウン信号発
生手段と、 前記デューティ指示信号と前記アップダウン信号とに基
づいてアドレス指定され、所望の波形信号を得るための
メモリ内容を出力するものであり、前記メモリ内容とし
て、前記アップダウン信号のアップカウント動作を示す
信号と前記デューティ指示信号の複数段階の値とに対応
して複数段階のアップカウント動作用デューティ指示値
が書き込まれており、且つ前記アップダウン信号のダウ
ンカウント動作を示す信号と前記デューティ指示信号の
複数段階の値とに対応して100%のデューティを示す
100%デューティ値から前記アップカウント動作用デ
ューティ指示値を引いた値から成るダウンカウント動作
用デューティ指示値が書き込まれているメモリと、 前記カウンタの出力値と前記メモリから読み出されたア
ップカウント動作用及びダウンカウント動作用デューテ
ィ指示値とを比較し、両者が一致した時に前記カウンタ
をクリアする比較器と、 前記カウンタのクリアに同期して前記カウンタから得ら
れる特定の値又は前記比較器の一致出力を前記アップダ
ウンカウンタのカウント入力として与えるアップダウン
カウンタ入力手段と から成ることを特徴とする波形信号発生回路。
1. An up-down counter input pulse generating circuit, and an up-down counter which up-counts a predetermined number of pulses generated from the up-down counter input-pulse generating circuit and then down-counts by a predetermined number to generate a waveform signal. In the waveform signal generating circuit consisting of
The up-down counter input pulse generation circuit includes a clock pulse generation circuit, a counter that counts clock pulses obtained from the clock pulse generation circuit, and an up-count operation period for the cycle of the waveform signal obtained from the up-down counter. A duty instruction signal generating circuit for generating a duty instruction signal indicating the ratio (duty) of the duty cycle, and an up-counting operation of the up-down counter, which is built in the up-down counter or provided independently. Up-down signal generating means for generating an up-down signal for distinguishing from a down-count operation, and addressing based on the duty instruction signal and the up-down signal, and outputting memory contents for obtaining a desired waveform signal The above-mentioned As contents, the duty instruction value for up-count operation of a plurality of stages is written corresponding to the signal indicating the up-count operation of the up-down signal and the value of a plurality of steps of the duty instruction signal, and the up-down operation is performed. A down count consisting of a value obtained by subtracting the duty instruction value for up-count operation from a 100% duty value showing a duty of 100% corresponding to a signal indicating a down count operation of a signal and a value of a plurality of stages of the duty instruction signal. A memory in which an operation duty instruction value is written is compared with the output value of the counter and the up-counting operation and down-counting operation duty instruction values read from the memory, and when the two coincide, the counter And a comparator that clears the counter and the counter synchronized with the clearing of the counter. Waveform signal generating circuit, characterized by comprising a specific value or a coincidence output of the comparator resulting from pointer from the up-down counter input means for providing a count input of the up-down counter.
JP22680889A 1989-08-31 1989-08-31 Waveform signal generation circuit Expired - Fee Related JPH0654862B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22680889A JPH0654862B2 (en) 1989-08-31 1989-08-31 Waveform signal generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22680889A JPH0654862B2 (en) 1989-08-31 1989-08-31 Waveform signal generation circuit

Publications (2)

Publication Number Publication Date
JPH0389619A JPH0389619A (en) 1991-04-15
JPH0654862B2 true JPH0654862B2 (en) 1994-07-20

Family

ID=16850931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22680889A Expired - Fee Related JPH0654862B2 (en) 1989-08-31 1989-08-31 Waveform signal generation circuit

Country Status (1)

Country Link
JP (1) JPH0654862B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4693000B2 (en) * 2006-07-03 2011-06-01 株式会社オリンピア Amusement media receiving box and gaming machine

Also Published As

Publication number Publication date
JPH0389619A (en) 1991-04-15

Similar Documents

Publication Publication Date Title
JPH0654862B2 (en) Waveform signal generation circuit
US4537108A (en) Electronic musical instrument having variable frequency dividers
US4400692A (en) Method for periodic digital to analog conversion
US4758738A (en) Timing signal generating apparatus
RU2074512C1 (en) Pulse sequence generator
SU1136296A1 (en) Device for controlling step motor
JPS5934939Y2 (en) Memory addressing circuit
JPH08330914A (en) Waveform generator
SU1133646A1 (en) Digital sine oscillator
JPS602630B2 (en) Casa display device
JPH0625064Y2 (en) Multi-valued logic driver
JP2501815Y2 (en) Video signal generator
JPS63171196A (en) Device for driving five-phase stepping motor
JP2710853B2 (en) Pulse generator
SU1039030A1 (en) Pulse ditributor
SU1068834A1 (en) Digital frequency meter
JP2660693B2 (en) Tone parameter setting device for electronic musical instruments
JPH0519330B2 (en)
SU1119175A1 (en) Frequency divider
SU657435A1 (en) K-digit pulse-phase adder
SU1569962A2 (en) Univibrator
SU684561A1 (en) Functional voltage generator
KR940000223B1 (en) High Precision Pulse Width Modulation Circuit
SU949821A1 (en) Rate scaler with variable countdown ratio
SU1113844A1 (en) Device for selecting information from frequency-modulated signal

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees