<?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: Inconsistencies in NXP LPC documents in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569543#M19748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Thu Feb 24 07:31:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello gbm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the remarks ... we will look at it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:21:36 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:21:36Z</dc:date>
    <item>
      <title>Inconsistencies in NXP LPC documents</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569542#M19747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Thu Feb 24 05:57:03 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I got some new LPC-related documents from NXP website and while reading them I found the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AN11008 - no code samples are published, but the text says that IAP calls are used to write 16-byte records to Flash. The description of IAP routines found in User Manuals for LPC1xxx series states that the minimum allowed size for Flash Write is 256 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10441 - there must be something terribly wrong with division routines contained in Flash, as the example 23.4.3 says that dividing -99 by 6 yields the result value 24. :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:21:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569542#M19747</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistencies in NXP LPC documents</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569543#M19748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Thu Feb 24 07:31:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello gbm,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the remarks ... we will look at it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569543#M19748</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistencies in NXP LPC documents</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569544#M19749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Feb 24 08:44:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;With reference to the LPC12's rom divide routines, you might be interested to know that there is support for making use of these in the project wizard in version 3.6.2 of the IDE (3.8.2 on Linux). More information at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/RomDivide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569544#M19749</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistencies in NXP LPC documents</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569545#M19750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Fri Feb 25 03:09:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: gbm&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;UM10441 - there must be something terribly wrong with division routines contained in Flash, as the example 23.4.3 says that dividing -99 by 6 yields the result value 24. :eek:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was pretty sure from previous testing work I've done that this must be a documentation error, but have just double checked this to be sure on actual LPC1227 silicon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation states....&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;23.4.2 Signed division
The example C-code listing below shows how to perform a signed integer division via the
ROM API.
/* Divide (-99) by (+6) */
int32_t result;
result = pDivROM-&amp;gt;sidiv(-99, 6);
/* result now containts (-16) */


23.4.3 Unsigned division with remainder
The example C-code listing below shows how to perform an unsigned integer division with
remainder via the ROM API.
/* Modulus Divide (+99) by (+4) */
uidiv_return result;
result = pDivROM-&amp;gt; uidivmod (-99, 6);
/* result.quot containts (+24) */
/* result.rem containts (+3) */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;And running my test code I see the results...&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;-99 sdiv 6 = -16, rem -3
99 udiv 4 = 24, rem 3&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;The issue here thus appears to be that there is a cut'n'paste error in the docs, such that the parameter values passed in the second example (-99,6) have not been updated to match the values listed in the comment at the start of the example (99,4).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Inconsistencies-in-NXP-LPC-documents/m-p/569545#M19750</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:21:37Z</dc:date>
    </item>
  </channel>
</rss>

