<?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: LPC800 LPCOpen - bug in acmp_8xx.c Ladder Voltage Setup in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC800-LPCOpen-bug-in-acmp-8xx-c-Ladder-Voltage-Setup/m-p/562008#M16390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Mon Oct 28 10:28:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for submitting this, this is a definite bug. I've created a bug tracker entry for this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fbugtrackerissue%2Flpc800-acmp-ladder-selection-value-misaligned" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/bugtrackerissue/lpc800-acmp-ladder-selection-value-misaligned&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...and have updated the known issue list for the v2.01 LPC8xx release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:01:57 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:01:57Z</dc:date>
    <item>
      <title>LPC800 LPCOpen - bug in acmp_8xx.c Ladder Voltage Setup</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC800-LPCOpen-bug-in-acmp-8xx-c-Ladder-Voltage-Setup/m-p/562007#M16389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brownm on Sat Oct 26 22:28:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a bug in the LPCOpen driver for setting the Ladder Point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Ladder select is from bit 5:1 in the register but the original code is OR'ing the ladsel value at bit 0, It needs to move it one place to the left before the OR'ing occurs. &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;
/* Sets up voltage ladder */
void Chip_ACMP_SetupVoltLadder(LPC_CMP_T *pACMP, uint32_t ladsel, bool ladrefVDDCMP)
{
uint32_t reg = pACMP-&amp;gt;LAD &amp;amp; ~(ACMP_LADSEL_MASK | ACMP_LADREF_MASK);

//mkb added this line as the LAD sel is from 5:1 in the register so we need to shift the
//ladsel value &amp;lt;&amp;lt; 1
ladsel = ladsel &amp;lt;&amp;lt; 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;lt;-------------FIX THE BIT SHIFT. 

/* Setup voltage ladder and ladder reference */
if (ladrefVDDCMP) {
reg |= ACMP_LADREF_MASK;
}
pACMP-&amp;gt;LAD = reg | ladsel;
}


&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marshall Brown&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC800-LPCOpen-bug-in-acmp-8xx-c-Ladder-Voltage-Setup/m-p/562007#M16389</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC800 LPCOpen - bug in acmp_8xx.c Ladder Voltage Setup</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC800-LPCOpen-bug-in-acmp-8xx-c-Ladder-Voltage-Setup/m-p/562008#M16390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Mon Oct 28 10:28:40 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for submitting this, this is a definite bug. I've created a bug tracker entry for this at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fbugtrackerissue%2Flpc800-acmp-ladder-selection-value-misaligned" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/bugtrackerissue/lpc800-acmp-ladder-selection-value-misaligned&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...and have updated the known issue list for the v2.01 LPC8xx release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC800-LPCOpen-bug-in-acmp-8xx-c-Ladder-Voltage-Setup/m-p/562008#M16390</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:01:57Z</dc:date>
    </item>
  </channel>
</rss>

