JP4075155B2 - Data transmission method for digital audio data - Google Patents
Data transmission method for digital audio data Download PDFInfo
- Publication number
- JP4075155B2 JP4075155B2 JP26757698A JP26757698A JP4075155B2 JP 4075155 B2 JP4075155 B2 JP 4075155B2 JP 26757698 A JP26757698 A JP 26757698A JP 26757698 A JP26757698 A JP 26757698A JP 4075155 B2 JP4075155 B2 JP 4075155B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- digital audio
- channel
- transmitted
- attribute
- 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
Links
Images
Description
【0001】
【発明の属する技術分野】
この発明は、例えば、2つのDSP(Digital Signal Processor) 間でデジタルオーディオデータを伝送する場合など、デジタルオーデイオデータ処理部間でデジタルオーディオデータを伝送する時のデータ伝送方法に関する。
【0002】
【従来の技術】
一般に、ステレオデジタルオーディオ処理デバイスは、RチャンネルとLチャンネルのデータを、一定のタイミングで交互に入出力するようなインターフェイスを持つ。
【0003】
図4(A)に示すようなタイプ1のデバイスでは、ワードクロックの立ち上がりでLチャンネルデータ、立ち下がりでRチャンネルデータのサンプルタイミングを規定する。
【0004】
しかし、図4(A)のタイプ1のようなデバイスが同じ入出力インターフェイスを持つデバイスと接続されずに、図4(B)に示すタイプ2のようなデバイスと接続されることがあったり、または、左右のデータが必ずしも交互に出力されない場合がある。後者は、ある種のデバイスでは圧縮処理を行う場合に複数のデータをまとめて処理することがあるために生じる。このようなことが生じると、LRのチャンネルデータが正しく入出力出来なくなってしまう。そこで、入出力の正しいインターフェイスを補償するために、外付けのロジック回路やRAMを別途設けたりしていた。
【0005】
【発明が解決しようとする課題】
しかしなから、外付けのロジック回路やRAMを設けることは、部品点数の増加とコストアップを招くという問題があった。
【0006】
そこで、この発明の目的は、デジタルオーディオデータにチャンネル等の属性情報を付加して上記の問題を解決するデジタルオーディオデータの伝送方法を提供することにある。
【0007】
【課題を解決するための手段】
この発明に係るデジタルオーディオデータのデータ伝送方法は、デジタルオーディオデータ処理部間でデジタルオーディオデータを伝送するとき、送信側からベースクロック、ワード同期クロック、およびデータを並行して送るときに、データの有効性を示すとともにオーディオチャンネルを表すデータ、または、無効を表すデータを属性データとして付加してから送信し、受信側で属性データに基づいてデータの処理を行うことを特徴とする。
【0008】
属性データは、オーディオチャンネルを表すデータ、または無効、有効を表すデータとすることができる。
【0009】
上記のように、伝送するデータに属性データを付加することによって、図4(A)のようなインターフェイスを持たなくても、そのデータのデジタルオーディオデータとしての属性、すなわち、LチャンネルかRチャンネルかなどの情報を知ることができるから、図4(B)に示すようなインターフェイスのフォーマットでデータ伝送を行うことができる。また、属性データにデータの無効、有効を表すデータを加えることによって、データの伝送を離散的に行っても、受信側では正しくデータの復元が可能である。
【0010】
また、請求項2のように、属性データを同期クロック間のデータ占有期間外に付加するようにすれば、属性データによりデータ全体の長さが長くなることがない。
さらに、請求項3のように、送信側が1度送信したデータを再度送信する場合には、受信したデータに無効を表すデータを属性データとして付加して受信側に送信し、送信側が対になるデータの一方を送信できなかった場合には、対になるデータの他方に無効を表すデータを属性データとして付加してから受信側に送信するようにしても良い。
【0011】
【発明の実施の形態】
図1は、この発明の実施形態であるデジタルオーディオデータのデータ伝送装置のブロック図である。
【0012】
デジタルオーディオデータ処理部Aとデジタルオーディオデータ処理部BとはそれぞれDSPからなり、AとB間でデジタルオーディオデータの通信が通信ラインCによって行われる。通信ラインCには、ベースクロックを伝送するライン、ワード同期信号(sync)を伝送するライン、データを伝送するラインが含まれている。ベースクロックはデータのサンプルクロックであって、2つのデータ処理部A、B間で共通である。ワード同期クロックはデータのサンプル開始タイミングを示すクロックであり、図4(B)に示すsync clockと同じである。すなわち、この例では、図4(B)の汎用の伝送フォーマットを使用する。
【0013】
この例では、1wordが128クロックに設定され、1word内にLチャンネルデータとRチャンネルデータとがそれぞれ32ビットずつ伝送されるようになっている。したがって、ワード同期クロックは1クロック目と65クロック目にある。データは、L、Rチャンネル分それぞれが32ビットで構成されるから、ワード同期クロック1つ分に対応する期間内にデータ占有期間外、すなわち32ビットの未データ期間が存在する。そこで、この実施形態ではこの32ビットの未データ期間に、その直前のデータの属性を示す属性データ(ステータス)を付加して伝送するようにしている。この結果、例えば、デジタルオーディオデータ処理部AにおいてデータAのステータスにLチャンネル、データBのステータスにRチャンネルを付加して送信すると、デジタルオーディオデータ処理部Bでは、それぞれのステータスを見ることによって、各データA、BをLチャンネル分データ、Rチャンネル分データとして簡単に振り分けることができる。また、ステータスとしては、LチャンネルおよびRチャンネルを区別するデータだけではなく、無効を表すデータとすることもできる。無効を表すデータをステータスとして付加する必要があるのは次の理由による。
【0014】
(1)デジタルオーディオデータ処理部AにDSPを使っている場合、リングバッファに対してデータを記憶する処理とデータを伝送する処理とが非同期であるために、1度伝送したデータを再度伝送することがある。この場合、再度伝送するデータに対してはステータスを無効とする。
【0015】
(2)同じ理由により、Lチャンネル分のデータを送信できなかった場合には、それと対にあるRチャンネル分のデータを無効とする必要がある。この場合に、Rチャンネル分のデータのステータスを無効とする。
【0016】
このように、ステータスとしてLチャンネルおよびRチャンネルまたは無効を表すデータとすることで、2つのデジタルオーディオデータ処理部A、B間で同期をとりながらオーディオデータの伝送を正しく行うことができる。
【0017】
図2(1)〜(2)は、上記ステータスのデータの種類を示している。(1)は典型的な例であって、1word内のデータA、Bに対し、それぞれステータスがLチャンネル、Rチャンネルとなっている。(2)はデータA、Bとも無効の場合を示している。いずれの場合も、受信側においてデータA、Bの有効性を判定することができるとともに、有効な場合には正しくLチャンネルとRチャンネルとに振り分けて処理することができる。
【0018】
図3は、DSP1においてデジタルオーディオデータをTwinVQ(NTT社で開発された音楽圧縮技術)データに圧縮し(エンコードし)、これをデータバスを介して伸長(デコード)用のDSP2に送信するときの接続例を示す。DSP2は、TwinVQデータをデコードして、DAC(D/A変換器)3を介して音声信号(音楽信号)として出力する。
【0019】
上記の構成において、DSP1からDSP2に送信されるTwinVQデータは図1に示す汎用の伝送フォーマットに従っている。すなわち、1wordが128ビットであって、この1word内に32ビットのデータA、B(一般には、それぞれがLチャンネルデータとRチャンネルデータ)がステータスと共に送信される。ステータスは、データA、BがそれぞれLチャンネルかRチャンネルかまたは無効かを表すデータである。
【0020】
なお、ステータスとしては、デジタルオーディオデータの属性を表す他のデータを含むものであっても構わない。
【0021】
【発明の効果】
この発明によれば、図4(B)に示すような汎用的なデータ伝送フォーマットに従うデータ処理部であっても、伝送データに特有の属性データ、例えば、LチャンネルおよびRチャンネルのデータを付加することにより、外付け回路等の特別のインターフェイス用回路がなくともデータ処理部間においてデータの正確な処理が可能になる。
【図面の簡単な説明】
【図1】この発明の実施形態であるデジタルオーディオデータ処理システムの概念構成図
【図2】ステータスの種類を示す図
【図3】デジタルオーディオデータ処理部にDSPを用いた使用例を示す図
【図4】デジタルオーディオデータ処理部の処理フォーマットを示す図[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data transmission method when digital audio data is transmitted between digital audio data processing units, for example, when digital audio data is transmitted between two DSPs (Digital Signal Processors).
[0002]
[Prior art]
In general, a stereo digital audio processing device has an interface that alternately inputs and outputs R channel and L channel data at a fixed timing.
[0003]
In the
[0004]
However, a device such as
[0005]
[Problems to be solved by the invention]
However, the provision of an external logic circuit or RAM has a problem of increasing the number of parts and increasing the cost.
[0006]
SUMMARY OF THE INVENTION An object of the present invention is to provide a digital audio data transmission method that solves the above problems by adding attribute information such as a channel to digital audio data.
[0007]
[Means for Solving the Problems]
According to the data transmission method of digital audio data according to the present invention, when digital audio data is transmitted between digital audio data processing units, when transmitting a base clock, a word synchronization clock, and data in parallel from the transmission side , Data indicating validity and data indicating an audio channel or data indicating invalidity is added as attribute data and then transmitted, and data processing is performed on the receiving side based on the attribute data.
[0008]
The attribute data can be data representing an audio channel, or data representing invalidity or validity.
[0009]
As described above, by adding attribute data to data to be transmitted, the attribute of the data as digital audio data, that is, whether it is an L channel or an R channel, even without an interface as shown in FIG. Thus, data transmission can be performed in the interface format as shown in FIG. Further, by adding data indicating invalidity / validity of data to the attribute data, the data can be correctly restored on the receiving side even if the data is transmitted discretely.
[0010]
Further, if the attribute data is added outside the data occupation period between the synchronous clocks as in
Further, as in claim 3 , when data transmitted once by the transmission side is transmitted again, data indicating invalidity is added to the received data as attribute data and transmitted to the reception side, and the transmission side becomes a pair. If one of the data cannot be transmitted, data indicating invalidity may be added as attribute data to the other of the paired data and then transmitted to the receiving side .
[0011]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram of a data transmission apparatus for digital audio data according to an embodiment of the present invention.
[0012]
The digital audio data processing unit A and the digital audio data processing unit B are each composed of a DSP, and communication of digital audio data between A and B is performed by a communication line C. The communication line C includes a line for transmitting a base clock, a line for transmitting a word synchronization signal (sync), and a line for transmitting data. The base clock is a data sample clock and is common between the two data processing units A and B. The word synchronization clock is a clock indicating the data sampling start timing, and is the same as the sync clock shown in FIG. That is, in this example, the general-purpose transmission format shown in FIG. 4B is used.
[0013]
In this example, 1 word is set to 128 clocks, and L channel data and R channel data are transmitted in 32 bits each in 1 word. Therefore, the word synchronization clock is at the first clock and the 65th clock. Since the data is composed of 32 bits for each of the L and R channels, there is a data unoccupied period, that is, a 32-bit non-data period within a period corresponding to one word synchronization clock. Therefore, in this embodiment, attribute data (status) indicating the attribute of the immediately preceding data is added to the 32-bit non-data period for transmission. As a result, for example, in the digital audio data processing unit A, when the L channel is added to the status of the data A and the R channel is added to the status of the data B, the digital audio data processing unit B sees the respective statuses. The data A and B can be easily distributed as L channel data and R channel data. The status can be not only data for distinguishing the L channel and the R channel, but also data indicating invalidity. The reason why it is necessary to add invalid data as a status is as follows.
[0014]
(1) When a DSP is used for the digital audio data processing unit A, the process of storing data in the ring buffer and the process of transmitting data are asynchronous, so that the data transmitted once is transmitted again. Sometimes. In this case, the status is invalidated for data to be transmitted again.
[0015]
(2) For the same reason, when data for the L channel cannot be transmitted, it is necessary to invalidate the data for the R channel paired therewith. In this case, the data status for the R channel is invalidated.
[0016]
As described above, the data indicating the L channel and the R channel or invalidity is used as the status, so that the audio data can be correctly transmitted while synchronizing between the two digital audio data processing units A and B.
[0017]
2 (1) to 2 (2) show the types of status data. (1) is a typical example, and the statuses of the data A and B in 1 word are L channel and R channel, respectively. (2) shows a case where both data A and B are invalid. In either case, the validity of the data A and B can be determined on the receiving side, and if valid, the data can be correctly distributed to the L channel and the R channel.
[0018]
FIG. 3 shows a case where the digital audio data is compressed (encoded) in the
[0019]
In the above configuration, the TwinVQ data transmitted from the
[0020]
The status may include other data representing the attributes of the digital audio data.
[0021]
【The invention's effect】
According to the present invention, even in a data processing unit conforming to a general-purpose data transmission format as shown in FIG. 4B, attribute data peculiar to transmission data, for example, L channel and R channel data is added. As a result, even if there is no special interface circuit such as an external circuit, data can be accurately processed between the data processing units.
[Brief description of the drawings]
FIG. 1 is a conceptual configuration diagram of a digital audio data processing system according to an embodiment of the present invention. FIG. 2 is a diagram showing status types. FIG. 3 is a diagram showing an example of using a DSP in a digital audio data processing unit. FIG. 4 is a diagram showing a processing format of a digital audio data processing unit.
Claims (3)
送信側からベースクロック、ワード同期クロック、およびデータを並行して送るときに、前記データの有効性を示すとともにオーディオチャンネルを表すデータ、または、無効を表すデータを属性データとして付加してから送信し、受信側で属性データに基づいてデータの処理を行うことを特徴とする、デジタルオーディオデータのデータ伝送方法。A transmission method for transmitting digital audio data between digital audio data processing units,
When transmitting the base clock, word synchronization clock, and data in parallel from the transmission side, the data indicating the validity of the data and the data indicating the audio channel or the data indicating the invalidity are added as attribute data and transmitted. A data transmission method of digital audio data, characterized in that data processing is performed on the receiving side based on attribute data.
請求項1記載のデジタルオーディオデータのデータ伝送方法。The attribute data is added outside the data occupation period between word synchronization clocks.
The data transmission method of digital audio data according to claim 1.
前記送信側が対になるデータの一方を送信できなかった場合には、前記対になるデータの他方に無効を表す前記データを前記属性データとして付加してから前記受信側に送信する、
請求項1または2に記載のデジタルオーディオデータのデータ伝送方法。Wherein when the transmission side transmits the data transmitted once again transmits the data representing the disabled the received data to the receiving side from added as the attribute data,
When the transmitting side could not transmit one of the paired data, the data representing invalidity is added to the other of the paired data as the attribute data, and then transmitted to the receiving side.
The data transmission method of digital audio data according to claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26757698A JP4075155B2 (en) | 1998-09-22 | 1998-09-22 | Data transmission method for digital audio data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26757698A JP4075155B2 (en) | 1998-09-22 | 1998-09-22 | Data transmission method for digital audio data |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000099064A JP2000099064A (en) | 2000-04-07 |
JP4075155B2 true JP4075155B2 (en) | 2008-04-16 |
Family
ID=17446709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26757698A Expired - Fee Related JP4075155B2 (en) | 1998-09-22 | 1998-09-22 | Data transmission method for digital audio data |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4075155B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115103291B (en) * | 2022-08-26 | 2022-11-04 | 南京芯驰半导体科技有限公司 | FIFO cache control method, device and system |
-
1998
- 1998-09-22 JP JP26757698A patent/JP4075155B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2000099064A (en) | 2000-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4098410B2 (en) | Serial interface device with register for both transmission and reception | |
JP4075155B2 (en) | Data transmission method for digital audio data | |
CN114448914B (en) | TT data exchange execution monitoring system based on double FPGAs | |
JPS6384228A (en) | Data transmission system between master station and plural slave stations | |
JPH09247112A (en) | Interleaving method to network communication path of serial transmission path | |
JP3158711B2 (en) | Data transfer method | |
KR0157154B1 (en) | Audio decoder | |
JPH04145566A (en) | Serial transferring circuit | |
JPH03112240A (en) | Line fault detecting method | |
JPH0584095B2 (en) | ||
JP2874983B2 (en) | Communication device | |
KR100667034B1 (en) | Data structure of SALSPA Communication Bus Protocol and bus communication method using the same | |
KR960016277B1 (en) | Voice data transmission circuit | |
JP2705442B2 (en) | Synchronous method | |
JP2658927B2 (en) | Multiplex transmission method and apparatus | |
JPH04290342A (en) | Information transfer system | |
JPH0456545A (en) | Time synchronization control system | |
JPH02162860A (en) | Communication method between master station versus plural slave stations | |
JPH0637738A (en) | Data transmission error control system | |
JPH11184672A (en) | Serial data holding circuit | |
JPH01114230A (en) | Serial date transmission system | |
JPH02105748A (en) | Signal transfer equipment | |
JPH07297877A (en) | Cyclic digital information transmitter | |
JPH0427233A (en) | Communication method between plural opposed data terminals | |
JPH0354939A (en) | Method of controlling interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041224 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070626 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070827 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070925 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071126 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20080108 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080121 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110208 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120208 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130208 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140208 Year of fee payment: 6 |
|
LAPS | Cancellation because of no payment of annual fees |