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
JP3145292B2 - Digital signal processing circuit - Google Patents
[go: Go Back, main page]

JP3145292B2 - Digital signal processing circuit - Google Patents

Digital signal processing circuit

Info

Publication number
JP3145292B2
JP3145292B2 JP33958095A JP33958095A JP3145292B2 JP 3145292 B2 JP3145292 B2 JP 3145292B2 JP 33958095 A JP33958095 A JP 33958095A JP 33958095 A JP33958095 A JP 33958095A JP 3145292 B2 JP3145292 B2 JP 3145292B2
Authority
JP
Japan
Prior art keywords
processing
arithmetic processing
unit
digital signal
small
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
JP33958095A
Other languages
Japanese (ja)
Other versions
JPH09179735A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP33958095A priority Critical patent/JP3145292B2/en
Publication of JPH09179735A publication Critical patent/JPH09179735A/en
Application granted granted Critical
Publication of JP3145292B2 publication Critical patent/JP3145292B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル信号処理
回路自身が周辺回路へ与えるノイズなどの悪影響を軽減
したデジタル信号処理回路に関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to a digital signal processing circuit in which the digital signal processing circuit itself has reduced adverse effects such as noise on peripheral circuits.

【0002】[0002]

【従来の技術】デジタル信号処理回路が一定量の信号処
理を一定時間内に行う場合、通常、ある基準信号をトリ
ガーとして処理を開始している。ここでは、上記デジタ
ル信号処理回路の一例として、基準信号の両エッジをト
リガーとして処理を開始する場合について説明するが、
片エッジをトリガーとしても同様である。
2. Description of the Related Art When a digital signal processing circuit performs a predetermined amount of signal processing within a predetermined time, the processing is usually started with a certain reference signal as a trigger. Here, as an example of the digital signal processing circuit, a case will be described in which processing is started with both edges of the reference signal as a trigger,
The same applies when one edge is used as a trigger.

【0003】図4に示すように、基準信号のトリガー入
力周期T以内に、処理単位a1ないしa5の5つの処理
を行う場合、従来の回路では、基準信号の立ち上がり、
あるいは立ち下がりをトリガーとして処理単位a1の処
理を開始する(図4のt0の時点)。処理単位a1が終
了すると、続いて、処理単位a2ないしa5が連続して
処理される。全ての処理が終了すると、デジタル信号処
理回路は、システムクロックなどを停止させて命令コー
ドの実行を停止させたり、あるいは、ノンオペレーショ
ン処理を繰り返したりして、次のトリガーまでの期間を
停止期間とする(図4のt1からt2までの期間)。な
お、処理単位a1ないしa5を実行する際の所要時間
は、例えば、計算する値や内部の演算ユニットの状態な
ど、種々の要因によって異なっている。したがって、所
要時間の最大値は、保証されているが、実際の所要時間
は特定できないことが多い。
[0003] As shown in FIG. 4, when five processes of processing units a1 to a5 are performed within a trigger input period T of a reference signal, the conventional circuit uses the rising edge of the reference signal,
Alternatively, the processing of the processing unit a1 is started with the falling edge as a trigger (at time t0 in FIG. 4). When the processing unit a1 ends, the processing units a2 to a5 are successively processed. When all processing is completed, the digital signal processing circuit stops the execution of the instruction code by stopping the system clock or the like, or repeats the non-operation processing, and the period until the next trigger is the stop period. (Period from t1 to t2 in FIG. 4). Note that the time required to execute the processing units a1 to a5 differs depending on various factors such as, for example, a value to be calculated and a state of an internal operation unit. Therefore, the maximum required time is guaranteed, but the actual required time cannot be specified in many cases.

【0004】同様にして、次サイクルでは、デジタル信
号処理回路は、処理単位b1ないしb5の処理を続けて
行う。そして、動作期間の後、次のトリガーが入力され
るまでは、停止期間となる。デジタル信号処理回路は、
基準信号をトリガーとして、このようなサイクルを繰り
返して動作する。
[0004] Similarly, in the next cycle, the digital signal processing circuit continuously performs the processing of the processing units b1 to b5. After the operation period, a stop period is set until the next trigger is input. The digital signal processing circuit
Such a cycle is repeated by using the reference signal as a trigger.

【0005】ところで、デジタル信号処理回路では、停
止期間に比べて動作期間の方が大きな消費電流を必要と
しており、動作開始や停止に伴って、その消費電流が変
動する。特に、デジタル信号処理回路が回路規模の大き
い乗算器などの演算ユニットを内部に持ち、これら演算
ユニットが同時に動作あるいは停止する場合などには、
デジタル信号処理回路の動作期間と停止期間との間で消
費電流差が大きい。この結果、図4の(c)に示すよう
に、上記デジタル信号処理回路の消費電流が変化し、そ
の変動周期は、基準信号のトリガー入力周期Tとなる。
Incidentally, in the digital signal processing circuit, a larger current consumption is required in the operation period than in the stop period, and the current consumption fluctuates with the start and stop of the operation. In particular, when the digital signal processing circuit has an internal operation unit such as a multiplier having a large circuit scale, and these operation units simultaneously operate or stop,
There is a large current consumption difference between the operation period and the stop period of the digital signal processing circuit. As a result, as shown in FIG. 4C, the current consumption of the digital signal processing circuit changes, and the cycle of the change is the trigger input cycle T of the reference signal.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来のデジタル信号処理回路では、消費電流の変動や、変
動に起因するノイズなどによって、当該デジタル信号処
理回路に定電圧を供給する電源回路や、当該電源から電
力の供給を受けるアナログ回路など、周辺回路へ少なか
らず悪影響を及ぼすという問題を生じている。
However, in the above-mentioned conventional digital signal processing circuit, a power supply circuit for supplying a constant voltage to the digital signal processing circuit due to fluctuations in current consumption and noise caused by the fluctuations, etc. There has been a problem that peripheral circuits such as an analog circuit which receives power supply from a power supply are not adversely affected.

【0007】一般に、周辺回路は、他の周波数帯域に比
べてノイズの影響を受けやすい特定の周波数帯域を持っ
ている。したがって、消費電流の変動周期が、この周波
数帯域に入っている場合、周辺回路に深刻な影響を与え
る虞れがある。
Generally, a peripheral circuit has a specific frequency band that is more susceptible to noise than other frequency bands. Therefore, if the fluctuation period of the current consumption falls within this frequency band, there is a possibility that the peripheral circuits will be seriously affected.

【0008】例えば、オーディオ回路は、可聴帯域のノ
イズの影響を受けやすい。したがって、オーディオ回路
において、上記変動周期が可聴帯域である場合は、周辺
回路に対して可聴ノイズとして悪影響を与え、深刻な問
題となる。
For example, audio circuits are susceptible to noise in the audible band. Therefore, in the audio circuit, when the fluctuation period is in the audible band, it adversely affects peripheral circuits as audible noise, causing a serious problem.

【0009】加えて、デジタル信号処理回路の消費電流
が変動しても周辺回路を安定して動作させるためには、
周辺回路を強化する必要がある。したがって、電源電圧
変動を抑え安定化させるために電源回路を強化したり、
ノイズの影響を受けにくいようにアナログ回路部を強化
したりしている。この結果、デジタル信号処理回路を備
えた機器のコストアップを招来するという問題も生ず
る。
In addition, in order to operate peripheral circuits stably even when the current consumption of the digital signal processing circuit fluctuates,
Peripheral circuits need to be strengthened. Therefore, the power supply circuit is strengthened to suppress and stabilize the power supply voltage fluctuation,
The analog circuit section has been strengthened so as to be less susceptible to noise. As a result, there is also a problem that the cost of a device including the digital signal processing circuit is increased.

【0010】本発明は、上記の問題点を鑑みてなされた
ものであり、その目的は、デジタル信号処理回路におい
て、ノイズなど、周辺回路へ与える悪影響を軽減するこ
とにある。
The present invention has been made in view of the above problems, and an object of the present invention is to reduce adverse effects on peripheral circuits such as noise in a digital signal processing circuit.

