[go: up one dir, main page]

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 PDF

Info

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
Application number
JP2012192191A
Other languages
Japanese (ja)
Other versions
JP6043129B2 (en
Inventor
Yasutomo Yokoyama
靖友 横山
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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2012192191A priority Critical patent/JP6043129B2/en
Publication of JP2014049973A publication Critical patent/JP2014049973A/en
Application granted granted Critical
Publication of JP6043129B2 publication Critical patent/JP6043129B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To receive serial data stably.SOLUTION: A multiplication circuit 30 multiplies a bit clock BCK by N (N is a natural number) to generate a system clock PLLCK. A first counter 12 counts the system clock PLLCK and resets a count value CNT1 thereof to an initial value each time the count value reaches a set value D. A counter clear circuit 16 asserts a counter clear signal CNT_CLR each time the count value CNT1 of the first counter 12 reaches a prescribed value. A second counter 56 counts the system clock PLLCK and resets a count value to an initial value each time the counter clear signal CNT_CLR is asserted. An Lch latch 52 latches parallel data from a shift register 14 synchronously with the counter clear signal CNT_CLR. A cycle setting unit 70 dynamically sets the set value Dof the first counter CNT1.

Description

本発明は、シリアルデータを受信する受信回路に関する。   The present invention relates to a receiving circuit that receives serial data.

集積回路間で情報を伝送するために、2線式あるいは3線式のシリアルインタフェースが利用される。2線式シリアルインタフェースとしてはIC(Inter Integrated Circuit)バス規格が、3線式シリアルインタフェースとしてはデジタルオーディオ信号を伝送するためのIS(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は、ISの信号フォーマットを示す図である。シリアルデータ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).

S伝送では、これらに加えて、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.

S通信では、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.

以上がIS通信のフォーマットの概要である。 The above is the outline of the format of the I 2 S communication.

図2は、本発明者が検討したIS通信用インタフェースを備える受信回路100rの構成を示すブロック図である。なお、図2の受信回路100rの構成およびその動作を、公知技術と認定してはならない。受信回路100rは、シリアルインタフェース回路10、逓倍回路30、DSP(Digital Signal Processor)の入力段50を備える。 FIG. 2 is a block diagram showing a configuration of a receiving circuit 100r having an I 2 S communication interface studied by the present inventors. It should be noted that the configuration and operation of the receiving circuit 100r in FIG. The receiving circuit 100r includes a serial interface circuit 10, a multiplying circuit 30, and an input stage 50 of a DSP (Digital Signal Processor).

シリアルインタフェース回路10は、ワードクロックLRCK、ビットクロックBCK、データDATAを受け、パラレルシリアル変換し、LチャンネルデータD_Lch、RチャンネルデータD_Rchを、後段のDSPの入力段50に出力する。   The serial interface circuit 10 receives the word clock LRCK, the bit clock BCK, and the data DATA, performs parallel-serial conversion, and outputs the L channel data D_Lch and the R channel data D_Rch to the input stage 50 of the subsequent DSP.

逓倍回路30はたとえばPLL回路を含み、ビットクロックBCKを16逓倍することにより、サンプリング周波数fsの1024倍のシステムクロックPLLCKを生成する。データの受信先であるDSPは、このシステムクロックPLLCKと同期してオーディオデータD_Lch、D_Rchを処理する。   The multiplier circuit 30 includes, for example, a PLL circuit, and generates a system clock PLLCK that is 1024 times the sampling frequency fs by multiplying the bit clock BCK by 16. The DSP that is the data receiving destination processes the audio data D_Lch and D_Rch in synchronization with the system clock PLLCK.

シリアルインタフェース回路10は、シリアルパラレル変換器11、第1カウンタ12、カウンタクリア回路16を備える。   The serial interface circuit 10 includes a serial / parallel converter 11, a first counter 12, and a counter clear circuit 16.

シリアルパラレル変換器11は、ビットクロックBCKおよびワードクロックLRCKと同期して、シリアルデータDATAに含まれるLチャンネルデータD_Lch、RチャンネルデータD_Rchを抽出する。   The serial / parallel converter 11 extracts L channel data D_Lch and R channel data D_Rch included in the serial data DATA in synchronization with the bit clock BCK and the word clock LRCK.

シリアルパラレル変換器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 / parallel converter 11 includes a shift register 14, an Lch buffer BUF_L, an Rch buffer BUF_R, and a timing control unit 15.
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 shift register 14 is composed of 24 bits and shifts the serial data DATA bit by bit in synchronization with the bit clock BCK. The shift register 14 outputs 24-bit parallel data Dp.

タイミング制御部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 timing controller 15 asserts the first timing signal after counting 24 bit clocks BCK from the negative edge of the word clock LRCK. When the first timing signal is asserted, the Lch buffer BUF_L latches the parallel data Dp stored in the shift register 14 as L channel data D_Lch.
The timing controller 15 asserts the second timing signal when (32 + 24) bit clocks BCK are counted from the negative edge of the word clock LRCK or 24 bit clocks BCK are counted from the positive edge of the word clock LRCK. . When the second timing signal is asserted, the Rch buffer BUF_R latches the parallel data Dp stored in the shift register 14 as R channel data D_Rch.

第1カウンタ12は、クリアコマンドが発行されると、次のワードクロックLRCKのネガティブエッジのタイミングでゼロクリアされる。その後、第1カウンタ12は、ビットクロックBCKと同期してカウント動作を行い、カウント値CNT1が所定値(たとえば1023)に達するたびに0に戻り、再びカウントアップする動作を繰り返す。   When the clear command is issued, the first counter 12 is cleared to zero at the timing of the negative edge of the next word clock LRCK. Thereafter, the first counter 12 performs a count operation in synchronization with the bit clock BCK, and returns to 0 every time the count value CNT1 reaches a predetermined value (for example, 1023), and repeats the operation of counting up again.

カウンタクリア回路16は、第1カウンタ12のカウント値CNT1を受け、カウント値CNT1が所定値(たとえば800)に達するたびに、カウンタクリア信号CNT_CLRをアサートする。   The counter clear circuit 16 receives the count value CNT1 of the first counter 12, and asserts the counter clear signal CNT_CLR every time the count value CNT1 reaches a predetermined value (for example, 800).

DSPの入力段50は、Lchラッチ52、Rchラッチ54、第2カウンタ(DSPシーケンスカウンタ)56、ストローブ信号生成部58を備える。   The DSP input stage 50 includes an Lch latch 52, an Rch latch 54, a second counter (DSP sequence counter) 56, and a strobe signal generator 58.

第2カウンタ56は、カウントクリア信号CNT_CLRがアサートされるたびにゼロクリアされ、カウントアップする動作を繰り返す。ストローブ信号生成部58は、第2カウンタ56のカウント値CNT2が第1所定値(たとえば0)になるたびに言い換えればカウントクリア信号CNT_CLRがアサートされるたびに、第1ストローブ信号STRB1をアサートし、カウント値CNT2が第2所定値(たとえば512)になるたびに第2ストローブ信号STRB2をアサートする。   The second counter 56 is cleared to zero each time the count clear signal CNT_CLR is asserted, and repeats the operation of counting up. The strobe signal generator 58 asserts the first strobe signal STRB1 every time the count value CNT2 of the second counter 56 becomes a first predetermined value (for example, 0), in other words, every time the count clear signal CNT_CLR is asserted, The second strobe signal STRB2 is asserted every time the count value CNT2 becomes a second predetermined value (for example, 512).

Lchラッチ52は、第1ストローブ信号STRB1と同期して、LchバッファBUF_Lに格納されるLチャンネルデータD_Lchをラッチする。同様にRchラッチ54は、第2ストローブ信号STRB2と同期して、RchバッファBUF_Rに格納されるRチャンネルデータD_Rchをラッチする。   The Lch latch 52 latches the L channel data D_Lch stored in the Lch buffer BUF_L in synchronization with the first strobe signal STRB1. Similarly, the Rch latch 54 latches the R channel data D_Rch stored in the Rch buffer BUF_R in synchronization with the second strobe signal STRB2.

特開2000−078027号公報JP 2000-078027 A 特開平6−224873号公報JP-A-6-224873

本発明者は図2の受信回路100rの回路動作を検討し、以下の課題を認識するに至った。図3(a)、(b)は、図2の受信回路100rの動作を示す波形図である。
図3(a)は、システムクロックPLLCKの周波数が、1024×fsを保っているときの動作である。この場合、カウンタクリア信号CNT_CLRは、LチャンネルデータLの中央付近でアサートされるため、安定的にデータが取り込まれる。
The inventor has studied the circuit operation of the receiving circuit 100r in FIG. 2 and has recognized the following problems. FIGS. 3A and 3B are waveform diagrams showing the operation of the receiving circuit 100r in FIG.
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によって、Lが取り込まれたり、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 first counter 12 deviates from the negative edge of the word clock LRCK. As a result, the Lch latch 52 of the input stage 50, or L n is taken, or L n + 1 is taken, the operation becomes unstable.

本発明は係る課題に鑑みてなされたものあり、そのある態様の例示的な目的のひとつは、システムクロックの周波数の変動によらずに、シリアルデータを安定的に受信可能な受信回路の提供にある。   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.

Sの信号フォーマットを示す図である。It is a diagram illustrating a signal format of the I 2 S. 本発明者が検討したIS通信用インタフェースを備える受信回路の構成を示すブロック図である。Is a block diagram showing the configuration of a receiving circuit comprising I 2 S communication interface studied by the present inventor. 図3(a)、(b)は、図2の受信回路の動作を示す波形図である。FIGS. 3A and 3B are waveform diagrams showing the operation of the receiving circuit of FIG. 実施の形態に係る受信回路の構成を示すブロック図である。It is a block diagram which shows the structure of the receiving circuit which concerns on embodiment. 図5(a)は、周期設定部のステートマシンの状態遷移図であり、図5(b)は、ワードクロックLRCKのネガティブエッジにおけるカウント値とカウント周期を示す図である。FIG. 5A is a state transition diagram of the state machine of the cycle setting unit, and FIG. 5B is a diagram illustrating a count value and a count cycle at the negative edge of the word clock LRCK. 図6(a)〜(c)は、受信回路の動作を示す波形図である。6A to 6C are waveform diagrams illustrating the operation of the receiving circuit. 受信回路を備えるオーディオ信号処理回路を用いたオーディオシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the audio system using the audio signal processing circuit provided with a receiving circuit. 図8(a)〜(c)は、電子機器あるいはオーディオコンポーネント装置の外観図である。8A to 8C are external views of electronic devices or audio component devices.

以下、本発明を好適な実施の形態をもとに図面を参照しながら説明する。各図面に示される同一または同等の構成要素、部材、処理には、同一の符号を付するものとし、適宜重複した説明は省略する。また、実施の形態は、発明を限定するものではなく例示であって、実施の形態に記述されるすべての特徴やその組み合わせは、必ずしも発明の本質的なものであるとは限らない。   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のビットごとにエッジを有している。以下では、ISバス規格に準拠したデジタルオーディオデータを受けるシステムを例に説明をする。 FIG. 4 is a block diagram illustrating a configuration of the receiving circuit 100 according to the embodiment. The receiving circuit 100 is a source-synchronous three-wire serial interface circuit, and receives a bit clock BCK, a word clock LRCK, and serial data DATA from a transmitting circuit (not shown). The bit clock BCK has an edge for each bit of the serial data DATA. In the following, a system that receives digital audio data compliant with the I 2 S bus standard will be described as an example.

オーディオ信号はサンプリング周波数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).

