JPH0821228B2 - Level detector peak detection circuit - Google Patents

Level detector peak detection circuit

Info

Publication number
JPH0821228B2
JPH0821228B2 JP2340454A JP34045490A JPH0821228B2 JP H0821228 B2 JPH0821228 B2 JP H0821228B2 JP 2340454 A JP2340454 A JP 2340454A JP 34045490 A JP34045490 A JP 34045490A JP H0821228 B2 JPH0821228 B2 JP H0821228B2
Authority
JP
Japan
Prior art keywords
output
data
shift register
latch
absolute value
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
JP2340454A
Other languages
Japanese (ja)
Other versions
JPH04209386A (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.)
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 JP2340454A priority Critical patent/JPH0821228B2/en
Priority to US07/711,013 priority patent/US5325240A/en
Priority to GB9112422A priority patent/GB2246220B/en
Priority to DE4121122A priority patent/DE4121122A1/en
Publication of JPH04209386A publication Critical patent/JPH04209386A/en
Publication of JPH0821228B2 publication Critical patent/JPH0821228B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、デジタルオーディオテープレコーダ(DA
T)等の記録再生装置に適用されるもので、データ列か
らその大きさを表すレベルデータを生成してその最大値
(ピーク値)を検出するレベルデコーダのピーク検出回
路に関するものである。
The present invention relates to a digital audio tape recorder (DA).
The present invention relates to a peak detection circuit of a level decoder which is applied to a recording / reproducing apparatus such as T) and which generates level data representing the size of a data string and detects the maximum value (peak value) thereof.

従来の技術 記録再生装置において、扱うデータの大きさを表す指
標としてレベルデータが用いられる。たとえばDATの場
合、1サンプル当たりL・R各チャンネルごとに生成さ
れる16ビットのPCMデータに対して、そのレベルをデコ
ードする回路(以下、レベルデコーダと称する)として
第4図や第5図に示すようなものがある。第4図は15ビ
ットのレベルデータを生成するレベルデコーダの一例で
あり、第5図は第6図に示すような変換則を用いて16ビ
ットのPCMデータから8ビットのレベルデータを生成す
るレベルデコーダの一例である。
2. Description of the Related Art In a recording / reproducing apparatus, level data is used as an index indicating the size of data to be handled. For example, in the case of DAT, a circuit (hereinafter referred to as a level decoder) for decoding the level of 16-bit PCM data generated for each L / R channel per sample is shown in FIGS. 4 and 5. There is something like the one shown. FIG. 4 is an example of a level decoder that generates 15-bit level data, and FIG. 5 is a level that generates 8-bit level data from 16-bit PCM data using the conversion rule shown in FIG. It is an example of a decoder.

ここで第4図の動作を説明する。第4図において、シ
フトレジスタ401にロードされた16ビットのPCMデータは
最上位ビット(MSB)からシフトクロック32Fsによって
順にシリアル出力される。ここでFsはPCMデータのサン
プル周期、従って32Fsは32ビット/Fsのビットレートで
ある。シリアル出力されたデータは絶対値生成手段402
において符号ビットである最上位ビットとそれに続くビ
ットとの排他的論理和によって15ビットの絶対値データ
に変換される。この絶対値データはシフトレジスタ403
においてシリアル/パラレル変換され、更新制御手段40
4の出力に応じてL・R各チャネルごとにそれぞれフリ
ップフロップ405,406に保持される。セレクタ407は上記
保持されたデータのうち絶対値生成手段402の出力と同
じチャンネルのものをセレクト信号SLによって選択す
る。選択されたデータはロード信号LD2によって所定の
タイミングでシフトレジスタ408にロードされ、シフト
ロック32Fsのビットレートにて更新制御手段404にシリ
アル出力される。一方、更新制御手段404は絶対値生成
手段402の出力とシフトレジスタ408の出力を比較し、絶
対値生成手段402の出力がシフトレジスタ408の出力より
も大きいときにそのデータのチャンネルに対応するフリ
ップフロップ405または406にラッチクロックCK1またはC
K2を出力してフリップフロップに保持されたデータを更
新する。これにより、ラッチ405,406には常にL・R各
チャンネルのレベルデータの最大値(ピーク値)が保持
される。この保持されたピーク値はシステムマイコンか
らの要求に従ってマイコンバスに出力され、その後クリ
ア信号CLRによってリセットされる。以上のようにして
入力のレベルデータが生成され、さらにそのピーク値が
検出される。
Here, the operation of FIG. 4 will be described. In FIG. 4, the 16-bit PCM data loaded in the shift register 401 is serially output in order from the most significant bit (MSB) by the shift clock 32Fs. Here, Fs is a sampling period of PCM data, and 32Fs is a bit rate of 32 bits / Fs. The data serially output is the absolute value generating means 402.
Is converted into 15-bit absolute value data by exclusive OR of the most significant bit which is a sign bit and the subsequent bits. This absolute value data is the shift register 403
In the serial / parallel conversion in the update control means 40
It is held in the flip-flops 405 and 406 for each of the L and R channels according to the output of 4. The selector 407 selects one of the held data having the same channel as the output of the absolute value generating means 402 by the select signal SL. The selected data is loaded into the shift register 408 at a predetermined timing by the load signal LD2 and serially output to the update control means 404 at the bit rate of the shift lock 32Fs. On the other hand, the update control means 404 compares the output of the absolute value generating means 402 with the output of the shift register 408, and when the output of the absolute value generating means 402 is larger than the output of the shift register 408, the flip-flop corresponding to the channel of the data. Latch clock CK1 or C
It outputs K2 and updates the data held in the flip-flop. As a result, the latches 405 and 406 always hold the maximum value (peak value) of the level data of the L and R channels. The held peak value is output to the microcomputer bus according to the request from the system microcomputer, and then reset by the clear signal CLR. The input level data is generated as described above, and the peak value thereof is detected.

