<?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>nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69274/nrf52840-i2c-timing-spec</link><description>Hi 
 About nRF52840 I2C data read (CLK rate 400KHz) 
 1. Could you help check below three I2C items(tHD;DAT, tHD;STA, tSU;STO) can follow I2C standard(NXP) spec. or need follow nRF52840 spec.? 
 Since our measurement can pass standard but fail nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Aug 2025 21:39:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69274/nrf52840-i2c-timing-spec" /><item><title>RE: nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/thread/544369?ContentTypeID=1</link><pubDate>Fri, 01 Aug 2025 21:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67020147-e0e9-428f-bfe2-40eb5a0c016d</guid><dc:creator>Kirk Wayland</dc:creator><description>&lt;p&gt;Yes, you are definitely in violation of published spec for LOW SCK minimum.&amp;nbsp; It is 1.3 usec.&lt;br /&gt;This can cause the SDA line to get stuck in the LOW state.&amp;nbsp; When this occurs, only a complete power cycle will recover.&amp;nbsp; (Not a reset, a power off/on)&lt;/p&gt;
&lt;p&gt;There is a way to recover the SDA stuck low in code.&amp;nbsp; It involves:&lt;/p&gt;
&lt;p&gt;1. Set the two pins as GPIO (Disable the TWIM)&lt;/p&gt;
&lt;p&gt;2. Read the SDA line and see if it is low.&lt;/p&gt;
&lt;p&gt;3. If so, then clock the SCK.&lt;/p&gt;
&lt;p&gt;4. Repeat 2 and 3 nine times if necessary.&lt;/p&gt;
&lt;p&gt;5. Once the SDA line is HIGH, then enable the TWIM again.&lt;/p&gt;
&lt;p&gt;6. Perform transfer.&lt;/p&gt;
&lt;p&gt;This needs to occur for every transfer, and is documented in the errata.&lt;/p&gt;
&lt;p&gt;While this will recover the SDA line, it does not prevent.&amp;nbsp; To do so, you need to slow the I2C LOW SCK to 1.3usec, which is 390Khz.&lt;/p&gt;
&lt;p&gt;Be sure to use a scope to verify&lt;/p&gt;
&lt;p&gt;Good luck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/thread/284228?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 07:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:808fd0b8-9dba-40aa-ac80-d4514bfe09a6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Poki,&lt;/p&gt;
&lt;p&gt;1. Yes, that is what I meant. So the measured timings look good as far as I can tell.&lt;/p&gt;
&lt;p&gt;2. Yes, I would not expect this to be a problem for the nR52. But I misread your measured value earlier, I read it without the decimal point so I thought you were above max. and not below Min. So rather than increasing the drive strength as I suggested, you should use the standard drive.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/thread/284217?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 03:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e811ad-0f5f-404f-afc8-71db813755c3</guid><dc:creator>Poki Huang</dc:creator><description>&lt;p&gt;Hi Vidar:&lt;/p&gt;
&lt;p&gt;I want to let you know again that we are discussing nRF52840 I2C SDA read data spec., not I2C SDA send data to device spec.&lt;/p&gt;
&lt;p&gt;1. So you mean&amp;nbsp;about these&amp;nbsp;&lt;span&gt;three I2C items(tHD;DAT, tHD;STA, tSU;STO) that&amp;nbsp;nRF52840 datasheet list spec. is to promise that nRF52840 send data can meet those spec. right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So for nRF52840 read data spec. we can follow I2C standard(NXP) spec., so our below measurement result is pass right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1607571234105v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. For data fall time(tf), the I2C standard spec. need &amp;gt; 20*(VDD/5.5V) , so for our case VDD=2.1V, the spec. need &amp;gt; 7.63ns&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But this&amp;nbsp;data fall time(tf) spec. didn&amp;#39;t list at your nRF52840 datasheet, that mean you don&amp;#39;t concern this timing right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If yes, so below our measurement 0.3899 is ok for nRF52840 right?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1607571898237v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you~~&lt;/p&gt;
&lt;p&gt;Poki&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/thread/284072?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 13:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a11e58c-c634-4121-9f57-1e6bc1e82b43</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. You should make sure that the NXP I2C requirements are met. The el. spec. for the nRF52&amp;#39;s TWIM module shows the timing characteristic of the peripheral itself, which should also be within the allowed timing ranges specified by the original I2C specification.&lt;/p&gt;
&lt;p&gt;2. Looks like you are slighty outside of I2C spec on this paramater. Have you tried to increase the IO drive strength as suggested in the PS here &lt;span&gt;&lt;a title="Pullup resistor" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/twim.html?cp=4_0_0_5_30_8#concept_twim_timings"&gt;Pullup resistor &lt;/a&gt;&lt;/span&gt;(ie set the drive strength to H0D1 for the TWIM &lt;span&gt;&lt;a title="Master mode pin configuration" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/twim.html?cp=4_0_0_5_30_5#concept_x2r_gxp_xr"&gt;pin configuration &lt;/a&gt;&lt;/span&gt;instead of S0D1).&lt;/p&gt;
&lt;p&gt;3. I wasn&amp;#39;t able to open the case you linked to, but I assume it&amp;#39;s related to &lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52840_Rev2/ERR/nRF52840/Rev2/latest/anomaly_840_219.html?cp=4_0_1_0_1_40"&gt;[219] TWIM: I2C timing spec is violated at 400 kHz&lt;/a&gt;&lt;/span&gt;? The answer is yes, you can change the FREQUENCY setting as explained in the errata document to ensure correct low period.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 I2C timing spec.</title><link>https://devzone.nordicsemi.com/thread/283990?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 09:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:815dd1dc-c702-4e1b-82e0-78fae08dc25f</guid><dc:creator>Poki Huang</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I add another question&lt;/p&gt;
&lt;p&gt;3. About I2C SCLK Tlow timing, I2C standard is min. 1.3us, but we measure about 1.23us&lt;/p&gt;
&lt;p&gt;I see the link &amp;quot;devzone.nordicsemi.com/.../148194 discuss this issue but I want to confirm again&lt;/p&gt;
&lt;p&gt;Can you modify this timing? If can&amp;#39;t, the SCLK 1.23us timing will be ok for all slave devices?&lt;/p&gt;
&lt;p&gt;Thank you~~&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1607507682067v1.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>