JPH03102265A - Maximum value detecting circuit - Google Patents

Maximum value detecting circuit

Info

Publication number
JPH03102265A
JPH03102265A JP1240156A JP24015689A JPH03102265A JP H03102265 A JPH03102265 A JP H03102265A JP 1240156 A JP1240156 A JP 1240156A JP 24015689 A JP24015689 A JP 24015689A JP H03102265 A JPH03102265 A JP H03102265A
Authority
JP
Japan
Prior art keywords
bit
data
maximum value
input
full adder
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
Application number
JP1240156A
Other languages
Japanese (ja)
Inventor
Mariko Otsuka
真理子 大塚
Cho Yagishita
八木下 超
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1240156A priority Critical patent/JPH03102265A/en
Publication of JPH03102265A publication Critical patent/JPH03102265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

PURPOSE:To enable direct detection of a maximum value from a digital signal by constructing a maximum value detecting circuit so that it can execute a digital processing, by connecting it directly with the same integrated circuit with a digital signal processing circuit and by detecting the maximum value thereby. CONSTITUTION:When it is assumed that n-bit data D' (expressed by a decimal number) inputted from an n-bit full adder 2 are latched in an n-bit latch 3, an output from inverters 4 numbering (n) is (2<n>-1)-D'. Now, when fresh data D come in a first input 2a of the full adder 2, the output from the inverters 4 is present in a second input 2b of the full adder 2 and the sum of the inputs to the full adder 2 turns to be (2<n>-1)-D'+D. Since the data from a first bit to an n-th bit are all 1 herein, a carry occurs in the full adder 2 when D>D'. When the fresh data are larger than the preceding data, in other words, the carry is outputted from the full adder 2 and the fresh data are latched. The data are compared sequentially in this way and the larger data are left behind.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、デジタル信号を処理することにより、精度よ
くオーディオデータの最大値を検出する最大値検出回路
に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a maximum value detection circuit that accurately detects the maximum value of audio data by processing a digital signal.

(従来の技術) オーディオデータにおいて、録音機で録音する際、最大
出力の電圧値を前もって検出しておき録音レベルの決定
が行われる。このため、オーディオデータの最大値を検
出する必要がある。
(Prior Art) When recording audio data with a recorder, the maximum output voltage value is detected in advance and the recording level is determined. Therefore, it is necessary to detect the maximum value of audio data.

第3図は従来から用いられている最大値検出のブロック
構或例を示すものである。第3図において、8はデジタ
ル信号処理回路(集積回路)、10はD/Aコンバータ
、11はアナログ最大値検出回路、12はアナログ最大
値出力端子、13はデジタル信号入力端子である。
FIG. 3 shows an example of a conventional maximum value detection block structure. In FIG. 3, 8 is a digital signal processing circuit (integrated circuit), 10 is a D/A converter, 11 is an analog maximum value detection circuit, 12 is an analog maximum value output terminal, and 13 is a digital signal input terminal.

デジタル信号入力端子l3から入力されたオーディオ信
号は、デジタル信号処理回路8からオーディオデータと
して出力され、D/Aコンバータ10によりアナログ信
号に変換されアナログ最大値検出回路11に入力され、
検出されたアナログ最大値データはアナログ最大値出力
端子I2から出力される. (発明が解決しようとする課題) しかしながら,上記従来の構或では、デジタル信号をア
ナログ信号に変換してから処理を行うため、精度が悪く
なり,また専用のハードウエアが必要なため部品点数が
多くなるという問題があった. 本発明上記従来の問題点を解決するものであり、デジタ
ル信号から直接最大値を検出することにより、最大値検
出の精度と部品点数の削減を図れる最大値検出回路を提
供することを目的とするものである. (a題を解決するための手段) 本発明は上記目的を達成するために,最大値検出回路を
デジタル処理構成とし、デジタル信号処理回路と同一の
集積回路で直接接続して最大値を検出するようにしたも
のである。
The audio signal input from the digital signal input terminal l3 is output as audio data from the digital signal processing circuit 8, converted to an analog signal by the D/A converter 10, and input to the analog maximum value detection circuit 11.
The detected analog maximum value data is output from the analog maximum value output terminal I2. (Problems to be Solved by the Invention) However, in the conventional structure described above, since the digital signal is converted into an analog signal and then processed, the accuracy deteriorates, and the number of parts is reduced because dedicated hardware is required. The problem was that there were too many. The present invention solves the above-mentioned conventional problems, and aims to provide a maximum value detection circuit that can achieve maximum value detection accuracy and reduce the number of parts by directly detecting the maximum value from a digital signal. It is something. (Means for Solving Problem A) In order to achieve the above object, the present invention employs a maximum value detection circuit having a digital processing configuration, and detects the maximum value by directly connecting the maximum value detection circuit with the same integrated circuit as the digital signal processing circuit. This is how it was done.

