<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP Products中的主题 NHS3152 I2C connection problem</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891434#M7181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect a peripheral IC to NHS3152 demo board. I'm using the I2CIO library part and informations provided in&amp;nbsp;&lt;EM&gt;release_mra2_11_2_nhs3152&lt;/EM&gt; SDK. I'm facing the following issue:&lt;BR /&gt;I am not able to select the device via I2C - the address 0xEA should be sent, but on the bus i am observing a different output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="traces.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80977i5F1A5D070B86D30E/image-size/large?v=v2&amp;amp;px=999" role="button" title="traces.png" alt="traces.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The data is recognized as '212' but it should be '234'&lt;BR /&gt;The system runs at 4 MHz, and the I2C is set to 100kHz.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help provided.&lt;BR /&gt;Damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2019 12:35:03 GMT</pubDate>
    <dc:creator>damian_potoczny</dc:creator>
    <dc:date>2019-05-13T12:35:03Z</dc:date>
    <item>
      <title>NHS3152 I2C connection problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891434#M7181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to connect a peripheral IC to NHS3152 demo board. I'm using the I2CIO library part and informations provided in&amp;nbsp;&lt;EM&gt;release_mra2_11_2_nhs3152&lt;/EM&gt; SDK. I'm facing the following issue:&lt;BR /&gt;I am not able to select the device via I2C - the address 0xEA should be sent, but on the bus i am observing a different output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="traces.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80977i5F1A5D070B86D30E/image-size/large?v=v2&amp;amp;px=999" role="button" title="traces.png" alt="traces.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The data is recognized as '212' but it should be '234'&lt;BR /&gt;The system runs at 4 MHz, and the I2C is set to 100kHz.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help provided.&lt;BR /&gt;Damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 12:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891434#M7181</guid>
      <dc:creator>damian_potoczny</dc:creator>
      <dc:date>2019-05-13T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 I2C connection problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891435#M7182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have your application code for a review?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 02:14:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891435#M7182</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-05-17T02:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 I2C connection problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891436#M7183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Kan"&gt;Kan&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the other day i/ve found the anserw myself by reading through the I2C driver library.&lt;/P&gt;&lt;P&gt;It turns out that the lib shifts the inputed address bits by one to the left to make room for the R/W bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int handleMasterXferState(NSS_I2C_T *pI2C, I2C_XFER_T *xfer) {&lt;/P&gt;&lt;P&gt;uint32_t cclr = I2C_CON_FLAGS;&lt;/P&gt;&lt;P&gt;switch (getCurState(pI2C)) {&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;case 0x08: /* Start condition on bus */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;case 0x10: /* Repeated start condition */&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;pI2C-&amp;gt;DAT = (uint32_t)((xfer-&amp;gt;slaveAddr &amp;lt;&amp;lt; 1) | (xfer-&amp;gt;txSz == 0));&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;break;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've been addressing the device with 8 bits ( R/W bit included).&lt;/P&gt;&lt;P&gt;I've corrected that and now it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Damian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 11:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891436#M7183</guid>
      <dc:creator>damian_potoczny</dc:creator>
      <dc:date>2019-05-31T11:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: NHS3152 I2C connection problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891437#M7184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Damian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the update!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 06:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/NHS3152-I2C-connection-problem/m-p/891437#M7184</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2019-06-03T06:03:49Z</dc:date>
    </item>
  </channel>
</rss>

