<?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>Configuring TWIS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47444/configuring-twis</link><description>Hello 
 I&amp;#39;m using the NRF52832 with softdevice 132. My SDK version is 15.3. My platform is WIndows 10. 
 I am having trouble configuring the TWIS. I&amp;#39;ve followed the instructions in the info center. They are vague at best. I could use a step by step procedure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2019 22:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47444/configuring-twis" /><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/188662?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 22:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bcf1823-551b-4e30-868b-17fc048abcc5</guid><dc:creator>Gerber</dc:creator><description>&lt;p&gt;Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is working now.&amp;nbsp; Thanks for looking at my file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/188414?ContentTypeID=1</link><pubDate>Wed, 22 May 2019 06:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79674fc7-dc6e-4cbc-99db-aca7cebf0951</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. So since you do not have TWIS_ENABLED, the apply_old_config.h will not overwrite the NRFX_TWIS defines in sdk_config.h. That is good.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So is your TWIS working as you intend to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/188383?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 22:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:055a22cd-73d3-41a8-91c0-f2f82dd841a1</guid><dc:creator>Gerber</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5584.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../5584.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is my sdk_config.h file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/188102?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 07:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6014e3-a434-490f-a8cc-3841158bc8ef</guid><dc:creator>Edvin</dc:creator><description>[quote user="Gerber"]When I examine&amp;nbsp;apply_old_config.h, most of the code under the TWI and TWIS sections is greyed out.&amp;nbsp; Does mean I failed to configure the TWIS peripheral correctly?[/quote]
&lt;p&gt;&amp;nbsp;No. It either means that TWI is not defined, but you have the NRFX_TWI defines instead, or it could simply be an IDE bug.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I meant to highlight is that whether you use the NRFX defines or the &amp;quot;old &amp;quot; defines (the old names), it will use the nrfx drivers either way, as long as you use one of the latest SDKs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are in doubt, I can take a look at your sdk_config.h. But as long as the peripheral works, it is using the nrfx drivers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/188061?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 04:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8249d4b-350d-4d2d-8be4-e17d71b32e31</guid><dc:creator>Gerber</dc:creator><description>&lt;p&gt;Hello Edwin,&lt;/p&gt;
&lt;p&gt;The example I was referring to is &amp;quot;twi_master_with_twis_slave.&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I examine&amp;nbsp;apply_old_config.h, most of the code under the TWI and TWIS sections is greyed out.&amp;nbsp; Does mean I failed to configure the TWIS peripheral correctly?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring TWIS</title><link>https://devzone.nordicsemi.com/thread/187932?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 13:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02e3adaa-d013-4bf5-8693-c06ab890e9e4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am sorry. We don&amp;#39;t have step by step guides for all of our peripherals, but the examples typically is a good starting point to getting started.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;ve tried to source some of the code from the master/slave example in the peripheral examples folder.&amp;nbsp; However, this code is configured using the older NRF_DRV&amp;nbsp; directives.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;What example is that? The spis example? It doesn&amp;#39;t use the old drivers. They actually use the nrfx drivers, but they typically use a wrapper (the non-nrfx names). I believe this is only for backwards compatibility.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Take the spis example, you can see that from main() it calls:&lt;/p&gt;
&lt;p&gt;nrf_drv_spis_init() -&amp;gt;&amp;nbsp;nrfx_spis_init()&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can of course skip the wrappers if you want to.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One thing to be aware of when you configure the sdk_config.h defines is that there is a file called apply_old_config.h. This can cause some confusion if you have both the old driver defines, and the new NRFX defines defined differently. Take a look in that file, apply_old_config.h, and you will understand.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>