JPH0325089B2 - - Google Patents
Info
- Publication number
- JPH0325089B2 JPH0325089B2 JP60048720A JP4872085A JPH0325089B2 JP H0325089 B2 JPH0325089 B2 JP H0325089B2 JP 60048720 A JP60048720 A JP 60048720A JP 4872085 A JP4872085 A JP 4872085A JP H0325089 B2 JPH0325089 B2 JP H0325089B2
- Authority
- JP
- Japan
- Prior art keywords
- digital
- analog
- period
- filter
- digital converter
- 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 - Lifetime
Links
Landscapes
- Analogue/Digital Conversion (AREA)
Description
【発明の詳細な説明】
〔概要〕
デイジタルフイルタを構成するデイジタルシグ
ナルプロセツサで用いられる周波数分析用プログ
ラム及び周波数分析を行ないつつフイルタデータ
を出力するプログラムの処理時間を同一にし、且
つその時間をアナログ―デイジタル変換器サンプ
リング周期にするように両プログラムのステツプ
数を合わせてデイジタルシグナルプロセツサへデ
イジタルデータを供給するアナログ―デイジタル
変換器のためのサンプリングクロツクを生成する
ことに本発明の特徴がある。[Detailed Description of the Invention] [Summary] The processing time of a frequency analysis program used in a digital signal processor constituting a digital filter and a program that outputs filter data while performing frequency analysis are made the same, and the processing time is - The feature of the present invention is to generate a sampling clock for the analog-to-digital converter that supplies digital data to the digital signal processor by combining the number of steps of both programs so as to match the sampling period of the digital converter. .
本発明はデイジタルフイルタのアナログ―デイ
ジタル変換器サンプリングクロツク生成方式に関
し、更に詳細に云えば従来のハード的手段による
サンプリングクロツクの発生をソフト的手段によ
るサンプリングクロツクの発生に改良したデイジ
タルフイルタのアナログ―デイジタル変換器サン
プリングクロツク生成方式に関する。
The present invention relates to an analog-to-digital converter sampling clock generation method for a digital filter, and more specifically, the present invention relates to a digital filter analog-to-digital converter sampling clock generation method, and more specifically, to a digital filter in which the generation of the sampling clock by conventional hardware means is improved by generation of the sampling clock by software means. Concerning analog-to-digital converter sampling clock generation method.
音声信号等のアナログ信号の処理にデイジタル
フイルタが用いられている。このデイジタルフイ
ルタもそれが使用される装置の中に首尾よく収容
され得ねばならない。勿論、その装置の中にはそ
の他の構成要素が装備され、それら構成要素もデ
イジタルフイルタと同様に収容され得ることが必
要である。従つて、装置が或る一定の大きさであ
る場合にそれら構成要素がその大きさの中に収容
し得るためには、それら構成要素が占めるスペー
スに制限が与えられるようになる。 Digital filters are used to process analog signals such as audio signals. This digital filter must also be able to be successfully accommodated within the equipment in which it is used. Of course, it is necessary that other components be installed in the device and that these components can also be accommodated in the same manner as the digital filter. Therefore, if the device has a certain size, the space these components can occupy is limited in order for these components to be accommodated within that size.
このような場合において、各構成要素はその機
能を保ちつつその要求を満たさなければならな
い。このような要請は音声処理装置等で用いられ
るデイジタルフイルタにも課せられ、この要請に
応え得る技術手段の開発が望まれている。 In such cases, each component must meet its requirements while maintaining its functionality. Such requirements are also placed on digital filters used in audio processing devices and the like, and it is desired to develop technical means that can meet these requirements.
従来の音声処理装置で用いられるデイジタルフ
イルタの一構成例を第3図に示す。この図から明
らかなように、デイジタルシグナルプロセツサ
(DSP)1へ供給されるデイジタル信号はアナロ
グ―デイジタル変換器(ADC)2でサンプリン
グされて出力される。そのサンプリングのための
クロツクはデイジタルシグナルプロセツサ1を動
作させるクロツク発生回路3の高速クロツクをタ
イミングコントロール部4のカウンタ5で上述サ
ンプリングで必要とする低速のクロツクに落とし
ている。なお、第3図中、6はマイクロホン、7
はプリアンプ、8はプリエンフアシス回路、9は
ローパスフイルタ(LPF)、10はサンプリン
グ/ホールド回路(S/H)、11はバツフアコ
ントロール部、12はバス、13はマイクロプロ
セツサユニツト(MPU)、14はタイミングコン
トロール部、15はカウンタである。
FIG. 3 shows an example of the configuration of a digital filter used in a conventional audio processing device. As is clear from this figure, a digital signal supplied to a digital signal processor (DSP) 1 is sampled by an analog-to-digital converter (ADC) 2 and output. The clock for this sampling is a high-speed clock of a clock generation circuit 3 for operating the digital signal processor 1, which is reduced by a counter 5 of a timing control section 4 to a low-speed clock required for the above-mentioned sampling. In addition, in Figure 3, 6 is a microphone, 7
is a preamplifier, 8 is a pre-emphasis circuit, 9 is a low-pass filter (LPF), 10 is a sampling/hold circuit (S/H), 11 is a buffer control section, 12 is a bus, 13 is a microprocessor unit (MPU), 14 1 is a timing control section, and 15 is a counter.
上述のように、カウンタ5にて高速のクロツク
を低速のクロツクに逓降しようとすると、その速
度差が大きいため、それに要するハード量(部品
点数)が多くなる。従つて、この形式のデイジタ
ルフイルタの実装スペースが増大する上、故障率
が高まるほか、コスト的な不利を招く。
As described above, when the counter 5 tries to down-level a high-speed clock to a low-speed clock, the difference in speed is large, and therefore the amount of hardware (number of parts) required increases. Therefore, the mounting space for this type of digital filter increases, the failure rate increases, and there is a cost disadvantage.
本発明はこのような問題点に鑑みて創作された
もので、従来のハード的なクロツク発生手段をソ
フト的なクロツク発生手段に改良して上述問題点
の解決を図り得るデイジタルフイルタのアナログ
―デイジタル変換器サンプリングクロツク生成方
式の提供をその目的とする。 The present invention was created in view of the above problems, and is an analog-to-digital digital filter that can solve the above problems by improving the conventional hardware clock generation means into a software clock generation means. The purpose is to provide a converter sampling clock generation method.
本発明の要部構成は次の通りである。 The main structure of the present invention is as follows.
即ち、デイジタルシグナリルプロセツサを有す
るデイジタルフイルタにおいて、
フイルタデータサンプリング周期の前期間内で
アナログ―デイジタル変換器サンプリング周期毎
に所要数のチヤネルの周波数分析により各チヤネ
ルのフイルタデータ生成のための部分データを生
成する第1のプログラムと、
前記フイルタデータサンプリング周期の前期間
以降の後期間内のアナログ―デイジタル変換器サ
ンプリング周期毎に前記所要数と同数のチヤネル
の周波数分析を行ないつつ、前記部分データ及び
前記後期間内の周波数分析により得られたフイル
タデータ生成のための部分データを用いて各チヤ
ネル毎のフイルタデータの生成及び生成されたチ
ヤネルのフイルタデータの出力を当該チヤネル対
応のアナログ―デイジタル変換器サンプリング周
期に行なう第2のプログラムと、
が交互に起動動作せしめられる前記デイジタルシ
グナルプロセツサの前記両プログラムの処理時間
をそれぞれ前記アナログ―デイジタル変換器サン
プリング周期毎に近似させると共に、
各プログラムの実行毎に前記アナログ―デイジ
タル変換器のためのサンプリングクロツクを生成
する回路を設けて、本発明は構成される。 That is, in a digital filter having a digital signal processor, partial data for generating filter data of each channel is generated by frequency analysis of a required number of channels for each analog-to-digital converter sampling period within the preceding period of the filter data sampling period. A first program that generates the partial data and Generate filter data for each channel using the partial data for filter data generation obtained by frequency analysis in the latter period, and output the filter data of the generated channel to an analog-to-digital converter corresponding to the channel. A second program to be executed in a sampling period, and a processing time of the two programs of the digital signal processor, which are activated alternately, are approximated for each sampling period of the analog-to-digital converter, and each time each program is executed. The present invention is constructed by providing a circuit for generating a sampling clock for the analog-to-digital converter.
前述のように、デイジタルシグナルプロセツサ
のフイルタデータを生成する2つのプログラムの
処理時間は、それぞれ近似されている。従つて、
それらのプログラムからのサンプリングクロツク
を生成するための信号は、各プログラムの実行が
開始される度毎に、つまり前述のような近似に応
じた周期で出力されてアナログ―デイジタル変換
器のサンプリングに適合したクロツクと化され
る。かくして、フイルタデータの生成を行なうい
ずれのプログラムに供されるデイジタルデータも
アナログ―デイジタル変換器からフイルタ帯域に
見合つたサンプリング周期で出力し得ることにな
る。
As mentioned above, the processing times of the two programs for generating filter data of the digital signal processor are approximated. Therefore,
The signals for generating the sampling clock from these programs are output each time the execution of each program is started, that is, at a period according to the approximation described above, and are used for sampling the analog-to-digital converter. It becomes a suitable clock. In this way, digital data provided to any program that generates filter data can be output from the analog-to-digital converter at a sampling period commensurate with the filter band.
〔実施例〕
第1図は本発明の一実施例を示す。この実施例
は音声信号のデイジタルフイルタリングを行なう
場合を例にしており、第3図の従来デイジタルフ
イルタと同一の構成要素には同一参照番号を付し
てその説明を省略する。この実施例における要部
構成はデイジタルシグナルプロセツサ(以下、
DSPと略称する)でフイルタデータの生成に供
される2つのプログラム(第2図参照)即ち所要
数(M個)のチヤネルの周波数分析を行ない、フ
イルタデータを生成するプログラムAと、プログ
ラムAによるフイルタデータ出力合図(DSP1、
ステータスレジスタ15を介して与えられる
ADCサンプリング周期Tのステータス及びフイ
ルタデータレデイ信号)に応答してMPU13か
らバス12、線16を経て与えられるフイルタデ
ータ読み出し要求信号に応答するコントロール部
17から線18を介してDSP1に与えられるプ
ログラムB起動信号に応答して起動され前記所要
数と同数のチヤネルの周波数分析を行ないつつフ
イルタデータを出力するプログラムBとの処理時
間を同一にし、且つその時間をアナログ―デイジ
タル変換器サンプリング周期にするようにそれら
両プログラムのステツプ数を合わせること、並び
に両プログラムの実行が開始される度毎に、つま
り同一の周期でDSP1から線19上に出力され
るADCサンプリング周期Tのタイミングを有す
る信号をADC2のサンプリングに適合した信号
つまり所要のパルス幅等を満たす信号に変える手
段たるコントロール部17を設けたことにある。[Embodiment] FIG. 1 shows an embodiment of the present invention. This embodiment takes as an example a case in which digital filtering of an audio signal is performed, and the same components as those of the conventional digital filter shown in FIG. 3 are given the same reference numerals and their explanations will be omitted. The main configuration of this embodiment is a digital signal processor (hereinafter referred to as
There are two programs (see Figure 2) used to generate filter data in the DSP (abbreviated as DSP): program A that performs frequency analysis of the required number (M) of channels and generates filter data, and program A that generates filter data. Filter data output signal (DSP1,
given via status register 15
Program B is applied to the DSP 1 via the line 18 from the control unit 17 in response to the filter data read request signal applied from the MPU 13 via the bus 12 and line 16 in response to the status of the ADC sampling period T and the filter data ready signal. The processing time is made the same as that of program B which is started in response to a start signal and outputs filter data while performing frequency analysis of the same number of channels as the required number, and the time is set to be the sampling period of the analog-to-digital converter. In addition, each time the execution of both programs is started, a signal having the timing of the ADC sampling period T is output from DSP1 on line 19 at the same period. A control section 17 is provided as a means for changing the signal to a signal suitable for sampling, that is, a signal satisfying a required pulse width, etc.
このように構成することにより、従来のハード
的クロツク発生手段の有する欠点の大幅な緩和を
成し遂げることができる。 With this configuration, the drawbacks of conventional hardware clock generation means can be significantly alleviated.
即ち、上述のプログラムAにおいてもプログラ
ムBにおいても、DSP1から線19上にADCサ
ンプリング周期Tのタイミングを有する信号を送
出し得る(第2図参照)。該信号はコントロール
部17においてADC2のサンプリングに適合し
た信号条件を付与されたサンプリングクロツクと
化されてADC2へ供給されるからである。つま
り、ADCサンプリング周期Tがソフト的に設定
し得るからである。 That is, in both program A and program B described above, a signal having the timing of the ADC sampling period T can be sent from the DSP 1 on the line 19 (see FIG. 2). This is because the signal is converted by the control unit 17 into a sampling clock given signal conditions suitable for sampling by the ADC 2 and is supplied to the ADC 2. In other words, the ADC sampling period T can be set by software.
なお、上記実施例においては、音声信号のデイ
ジタルフイルタリングについて述べたが、アナロ
グ入力信号のフイルタ帯域に見合つたADCサン
プリング周期を設定し得る限度においてその他の
アナログ入力信号に対しても本発明は有効であ
る。 In the above embodiment, digital filtering of audio signals was described, but the present invention is also effective for other analog input signals as long as the ADC sampling period can be set in accordance with the filter band of the analog input signal. It is.
又、前記実施例においては、2つのプログラム
の処理時間を同一にする場合を説明したが、音声
信号等のアナログ信号においては常に同一にする
必要性は、必ずしもなく、ADCサンプリング周
期に若干の差違は許容される。要は、ADCサン
プリング周期を設定し得るクロツクを発生し得れ
ば足りる。 Furthermore, in the above embodiment, a case was explained in which the processing times of two programs are made the same, but analog signals such as audio signals do not necessarily need to be made the same all the time, and there may be a slight difference in the ADC sampling period. is allowed. In short, it is sufficient to generate a clock that can set the ADC sampling period.
以上述べたように、本発明によれば、デイジタ
ルフイルタのアナログ―デイジタル変換器サンプ
リングクロツクをソフト的に設定得るから、従来
のハード的設定に惹起して来る問題を大幅に緩和
し得る。
As described above, according to the present invention, the sampling clock of the analog-to-digital converter of the digital filter can be set by software, so that the problems caused by conventional hardware settings can be greatly alleviated.
第1図は本発明の一実施例を示す図、第2図
は、第1図実施例の説明に供するフローチヤー
ト、第3図は従来のデイジタルフイルタの構成を
示す図。
第1図において、1はDSP、2はADC、17
はコントロール部である。
FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a flowchart for explaining the embodiment of FIG. 1, and FIG. 3 is a diagram showing the configuration of a conventional digital filter. In Figure 1, 1 is DSP, 2 is ADC, 17
is the control section.
Claims (1)
ジタルフイルタにおいて、 フイルタデータサンプリング周期の前期間内で
アナログ―デイジタル変換器サンプリング周期毎
に所要数のチヤネルの周波数分析により各チヤネ
ルのフイルタデータ生成のための部分データを生
成する第1のプログラムと、 前記フイルタデータサンプリング周期の前期間
以降の後期間内のアナログ―デイジタル変換器サ
ンプリング周期毎に前記所要数と同数のチヤネル
の周波数分析を行ないつつ、前記部分データ及び
前記後期間内の周波数分析により得られたフイル
タデータ生成のための部分データを用いて各チヤ
ネル毎のフイルタデータの生成及び生成されたチ
ヤネルのフイルタデータの出力を当該チヤネル対
応のアナログ―デイジタル変換器サンプリング周
期に行なう第2のプログラムと、 が交互に起動動作せしめられる前記デイジタルシ
グナルプロセツサの前記両プログラムの処理時間
をそれぞれ前記アナログ―デイジタル変換器サン
プリング周期毎に近似させると共に、 各プログラムの実行毎に前記アナログ―デイジ
タル変換器のためのサンプリングクロツクを生成
する回路を設けたことを特徴とするデイジタルフ
イルタのアナログ―デイジタル変換器サンプリン
グクロツク生成方式。[Claims] 1. In a digital filter having a digital signal processor, filter data generation for each channel is performed by frequency analysis of a required number of channels for each analog-to-digital converter sampling period within the preceding period of the filter data sampling period. a first program for generating partial data for the filter data sampling period; and performing frequency analysis of the same number of channels as the required number for each analog-to-digital converter sampling period in the period after the period after the period of the filter data sampling period; The partial data and the partial data for filter data generation obtained by frequency analysis in the latter period are used to generate filter data for each channel, and the output of the filter data of the generated channel is converted into an analog corresponding to the channel. - a second program executed in the digital converter sampling period; and - approximating the processing times of the two programs of the digital signal processor which are activated alternately for each of the analog-to-digital converter sampling periods; An analog-to-digital converter sampling clock generation method for a digital filter, characterized in that a circuit for generating a sampling clock for the analog-to-digital converter is provided each time a program is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4872085A JPS61208309A (en) | 1985-03-12 | 1985-03-12 | System for producing sampling clock for digitalanalog converter of digital filter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4872085A JPS61208309A (en) | 1985-03-12 | 1985-03-12 | System for producing sampling clock for digitalanalog converter of digital filter |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61208309A JPS61208309A (en) | 1986-09-16 |
| JPH0325089B2 true JPH0325089B2 (en) | 1991-04-05 |
Family
ID=12811131
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4872085A Granted JPS61208309A (en) | 1985-03-12 | 1985-03-12 | System for producing sampling clock for digitalanalog converter of digital filter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61208309A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07101834B2 (en) * | 1986-11-10 | 1995-11-01 | 松下電器産業株式会社 | Digital signal processor |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5886641A (en) * | 1982-11-08 | 1983-05-24 | Canon Inc | computer |
-
1985
- 1985-03-12 JP JP4872085A patent/JPS61208309A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61208309A (en) | 1986-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0370473B1 (en) | Digital filter | |
| JPH0325089B2 (en) | ||
| JPH01227740A (en) | System for removing power frequency noise for electrocardiograph signal | |
| JPH1175273A (en) | Method and device for summarizing signal from sampling value | |
| JPS61159826A (en) | Digital-to-analaog converter | |
| JPH0325088B2 (en) | ||
| JP2517709B2 (en) | Digital signal processor | |
| JPH04249913A (en) | Digital notch filter | |
| GB2363270A (en) | Conversion between analog and digital signals | |
| JPH04316217A (en) | Analog/digital converting circuit | |
| JP3112561B2 (en) | Oversampling digital filter | |
| JPH083065Y2 (en) | Digital filter system | |
| JP3470113B2 (en) | Digital circuit, LSI including the same, and noise removal method | |
| JPH05181811A (en) | Interruption control signal generator for multi-processor system | |
| SU1615792A1 (en) | Multichannel device for recording/playback of analog information | |
| JPH01226220A (en) | Analogue/digital convertor | |
| JP3384262B2 (en) | Audio data input method | |
| JPS59157332U (en) | signal processing device | |
| JPH11341395A (en) | Video and sound processor | |
| JPH01265723A (en) | D/A conversion circuit | |
| JPS6066368A (en) | Disc player | |
| JPS63226121A (en) | Serial/parallel converting circuit | |
| JPH04222110A (en) | quantizer | |
| JPS62239198A (en) | Voice reproduction circuit | |
| JPS6324300A (en) | Voice sampling cycle generation system for digital filer |