<?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 LPC824 I2C master not receiving two bytes in a row in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-I2C-master-not-receiving-two-bytes-in-a-row/m-p/1659831#M52795</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to use the LPC824 I2C in master mode to receive two bytes consecutively.&lt;/P&gt;&lt;P&gt;It all works correctly until the LPC824 (the master) receives the first byte (LPC send slave address and the slave acknowledges, the LPC send the register address to be read and the slave ack and then the slave sends the first byte). Then if the master had sent an ACK the slave would have sent the next byte but the LPC824 is not sending the ACK and everything stops.&lt;/P&gt;&lt;P&gt;What should I do to make the LPC824 to send an ACK after receiving the first byte?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the waveforms I have seen that when the master is receiving the first byte, it only produces 8 clock pulses, so it is missing the clock pulse for the ACK bit.&lt;/P&gt;&lt;P&gt;Green: slave register address acknoledged&lt;/P&gt;&lt;P&gt;gray: first byte (with the missing ack from the master)&lt;/P&gt;&lt;P&gt;yellow: master sends NACK and a stop after a while&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1685441407584.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225406i9FF0DB26DF366A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1685441407584.png" alt="tomato_0-1685441407584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know what I could do to solve this issue?&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 10:16:31 GMT</pubDate>
    <dc:creator>tomato</dc:creator>
    <dc:date>2023-05-30T10:16:31Z</dc:date>
    <item>
      <title>LPC824 I2C master not receiving two bytes in a row</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-I2C-master-not-receiving-two-bytes-in-a-row/m-p/1659831#M52795</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to use the LPC824 I2C in master mode to receive two bytes consecutively.&lt;/P&gt;&lt;P&gt;It all works correctly until the LPC824 (the master) receives the first byte (LPC send slave address and the slave acknowledges, the LPC send the register address to be read and the slave ack and then the slave sends the first byte). Then if the master had sent an ACK the slave would have sent the next byte but the LPC824 is not sending the ACK and everything stops.&lt;/P&gt;&lt;P&gt;What should I do to make the LPC824 to send an ACK after receiving the first byte?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the waveforms I have seen that when the master is receiving the first byte, it only produces 8 clock pulses, so it is missing the clock pulse for the ACK bit.&lt;/P&gt;&lt;P&gt;Green: slave register address acknoledged&lt;/P&gt;&lt;P&gt;gray: first byte (with the missing ack from the master)&lt;/P&gt;&lt;P&gt;yellow: master sends NACK and a stop after a while&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1685441407584.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225406i9FF0DB26DF366A2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1685441407584.png" alt="tomato_0-1685441407584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know what I could do to solve this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 10:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-I2C-master-not-receiving-two-bytes-in-a-row/m-p/1659831#M52795</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2023-05-30T10:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 I2C master not receiving two bytes in a row</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-I2C-master-not-receiving-two-bytes-in-a-row/m-p/1662248#M52833</link>
      <description>&lt;P&gt;We have i2c examples in the SDK with the master and slave function, when you run these examples on the two boards, does the same thing happen?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 01:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-I2C-master-not-receiving-two-bytes-in-a-row/m-p/1662248#M52833</guid>
      <dc:creator>CarlosGarabito</dc:creator>
      <dc:date>2023-06-02T01:33:33Z</dc:date>
    </item>
  </channel>
</rss>