S伝送では、これらに加えて、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.

S通信では、1ワード、32ビットのうち、最大でK(=24)ビットがオーディオデータに割り当てられる。IS通信では、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 circuit 100 includes a serial interface circuit 10, a multiplier circuit 30, an input stage 50, and a cycle setting unit 70, and is integrated on a single semiconductor substrate. “Integrated integration” includes the case where all of the circuit components are formed on a semiconductor substrate and the case where the main components of the circuit are integrated. A resistor, a capacitor, or the like may be provided outside the semiconductor substrate. By integrating the circuit as one IC, the circuit area can be reduced and the characteristics of the circuit elements can be kept uniform.

シリアルインタフェース回路10は、ワードクロックLRCK、ビットクロックBCK、データDATAを受け、パラレルシリアル変換し、LチャンネルデータD_Lch、RチャンネルデータD_Rchを、後段のDSPの入力段50に出力する。   The serial interface circuit 10 receives the word clock LRCK, the bit clock BCK, and the data DATA, performs parallel-serial conversion, and outputs the L channel data D_Lch and the R channel data D_Rch to the input stage 50 of the subsequent DSP.

逓倍回路30は、ビットクロックBCKをN(Nは2以上の整数であり、本実施の形態ではN=16とする)逓倍することにより、サンプリング周波数fsのM×N(=1024)倍のシステムクロックPLLCKを生成する。たとえば逓倍回路30はPLL回路で構成される。   The multiplication circuit 30 multiplies the bit clock BCK by N (N is an integer of 2 or more, and N = 16 in the present embodiment), thereby multiplying the sampling frequency fs by M × N (= 1024). A clock PLLCK is generated. For example, the multiplier circuit 30 is configured by a PLL circuit.

データの受信先である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 serial interface circuit 10 includes a serial / parallel converter 11 and a first counter 12.

シリアルパラレル変換器11は、ビットクロックBCKおよびワードクロックLRCKと同期して、シリアルデータDATAに含まれるLチャンネルデータD_Lch、RチャンネルデータD_Rchをパラレルデータに変換する。   The serial / parallel converter 11 converts the L channel data D_Lch and the R channel data D_Rch included in the serial data DATA into parallel data in synchronization with the bit clock BCK and the word clock LRCK.

シリアルパラレル変換器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 / parallel converter 11 includes a shift register 14, an Lch buffer BUF_L, an Rch buffer BUF_R, and a timing control unit 15.
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 shift register 14 is composed of 24 bits and shifts the serial data DATA bit by bit in synchronization with the bit clock BCK. The shift register 14 outputs 24-bit parallel data Dp.

タイミング制御部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 timing controller 15 asserts the first timing signal after counting 24 bit clocks BCK from the negative edge of the word clock LRCK. When the first timing signal is asserted, the Lch buffer BUF_L latches the parallel data Dp stored in the shift register 14 as L channel data D_Lch.
The timing controller 15 asserts the second timing signal when (32 + 24) bit clocks BCK are counted from the negative edge of the word clock LRCK or 24 bit clocks BCK are counted from the positive edge of the word clock LRCK. . When the second timing signal is asserted, the Rch buffer BUF_R latches the parallel data Dp stored in the shift register 14 as R channel data D_Rch. The timing at which the first and second timing signals are asserted may be set according to the arrangement of data to be received (left justified, right justified) and the number of bits K of data to be received.

第1カウンタ12は、クリアコマンドが発行されると、次のワードクロックLRCKのネガティブエッジのタイミングでゼロクリアされる。その後、第1カウンタ12は、システムクロックPLLCKをカウントし、カウント値CNT1が、後述の周期設定部70から与えられた設定値DSETに達するたびに初期値α(たとえば0)に戻り、再びカウントアップする動作を繰り返す。つまり、第1カウンタ12のカウント周期は、周期設定部70によって動的に制御される。 When the clear command is issued, the first counter 12 is cleared to zero at the timing of the negative edge of the next word clock LRCK. Thereafter, the first counter 12 counts the system clock PLLCK, and returns to the initial value α (for example, 0) every time the count value CNT1 reaches a set value D SET given from the cycle setting unit 70 described later, and counts again. Repeat the action to up. That is, the count cycle of the first counter 12 is dynamically controlled by the cycle setting unit 70.

入力段50は、Lchラッチ52、Rchラッチ54、第2カウンタ56、ストローブ信号生成部58を備える。   The input stage 50 includes an Lch latch 52, an Rch latch 54, a second counter 56, and a strobe signal generator 58.

第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 second counter 56 counts the system clock PLLCK, and returns to the initial value β (for example, 0) every time the count value CNT2 reaches a set value D SET given from the cycle setting unit 70 described later, and counts up again. Repeat the operation.

ストローブ信号生成部58は、第2カウンタ56のカウント値CNT2が第1所定値(たとえば0)になるたびに、第1ストローブ信号STRB1をアサートし、カウント値CNT2が第2所定値(たとえば512)になるたびに第2ストローブ信号STRB2をアサートする。   The strobe signal generator 58 asserts the first strobe signal STRB1 every time the count value CNT2 of the second counter 56 becomes a first predetermined value (eg, 0), and the count value CNT2 becomes the second predetermined value (eg, 512). Each time the second strobe signal STRB2 is asserted.

Lchラッチ52は、第1ストローブ信号STRB1と同期して、LchバッファBUF_Lに格納されるLチャンネルデータD_Lchをラッチする。同様にRchラッチ54は、第2ストローブ信号STRB2と同期して、RchバッファBUF_Rに格納されるRチャンネルデータD_Rchをラッチする。   The Lch latch 52 latches the L channel data D_Lch stored in the Lch buffer BUF_L in synchronization with the first strobe signal STRB1. Similarly, the Rch latch 54 latches the R channel data D_Rch stored in the Rch buffer BUF_R in synchronization with the second strobe signal STRB2.

周期設定部70は、ワードクロックLRCKのネガティブエッジのタイミングにおける第1カウンタ12のカウント値CNT1にもとづいて、設定値DSETを動的に設定する。 The cycle setting unit 70 dynamically sets the set value D SET based on the count value CNT1 of the first counter 12 at the negative edge timing of the word clock LRCK.

周期設定部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を繰り返す。
Period setting unit 70 transitions between first state φ1 to third state φ3.
The initial value of the first counter 12 and alpha, when x, the y and predetermined number, the first state .phi.1, set value D SET is α + M × N-1, in the second state .phi.2, set value D SET Is α + M × N-1-x, and in the third state φ3, the set value D SET is α + M × N-1 + y. When α = 0 and x = y = 1, in the first state φ1, the count cycle is 1024, the count value CNT1 repeats from 0 to 1023, and in the second state φ2, the count cycle is 1023, and the count value CNT2 repeats 0 to 1022, and in the third state φ3, the count cycle is 1025, and the count value CNT3 repeats 0 to 1024.

図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 cycle setting unit 70, and FIG. 5B is a diagram illustrating the count value and the count cycle at the negative edge of the word clock LRCK. As shown in FIG. 5A, the state machine makes a state transition based on the count value CNT1 of the first counter 12 at the edge timing of the word clock LRCK. In the state transition, hysteresis is set for the count value CNT1. Here, the hysteresis width is shown for 16 clocks. Hysteresis control can suppress frequent state transitions and stabilize the system.

以上が受信回路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 circuit 100. Next, the operation will be described.
6A to 6C are waveform diagrams showing the operation of the receiving circuit 100. FIG. As shown in FIG. 6A, when the system clock PLLCK maintains M × N × fs, the count value CNT1 of the first counter 12 at the negative edge of the word clock LRCK is close to zero. At this time, the cycle setting unit 70 is in the first state φ1, and the count cycle of the first counter 12 is M × N.

