<?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 LPC55S28-EVK b2b I2C communication in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55S28-EVK-b2b-I2C-communication/m-p/1889289#M5822</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm using LPC55S28-EVK configured as slave to receive I2C data coming from master.&lt;/P&gt;&lt;P&gt;I'm using SDK example i2c_interrupt_b2b_transfer_slave.&lt;/P&gt;&lt;P&gt;It works but I don't know how to detect if received data is write or read command.&lt;/P&gt;&lt;P&gt;As you know I2C read or write command depends on the LSB of address. How to tetect it ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 08:19:20 GMT</pubDate>
    <dc:creator>Marconi_</dc:creator>
    <dc:date>2024-06-18T08:19:20Z</dc:date>
    <item>
      <title>LPC55S28-EVK b2b I2C communication</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55S28-EVK-b2b-I2C-communication/m-p/1889289#M5822</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm using LPC55S28-EVK configured as slave to receive I2C data coming from master.&lt;/P&gt;&lt;P&gt;I'm using SDK example i2c_interrupt_b2b_transfer_slave.&lt;/P&gt;&lt;P&gt;It works but I don't know how to detect if received data is write or read command.&lt;/P&gt;&lt;P&gt;As you know I2C read or write command depends on the LSB of address. How to tetect it ?&lt;/P&gt;&lt;P&gt;Thank you very much for your help and cooperation&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 08:19:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55S28-EVK-b2b-I2C-communication/m-p/1889289#M5822</guid>
      <dc:creator>Marconi_</dc:creator>
      <dc:date>2024-06-18T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28-EVK b2b I2C communication</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55S28-EVK-b2b-I2C-communication/m-p/1891259#M5823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232835"&gt;@Marconi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In I2C protocol, the LSB of the address byte is used to determine whether the command is a read or write operation. If the LSB is 0, it's a write operation; if it's 1, it's a read operation.&lt;/P&gt;
&lt;P&gt;When you receive an interrupt indicating that data has been received, you can check the LSB of the address byte to determine whether it's a read or write operation.&lt;/P&gt;
&lt;P&gt;Here's a simple example:&lt;/P&gt;
&lt;P&gt;void I2C0_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;// Address match event occurred&lt;BR /&gt;uint8_t address = I2C0-&amp;gt;ADDR;&lt;/P&gt;
&lt;P&gt;// Check the LSB to determine read (1) or write (0)&lt;BR /&gt;if (address &amp;amp; 0x01)&lt;BR /&gt;{&lt;BR /&gt;// Read command (LSB is 1)&lt;BR /&gt;// Perform actions for read command&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;// Write command (LSB is 0)&lt;BR /&gt;// Perform actions for write command&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Hope this will help you.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Hang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 08:47:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55S28-EVK-b2b-I2C-communication/m-p/1891259#M5823</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2024-06-20T08:47:45Z</dc:date>
    </item>
  </channel>
</rss>