【0011】[0011]

【課題を解決するための手段】請求項1の発明に係るデ
ジタル信号処理回路は、上記課題を解決するために、基
準信号の入力があった場合、複数の少単位処理を次々に
実行し、その後、次の基準信号入力まで待機する演算処
理手段を有するデジタル信号処理回路において、上記基
準信号の入力周期毎に少なくとも1回、上記演算処理手
段に少単位処理の処理を一時中断させる制御手段を備え
ていることを特徴としている。
According to a first aspect of the present invention, a digital signal processing circuit executes a plurality of small unit processes one after another when a reference signal is input. After that, in the digital signal processing circuit having the arithmetic processing means which waits until the next reference signal input, the control means for causing the arithmetic processing means to temporarily suspend the processing of the small unit processing at least once every input cycle of the reference signal. It is characterized by having.

【0012】なお、上記演算処理手段は、例えば、命令
コードを格納したプログラムROM( Read-Only Memor
y )、データROM、ワーキングRAM( Random acce
ss Memory )や、演算ユニット、各種レジスタなどから
構成されており、停止時に比べ動作時の消費電流は、大
きくなっている。
The arithmetic processing means includes, for example, a program ROM (Read-Only Memory) storing an instruction code.
y), data ROM, working RAM (Random acce
ss Memory), an arithmetic unit, various registers, and the like, and the current consumption during operation is larger than that during stop.

【0013】上記構成において、基準信号が入力される
と、演算処理手段は、動作を開始して、複数の少単位処
理を次々に実行する。また、制御手段は、基準信号の入
力周期毎に少なくとも1回、例えば、演算処理手段へ供
給するクロックを停止させたり、演算処理手段にノンオ
ペレーション命令を繰り返すように指示したりして、演
算処理手段を停止させる。
In the above configuration, when the reference signal is input, the arithmetic processing means starts operation and executes a plurality of small unit processes one after another. Further, the control means may stop the clock supplied to the arithmetic processing means at least once every input cycle of the reference signal, for example, or instruct the arithmetic processing means to repeat the non-operation instruction, thereby performing the arithmetic processing. Stop the means.

【0014】その後、制御手段は、例えば、クロックの
供給を再開させるなどして、演算処理手段の動作を開始
させる。全ての少単位処理が終了すると、演算処理手段
は、次の基準信号が入力されるまで待機する。
Thereafter, the control means starts the operation of the arithmetic processing means by, for example, restarting the supply of the clock. When all the small unit processes have been completed, the arithmetic processing means waits until the next reference signal is input.

【0015】これにより、基準信号の1入力周期におい
て、演算処理手段が動作を開始あるいは停止する回数
は、従来に比べて増加する。したがって、デジタル信号
処理回路は、演算処理手段の動作開始や停止に伴う消費
電流の変動周波数を、従来のデジタル信号処理回路に比
べて高周波側へ変更できる。
Thus, in one input cycle of the reference signal, the number of times the arithmetic processing means starts or stops operating increases as compared with the conventional case. Therefore, the digital signal processing circuit can change the fluctuation frequency of the current consumption due to the start and stop of the operation of the arithmetic processing means to a higher frequency side as compared with the conventional digital signal processing circuit.

【0016】それゆえ、デジタル信号処理回路は、例え
ば、オーディオ回路における可聴帯域など、周辺回路に
悪影響を及ぼしやすい特定の周波数帯域から、消費電流
の変動周波数を外すことができる。したがって、例え
ば、オーディオ回路における可聴ノイズなど、デジタル
信号処理回路自身が周辺回路へ与える悪影響を軽減でき
る。
Therefore, the digital signal processing circuit can remove the fluctuation frequency of the current consumption from a specific frequency band that easily affects peripheral circuits, such as an audible band in an audio circuit. Therefore, for example, adverse effects of the digital signal processing circuit itself on peripheral circuits, such as audible noise in an audio circuit, can be reduced.

【0017】さらに、周辺回路に与える影響が軽減され
るので、例えば、電源回路やアナログ回路などの周辺回
路において、ノイズへの耐性を従来より低く設定でき
る。この結果、周辺回路の構成をより簡略にすると共
に、製造に要するコストを削減できる。
Further, since the influence on the peripheral circuit is reduced, the resistance to noise can be set lower than in the conventional circuit, for example, in a peripheral circuit such as a power supply circuit or an analog circuit. As a result, the configuration of the peripheral circuit can be simplified, and the cost required for manufacturing can be reduced.

【0018】請求項2の発明に係るデジタル信号処理回
路は、上記課題を解決するために、請求項1記載のデジ
タル信号処理回路において、上記演算処理手段が次の少
単位処理を開始する時点を、上記制御手段へ指定する次
処理開始時指定手段を備えている。また、上記制御手段
は、各少単位処理が終了してから、上記次処理開始時指
定手段が指定した次処理開始時点までの間、上記演算処
理手段を待機させることを特徴としている。
According to a second aspect of the present invention, there is provided a digital signal processing circuit according to the first aspect of the present invention, wherein the arithmetic processing means starts the next small unit processing. And a next processing start time designation means for designating the control means. Further, the control means causes the arithmetic processing means to wait on standby from the end of each small-unit processing to the next processing start time designated by the next processing start designation means.

【0019】上記構成において、演算処理手段が各少単
位処理を終了するまでに、次処理開始時指定手段は、次
処理開始時点を制御手段に指示する。また、制御手段
は、各少単位処理を終了した時点で演算処理手段を停止
させる。演算処理手段が停止したまま、次処理開始時点
になると、制御手段は、演算処理手段に次の少単位処理
を開始させる。
In the above arrangement, the next processing start time designation means instructs the next processing start time to the control means before the arithmetic processing means ends each small unit processing. Further, the control means stops the arithmetic processing means at the time when each small unit processing is completed. When the next processing start time is reached with the arithmetic processing means stopped, the control means causes the arithmetic processing means to start the next small unit processing.

【0020】それゆえ、演算処理手段は、各少単位処理
の終了後に一時停止する。これにより、基準信号の入力
周期において、演算処理手段は、請求項1記載のデジタ
ル信号処理回路に比べて、より頻繁に動作開始/停止を
繰り返す。また、動作を停止させる時点は、各少単位処
理の終了時である。したがって、制御手段は、確実に演
算処理手段を一時停止させることできる。
Therefore, the arithmetic processing means temporarily stops after the completion of each small unit processing. Thereby, in the input cycle of the reference signal, the arithmetic processing means repeats the operation start / stop more frequently than the digital signal processing circuit according to the first aspect. The operation is stopped at the end of each small unit process. Therefore, the control means can surely temporarily stop the arithmetic processing means.

【0021】これにより、デジタル信号処理回路は、消
費電流の変動周波数をさらに高い周波数まで確実に変更
できる。したがって、デジタル信号処理回路は、より確
実に、上記特定の周波数帯域の外まで消費電流の変動周
波数を変更でき、周辺回路に及ぼす悪影響を確実に軽減
できる。
Thus, the digital signal processing circuit can reliably change the fluctuation frequency of the current consumption to a higher frequency. Therefore, the digital signal processing circuit can more reliably change the fluctuation frequency of the current consumption to outside the specific frequency band, and can surely reduce the adverse effect on the peripheral circuits.

【0022】請求項3の発明に係るデジタル信号処理回
路は、上記課題を解決するために、請求項2記載の発明
の構成において、上記次処理開始時設定手段は、上記演
算処理手段が各少単位処理を開始する時点を基準にして
算出された次処理開始時点を上記制御手段へ指定するこ
とを特徴としている。
According to a third aspect of the present invention, in the digital signal processing circuit according to the second aspect of the present invention, in the configuration of the second aspect, the next processing start time setting means is configured such that the arithmetic processing means has a small capacity. The next processing start time calculated based on the time when the unit processing is started is designated to the control means.

