<?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中的主题 I2C Master Acking after Receive</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Master-Acking-after-Receive/m-p/565218#M17036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by elsingc on Mon Jun 22 05:38:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPC810 with the HMC5883L. I have it all working except the receive part. Whenever I go to receive something, it will read in the data, however, there is always a NACK when I want to stop transmission. I believe this is causing the HMC5883L to then want to resend the old data as I cannot get the updated data. My code flow is below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Load MSTDAT with ((Address &amp;lt;&amp;lt; 1) | 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set CTRL to start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t temp = MSTDAT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set CTRL to stop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its very simple. One thing I noticed is that if I read twice, the first byte read is acked, but the last byte is always nacked. I think I am not stopping it correctly. Does anybody know whats up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:06:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:06:32Z</dc:date>
    <item>
      <title>I2C Master Acking after Receive</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Master-Acking-after-Receive/m-p/565218#M17036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by elsingc on Mon Jun 22 05:38:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the LPC810 with the HMC5883L. I have it all working except the receive part. Whenever I go to receive something, it will read in the data, however, there is always a NACK when I want to stop transmission. I believe this is causing the HMC5883L to then want to resend the old data as I cannot get the updated data. My code flow is below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Load MSTDAT with ((Address &amp;lt;&amp;lt; 1) | 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set CTRL to start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint32_t temp = MSTDAT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set CTRL to stop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its very simple. One thing I noticed is that if I read twice, the first byte read is acked, but the last byte is always nacked. I think I am not stopping it correctly. Does anybody know whats up?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:06:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-Master-Acking-after-Receive/m-p/565218#M17036</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:06:32Z</dc:date>
    </item>
  </channel>
</rss>

