<?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: EEPROM not working on LPC1788</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1446960#M48522</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt;Yes , I check the Pins and Consistent with dataSheet.&lt;/P&gt;&lt;P&gt;I notice One thing That I2C2 is a&amp;nbsp;peripheral of "APB 1 peripheral group"&lt;/P&gt;&lt;P&gt;Is there is Dependance to use these peripherals .??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;gt;&amp;gt; this function is used to enable clock for ALL 3 i2c.&lt;/P&gt;&lt;P&gt;STATIC INLINE void enableClk(I2C_ID_T id)&lt;BR /&gt;{&lt;BR /&gt;Chip_Clock_EnablePeriphClock(i2c[id].clk);&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 06:07:40 GMT</pubDate>
    <dc:creator>ankitvats</dc:creator>
    <dc:date>2022-04-21T06:07:40Z</dc:date>
    <item>
      <title>EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1442416#M48468</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three peripheral on THREE different I2C0, I2C1,I2C2.&lt;/P&gt;&lt;P&gt;One EEPROM is connected to IC21 and another one on i2C2 with same chip number and Slave address.&lt;/P&gt;&lt;P&gt;Same API are used . but for I2C2 EEPROM " Write/Read Api " get stuck but I2C1 EEPROM works fine ??&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 06:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1442416#M48468</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-12T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1442679#M48470</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; Same API are used . but for I2C2 EEPROM " Write/Read Api " get stuck but I2C1 EEPROM works fine ??&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Impossible to see from your short description.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Take a scope and check the waveform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; One EEPROM is connected to IC21 and another one on i2C2 with same chip number and Slave address.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Most I2C EEPROMs have address pins. For &amp;lt;n&amp;gt; address pins, you can operate 2^n such EEPROM devices on the same bus, provided you set their address pins correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which would be a much more economic solution than separate busses.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 11:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1442679#M48470</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-04-12T11:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1443368#M48480</link>
      <description>&lt;P&gt;Now , Read/Write api for i2c2 EEPROM not getting stuck by Enable Interrupt "I2C2_IRQn".&lt;/P&gt;&lt;P&gt;but the&amp;nbsp;I2CRegRead()&amp;nbsp; / I2CWrite() api return Status is 1 . that mean unable to transmit / receive the data?&lt;/P&gt;&lt;P&gt;what to do next?&lt;/P&gt;&lt;P&gt;Debug are print on&amp;nbsp; this refrence::&lt;/P&gt;&lt;P&gt;* Any of #I2C_STATUS_T values, xfer-&amp;gt;txSz will have number of bytes&lt;BR /&gt;* not sent due to error, xfer-&amp;gt;rxSz will have the number of bytes yet&lt;BR /&gt;* to be received.&lt;/P&gt;&lt;P&gt;screenshot of Read Api output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="read_eeprom.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176769iBD78FBD2F8A9912C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="read_eeprom.JPG" alt="read_eeprom.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; screenshot of Write Api output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="write_eeprom.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176770i7780449F1895526B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="write_eeprom.JPG" alt="write_eeprom.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 11:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1443368#M48480</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-13T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1443471#M48481</link>
      <description>&lt;P&gt;And what do you see on the bus ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 14:17:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1443471#M48481</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-04-13T14:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445115#M48497</link>
      <description>&lt;P&gt;Clock is not comming on SCL pin .&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 13:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445115#M48497</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-18T13:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445709#M48507</link>
      <description>&lt;P&gt;No transition on SDA and SCL line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I able to toggle&amp;nbsp; SDA and SCL pin mux as Gpio.&lt;/P&gt;&lt;P&gt;What to do next ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toggleI2C.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177322i3DFBC6B5A8E92D67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="toggleI2C.JPG" alt="toggleI2C.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Toggling the pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this for I2c muxed&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I2Cpin_mux.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177323i49B82F1A5C47DFC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="I2Cpin_mux.JPG" alt="I2Cpin_mux.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 11:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445709#M48507</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-19T11:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445788#M48509</link>
      <description>&lt;P&gt;I don't have a LPC1788 to try anything.&lt;/P&gt;&lt;P&gt;Did you check the pin initialisation code for the I2C1 and I2C2 pins is correct, and consistent with the datasheet/manual ?&lt;/P&gt;&lt;P&gt;Did you enable the clock to the I2C1 and I2C2 peripherals ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1445788#M48509</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-04-19T12:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1446960#M48522</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;Yes , I check the Pins and Consistent with dataSheet.&lt;/P&gt;&lt;P&gt;I notice One thing That I2C2 is a&amp;nbsp;peripheral of "APB 1 peripheral group"&lt;/P&gt;&lt;P&gt;Is there is Dependance to use these peripherals .??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;gt;&amp;gt; this function is used to enable clock for ALL 3 i2c.&lt;/P&gt;&lt;P&gt;STATIC INLINE void enableClk(I2C_ID_T id)&lt;BR /&gt;{&lt;BR /&gt;Chip_Clock_EnablePeriphClock(i2c[id].clk);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 06:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1446960#M48522</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-21T06:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1447038#M48524</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I notice One thing That I2C2 is a&amp;nbsp;peripheral of "APB 1 peripheral group"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; Is there is Dependance to use these peripherals .??&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Usually, each peripheral bus has it's own RCC register to enable/disable the clock to attached peripherals. And, each bus has it's own clock setup.&lt;/P&gt;&lt;P&gt;As said, I do not have a LPC1788.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; Chip_Clock_EnablePeriphClock(i2c[id].clk);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would check if this routine does enable the proper SYSCON flags, comparing with the MCU datasheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, I would recommend to spend some time studying the datasheet in general.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Almost all IO pins in MCUs are multiplexed. You need not only to configure the GPIO pin and select the appropriate function, but also enable and configure the peripheral unit, which is I2C2 in your case.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is highly specific for the vendor and the MCU family.&amp;nbsp;I had dealt with a PLC546xx, were I2C functionality is provided by the Flexcomm peripherals.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1447038#M48524</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-04-21T08:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM not working on LPC1788</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1449717#M48573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Peripheral EEPROM on I2c 2 bus is working Now.&lt;/P&gt;&lt;P&gt;Enable the peripheral Clock by Adding clk Selection register&amp;nbsp; &amp;nbsp;"LPC_SYSCTL-&amp;gt;PCLKSEL2 |= (1 &amp;lt;&amp;lt; 20);" in the API&amp;nbsp; "Chip_Clock_EnablePeriphClock(i2c[id].clk);"&lt;/P&gt;&lt;P&gt;&amp;nbsp;Note :- __IO uint32_t PCLKSEL2;&amp;nbsp; &amp;nbsp; /*!&amp;lt; Offset: 0x1AC (R/W) Peripheral Clock Selection Register2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;according&amp;nbsp; to manual.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 07:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-not-working-on-LPC1788/m-p/1449717#M48573</guid>
      <dc:creator>ankitvats</dc:creator>
      <dc:date>2022-04-27T07:26:25Z</dc:date>
    </item>
  </channel>
</rss>