【0023】したがって、各少単位処理の実行に要する
時間が変化しても、演算処理手段が次の少単位処理を開
始する時点は変化しない。この結果、演算処理手段が各
少単位処理を開始する時点を管理できる。特に、各少単
位処理の所要時間に関わらず、最後の少単位処理の開始
時点を決めることができるので、基準信号の1入力周期
内に全ての少単位処理が終わることを容易かつ確実に保
証できる。
Therefore, even when the time required to execute each small unit process changes, the time when the arithmetic processing unit starts the next small unit process does not change. As a result, it is possible to manage the point in time when the arithmetic processing unit starts each small unit process. In particular, since the start point of the last small unit process can be determined regardless of the time required for each small unit process, it is easily and reliably assured that all the small unit processes are completed within one input cycle of the reference signal. it can.

【0024】なお、各少単位処理の開始時点から次の少
単位処理の開始時点までの時間間隔を各少単位処理の最
大所要時間と同一に設定した場合、デジタル信号処理回
路の処理速度を落とすことなく、周辺回路へ与える悪影
響を低減できる。
If the time interval from the start of each small unit process to the start of the next small unit process is set to be the same as the maximum required time of each small unit process, the processing speed of the digital signal processing circuit is reduced. Therefore, adverse effects on peripheral circuits can be reduced.

【0025】[0025]

【発明の実施の形態】本発明の一実施形態について図1
ないし図3に基づいて説明すると以下の通りである。本
実施形態に係るデジタル信号処理回路は、例えば、オー
ディオ回路などに供され、デジタル信号処理プロセッサ
(以下では、DSPと称する)の一部として実現されて
いる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows an embodiment of the present invention.
The following is a description based on FIG. The digital signal processing circuit according to the present embodiment is provided to, for example, an audio circuit and is realized as a part of a digital signal processing processor (hereinafter, referred to as a DSP).

【0026】図1に示すように、本実施形態に係るDS
Pは、インターフェース1を介して外部から受け取った
基準信号に基づいて、システムクロックS1・S2(以
下では単にクロックS1・S2と略称する)など、DS
P内部で使用するシステムクロックを生成するクロック
ジェネレータ(制御手段)2と、クロックS1が供給さ
れている間、一連の少単位処理を次々に実行する演算処
理部(演算処理手段)3とを備えている。
As shown in FIG. 1, the DS according to this embodiment
P is DS based on a reference signal received from the outside via the interface 1, such as system clocks S1 and S2 (hereinafter simply referred to as clocks S1 and S2).
A clock generator (control means) 2 for generating a system clock used inside P, and an arithmetic processing unit (arithmetic processing means) 3 for sequentially executing a series of small unit processes while the clock S1 is supplied. ing.

【0027】この演算処理部3は、例えば、乗算器やA
LU( Arithmetic and Logical Unit)などの演算ユニ
ット、あるいは、ROM( Read-Only Memory )やRA
M(Random access Memory )などから構成されてお
り、上記クロックS1に同期して動作するプログラムカ
ウンタ4、プログラムROM5、デコーダー(次処理開
始時指定手段)6によって制御される。
The arithmetic processing unit 3 includes, for example, a multiplier and an A
Operation units such as LU (Arithmetic and Logical Unit), ROM (Read-Only Memory) and RA
M (Random Access Memory) and the like, and are controlled by a program counter 4, a program ROM 5, and a decoder (next processing start specifying means) 6 which operate in synchronization with the clock S1.

【0028】具体的には、上記プログラムROM5に
は、上記各少単位処理が命令コードとして予め記憶され
ている。プログラムカウンタ4が次に実行する命令コー
ドの格納アドレスをプログラムROM5へ指示すると、
デコーダー6は、この命令コードをデコードして、演算
処理部3へ制御信号を送出する。これにより、演算処理
部3は、クロックS1に従って、上記命令コードに対応
する少単位処理を実行できる。処理が終了すると、プロ
グラムカウンタ4は、カウント値を増加させる。
More specifically, the above-described small unit processes are stored in the program ROM 5 as instruction codes in advance. When the program counter 4 indicates the storage address of the instruction code to be executed next to the program ROM 5,
The decoder 6 decodes the instruction code and sends a control signal to the arithmetic processing unit 3. Thereby, the arithmetic processing unit 3 can execute the small-unit processing corresponding to the instruction code according to the clock S1. When the processing is completed, the program counter 4 increases the count value.

【0029】なお、各少単位処理と命令コードとは、1
対1に対応していてもよいし、1つの少単位処理が、複
数の命令コードによって構成されていてもよい。また、
以下では、説明の便宜上、基準信号の入力周期毎に、演
算処理部3が5つの少単位処理を実行する場合について
説明するが、これに限らず、少単位処理の数は、自由に
設定できる。
Note that each small unit process and instruction code are 1
It may correspond to one-to-one, or one small unit process may be constituted by a plurality of instruction codes. Also,
Hereinafter, for convenience of explanation, a case will be described in which the arithmetic processing unit 3 executes five small-unit processes for each input cycle of the reference signal. However, the present invention is not limited to this, and the number of small-unit processes can be freely set. .

【0030】上記プログラムカウンタ4は、上記クロッ
クジェネレータ2によって、基準信号の入力トリガー毎
に初期化される。したがって、上記演算処理部3は、基
準信号の入力がある度に、プログラムROM5に記憶し
た命令コードに基づき、一連の少単位処理を実行でき
る。
The program counter 4 is initialized by the clock generator 2 every time a reference signal is input. Therefore, the arithmetic processing unit 3 can execute a series of small unit processes based on the instruction code stored in the program ROM 5 every time a reference signal is input.

【0031】また、クロックジェネレータ2は、クロッ
クS1・S2の発振/停止を制御する。これにより、ク
ロックS1・S2に同期して動作する他の回路を動作さ
せたり、停止させたりできる。例えば、演算処理部3が
全ての処理を終了した場合、クロックジェネレータ2
は、クロックS1の生成を停止する。この結果、上記各
回路3・4・5・6は、停止し、消費電流を低減でき
る。
The clock generator 2 controls oscillation / stop of the clocks S1 and S2. Thus, other circuits operating in synchronization with the clocks S1 and S2 can be operated or stopped. For example, when the arithmetic processing unit 3 completes all processing, the clock generator 2
Stops generating the clock S1. As a result, the circuits 3, 4, 5, and 6 are stopped, and current consumption can be reduced.

【0032】さらに、本実施形態に係るDSPには、演
算処理部3が各少単位処理を開始するタイミングを制御
するために、ステップカウンタ7、レジスタ8および比
較器9が設けられている。これら、ステップカウンタ
7、レジスタ8および比較器9は、特許請求の範囲に記
載の制御手段に対応している。
Further, the DSP according to the present embodiment is provided with a step counter 7, a register 8, and a comparator 9 in order to control the timing at which the arithmetic processing unit 3 starts each small unit process. These step counter 7, register 8 and comparator 9 correspond to the control means described in the claims.

【0033】上記ステップカウンタ7は、クロックS2
のパルス数を数えることができる。また、ステップカウ
ンタ7は、クロックジェネレータ2によって、基準信号
が入力される度に0クリアされる。これにより、基準信
号が入力されてから経過した時間を計測できる。基準信
号におけるトリガー入力周期をT、クロックS2の周期
をcとすると、クロックS2では、周期T毎にT/c個
のパルスが生成される。したがって、ステップカウンタ
7は、最大カウント値NmaxがT/cとなり、このN
maxをカウント可能なビット数を持っている。
The step counter 7 operates at the clock S2
Can be counted. The step counter 7 is cleared to 0 each time the reference signal is input by the clock generator 2. Thus, the time elapsed since the input of the reference signal can be measured. Assuming that the trigger input cycle in the reference signal is T and the cycle of the clock S2 is c, T / c pulses are generated in the clock S2 for each cycle T. Therefore, the step counter 7 determines that the maximum count value Nmax is T / c,
It has a bit number that can count max.

