JP2831008B2 - Sine wave signal generator - Google Patents

Sine wave signal generator

Info

Publication number
JP2831008B2
JP2831008B2 JP30437688A JP30437688A JP2831008B2 JP 2831008 B2 JP2831008 B2 JP 2831008B2 JP 30437688 A JP30437688 A JP 30437688A JP 30437688 A JP30437688 A JP 30437688A JP 2831008 B2 JP2831008 B2 JP 2831008B2
Authority
JP
Japan
Prior art keywords
latch
output
adder
switch
storing
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
JP30437688A
Other languages
Japanese (ja)
Other versions
JPH02149107A (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.)
ADOBANTESUTO KK
Original Assignee
ADOBANTESUTO KK
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 ADOBANTESUTO KK filed Critical ADOBANTESUTO KK
Priority to JP30437688A priority Critical patent/JP2831008B2/en
Publication of JPH02149107A publication Critical patent/JPH02149107A/en
Application granted granted Critical
Publication of JP2831008B2 publication Critical patent/JP2831008B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明はサイン波形とスエプト(SWEPT)サイン
(周波数掃引正弦波)波形とを切替え発生することがで
きる正弦波信号発生器に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sine wave signal generator capable of switching and generating a sine waveform and a sweep (SWEPT) sine (frequency swept sine wave) waveform.

「従来の技術」 従来のこの種の正弦波信号発生器は第4図に示すよう
にCPUからRAM11にスエプトサイン波形が書込まれ、これ
がサンプルクロックで読出されてデジタルのスエプトサ
イン波形が発生され、これがDA変換器12でアナログ信号
に変換される。一方サイン波形を発生するためにフェー
ズアキュムレータ13においてサンプルクロックごとに一
定数が累積加算され、そのフェーズアキュムレータ13の
出力がアドレスとしてサイン波形メモリ14が読出され、
その出力がDA変換器12へ供給される。
[Prior Art] In this type of conventional sine wave signal generator, a swept sine waveform is written from a CPU to a RAM 11 as shown in FIG. 4 and read out by a sample clock to generate a digital swept sine waveform. The signal is converted by the DA converter 12 into an analog signal. On the other hand, to generate a sine waveform, a constant number is cumulatively added for each sample clock in the phase accumulator 13, and the output of the phase accumulator 13 is read out from the sine waveform memory 14 as an address,
The output is supplied to the DA converter 12.

このように従来においてはスエプトサイン波形を発生
させるためにCPUはスタート周波数とストップ周波数と
から1フレーム長のスエプト関数を計算し、1ポイント
毎にRAM11に書込まなければならなかった。そのためCPU
の負担が重く、他の処理ができないという欠点があっ
た。
As described above, conventionally, in order to generate a swept sine waveform, the CPU has to calculate a one-frame length sweep function from the start frequency and the stop frequency, and write it to the RAM 11 for each point. Therefore CPU
Is heavy, and other processing cannot be performed.

「課題を解決するための手段」 この発明によればスエプトサインのスタート周波数と
対応する値が第1ラッチに格納され、スエプトサインの
掃引速度を対応する値が第2ラッチに格納され、第2ラ
ッチの出力と第3ラッチの出力とが第1加算器で加算さ
れ、第1ラッチの出力と第1加算器の出力とがスイッチ
で切替えられて第3ラッチに格納され、第3ラッチの出
力と第4ラッチの出力とが第2加算器で加算されて第4
ラッチに格納され、プリセット可能なカウンタの出力に
制御回路が制御され、制御回路はスイッチの切替え、第
3ラッチへの格納、第4ラッチのクリアを行う。
[Means for Solving the Problems] According to the present invention, the value corresponding to the start frequency of the sweep sign is stored in the first latch, the value corresponding to the sweep speed of the sweep sign is stored in the second latch, and the value of the second latch is stored. The output and the output of the third latch are added by the first adder, the output of the first latch and the output of the first adder are switched by a switch and stored in the third latch, and the output of the third latch and the output of the third latch are added. The output of the fourth latch is added by the second adder to obtain the fourth
The control circuit is controlled by the output of the presettable counter stored in the latch, and the control circuit switches the switch, stores the data in the third latch, and clears the fourth latch.

