<?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: SCT Conflict resolution register not working in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-Conflict-resolution-register-not-working/m-p/539129#M11802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Sat Jul 18 12:22:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The resolution "toggle" is selected for output 0, not output 8! (which leaves output 8 with "no action"). It should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;RES = (3 &amp;lt;&amp;lt; 16); // output 8 toggles on conflict&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:23:40 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:23:40Z</dc:date>
    <item>
      <title>SCT Conflict resolution register not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-Conflict-resolution-register-not-working/m-p/539128#M11801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kellykan on Fri Jul 17 03:36:25 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the conflict resolution register on the SCT in the LPC 1820, I get no toggle on the SCT output. The CONNFLAG shows set but I dont get a toggle of SCT output when the resolution is configured for Toggle of the SCT pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. taken code directly from the NXP PWM cookbook, but in my case im using SCT output 8. This code works fine with blinky example where there are two events so therefore its not an issue with the pin configs or mux.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void SCT_Init(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;CONFIG |= (1 &amp;lt;&amp;lt; 17); // two 16 bit timers, auto limit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;CTRL_L |= (119 &amp;lt;&amp;lt; 5); // PRE_L[12:5] = 120-1 (SCTimer/PWM clock = 12MHz/120 = 100 kHz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;MATCHREL[0].L = (100000/10)-1; // match 0 @ 10 Hz = 100 msec&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;LPC_SCT-&amp;gt;EVENT[0].CTRL = (1 &amp;lt;&amp;lt; 12); // match 0 condition only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;OUT[8].SET = (1 &amp;lt;&amp;lt; 0); // event 0 will set SCTx_OUT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;OUT[8].CLR = (1 &amp;lt;&amp;lt; 0); // event 0 will clear SCTx_OUT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;RES = (3 &amp;lt;&amp;lt; 0); // output 0 toggles on conflict&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;CTRL_L &amp;amp;= ~(1 &amp;lt;&amp;lt; 2); // start timer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-Conflict-resolution-register-not-working/m-p/539128#M11801</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: SCT Conflict resolution register not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-Conflict-resolution-register-not-working/m-p/539129#M11802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Sat Jul 18 12:22:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The resolution "toggle" is selected for output 0, not output 8! (which leaves output 8 with "no action"). It should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCT-&amp;gt;RES = (3 &amp;lt;&amp;lt; 16); // output 8 toggles on conflict&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:23:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-Conflict-resolution-register-not-working/m-p/539129#M11802</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:23:40Z</dc:date>
    </item>
  </channel>
</rss>