【0034】また、レジスタ8は、デコーダー6から、
クロックS1に同期して送られる次処理開始ステップ値
を保持できる。次処理開始ステップ値は、演算処理部3
が次の少単位処理を開始する時点を示しており、次処理
開始時点において、ステップカウンタ7が示すカウント
値で表現されている。
The register 8 is provided from the decoder 6
The next processing start step value sent in synchronization with the clock S1 can be held. The next processing start step value is calculated by the arithmetic processing unit 3
Indicates the time point at which the next small unit process starts, and is represented by the count value indicated by the step counter 7 at the time point when the next process starts.

【0035】さらに、比較器9は、クロックS2に同期
して、ステップカウンタ7が示すカウント値とレジスタ
8が保持する次処理開始ステップ値とを比較する。両者
が一致した場合、比較器9は、次処理開始時点になった
と判定し、クロックジェネレータ2にクロックS1の供
給を開始させる。これにより、演算処理部3は、次の少
単位処理を開始する。
Further, the comparator 9 compares the count value indicated by the step counter 7 with the next processing start step value held by the register 8 in synchronization with the clock S2. If they match, the comparator 9 determines that the next processing start time has come, and causes the clock generator 2 to start supplying the clock S1. Thereby, the arithmetic processing unit 3 starts the next small unit processing.

【0036】一方、次処理開始ステップ値は、デコーダ
ー6によって、上記レジスタ8へ設定される。すなわ
ち、プログラムROM5には、各次処理開始ステップ値
を記憶する領域が設けられており、この領域には、各少
単位処理に応じた次処理開始ステップ値が予め記憶され
ている。本実施形態に係るデコーダー6は、演算処理部
3が少単位処理を開始する度に、プログラムROM5の
領域から各少単位処理に対応した次処理開始ステップ値
を読み出してレジスタ8へ設定できる。
On the other hand, the next processing start step value is set in the register 8 by the decoder 6. That is, the program ROM 5 is provided with an area for storing each next processing start step value, and in this area, the next processing start step value corresponding to each small unit processing is stored in advance. The decoder 6 according to the present embodiment can read the next process start step value corresponding to each small unit process from the area of the program ROM 5 and set it in the register 8 every time the arithmetic processing unit 3 starts the small unit process.

【0037】本実施形態では、各少単位処理の次処理開
始時点は、演算処理部3が当該少単位処理を実行する
際、最も時間がかかる場合に基づいて設定される。した
がって、上記各少単位処理の次処理開始ステップ値は、
該少単位処理の最大ステップ数、および、それまでに実
行された少単位処理の最大ステップ数の総和となる。
In the present embodiment, the starting point of the next process of each small unit process is set based on the case where the arithmetic processing unit 3 takes the longest time to execute the small unit process. Therefore, the next process start step value of each of the above small unit processes is:
This is the sum of the maximum number of steps of the small-unit processing and the maximum number of steps of the small-unit processing executed so far.

【0038】例えば、少単位処理a1ないしa5の最大
ステップ数を、それぞれM1ないしM5、次処理開始ス
テップ値をそれぞれN1ないしN5とすると、少単位処
理a1の次処理開始ステップ値N1は、M1に設定され
る。また、N2=M1+M2、N3=M1+M2+M
3、および、N4=M1+M2+M3+M4にそれぞれ
設定されている。なお、本実施形態に係るクロックジェ
ネレータ2は、演算処理部3が最後の少単位処理a5を
終了した場合、クロックS1・S2を停止させる。した
がって、N5は、例えば、Nmaxや0など、N5の設
定以降、ステップカウンタ7が示すことの無い値に設定
される。
For example, if the maximum number of steps of the small unit processes a1 to a5 is M1 to M5, and the next process start step value is N1 to N5, the next process start step value N1 of the small unit process a1 is M1. Is set. N2 = M1 + M2, N3 = M1 + M2 + M
3, and N4 = M1 + M2 + M3 + M4. Note that the clock generator 2 according to the present embodiment stops the clocks S1 and S2 when the arithmetic processing unit 3 completes the last small unit processing a5. Therefore, N5 is set to a value that the step counter 7 does not indicate after the setting of N5, such as Nmax or 0.

【0039】さらに、本実施形態に係るデコーダー6
は、演算処理部3が各少単位処理を終了した時点で、ク
ロックジェネレータ2へクロックS1の供給停止を指示
できる。この結果、演算処理部3は、各少単位処理の終
了毎に、次にクロックS1が供給されるまで停止する。
Further, the decoder 6 according to the present embodiment
Can instruct the clock generator 2 to stop supplying the clock S1 when the arithmetic processing unit 3 completes each small unit process. As a result, the arithmetic processing unit 3 stops until the next clock S1 is supplied each time each small unit process is completed.

【0040】上記構成のDSPにおいて、演算処理時に
おける各部の動作について、図3に示すタイミングチャ
ートを参照し、図2に示すフローチャートに基づいて、
各ステップ毎に説明すると以下の通りである。
In the DSP having the above configuration, the operation of each unit at the time of arithmetic processing will be described with reference to the timing chart shown in FIG. 3 and the flowchart shown in FIG.
The following is a description of each step.

【0041】すなわち、最初のステップ1(以下では、
S1のように略称する)では、インターフェース1は、
基準信号入力の有無を判定し、立ち上がりや立ち下がり
など、トリガーとなる基準信号の入力があるまで待機す
る。
That is, the first step 1 (hereinafter, referred to as
Interface 1 is abbreviated as S1).
It determines whether there is a reference signal input, and waits until a reference signal serving as a trigger, such as rising or falling, is input.

【0042】インターフェース1が基準信号の入力を検
出すると、クロックジェネレータ2は、プログラムカウ
ンタ4およびステップカウンタ7を初期化する(S
2)。これにより、プログラムカウンタ4およびステッ
プカウンタ7のカウント値は、0に初期化される(図3
に示すt0の時点)。
When the interface 1 detects the input of the reference signal, the clock generator 2 initializes the program counter 4 and the step counter 7 (S
2). As a result, the count values of the program counter 4 and the step counter 7 are initialized to 0 (see FIG. 3).
At time t0 shown in FIG.

【0043】また、クロックジェネレータ2は、クロッ
クS1およびクロックS2を発振させる(S3)。この
結果、ステップカウンタ7および比較器9には、クロッ
クS2が供給される。これにより、図3の(b)に示す
ように、ステップカウンタ7のカウント値は、クロック
S2が供給されている間、時間の経過と共に増加する。
一方、演算処理部3、プログラムカウンタ4、プログラ
ムROM5、デコーダー6、およびレジスタ8には、ク
ロックS1が供給される。この結果、図3の(c)に示
すように、上記演算処理部3は、クロックS1に同期し
て動作を開始する。
The clock generator 2 oscillates the clock S1 and the clock S2 (S3). As a result, the clock S2 is supplied to the step counter 7 and the comparator 9. Thus, as shown in FIG. 3B, the count value of the step counter 7 increases with the passage of time while the clock S2 is supplied.
On the other hand, a clock S1 is supplied to the arithmetic processing unit 3, the program counter 4, the program ROM 5, the decoder 6, and the register 8. As a result, as shown in FIG. 3C, the arithmetic processing unit 3 starts operating in synchronization with the clock S1.

【0044】S4において、上記プログラムカウンタ
4、プログラムROM5、およびデコーダー6は、クロ
ックS1に従って、演算処理部3が次に処理する少単位
処理を識別し、演算処理部3へ指示する。すなわち、ク
ロックS1のカウント毎に、プログラムカウンタ4の示
すアドレスは、プログラムROM5へ与えられる。プロ
グラムROM5は、与えられたアドレスに格納された命
令コードを読み出してデコーダー6へ送出する。デコー
ダー6は、この命令コードをデコードして、演算処理部
3を構成する乗算器、ALU、ROM、およびRAMな
どへ制御信号を送出する。また、S5において、デコー
ダー6は、プログラムROM5から次処理開始ステップ
値を読み出して、レジスタ8へ格納する。
In S4, the program counter 4, the program ROM 5, and the decoder 6 identify a small unit process to be processed next by the arithmetic processing unit 3 according to the clock S1, and instruct the arithmetic processing unit 3. That is, the address indicated by the program counter 4 is supplied to the program ROM 5 every time the clock S1 is counted. The program ROM 5 reads out the instruction code stored at the given address and sends it to the decoder 6. The decoder 6 decodes the instruction code and sends out a control signal to a multiplier, an ALU, a ROM, a RAM, and the like that constitute the arithmetic processing unit 3. In S5, the decoder 6 reads the next processing start step value from the program ROM 5 and stores it in the register 8.

