<?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>how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42139/how-can-i-do-i2c-initialization-on-any-gpio-pin</link><description>Hello all, 
 I am right now working on one project. where i use nrf52832 BLE board. right i am doing i2c communication of temperature sensor(lm6bd) with ble board. but can you please tell me how can i use any gpio pin as i2c (SDA and SCL ) pins ? i am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jan 2019 06:21:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42139/how-can-i-do-i2c-initialization-on-any-gpio-pin" /><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/168131?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 06:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1652f5e7-7cf4-40b7-8e80-b5469a6d41d7</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;Thank you for resolving my problem. and this is useful information for resolving my problem...&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/164805?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 06:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d03950-1f93-4b65-8217-ad99f699ffbc</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;thanks for your support. i did not know that i have to cut bridge....and thanks for user guide as well...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/164803?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 05:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61bc97e9-3762-427f-bf4c-6249c0e9251e</guid><dc:creator>Ashish</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/User_Guides/nrf52832_dk/latest/UG/nrf52_DK/intro"&gt;User Guide&lt;/a&gt;&amp;nbsp;for the nrf52832DK.&lt;/p&gt;
&lt;p&gt;Pin 5 - Pin 8 are connected to the interface MCU UART. To use them you need to cut some solder bridges, the information for which is available in the User Guide itself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/164802?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 04:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93d54d9-757d-4694-b4a9-c24315fd9f27</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;for your information, i am using nRF52832 DK evolution board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/164101?ContentTypeID=1</link><pubDate>Sat, 05 Jan 2019 18:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de93c07-8ae8-4ef0-8a99-8a25fded5e57</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That tells us nothing new.&lt;/p&gt;
&lt;p&gt;Which &lt;em&gt;&lt;strong&gt;specific&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;nRF52832 board are you using?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/164100?ContentTypeID=1</link><pubDate>Sat, 05 Jan 2019 18:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45cf5bc3-ccbc-43d8-abb8-d206b58600b2</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;I am using nRF52832 board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/163978?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 14:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb000228-44d8-4352-ac6a-031229c7b8fb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8015._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;
[quote userid="75795" url="~/f/nordic-q-a/42139/how-can-i-do-i2c-initialization-on-any-gpio-pin/163951"]I try to define same as below and change pin from 27 to 7 and 26 to 6.[/quote]
&lt;p&gt;Show what you actually did.&lt;/p&gt;
&lt;p&gt;Have you checked the &lt;strong&gt;Product Specification&lt;/strong&gt; to see if there are any special considerations for those pins?&lt;/p&gt;
&lt;p&gt;You haven&amp;#39;t said what board you are using. Are you sure those pins are free on that board?&lt;/p&gt;
&lt;p&gt;Have you tried using other pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/163951?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 12:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c34db2-6702-4389-bfa1-a3b37d1792f6</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;In my code i config as like this type:&lt;/p&gt;
&lt;p&gt;const nrf_drv_twi_config_t twi_lm75b_config = {&lt;br /&gt; .scl = ARDUINO_SCL_PIN,&lt;br /&gt; .sda = ARDUINO_SDA_PIN,&lt;br /&gt; .frequency = NRF_DRV_TWI_FREQ_100K,&lt;br /&gt; .interrupt_priority = APP_IRQ_PRIORITY_HIGH,&lt;br /&gt; .clear_bus_init = false&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;ARDUINO SCL PIN and AROUND SDA PIN this pin is define in inbuilt library (pca10040.h) like this:&lt;/p&gt;
&lt;p&gt;#define ARDUINO_SCL_PIN&amp;nbsp; 27 // SCL signal pin&lt;br /&gt;#define ARDUINO_SDA_PIN&amp;nbsp; 26 // SDA signal pin&lt;/p&gt;
&lt;p&gt;I try to define same as below and change pin from 27 to 7 and 26 to 6. and then built program but problem at generation of event like. NRF_DRV_TWI_EVT_DONE: this event is not generate&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/163948?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 12:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eadd5f0a-2978-4967-8527-5df6a67797a3</guid><dc:creator>Sani300</dc:creator><description>&lt;p&gt;You can find pin definition at sdk_config.h or in boards.h -&amp;gt; define of your board like pca10040 or custom board etc...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can i do i2c initialization on any gpio pin ?</title><link>https://devzone.nordicsemi.com/thread/163944?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 12:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64e86243-1854-4894-8cae-0b19c20a9509</guid><dc:creator>awneil</dc:creator><description>[quote userid="75795" url="~/f/nordic-q-a/42139/how-can-i-do-i2c-initialization-on-any-gpio-pin"]I have read data for same at pin P0.27(SCL) and P0.26(SDA). and i successfully got result and i want get same data from different pin.[/quote]
&lt;p&gt;So have you looked at how that code defines the pins to use?&lt;/p&gt;
&lt;p&gt;Change them to the pins you want!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>