JP2014049973A - Serial data receiving circuit and receiving method, audio signal processing circuit, electronic equipment, and audio system - Google Patents
Serial data receiving circuit and receiving method, audio signal processing circuit, electronic equipment, and audio system Download PDFInfo
- Publication number
- JP2014049973A JP2014049973A JP2012192191A JP2012192191A JP2014049973A JP 2014049973 A JP2014049973 A JP 2014049973A JP 2012192191 A JP2012192191 A JP 2012192191A JP 2012192191 A JP2012192191 A JP 2012192191A JP 2014049973 A JP2014049973 A JP 2014049973A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- bit
- data
- count value
- clock
- 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.)
- Granted
Links
- 230000005236 sound signal Effects 0.000 title claims description 23
- 238000000034 method Methods 0.000 title claims description 11
- 230000007704 transition Effects 0.000 claims description 10
- 239000004065 semiconductor Substances 0.000 claims description 4
- 239000000758 substrate Substances 0.000 claims description 4
- 101000685663 Homo sapiens Sodium/nucleoside cotransporter 1 Proteins 0.000 abstract description 16
- 102100023116 Sodium/nucleoside cotransporter 1 Human genes 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 16
- 238000005070 sampling Methods 0.000 description 10
- 101000821827 Homo sapiens Sodium/nucleoside cotransporter 2 Proteins 0.000 description 9
- 102100021541 Sodium/nucleoside cotransporter 2 Human genes 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 239000000470 constituent Substances 0.000 description 3
- 230000007423 decrease Effects 0.000 description 2
- 101000822028 Homo sapiens Solute carrier family 28 member 3 Proteins 0.000 description 1
- 102100021470 Solute carrier family 28 member 3 Human genes 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007935 neutral effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
本発明は、シリアルデータを受信する受信回路に関する。 The present invention relates to a receiving circuit that receives serial data.
集積回路間で情報を伝送するために、2線式あるいは3線式のシリアルインタフェースが利用される。2線式シリアルインタフェースとしてはI2C(Inter Integrated Circuit)バス規格が、3線式シリアルインタフェースとしてはデジタルオーディオ信号を伝送するためのI2S(Inter Integrated circuit Sound)バス規格が、提唱、実用化されている。 In order to transmit information between integrated circuits, a 2-wire or 3-wire serial interface is used. The I 2 C (Inter Integrated Circuit) bus standard is proposed as a 2-wire serial interface, and the I 2 S (Inter Integrated circuit Sound) bus standard for transmitting digital audio signals is proposed and used as a 3-wire serial interface. It has become.
図1は、I2Sの信号フォーマットを示す図である。シリアルデータDATAは、サンプリング周期Tsごとに、64ビットを含む。64ビットのうち、32ビットがLチャンネルに、32ビットがRチャンネルに割り当てられている。Lチャンネル、Rチャンネルごとのデータを1ワードという。
ビットクロックBCKは、シリアルデータDATAのビットごとにポジティブエッジを有する。つまりビットクロックBCKの周波数は、サンプリング周波数fs(=1/Ts)の64倍である。
FIG. 1 is a diagram illustrating an I 2 S signal format. The serial data DATA includes 64 bits for each sampling period Ts. Of the 64 bits, 32 bits are assigned to the L channel and 32 bits are assigned to the R channel. The data for each L channel and R channel is called one word.
The bit clock BCK has a positive edge for each bit of the serial data DATA. That is, the frequency of the bit clock BCK is 64 times the sampling frequency fs (= 1 / Ts).
I2S伝送では、これらに加えて、1ワード(32ビット)ごとにポジティブエッジとネガティブエッジを有するワードクロックLRCKが入力される。ワードクロックLRCKがローレベルのときLチャンネルのデータが伝送され、ハイレベルのときRチャンネルのデータが伝送される。 In the I 2 S transmission, in addition to these, a word clock LRCK having a positive edge and a negative edge is input for each word (32 bits). When the word clock LRCK is at a low level, L channel data is transmitted, and when the word clock LRCK is at a high level, R channel data is transmitted.
I2S通信では、1ワード32ビットのうち、最大24ビットがオーディオデータに割り当てられる。このビット長Kは音質に応じて可変である。左詰め(Left-justified)の場合、32ビットのうち上位Kビットがオーディオ信号を示すデータ(オーディオデータという)となり、右詰め(Right-justified)の場合、下位Kビットがオーディオデータとなる。LチャンネルのオーディオデータをLchデータ、RチャンネルのオーディオデータをRchデータと称する。 In I 2 S communication, a maximum of 24 bits are assigned to audio data out of 32 bits per word. This bit length K is variable according to the sound quality. In the case of left-justified, the upper K bits of the 32 bits are data indicating audio signals (referred to as audio data), and in the case of right-justified, the lower K bits are audio data. The L channel audio data is referred to as Lch data, and the R channel audio data is referred to as Rch data.
以上がI2S通信のフォーマットの概要である。 The above is the outline of the format of the I 2 S communication.
図2は、本発明者が検討したI2S通信用インタフェースを備える受信回路100rの構成を示すブロック図である。なお、図2の受信回路100rの構成およびその動作を、公知技術と認定してはならない。受信回路100rは、シリアルインタフェース回路10、逓倍回路30、DSP(Digital Signal Processor)の入力段50を備える。
FIG. 2 is a block diagram showing a configuration of a
シリアルインタフェース回路10は、ワードクロックLRCK、ビットクロックBCK、データDATAを受け、パラレルシリアル変換し、LチャンネルデータD_Lch、RチャンネルデータD_Rchを、後段のDSPの入力段50に出力する。
The
逓倍回路30はたとえばPLL回路を含み、ビットクロックBCKを16逓倍することにより、サンプリング周波数fsの1024倍のシステムクロックPLLCKを生成する。データの受信先であるDSPは、このシステムクロックPLLCKと同期してオーディオデータD_Lch、D_Rchを処理する。
The
シリアルインタフェース回路10は、シリアルパラレル変換器11、第1カウンタ12、カウンタクリア回路16を備える。
The
シリアルパラレル変換器11は、ビットクロックBCKおよびワードクロックLRCKと同期して、シリアルデータDATAに含まれるLチャンネルデータD_Lch、RチャンネルデータD_Rchを抽出する。
The serial /
シリアルパラレル変換器11は、シフトレジスタ14、LchバッファBUF_L、RchバッファBUF_R、タイミング制御部15を含む。
シリアルデータDATAは、32ビットのLチャンネルデータと、32ビットのRチャンネルデータを含むが、それぞれのうち実効的なオーディオデータは最長24ビットである。したがってシフトレジスタ14は、24ビットで構成されており、シリアルデータDATAをビットクロックBCKと同期して1ビットずつシフトしていく。シフトレジスタ14からは、24ビットのパラレルデータDpが出力される。
The serial /
The serial data DATA includes 32-bit L channel data and 32-bit R channel data, of which the effective audio data has a maximum length of 24 bits. Therefore, the
タイミング制御部15は、ワードクロックLRCKのネガティブエッジから、ビットクロックBCKを24個カウントすると、第1タイミング信号をアサートする。LchバッファBUF_Lは、第1タイミング信号がアサートされると、シフトレジスタ14に格納されるパラレルデータDpをLチャンネルデータD_Lchとしてラッチする。
またタイミング制御部15は、ワードクロックLRCKのネガティブエッジから、ビットクロックBCKを(32+24)個カウントすると、あるいはワードクロックLRCKのポジティブエッジからビットクロックBCKを24個カウントすると、第2タイミング信号をアサートする。RchバッファBUF_Rは、第2タイミング信号がアサートされると、シフトレジスタ14に格納されるパラレルデータDpをRチャンネルデータD_Rchとしてラッチする。
The
The
第1カウンタ12は、クリアコマンドが発行されると、次のワードクロックLRCKのネガティブエッジのタイミングでゼロクリアされる。その後、第1カウンタ12は、ビットクロックBCKと同期してカウント動作を行い、カウント値CNT1が所定値(たとえば1023)に達するたびに0に戻り、再びカウントアップする動作を繰り返す。
When the clear command is issued, the
カウンタクリア回路16は、第1カウンタ12のカウント値CNT1を受け、カウント値CNT1が所定値(たとえば800)に達するたびに、カウンタクリア信号CNT_CLRをアサートする。
The counter
DSPの入力段50は、Lchラッチ52、Rchラッチ54、第2カウンタ(DSPシーケンスカウンタ)56、ストローブ信号生成部58を備える。
The
第2カウンタ56は、カウントクリア信号CNT_CLRがアサートされるたびにゼロクリアされ、カウントアップする動作を繰り返す。ストローブ信号生成部58は、第2カウンタ56のカウント値CNT2が第1所定値(たとえば0)になるたびに言い換えればカウントクリア信号CNT_CLRがアサートされるたびに、第1ストローブ信号STRB1をアサートし、カウント値CNT2が第2所定値(たとえば512)になるたびに第2ストローブ信号STRB2をアサートする。
The
Lchラッチ52は、第1ストローブ信号STRB1と同期して、LchバッファBUF_Lに格納されるLチャンネルデータD_Lchをラッチする。同様にRchラッチ54は、第2ストローブ信号STRB2と同期して、RchバッファBUF_Rに格納されるRチャンネルデータD_Rchをラッチする。
The
本発明者は図2の受信回路100rの回路動作を検討し、以下の課題を認識するに至った。図3(a)、(b)は、図2の受信回路100rの動作を示す波形図である。
図3(a)は、システムクロックPLLCKの周波数が、1024×fsを保っているときの動作である。この場合、カウンタクリア信号CNT_CLRは、LチャンネルデータLnの中央付近でアサートされるため、安定的にデータが取り込まれる。
The inventor has studied the circuit operation of the
FIG. 3A shows an operation when the frequency of the system clock PLLCK is maintained at 1024 × fs. In this case, the counter clear signal CNT_CLR is to be asserted in the vicinity of the center of the L-channel data L n, stably data is captured.
実際の回路では、ノイズ等の影響によってシステムクロックPLLCKの周波数は変動し、1024×fsから逸脱する。この場合、第1カウンタ12のクリアのタイミングが、ワードクロックLRCKのネガティブエッジから逸脱していく。その結果、入力段50のLchラッチ52によって、Lnが取り込まれたり、Ln+1が取り込まれたりし、動作が不安定となる。
In an actual circuit, the frequency of the system clock PLLCK fluctuates due to the influence of noise or the like and deviates from 1024 × fs. In this case, the clearing timing of the
本発明は係る課題に鑑みてなされたものあり、そのある態様の例示的な目的のひとつは、システムクロックの周波数の変動によらずに、シリアルデータを安定的に受信可能な受信回路の提供にある。 SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and one of exemplary purposes of an embodiment thereof is to provide a receiving circuit capable of stably receiving serial data regardless of fluctuations in the frequency of the system clock. is there.
本発明のある態様は、Mビット(Mは自然数)を単位として伝送され、受信すべきKビットを含むシリアルデータと、シリアルデータのビットごとにエッジを有するビットクロックと、Mビットごとにエッジを有するワードクロックと、を受信する受信回路に関する。受信回路は、ビットクロックをN逓倍(Nは自然数)することによりシステムクロックを生成する逓倍回路と、ビットクロックおよびワードクロックと同期して、シリアルデータに含まれる受信すべきKビットをパラレルデータに変換するシリアルパラレル変換器と、システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返す第1カウンタと、システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返す第2カウンタと、シリアルパラレル変換器から出力されるKビットのデータをラッチするラッチ回路と、第1カウンタの設定値を動的に設定する周期設定部と、を備える。 In one aspect of the present invention, serial data including K bits to be received, M bit (M is a natural number), a bit clock having an edge for each bit of the serial data, and an edge for each M bit. The present invention relates to a receiving circuit that receives a word clock. The receiving circuit multiplies the bit clock by N (N is a natural number) to generate a system clock, and synchronizes the bit clock and the word clock with K bits to be received included in the serial data as parallel data. A serial / parallel converter for conversion, a first counter that counts the system clock, and repeats the operation of resetting the count value to the initial value every time the count value reaches the set value, and the system clock is counted. A second counter that repeats the operation of resetting the count value to the initial value every time the set value is reached, a latch circuit that latches K-bit data output from the serial / parallel converter, and the set value of the first counter are dynamically set A cycle setting unit that is set to
この態様によると、システムクロックの変動に応じて、第1カウンタ、第2カウンタの設定値、すなわち周期を動的に設定することにより、シリアルデータを安定的に受信できる。 According to this aspect, serial data can be stably received by dynamically setting the setting values of the first counter and the second counter, that is, the period, according to the fluctuation of the system clock.
なお、以上の構成要素の任意の組み合わせや本発明の構成要素や表現を、方法、装置、システムなどの間で相互に置換したものもまた、本発明の態様として有効である。 Note that any combination of the above-described constituent elements and the constituent elements and expressions of the present invention replaced with each other among methods, apparatuses, systems, and the like are also effective as an aspect of the present invention.
本発明に係る受信回路によれば、シリアルデータを安定的に受信することができる。 The receiving circuit according to the present invention can stably receive serial data.
以下、本発明を好適な実施の形態をもとに図面を参照しながら説明する。各図面に示される同一または同等の構成要素、部材、処理には、同一の符号を付するものとし、適宜重複した説明は省略する。また、実施の形態は、発明を限定するものではなく例示であって、実施の形態に記述されるすべての特徴やその組み合わせは、必ずしも発明の本質的なものであるとは限らない。 The present invention will be described below based on preferred embodiments with reference to the drawings. The same or equivalent components, members, and processes shown in the drawings are denoted by the same reference numerals, and repeated descriptions are omitted as appropriate. The embodiments do not limit the invention but are exemplifications, and all features and combinations thereof described in the embodiments are not necessarily essential to the invention.
図4は、実施の形態に係る受信回路100の構成を示すブロック図である。受信回路100は、ソースシンクロナス方式の3線シリアルインタフェース回路であり、図示しない送信回路から、ビットクロックBCK、ワードクロックLRCK、シリアルデータDATAを受ける。ビットクロックBCKは、シリアルデータDATAのビットごとにエッジを有している。以下では、I2Sバス規格に準拠したデジタルオーディオデータを受けるシステムを例に説明をする。
FIG. 4 is a block diagram illustrating a configuration of the receiving
オーディオ信号はサンプリング周波数fsでサンプリングされている。シリアルデータDATAは、サンプリング周期Ts(=1/fs)ごとに、64ビットを含む。64ビットのうち、32ビットがLチャンネルに、32ビットがRチャンネルに割り当てられている。Lチャンネル、Rチャンネルごとの32ビットを1ワードという。つまりシリアルデータDATAは、2ワード、M(=64ビット)を単位として伝送される。 The audio signal is sampled at the sampling frequency fs. The serial data DATA includes 64 bits for each sampling period Ts (= 1 / fs). Of the 64 bits, 32 bits are assigned to the L channel and 32 bits are assigned to the R channel. The 32 bits for each L channel and R channel are referred to as one word. That is, the serial data DATA is transmitted in units of 2 words and M (= 64 bits).
ビットクロックBCKは、シリアルデータDATAのビットごとにポジティブエッジを有する。つまりビットクロックBCKの周波数は、サンプリング周波数fs(=1/Ts)の64倍である。 The bit clock BCK has a positive edge for each bit of the serial data DATA. That is, the frequency of the bit clock BCK is 64 times the sampling frequency fs (= 1 / Ts).
I2S伝送では、これらに加えて、1ワード(32ビット)の境界にポジティブエッジとネガティブエッジを有するワードクロックLRCKが伝送される。ワードクロックLRCKがローレベルのときLチャンネルのデータが伝送され、ハイレベルのときRチャンネルのデータが伝送される。 In the I 2 S transmission, in addition to these, a word clock LRCK having a positive edge and a negative edge at the boundary of one word (32 bits) is transmitted. When the word clock LRCK is at a low level, L channel data is transmitted, and when the word clock LRCK is at a high level, R channel data is transmitted.
I2S通信では、1ワード、32ビットのうち、最大でK(=24)ビットがオーディオデータに割り当てられる。I2S通信では、1ワード32ビットのうち、Kビット(=24)が受信すべき有効なビットであり、左詰め(Left-justified)の場合、32ビットのうち上位24ビットがオーディオ信号を示すオーディオデータに割り当てられる。Lチャンネルのオーディオデータ(24ビット)をLchデータD_Lch、RチャンネルのオーディオデータをRchデータD_Rchと称する。 In I 2 S communication, a maximum of K (= 24) bits are assigned to audio data out of one word and 32 bits. In I 2 S communication, K bits (= 24) out of 32 bits per word are valid bits to be received, and in the case of left-justified, the upper 24 bits of 32 bits are used for audio signals. Assigned to the audio data shown. The L channel audio data (24 bits) is referred to as Lch data D_Lch, and the R channel audio data is referred to as Rch data D_Rch.
受信回路100は、シリアルインタフェース回路10、逓倍回路30、入力段50、周期設定部70を備え、ひとつの半導体基板上に一体集積化される。「一体集積化」とは、回路の構成要素のすべてが半導体基板上に形成される場合や、回路の主要構成要素が一体集積化される場合が含まれ、回路定数の調節用に一部の抵抗やキャパシタなどが半導体基板の外部に設けられていてもよい。回路を1つのICとして集積化することにより、回路面積を削減することができるとともに、回路素子の特性を均一に保つことができる。
The receiving
シリアルインタフェース回路10は、ワードクロックLRCK、ビットクロックBCK、データDATAを受け、パラレルシリアル変換し、LチャンネルデータD_Lch、RチャンネルデータD_Rchを、後段のDSPの入力段50に出力する。
The
逓倍回路30は、ビットクロックBCKをN(Nは2以上の整数であり、本実施の形態ではN=16とする)逓倍することにより、サンプリング周波数fsのM×N(=1024)倍のシステムクロックPLLCKを生成する。たとえば逓倍回路30はPLL回路で構成される。
The
データの受信先であるDSP(Digital Signal Processor)50は、このシステムクロックPLLCKと同期してオーディオデータD_Lch、D_Rchを処理する。 A DSP (Digital Signal Processor) 50 which is a data receiving destination processes the audio data D_Lch and D_Rch in synchronization with the system clock PLLCK.
シリアルインタフェース回路10は、シリアルパラレル変換器11、第1カウンタ12を備える。
The
シリアルパラレル変換器11は、ビットクロックBCKおよびワードクロックLRCKと同期して、シリアルデータDATAに含まれるLチャンネルデータD_Lch、RチャンネルデータD_Rchをパラレルデータに変換する。
The serial /
シリアルパラレル変換器11は、シフトレジスタ14、LchバッファBUF_L、RchバッファBUF_R、タイミング制御部15を含む。
シリアルデータDATAは、32ビットのLチャンネルデータと、32ビットのRチャンネルデータを含むが、それぞれのうち実効的なオーディオデータは最長24ビットである。したがってシフトレジスタ14は、24ビットで構成されており、シリアルデータDATAをビットクロックBCKと同期して1ビットずつシフトしていく。シフトレジスタ14からは、24ビットのパラレルデータDpが出力される。
The serial /
The serial data DATA includes 32-bit L channel data and 32-bit R channel data, of which the effective audio data has a maximum length of 24 bits. Therefore, the
タイミング制御部15は、ワードクロックLRCKのネガティブエッジから、ビットクロックBCKを24個カウントすると、第1タイミング信号をアサートする。LchバッファBUF_Lは、第1タイミング信号がアサートされると、シフトレジスタ14に格納されるパラレルデータDpをLチャンネルデータD_Lchとしてラッチする。
またタイミング制御部15は、ワードクロックLRCKのネガティブエッジから、ビットクロックBCKを(32+24)個カウントすると、あるいはワードクロックLRCKのポジティブエッジからビットクロックBCKを24個カウントすると、第2タイミング信号をアサートする。RchバッファBUF_Rは、第2タイミング信号がアサートされると、シフトレジスタ14に格納されるパラレルデータDpをRチャンネルデータD_Rchとしてラッチする。第1、第2タイミング信号がアサートされるタイミングは、受信すべきデータの配置(左詰、右詰)、受信すべきデータのビット数Kに応じて設定すればよい。
The
The
第1カウンタ12は、クリアコマンドが発行されると、次のワードクロックLRCKのネガティブエッジのタイミングでゼロクリアされる。その後、第1カウンタ12は、システムクロックPLLCKをカウントし、カウント値CNT1が、後述の周期設定部70から与えられた設定値DSETに達するたびに初期値α(たとえば0)に戻り、再びカウントアップする動作を繰り返す。つまり、第1カウンタ12のカウント周期は、周期設定部70によって動的に制御される。
When the clear command is issued, the
入力段50は、Lchラッチ52、Rchラッチ54、第2カウンタ56、ストローブ信号生成部58を備える。
The
第2カウンタ(DSP内部カウンタ)56は、クリアコマンドが発行されると、次のワードクロックLRCKのネガティブエッジのタイミングでゼロクリアされる。その後、第2カウンタ56はシステムクロックPLLCKをカウントし、そのカウント値CNT2が後述の周期設定部70から与えられた設定値DSETに達するたびに初期値β(たとえば0)に戻り、再びカウントアップする動作を繰り返す。
When the clear command is issued, the second counter (DSP internal counter) 56 is cleared to zero at the timing of the negative edge of the next word clock LRCK. Thereafter, the
ストローブ信号生成部58は、第2カウンタ56のカウント値CNT2が第1所定値(たとえば0)になるたびに、第1ストローブ信号STRB1をアサートし、カウント値CNT2が第2所定値(たとえば512)になるたびに第2ストローブ信号STRB2をアサートする。
The
Lchラッチ52は、第1ストローブ信号STRB1と同期して、LchバッファBUF_Lに格納されるLチャンネルデータD_Lchをラッチする。同様にRchラッチ54は、第2ストローブ信号STRB2と同期して、RchバッファBUF_Rに格納されるRチャンネルデータD_Rchをラッチする。
The
周期設定部70は、ワードクロックLRCKのネガティブエッジのタイミングにおける第1カウンタ12のカウント値CNT1にもとづいて、設定値DSETを動的に設定する。
The
周期設定部70は、第1状態φ1〜第3状態φ3の間を遷移する。
第1カウンタ12の初期値をαとし、x、yを所定数とするとき、第1状態φ1では、設定値DSETがα+M×N−1であり、第2状態φ2では、設定値DSETがα+M×N−1−xであり、第3状態φ3では、設定値DSETがα+M×N−1+yである。α=0、x=y=1のとき、第1状態φ1において、カウント周期は1024であり、カウント値CNT1は0から1023を繰り返し、第2状態φ2において、カウント周期は1023であり、カウント値CNT2は0から1022を繰り返し、第3状態φ3において、カウント周期は1025であり、カウント値CNT3は0から1024を繰り返す。
The initial value of the
図5(a)は、周期設定部70のステートマシンの状態遷移図であり、図5(b)は、ワードクロックLRCKのネガティブエッジにおけるカウント値とカウント周期を示す図である。図5(a)に示すように、ステートマシンは、ワードクロックLRCKのエッジのタイミングにおける第1カウンタ12のカウント値CNT1にもとづいて状態遷移する。状態遷移には、カウント値CNT1に対してヒステリシスが設定される。ここではヒステリシス幅は16クロック分の場合が示される。ヒステリシス制御により、状態が頻繁に遷移するのを抑制でき、系を安定化できる。
FIG. 5A is a state transition diagram of the state machine of the
以上が受信回路100の構成である。続いてその動作を説明する。
図6(a)〜(c)は、受信回路100の動作を示す波形図である。図6(a)に示すように、システムクロックPLLCKが、M×N×fsを保っているとき、ワードクロックLRCKのネガティブエッジにおける第1カウンタ12のカウント値CNT1は0付近となる。このとき周期設定部70は第1状態φ1であり、第1カウンタ12のカウント周期はM×Nである。
The above is the configuration of the receiving
6A to 6C are waveform diagrams showing the operation of the receiving
システムクロックPLLCKが、M×N×fs(=1024×fs)を上回る状態が持続すると、図6(b)に示すように、ワードクロックLRCKのネガティブエッジにおける第1カウンタ12のカウント値CNT1は増大する。やがてワードクロックLRCKのネガティブエッジにおける第1カウンタ12のカウント値CNT1がしきい値16を超えると、第3状態φ3に遷移し、第1カウンタ12のカウント周期がM×N+x(=1025)となる。
If the system clock PLLCK continues to exceed M × N × fs (= 1024 × fs), the count value CNT1 of the
システムクロックPLLCKが、M×N×fs(=1024×fs)を下回る状態が持続すると、図6(c)に示すように、ワードクロックLRCKのネガティブエッジにおける第1カウンタ12のカウント値CNT1は低下する。やがてワードクロックLRCKのネガティブエッジにおける第1カウンタ12のカウント値CNT1が1008以下になると、第2状態φ2に遷移し、第1カウンタ12のカウント周期がM×N−y(=1022)となる。
When the system clock PLLCK continues to be lower than M × N × fs (= 1024 × fs), the count value CNT1 of the
以上が受信回路100の動作である。この受信回路100によれば、システムクロックPLLCKの周波数が変動すると、それに応じて第1カウンタ12および第2カウンタ56のカウント周期が、M×Nを基準として、M×N−x、M×N+yの2値で増減する。
この方式では、サンプリング周期Ts=1/fsごとに、xまたはyのクロック周波数のずれを吸収することができる。たとえばノイズの影響により、システムクロックPLLCKに100クロック分のずれが生じた場合、その後、100/x回のサンプリング周期、または100/y回のサンプリング周期で、ニュートラルな状態に復帰することができる。
The above is the operation of the receiving
In this method, a shift in clock frequency of x or y can be absorbed every sampling period Ts = 1 / fs. For example, when a shift of 100 clocks occurs in the system clock PLLCK due to the influence of noise, the neutral state can be restored thereafter with 100 / x sampling periods or 100 / y sampling periods.
続いて受信回路100の用途を説明する。
図7は、受信回路100を備えるオーディオ信号処理回路200を用いたオーディオシステム500の構成を示すブロック図である。
Next, the use of the receiving
FIG. 7 is a block diagram illustrating a configuration of an
オーディオシステム500は、音源2、オーディオ信号処理回路200、アンプ8L、8R、スピーカ9L、9Rを備える。
The
オーディオ信号処理回路200は、CDプレイヤなどの音源2と3線シリアルインタフェースを介して接続され、デジタルオーディオ信号を受ける。オーディオ信号処理回路200は、上述の受信回路100に加えて、複数の処理ユニット203、D/Aコンバータ204を備える。入力段50および複数の処理ユニット203を、DSP202と総称する。
The audio
入力段50は、音源2からのデジタルオーディオ信号を受け、LチャンネルデータD_LchおよびRチャンネルデータD_Rchを生成する。入力段50から出力されたデータD_Lch、D_Rchは、後段の処理ユニット203に入力される。処理ユニット203は、デジタルボリウム回路、マルチバンドイコライザ、ラウドネス回路、クロスオーバフィルタ、バスブースト回路などであり、データD_Lch、D_Rchに所定の信号処理を施す。
The
処理ユニット203の信号処理は、入力段50の第2カウンタ(DSPシーケンスカウンタ)56のカウント値CNT2と同期している。すなわち、カウント値CNT2が、第1の範囲のとき、最初の処理ユニット203が信号処理を行い、第2の範囲のとき、2番目の処理ユニット203が信号処理を行う。
The signal processing of the
D/Aコンバータ204L、204Rはそれぞれ、処理ユニット203を経由したオーディオデータD_Lch、D_Rchをデジタル/アナログ変換し、アナログオーディオ信号S_Lch、S_Rchを生成する。
The D /
アンプ8L、8Rは、アナログオーディオ信号S_Lch、S_Rchを増幅し、スピーカ9L、9Rへと出力する。
The
図7のオーディオ信号処理回路200は、車載用オーディオ装置、家庭用のオーディオコンポーネント装置に利用することもできる。あるいは、オーディオ信号処理回路200は、テレビ、デスクトップPC、ノートPC、タブレットPC、携帯電話端末、デジタルカメラ、ポータブルオーディオプレイヤなどの電子機器に搭載することもできる。
The audio
図8(a)〜(c)は、電子機器あるいはオーディオコンポーネント装置の外観図である。図8(a)は電子機器の一例であるディスプレイ装置600である。ディスプレイ装置600は、筐体602、スピーカ9を備える。オーディオ信号処理回路200は筐体に内蔵され、スピーカ9を駆動する。
8A to 8C are external views of electronic devices or audio component devices. FIG. 8A illustrates a
図7(b)はオーディオコンポ700である。オーディオコンポ700は、筐体702、スピーカ9を備える。オーディオ信号処理回路200は筐体702に内蔵され、スピーカ9を駆動する。
FIG. 7B shows an
図7(c)は電子機器の一例である小型情報端末800である。小型情報端末800は、携帯電話、PHS(Personal Handy-phone System)、PDA(Personal Digital Assistant)、タブレットPC(Personal Computer)、オーディオプレイヤなどである。小型情報端末800は、筐体802、スピーカ9、ディスプレイ804を備える。オーディオ信号処理回路200は筐体802に内蔵され、スピーカ9を駆動する。
FIG. 7C illustrates a
以上、本発明について、実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組み合わせにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。以下、こうした変形例について説明する。 The present invention has been described based on the embodiments. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are within the scope of the present invention. is there. Hereinafter, such modifications will be described.
実施の形態では、I2Sバス規格のシリアルデータを例に説明したが本発明はそれに限定されず、I2Cバス規格など、その他の規格に準拠したシリアルデータの伝送にも利用することができる。この場合、パラメータである自然数M、K、x、yの値を適宜変更すればよい。また、シリアルデータを伝送する線は、複数であってもよい。 In the embodiment, the serial data of the I 2 S bus standard has been described as an example. However, the present invention is not limited thereto, and may be used for transmission of serial data compliant with other standards such as the I 2 C bus standard. it can. In this case, the values of the natural numbers M, K, x, and y that are parameters may be changed as appropriate. Further, there may be a plurality of lines for transmitting serial data.
実施の形態は、周期設定部70が3つの状態を遷移し、第1カウンタ12の周期を、3値で切りかえる場合を説明したが、本発明はそれには限定されず、周期を2値、あるいは、4値以上で切りかえてもよい。
In the embodiment, the case has been described in which the
実施の形態にもとづき、具体的な語句を用いて本発明を説明したが、実施の形態は、本発明の原理、応用を示しているにすぎず、実施の形態には、請求の範囲に規定された本発明の思想を逸脱しない範囲において、多くの変形例や配置の変更が認められる。 Although the present invention has been described using specific terms based on the embodiments, the embodiments only illustrate the principles and applications of the present invention, and the embodiments are defined in the claims. Many variations and modifications of the arrangement are permitted without departing from the spirit of the present invention.
BCK…ビットクロック、DATA…シリアルデータ、LRCK…ワードクロック、PLLCK…システムクロック、100…受信回路、10…シリアルインタフェース回路、12…第1カウンタ、14…シフトレジスタ、16…カウンタクリア回路、30…逓倍回路、50…入力段、52…Lchラッチ、54…Rchラッチ、56…第2カウンタ、58…ストローブ信号生成部、70…周期設定部、200…オーディオ信号処理回路、202…DSP、203…処理ユニット、204…D/Aコンバータ、500…オーディオシステム、2…音源、8…アンプ、9…スピーカ。
BCK ... bit clock, DATA ... serial data, LRCK ... word clock, PLLCK ... system clock, 100 ... receiving circuit, 10 ... serial interface circuit, 12 ... first counter, 14 ... shift register, 16 ... counter clear circuit, 30 ...
Claims (17)
前記ビットクロックをN逓倍(Nは自然数)することによりシステムクロックを生成する逓倍回路と、
前記ビットクロックおよび前記ワードクロックと同期して、前記シリアルデータに含まれる受信すべきKビットをパラレルデータに変換するシリアルパラレル変換器と、
前記システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返す第1カウンタと、
前記システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返す第2カウンタと、
前記シリアルパラレル変換器から出力されるKビットのパラレルデータをラッチするラッチ回路と、
前記第1カウンタおよび前記第2カウンタの設定値を動的に設定する周期設定部と、
を備えることを特徴とする受信回路。 Serial data that is transmitted in units of M bits (M is a natural number) and includes K bits (K is a natural number) to be received, a bit clock having an edge for each bit of the serial data, and an edge for each M bit A receiving circuit for receiving a word clock comprising:
A multiplier for generating a system clock by multiplying the bit clock by N (N is a natural number);
A serial-parallel converter that converts K bits to be received included in the serial data into parallel data in synchronization with the bit clock and the word clock;
A first counter that repeats an operation of counting the system clock and resetting the count value to an initial value every time the count value reaches a set value;
A second counter that repeats an operation of counting the system clock and resetting the count value to an initial value every time the count value reaches a set value;
A latch circuit for latching K-bit parallel data output from the serial-parallel converter;
A period setting unit for dynamically setting set values of the first counter and the second counter;
A receiving circuit comprising:
前記ラッチ回路は、前記第1ストローブ信号と同期して前記Lチャンネルデータをラッチし、前記第2ストローブ信号と同期して前記Rチャンネルデータをラッチすることを特徴とする請求項7に記載の受信回路。 A strobe signal generator for generating first and second strobe signals that are asserted each time the count value of the second counter reaches a first predetermined value and a second predetermined value;
8. The reception according to claim 7, wherein the latch circuit latches the L channel data in synchronization with the first strobe signal, and latches the R channel data in synchronization with the second strobe signal. circuit.
前記受信回路が受信したデータを信号処理する処理ユニットと、
を備えることを特徴とするオーディオ信号処理回路。 A receiving circuit according to any one of claims 1 to 10,
A processing unit for signal processing the data received by the receiving circuit;
An audio signal processing circuit comprising:
前記ビットクロックをN逓倍(Nは自然数)することによりシステムクロックを生成するステップと、
前記ビットクロックおよび前記ワードクロックと同期して、前記シリアルデータに含まれる受信すべきKビットをパラレルデータに変換するステップと、
第1カウンタによって、前記システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返すステップと、
第2カウンタによって、前記システムクロックをカウントし、そのカウント値が設定値に達するたびにカウント値を初期値にリセットする動作を繰り返すステップと、
前記Kビットのパラレルデータをラッチするステップと、
前記第1カウンタおよび前記第2カウンタの設定値を動的に設定するステップと、
を備えることを特徴とする方法。 Serial data that is transmitted in units of M bits (M is a natural number) and includes K bits (K is a natural number) to be received, a bit clock having an edge for each bit of the serial data, and an edge for each M bit Having a word clock comprising:
Generating a system clock by multiplying the bit clock by N (N is a natural number);
Synchronizing K bits to be received included in the serial data into parallel data in synchronization with the bit clock and the word clock;
Repeating the operation of counting the system clock by a first counter and resetting the count value to an initial value every time the count value reaches a set value;
Repeating the operation of counting the system clock by a second counter and resetting the count value to an initial value every time the count value reaches a set value;
Latching the K-bit parallel data;
Dynamically setting set values of the first counter and the second counter;
A method comprising the steps of:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012192191A JP6043129B2 (en) | 2012-08-31 | 2012-08-31 | Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012192191A JP6043129B2 (en) | 2012-08-31 | 2012-08-31 | Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2014049973A true JP2014049973A (en) | 2014-03-17 |
| JP6043129B2 JP6043129B2 (en) | 2016-12-14 |
Family
ID=50609218
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012192191A Expired - Fee Related JP6043129B2 (en) | 2012-08-31 | 2012-08-31 | Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6043129B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017024936A (en) * | 2015-07-21 | 2017-02-02 | 日本電気硝子株式会社 | Manufacturing method of glass tube, and holding implement of glass tube |
| JP2021022918A (en) * | 2019-07-30 | 2021-02-18 | ラピスセミコンダクタ株式会社 | Semiconductor device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03242056A (en) * | 1990-02-20 | 1991-10-29 | Fujitsu Ltd | phase synchronized circuit |
| JP2001345792A (en) * | 2000-06-02 | 2001-12-14 | Alpine Electronics Inc | Phase control circuit |
| JP2007124044A (en) * | 2005-10-25 | 2007-05-17 | Nec Electronics Corp | Reference clock reproduction circuit and data receiver |
| US7711974B1 (en) * | 2006-09-29 | 2010-05-04 | Cirrus Logic, Inc. | SCLK auto-detection and generation in various serial port modes |
| JP2011061589A (en) * | 2009-09-11 | 2011-03-24 | Rohm Co Ltd | Reception circuit of serial data, and reception method |
-
2012
- 2012-08-31 JP JP2012192191A patent/JP6043129B2/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03242056A (en) * | 1990-02-20 | 1991-10-29 | Fujitsu Ltd | phase synchronized circuit |
| JP2001345792A (en) * | 2000-06-02 | 2001-12-14 | Alpine Electronics Inc | Phase control circuit |
| JP2007124044A (en) * | 2005-10-25 | 2007-05-17 | Nec Electronics Corp | Reference clock reproduction circuit and data receiver |
| US7711974B1 (en) * | 2006-09-29 | 2010-05-04 | Cirrus Logic, Inc. | SCLK auto-detection and generation in various serial port modes |
| JP2011061589A (en) * | 2009-09-11 | 2011-03-24 | Rohm Co Ltd | Reception circuit of serial data, and reception method |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2017024936A (en) * | 2015-07-21 | 2017-02-02 | 日本電気硝子株式会社 | Manufacturing method of glass tube, and holding implement of glass tube |
| JP2021022918A (en) * | 2019-07-30 | 2021-02-18 | ラピスセミコンダクタ株式会社 | Semiconductor device |
| JP7473284B2 (en) | 2019-07-30 | 2024-04-23 | ラピスセミコンダクタ株式会社 | Semiconductor Device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6043129B2 (en) | 2016-12-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2019531671A (en) | Time delay, apparatus and method in a digitally oversampled sensor system | |
| US8030975B2 (en) | Method and apparatus for generating frequency divided signals | |
| JP5348776B2 (en) | Audio apparatus and audio processing method | |
| CN109547028B (en) | Digital-to-analog conversion device, electronic musical instrument, information processing device, and digital-to-analog conversion method | |
| JP6043129B2 (en) | Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system | |
| CN114205714B (en) | Noise shaping type volume adjustment system and method | |
| US11947381B2 (en) | Data formatting module of a low voltage drive circuit | |
| WO2021152298A1 (en) | Loudspeaker driver systems | |
| JP5993665B2 (en) | Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system | |
| KR102265187B1 (en) | Clock recovery circuit | |
| US11272293B2 (en) | Loudspeaker driver systems | |
| JP2016092675A (en) | Pwm modulation device and audio signal output device | |
| US10334363B2 (en) | Audio signal processing circuit and electronic apparatus including the same | |
| JP2011061589A (en) | Reception circuit of serial data, and reception method | |
| EP2075707A2 (en) | Method for transmitting audio streams and audio stream transmitting system thereof | |
| US10770086B2 (en) | Zero-latency pulse density modulation interface with format detection | |
| CN110677772B (en) | Sound receiving device and method for generating noise signal thereof | |
| TW202046647A (en) | Digital-to-analog converter device and digital-to-analog converting method | |
| CN108182161B (en) | Data processing system and method | |
| JP6474246B2 (en) | Audio signal processing circuit, in-vehicle audio device, audio component device, electronic equipment | |
| WO2024186562A1 (en) | Intermediate frequency digital-to-analog conversion (ifdac) system | |
| CN114927118A (en) | A kind of signal transmitter and signal transmission method | |
| JP2003299179A (en) | Digital audio equipment | |
| JP2009105877A (en) | Semiconductor integrated circuit, communication device, information reproducing device, image display device, electronic device, electronic control device, and mobile device | |
| Lee et al. | Design of Clock Gears for Low-power Media Bus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150805 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160725 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160809 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161005 |
|
| 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: 20161025 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20161111 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6043129 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |