<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>The clock between 52840 USB Audio and I2S will be out of sync after few seconds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75230/the-clock-between-52840-usb-audio-and-i2s-will-be-out-of-sync-after-few-seconds</link><description>Hi, 
 
 I try sdk 17.02 nRF52840 usb audio demo,I want to achieve 48KHz stereo music play by a I2S DAC. 
 I finished adding DAC for I2S to play the sound data of USB Audio ,and it works well most time, but I found that about every few seconds ,I can hear</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 May 2021 15:12:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75230/the-clock-between-52840-usb-audio-and-i2s-will-be-out-of-sync-after-few-seconds" /><item><title>RE: The clock between 52840 USB Audio and I2S will be out of sync after few seconds</title><link>https://devzone.nordicsemi.com/thread/310219?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 15:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21b82d55-ae0e-4216-bc96-08c0c035d3ee</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Ideally you would want to adjust the audio PLL clock to avoid underflow&amp;nbsp;or overflow, this could be done in run-time by monitoring the available buffers. This is not possible on the nRF52-series, but should be doable on the nRF53-series.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The clock between 52840 USB Audio and I2S will be out of sync after few seconds</title><link>https://devzone.nordicsemi.com/thread/310135?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 12:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b603839-65b8-4843-b5a0-6bf3292613ee</guid><dc:creator>OPQ</dc:creator><description>&lt;p&gt;Asynchronous usb audio would be help,&amp;nbsp;Is there any reference on nRF52840 that related to&amp;nbsp;a&lt;span&gt;synchronous usb audio?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The clock between 52840 USB Audio and I2S will be out of sync after few seconds</title><link>https://devzone.nordicsemi.com/thread/310120?ContentTypeID=1</link><pubDate>Tue, 18 May 2021 11:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b1ebd7c-546d-42ce-a120-e01af93f3357</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;span&gt;It looks like you are experiencing underflow/overflow of data coming in from USB vs. what is sent on I2S.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To overcome underflow/overflow then interpolating/discarding samples would be the solution.&amp;nbsp;Interpolating/discarding samples can introduce distortion in audio, but are depended on the clock offset between peers and buffer size.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>