<?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: LPC11C24   i2c</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-i2c/m-p/673775#M26967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VN V,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't have the LPC11C24 I2C code for AT24C16 directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But we have some I2C code for PCF8594, I think you can refer to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please download the code from this link:&lt;/P&gt;&lt;P&gt;1. MDK&amp;nbsp; project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-keils-mdk-arm" title="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-keils-mdk-arm"&gt;Sample Code Bundle for LPC11xx Peripherals using Keil's MDK-ARM | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LPCxpresso IDE project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso" title="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso"&gt;Sample Code Bundle for LPC11xx Peripherals using NXP LPCXpresso | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please download the code, and refer to lpc11xx.keil-examples-CMSIS-update_2\lpc11xx.keil-examples-CMSIS-update\ADC&lt;/P&gt;&lt;P&gt;There has the I2C write and read code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 08:13:18 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-05-12T08:13:18Z</dc:date>
    <item>
      <title>LPC11C24   i2c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-i2c/m-p/673774#M26966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I use the LPC11C24 i2c and AT24C16 communication,I am using NXP official example.as follew:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Master tx only */&lt;BR /&gt;int Chip_I2C_MasterSend(I2C_ID_T id, uint8_t slaveAddr, const uint8_t *buff, uint8_t len)&lt;BR /&gt;{&lt;BR /&gt; I2C_XFER_T xfer = {0};&lt;BR /&gt; xfer.slaveAddr = slaveAddr;&lt;BR /&gt; xfer.txBuff = buff;&lt;BR /&gt; xfer.txSz = len;&lt;BR /&gt; while (Chip_I2C_MasterTransfer(id, &amp;amp;xfer) == I2C_STATUS_ARBLOST) {}&lt;BR /&gt; return len - xfer.txSz;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Sequential master read */&lt;BR /&gt;int Chip_I2C_MasterRead(I2C_ID_T id, uint8_t slaveAddr, uint8_t *buff, int len)&lt;BR /&gt;{&lt;BR /&gt; I2C_XFER_T xfer = {0};&lt;BR /&gt; xfer.slaveAddr = slaveAddr;&lt;BR /&gt; xfer.rxBuff = buff;&lt;BR /&gt; xfer.rxSz = len;&lt;BR /&gt; while (Chip_I2C_MasterTransfer(id, &amp;amp;xfer) == I2C_STATUS_ARBLOST) {}&lt;BR /&gt; return len - xfer.rxSz;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This wrapper function is not provided from the slave device register address,Only the slave hardware address is provided（&lt;SPAN&gt;uint8_t slaveAddr,&lt;/SPAN&gt;）,Causing read and write errors.&amp;nbsp;How can I do the right to read and write？I do not know how to control the register address.Who can give me some advice？&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Who can give me some examples of reading and writing？&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 07:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-i2c/m-p/673774#M26966</guid>
      <dc:creator>vnv</dc:creator>
      <dc:date>2017-05-10T07:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24   i2c</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-i2c/m-p/673775#M26967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VN V,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I don't have the LPC11C24 I2C code for AT24C16 directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But we have some I2C code for PCF8594, I think you can refer to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please download the code from this link:&lt;/P&gt;&lt;P&gt;1. MDK&amp;nbsp; project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-keils-mdk-arm" title="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-keils-mdk-arm"&gt;Sample Code Bundle for LPC11xx Peripherals using Keil's MDK-ARM | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LPCxpresso IDE project&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso" title="https://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11xx-peripherals-using-nxp-lpcxpresso"&gt;Sample Code Bundle for LPC11xx Peripherals using NXP LPCXpresso | www.LPCware.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please download the code, and refer to lpc11xx.keil-examples-CMSIS-update_2\lpc11xx.keil-examples-CMSIS-update\ADC&lt;/P&gt;&lt;P&gt;There has the I2C write and read code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 08:13:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11C24-i2c/m-p/673775#M26967</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-05-12T08:13:18Z</dc:date>
    </item>
  </channel>
</rss>

