<?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 Re: Write/Read 24AA00 E2PROM with LPC1114 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923221#M36806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the file. I´ll take a look into it, and see if I can integrate it into my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I think it would be better (maybe easier) to use a LPC with internal EEPROM, like LPC11A14... :smileyhappy:, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2019 00:33:52 GMT</pubDate>
    <dc:creator>thiagorodrigues</dc:creator>
    <dc:date>2019-10-03T00:33:52Z</dc:date>
    <item>
      <title>Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923219#M36804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve been trying to read/write a small EEPROM memory via I2C functions as attached, but it does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my code I call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static uint8_t bufeprom[2];&lt;/P&gt;&lt;P&gt;static uint8_t bufeprom1[2];&lt;/P&gt;&lt;P&gt;static uint8_t bufread1[1];&lt;/P&gt;&lt;P&gt;static uint8_t bufread2[1];&lt;/P&gt;&lt;P&gt;I2C_Init(I2CMASTER, 0, 0, 0);&lt;/P&gt;&lt;P&gt;I2C_Read(0xA0, bufread1, 1);&lt;/P&gt;&lt;P&gt;//read EEPROM&lt;/P&gt;&lt;P&gt;I2C_Read(0xA0, bufread2, 1);&lt;/P&gt;&lt;P&gt;/////////////////////&lt;/P&gt;&lt;P&gt;bufeprom[0] = 0x01;&lt;/P&gt;&lt;P&gt;bufeprom[1] = 0x10;&lt;/P&gt;&lt;P&gt;bufeprom1[0] = 0x02;&lt;/P&gt;&lt;P&gt;bufeprom1[1] = 0x10;&lt;/P&gt;&lt;P&gt;I2C_Write(0xA0, bufeprom, 2);&lt;/P&gt;&lt;P&gt;I2C_Write(0xA0, bufeprom1, 2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the I2C_Init, I send two read commands to read 1 byte each, since the memory address is incremented automatically by the 24AA.&lt;/P&gt;&lt;P&gt;The write procedure has two parameters, the address and the data to be written, so two comands are sent for two bytes (addresses 0x01 and 0x02).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´ve tried a lot of things and nothing. And yes, the 24AA has pull-up resistors on the SDA and SCL lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has experience with LPC and E2PROM memories?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2019 23:17:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923219#M36804</guid>
      <dc:creator>thiagorodrigues</dc:creator>
      <dc:date>2019-09-27T23:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923220#M36805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="292825" data-username="thiagorodrigues" href="https://community.nxp.com/people/thiagorodrigues"&gt;Thiago rodrigues&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and&lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Firstly, I'd like to suggest you use the Logic analyzer or to visualize the signal of the I2C transmit, it will help you figure the issue efficiently,&lt;BR /&gt;Secondly, I've attached an I2C demo project, please refer to it for details.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2019 02:41:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923220#M36805</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-09-30T02:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923221#M36806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the file. I´ll take a look into it, and see if I can integrate it into my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I think it would be better (maybe easier) to use a LPC with internal EEPROM, like LPC11A14... :smileyhappy:, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 00:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923221#M36806</guid>
      <dc:creator>thiagorodrigues</dc:creator>
      <dc:date>2019-10-03T00:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923222#M36807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;think&lt;/EM&gt; this is the problem:&lt;/P&gt;&lt;P&gt;We tend to think of the control byte as being 0xA0 (or 0xA1 for a read) because the lsb indicates read or write, but the LPC I2C module thinks of it as a 7-bit address, ignoring the lsb, so should you actually be specifying the address as 0x50?&lt;/P&gt;&lt;P&gt;It caught me out when I first tried it (but as Jeremy suggested, I found the problem with the oscilloscope)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 21:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923222#M36807</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2019-10-03T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923223#M36808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That´s interesting, because this was the first address I used when started modifying the code to work with the E2PROM. Since it didn´t work, I switched to 0xA0, but it totally makes sense (I agree with you, by LSB is not part of the address by the I2C standard). After that, I made a lot of other modifications on the code, so maybe the 0x50 address wasn´t the problem after all. I´m gonna give it another try. Although I´ve seen some code to read/write to the same E2PROM using other microcontrollers where the address 0xA0 is being used... strange.&lt;/P&gt;&lt;P&gt;Another thing that I don´t see in the original code is the NACK after reading the byte. This is mandatory for reading functions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 03:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923223#M36808</guid>
      <dc:creator>thiagorodrigues</dc:creator>
      <dc:date>2019-10-04T03:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923224#M36809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, some updates:&lt;/P&gt;&lt;P&gt;I used an AVR (have more experience with that family) to read/write the E2PROM on the LPC board. It is working. I was able to read/write. It works with both addresses (0x50 and 0xA0).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, there must be a problem with the LPC I2C code... because I tried to write to the memory with LPC and read with the AVR, and nothing was written.&lt;/P&gt;&lt;P&gt;Have to keep working :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Oct 2019 21:05:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923224#M36809</guid>
      <dc:creator>thiagorodrigues</dc:creator>
      <dc:date>2019-10-05T21:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923225#M36810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I knew I'd had the I2C working on an LPC11, but it's taken be until now to remember why I wrote it.&lt;/P&gt;&lt;P&gt;It must have caused me some trouble at the time, because it looks like I broke it up into very small pieces to test.&lt;/P&gt;&lt;P&gt;It runs a DS1338 real-time clock, but it's the same as reading the small (&amp;lt;256 byte) eeproms. Here's the code I used. It doesn't look like the best possible code, because it doesn't check that the I2C has gone into the correct state, but it obviously worked.&lt;/P&gt;&lt;P&gt;It beggars belief that using the I2C has to be so complicated. It takes more software overhead than the CANBUS.&lt;/P&gt;&lt;P&gt;I mean, NXP invented I2C (back when they were Philips) so why do all their competitors have an easier-to-use interface?&lt;/P&gt;&lt;P&gt;The LPC8 and LPC15 have a slightly different but just as complicated interface and the software is not interchangeable with the LPC11 and LPC13.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ Set up I2C&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R2,#150&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;STR R2,[R3,SCLH]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// clock high time&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;STR R2,[R3,SCLL] &amp;nbsp;// clock low time&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;@ set up real time clock&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL read_rtc&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;// This section writes 0b00010000 to address 7 of the RTC which has a slave address of 0xD0&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;// (or 0x68 followed by the R/W bit).&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R0,#0b11010000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2csta&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;MOVS R0,#0x7&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cwrite&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;MOVS R0,#0b00010000&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ enable 1Hz output&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cwrite&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cstp&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #4e9072;"&gt;@-------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;// this section write zero to the address register of the RTC&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;LDR R4,=rtc_data&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;@ address to save time and date in RAM&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R0,#0b11010000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2csta&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;MOVS R0,#0x0&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cwrite&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;// then reads 9 byte from the RTC and store them in memory.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R0,#0b11010001&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ read bytes from RTC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2crsta&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ and store in RAM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,minutes]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,hours]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,#3]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,date]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,month]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,year]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cread&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,#7]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2crna&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STRB R0,[R4,rf_channel]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;BL i2cstp&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;POP {R4,PC}&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@ &lt;SPAN class=""&gt; &lt;/SPAN&gt;I2C routines&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2csta:&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ START&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b01100000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R1,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitsta:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R2,[R3,CONSET] &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ wait for interrupt flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitsta&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R0,[R3,DAT]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b101000&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ and clear it and clear STA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitsta2:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R2,[R3,CONSET] &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ wait for interrupt flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitsta2&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2crsta:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ RESTART&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b01100000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R1,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitrsta:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R2,[R3,CONSET] &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ wait for interrupt flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitrsta&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R0,[R3,DAT]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b101000&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ and clear it and clear STA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitrsta2:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R2,[R3,CONSET] &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ wait for interrupt flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitrsta2&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;.ltorg&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2cstp:&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ STOP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b01010000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R2,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2cwrite:&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ WRITE&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R0,[R3,DAT]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R1,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitwr:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitwr&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2cread:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt; &lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ READ&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;MOVS R2,#0b100&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R2,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitrd:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitrd&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R0,[R3,DAT]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;P style="color: #4e9072; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;@-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;i2crna:&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R3,=LPC_I2C_BASE&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4e9072;"&gt;@ read with no acknowledge&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R2,#0b100&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;MOVS R2,#0b1000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;STR R2,[R3,CONCLR]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #931a68;"&gt;waitrn:&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;LDR R2,[R3,CONSET]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TST R2,R1&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BEQ waitrn&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;LDR R0,[R3,DAT]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;BX LR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 19:14:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923225#M36810</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2019-10-08T19:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923226#M36811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is some nice code :smileyhappy:&amp;nbsp;I´ll check it out.&lt;/P&gt;&lt;P&gt;I agree with you about the I2C issues... many years ago I was working a lot with I2C to program digital TV tuners, back in the day it wasn´t so weird... the problem, I think, is the tools available for the different MCUs. Some families (even from different manufacturers) have much better compilers with lots of ready to use libraries, and some others are not that great... like I mentioned, when I used the AVR, in less than 2 minutes I had the code working on the first try. I´m currently using the IAR Embedded for the LPC, but I´m gonna give the KEIL a try... but not very excited about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 02:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923226#M36811</guid>
      <dc:creator>thiagorodrigues</dc:creator>
      <dc:date>2019-10-09T02:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Write/Read 24AA00 E2PROM with LPC1114</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923227#M36812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Perhaps I should add a check that the slave has actually responded! (But what should it do if there is no ACK?) I have already assumed single master (so no ability to cope with data collisions).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never thought much of the available drivers, and generally end up writing a much more concise version in assembler. GPIO drivers are the worst - taking dozens of lines of code to do what assembler can do in two instructions.&lt;/P&gt;&lt;P&gt;With NXP it is the documentation that goes with the drivers that really lets them down. Example code is of little use without an explanation of what it does and why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 11:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Write-Read-24AA00-E2PROM-with-LPC1114/m-p/923227#M36812</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2019-10-09T11:10:53Z</dc:date>
    </item>
  </channel>
</rss>

