<?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>I2S timing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21434/i2s-timing</link><description>Hi, 
 I am currently testing a DAC with I2S input supplied by the nRF52832.
But unfortunately no signal is coming out from the DAC, furthermore when reading the error registers on the DAC through i2c I get a clock error which indicates that the clock</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Apr 2017 15:11:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21434/i2s-timing" /><item><title>RE: I2S timing</title><link>https://devzone.nordicsemi.com/thread/84084?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 15:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1085c5f-13b1-43e9-a614-1bab82b3f43e</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;According to the GPIO chapter of the nRF52832 the rise and fall times of the GPIO with high drive are 4-8 ns with capacitive loads between 15-50 Pf.&lt;/p&gt;
&lt;p&gt;According to page 9 (chapter 7.7) of the TAS5760L datasheet setup and hold time needs to be a minimum of 8-12 ns for the above mentioned rise and fall times. Maximum rise and fall times are set to 8 ns.&lt;/p&gt;
&lt;p&gt;Page 460 of the nRF52832 datasheet specifies setup times as minimum 20ns, and hold times as 15 ns.&lt;/p&gt;
&lt;p&gt;I therefore do believe that with high drive the timings should be within the specifications of the TAS5760L, as long as the input capacitances lie in the range of 15-50 pF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S timing</title><link>https://devzone.nordicsemi.com/thread/84083?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 14:48:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bdc53af-465b-4f21-9a99-06b4ef8a3604</guid><dc:creator>Erblin</dc:creator><description>&lt;p&gt;The TWI pins are the default arduino TWI pins (P27&amp;amp;P26), while the I2S uses 3, 4, 28 and 29. So pins 26 to 29 are positioned relatively closed to each other. I can just exchange 3 and 4 with 27 and 26 to make them further apart.
The TWI was set to 400 KHz,  there is no problem for changing it to 100 KHz if necessary.&lt;/p&gt;
&lt;p&gt;But is the GPIO&amp;#39;s rise time within specification when increasing the pins drive strength?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S timing</title><link>https://devzone.nordicsemi.com/thread/84082?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 09:35:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:783d45d8-cebe-4ce4-987d-9aa2fddd5b51</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;You&amp;#39;re right that the rise and fall timing requirements do look out of spec when comparing them to the GPIO electrical specification of the nRF52832, and high drive mode will probably be necessary. Your drive initialization looks correct.&lt;/p&gt;
&lt;p&gt;How are your I2S pins positioned relative to your TWI pins, and what&amp;#39;s your TWI clockrate? If you are using the internal pull-ups the TWI port can be a bit sensitive to noise, and I suspect the higher current drain of the I2S might be interfering with it. You could try to either change output pins so they are further apart, or add a smaller external pull-up to the TWI, rather than the internal one, to reduce its sensitivity to noise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S timing</title><link>https://devzone.nordicsemi.com/thread/84081?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 19:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd17a9e-6d83-4026-83e8-850fe65ab613</guid><dc:creator>Erblin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes I have seen this post before and I have tried the solutions he suggested, but it wasn&amp;#39;t working. I have used the DAC in both hardware &amp;amp; software(i2c) control mode, but both solutions didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;But I am starting to wonder if these specifications(chapter 7.7&lt;a href="http://www.ti.com/lit/ds/symlink/tas5760l.pdf"&gt;link to datasheet&lt;/a&gt;) of the serial audio port in the DAC may not be met from the nRF52832. I still haven&amp;#39;t found any information in the infocenter in order to check if it is within the specs.&lt;/p&gt;
&lt;p&gt;I have tried changing the drive strength of the I2S pins, but I am unsure if i did it correctly, here is what I did after configuring the I2S:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_GPIO-&amp;gt;PIN_CNF[MCK_SCK_PIN] = (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);  
			NRF_GPIO-&amp;gt;PIN_CNF[LRCK_PIN] = (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);  
			NRF_GPIO-&amp;gt;PIN_CNF[BCK_PIN] = (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);  
			NRF_GPIO-&amp;gt;PIN_CNF[SDOUT_PIN] = (GPIO_PIN_CNF_DRIVE_H0H1 &amp;lt;&amp;lt; GPIO_PIN_CNF_DRIVE_Pos);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Doing this made the  I2C/TWI unstable and the DAC didn&amp;#39;t acknowledge any of the transfers.&lt;/p&gt;
&lt;p&gt;-Erblin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2S timing</title><link>https://devzone.nordicsemi.com/thread/84080?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 12:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5845591f-b70e-4d70-89cd-a88fe0a316c9</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Erblin&lt;/p&gt;
&lt;p&gt;With the settings you mention in your post at Texas Instruments you should have a LRCLK, and SCLK error of approximately 3.1% which is within the 10% specified in the I2S Specification.&lt;/p&gt;
&lt;p&gt;Both of these are also within the 4% Alex Bhandari-Young at TI&amp;#39;s forum had found for a similar product.&lt;/p&gt;
&lt;p&gt;In the TAS5760L product specification, legal clock ratios for SCLK/LRCLK are 32, 48 and 64. With your settings, this ratio is 32.
Legal clock ratios for MCLK/LRCLK is 64, 128, 192, 256, 384 and 512. With your settings, this ratio is 64.&lt;/p&gt;
&lt;p&gt;As of yet I have not found any specific reason the nRF52832 should not be compatible with the TAS5760L, as all values seem to meet the requirements. I see Alex Bhandari-Young with TI has requested more information on clock tolerances, it will be interesting to see what he finds.&lt;/p&gt;
&lt;p&gt;I have found a post on Texas Instruments&amp;#39; support forum, which seems similar to your issue
&lt;a href="https://e2e.ti.com/support/amplifiers/audio_amplifiers/f/6/p/497152/1797838"&gt;e2e.ti.com/.../1797838&lt;/a&gt;
Please have a look and see if that can be of help.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>