<?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: I2C with EEPROM is not working in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811518#M5316</link>
    <description>&lt;P&gt;Hi Alex,&lt;BR /&gt;I do send the slave address using the function I2C_MasterTrasferData(I2C, &amp;amp;trasnfer_M_Cnf, I2C_TRASFER_POOLING);&amp;nbsp;&lt;BR /&gt;when the struct of trasnfer_M_Cnf is with the slave address of 0xA0.&lt;BR /&gt;when I debug&amp;nbsp;I2C_MasterTrasferData function under lpc17xx_i2c.c in line 825 when the function is calling to I2C_SendByte the CodeStatus I receive is always 0x20.&lt;/P&gt;&lt;P&gt;I'm trying to understand, why when I'm tying to send byte to slave I can't do it and receive the CodeStatus 0x20.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 06:42:02 GMT</pubDate>
    <dc:creator>Guy_mego</dc:creator>
    <dc:date>2024-02-20T06:42:02Z</dc:date>
    <item>
      <title>I2C with EEPROM is not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1810372#M5311</link>
      <description>&lt;P&gt;Hi fellows,&lt;BR /&gt;&lt;BR /&gt;I'm using LPC1765 MCU, I have an external&amp;nbsp;AT24C16 EEPROM. I configure an I2C that can write and read data from the EEPROM. The issue is that when I'm trying to write data or read the first thing that I need to do is to write data with the slave address, and the CMSIS is implemented with bitwise of &amp;lt;&amp;lt;1 to the slave address.&lt;/P&gt;&lt;P&gt;On my board the SCL in on (0,28) port and the SDA on (,27) port.&lt;BR /&gt;&lt;BR /&gt;Can anyone can clarify how to solve this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 08:52:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1810372#M5311</guid>
      <dc:creator>Guy_mego</dc:creator>
      <dc:date>2024-02-18T08:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with EEPROM is not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811456#M5315</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205229"&gt;@Guy_mego&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;According to your description, do you want to write or read data without first writing the slave address? This problem is unavoidable because the I2C protocol stipulates that read or write data must be written to the slave address first after the start signal. Read or write slave addresses can be defined by themselves:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;// Assume that the address of the EEPROM is 0xA0
uint8_t eeprom_write_address = 0xA0 &amp;lt;&amp;lt; 1; // Write operation address
uint8_t eeprom_read_address = (0xA0 &amp;lt;&amp;lt; 1) | 0x01; // Read operation address&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If my understanding is wrong, please tell me more details.&lt;/P&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 05:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811456#M5315</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-02-20T05:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with EEPROM is not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811518#M5316</link>
      <description>&lt;P&gt;Hi Alex,&lt;BR /&gt;I do send the slave address using the function I2C_MasterTrasferData(I2C, &amp;amp;trasnfer_M_Cnf, I2C_TRASFER_POOLING);&amp;nbsp;&lt;BR /&gt;when the struct of trasnfer_M_Cnf is with the slave address of 0xA0.&lt;BR /&gt;when I debug&amp;nbsp;I2C_MasterTrasferData function under lpc17xx_i2c.c in line 825 when the function is calling to I2C_SendByte the CodeStatus I receive is always 0x20.&lt;/P&gt;&lt;P&gt;I'm trying to understand, why when I'm tying to send byte to slave I can't do it and receive the CodeStatus 0x20.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 06:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811518#M5316</guid>
      <dc:creator>Guy_mego</dc:creator>
      <dc:date>2024-02-20T06:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with EEPROM is not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811645#M5317</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205229"&gt;@Guy_mego&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;I can't find the function "I2C_MasterTrasferData(I2C, &amp;amp;trasnfer_M_Cnf, I2C_TRASFER_POOLING)". What library do you use? I'm using the library functions in LPCopen. See the picture below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex_Wang_0-1708417631050.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/263942i0E77F56BB0BBF991/image-size/large?v=v2&amp;amp;px=999" role="button" title="Alex_Wang_0-1708417631050.png" alt="Alex_Wang_0-1708417631050.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; According to your description, using&amp;nbsp;the I2C_MasterTrasferData(I2C, &amp;amp;trasnfer_M_Cnf, I2C_TRASFER_POOLING) function always returns 0x20, while using I2C_SendByte does not return 0x20? If it is convenient, please send me your project.&lt;/P&gt;
&lt;P&gt;Best regards, Alex&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811645#M5317</guid>
      <dc:creator>Alex_Wang</dc:creator>
      <dc:date>2024-02-20T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: I2C with EEPROM is not working</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811662#M5318</link>
      <description>&lt;P&gt;Hi Alex,&lt;BR /&gt;&lt;BR /&gt;I solved the problem.&lt;BR /&gt;Per the datasheet of the EEPROM it was not clear the that 0xA0 is the slave address after shifting 1 bit left, and I thought it is before this is the reason I got the 0x20 on the code status.&lt;BR /&gt;&lt;BR /&gt;Anyway thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:42:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/I2C-with-EEPROM-is-not-working/m-p/1811662#M5318</guid>
      <dc:creator>Guy_mego</dc:creator>
      <dc:date>2024-02-20T08:42:38Z</dc:date>
    </item>
  </channel>
</rss>

