<?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 to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23277/how-to-specifically-initialize-the-i2c-pin-on-nrf52832</link><description>when trying to initialize the nrf52...little bit confused how to specifically address a pin for i2c....can anyone help me with a piece of code.
Thank you in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2019 11:19:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23277/how-to-specifically-initialize-the-i2c-pin-on-nrf52832" /><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/204722?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 11:19:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f48d6621-0b2e-47b3-9e23-30250c13348f</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;yes..m just trying to read revision id register (0x81)...it is supposed to return 21..i am new to twi &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/vcnl4020_5F00_main.c"&gt;devzone.nordicsemi.com/.../vcnl4020_5F00_main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this is what i am doing...the code is getting stuch at &amp;quot;&amp;nbsp;while(m_xfer_done==false);&amp;quot;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1566213413375v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;t = nrf_drv_twi_is_busy(&amp;amp;m_twi);&amp;nbsp; &amp;nbsp;function returns true indicating that it is busy..why is nrf52832 is busy reading register... i am not understanding...will you help..&lt;/p&gt;
&lt;p&gt;thank you for your reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/204438?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 09:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbb0bc99-940c-4eb4-b781-c8f2f8d2fc07</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;TWI sensor example should work fine, but you need to modify it to read and write the correct registers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/204430?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 09:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:558526b7-22a3-479f-945b-8d49b3632724</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;i am using vcnl4020 sensor and want to interface it to nrf52832 DK...which of above example would be more appropriate for this...m just&amp;nbsp; trying to read sensor.....i was using twi_sensor eample for this....&lt;/p&gt;
&lt;p&gt;i am using nrf52832 SDK 15.3&lt;/p&gt;
&lt;p&gt;than you..your answer would be great help to me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/91529?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 18:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2acd81af-a352-4282-b7bd-ec91e2432e11</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thank you, Jorgen for help....!
I&amp;#39;ll take a look&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/91528?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 18:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2940885e-50d3-470f-b74f-26293d2a1946</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you want to setup the peripheral on the register-level, you need to look in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/chips/nrf52832_ps.html?cp=2_1_0"&gt;nRF52832 product specifications&lt;/a&gt;. There are both &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twi.html?cp=2_1_0_48#concept_rhy_rzp_sr"&gt;legacy TWI&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twim.html?cp=2_1_0_32#concept_scx_f5p_xr"&gt;TWIM with EasyDMA support&lt;/a&gt; in the nRF52832. &lt;a href="https://github.com/andenore/NordicSnippets/tree/master/examples/i2c_master"&gt;This example on GitHub&lt;/a&gt; show setup of TWIM peripheral using registers only.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/91527?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 18:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d23ccca6-da0f-497a-ac40-a9ae780d78ba</guid><dc:creator>vishal</dc:creator><description>&lt;p&gt;Thank you for your reply,
But I still don&amp;#39;t understand how to initialize the pins. My question is, how to initialize the particular pin for i2c these above programs are predefined. Plz advise&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to specifically initialize the I2C pin on NRF52832?</title><link>https://devzone.nordicsemi.com/thread/91526?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 09:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58c44837-d440-4b25-9b34-a4cd5ae69813</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are multiple TWI (I2C-compatible) examples in our SDK:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/twi_scanner_example.html?cp=4_0_0_4_5_35"&gt;TWI Scanner
Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/twi_sensor_example.html?cp=4_0_0_4_5_36"&gt;TWI Sensor
Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/twi_transaction_mgr_example.html?cp=4_0_0_4_5_37"&gt;TWI Transaction Manager
Example&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.1.0/twi_master_with_twis_slave_example.html?cp=4_0_0_4_5_38"&gt;TWIS Slave and TWI Master mode
drivers
Example&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>