<?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中的主题 MCB4300 board's EEPROM slave i2c address</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576351#M19419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Mon Nov 24 18:05:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm working on the Keil MCB4300 (LPC4357) board which has an EEPROM: a Microchip 24LC128. The data sheet states its I2C slave address should be 0xA2. (1010 for control code, and bit A0 is hardwired to high, according to board schematic). The LPCOpen project periph_i2c's i2c.c defines the the slave address as 0x5A instead. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i2c.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line 69: #define I2C_SLAVE_EEPROM_ADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x5A&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is the project wrong, or did I interpret the datasheet incorrectly? The project hangs for me, so I'm wondering if this is the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:01:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:01:40Z</dc:date>
    <item>
      <title>MCB4300 board's EEPROM slave i2c address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576351#M19419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Mon Nov 24 18:05:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm working on the Keil MCB4300 (LPC4357) board which has an EEPROM: a Microchip 24LC128. The data sheet states its I2C slave address should be 0xA2. (1010 for control code, and bit A0 is hardwired to high, according to board schematic). The LPCOpen project periph_i2c's i2c.c defines the the slave address as 0x5A instead. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i2c.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line 69: #define I2C_SLAVE_EEPROM_ADDR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x5A&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is the project wrong, or did I interpret the datasheet incorrectly? The project hangs for me, so I'm wondering if this is the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576351#M19419</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: MCB4300 board's EEPROM slave i2c address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576352#M19420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Nov 24 18:24:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like the usual 7bit / 8bit address&amp;nbsp; confusion&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.totalphase.com%2Fsupport%2Farticles%2F200349176-7-bit-8-bit-and-10-bit-I2C-Slave-Addressing" rel="nofollow" target="_blank"&gt;http://www.totalphase.com/support/articles/200349176-7-bit-8-bit-and-10-bit-I2C-Slave-Addressing&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576352#M19420</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: MCB4300 board's EEPROM slave i2c address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576353#M19421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Wed Nov 26 10:35:56 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. I am still confused about the last digit. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The schematic shows that 24LC128's inputs A0 is hardwired to high, and the A1 and A2 are low. So, I believe we need to access A0 for the I2C slave address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 24LC128 datasheet says to address A0, we need to send:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2_10100010 (0xA2) in 8-bit addressing &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or as R2D2 suggested,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2_01010001 (0x51) in 7-bit addressing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, i2c.c defines&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;line 69: #define I2C_SLAVE_EEPROM_ADDR 0x5A&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know why its 0x5A? Perhaps I am misinterpreting the datasheet?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:01:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576353#M19421</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: MCB4300 board's EEPROM slave i2c address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576354#M19422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Nov 26 10:58:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: grtester&lt;/STRONG&gt;&lt;BR /&gt;Perhaps I am misinterpreting the datasheet?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look in your I2C routines, you should find there a shifting of the 7-bit address to generate the first byte.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/* Write Address and RW bit to data register */
Chip_I2CM_WriteByte(pI2C, (xfer-&amp;gt;slaveAddr [color=#f00]&amp;lt;&amp;lt; 1[/color]) | (xfer-&amp;gt;txSz == 0));
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, if your address is correct, I2C should work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be a good idea to check EEPROM wiring of your board. Perhaps the schematic is wrong....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576354#M19422</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: MCB4300 board's EEPROM slave i2c address</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576355#M19423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by grtester on Fri Nov 28 16:25:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your response!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MCB4300-board-s-EEPROM-slave-i2c-address/m-p/576355#M19423</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:01:42Z</dc:date>
    </item>
  </channel>
</rss>

