<?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>Use I2S play sound</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59631/use-i2s-play-sound</link><description>I use Nrf52832 and sdk16.0.Use I2S play sound. 
 If use: 
 int16_t sine_table[]= {0,0,23170,23170,32767,32767,23170,0,0,-23170,-23170,-32768,-32768,-23170,-23170}; 
 NRF_I2S-&amp;gt;TXD.PTR=(uint32_t)&amp;amp;sine_table[0]; NRF_I2S-&amp;gt;RXTXD.MAXCNT=sizeof(sine_table)/sizeof</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Mar 2020 15:41:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59631/use-i2s-play-sound" /><item><title>RE: Use I2S play sound</title><link>https://devzone.nordicsemi.com/thread/242760?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 15:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f66b48d-ac27-4bfc-85aa-4d4c3c8248c9</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Question 1:&lt;/p&gt;
&lt;p&gt;I have subcontracted transmit.But But it&amp;#39;s all noise.&lt;/p&gt;
&lt;p&gt;I setting :&lt;/p&gt;
&lt;p&gt;MCKFREQ=I2S_CONFIG_MCKFREQ_MCKFREQ_32MDIV63&lt;/p&gt;
&lt;p&gt;RATIO=I2S_CONFIG_RATIO_RATIO_32X&lt;/p&gt;
&lt;p&gt;SWIDTH=I2S_CONFIG_SWIDTH_SWIDTH_16BIT&lt;/p&gt;
&lt;p&gt;CHANNELS=I2S_CONFIG_CHANNELS_CHANNELS_LEFT&lt;/p&gt;
&lt;p&gt;This&amp;nbsp;sound file comes from &lt;a href="https://github.com/NordicPlayground/nRF52-teensy-sgtl5000-audio/tree/master/Convert%20Audio%20Sample"&gt;https://github.com/NordicPlayground/nRF52-teensy-sgtl5000-audio/tree/master/Convert%20Audio%20Sample&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Question 2:&lt;/p&gt;
&lt;p&gt;I want setting &lt;span class="fontstyle0"&gt;&lt;span style="font-size:small;"&gt;EVENTS_TXPTRUPD interrupt.&lt;/span&gt;&lt;/span&gt;What should I do?I didn&amp;#39;t find the &lt;span style="font-size:small;"&gt;interrupt&lt;/span&gt; &amp;nbsp;interface.&lt;/p&gt;
&lt;p&gt;Please help me analyze the source code.thank you.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/i2s.rar"&gt;devzone.nordicsemi.com/.../i2s.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use I2S play sound</title><link>https://devzone.nordicsemi.com/thread/242511?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 16:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3b3174-e1bf-4202-80b2-62d4e73dfe5f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You need to split up the data in multiple smaller buffers. The buffer pointers in the I2S peripheral is double-buffered, and you will receive events when the buffers are swapped. See&amp;nbsp;&lt;a title="Transmitting and receiving" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/i2s.html?cp=4_2_0_43_1#concept_wvj_ssy_vr"&gt;Transmitting and receiving&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a title="EasyDMA" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/i2s.html?cp=4_2_0_43_6#concept_gq4_jly_vr"&gt;EasyDMA&lt;/a&gt;&amp;nbsp;for more details.&lt;/p&gt;
&lt;p&gt;If you need to store the data in flash, you can copy it into the RAM buffer when you want to use it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use I2S play sound</title><link>https://devzone.nordicsemi.com/thread/242488?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 14:47:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:571d8dab-8f8c-4018-a36b-dacf12a4f536</guid><dc:creator>john.liu</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;I want to transmit 260760bytes,What shall I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use I2S play sound</title><link>https://devzone.nordicsemi.com/thread/242242?ContentTypeID=1</link><pubDate>Sat, 28 Mar 2020 21:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68dfe887-8a10-4bfd-8f65-d66a53bcec43</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Simple explanation:&lt;/p&gt;
&lt;p&gt;int16_t sine_table[]= {} will be put into RAM.&lt;/p&gt;
&lt;p&gt;const uint8_t &lt;span style="color:#ff0000;"&gt;output&lt;/span&gt;[260760] = {} will be put into FLASH.&lt;/p&gt;
&lt;p&gt;EasyDMA does not support reading from FLASH, that is why the second example won&amp;#39;t work properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>