システムクロック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 first counter 12 at the negative edge of the word clock LRCK increases as shown in FIG. 6B. To do. When the count value CNT1 of the first counter 12 at the negative edge of the word clock LRCK eventually exceeds the threshold value 16, the state transits to the third state φ3, and the count cycle of the first counter 12 becomes M × N + x (= 1025). .

システムクロック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 first counter 12 at the negative edge of the word clock LRCK decreases as shown in FIG. 6C. To do. Eventually, when the count value CNT1 of the first counter 12 at the negative edge of the word clock LRCK becomes 1008 or less, the state transits to the second state φ2, and the count cycle of the first counter 12 becomes M × N−y (= 1022).

以上が受信回路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 circuit 100. According to the receiving circuit 100, when the frequency of the system clock PLLCK varies, the count cycles of the first counter 12 and the second counter 56 are changed accordingly to M × N−x, M × N + y with M × N as a reference. Increase or decrease by the two values.
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 circuit 100 will be described.
FIG. 7 is a block diagram illustrating a configuration of an audio system 500 using the audio signal processing circuit 200 including the receiving circuit 100.

オーディオシステム500は、音源2、オーディオ信号処理回路200、アンプ8L、8R、スピーカ9L、9Rを備える。   The audio system 500 includes a sound source 2, an audio signal processing circuit 200, amplifiers 8L and 8R, and speakers 9L and 9R.

オーディオ信号処理回路200は、CDプレイヤなどの音源2と3線シリアルインタフェースを介して接続され、デジタルオーディオ信号を受ける。オーディオ信号処理回路200は、上述の受信回路100に加えて、複数の処理ユニット203、D/Aコンバータ204を備える。入力段50および複数の処理ユニット203を、DSP202と総称する。   The audio signal processing circuit 200 is connected to the sound source 2 such as a CD player via a 3-wire serial interface and receives a digital audio signal. The audio signal processing circuit 200 includes a plurality of processing units 203 and a D / A converter 204 in addition to the receiving circuit 100 described above. The input stage 50 and the plurality of processing units 203 are collectively referred to as a DSP 202.

入力段50は、音源2からのデジタルオーディオ信号を受け、LチャンネルデータD_LchおよびRチャンネルデータD_Rchを生成する。入力段50から出力されたデータD_Lch、D_Rchは、後段の処理ユニット203に入力される。処理ユニット203は、デジタルボリウム回路、マルチバンドイコライザ、ラウドネス回路、クロスオーバフィルタ、バスブースト回路などであり、データD_Lch、D_Rchに所定の信号処理を施す。   The input stage 50 receives the digital audio signal from the sound source 2 and generates L channel data D_Lch and R channel data D_Rch. The data D_Lch and D_Rch output from the input stage 50 are input to the subsequent processing unit 203. The processing unit 203 is a digital volume circuit, a multiband equalizer, a loudness circuit, a crossover filter, a bass boost circuit, and the like, and performs predetermined signal processing on the data D_Lch and D_Rch.

処理ユニット203の信号処理は、入力段50の第2カウンタ(DSPシーケンスカウンタ)56のカウント値CNT2と同期している。すなわち、カウント値CNT2が、第1の範囲のとき、最初の処理ユニット203が信号処理を行い、第2の範囲のとき、2番目の処理ユニット203が信号処理を行う。   The signal processing of the processing unit 203 is synchronized with the count value CNT2 of the second counter (DSP sequence counter) 56 of the input stage 50. That is, when the count value CNT2 is in the first range, the first processing unit 203 performs signal processing, and when the count value CNT2 is in the second range, the second processing unit 203 performs signal processing.

D/Aコンバータ204L、204Rはそれぞれ、処理ユニット203を経由したオーディオデータD_Lch、D_Rchをデジタル/アナログ変換し、アナログオーディオ信号S_Lch、S_Rchを生成する。   The D / A converters 204L and 204R convert the audio data D_Lch and D_Rch that have passed through the processing unit 203 from digital to analog, and generate analog audio signals S_Lch and S_Rch, respectively.

