<?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 bit baging drivers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86327/nrf52840-bit-baging-drivers</link><description>Hello, sir. 
 I want to use the i2c bit bagging method, thus I used the DeviceDownloadnRF5 SDK 17.1.0 ddde560nRF5 SDK 17.1.0 ddde560componentsdrivers nRF5 SDK 17.1.0 ddde560componentsdrivers nRF5 SDK 17.1.0 ddde560componentsdrivers nRF5 SDK 17 &amp;#39;POWER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Apr 2022 07:13:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86327/nrf52840-bit-baging-drivers" /><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/361729?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 07:13:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fca70d1-43ee-4834-b627-cd6cd9a9eef3</guid><dc:creator>mahi354</dc:creator><description>&lt;p&gt;Thank you for your assistance; the problem has been handled utilising the bit bagging method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/360665?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 06:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f70f4084-cb2a-48ea-b1d6-489726dd8578</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please see the edit in my previous reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/360594?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 15:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1f703e7-42f3-426a-8825-777452e14a7b</guid><dc:creator>mahi354</dc:creator><description>&lt;p&gt;Good day, sir.&lt;/p&gt;
&lt;p&gt;Should I utilise the what containing the deprecated drivers what is provided in sdk 17.1 if we are only seeking for bit bagging drivers?&lt;/p&gt;
&lt;p&gt;Please clarify whether or not using these drivers will make it work.&lt;br /&gt;the path&lt;br /&gt;is&amp;nbsp;D:\SDK 17.1\DeviceDownload\&lt;br /&gt;nRF5 SDK 17.1.0 ddde560\&lt;br /&gt;nRF5 SDK 17.1.0 ddde560\components\drivers nrf\twi master&lt;br /&gt;If you know of any nrf updated bit bagging drivers that I should use, please let me know.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;please check this link ,we have same&amp;nbsp; problem kindly suggest the solution&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please see this link for more details; we had the same problem.&lt;/span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/360569?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:39:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3365492-6963-40ef-a0c7-89216e575934</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the clarification. &lt;span style="text-decoration:line-through;"&gt;So I would avoid using clock stretching if possible (e.g use polling instead) so you can use the new driver.&lt;/span&gt; If that&amp;#39;s not an option, then you can access the undocumented power register directly.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        //equivalent to NRF_TWI0-&amp;gt;POWER
        *(volatile uint32_t *) (NRF_TWI0_BASE + 0xFFC)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; It looks like only TWIM (&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/twim.html?cp=4_0_0_5_30"&gt;TWIM — I2C compatible two-wire interface master with EasyDMA&lt;/a&gt;&lt;/span&gt;) is affected by the clock stretching issue, not the TWI (&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/twi.html?cp=4_0_0_5_28"&gt;TWI — I2C compatible two-wire interface&lt;/a&gt;&lt;/span&gt;). So this means you should be able to use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fhardware_driver_twi.html"&gt;new&lt;/a&gt; driver as long as you disable the TWI0_USE_EASY_DMA setting in sdk_config.h and use TWI instead of TWIM.&lt;/p&gt;
&lt;p&gt;Also, the deprecated TWI &lt;a href="https://en.wikipedia.org/wiki/Bit_banging"&gt;bit banging&lt;/a&gt; implementation (/components/drivers_nrf/twi_master/deprecated/twi_sw_master.c) does not use the TWI/TWIM HW blocks, but controls everything in SW using 2 GPIOs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/360445?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 07:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dfa3603-1340-428f-a759-3a65ca306609</guid><dc:creator>mahi354</dc:creator><description>&lt;p&gt;Good day, sir.&lt;/p&gt;
&lt;p&gt;Thank you for the follow-up.&lt;/p&gt;
&lt;p&gt;We tried TWI and TWIM, but we had issues with clock starching, and we couldn&amp;#39;t communicate effectively, so we chose to utilize the bit bagging approach.&lt;/p&gt;
&lt;p&gt;Could you kindly recommend updated bit bagging drivers?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Please see this link for more details; we had the same problem.&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to use the bit bagging drivers that go with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 bit baging drivers</title><link>https://devzone.nordicsemi.com/thread/360427?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 06:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42509063-4e46-49e6-9f5f-e56f048e3935</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is an old deprecated driver. You should use the new one here: &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/hardware_driver_twi.html"&gt;TWI master&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>