<?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>TWI SDA check for NACK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29797/twi-sda-check-for-nack</link><description>Hello,
I want to use at the nRF52832 a temperature sensor TMP108 and an EEPROM via TWI bus which are connected to Pin 5 (SDA) and Pin 6 (SCL). I made a lot of time until understanding that at the declaration of the sensor using nrf_drv_twi_config_t </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Sep 2017 16:00:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29797/twi-sda-check-for-nack" /><item><title>RE: TWI SDA check for NACK</title><link>https://devzone.nordicsemi.com/thread/118232?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 16:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5843c729-1c6e-4bbf-91b9-ffeb29f016d4</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;You are right Martin: the EEPROM address is 0xA0/1 - only the ECAD designer who designed the electronics in Altium was obviously reading 0x10 at my schematics paperwork and didn&amp;#39;t discover that it is an &amp;#39;A&amp;#39; and not a &amp;#39;1&amp;#39;...
Now I know that the EEPROM can be read and written; unfortunately not the TMP108; I have to check this now....Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI SDA check for NACK</title><link>https://devzone.nordicsemi.com/thread/118233?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 15:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6493cb4b-c33e-4630-bc34-5910ec5b0a83</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;What is the serial number of the EEPROM? My bet is that it is the EEPROM that answers. 50h is not one of the possible addresses of the TMP108. 0xA0 is an 8 bit number and is probably not what you should refer to in the documents or code. &lt;a href="https://devzone.nordicsemi.com/question/71861/twi-starting/"&gt;Please have a look at this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI SDA check for NACK</title><link>https://devzone.nordicsemi.com/thread/118231?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 07:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447da87f-2da7-4e0c-ba98-0b4ac5a1a1b0</guid><dc:creator>matthk</dc:creator><description>&lt;p&gt;Hi Martin,
I have a good and a bad news:
The good one: Scanning did work.
The bad one: Only one device was found, at that at the address 80d = 50h; also at the oscilloscope I see the ACK when sending to 50h which would mean an I²C address of 0xA0/1 instead of 0x90/1.
Actually I try to find out if the device is the TMP108 or the EEPROM...&lt;/p&gt;
&lt;p&gt;Do you have any idea how this is possible?
I tried it already with another electronics (same type), but same behavior - strange...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI SDA check for NACK</title><link>https://devzone.nordicsemi.com/thread/118234?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 13:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a835fd77-5d58-4d6e-b3a8-3ee36056639f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you use the TWI drivers from Nordic you should use address 0x48 to 0x4B for the TMP108, dependent on your A0 pin configuration. From the TMP108 datasheet:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7652.address.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t need to left shift this address or add any TWI read/write bits at the end. That is all handled in the nRF52 hardware.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll advise you to try the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/twi_scanner_example.html?cp=4_0_0_4_5_36"&gt;TWI Scanner Example&lt;/a&gt;. This example will scan all possible TWI addresses and give you an output if a slave device is answering. If a slave responds, then the returned address is the address you should use throughout your code. If no devices respond then you have a TWI driver configuration issue or an external hardware issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>