<?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>I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84201/i2c-fast-mode-frequency</link><description>Hi, 
 
 We have 2 queries regarding I2C modes, 
 1. I2C fast speed mode 
 We are undergoing test of I2C under I2C_SPEED_FAST - 400Khz 
 when we enable this frequency on our logic analyzer we are able to read 413Khz as attached in screenshot, we are using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Aug 2025 21:52:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84201/i2c-fast-mode-frequency" /><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/544373?ContentTypeID=1</link><pubDate>Fri, 01 Aug 2025 21:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d66fc2b8-5280-4c3a-bbe8-4818248b45bd</guid><dc:creator>Kirk Wayland</dc:creator><description>&lt;p&gt;413Khz produces pulse width&amp;#39;s of 1.21 usec, a problem for LOW SCK duration.&amp;nbsp; Min for SCK is 1.3 usec.&lt;/p&gt;
&lt;p&gt;Spec is spec, so having timing that violates spec is not a good idea whether or not it works on your bench.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/351551?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 13:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20288f70-3e47-4f63-9262-49c7158a00b7</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;sorry, I just passed by. And it seems to me that you do not understand each other. I&amp;#39;ll rephrase the question a little. the question is not whether the NRF can support a speed of 250 kHz, but how to set the desired speed using the Zephyr.&lt;/p&gt;
&lt;p&gt;for some unknown reason, &lt;span&gt;Zephyr&amp;nbsp;&lt;/span&gt;for this board suggests using the &lt;strong&gt;i2c&lt;/strong&gt; module and offers constants for 100 kHz, 400&lt;span&gt;kHz&lt;/span&gt; and 1000&lt;span&gt;kHz&lt;/span&gt;. but for NRF it is more correct to use the&amp;nbsp;&lt;strong&gt;TWIM&lt;/strong&gt; module.&lt;/p&gt;
&lt;p&gt;I understand that the topic starter&amp;#39;s question is exactly this: how to switch to&amp;nbsp;&lt;strong&gt;TWIM&lt;/strong&gt; in &lt;span&gt;Zephyr&amp;nbsp;&lt;/span&gt;and set the speed to 250 kHz, aren&amp;#39;t?&lt;/p&gt;
[quote userid="106849" url="~/f/nordic-q-a/84201/i2c-fast-mode-frequency/351410#351410"]as i mentioned earlier in this link&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html"&gt;https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html&lt;/a&gt;&amp;nbsp;while developing on zephyr I2C defined speed configurations we have definition for mentioned speed only[/quote]
&lt;p&gt;You shouldn&amp;#39;t use I2C. You must change using node to TWIM (Please, read this page:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/devicetree/bindings/i2c/nordic%2Cnrf-twim.html#dtbinding-nordic-nrf-twim"&gt;https://docs.zephyrproject.org/latest/reference/devicetree/bindings/i2c/nordic%2Cnrf-twim.html#dtbinding-nordic-nrf-twim&lt;/a&gt;). and after this. you can use speed 250kHz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/351527?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28ef5933-5e5e-41ee-9d86-bcfbe6cb71ed</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;As you can see from the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52810%2Ftwi.html&amp;amp;cp=4_5_0_5_22_7_20&amp;amp;anchor=register.FREQUENCY"&gt;TWI documentation&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644237421103v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The speed 250kbps is supported and this should be the default speed if no speed configuration is mentioned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/351410?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 22:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:897324de-0291-4058-8622-c9ea3c18c4a2</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;as i mentioned earlier in this link&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html"&gt;https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html&lt;/a&gt;&amp;nbsp;while developing on zephyr I2C defined speed configurations we have definition for mentioned speed only&lt;/p&gt;
&lt;p&gt;I2C Standard Speed: 100kHz - I2C_SPEED_STANDARD&lt;br /&gt;I2C Fast Speed: 400kHz - I2C_SPEED_FAST&lt;br /&gt;I2C Fast Plus Speed: 1MHz - I2C_SPEED_FAST_PLUS&lt;br /&gt;I2C High Speed: 3.4MHz - I2C_SPEED_HIGH&lt;br /&gt;I2C Ultra Fast Speed: 5MHz - I2C_SPEED_ULTRA&lt;/p&gt;
&lt;p&gt;can you please suggest if we are to use&amp;nbsp; nrf connect sdk how do we add configurations for 250khz as existing configurations are only for mentioned speed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350738?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 16:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99494611-c5d6-4012-825c-9b2445da22bb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/chemax"&gt;CheMax&lt;/a&gt; mentioned, 413kHz should be fine as it&amp;#39;s&amp;nbsp;just a slight variation. And regarding the i2c speeds, since the BL653 has the nRF52833, you should be able to use the 250kHz speed, as mentioned, in &lt;a href="https://docs.zephyrproject.org/latest/reference/devicetree/bindings/i2c/nordic,nrf-twim.html?highlight=nrf%20twim"&gt;nrf-twim&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350600?ContentTypeID=1</link><pubDate>Tue, 01 Feb 2022 09:36:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df323dd6-dbdd-44c2-9b3b-408aa7e70fb1</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi Nordic Support,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are waiting for your response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350329?ContentTypeID=1</link><pubDate>Sun, 30 Jan 2022 12:53:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9ad38b9-e5de-4a96-b955-4f571b85a4f2</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Thank you for response Chemax,&lt;/p&gt;
&lt;p&gt;will wait for support service to acknowledge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350311?ContentTypeID=1</link><pubDate>Sat, 29 Jan 2022 13:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785e2a2f-b002-4cd8-b039-c66556574083</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="106849" url="~/f/nordic-q-a/84201/i2c-fast-mode-frequency/350310#350310"]can you please provide input to query number 2 of&amp;nbsp;&lt;span&gt;I2C speed modes,&lt;/span&gt;[/quote]
&lt;p&gt;seems I understand what the question is.&lt;/p&gt;
&lt;p&gt;Zephyr for this board (BL653) suggests using the &lt;strong&gt;I2C&lt;/strong&gt; driver. while for nordic chips, in the same document there is a reference to the use of &lt;strong&gt;TWI&lt;/strong&gt;, when setting which you can explicitly specify the exchange rate in Hz (see here&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/devicetree/bindings/i2c/nordic,nrf-twim.html?highlight=nrf%20twim"&gt;nrf-twim with zephyr&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Unfortunately, I have practically no experience in working with &lt;span&gt;Zephyr&amp;nbsp;&lt;/span&gt;, so if you still have questions, clarify them and wait for a response from the support service.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350310?ContentTypeID=1</link><pubDate>Sat, 29 Jan 2022 13:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63256b93-7457-498c-b527-61f34311a7a0</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi CheMax,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for quick response,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can you please provide input to query number 2 of&amp;nbsp;&lt;span&gt;I2C speed modes,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Hitesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C fast mode frequency</title><link>https://devzone.nordicsemi.com/thread/350306?ContentTypeID=1</link><pubDate>Sat, 29 Jan 2022 09:38:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af61184-0de6-4f6c-a24a-e8c5af2b83d6</guid><dc:creator>CheMax</dc:creator><description>&lt;p&gt;short answer:&lt;br /&gt;There is nothing wrong with that, the device will work.&lt;/p&gt;
&lt;p&gt;and yes, the &amp;quot;Fast +&amp;quot; mode is used only in nrf5340. otherwise only have &amp;quot;standart&amp;quot; and fast modes this is due to the fact that for high exchange frequencies, current control of the lines is already required in order to obtain steep fronts.&lt;/p&gt;
&lt;p&gt;more expanded:&lt;br /&gt;The standard does not define the bus rate, but rather simply specifies the typical times: low clock duration, clock high duration, and rise time. These parameters add up the exchange rate, but you noticed that the speed is indicated not in bits / s, but in Hz.&lt;br /&gt;therefore, for a typical speed of 400 kHz, a small variation is allowed. the main thing is to monitor the steepness of the fronts and the capacity of the bus. Capacitance for 400 kHz should not exceed 400 pF. It is better to generally be at the level of 100-200 pF.&lt;br /&gt;also, the fact that you measured 413kHz does not mean anything, since the next data frame may have a different frequency. this is due to the fact that, by default, nrf52 chips clock the peripherals from an internal source. if you switch forcibly to an external quartz resonator / oscillator, you will get different numbers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;p.s. see you diagrams in analog mode.&amp;nbsp;then you will see if the pull-up resistors have been chosen correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;from what I see, I suspect a very weak leading edge. Due to this, the clock pulses are quite narrow.&lt;/p&gt;
&lt;p&gt;and yes, the frequency meter from sale is mediocre. it counts at the level of 0.7 from the one specified in the settings. therefore, often the readings also depend on the selected sampling frequency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>