「実施例」 第1図はこの発明の実施例を示す。第1ラッチ21にス
エプトサインのスタート周波数と対応する値が格納さ
れ、第2ラッチ22にスエプトサインの掃引速度と対応す
る値が格納される。第2ラッチ22の出力と、第3ラッチ
23の出力とが第1加算器24で加算され、第1ラッチ21の
出力と第1加算器24の出力とがスイッチ25で切替えられ
て第3ラッチ23に格納される。第3ラッチ23の出力と第
4ラッチ26の出力とが第2加算器27で加算されて第4ラ
ッチ26に格納される。
FIG. 1 shows an embodiment of the present invention. The first latch 21 stores a value corresponding to the start frequency of the sweep sign, and the second latch 22 stores a value corresponding to the sweep speed of the sweep sign. The output of the second latch 22 and the third latch
The output of the first adder 24 is added to the output of the first adder 24, and the output of the first latch 21 and the output of the first adder 24 are switched by the switch 25 and stored in the third latch 23. The output of the third latch 23 and the output of the fourth latch 26 are added by the second adder 27 and stored in the fourth latch 26.

第5ラッチ28の出力がカウンタ29にプリセットされ、
カウンタ29の桁上げ出力が制御回路31へ供給され、制御
回路31はスイッチ25の切替え制御、第3ラッチ23に対す
るラッチ制御、第4ラッチ26のクリア制御、カウンタ29
に対する再ロードを行う。第4ラッチ26の出力をアドレ
スとして正弦波メモリ32が読出される。
The output of the fifth latch 28 is preset in the counter 29,
The carry output of the counter 29 is supplied to the control circuit 31, which controls the switching of the switch 25, the latch control for the third latch 23, the clear control of the fourth latch 26, and the counter 29.
Reload for. The sine wave memory 32 is read using the output of the fourth latch 26 as an address.

サインモードではスイッチ25は第1ラッチ21の出力側
に接続されたままとなり、第1ラッチ21の出力が第3ラ
ッチ23に格納され、第3ラッチ23の出力が第4ラッチ26
と第2加算器27とにより累積加算される。つまり第4ラ
ッチ26と第2加算器27とはフェーズアキュムレータとし
て作用する。
In the sine mode, the switch 25 remains connected to the output side of the first latch 21, the output of the first latch 21 is stored in the third latch 23, and the output of the third latch 23 is stored in the fourth latch 26.
And the second adder 27. That is, the fourth latch 26 and the second adder 27 function as a phase accumulator.

スエプトサインモードではスイッチ25は最初第1ラッ
チ21の出力側に接続された後、第1加算器24の出力側へ
切替えられる。第1、第2、第3、第4ラッチ21,22,2
3,26の各出力をそれぞれθ,Δθ,θ,ψとす
る。ψについて考えると、 (1)、(2)式より この(3)式はスエプトサイン関数を示す。
In the swept sine mode, the switch 25 is first connected to the output of the first latch 21 and then switched to the output of the first adder 24. First, second, third, and fourth latches 21, 22, 2
Let the outputs of 3, 26 be θ 0 , Δθ, θ n , ψ n , respectively. Considering the ψ n, From equations (1) and (2) This equation (3) shows a swept sine function.

第5ラッチ28には、カウンタ29の満杯から1フレーム
タイム相当のクロック数を引いた値が格納される。制御
回路31は第2図に示すように構成される。サイン波形を
発生する場合は制御回路31の設定回路33はサインモード
に設定され、フリップフロップ34のデータ入力は常に
“0"となる。このためフリップフロップ34のQ出力は常
に“0"となりスイッチ25は第1ラッチ21の出力のみを通
過させる。サインモードの時にカウンタ29から桁上げ出
力信号が来てもゲート35により断とされ、スイッチ25、
第3ラッチ23、第4ラッチ26に影響を及ぼすことはな
い。
The fifth latch 28 stores a value obtained by subtracting the number of clocks corresponding to one frame time from the fullness of the counter 29. The control circuit 31 is configured as shown in FIG. When a sine waveform is generated, the setting circuit 33 of the control circuit 31 is set to the sine mode, and the data input of the flip-flop 34 is always "0". Therefore, the Q output of the flip-flop 34 is always "0", and the switch 25 passes only the output of the first latch 21. In the sine mode, even if a carry output signal comes from the counter 29, it is cut off by the gate 35, and the switch 25,
The third latch 23 and the fourth latch 26 are not affected.

