<?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>topic Re: Problem with setting I2C address using KDS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582475#M64576</link>
    <description>I2C puts the read/write bit in the lowest bit, so addresses get shifted to the left. 0x4C * 2 = 0x98.&lt;BR /&gt;&lt;BR /&gt;Some data sheets give the shifted value others give the unshifted value for the device's address. You may really need to enter 0x26 = (0x4C / 2). Always a point of confusion with I2C.</description>
    <pubDate>Fri, 13 Jan 2023 12:57:20 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2023-01-13T12:57:20Z</dc:date>
    <item>
      <title>Problem with setting I2C address using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582217#M64574</link>
      <description>&lt;P&gt;Dear&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to communicate with a temperature IC using the I2C of TRK-KEA8, the slave address of the temperature IC is 0x4C,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the code generated by Components-DGP_LDD can only send 0x98,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried the following three methods but they were all ineffective:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Changing the I2C_LLD setting in Components Inspector to 0x4C or 76, did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johns_chuang_1-1673591665132.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207222iEE98AC76DC47C355/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johns_chuang_1-1673591665132.png" alt="johns_chuang_1-1673591665132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Adding the SelectSlaveDevice instruction in the program, did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johns_chuang_2-1673591690384.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207223i25DE9DB17FC135D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johns_chuang_2-1673591690384.png" alt="johns_chuang_2-1673591690384.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Directly modifying the values inside CI2C1_Init() initialization, did not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johns_chuang_3-1673591714196.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207224iC4BD0444C0A492C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johns_chuang_3-1673591714196.png" alt="johns_chuang_3-1673591714196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Are there any other methods or have I misunderstood or missed anything?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 06:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582217#M64574</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2023-01-13T06:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with setting I2C address using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582475#M64576</link>
      <description>I2C puts the read/write bit in the lowest bit, so addresses get shifted to the left. 0x4C * 2 = 0x98.&lt;BR /&gt;&lt;BR /&gt;Some data sheets give the shifted value others give the unshifted value for the device's address. You may really need to enter 0x26 = (0x4C / 2). Always a point of confusion with I2C.</description>
      <pubDate>Fri, 13 Jan 2023 12:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582475#M64576</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2023-01-13T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with setting I2C address using KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582801#M64581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Bobpaddock&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for the detailed explanation, it is very helpful to me. Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 01:27:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-setting-I2C-address-using-KDS/m-p/1582801#M64581</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2023-01-16T01:27:30Z</dc:date>
    </item>
  </channel>
</rss>

