<?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 implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82540/i2c-implementation-in-nrf-ncs-sdk-1-7-1</link><description>Hi, 
 
 We want to explore I2C examples in nCS SDK 1.7.1 
 Can you please enlist all the examples having I2C implementation. 
 also want to add I&amp;#39;m referring to I2C API&amp;#39;s mentioned in this link &amp;amp; i2c.h from this path in nCS 1.7.1 (\nCS\v1.7.1\zephyr\include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Mar 2022 08:03:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82540/i2c-implementation-in-nrf-ncs-sdk-1-7-1" /><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/358546?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 08:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe58688b-862d-4697-9726-e400e169457d</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;This is mentioned in the initial portion of the Guide.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver#:~:text=no%20Zephyr%20I2C/TWIS%20Slave%20Driver%20supports%20Nordic%20I2C/TWI%20Slave%20hardware%20to%20date.%20As%20a%20result%2C%20the%20TWIM%20software%20will%20use%20the%20Zephyr%20i2c%20driver%2C%20and%20the%20TWIS%20software%20will%20use%20the%20nRFX%20driver%20(NRFX_DRV)%20paradigm"&gt;no Zephyr I2C/TWIS Slave Driver supports Nordic I2C/TWI Slave hardware to date. As a result, the TWIM software will use the Zephyr i2c driver, and the TWIS software will use the nRFX driver (NRFX_DRV) paradigm&lt;/a&gt;&amp;quot;&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 implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/357987?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 14:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ec1254-b146-4a9d-b911-777b5b399246</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to know more detail about slave implementation in the mentioned demonstration,&lt;/p&gt;
&lt;p&gt;in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver"&gt;this Guide&lt;/a&gt;&amp;nbsp;why are we using nRFx&amp;nbsp; TWIS Driver, master is done using zephyr api&amp;#39;s but slave is implemented using nrfx ?&lt;/p&gt;
&lt;p&gt;Can we have any slave device demonstration which doesn&amp;#39;t uses nRFx TWIS driver.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/349718?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 10:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb6756b-6f74-4cee-ba9c-a673b71c94eb</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
[quote user="hiteshk0104"]1. Changing clock frequency[/quote]
&lt;p&gt;Yes, in order to change the clock frequencies, it&amp;#39;s sufficient to pass the speed configurations as mentioned in &lt;a href="https://docs.zephyrproject.org/latest/reference/peripherals/i2c.html"&gt;the documentation&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user="hiteshk0104"]2. I want to have multiple slave configuration and single master in I2C[/quote]
&lt;p&gt;Your overlay file seems good. Y&lt;span&gt;ou can connect up to 127 slaves on a single I2C/TWI bus. You can refer to &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/42189a0d659c706dfb8c4e33e65774e8a2005ec3/boards/arm/thingy91_nrf9160/thingy91_nrf9160_common.dts#L113-L132"&gt;this GitHub page&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
[quote user="hiteshk0104"]3. I want to transfer 16 bit data&amp;nbsp;through i2c bus I am referring to following api &lt;strong&gt;i2c_write&lt;/strong&gt;[/quote]
&lt;p&gt;I don&amp;#39;t think this is possible since the &lt;strong&gt;i2c_write()&lt;/strong&gt; expects a &lt;em&gt;uint8_t pointer&amp;nbsp;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/349386?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 23:48:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52d9d3d6-52a5-4676-b863-da29a37dbcd6</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This tutorial helped significantly, thank you very much for helping,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We want to know 3 things about data transfer and configuration in i2c.&lt;/p&gt;
&lt;p&gt;1. Changing clock frequency&lt;/p&gt;
&lt;p&gt;if we need to change clock frequency is it sufficient to pass respective speed configurations in configure as shown below, or can you please share inputs for changing clock frequency in I2C?&lt;/p&gt;
&lt;p&gt;i2c_configure(m_i2c_dev, &lt;strong&gt;I2C_SPEED_SET(I2C_SPEED_FAST)&lt;/strong&gt; | I2C_MODE_MASTER);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. I want to have multiple slave configuration and single master in I2C, I am attaching overlay file of master having multiple slave configurations &amp;amp; slave overlay which will be common across all the slave device, created as per my understanding, please provide your inputs what all configurations are needed for having multiple slave configuration. I am using very same slave example mentioned here in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver"&gt;this Guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. I want to transfer 16 bit data&amp;nbsp;through i2c bus I am referring to following api &lt;strong&gt;i2c_write&lt;/strong&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;strong&gt;i2c_write&lt;/strong&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;*&lt;/span&gt;&lt;span&gt;dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;strong&gt;const uint8_t *buf&lt;/strong&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;span&gt;uint32_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;num_bytes&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint16_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;addr&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;if we see&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;buf&lt;/span&gt;&lt;span&gt; Memory pool from which the data is transferred it is uint8_t, I want to know common practice&amp;nbsp;nordic recommendation to transfer 16 bit data and a values having signed int.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bl653_5F00_dvk-_2800_Master_2900_.overlay"&gt;devzone.nordicsemi.com/.../bl653_5F00_dvk-_2800_Master_2900_.overlay&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bl653_5F00_dvk-_2800_Slave_2900_.overlay"&gt;devzone.nordicsemi.com/.../bl653_5F00_dvk-_2800_Slave_2900_.overlay&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/346988?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 15:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebabc837-310c-4ca0-bdaa-8194acc3a3fd</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;We have &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/peripherals/posts/twi-ic2-implementation-with-nrfx-twis-driver"&gt;this Guide &lt;/a&gt;which can help you.&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 implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/346914?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 11:49:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ed523a-a0fd-4f4a-8297-d97b66a1c6d8</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Thank you Priyanka for quick response,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One question on how do we configure master / slave in I2C can you have a basic description ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/346911?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 11:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d96770-1ffb-4b1d-9266-aa5c79f908b8</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;We do not have much examples for the I2C in the nRF Connect SDK. However, one of our colleague has developed &lt;a href="https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/i2c"&gt;this sample&lt;/a&gt; which might be of help.&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 implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/346857?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 09:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff9a1d63-5e9d-4b9e-a213-aafcd5df5f38</guid><dc:creator>hiteshk014</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I need a sample example of Master-slave I2C protocol,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can you please share some input,&lt;/p&gt;
&lt;p&gt;didn&amp;#39;t get from above example&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C implementation in Nrf NCS SDK 1.7.1</title><link>https://devzone.nordicsemi.com/thread/343847?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 10:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701d8b82-8f19-48a7-8f4a-4480eb5c4556</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Hitesh,&lt;/p&gt;
&lt;p&gt;We are on low staffing since it&amp;#39;s the holiday month. Sorry for the delayed response.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/59272/nrf9160-adc-spi-and-i2c-example-codes-spi-and-i2c-api/240563#240563"&gt;This thread&lt;/a&gt; could help you for the issue.&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></channel></rss>