<?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>TWI SW setting the frequency rate ( cant find )</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5303/twi-sw-setting-the-frequency-rate-cant-find</link><description>Hello! 
 Looking around and reading a bunch of posts, I found little information on how to initialize the TWI sw frequency, which currently is 100 kHz( calculated it with a test). Is there are way to init the Frequency rate for the TWI software ? Setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jan 2015 12:24:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5303/twi-sw-setting-the-frequency-rate-cant-find" /><item><title>RE: TWI SW setting the frequency rate ( cant find )</title><link>https://devzone.nordicsemi.com/thread/18548?ContentTypeID=1</link><pubDate>Thu, 29 Jan 2015 12:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96f463a9-c9ff-4195-be94-e78cdadd61ed</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Since the SW version uses bit-banging it doesn&amp;#39;t really make any sense to &amp;quot;init the frequency rate&amp;quot;. The change on the GPIOs happens as fast as the processor is able to process the code. So, a factor that determines the speed is how well the code is optimized.&lt;/p&gt;
&lt;p&gt;In &lt;strong&gt;twi_master.h&lt;/strong&gt; you have a &lt;code&gt;NRF_DELAY()&lt;/code&gt; definition, which is used some places in the &lt;strong&gt;twi_sw_master.c&lt;/strong&gt; code. You can try to set this to 1us. Or maybe remove it completely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>