<?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>LPC MicrocontrollersのトピックRe: LPC2388 I2C communication issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-I2C-communication-issue/m-p/1769432#M54889</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Because the data packet is from VL53l1x sensor, pls check the data sheet of VL53l1x sensor.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 03:18:19 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-12-06T03:18:19Z</dc:date>
    <item>
      <title>LPC2388 I2C communication issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-I2C-communication-issue/m-p/1769263#M54883</link>
      <description>&lt;P&gt;Hello All I am trying to send some data out over I2C and am running into an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I am trying to get a&amp;nbsp;Model_ID from a VL53l1x sensor this part has a base address of 52, and the index for model ID is 0X010F. Currently when scoping the SLA SDA lines my I2C write is in the form Address 29 write bit set (so this is correct) however my data packet is in the form D2 01 0F and I have no idea where the D2 is coming from or how to remove it. Here is the code I am using to set the I2CMasterBuffer and the rest is taken care of in LPC23x8I2C&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; if((ReserveI2C()) == OK)&amp;nbsp; /* First we need access to the i2c bus.&amp;nbsp; &amp;nbsp;*/&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CWriteLength = 3;&amp;nbsp; &amp;nbsp;// 3 bytes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CMasterBuffer[0] = VL53l1_I2C_Write_ADDRESS;&amp;nbsp; /* 0x52 */&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CMasterBuffer[1] = Version_address; //0x01&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CMasterBuffer[2] = ID_address; //0x0F&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CMasterBuffer[3] = VL53l1_I2C_Read_ADDRESS; //0x53&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CReadLength = 2; /* The size of the part so the address pointer always returns where it started. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; stat = I2CEngine(3); ;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; os_dly_wait(7);&amp;nbsp; &amp;nbsp; &amp;nbsp;/* WriteCycle &amp;gt;= TIME_5mS */&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ReleaseI2C();&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I2CMasterBuffer[4]=data;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return data;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 20:19:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-I2C-communication-issue/m-p/1769263#M54883</guid>
      <dc:creator>Brettjohnson71</dc:creator>
      <dc:date>2023-12-05T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2388 I2C communication issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-I2C-communication-issue/m-p/1769432#M54889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Because the data packet is from VL53l1x sensor, pls check the data sheet of VL53l1x sensor.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 03:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2388-I2C-communication-issue/m-p/1769432#M54889</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-12-06T03:18:19Z</dc:date>
    </item>
  </channel>
</rss>