アンプ8L、8Rは、アナログオーディオ信号S_Lch、S_Rchを増幅し、スピーカ9L、9Rへと出力する。   The amplifiers 8L and 8R amplify the analog audio signals S_Lch and S_Rch and output them to the speakers 9L and 9R.

図7のオーディオ信号処理回路200は、車載用オーディオ装置、家庭用のオーディオコンポーネント装置に利用することもできる。あるいは、オーディオ信号処理回路200は、テレビ、デスクトップPC、ノートPC、タブレットPC、携帯電話端末、デジタルカメラ、ポータブルオーディオプレイヤなどの電子機器に搭載することもできる。   The audio signal processing circuit 200 of FIG. 7 can also be used for an in-vehicle audio device and a home audio component device. Alternatively, the audio signal processing circuit 200 can be mounted on an electronic device such as a television, a desktop PC, a notebook PC, a tablet PC, a mobile phone terminal, a digital camera, or a portable audio player.

図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 display device 600 that is an example of an electronic device. The display device 600 includes a housing 602 and a speaker 9. The audio signal processing circuit 200 is built in the casing and drives the speaker 9.

図7(b)はオーディオコンポ700である。オーディオコンポ700は、筐体702、スピーカ9を備える。オーディオ信号処理回路200は筐体702に内蔵され、スピーカ9を駆動する。   FIG. 7B shows an audio component 700. The audio component 700 includes a housing 702 and a speaker 9. The audio signal processing circuit 200 is built in the housing 702 and drives the speaker 9.

図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 small information terminal 800 which is an example of an electronic device. The small information terminal 800 is a mobile phone, PHS (Personal Handy-phone System), PDA (Personal Digital Assistant), tablet PC (Personal Computer), audio player, or the like. The small information terminal 800 includes a housing 802, a speaker 9, and a display 804. The audio signal processing circuit 200 is built in the housing 802 and drives the speaker 9.

以上、本発明について、実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組み合わせにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。以下、こうした変形例について説明する。   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.

実施の形態では、ISバス規格のシリアルデータを例に説明したが本発明はそれに限定されず、ICバス規格など、その他の規格に準拠したシリアルデータの伝送にも利用することができる。この場合、パラメータである自然数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 cycle setting unit 70 transitions between three states and the cycle of the first counter 12 is switched between three values. However, the present invention is not limited to this, and the cycle is binary or It may be switched by four or more values.

実施の形態にもとづき、具体的な語句を用いて本発明を説明したが、実施の形態は、本発明の原理、応用を示しているにすぎず、実施の形態には、請求の範囲に規定された本発明の思想を逸脱しない範囲において、多くの変形例や配置の変更が認められる。   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 ... Multiplier circuit 50 ... Input stage 52 ... Lch latch 54 ... Rch latch 56 ... Second counter 58 ... Strobe signal generation unit 70 ... Period setting unit 200 ... Audio signal processing circuit 202 ... DSP 203 ... Processing unit, 204 ... D / A converter, 500 ... audio system, 2 ... sound source, 8 ... amplifier, 9 ... speaker.

Claims (17)