スエプトサイン波発生の場合は発生器内のすべてのラ
ッチ、フリップフロップはクリアされる。スエプト周波
数の値及びカウンタの値がCPUから第1ラッチ21、第2
ラッチ22、第5ラッチ28にセットされる。設定回路33と
スエプトモードに設定する。この時フリップフロップ34
のデータ入力は“1"となるが、サンプルクロックがスタ
ートしていないためフリップフロップ34のQ出力はクリ
ア状態“0"を保つ。このためスイッチ25は第1ラッチ21
側にあり、第1ラッチ21の出力が第3ラッチ23へ供給さ
れる。スタート信号が来るとサンプルクロックが発生す
る。サンプルクロックの最初のクロックで第3ラッチ23
は第1ラッチ21のデータをラッチする。これと同時にフ
リップフロップ34はスエプトモードにセットされ、Q出
力は“1"となる。これによりスイッチ25は第1加算器24
側へ切替えられる。従ってサンプルクロックの2番目の
クロック以降は第1加算器24の出力が第3ラッチ23に格
納される。
When a swept sine wave is generated, all latches and flip-flops in the generator are cleared. The value of the sweep frequency and the value of the counter are transmitted from the CPU to the first latch 21 and the second latch 21.
The latch 22 and the fifth latch 28 are set. The setting circuit 33 and the sweep mode are set. At this time, flip-flop 34
Becomes "1", but since the sample clock has not started, the Q output of the flip-flop 34 keeps the clear state "0". Therefore, the switch 25 is connected to the first latch 21
The output of the first latch 21 is supplied to the third latch 23. When the start signal comes, a sample clock is generated. The third latch 23 at the first clock of the sample clock
Latches the data of the first latch 21. At the same time, the flip-flop 34 is set to the sweep mode, and the Q output becomes "1". As a result, the switch 25 is connected to the first adder 24.
Switch to the side. Therefore, the output of the first adder 24 is stored in the third latch 23 after the second clock of the sample clock.

サンプルクロックがカウンタ29のフルカウント状態ま
で計数すると桁上げ信号が発生し、この桁上げ信号は制
御回路31内のゲート35,36を通りフリップフロップ34を
クリアにすると同時にゲート37を介して第4ラッチ26を
クリアする。また桁上げ信号はタイミング回路38で遅延
され、スイッチ25が第1ラッチ21の出力を選び、その出
力が第3ラッチ23に来る時間をみはからってゲート39よ
り第3ラッチをラッチするクロックが発生する。更に桁
上げ信号はタイミング回路41で以上の動作に必要な時間
を保つための遅延がされてカウンタ29のロード信号とし
て戻される。
When the sample clock counts up to the full count state of the counter 29, a carry signal is generated. This carry signal passes through the gates 35 and 36 in the control circuit 31 to clear the flip-flop 34 and at the same time the fourth latch through the gate 37. Clear 26. The carry signal is delayed by the timing circuit 38, and the switch 25 selects the output of the first latch 21. The clock which latches the third latch from the gate 39 in view of the time when the output comes to the third latch 23. Occurs. Further, the carry signal is delayed by the timing circuit 41 to maintain the time required for the above operation, and is returned as a load signal of the counter 29.

第3図に示すように第2ラッチ22の前段に第6ラッチ
42を設け、初期設定後に第1ラッチ21、第6ラッチ42に
次の周波数値を格納しておけば1フレーム毎にスエプト
サインの周波数範囲を変えることが可能となる。
As shown in FIG. 3, the sixth latch is provided before the second latch 22.
If the next frequency value is stored in the first latch 21 and the sixth latch 42 after the initial setting, the frequency range of the swept sine can be changed for each frame.

「発明の効果」 以上述べたようにこの発明によればハードウエア構成
でスエプトサイン波形を発生することができ、CPUでス
エプトサインデータをRAMに書込む必要がない。
[Effects of the Invention] As described above, according to the present invention, a swept sine waveform can be generated by a hardware configuration, and there is no need to write swept sine data in a RAM by a CPU.

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

