<?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: Bugs in AN11538? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513535#M212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Sat Nov 01 06:21:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: NXP_Paul&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Fig. 4: Not sure what you mean by this comment, since the AN looks correct:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SCT-&amp;gt;OUT[0].CLR = (1 &amp;lt;&amp;lt; 1); // event 1 will clear SCT_OUT0&lt;BR /&gt;Paul&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I assumed that, if there is a *.SET and a *.CLR command, that the same bit position is used. Only SET and CLR differ; using SET will set the bit and CLR will clear the bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I see that there are different events and so the example differs from e.g. Fig 8, where the conflict resolution register is used. So it seems to be a complete different story and the the functionality of this register is not as assumed (by me).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously there is no alternative to read the relating chapter in the UM (surprise, surprise)...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:06:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:06:40Z</dc:date>
    <item>
      <title>Bugs in AN11538?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513533#M210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Wed Oct 29 13:24:07 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As a new proud owner of a LPCXPpresso LPC1549 with SCT (which I've never heard before) I started to read the related section in the UM. After a few sentences I was scared about this peripheral and stopped reading. I decided to look for a special article and found AN11538.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just flew over the example code and was scared again: Is this peripheral really that complicated or are there a few bugs in the AN? I haven't checked any registers in the UM, but &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig 2: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;MATCHREL[0].U = SystemCoreClock/100;// match 0 @ 100 Hz = 10 msec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; all the other examples have -1 behind&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig 4:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;OUT[0].SET = (1 &amp;lt;&amp;lt; 0); // event 0 will set SCT_OUT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;OUT[0].CLR = (1 &amp;lt;&amp;lt; 1); // event 0 will clear SCT_OUT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; all the other examples have the same bits in SET and CLR&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig&amp;nbsp; 6:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;EVENT[0].STATE = 0xFFFF; // event 0 happens in all state&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; all the other examples have 0xFFFFFFFF for all states&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and so on. So are this bugs or is it really not logical (at least for me at the first and veeeery quick view)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513533#M210</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs in AN11538?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513534#M211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Fri Oct 31 06:14:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig. 2: I believe you are correct, and I will notify our documentation group to have this changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig. 4: Not sure what you mean by this comment, since the AN looks correct:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SCT-&amp;gt;OUT[0].CLR = (1 &amp;lt;&amp;lt; 1); // event 1 will clear SCT_OUT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fig 6:&amp;nbsp; It depends which device you are using.&amp;nbsp; Some devices only have two states (LPC81x), the LPC11U6x has 8 states, while others like the LPC15xx have 16 states, so 0xFFFF would be correct for this device.&amp;nbsp; Using 0xFFFFFFFF for any of the devices would work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513534#M211</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bugs in AN11538?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513535#M212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Sat Nov 01 06:21:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: NXP_Paul&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Fig. 4: Not sure what you mean by this comment, since the AN looks correct:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SCT-&amp;gt;OUT[0].CLR = (1 &amp;lt;&amp;lt; 1); // event 1 will clear SCT_OUT0&lt;BR /&gt;Paul&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, I assumed that, if there is a *.SET and a *.CLR command, that the same bit position is used. Only SET and CLR differ; using SET will set the bit and CLR will clear the bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I see that there are different events and so the example differs from e.g. Fig 8, where the conflict resolution register is used. So it seems to be a complete different story and the the functionality of this register is not as assumed (by me).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously there is no alternative to read the relating chapter in the UM (surprise, surprise)...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bugs-in-AN11538/m-p/513535#M212</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:06:40Z</dc:date>
    </item>
  </channel>
</rss>