(作 用) したがって,上記構成により、デジタル信号であるオー
ディオデータをアナログ信号に変換することなく,デジ
タル信号のまま最大値を検出することができる。また.
D/Aコンバータおよび専用のハードウエアが不要とな
り部品点数が減少する。
(Function) Therefore, with the above configuration, the maximum value can be detected as a digital signal without converting the audio data, which is a digital signal, into an analog signal. Also.
A D/A converter and dedicated hardware are not required, reducing the number of parts.

(実施例〉 第1図は本発明の一実施例における最大値検出回路の構
成を示すものであり,第2図は第l図の最大幀検出回路
を含む最大値検出のブロック構成を示すものである.第
1図において、1はオーディオデータ入力端子、2はn
ビットフルアダー28はnビットフルアダ−2の第1の
入力,2bは第2の入力,3はnビットラッチ、4はn
個からなるインバータ、5はキャリーラインである。
(Embodiment) Figure 1 shows the configuration of a maximum value detection circuit in an embodiment of the present invention, and Figure 2 shows the block configuration of maximum value detection including the maximum value detection circuit of Figure 1. In Fig. 1, 1 is the audio data input terminal, 2 is the n
Bitful adder 28 is the first input of n-bit full adder 2, 2b is the second input, 3 is the n-bit latch, and 4 is n
5 is a carry line.

フルアダ−2の第1の入力2aであるオーディオデータ
入力端子工からのオーディオデータと,第2の入力2b
の和に桁上げが起こると,キャリーライン5にキャリー
が出力される,また、オーディオ入力端子1から入力さ
れたオーディオデータは、上記キャリーライン5にキャ
リーがあるとnビットラッチ3にオーディオデータをラ
ッチする。nビットラッチ3の出力は、n個のインバー
タから構威されるインバータ4に入り、インバータ4の
出力はフルアダ−2の第2の入力2bに入る。
The audio data from the audio data input terminal which is the first input 2a of the full adder 2 and the second input 2b
When a carry occurs in the sum of , a carry is output to the carry line 5. Also, audio data input from the audio input terminal 1 is outputted to the n-bit latch 3 when there is a carry on the carry line 5. Latch. The output of the n-bit latch 3 enters an inverter 4 composed of n inverters, and the output of the inverter 4 enters the second input 2b of the full adder 2.

第2図において、1は第1図と同じオーディオデータ入
力端子、6は最大値出力端子,7は第1図のような構戊
からなる最大値検出回路、8は従来例と同じデジタル信
号処理回路、9はデジタル信号処理回路8と最大値検出
回路7を集積したデジタル信号処理集積回路. 13は
デジタル信号入力端子である、 次に上記のように構成された最大値検出回路の動作につ
いて説明する。第l図において、nビットラッチ3には
以前にnビットフルアダ−2から入ったnビットデータ
(D’,10進数表示)がラッチされているとすると、
n個からなるインバータ4からの出力は(2I1−1)
−D’(10進数表示)となっている。いま、nビット
フルアダ−2の第1の入力2aに、新たなデータ(D)
(Ion数表示)が入ってきたとすると、nビットフル
アダ−2の第2の入力2bにはインバータ4からの出力
(2”−1)−D’が入っており、nビットフルアダ−
2での第lの入力2aと第2の入力2bの和は(2’−
1)−D’+D  (10進数表示)となる。ここで.
(2”−1)を2進数で表示すると,1ビット目からn
ビット目まで全て1のデータであることから,DAD’
であるとnビットフルアダ−2で桁上げがおこる.即ち
、新たなデータDの方が以前のデータD′より大きいと
nビットフルアダ−2よりキャリーが出力される。これ
により,新しいデータDをラッチ3がラッチする。
In Fig. 2, 1 is the same audio data input terminal as in Fig. 1, 6 is the maximum value output terminal, 7 is the maximum value detection circuit having the structure as shown in Fig. 1, and 8 is the same digital signal processing as in the conventional example. The circuit 9 is a digital signal processing integrated circuit that integrates a digital signal processing circuit 8 and a maximum value detection circuit 7. 13 is a digital signal input terminal. Next, the operation of the maximum value detection circuit configured as described above will be explained. In FIG. 1, assuming that n-bit data (D', expressed in decimal notation) previously input from the n-bit full adder 2 is latched in the n-bit latch 3,
The output from the inverter 4 consisting of n pieces is (2I1-1)
-D' (decimal notation). Now, new data (D) is input to the first input 2a of the n-bit full adder 2.
(Ion number display) is input, the second input 2b of the n-bit full adder 2 receives the output (2''-1)-D' from the inverter 4, and the n-bit full adder
The sum of the l-th input 2a and the second input 2b at 2 is (2'-
1) -D'+D (in decimal notation). here.
When (2”-1) is expressed as a binary number, n from the 1st bit
Since the data is all 1 up to the bit, DAD'
Then, a carry occurs in n-bit full adder 2. That is, if the new data D is larger than the previous data D', a carry is output from the n-bit full adder 2. As a result, the new data D is latched by the latch 3.

逆にD’>Dの時は桁上げがおこらず、キャリーの出力
はない。従って、以前のデータD′がラッチ3にラッチ
された状態が保持される。このように、データを順次比
較してより大きいデータを残していくことにより,デー
タの最大値を検出することができる。
Conversely, when D'>D, no carry occurs and no carry is output. Therefore, the state in which the previous data D' is latched in the latch 3 is maintained. In this way, the maximum value of the data can be detected by sequentially comparing the data and leaving the larger data.

(発明の効果) 本発明は上記実施例から明らかなように、デジタル信号
のまま最大値検出が行えるため,検出精度の向上がはか
れる。また、デジタル回路であることとデジタル信号処
理集積回路内で処理できるため、部品点数が削減できる
という効果を有する。
(Effects of the Invention) As is clear from the above-mentioned embodiments, the present invention can detect the maximum value as it is a digital signal, so that the detection accuracy can be improved. Furthermore, since it is a digital circuit and can be processed within a digital signal processing integrated circuit, it has the effect of reducing the number of parts.

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

第1図は本発明の一実施例における最大値検出回路の構
或図,第2図は第l図の最大値検出回路を用いた最大値
検出のブロック図,第3図は従来の最大値検出のブロッ
ク図である。 1 ・・・オーディオデータ入力端子, 2・・・ n
ビットフルアダー.  2a・・・第1の入力、2b・
・・第2の入力、 3・・・nビットラッチ, 4 ・
・・インバータ(n個よりなる)、 5 ・・・ キャ
リーライン、 6・・・最大値出力端子、 7・・・最
大値検出回路, 8・・・デジタル信号処理回路、9 
・・・デジタル信号処理集積回路、10・・・ D/A
コンバータ.  11・・・ アナログ最大値検出回路
、l2・・・アナログ最大値出力端子、l3・・・デジ
タル信号入力端子。 第1図
Fig. 1 is a block diagram of a maximum value detection circuit according to an embodiment of the present invention, Fig. 2 is a block diagram of maximum value detection using the maximum value detection circuit of Fig. FIG. 3 is a block diagram of detection. 1... Audio data input terminal, 2... n
Bitful adder. 2a...first input, 2b...
...Second input, 3...n-bit latch, 4.
...Inverter (consisting of n pieces), 5... Carry line, 6... Maximum value output terminal, 7... Maximum value detection circuit, 8... Digital signal processing circuit, 9
...Digital signal processing integrated circuit, 10... D/A
converter. 11... Analog maximum value detection circuit, l2... Analog maximum value output terminal, l3... Digital signal input terminal. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 第1の入力から入力されたnビットのデータと第2の入
力から入力されたnビットのデータを加え合わせ、桁上
げが起こるとキャリーを出力するnビットフルアダーと
、前記nビットフルアダーの前記第1の入力に入力され
た前記nビットのデータを前記nビットフルアダーから
のキャリーによりラッチするnビットのラッチと、前記
nビットのラッチ出力のnビットデータが入力されその
出力が前記nビットフルアダーの前記第2の入力に入力
するn個のインバータとを備え、前記nビットフルアダ
ーに入力されたnビットデータと前記nビットラッチに
ラッチされたnビットデータを比較し、より大きいデー
タをラッチに残していくことにより、入力データの最大
値を検出することを特徴とする最大値検出回路。
An n-bit full adder that adds n-bit data input from a first input and n-bit data input from a second input, and outputs a carry when a carry occurs; an n-bit latch that latches the n-bit data inputted to the first input by carry from the n-bit full adder; and the n-bit data of the n-bit latch output is input and the output is the n-bit latch. n inverters input to the second input of the bit full adder, the n-bit data input to the n-bit full adder and the n-bit data latched by the n-bit latch are compared, and the n-bit data input to the n-bit full adder is A maximum value detection circuit that detects the maximum value of input data by leaving the data in a latch.
JP1240156A 1989-09-18 1989-09-18 Maximum value detecting circuit Pending JPH03102265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1240156A JPH03102265A (en) 1989-09-18 1989-09-18 Maximum value detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1240156A JPH03102265A (en) 1989-09-18 1989-09-18 Maximum value detecting circuit

Publications (1)

Publication Number Publication Date
JPH03102265A true JPH03102265A (en) 1991-04-26

Family

ID=17055328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1240156A Pending JPH03102265A (en) 1989-09-18 1989-09-18 Maximum value detecting circuit

Country Status (1)

Country Link
JP (1) JPH03102265A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007105004A (en) * 2005-10-17 2007-04-26 Maruyama Mfg Co Ltd Boom sprayer with tractor
JP2007135459A (en) * 2005-11-17 2007-06-07 Maruyama Mfg Co Ltd Lifting device for boom sprayer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007105004A (en) * 2005-10-17 2007-04-26 Maruyama Mfg Co Ltd Boom sprayer with tractor
JP2007135459A (en) * 2005-11-17 2007-06-07 Maruyama Mfg Co Ltd Lifting device for boom sprayer

Similar Documents

Publication Publication Date Title
JPH04230545A (en) Address generation circuit
US4774686A (en) Serial digital signal processing circuitry
JPS62281523A (en) modulation circuit
JP2766133B2 (en) Parallel-serial data conversion circuit
JP3207997B2 (en) Data converter
JP2599984B2 (en) Input data peak value detection circuit
JP2959303B2 (en) Arithmetic circuit
JP2769261B2 (en) Microcomputer
JP2970241B2 (en) Sampling clock information generation circuit
JPH0736149B2 (en) Shift flag generation circuit
JPH01213575A (en) Method and circuit for storing signal curve data to save memory space
JPH0635668A (en) Full adder
JP2513021B2 (en) Signed digit number sign judgment circuit
JPS5925416A (en) Waiting circuit
JPS59150346A (en) Maximum/minimum detection circuit
JPS59156049A (en) Signal detecting circuit
JPH02181518A (en) Rink counter circuit
JPH06224780A (en) Code conversion circuit
JPS61105640A (en) Parallel complement circuit
JPH06188839A (en) Sampling rate converter
JPH0685804A (en) Frame pulse generating circuit
JPH0319526A (en) Noise reduction device
JPH02114118A (en) Detector of digital signal level
JPH0496839A (en) Semiconductor memory device
JPH0587851A (en) Edge detecting circuit