JPH02134902A - Reference pattern generating circuit - Google Patents
Reference pattern generating circuitInfo
- Publication number
- JPH02134902A JPH02134902A JP28951188A JP28951188A JPH02134902A JP H02134902 A JPH02134902 A JP H02134902A JP 28951188 A JP28951188 A JP 28951188A JP 28951188 A JP28951188 A JP 28951188A JP H02134902 A JPH02134902 A JP H02134902A
- Authority
- JP
- Japan
- Prior art keywords
- frequency
- converter
- output
- decoder
- circuit
- 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.)
- Pending
Links
- 238000005070 sampling Methods 0.000 claims abstract description 27
- 238000010586 diagram Methods 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
Description
【発明の詳細な説明】
[概要]
基準サンプリング周波数から任意の周波数の正弦波を基
準パターンとして発生できるようにした基準パターン発
生回路に関し、
回路規模を小さくすることを目的とし、基準サンプリン
グ周波数を受けるカウンタと、該カウンタ出力をデコー
ドするデコーダと、該デコーダ出力をパラレル/シリア
ル変換するパラレル/シリアル変換器と、該パラレル/
シリアル変換器の出力をアナログ信号に変換するD/A
変換器と、前記基準サンプリング周波数を受けて外部か
ら設定される分周比に応じた分周を行う分周回路とを具
備し、前記分周回路の出力に応じてD/A変換器のサン
プリングを制御して基準正弦波出力を得るように構成す
る。[Detailed Description of the Invention] [Summary] This invention relates to a reference pattern generation circuit that can generate a sine wave of any frequency from a reference sampling frequency as a reference pattern. a counter, a decoder that decodes the counter output, a parallel/serial converter that converts the decoder output from parallel to serial, and
D/A converts the output of a serial converter into an analog signal
a converter, and a frequency dividing circuit that receives the reference sampling frequency and performs frequency division according to a frequency division ratio set from the outside, and performs sampling of the D/A converter according to the output of the frequency dividing circuit. is configured to control the reference sine wave to obtain a reference sine wave output.
[産業上の利用分野]
本発明は基準サンプリング周波数から任意の周波数の正
弦波を基準パターンとして発生できるようにした基準パ
ターン発生回路に関する。[Industrial Application Field] The present invention relates to a reference pattern generation circuit capable of generating a sine wave of an arbitrary frequency from a reference sampling frequency as a reference pattern.
[従来の技術]
D/A変換器の調整や音声符号化回路等の試験を行うた
めに、複数個の周波数の正弦波が発生できる基準パター
ン発生器が用いられる。第4図は従来の基準パターン発
生回路の構成例を示すブロック図である。基準サンプリ
ング周波数は、カウンタ1に入って所定の分周比に分周
される。このカウンタ1の出力はパラレルバスとなって
おり、後段の複数個のデコーダ2は各デコーダ毎にカウ
ンタ出力を受けて、所定の演算処理を行い、その結果を
出力する。これら複数個のデコーダ2は、それぞれ異な
る周波数のディジタルデータを出力するようになってい
る。例えば、デコーダ2aはIKHz、2bは6KHz
という具合である。[Prior Art] A reference pattern generator capable of generating sine waves of a plurality of frequencies is used to adjust D/A converters and test audio encoding circuits. FIG. 4 is a block diagram showing an example of the configuration of a conventional reference pattern generation circuit. The reference sampling frequency is entered into a counter 1 and divided by a predetermined frequency division ratio. The output of this counter 1 is a parallel bus, and a plurality of decoders 2 at the subsequent stage receive the counter output for each decoder, perform predetermined arithmetic processing, and output the results. These plurality of decoders 2 are configured to output digital data of different frequencies, respectively. For example, decoder 2a is IKHz, decoder 2b is 6KHz
That's how it is.
これらデコーダ2出力は、並列にセレクタ3に入ってい
る。該セレクタ3には、出力信号の周波数に応じた切換
信号が入力されており、出力信号の周波数に応じたデコ
ーダ出力をセレクトして出力する。このセレクタ出力(
パラレルデータ)は、続くパラレル/シリアル変換器(
P/S)4に人ってシリアルデータに変換された後、D
/A変換器5に入る。パラレル/シリアル変換器4及び
D/A変換器5は、共通のクロックCKで動作するよう
になっている。またD/A変換器5は前記サンプリング
周波数によりそのサンプリングが制御され、基準正弦波
が基準パターンとして出力される。These decoder 2 outputs enter a selector 3 in parallel. A switching signal corresponding to the frequency of the output signal is input to the selector 3, and a decoder output corresponding to the frequency of the output signal is selected and output. This selector output (
parallel data) is transferred to the subsequent parallel/serial converter (parallel data).
P/S) After being converted to serial data, D
/A converter 5. The parallel/serial converter 4 and the D/A converter 5 are designed to operate using a common clock CK. Further, the sampling of the D/A converter 5 is controlled by the sampling frequency, and a reference sine wave is output as a reference pattern.
[発明が解決しようとする課題]
従来の基準パターン発生器では、第4図について説明し
たようにD/A変換器5から出力される各周波数の基準
正弦波の種類毎にデコーダ2を設けて基準ディジタルデ
ータを作る必要があり、回路規模が大きくなってしまう
という不具合があった。[Problems to be Solved by the Invention] In the conventional reference pattern generator, as explained with reference to FIG. 4, a decoder 2 is provided for each type of reference sine wave of each frequency output from the D/A converter 5. There was a problem in that it was necessary to create reference digital data, which increased the circuit scale.
本発明はこのような課題に鑑みてなされたものであって
、回路規模を小さくすることができる基準パターン発生
回路を提供することを目的としている。The present invention has been made in view of such problems, and an object of the present invention is to provide a reference pattern generation circuit that can reduce the circuit scale.
[課題を解決するための手段]
第1図は本発明の原理ブロック図である。第4図と同一
のものは、同一の符号を付して示す。本発明では、基準
ディジタルデータを作るデコーダ2は1個だけ設けられ
ており、デコーダ2の出力はパラレル/シリアル変換器
4に入っている。図において、6は基準サンプリング周
波数を受けて外部から設定される分周比に応じた分周を
行う分周回路であり、その出力はD/A変換器5のサン
プリングを制御するサンプリング周波数としてD/A変
換器5に入っている。[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Components that are the same as those in FIG. 4 are designated by the same reference numerals. In the present invention, only one decoder 2 for producing reference digital data is provided, and the output of the decoder 2 is fed into the parallel/serial converter 4. In the figure, 6 is a frequency dividing circuit that receives the reference sampling frequency and divides the frequency according to a frequency division ratio set from the outside, and its output is D as the sampling frequency that controls the sampling of the D/A converter 5. /A converter 5.
[作用]
分周回路6により、外部より設定される分周比に応じた
周波数のパルスを作り、このパルスでD/A変換器5の
サンプリングを制御する。従って、本発明によればデコ
ーダ回路が1個ですむので、回路規模を小さくすること
ができる。[Operation] The frequency dividing circuit 6 generates a pulse with a frequency according to a frequency division ratio set from the outside, and the sampling of the D/A converter 5 is controlled by this pulse. Therefore, according to the present invention, since only one decoder circuit is required, the circuit scale can be reduced.
なお、本発明によれば、xKHzの基準正弦波ディジタ
ルデータを用いてD/A変換を行うと、xKHzの正弦
波が生成できる。そこで、D/A変換器5のサンプリン
グ周波数を1 / aにおとすことによりD/A変換器
5からz / a K Hzの周波数の正弦波を基準パ
ターンとして得ることができる。Note that, according to the present invention, by performing D/A conversion using xKHz reference sine wave digital data, a xKHz sine wave can be generated. Therefore, by setting the sampling frequency of the D/A converter 5 to 1/a, a sine wave having a frequency of z/a KHz can be obtained from the D/A converter 5 as a reference pattern.
[実施例]
以下、図面を参照して本発明の実施例を詳細に説明する
。[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第2図は分周回路6の具体的構成例を示す図である。図
において、6aは基準サンプリング周波数を受けるNビ
ットの分周回路である。該分周回路6aからはN個の分
周出力が出ている。その分周比としては、例えば図に示
すように1/2. 1/4等が用いられる。SWは該分
周回路6aのN個の出力を受けてその内の何れか1個を
セレクトするスイッチである。6bは外部より設定され
る分周比aを受けて分周比aに応じた分周回路出力をセ
レクトするためにスイッチSWを制御する制御回路であ
る。制御回路6bによりセレクトされた分周出力がスイ
ッチSWから出力され、D/A変換器5に送られるよう
になっている。FIG. 2 is a diagram showing a specific example of the configuration of the frequency dividing circuit 6. As shown in FIG. In the figure, 6a is an N-bit frequency dividing circuit that receives the reference sampling frequency. N frequency divided outputs are output from the frequency dividing circuit 6a. The frequency division ratio is, for example, 1/2 as shown in the figure. A value such as 1/4 is used. SW is a switch that receives N outputs from the frequency dividing circuit 6a and selects one of them. 6b is a control circuit that receives a frequency division ratio a set from the outside and controls a switch SW to select a frequency division circuit output according to the frequency division ratio a. The frequency-divided output selected by the control circuit 6b is output from the switch SW and sent to the D/A converter 5.
このように構成された回路において、外部より分周比a
が設定されると、制御回路6bは設定された分周比aに
応じた分周出力を得るための切換制御信号をスイッチS
Wに出力する。この結果、分周回路6aのN個の出力の
内、切換制御信号によりセレクトされた周波数の信号が
スイッチSWを介してD/A変換器5(図示せず)に送
られることになる。In a circuit configured in this way, the frequency division ratio a is set externally.
is set, the control circuit 6b sends a switching control signal to the switch S to obtain a divided output according to the set frequency division ratio a.
Output to W. As a result, the signal of the frequency selected by the switching control signal among the N outputs of the frequency dividing circuit 6a is sent to the D/A converter 5 (not shown) via the switch SW.
なお、第2図では基準サンプリング周波数をNピッI・
の分周回路で分周する場合について説明したが、この分
周回路6aより出力される分周信号の分周比は1/2’
(i=1.2.・・)の形になる必要はなく、1/
2,1./3,1./4・・・というように分周するこ
ともてきる。また、制御回路6bとしてマイクロコンピ
ュータを用いて分周比として整数のみならず、少数部を
含むような分周比(例えば1./2.5)とすることも
てきる。In addition, in Fig. 2, the reference sampling frequency is
The case where the frequency is divided by the frequency dividing circuit 6a has been explained, but the frequency division ratio of the frequency divided signal output from this frequency dividing circuit 6a is 1/2'
(i=1.2...) need not be in the form 1/
2,1. /3,1. It is also possible to divide the frequency by /4... Further, by using a microcomputer as the control circuit 6b, the frequency division ratio can be set not only to an integer but also to a frequency division ratio that includes a decimal part (for example, 1./2.5).
第3図は本発明の動作説明図である。図において、(b
)は基準正弦波周波数(17KHz)、(C)はD/A
変換器サンプリング周波数(16K Hz )、(a)
はD/A変換器出力周波数(IK Hz )である。第
1図と対応させて説明すると、入力基準サンプリング周
波数が(b)であり、分周回路6により分周されたD/
A変換器サンプリング周波数が(C)である。このD/
A変換器サンプリング周波数でサンプリングした基準正
弦波周波数のサンプリングポイン]・(図の○印を結ん
だ点)の包絡線がIKHzのD/A変換器出力、つまり
基準正弦波出力となる。FIG. 3 is an explanatory diagram of the operation of the present invention. In the figure, (b
) is the reference sine wave frequency (17KHz), (C) is the D/A
Transducer sampling frequency (16K Hz), (a)
is the D/A converter output frequency (IK Hz). To explain in conjunction with FIG. 1, the input reference sampling frequency is (b), and the D/
The A converter sampling frequency is (C). This D/
The sampling point of the reference sine wave frequency sampled at the A converter sampling frequency]·(the points connecting the circles in the figure) is the IKHz D/A converter output, that is, the reference sine wave output.
[発明の効果]
以上、詳細に説明したように、本発明によれば分周回路
により、外部より設定される分周比に応じた周波数のパ
ルスを作り、このパルスでD/A変換器5のサンプリン
グを制御するように構成することによりデコーダ回路が
1−個ですむので、回路規模を小さくすることができる
。[Effects of the Invention] As described above in detail, according to the present invention, a frequency dividing circuit generates a pulse having a frequency according to a frequency division ratio set from the outside, and this pulse is used to generate a pulse in the D/A converter 5. By configuring to control the sampling of , only one decoder circuit is required, so the circuit scale can be reduced.
第1図は本発明の原理ブロック図、
第2図は分周回路の具体的構成例を示す図、第3図は本
発明の動作説明図、
第4図は従来回路の構成例を示すブロック図である。
第1図において、
1はカウンタ、
2はデコーダ、
4はパラレル/シリアル変換器、
5はD/A変換器、
6は分周回路である。Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a diagram showing a specific configuration example of a frequency dividing circuit, Fig. 3 is an explanatory diagram of the operation of the present invention, and Fig. 4 is a block diagram showing an example of the configuration of a conventional circuit. It is a diagram. In FIG. 1, 1 is a counter, 2 is a decoder, 4 is a parallel/serial converter, 5 is a D/A converter, and 6 is a frequency dividing circuit.
Claims (1)
、 該デコーダ(2)出力をパラレル/シリアル変換するパ
ラレル/シリアル変換器(4)と、該パラレル/シリア
ル変換器(4)の出力をアナログ信号に変換するD/A
変換器(5)と、前記基準サンプリング周波数を受けて
外部から設定される分周比に応じた分周を行う分周回路
(6)とを具備し、 前記分周回路(6)の出力に応じてD/A変換器(5)
のサンプリングを制御して基準正弦波出力を得るように
構成したことを特徴とする基準パターン発生回路。[Claims] A counter (1) that receives a reference sampling frequency, a decoder (2) that decodes the output of the counter (1), and a parallel/serial converter that converts the output of the decoder (2) from parallel to serial. 4) and a D/A that converts the output of the parallel/serial converter (4) into an analog signal.
It comprises a converter (5) and a frequency dividing circuit (6) that receives the reference sampling frequency and performs frequency division according to a frequency division ratio set from the outside, and the output of the frequency dividing circuit (6) is D/A converter (5) as required
1. A reference pattern generation circuit characterized in that the circuit is configured to obtain a reference sine wave output by controlling the sampling of the reference pattern.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28951188A JPH02134902A (en) | 1988-11-15 | 1988-11-15 | Reference pattern generating circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28951188A JPH02134902A (en) | 1988-11-15 | 1988-11-15 | Reference pattern generating circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02134902A true JPH02134902A (en) | 1990-05-23 |
Family
ID=17744215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28951188A Pending JPH02134902A (en) | 1988-11-15 | 1988-11-15 | Reference pattern generating circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02134902A (en) |
-
1988
- 1988-11-15 JP JP28951188A patent/JPH02134902A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4068178A (en) | Variable frequency waveform synthesizer | |
JPH0192821A (en) | Digital frequency synthesizer | |
JPH07231688A (en) | Pll system | |
JPS63211919A (en) | Clock generating circuit | |
JPH02134902A (en) | Reference pattern generating circuit | |
US3977290A (en) | Electronic musical instrument | |
US4086544A (en) | Frequency synthesizer using phase locked loops | |
US4108038A (en) | Time shared tone keying system in electronic musical instrument | |
JPS61273011A (en) | Variable clock generator | |
JPH07231225A (en) | Optional waveform generator | |
JPH02224558A (en) | Dtmf generating circuit | |
KR940000661Y1 (en) | Multi-frequency tone origination circuit | |
JPS595913Y2 (en) | Sound source waveform forming device for electronic musical instruments | |
SU923003A1 (en) | Two-channel harmonic oscillator | |
JPH044482A (en) | Microcomputer | |
JPS58177026A (en) | Digital filter device of electronic musical instrument | |
SU877581A1 (en) | Step voltage function generator | |
JP2775733B2 (en) | Digital waveform signal generator | |
JPH01105226U (en) | ||
JPH0660479A (en) | Control device for output of vtr control signal | |
JPS6327915A (en) | Signal generator | |
JPS62261244A (en) | Phase duty adjusting circuit | |
JPS6074972A (en) | Reference signal forming circuit of synchronous pwm inverter | |
JPH0468820A (en) | D/a converter | |
JPH0572359A (en) | Clock circuit |