【0045】例えば、図3に示すt0の時点では、プロ
グラムカウンタ4は、少単位処理a1に対応した命令コ
ードの格納アドレスを示している。したがって、演算処
理部3は、デコーダー6から送られる制御信号に基づい
て、少単位処理a1の実行を開始する。また、デコーダ
ー6は、少単位処理a1に対応した次処理開始ステップ
値N1をレジスタ8へ設定する。
For example, at time t0 shown in FIG. 3, the program counter 4 indicates the storage address of the instruction code corresponding to the small unit processing a1. Therefore, the arithmetic processing unit 3 starts the execution of the small unit processing a1 based on the control signal sent from the decoder 6. Further, the decoder 6 sets the next processing start step value N1 corresponding to the small unit processing a1 in the register 8.

【0046】一方、演算処理部3は、S4にてデコーダ
ー6より受け取った制御信号に基づき、少単位処理を行
う。また、デコーダー6は、演算処理部3の少単位処理
が終了したか否かを判定して、実行終了まで待機する
(S6)。クロックS2は、この間も供給されているの
で、ステップカウンタ7のカウント値は、増加している
(t0からt1までの期間)。
On the other hand, the arithmetic processing section 3 performs small unit processing based on the control signal received from the decoder 6 in S4. Further, the decoder 6 determines whether or not the small unit processing of the arithmetic processing unit 3 has been completed, and waits until the execution is completed (S6). Since the clock S2 is supplied during this time, the count value of the step counter 7 is increasing (period from t0 to t1).

【0047】処理が終了すると、デコーダー6は、プロ
グラムROM5から新たなデータが与えられているか否
かなどによって、基準信号の周期T内に実行する必要が
ある他の少単位処理があるか否かを判定する(S7)。
次の少単位処理がある場合、クロックジェネレータ2
は、クロックS1を停止させる(S8)。これにより、
演算処理部3やプログラムカウンタ4などは動作を停止
する(図3に示すt1の時点)。
When the processing is completed, the decoder 6 determines whether or not there is another small unit processing that needs to be executed within the cycle T of the reference signal, depending on whether or not new data is given from the program ROM 5. Is determined (S7).
If there is next small unit processing, clock generator 2
Stops the clock S1 (S8). This allows
The arithmetic processing unit 3 and the program counter 4 stop operating (at time t1 shown in FIG. 3).

【0048】一方、クロックジェネレータ2は、クロッ
クS2を供給し続ける。したがって、ステップカウンタ
7のカウント値は、時間の経過に伴って増加している。
S9において、比較器9は、S5にてレジスタ8に設定
された次処理開始ステップ値とステップカウンタ7のカ
ウント値とをカウント毎に比較し、両者が一致するまで
待機する。この状態では、クロックS1が供給されてい
ないため、演算処理部3は停止している。
On the other hand, the clock generator 2 continues to supply the clock S2. Therefore, the count value of the step counter 7 increases with time.
In S9, the comparator 9 compares the next processing start step value set in the register 8 in S5 with the count value of the step counter 7 for each count, and waits until the values match. In this state, since the clock S1 is not supplied, the arithmetic processing unit 3 is stopped.

【0049】例えば、図3に示すt1の時点では、レジ
スタ8は、次処理開始ステップ値としてN1を保持して
いる。したがって、演算処理部3は、少単位処理a1の
実行後、ステップカウンタ7のカウント値が増加してN
1になる時点、すなわち、t2の時点まで待機する。
For example, at time t1 shown in FIG. 3, the register 8 holds N1 as the next processing start step value. Therefore, after the execution of the small unit process a1, the arithmetic processing unit 3 increases the count value of the step counter 7 to N
It waits until it becomes 1, that is, t2.

【0050】両者が一致した場合、すなわち、次処理開
始時点になると、S3に戻り、クロックジェネレータ2
はクロックS1の供給を再開する(図3に示すt2の時
点)。その後、S4以降の処理が実行され、演算処理部
3は、次の少単位処理を実行する。
If they match, that is, when it is time to start the next process, the process returns to S3 and the clock generator 2
Restarts the supply of the clock S1 (at time t2 shown in FIG. 3). After that, the processing after S4 is executed, and the arithmetic processing unit 3 executes the next small unit processing.

【0051】上記S3ないしS9は、各少単位処理毎に
繰り返され、DSPは、ある少単位処理を実行後、若干
の停止期間をおいて、次の少単位処理を行う。これによ
り、図3に示すt2からt3までの期間において、演算
処理部3は、少単位処理a2ないしa5を実行する。こ
の結果、図3の(d)に示すように、本実施形態に係る
DSPにおいて、消費電流の変動周波数は、図4の
(c)に示す従来のDSPに比べ、約5倍の周波数とな
り、より高周波側へシフトする。なお、本実施形態で
は、基準信号の入力周期毎に演算処理部3が行う処理を
5つの少単位処理に分割しているが、さらに多くの少単
位処理に分割することによって、上記変動周波数をより
高周波側に移動できる。上記少単位処理の個数は、基準
信号の周波数と、移動後の周波数との比率から自由に決
めることができる。
Steps S3 to S9 are repeated for each small-unit process. After executing a certain small-unit process, the DSP performs a next small-unit process after a short stop period. Thus, the arithmetic processing unit 3 executes the small unit processes a2 to a5 during the period from t2 to t3 shown in FIG. As a result, as shown in FIG. 3D, in the DSP according to the present embodiment, the fluctuation frequency of the current consumption is about five times that of the conventional DSP shown in FIG. Shift to higher frequency side. Note that, in the present embodiment, the processing performed by the arithmetic processing unit 3 is divided into five small unit processes for each input cycle of the reference signal. Can move to higher frequency side. The number of the small unit processes can be freely determined from the ratio between the frequency of the reference signal and the frequency after the movement.