次に第5図の動作を説明する。第5図において、シフ
トレジスタ501にロードされた16ビットのPCMデータは、
最下位ビット(LSB)からシフトクロック64Fsによって
順にシリアル出力される。その際、符号ビットである最
上位ビット(MSB)をシリアル入力SIよりシフトレジス
タ501内に再入力することにより、出力QFからは16ビッ
トのPCMデータに符号ビットをさらに16ビット付加した3
2ビットのシリアルデータが出力される。シリアル出力
されたデータは絶対値生成手段502において符号ビット
である最上位ビットとの排他的論理和をとることによっ
て絶対値データに変換される。この絶対値データはシフ
トレジスタ503においてシリアル/パラレル変換され、
下位4ビットはラッチ507に、また、上位11ビットはラ
ッチ信号生成手段(LGN)505にそれぞれ入力される。一
方、バイナリカウンタ504は所定のタイミングでリセッ
ト信号RSTにより初期化された後、シフトレジスタ503中
のデータのシフトに同期してカウントアップする。ラッ
チ信号生成手段505は入力されたデータから上位10ビッ
トが同符号(“0"または“1")であるタイミングを検出
してラッチ信号Guを出力する。これにより、第6図にお
ける8ビットのレベルデータの上位4ビットがラッチ50
6に保持される。また、入力されたデータの上位11ビッ
トが同符号であるタイミングを検出して、ラッチ信号生
成手段505はラッチ信号Glを出力する。これにより、8
ビットのレベルデータの下位4ビット(第6図における
“ABCD")がラッチ506に保持される。以上のようにして
生成された8ビットのレベルデータはフリップフロップ
509,510に更新制御手段508の出力に応じてそれぞれL・
R各チャンネルごとに保持される。セレクタ511はフリ
ップフロップ509,510に、保持されたデータのうちラッ
チ506,507に保持されたデータと同じチャンネルのもの
を選択して出力する。更新制御手段508はラッチ506,507
の出力とセレクタ511の出力とを大小比較し、ラッチ50
6,507の出力の方が大きい場合に、対応するチャンネル
のデータを保持するフリップフロップ509または510にラ
ッチクロックCK1またはCK2を出力してフリップフロップ
に保持されたデータを更新する。これにより、フリップ
フロップ509,510には常にL・R各チャンネルの最大値
(ピーク値)が保持される。保持されたピーク値はシス
テムマイコンからの要求に従ってマイコンバスに出力さ
れ、その後クリア信号CLRによってリセットされる。以
上のようにして入力のレベルデータが生成され、さらに
そのピーク値が検出される。
Next, the operation of FIG. 5 will be described. In FIG. 5, the 16-bit PCM data loaded in the shift register 501 is
Serial output is performed from the least significant bit (LSB) by the shift clock 64Fs. At that time, the most significant bit (MSB), which is a sign bit, is re-input from the serial input SI into the shift register 501 to add 16 more sign bits to the 16-bit PCM data from the output QF.
2-bit serial data is output. The serially output data is converted into absolute value data by taking an exclusive OR with the most significant bit which is a sign bit in the absolute value generating means 502. This absolute value data is serial / parallel converted in the shift register 503,
The lower 4 bits are input to the latch 507, and the upper 11 bits are input to the latch signal generating means (LGN) 505. On the other hand, the binary counter 504 is initialized by the reset signal RST at a predetermined timing and then counts up in synchronization with the shift of the data in the shift register 503. The latch signal generation means 505 detects the timing when the upper 10 bits have the same sign (“0” or “1”) from the input data and outputs the latch signal Gu. As a result, the upper 4 bits of the 8-bit level data in FIG. 6 are latched.
Holds at 6. Further, the latch signal generation means 505 outputs the latch signal Gl by detecting the timing when the upper 11 bits of the input data have the same sign. This gives 8
The lower 4 bits (“ABCD” in FIG. 6) of the bit level data are held in the latch 506. The 8-bit level data generated as described above is a flip-flop.
According to the output of the update control means 508, L.
R is held for each channel. The selector 511 selects and outputs to the flip-flops 509 and 510, among the held data, those of the same channel as the data held in the latches 506 and 507. The update control means 508 is a latch 506, 507.
Of the latch 50 and the output of the selector 511 are compared.
When the output of 6,507 is larger, the latch clock CK1 or CK2 is output to the flip-flop 509 or 510 holding the data of the corresponding channel to update the data held in the flip-flop. As a result, the flip-flops 509 and 510 always hold the maximum value (peak value) of each of the L and R channels. The held peak value is output to the microcomputer bus according to the request from the system microcomputer, and then reset by the clear signal CLR. The input level data is generated as described above, and the peak value thereof is detected.

このように、第4図や第5図に示す従来のレベルデコ
ーダの構成では、入力の絶対値をシフトレジスタでシフ
トさせ、シリアル/パラレル変換して15ビットのレベル
データまたはその上位から連続する“0"の長さに応じて
8ビットに圧縮したレベルデータを生成していた。
As described above, in the configuration of the conventional level decoder shown in FIG. 4 and FIG. 5, the absolute value of the input is shifted by the shift register, and serial / parallel conversion is performed to obtain 15-bit level data or continuous data from the upper level. Level data compressed to 8 bits is generated according to the length of "0".

発明が解決しようとする課題 しかしながら第4図に示す従来の構成では、レベルデ
コーダが15ビットであるためにシステムマイコンへのデ
ータの転送量が多く、転送時間がかかる上にシステムマ
イコンでの処理上の負担となったり、データ変換用にメ
モリ領域を大きく要していた。また、上記第5図に示す
従来の構成では、レベルデータが8ビットなので第4図
に示す従来の構成が持つような問題は解決されるが、第
6図に示すようにデータの圧縮によりレベルデータの分
解能が低くなり、特に記録、編集をする上で高い分解能
を必要とする0dB付近でのレベルが十分に表現できない
という問題を有していた。
However, in the conventional configuration shown in FIG. 4, since the level decoder has 15 bits, a large amount of data is transferred to the system microcomputer, and it takes a long time to transfer the data to the system microcomputer. It has become a burden on the user and requires a large memory area for data conversion. Further, in the conventional configuration shown in FIG. 5, since the level data is 8 bits, the problem that the conventional configuration shown in FIG. 4 has is solved, but as shown in FIG. There was a problem that the resolution of the data became low, and the level near 0 dB, which requires high resolution especially for recording and editing, cannot be expressed sufficiently.

本発明は上記従来の問題を解決するもので、0dB付近
での分解能が十分に高く、かつ、システムマイコンの処
理やメモリに負担のかからない8ビットのレベルデータ
を生成することのできるレベルデコーダのピーク検出回
路を提供することを目的とするものである。
The present invention solves the above-mentioned conventional problems. The peak of a level decoder capable of generating 8-bit level data that has a sufficiently high resolution in the vicinity of 0 dB and does not burden the processing and memory of the system microcomputer. It is intended to provide a detection circuit.

課題を解決するための手段 この課題を解決するために本発明請求項1のレベルデ
コーダのピーク検出回路は、Nビットのパラレルデータ
をシリアルデータに変換して最下位ビット(LSB)から
順に出力し、かつその際に次のパラレルデータをロード
するまで最上位ビット(MSB)出力をシリアル入力に再
入力して保持する第1のシフトレジスタと、シリアルデ
ータをパラレルデータに変換する第2のシフトレジスタ
と、第2のシフトレジスタの出力を絶対値に変換する絶
対値生成手段と、第2のシフトレジスタ中のデータのシ
フト数カウントするカウンタと、カウンタの出力と絶対
値生成手段の出力とを前記カウンタの出力に応じて選択
するセレクタ手段と、絶対値生成手段の出力およびセレ
クタ手段の出力を保持するラッチ手段と、絶対値生成手
段の出力に応じて前記ラッチ手段のラッチ信号を生成す
るラッチ信号生成手段と、ラッチ手段の出力を保持する
フリップフロップ手段と、ラッチ手段とフリップフロッ
プ手段の出力を大小比較して、その結果に応じて前記フ
リップフロップ手段に保持するデータの更新制御を行う
更新制御手段とを備えたものである。
In order to solve this problem, a peak detection circuit of a level decoder according to claim 1 of the present invention converts N-bit parallel data into serial data and outputs the serial data in order from the least significant bit (LSB). And a first shift register that re-inputs and holds the most significant bit (MSB) output to the serial input until the next parallel data is loaded, and a second shift register that converts the serial data to parallel data An absolute value generating means for converting the output of the second shift register into an absolute value; a counter for counting the number of shifts of the data in the second shift register; and an output of the counter and an output of the absolute value generating means. Selector means for selecting according to the output of the counter, latch means for holding the output of the absolute value generating means and the output of the selector means, and the absolute value generating Latch signal generation means for generating the latch signal of the latch means according to the output of the means, flip-flop means for holding the output of the latch means, and the outputs of the latch means and the flip-flop means are compared in magnitude, and the result is compared. Accordingly, there is provided update control means for performing update control of the data held in the flip-flop means.

また、本発明請求項2のレベルデコーダのピーク検出
回路は、Nビットのパラレルデータをシリアルデータに
変換して最下位ビット(LSB)から順に出力し、かつ、
その際に次のパラレルデータをロードするまで最下位ビ
ット(MSB)出力をシリアル入力に再入力して保持する
第1のシフトレジスタと、第1のシフトレジスタの出力
を絶対値に変換する絶対値生成手段と、絶対値生成手段
の出力をシリアル/パラレル変換する第2のシフトレジ
スタと、第2のシフトレジスタ中のデータのシフト数を
カウントするカウンタと、カウンタの出力と第2のシフ
トレジスタの出力とを前記カウンタの出力に応じて選択
するセレクタ手段と、第2のシフトレジスタの出力およ
びセレクタ手段の出力を保持するラッチ手段と、第2の
シフトレジスタの出力に応じて前記ラッチ手段のラッチ
信号を生成するラッチ信号生成手段と、ラッチ手段の出
力を保持するフリップフロップ手段と、ラッチ手段とフ
リップフロップ手段の出力を大小比較して、その結果に
応じて前記フリップフロップ手段に保持するデータの更
新制御を行う更新制御手段とを備えたものである。
Further, the peak detection circuit of the level decoder according to claim 2 of the present invention converts the N-bit parallel data into serial data and outputs the serial data in order from the least significant bit (LSB), and
At that time, the first shift register that re-inputs and holds the least significant bit (MSB) output to the serial input until the next parallel data is loaded, and the absolute value that converts the output of the first shift register to the absolute value Generating means, a second shift register for performing serial / parallel conversion on the output of the absolute value generating means, a counter for counting the number of shifts of data in the second shift register, an output of the counter and the second shift register. Selector means for selecting the output according to the output of the counter, latch means for holding the output of the second shift register and the output of the selector means, and the latch of the latch means according to the output of the second shift register. Latch signal generating means for generating a signal, flip-flop means for holding the output of the latch means, latch means and flip-flop means The outputs compares, in which a update control means for updating control data held in the flip-flop means in accordance with the result.

作用 本発明は上記した構成により、外部から入力されたN
ビットのデータをLSB方向に少なくともNの1.5倍以上の
ビットレートでシフトし、あらかじめ符号ビットである
最上位ビットを余分に付加したデータ例をシリアル/パ
ラレル変換して入力データの絶対値を8ビットに圧縮し
たものを生成する。そして絶対値が所定値よりも大きい
場合には圧縮の変換則を変えることによって、0dB付近
のデータについては分解能を細かくしたレベルデータを
生成し、それ以外の場合には絶対値をその上位から連続
する“0"の長さに応じて圧縮したものをレベルデータと
して使用する。
Action The present invention has the above-described configuration, and N input from the outside is input.
Bit data is shifted in the LSB direction at a bit rate of at least 1.5 times N, and the absolute value of the input data is converted into 8 bits by serial / parallel conversion by adding the most significant bit that is the sign bit in advance. Generate a compressed version. When the absolute value is larger than the specified value, the compression conversion rule is changed to generate level data with a fine resolution for data near 0 dB, and in other cases, the absolute value is continuous from the upper level. The data compressed according to the length of “0” is used as the level data.

実施例 以下、本発明の一実施例について図面を参照しながら
説明する。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の請求項1の実施例のレベルデコーダ
のピーク検出回路をDATに適用したときの構成を示すブ
ロック図、第2図は本発明の請求項2の実施例のレベル
デコーダのピーク検出回路をDATに適用したときの構成
を示すブロック図である。また、第3図は16ビットのPC
Mデータから0dB付近での分解能を高くした8ビットのレ
ベルデータを生成する変換則を示す概略図である。
FIG. 1 is a block diagram showing the configuration when the peak detection circuit of the level decoder according to the first embodiment of the present invention is applied to a DAT, and FIG. 2 is the level decoder according to the second embodiment of the present invention. It is a block diagram which shows the structure when a peak detection circuit is applied to DAT. Also, Figure 3 shows a 16-bit PC.
FIG. 9 is a schematic diagram showing a conversion rule for generating 8-bit level data with high resolution near 0 dB from M data.

第1図において、101は第1のシフトレジスタ、102は
信号処理部、103は第2のシフトレジスタ、104は絶対値
生成手段、105はカウンタ、106はラッチ信号生成手段、
107,108はラッチ手段、109は更新制御手段、110,111は
フリップフロップ手段、112,113はセレクタ手段であ
る。
In FIG. 1, 101 is a first shift register, 102 is a signal processing unit, 103 is a second shift register, 104 is an absolute value generating means, 105 is a counter, 106 is a latch signal generating means,
107 and 108 are latch means, 109 is update control means, 110 and 111 are flip-flop means, and 112 and 113 are selector means.

次に、第1図の動作を説明する。外部から入力された
チャンネルあたり16ビットの2チャンネルPCMデータは
ロード信号LOADによって第1のシフトレジスタ101にロ
ードされた後、シフトクロック64Fs(Fsはサンプリング
周波数、すなわち64Fsは64ビット毎サンプル周期)のビ
ットレートで下位の方向にシフトされる。その際、第1
のシフトレジスタ101の出力Q0に出力される符号ビット
に相当する最上位ビットをシリアル入力SIに再入力する
ことによって、ロードしたチャンネルあたり16ビットの
PCMデータのあとにさらに16ビットの符号ビットが第1
のシフトレジスタ101の出力QFよりシリアル出力され
る。このように符号ビットを付加したチャンネルあたり
32ビットのPCMデータは信号処理部102においてPCMデー
タとともに入力されるバリディティ・フラグVFLG(PCM
データの有効性を表すデータ)にもとづいて補間処理さ
れる。その出力は第2のシフトレジスタ103でパラレル
データに変換されて、絶対値生成手段104に入力され
る。絶対値生成手段104は入力データの最上位ビットと
それ以外のビットとの排他的論理和によって15ビットの
絶対値を生成する。この15ビットの絶対値データのう
ち、上位3ビットはセレクタ113の入力Bに、上位11ビ
ットはラッチ信号生成手段(LGN)106に、下位4ビット
はラッチ108にそれぞれ入力される。ラッチ信号生成手
段106は入力の上位10ビットが同符号になるタイミング
でラッチ108のラッチ信号Glを生成し、入力の上位11ビ
ットが同符号になるタイミングでラッチ107のラッチ信
号Guを生成する。バイナリカウンタ105はリセット信号R
STによって所定のタイミングで初期化された後、シフト
レジスタ103中のデータのシフトに同期してカウントア
ップする。セレクタ113はセレクト信号SELに入力された
バイナリカウンタ105の出力の最上位ビットQ3によって
バイナリカウンタ105の出力Q0〜Q3(入力A)と、絶対
値生成手段104の上位3ビットとバイナリカウンタ105の
出力Q3を合成したもの(入力B)の一方を選択する。す
なわち出力Q3が“0"のときは入力Aを、Q3が“1"のとき
は入力Bをそれぞれ選択する。これによりラッチ107に
は第3図における8ビットレベルデータの上位4ビット
が保持され、ラッチ108には8ビットレベルデータの下
位4ビット(第3図における“ABCD")が保持される。
以上のようにして生成された8ビットのレベルデータは
フリップフロップ110,111に更新制御手段508の出力に応
じてそれぞれL・R各チャンネルごとに保持される。セ
レクタ112はフリップフロップ110,111に保持されたデー
タのうちラッチ107,108に保持されたデータと同じチャ
ンネルのものをセレクト信号SELにより選択して出力す
る。更新制御手段109はラッチ107,108の出力とセレクタ
112の出力とを大小比較し、ラッチ107,108の出力の方が
大きい場合に、対応するチャンネルのデータを保持する
フリップフロップ110または112にラッチクロックCK1ま
たはCK2を出力してフリップフロップに保持されたデー
タを更新する。これにより、フリップフロップ110,112
には常にL・R各チャンネルの最大値(ピーク値)が保
持される。この保持されたピーク値はシステムマイコン
からの要求に応じてシステムバスに出力され、その後ク
リア信号CLRによってリセットされる。以上のようにし
て入力のレベルデータが生成され、さらにそのピーク値
が検出される。また、第2図において、201は第1のシ
フトレジスタ、202は絶対値生成手段、204,212はセレク
タ手段、205はカウンタ、206はラッチ信号生成手段、20
7,208はラッチ手段、209は更新制御手段、210,211はフ
リップフロップ手段である。
Next, the operation of FIG. 1 will be described. The 16-bit 2-channel PCM data input from the outside is loaded into the first shift register 101 by the load signal LOAD, and then the shift clock of 64Fs (Fs is a sampling frequency, that is, 64Fs is a 64-bit sampling period). The bit rate is shifted downward. At that time, the first
By re-inputting the most significant bit corresponding to the sign bit output to the output Q0 of the shift register 101 of the serial input SI to 16 bits per loaded channel
After the PCM data, 16 more sign bits are the first
The output QF of the shift register 101 is serially output. Per channel with sign bit added in this way
The 32-bit PCM data is input together with the PCM data in the signal processing unit 102. Validity flag VFLG (PCM
Interpolation processing is performed based on the data indicating the validity of the data). The output is converted into parallel data by the second shift register 103 and input to the absolute value generating means 104. The absolute value generation means 104 generates a 15-bit absolute value by exclusive OR of the most significant bit of the input data and the other bits. Of the 15-bit absolute value data, the upper 3 bits are input to the input B of the selector 113, the upper 11 bits are input to the latch signal generating means (LGN) 106, and the lower 4 bits are input to the latch 108. The latch signal generation means 106 generates the latch signal Gl of the latch 108 at the timing when the upper 10 bits of the input have the same sign, and generates the latch signal Gu of the latch 107 at the timing when the upper 11 bits of the input have the same sign. Binary counter 105 reset signal R
After being initialized by the ST at a predetermined timing, it counts up in synchronization with the shift of the data in the shift register 103. The selector 113 outputs Q0 to Q3 (input A) of the binary counter 105 according to the most significant bit Q3 of the output of the binary counter 105 input to the select signal SEL, the upper 3 bits of the absolute value generating means 104 and the output of the binary counter 105. Select one of the combined Q3 (input B). That is, the input A is selected when the output Q3 is "0", and the input B is selected when the output Q3 is "1". As a result, the latch 107 holds the upper 4 bits of the 8-bit level data in FIG. 3, and the latch 108 holds the lower 4 bits of the 8-bit level data (“ABCD” in FIG. 3).
The 8-bit level data generated as described above is held in the flip-flops 110 and 111 for each of the L and R channels according to the output of the update control means 508. The selector 112 selects one of the data held in the flip-flops 110, 111 from the same channel as the data held in the latches 107, 108 by the select signal SEL and outputs it. The update control means 109 is the output of the latches 107 and 108 and the selector.
If the output of the latch 107 or 108 is larger than the output of the 112, the latch clock CK1 or CK2 is output to the flip-flop 110 or 112 that holds the data of the corresponding channel, and the data held in the flip-flop is output. To update. As a result, the flip-flops 110 and 112
Always holds the maximum value (peak value) of each L / R channel. The held peak value is output to the system bus in response to a request from the system microcomputer and then reset by the clear signal CLR. The input level data is generated as described above, and the peak value thereof is detected. Further, in FIG. 2, 201 is a first shift register, 202 is an absolute value generating means, 204 and 212 are selector means, 205 is a counter, 206 is a latch signal generating means, 20
7, 208 is a latch means, 209 is an update control means, and 210, 211 are flip-flop means.

次に第2図の動作を説明する。外部から入力されたチ
ャンネルあたり16ビットの2チャンネルPCMデータはロ
ード信号LOADによって第1のシフトレジスタ201にロー
ドされた後、シフトクロック64Fsのビットレートで下位
の方向にシフトされる。その際、第1のシフトレジスタ
201の出力Q0に出力される符号ビットに相当する最上位
ビットを第1図の場合と同様にシリアル入力SIに再入力
することによって、ロードしたチャンネルあたり16ビッ
トのPCMデータのあとにさらに16ビットの符号ビットが
付加されて第1のシフトレジスタ201の出力QFよりシリ
アル出力される。絶対値生成手段202はシフトレジスタ2
01からのシリアル入力と最上位ビット(MSB)を用いて
レベルデータを生成し、これをシフトレジスタ203でシ
リアル/パラレル変換する。パラレル変換された絶対値
データとシフトレジスタ203中のデータのシフト数をカ
ウントするバイナリカウンタ205の出力を用いて8ビッ
トのレベルデータを生成し、L・Rチャンネルごとにそ
のピーク値を保持する動作は、第1図の実施例で説明し
たものと同様なので省略する。
Next, the operation of FIG. 2 will be described. Two-channel PCM data of 16 bits per channel input from the outside is loaded into the first shift register 201 by the load signal LOAD, and then shifted in the lower direction at the bit rate of the shift clock 64Fs. At that time, the first shift register
By re-inputting the most significant bit corresponding to the sign bit output to the output Q0 of 201 to the serial input SI as in the case of Fig. 1, additional 16 bits are added after the 16-bit PCM data loaded per channel. Is added and the serial bit is output from the output QF of the first shift register 201. The absolute value generating means 202 is the shift register 2
Level data is generated using the serial input from 01 and the most significant bit (MSB), and this is serial / parallel converted by the shift register 203. Operation of generating 8-bit level data using the parallel-converted absolute value data and the output of the binary counter 205 that counts the number of shifts of the data in the shift register 203, and holding the peak value for each L / R channel Are omitted because they are the same as those described in the embodiment of FIG.

発明の効果 以上のように本発明請求項1によれば、Nビットのパ
ラレルデータをシリアルデータに変換して最下位ビット
(LSB)から出力し、かつその際にパラレルデータをロ
ードするまで最上位ビット(MSB)出力をシリアル入力
に再入力して保持する第1のシフトレジスタと、シリア
ルデータをパラレルデータに変換する第2のシフトレジ
スタと、第2のシフトレジスタの出力を絶対値に変換す
る絶対値生成手段と、第2のシフトレジスタ中のデータ
のシフト数をカウントするカウンタと、カウンタの出力
と絶対値生成手段の出力とを前記カウンタの出力に応じ
て選択するセレクタ手段と、絶対値生成手段の出力およ
びセレクタ手段の出力を保持するラッチ手段と、絶対値
生成手段の出力に応じて前記ラッチ手段のラッチ信号を
生成するラッチ信号生成手段と、ラッチ手段の出力を保
持するフリップフロップ手段と、ラッチ手段とフリップ
フロップ手段の出力に大小比較し、その結果に応じて前
記フリップフロップ手段に保持するデータの更新制御を
行う更新制御手段とを備えることによって、レベルデー
タをPCMデータの絶対値の大きさに応じて絶対値の一部
あるいはカウンタ値を選択して生成できる。すなわち、
第3図に示すようにPCMデータが所定の値よりも大きい
場合のみ絶対値の上位7ビットをレベルデータとして採
用し、それ以外の場合はカウンタ値と絶対値の一部を用
いてレベルデータを生成することによって、0dB付近で
の分解能を高くした8ビットのレベルデータを生成する
ことができる。これによりシステムマイコンへのデータ
の転送量が少なく、システムマイコンの処理やメモリの
負担を少なくして、しかも高い分解能が必要な0dB付近
でのレベルをより細かく検出することが可能である。さ
らに信号処理を施したPCMデータをシリアル/パラレル
変換するシフトレジスタは、そのデータをD/Aコンバー
タやデジタルオーディオインターフェース規格の出力信
号生成部に出力するためのフォーマット変換に兼用でき
るので、回路規模、ひいてはコストの削減を図ることが
できる。
As described above, according to claim 1 of the present invention, N-bit parallel data is converted into serial data and output from the least significant bit (LSB), and at that time, the most significant data is loaded. A first shift register that re-inputs and holds the bit (MSB) output to the serial input, a second shift register that converts serial data to parallel data, and an output of the second shift register to an absolute value Absolute value generating means, a counter for counting the number of shifts of data in the second shift register, selector means for selecting the output of the counter and the output of the absolute value generating means according to the output of the counter, and the absolute value Latch means for holding the output of the generating means and the output of the selector means, and a latch means for generating the latch signal of the latch means according to the output of the absolute value generating means. H signal generation means, flip-flop means for holding the output of the latch means, and comparison of the outputs of the latch means and the flip-flop means, and update control for updating the data held in the flip-flop means according to the result. By including the control means, the level data can be generated by selecting a part of the absolute value or the counter value according to the magnitude of the absolute value of the PCM data. That is,
As shown in FIG. 3, the upper 7 bits of the absolute value are adopted as the level data only when the PCM data is larger than the predetermined value, and in other cases, the level data is obtained by using the counter value and a part of the absolute value. By generating it, 8-bit level data with high resolution near 0 dB can be generated. As a result, the amount of data transferred to the system microcomputer is small, the processing and memory load of the system microcomputer are reduced, and it is possible to detect the level in the vicinity of 0 dB, which requires high resolution, more finely. Furthermore, the shift register that performs serial / parallel conversion of PCM data that has undergone signal processing can also be used for format conversion for outputting the data to the D / A converter or the output signal generation unit of the digital audio interface standard. As a result, the cost can be reduced.

また、本発明請求項2によれば、Nビットのパラレル
データをシリアルデータに変換して最下位ビット(LS
B)から順に出力し、かつ、その際に次のパラレルデー
タをロードするまで最上位ビット(MSB)出力をシリア
ル入力に再入力して保持する第1のシフトレジスタと、
第1のシフトレジスタの出力を絶対値に変換する絶対値
生成手段と、絶対値生成手段の出力をシリアル/パラレ
ル変換する第2のシフトレジスタと、第2のシフトレジ
スタ中のデータのシフト数をカウントするカウンタと、
カウンタの出力と第2のシフトレジスタの出力とを前記
カウンタの出力に応じて選択するセレクタ手段と、第2
のシフトレジスタの出力およびセレクタ手段の出力を保
持するラッチ手段と、第2のシフトレジスタの出力に応
じて前記ラッチ手段のラッチ信号を生成するラッチ信号
生成手段と、ラッチ手段の出力を保持するフリップフロ
ップ手段と、ラッチ手段とフリップフロップ手段の出力
を大小比較し、その結果に応じて前記フリップフロップ
手段に保持するデータの更新制御を行う更新制御手段と
を備えることによって、絶対値生成手段202はシフトレ
ジスタから出力されるシリアルデータとその符号ビット
との排他的論理和(Exclusive−OR)でPCMデータの絶対
値を生成できるので、本発明請求項1における絶対値生
成手段104に比べると小さな回路規模で同じの効果を実
現することができる。また、本発明請求項1における信
号処理部102の機能の一部としてPCMデータを絶対値を本
発明請求項2のようにして生成するなど構成の組み合わ
せも可能である。
According to claim 2 of the present invention, the N-bit parallel data is converted into serial data to convert the least significant bit (LS
A first shift register for outputting in sequence from B) and re-inputting and holding the most significant bit (MSB) output to the serial input until the next parallel data is loaded;
The absolute value generating means for converting the output of the first shift register into an absolute value, the second shift register for performing serial / parallel conversion of the output of the absolute value generating means, and the shift number of the data in the second shift register A counter to count,
Selector means for selecting the output of the counter and the output of the second shift register according to the output of the counter;
Latch means for holding the output of the shift register and the output of the selector means, a latch signal generating means for generating the latch signal of the latch means according to the output of the second shift register, and a flip-flop for holding the output of the latch means. The absolute value generation means 202, by providing a comparison means for comparing the outputs of the latch means and the flip-flop means, and updating control of the data held in the flip-flop means according to the result. Since the absolute value of the PCM data can be generated by the exclusive-OR of the serial data output from the shift register and its sign bit, the circuit is smaller than the absolute value generating means 104 in claim 1 of the present invention. The same effect can be achieved on a scale. Further, as a part of the function of the signal processing unit 102 according to the first aspect of the present invention, a combination of configurations such as generating absolute value of PCM data as in the second aspect of the present invention is possible.

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

第1図は本発明の第1の実施例におけるレベルデコーダ
のピーク検出回路をDATに適用したときの構成を示すブ
ロック図、第2図は本発明の第2の実施例におけるレベ
ルデコーダのピーク検出回路をDATに適用したときの構
成を示すブロック図、第3図は16ビットのPCMデータか
ら、0dB付近での分解能を高くした8ビットのレベルデ
ータを生成する変換則を示す概略図、第4図は16ビット
のPCMデータの絶対値から15ビットのレベルデータを生
成する従来のレベルデコーダのピーク検出回路の構成を
示すブロック図、第5図は16ビットのPCMデータの絶対
値から8ビットのレベルデータを生成する従来のレベル
デコーダのピーク検出回路の構成を示すブロック図、第
6図は16ビットのPCMデータから8ビットのレベルデー
タを生成する従来の変換則を示す概略図である。 101…第1のシフトレジスタ、102…信号処理部、103…
第2のシフトレジスタ、104…絶対値生成手段、105…カ
ウンタ、106…ラッチ信号生成手段、107,108…ラッチ手
段、109…更新制御手段、110,111…フリップフロップ手
段、112,113…セレクタ手段、201…第1のシフトレジス
タ、202…絶対値生成手段、203…第2のシフトレジス
タ、204,212…セレクタ手段、205…カウンタ、206…ラ
ッチ信号生成手段、207,208…ラッチ手段、209…更新制
御手段、210,211…フリップフロップ手段
FIG. 1 is a block diagram showing the configuration when the peak detection circuit of the level decoder according to the first embodiment of the present invention is applied to a DAT, and FIG. 2 is the peak detection of the level decoder according to the second embodiment of the present invention. FIG. 4 is a block diagram showing a configuration when the circuit is applied to a DAT, and FIG. 3 is a schematic diagram showing a conversion rule for generating 8-bit level data with high resolution near 0 dB from 16-bit PCM data. The figure is a block diagram showing the configuration of a peak detection circuit of a conventional level decoder that generates 15-bit level data from the absolute value of 16-bit PCM data. FIG. 6 is a block diagram showing the configuration of a peak detection circuit of a conventional level decoder for generating level data, and FIG. 6 is a schematic diagram showing a conventional conversion rule for generating 8-bit level data from 16-bit PCM data. FIG. 101 ... First shift register, 102 ... Signal processing unit, 103 ...
Second shift register, 104 ... Absolute value generating means, 105 ... Counter, 106 ... Latch signal generating means, 107, 108 ... Latch means, 109 ... Update control means, 110, 111 ... Flip-flop means, 112, 113 ... Selector means, 201 ... First Shift register, 202 ... absolute value generation means, 203 ... second shift register, 204, 212 ... selector means, 205 ... counter, 206 ... latch signal generation means, 207, 208 ... latch means, 209 ... update control means, 210, 211 ... flip-flop means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】Nビットのパラレルデータをシリアルデー
タに変換して最下位ビット(LSB)から順に出力し、か
つその際に次のパラレルデータをロードするまで最上位
ビット(MSB)出力をシリアル入力に再入力して保持す
る第1のシフトレジスタと、 上記シリアルデータをパラレルデータに変換する第2の
シフトレジスタと、 上記第2のシフトレジスタの出力を絶対値に変換する絶
対値生成手段と、 上記第2のシフトレジスタ中のデータのシフト数をカウ
ントするカウンタと、 上記カウンタの出力と絶対値生成手段の出力とを前記カ
ウンタの出力に応じて選択するセレクタ手段と、 上記絶対値生成手段の出力および上記セレクタ手段の出
力を保持するラッチ手段と、 上記絶対値生成手段の出力に応じて上記ラッチ手段のラ
ッチ信号を生成するラッチ信号生成手段と、 上記ラッチ手段の出力を保持するフリップフロップ手段
と、 上記ラッチ手段とフリップフロップ手段の出力を大小比
較し、その結果に応じて前記フリップフロップ手段に保
持するデータの更新制御を行う更新制御手段とを備えた
レベルデコーダのピーク検出回路。
1. N-bit parallel data is converted into serial data and output in order from the least significant bit (LSB), and at that time, the most significant bit (MSB) output is serially input until the next parallel data is loaded. A first shift register for re-inputting and holding the same, a second shift register for converting the serial data into parallel data, and an absolute value generating means for converting the output of the second shift register into an absolute value, A counter for counting the number of shifts of the data in the second shift register; a selector means for selecting the output of the counter and the output of the absolute value generating means according to the output of the counter; and the absolute value generating means. Latch means for holding the output and the output of the selector means, and a latch signal of the latch means according to the output of the absolute value generation means. Latch signal generation means, flip-flop means for holding the output of the latch means, and comparison of the outputs of the latch means and the flip-flop means, and update control of the data held in the flip-flop means according to the result is compared. A peak detection circuit of a level decoder having update control means for performing.
【請求項2】Nビットのパラレルデータをシリアルデー
タに変換して最下位ビット(LSB)から順に出力し、か
つ、その際に次のパラレルデータをロードするまで最上
位ビット(MSB)出力をシリアル入力に再入力して保持
する第1のシフトレジスタと、 上記第1のシフトレジスタの出力を絶対値に変換する絶
対値生成手段と、 上記絶対値生成手段の出力をシリアル/パラレル変換す
る第2のシフトレジスタと、 上記第2のシフトレジスタ中のデータのシフト数をカウ
ントするカウンタと、 上記カウンタの出力と第2のシフトレジスタの出力とを
前記カウンタの出力に応じて選択するセレクタ手段と、 上記第2のシフトレジスタの出力および上記セレクタ手
段の出力を保持するラッチ手段と、 上記第2のシフトレジスタの出力に応じて上記ラッチ手
段のラッチ信号を生成するラッチ信号生成手段と、 上記ラッチ手段の出力を保持するフリップフロップ手段
と、 上記ラッチ手段とフリップフロップ手段の出力を大小比
較し、その結果に応じて前記フリップフロップ手段に保
持するデータの更新制御を行う更新制御手段とを備えた
レベルデコーダのピーク検出回路。
2. N-bit parallel data is converted into serial data and is output in order from the least significant bit (LSB), and the most significant bit (MSB) output is serialized until the next parallel data is loaded. A first shift register for re-inputting and holding the input, an absolute value generation means for converting the output of the first shift register into an absolute value, and a second serial / parallel conversion for the output of the absolute value generation means Shift register, a counter for counting the number of shifts of the data in the second shift register, and selector means for selecting the output of the counter and the output of the second shift register according to the output of the counter. Latch means for holding the output of the second shift register and the output of the selector means, and the latch according to the output of the second shift register. Latch signal generating means for generating the latch signal of the latch means, flip-flop means for holding the output of the latch means, and the outputs of the latch means and the flip-flop means are compared in magnitude, and the flip-flop means is used according to the result. And a peak detection circuit of a level decoder, which comprises update control means for controlling the update of the data held in.
JP2340454A 1990-06-27 1990-11-30 Level detector peak detection circuit Expired - Fee Related JPH0821228B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2340454A JPH0821228B2 (en) 1990-11-30 1990-11-30 Level detector peak detection circuit
US07/711,013 US5325240A (en) 1990-06-27 1991-06-06 Data compression and expansion apparatus for audio recorders
GB9112422A GB2246220B (en) 1990-06-27 1991-06-10 Digital audio tape recorder apparatus
DE4121122A DE4121122A1 (en) 1990-06-27 1991-06-26 DIGITAL AUDIO TAPE RECORDING DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2340454A JPH0821228B2 (en) 1990-11-30 1990-11-30 Level detector peak detection circuit

Publications (2)

Publication Number Publication Date
JPH04209386A JPH04209386A (en) 1992-07-30
JPH0821228B2 true JPH0821228B2 (en) 1996-03-04

Family

ID=18337121

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2340454A Expired - Fee Related JPH0821228B2 (en) 1990-06-27 1990-11-30 Level detector peak detection circuit

Country Status (1)

Country Link
JP (1) JPH0821228B2 (en)

Also Published As

Publication number Publication date
JPH04209386A (en) 1992-07-30

Similar Documents

Publication Publication Date Title
US5146457A (en) Device for transmitting data words representing a digitalized analog signal and device for receiving the transmitted data words
US6801143B2 (en) Method and apparatus for generating gray code for any even count value to enable efficient pointer exchange mechanisms in asynchronous FIFO'S
JPH0775343B2 (en) Synchronization detection circuit and method
US3720875A (en) Differential encoding with lookahead feature
JPH0821228B2 (en) Level detector peak detection circuit
JPH0828052B2 (en) Frame generation method for PCM data
JP2573746B2 (en) Data compression device
US5325240A (en) Data compression and expansion apparatus for audio recorders
JP2536489B2 (en) Compressed data decoding device
JP3190846B2 (en) Asynchronous readout circuit of binary counter
JP2576111B2 (en) Digital signal speed conversion method
KR950011290B1 (en) Address generating circuit
JP2768287B2 (en) Match detection circuit
US5204833A (en) Method and apparatus for recording waveform
JPH05315971A (en) Serial/parallel conversion circuit
JP2599984B2 (en) Input data peak value detection circuit
JPS5836037A (en) Pcm signal transmission system
JP2536490B2 (en) Run-length encoding device
JPH01314023A (en) Digital signal processing circuit
JPH01212921A (en) A/d conversion circuit
JPH0114595B2 (en)
JPH07123214B2 (en) D / A converter
JPS60263531A (en) Code error compensating device
JPH0328755B2 (en)
JPH01164128A (en) Bit conversion circuit

Legal Events

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

Free format text: PAYMENT UNTIL: 20080304

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090304

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees