<?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 code conversion help needed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17102/i2c-code-conversion-help-needed</link><description>Hi, 
 I need to read data from MLX90615. It is a temperature sensor which follows I2C to read data. I got a sample code for this which is given below. 
 float receiveTemperature(int Temperature_type) {
	int dev = (0x5B &amp;lt;&amp;lt; 1); // 5B is the device address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Nov 2016 07:54:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17102/i2c-code-conversion-help-needed" /><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65601?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 07:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0030b30-55eb-4cb2-b40d-aff74bb27c6c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;We are always happy to help, and thanks for closing the case :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65602?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 05:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1b5d4fa-7d04-4f94-8ca4-81f2bf52800c</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;I should&amp;#39;ve done that! sorry it&amp;#39;s my bad. Thanks for the support by the way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65599?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 08:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6736465c-a614-4949-a8b4-3b27d9189ee7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;I am glad to see you figured it out eventually :)&lt;/p&gt;
&lt;p&gt;Feel free to accept the answer from AmiguelS, even though the case was technically closed in a different thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65600?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 05:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36b0f0f-c26c-4bd8-ba1f-8e6b336dbebb</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Yes.  &lt;a href="https://devzone.nordicsemi.com/question/99875/bmd300-i2ctwi-not-working/?answer=101313#post-id-101313"&gt;This&lt;/a&gt; is the working code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65598?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 14:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d61963d-6992-407a-a75b-97e05408cd9b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Did you have any luck?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65597?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 12:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1460b0a-b56a-4e10-a75d-68ff9a18ab94</guid><dc:creator>Vishnu Pradeep</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;I appreciate the response.
I gave a try to convert the code. Need to check if it works or not. fingers crossed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C code conversion help needed</title><link>https://devzone.nordicsemi.com/thread/65596?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 17:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eb33e2f-1408-4156-9b26-3ff850a538a1</guid><dc:creator>AmiguelS</dc:creator><description>&lt;p&gt;First off, Nordic devices dont have a I2C module, instead they have a TWI (Two Wire Interface) module, which is not exactly the same as I2C, but close enough that most often you can ignore the differences.&lt;/p&gt;
&lt;p&gt;When using the peripherals (TWI module) you need to decide if you wish to use the &lt;a href="https://developer.nordicsemi.com/"&gt;nRF SDK&lt;/a&gt; and which version. Then you also need to choose if you want to use the HAL (Hadware Abstraction Layer) or the Library. The HAL gives you more control over the module and is very straight forward, while the library implements more functionalities, such as queuing, but requires a bit more of getting used to.&lt;/p&gt;
&lt;p&gt;If you wish to use the SDK, you may find I2C/TWI examples in folder &lt;code&gt;/examples/peripheral/&lt;/code&gt;. There are examples for HAL and for Library.&lt;/p&gt;
&lt;p&gt;Furthermore, the &lt;a href="http:///examples/peripheral"&gt;InfoCenter&lt;/a&gt; is a very good source of documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>