Mビット(Mは自然数)を単位として伝送され、受信すべきKビット(Kは自然数)を含むシリアルデータと、前記シリアルデータのビットごとにエッジを有するビットクロックと、前記Mビットごとにエッジを有するワードクロックと、を受信する受信回路であって、
前記ビットクロックを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カウンタのカウント値にもとづいて、前記設定値を動的に設定することを特徴とする請求項1に記載の受信回路。   The receiving circuit according to claim 1, wherein the period setting unit dynamically sets the setting value based on a count value of the first counter at a predetermined timing. 前記所定のタイミングは、前記ワードクロックのエッジのタイミングであることを特徴とする請求項2に記載の受信回路。   The receiving circuit according to claim 2, wherein the predetermined timing is a timing of an edge of the word clock. 前記第1カウンタの前記初期値をα、所定の定数をx、yとするとき、前記周期設定部は、前記設定値がα+M×N−1である第1状態と、α+M×N−1−xである第2状態と、α+M×N−1+yである第3状態と、を遷移するステートマシンを含むことを特徴とする請求項2に記載の受信回路。   When the initial value of the first counter is α, and the predetermined constants are x and y, the cycle setting unit is configured such that the set value is α + M × N−1, and α + M × N−1−. The receiving circuit according to claim 2, further comprising a state machine that transitions between a second state that is x and a third state that is α + M × N−1 + y. 前記ステートマシンは、前記ワードクロックのエッジのタイミングにおける前記第1カウンタのカウント値にもとづいて状態遷移することを特徴とする請求項4に記載の受信回路。   5. The receiving circuit according to claim 4, wherein the state machine makes a state transition based on a count value of the first counter at an edge timing of the word clock. 前記状態遷移には、前記カウント値に対してヒステリシスが設定されることを特徴とする請求項5に記載の受信回路。   The receiving circuit according to claim 5, wherein a hysteresis is set for the count value in the state transition. 前記シリアルデータは、KビットのLチャンネルデータとKビットのRチャンネルデータを含むことを特徴とする請求項1から6のいずれかに記載の受信回路。   7. The receiving circuit according to claim 1, wherein the serial data includes K-bit L channel data and K-bit R channel data. 前記第2カウンタのカウント値が第1所定値、第2所定値に達するたびにアサートされる第1、第2ストローブ信号を生成するストローブ信号生成部をさらに備え、
前記ラッチ回路は、前記第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.
前記シリアルデータは、オーディオデータを含むことを特徴とする請求項1から8のいずれかに記載の受信回路。   The receiving circuit according to claim 1, wherein the serial data includes audio data. ひとつの半導体基板に一体集積化されたことを特徴とする請求項1から9のいずれかに記載の受信回路。   The receiving circuit according to claim 1, wherein the receiving circuit is integrated on a single semiconductor substrate. 請求項1から10のいずれかに記載の受信回路と、
前記受信回路が受信したデータを信号処理する処理ユニットと、
を備えることを特徴とするオーディオ信号処理回路。
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:
請求項11に記載のオーディオ信号処理回路を備えることを特徴とする電子機器。   An electronic apparatus comprising the audio signal processing circuit according to claim 11. 請求項11に記載のオーディオ信号処理回路を備えることを特徴とするオーディオシステム。   An audio system comprising the audio signal processing circuit according to claim 11. Mビット(Mは自然数)を単位として伝送され、受信すべきKビット(Kは自然数)を含むシリアルデータと、前記シリアルデータのビットごとにエッジを有するビットクロックと、前記Mビットごとにエッジを有するワードクロックと、を受信する方法であって、
前記ビットクロックを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:
所定のタイミングにタイミングにおける前記第1カウンタのカウント値にもとづいて、前記設定値を動的に設定することを特徴とする請求項14に記載の方法。   The method according to claim 14, wherein the setting value is dynamically set based on a count value of the first counter at a predetermined timing. 前記所定のタイミングは、前記ワードクロックのエッジのタイミングであることを特徴とする請求項15に記載の方法。   The method according to claim 15, wherein the predetermined timing is an edge timing of the word clock. 前記設定値がM×Nである第1状態と、M×N−1である第2状態と、M×N+1である第3状態と、を遷移することを特徴とする請求項13から16のいずれかに記載の方法。   The first state with the set value of M × N, the second state with M × N−1, and the third state with M × N + 1 are transitioned. The method according to any one.
JP2012192191A 2012-08-31 2012-08-31 Serial data receiving circuit and receiving method, audio signal processing circuit, electronic device, and audio system Expired - Fee Related JP6043129B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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