第1図はこの発明の実施例を示すブロック図、第2図は
第1図中の制御回路31の例を示すブロック図、第3図は
変形例の一部を示すブロック図、第4図は従来の正弦波
信号発生器を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing an example of a control circuit 31 in FIG. 1, FIG. 3 is a block diagram showing a part of a modification, FIG. FIG. 2 is a block diagram showing a conventional sine wave signal generator.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H03B 23/00 H03B 28/00──────────────────────────────────────────────────続 き Continuation of front page (58) Field surveyed (Int.Cl. 6 , DB name) H03B 23/00 H03B 28/00

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】スエプトサインのスタート周波数と対応す
る値が格納される第1ラッチと、 スエプトサインの掃引速度と対応する値が格納される第
2ラッチと、 その第2ラッチと第3ラッチの出力とを加算する第1加
算器と、 上記第1ラッチの出力と上記第1加算器の出力とを切替
えて出力するスイッチと、 そのスイッチの出力が格納される上記第3ラッチと、 第4ラッチと、 その第4ラッチの出力と上記第3ラッチの出力とを加算
して第4ラッチに格納する第2加算器と、 プリセット可能なカウンタと、 そのカウンタの出力により制御され、上記スイッチの切
替え、上記第3ラッチへの格納、上記第4ラッチのクリ
アを行う制御回路と、 上記第4ラッチの出力をアドレスとして読出されるサイ
ン波形が記憶されたメモリとを具備する正弦波信号発生
器。
A first latch for storing a value corresponding to a start frequency of a sweep sign; a second latch for storing a value corresponding to a sweep speed of a sweep sign; outputs of the second and third latches; A first adder for adding an output of the first latch and a switch for switching and outputting between the output of the first latch and the output of the first adder; the third latch storing the output of the switch; A second adder that adds the output of the fourth latch and the output of the third latch and stores the result in the fourth latch; a presettable counter; and a switch controlled by the output of the counter, A control circuit for storing the data in the third latch and clearing the fourth latch; and a memory storing a sine waveform read out using the output of the fourth latch as an address. Wave signal generator.
JP30437688A 1988-11-30 1988-11-30 Sine wave signal generator Expired - Fee Related JP2831008B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30437688A JP2831008B2 (en) 1988-11-30 1988-11-30 Sine wave signal generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30437688A JP2831008B2 (en) 1988-11-30 1988-11-30 Sine wave signal generator

Publications (2)

Publication Number Publication Date
JPH02149107A JPH02149107A (en) 1990-06-07
JP2831008B2 true JP2831008B2 (en) 1998-12-02

Family

ID=17932275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30437688A Expired - Fee Related JP2831008B2 (en) 1988-11-30 1988-11-30 Sine wave signal generator

Country Status (1)

Country Link
JP (1) JP2831008B2 (en)

Also Published As

Publication number Publication date
JPH02149107A (en) 1990-06-07

Similar Documents

Publication Publication Date Title
JP2539600B2 (en) Timing generator
JPH0439690B2 (en)
JPS592038B2 (en) electronic musical instruments
JP2831008B2 (en) Sine wave signal generator
JP3649874B2 (en) Frequency divider circuit
GB2181282A (en) Timing signal generating apparatus
JP2957493B2 (en) PWM pulse generation circuit
JP3435414B2 (en) Clock generation circuit for LCD driver
JP2679471B2 (en) Clock switching circuit
JP3201437B2 (en) Waveform generator trigger synchronization circuit
JPH02241220A (en) Pulse train generator
KR100192977B1 (en) Wave generating circuit
JP2545010B2 (en) Gate device
JP2621205B2 (en) Divider circuit
JP2927096B2 (en) Variable frequency oscillation circuit
KR200150133Y1 (en) Timing pulse generating apparatus for camcorder
JP2682306B2 (en) Clock advancer
JP2553350B2 (en) Pulse count circuit
JP3051937B2 (en) Variable counting pulse signal generator
JP2850671B2 (en) Variable delay circuit
SU1173554A2 (en) Controllable frequency divider
SU1656548A1 (en) Data output device
JPH0562360B2 (en)
JPS6141175B2 (en)
JPS6035635B2 (en) electronic clock

Legal Events

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