【0052】全ての少単位処理が終了した場合(上記S
7で YESの場合)、S10において、クロックジェネレ
ータ2は、両クロックS1・S2を停止させる(図3に
示すt3の時点)。その後、S1に戻り、DSPは、次
の基準信号が入力されるまで待機する。これにより、D
SPは、基準信号のトリガー入力毎に上記S1ないしS
10の処理を繰り返す。
When all the small unit processes have been completed (S
7 (YES), in S10, the clock generator 2 stops both clocks S1 and S2 (at time t3 shown in FIG. 3). After that, returning to S1, the DSP waits until the next reference signal is input. This gives D
SP is set to S1 to S for each trigger input of the reference signal.
Step 10 is repeated.

【0053】なお、本実施形態では、全ての少単位処理
が終了した場合、クロックジェネレータ2がクロックS
2を停止しているので、ステップカウンタ7のカウント
値は、図3の(b)に示すようにt3以降は増加しな
い。
In this embodiment, when all the small unit processes are completed, the clock generator 2
2 is stopped, the count value of the step counter 7 does not increase after t3 as shown in FIG. 3B.

【0054】以上のように、本実施形態に係るDSP
は、クロックS1を供給するか否かによって演算処理部
3を動作あるいは停止させるクロックジェネレータ2
と、少単位処理に応じて次処理開始ステップ値をレジス
タ8へ設定するデコーダー6と、時間を計測するステッ
プカウンタ7と、次処理開始ステップ値を保持するレジ
スタ8と、比較器9とを備えている。これにより、クロ
ックジェネレータ2は、演算処理部3が各少単位処理を
終了する毎に当該演算処理部3を停止させると共に、ス
テップカウンタ7およびレジスタ8が示す値が一致した
場合、すなわち、演算処理部3が処理を再開する時点に
なった場合、比較器9が、演算処理部3の動作再開をク
ロックジェネレータ2へ指示する構成である。
As described above, the DSP according to this embodiment
Is a clock generator 2 that operates or stops the arithmetic processing unit 3 depending on whether or not the clock S1 is supplied.
A decoder 6 for setting the next processing start step value in the register 8 in accordance with the small unit processing; a step counter 7 for measuring time; a register 8 for holding the next processing start step value; ing. Thus, the clock generator 2 stops the arithmetic processing unit 3 each time the arithmetic processing unit 3 completes each small unit process, and when the values indicated by the step counter 7 and the register 8 match, When it is time to restart the processing of the unit 3, the comparator 9 instructs the clock generator 2 to restart the operation of the arithmetic processing unit 3.

【0055】したがって、本実施形態に係るDSPは、
各少単位処理の終了時から、次処理開始ステップ値が示
す時点まで、演算処理部3を停止させることができる。
この結果、従来に比べて、演算処理部3の動作開始や停
止に伴うDSPの消費電流の変動周波数を高周波側に変
更できる。
Therefore, the DSP according to the present embodiment is
The arithmetic processing unit 3 can be stopped from the end of each small unit process to the time indicated by the next process start step value.
As a result, the fluctuation frequency of the current consumption of the DSP due to the start and stop of the operation of the arithmetic processing unit 3 can be changed to a higher frequency side as compared with the related art.

【0056】ところで、上記DSPがオーディオ回路に
供された場合、DSPの消費電流が可聴帯域の周波数で
変動すると、DSPへ定電圧を供給する電源回路や、当
該電源回路から電力の供給を受ける回路など、周辺回路
(図示せず)は、上記消費電流の変動は、可聴ノイズと
して悪影響を与え、深刻な問題となる。
When the DSP is supplied to an audio circuit and the current consumption of the DSP fluctuates at a frequency in the audible band, a power supply circuit for supplying a constant voltage to the DSP or a circuit for receiving power supply from the power supply circuit In a peripheral circuit (not shown), the fluctuation of the current consumption has an adverse effect as audible noise, and becomes a serious problem.

【0057】ところが、本実施形態に係るDSPでは、
消費電流の変動周波数を変更して、可聴帯域外へ移動で
きるので、上記周辺回路へ与える悪影響を軽減できる。
したがって、周辺回路は、ノイズへの耐性を従来に比べ
低く設定できる。この結果、周辺回路は、従来ほど回路
の強化を必要とせず、オーディオ回路など、DSPが供
される装置の製造コストを削減できる。
However, in the DSP according to the present embodiment,
Since it is possible to change the fluctuation frequency of the consumption current and move the current out of the audible band, it is possible to reduce the adverse effect on the peripheral circuits.
Therefore, the peripheral circuit can set the resistance to noise lower than before. As a result, the peripheral circuit does not require the enhancement of the circuit as compared with the related art, and the manufacturing cost of the device provided with the DSP, such as the audio circuit, can be reduced.

【0058】なお、本実施形態に係るDSPでは、クロ
ックジェネレータ2は、各少単位処理の終了してから、
比較器9が指示するまでの間、演算処理部3の動作を中
断させているが、これに限るものではない。例えば、幾
つかの少単位処理を終了する毎に、演算処理部3を中断
させてもよい。さらに、演算処理部3が少単位処理を実
行中に、処理を中断させてもよい。基準信号の入力周期
毎に少なくとも1回、演算処理部3を一時停止させるこ
とにより、本実施形態と同様の効果が得られる。
Note that, in the DSP according to the present embodiment, the clock generator 2 performs
The operation of the arithmetic processing unit 3 is interrupted until the instruction from the comparator 9 is given, but the present invention is not limited to this. For example, the arithmetic processing unit 3 may be interrupted every time some small unit processing is completed. Further, the processing may be interrupted while the arithmetic processing unit 3 is executing the small unit processing. By suspending the arithmetic processing unit 3 at least once every input cycle of the reference signal, the same effect as in the present embodiment can be obtained.

【0059】ただし、各少単位処理の終了時に、演算処
理部3を一時停止させることによって、演算処理部3の
動作開始や停止は、より頻繁に発生する。したがって、
DSPは、消費電流の変動周波数をより高い帯域に設定
できる。この結果、変動周波数をより柔軟に変更でき、
可聴帯域外へ確実に移動できる。これにより、上記周辺
回路へ及ぼす悪影響をさらに確実に軽減できる。また、
演算処理部3が停止する時点を各少単位処理の終了時に
特定できる。したがって、例えば、演算処理部3が特定
の命令コードを実行している間など、演算処理部3が停
止すると不具合が発生する期間がある場合、当該期間中
における演算処理部3の停止を防止できる。
However, when the arithmetic processing unit 3 is temporarily stopped at the end of each small-unit processing, the operation start and stop of the arithmetic processing unit 3 occur more frequently. Therefore,
The DSP can set the fluctuation frequency of the current consumption to a higher band. As a result, the fluctuating frequency can be changed more flexibly,
It can move out of the audible band without fail. As a result, the adverse effect on the peripheral circuit can be reduced more reliably. Also,
The point at which the arithmetic processing unit 3 stops can be specified at the end of each small unit process. Therefore, for example, when there is a period in which a malfunction occurs when the arithmetic processing unit 3 stops, such as while the arithmetic processing unit 3 is executing a specific instruction code, the stop of the arithmetic processing unit 3 during the period can be prevented. .

【0060】また、本実施形態では、各少単位処理を開
始してから、次の少単位処理を開始するまでの期間が決
められているが、これに限るものではない。例えば、少
単位処理を終了してから、所定の期間、演算処理部3を
停止させてもよい。ただし、演算処理部3における各少
単位処理の所要時間が変化すると、基準信号の入力から
各少単位処理を開始するまでの時間が変化するので、演
算処理部3が各少単位処理を実行する期間を特定しにく
い。この結果、基準信号の入力周期毎に、演算処理部3
が各少単位処理を終了できるか否かを保証しにくい。
In this embodiment, the period from the start of each small unit process to the start of the next small unit process is determined, but the present invention is not limited to this. For example, the arithmetic processing unit 3 may be stopped for a predetermined period after the small unit processing is completed. However, if the time required for each small unit process in the arithmetic processing unit 3 changes, the time from the input of the reference signal to the start of each small unit process changes, so that the arithmetic processing unit 3 executes each small unit process. It is difficult to specify the period. As a result, for each input cycle of the reference signal, the arithmetic processing unit 3
It is difficult to guarantee whether each small unit process can be completed.

【0061】ところが、本実施形態に係るステップカウ
ンタ7は、基準信号の入力毎に初期化され、基準信号の
入力から各少単位処理を開始するまでの期間を計時でき
る。この結果、演算処理部3は、各少単位処理の所要時
間によらず、常に一定の時点から次の少単位処理を開始
できる。したがって、演算処理部3が各少単位処理を実
行する期間を、より確実に特定できる。この結果、演算
処理部3の停止期間を許容範囲内に確実に抑えることが
でき、演算処理部3が全ての少単位処理を基準信号の入
力周期内に終了することを容易に保証できる。
However, the step counter 7 according to the present embodiment is initialized each time the reference signal is input, and can measure a period from the input of the reference signal to the start of each small-unit processing. As a result, the arithmetic processing unit 3 can always start the next small unit process from a fixed point in time regardless of the time required for each small unit process. Therefore, the period during which the arithmetic processing unit 3 executes each small unit process can be specified more reliably. As a result, the suspension period of the arithmetic processing unit 3 can be reliably suppressed within an allowable range, and it can be easily assured that the arithmetic processing unit 3 completes all the small-unit processing within the input cycle of the reference signal.

【0062】また、各少単位処理の最大ステップ数の和
を次処理開始ステップ値として設定することによって、
DSPの処理速度を落とすことなく、消費電流の変動周
波数を変更できる。なお、演算処理部3が最大ステップ
数で少単位処理を実行した場合、当該少単位処理の終了
時に、演算処理部3は停止しない。したがって、このよ
うな場合が連続すると、上記変動周波数が上昇せず、不
具合が生ずる。ところが、演算処理部3が最大ステップ
数にて少単位処理を実行する場合は、特定の場合なの
で、通常は、何ら支障とならない。
By setting the sum of the maximum number of steps of each small unit process as the next process start step value,
The fluctuation frequency of the current consumption can be changed without lowering the processing speed of the DSP. When the arithmetic processing unit 3 executes the small unit process with the maximum number of steps, the arithmetic processing unit 3 does not stop at the end of the small unit process. Therefore, if such a case continues, the fluctuation frequency does not increase and a problem occurs. However, when the arithmetic processing unit 3 executes the small-unit processing with the maximum number of steps, it is a specific case, so that there is usually no problem.

【0063】なお、本実施形態に係るデコーダー6は、
プログラムROM5に予め記憶したデータに基づいて、
レジスタ8へ次処理開始ステップ値を設定しているが、
これに限るものではない。デコーダー6は、演算処理部
3が実行する少単位処理に応じて、次処理開始ステップ
値を算出し、レジスタ8へ設定してもよい。さらに、本
実施形態では、基準信号の入力毎に、ステップカウンタ
7を初期化させているが、これに限るものではない。例
えば、各少単位処理の開始時などに初期化してもよい。
また、ステップカウンタ7をクリアしなくてもよい。た
だし、デコーダー6がレジスタ8へ次処理開始ステップ
値を設定する際に、現在のカウント値から次処理開始ス
テップ値を算出する必要があるので、デコーダー6の処
理が複雑になる。いずれにしても、各少単位処理の間に
設けられる停止期間中、ステップカウンタ7がクロック
S2をカウントし、次の少単位処理の開始時を決定でき
るものであれば、本実施形態と同様の効果が得られる。
Note that the decoder 6 according to the present embodiment
Based on the data stored in advance in the program ROM 5,
Although the next processing start step value is set in the register 8,
It is not limited to this. The decoder 6 may calculate the next processing start step value in accordance with the small-unit processing executed by the arithmetic processing unit 3 and set the calculated value in the register 8. Furthermore, in the present embodiment, the step counter 7 is initialized every time the reference signal is input, but the present invention is not limited to this. For example, it may be initialized at the start of each small unit process.
Further, the step counter 7 need not be cleared. However, when the decoder 6 sets the next processing start step value in the register 8, it is necessary to calculate the next processing start step value from the current count value, so that the processing of the decoder 6 is complicated. In any case, as long as the step counter 7 can count the clock S2 during the stop period provided between the small unit processes and determine the start time of the next small unit process, the same as in the present embodiment. The effect is obtained.

【0064】また、本実施形態に係るDSPでは、クロ
ックジェネレータ2がクロックS1を停止することによ
って、演算処理部3を停止させているが、これに限るも
のではない。例えば、ノンオペレーション処理を繰り返
すように演算処理部3へ指示することによって、演算処
理部3による少単位処理実行を停止させてもよい。この
場合は、比較器9に代えて、DSP内のALUなどを用
い、ステップカウンタ7とレジスタ8とを比較すること
もできる。さらに、ノンオペレーション処理を繰り返す
回数によって計時できるので、DSPが所定のプログラ
ムを実行することによって、ステップカウンタ7および
レジスタ8を代替えできる。また、ノンオペレーション
の回数によって計時する場合は、クロックジェネレータ
2がクロックS2を生成する必要はない。いずれの場合
も、演算処理部3がノンオペレーション処理を繰り返し
ている間、演算ユニットなど、演算処理部3を構成する
回路のうち、消費電流が大きい回路は、動作を停止して
いるため、演算処理部3全体の消費電流は減少する。こ
の結果、本実施形態と略同様の効果が得られる。
In the DSP according to the present embodiment, the clock generator 2 stops the clock S1 to stop the arithmetic processing unit 3, but the present invention is not limited to this. For example, the execution of the small-unit processing by the arithmetic processing unit 3 may be stopped by instructing the arithmetic processing unit 3 to repeat the non-operation processing. In this case, the step counter 7 and the register 8 can be compared by using an ALU or the like in the DSP instead of the comparator 9. Further, since the time can be measured by the number of times the non-operation processing is repeated, the DSP executes a predetermined program, so that the step counter 7 and the register 8 can be substituted. In addition, when clocking is performed by the number of non-operations, the clock generator 2 does not need to generate the clock S2. In any case, while the arithmetic processing unit 3 repeats the non-operation processing, among the circuits constituting the arithmetic processing unit 3 such as the arithmetic unit, the circuits with large current consumption stop operating. The current consumption of the entire processing unit 3 decreases. As a result, substantially the same effects as in the present embodiment can be obtained.

【0065】ただし、クロックS1を停止させた場合、
クロックジェネレータ2やプログラムカウンタ4などが
停止するので、クロックS1の動作時に比べ、DSPの
消費電流をより低減できる。また、ステップカウンタ7
がクロックS2のパルス数を数えることによって、演算
処理部3やプログラムカウンタ4などへ供給するクロッ
クS1とは独立して、停止期間を計時し、演算処理部3
の次処理開始時点を決定できる。したがって、動作期間
と停止期間との比率を、より細かく設定できる。
However, when the clock S1 is stopped,
Since the clock generator 2 and the program counter 4 are stopped, the current consumption of the DSP can be further reduced as compared with the operation of the clock S1. Step counter 7
Counts the number of pulses of the clock S2, thereby measuring the suspension period independently of the clock S1 supplied to the arithmetic processing unit 3, the program counter 4, and the like.
Of the next process can be determined. Therefore, the ratio between the operation period and the stop period can be set more finely.

【0066】なお、本実施形態に係るデジタル信号処理
回路は、オーディオ回路に用いられているが、これに限
るものではない。例えば、画像処理回路などに用いても
よい。所定の基準信号毎に、一定量の信号処理を行うデ
ジタル信号処理回路と、影響を受けやすい特定の周波数
帯域を持つ周辺回路とを備える装置であれば、本発明を
適用することができる。
The digital signal processing circuit according to the present embodiment is used for an audio circuit, but is not limited to this. For example, it may be used for an image processing circuit or the like. The present invention can be applied to any device including a digital signal processing circuit that performs a predetermined amount of signal processing for each predetermined reference signal and a peripheral circuit having a specific frequency band that is easily affected.

【0067】[0067]

【発明の効果】請求項1の発明に係るデジタル信号処理
回路は、以上のように、基準信号の入力周期毎に少なく
とも1回、演算処理手段に少単位処理の処理を一時中断
させる制御手段を備えている構成である。
As described above, the digital signal processing circuit according to the first aspect of the present invention includes the control means for causing the arithmetic processing means to temporarily suspend the processing of the small unit processing at least once every input cycle of the reference signal. It is a configuration provided.

【0068】それゆえ、デジタル信号処理回路は、消費
電流の変動周波数を高周波側に調整でき、周辺回路へ与
える悪影響を軽減できるという効果を奏する。さらに、
ノイズへの耐性を従来より低く設定できるので、周辺回
路の構成を簡略にすると共に製造に要するコストを削減
できるという効果を併せて奏する。
Therefore, the digital signal processing circuit has an effect that the fluctuation frequency of the current consumption can be adjusted to the high frequency side, and the adverse effect on the peripheral circuits can be reduced. further,
Since the resistance to noise can be set lower than before, the effects of simplifying the configuration of the peripheral circuit and reducing the cost required for manufacturing are also achieved.

【0069】請求項2の発明に係るデジタル信号処理回
路は、以上のように、請求項1記載のデジタル信号処理
回路において、上記演算処理手段が次の少単位処理を開
始する時点を、上記制御手段へ指定する次処理開始時指
定手段を備えている。また、上記制御手段は、各少単位
処理が終了してから、上記次処理開始時指定手段が指定
した次処理開始時点までの間、上記演算処理手段を待機
させる構成である。
As described above, the digital signal processing circuit according to the second aspect of the present invention is the digital signal processing circuit according to the first aspect, wherein the point at which the arithmetic processing means starts the next small unit processing is controlled by the control. There is provided a next process start time designation means for designating the means. Further, the control means is configured to make the arithmetic processing means wait from the end of each small-unit processing to the next processing start time designated by the next processing start time designation means.

【0070】それゆえ、デジタル信号処理回路は、消費
電流の変動周波数をさらに高い周波数まで確実に変更で
きる。この結果、周辺回路に及ぼす悪影響をさらに軽減
できるという効果を奏する。
Therefore, the digital signal processing circuit can reliably change the fluctuation frequency of the current consumption to a higher frequency. As a result, there is an effect that the adverse effect on the peripheral circuit can be further reduced.

【0071】請求項3の発明に係るデジタル信号処理回
路は、以上のように、請求項2記載の発明の構成におい
て、上記次処理開始時設定手段は、上記演算処理手段が
各少単位処理を開始する時点を基準にして算出された次
処理開始時点を上記制御手段へ指定する構成である。
As described above, in the digital signal processing circuit according to the third aspect of the present invention, in the configuration of the second aspect of the present invention, the next processing start time setting means is configured such that the arithmetic processing means performs each small unit processing. In the configuration, the next processing start time calculated based on the start time is designated to the control means.

【0072】それゆえ、各少単位処理の実行に要する時
間が変化しても、演算処理手段が次の少単位処理を開始
する時点を一定に保つことができる。特に、各少単位処
理の所要時間に関わらず、最後の少単位処理の開始時点
を決定できるので、基準信号の1入力周期内に全ての少
単位処理が終わることを容易かつ確実に保証できるとい
う効果を奏する。
Therefore, even when the time required to execute each small unit process changes, the time when the arithmetic processing unit starts the next small unit process can be kept constant. In particular, since the start time of the last small unit process can be determined regardless of the time required for each small unit process, it is possible to easily and reliably guarantee that all the small unit processes are completed within one input cycle of the reference signal. It works.

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

【図1】本発明の一実施形態を示すものであり、デジタ
ル信号処理回路の要部構成を示すブロック図である。
FIG. 1 illustrates one embodiment of the present invention, and is a block diagram illustrating a main configuration of a digital signal processing circuit.

【図2】上記デジタル信号処理回路の動作を示すフロー
チャートである。
FIG. 2 is a flowchart showing an operation of the digital signal processing circuit.

【図3】上記デジタル信号処理回路において、各部の波
形や信号処理イメージを示すタイミングチャートであ
る。
FIG. 3 is a timing chart showing a waveform of each part and a signal processing image in the digital signal processing circuit.

【図4】従来例を示すものであり、デジタル信号処理回
路各部の波形や、信号処理イメージを示すタイミングチ
ャートである。
FIG. 4 shows a conventional example, and is a timing chart showing a waveform of each part of a digital signal processing circuit and a signal processing image.

【符号の説明】[Explanation of symbols]

2 クロックジェネレータ(制御手段) 3 演算処理部(演算処理手段) 6 デコーダー(次処理開始時指定手段) 7 ステップカウンタ(制御手段) 8 レジスタ(制御手段) 9 比較器(制御手段) Reference Signs List 2 Clock generator (control means) 3 Arithmetic processing section (arithmetic processing means) 6 Decoder (next processing start specifying means) 7 Step counter (control means) 8 Register (control means) 9 Comparator (control means)

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平6−67899(JP,A) 特開 平2−28833(JP,A) 特開 平2−110733(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 9/30 - 9/355 G06F 9/46 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-6-67899 (JP, A) JP-A-2-28833 (JP, A) JP-A-2-110733 (JP, A) (58) Field (Int.Cl. 7 , DB name) G06F 9/30-9/355 G06F 9/46

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】基準信号の入力があった場合、複数の少単
位処理を次々に実行し、その後、次の基準信号入力まで
待機する演算処理手段を有するデジタル信号処理回路に
おいて、 上記基準信号の入力周期毎に少なくとも1回、上記演算
処理手段に少単位処理の処理を一時中断させる制御手段
を備えていることを特徴とするデジタル信号処理回路。
1. A digital signal processing circuit having an arithmetic processing means for executing a plurality of small unit processes one after another when a reference signal is input, and then waiting for the next reference signal input. A digital signal processing circuit comprising: a control means for temporarily suspending the processing of the small-unit processing at least once per input cycle.
【請求項2】上記演算処理手段が次の少単位処理を開始
する時点を、上記制御手段へ指定する次処理開始時指定
手段を備え、 上記制御手段は、各少単位処理が終了してから、上記次
処理開始時指定手段が指定した次処理開始時点までの
間、上記演算処理手段を待機させることを特徴とする請
求項1記載のデジタル信号処理回路。
2. The apparatus according to claim 1, further comprising: a next processing start time designation means for designating a time point at which the arithmetic processing means starts the next small unit processing to the control means. 2. The digital signal processing circuit according to claim 1, wherein said arithmetic processing means is made to stand by until the next processing start time point designated by said next processing start time designation means.
【請求項3】上記次処理開始時設定手段は、上記演算処
理手段が各少単位処理を開始する時点を基準にして算出
された次処理開始時点を上記制御手段へ指定することを
特徴とする請求項2記載のデジタル信号処理回路。
3. The next processing start time setting means designates to the control means a next processing start time calculated based on a time when the arithmetic processing means starts each small unit processing. The digital signal processing circuit according to claim 2.
JP33958095A 1995-12-26 1995-12-26 Digital signal processing circuit Expired - Fee Related JP3145292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33958095A JP3145292B2 (en) 1995-12-26 1995-12-26 Digital signal processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33958095A JP3145292B2 (en) 1995-12-26 1995-12-26 Digital signal processing circuit

Publications (2)

Publication Number Publication Date
JPH09179735A JPH09179735A (en) 1997-07-11
JP3145292B2 true JP3145292B2 (en) 2001-03-12

Family

ID=18328823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33958095A Expired - Fee Related JP3145292B2 (en) 1995-12-26 1995-12-26 Digital signal processing circuit

Country Status (1)

Country Link
JP (1) JP3145292B2 (en)

Also Published As

Publication number Publication date
JPH09179735A (en) 1997-07-11

Similar Documents

Publication Publication Date Title
EP0103755A2 (en) CMOS single chip microprocessor
JP3322893B2 (en) Microcomputer
US6167529A (en) Instruction dependent clock scheme
JPH09305422A (en) Cpu for preventing malfunction of program
JP3145292B2 (en) Digital signal processing circuit
JP2000091889A (en) Device and method for generating pulse signal
JPH0844594A (en) Data processor
JP3356077B2 (en) How to make the output interval constant when setting the constant scan of the programmable controller
JP3534457B2 (en) Signal generator
JP2773546B2 (en) Pulse generation circuit
JP3004972B2 (en) Data processing device
JP2001166954A (en) Virtual computer device and virtual computer device control method
US6360328B1 (en) Plural sampling frequency signal processing by performing designated routines during sub-multiple time slots of each period
JP2004199393A (en) Task control device and task control method
JP2004078642A (en) Interruption control circuit
JP2004171040A (en) Timer circuit
JPH03246603A (en) Rapid counter
JPH0573296A (en) Microcomputer
JPH04143816A (en) Time counting system
JPH0574154A (en) Microcomputer
JPH10260831A (en) Signal processing device
JP2844624B2 (en) Data processing device
JP2000315122A (en) Timer circuit and method for informing of time-out
JPH10254695A (en) Microprogram speed control circuit
JP2000215661A (en) Memory controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080105

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090105

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100105

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110105

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120105

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees