<?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>LPC Microcontrollers中的主题 LPC1517 SCTimer Interrupt stops suddenly</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787127#M31656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Controller &amp;nbsp; : &amp;nbsp; LPC1517&lt;/P&gt;&lt;P&gt;IDE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;nbsp; MCUXpresso&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SCTimer 3 for using delay for ms, it is working for 60 delays, and then interrupt stops without any reason.&lt;/P&gt;&lt;P&gt;SCT3 IRQ Handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;LPC_SCT3-&amp;gt;EVFLAG = 0x01;&lt;BR /&gt;&amp;nbsp;count++;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Delay function:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;SCT3_START_ms;&lt;BR /&gt;&amp;nbsp;while(count&amp;lt;period);&lt;BR /&gt;&amp;nbsp;SCT3_STOP;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCT3_START_ms definition:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;count=0;&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;CTRL_U |= (1&amp;lt;&amp;lt;2);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;MATCH[0].U=(SystemCoreClock/1000-1);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;MATCHREL[0].U=(SystemCoreClock/1000-1);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;CTRL_U &amp;amp;= ~(1&amp;lt;&amp;lt;2);&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this worked normally for upto 59 counts, and then MATCH0 turned from normal value to&amp;nbsp;&lt;STRONG&gt;0xffff,&lt;/STRONG&gt; also the SystemCoreClock became 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any specific reason for this weird change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 10:20:29 GMT</pubDate>
    <dc:creator>athmesh_n</dc:creator>
    <dc:date>2018-10-31T10:20:29Z</dc:date>
    <item>
      <title>LPC1517 SCTimer Interrupt stops suddenly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787127#M31656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Controller &amp;nbsp; : &amp;nbsp; LPC1517&lt;/P&gt;&lt;P&gt;IDE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;nbsp; MCUXpresso&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SCTimer 3 for using delay for ms, it is working for 60 delays, and then interrupt stops without any reason.&lt;/P&gt;&lt;P&gt;SCT3 IRQ Handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;LPC_SCT3-&amp;gt;EVFLAG = 0x01;&lt;BR /&gt;&amp;nbsp;count++;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Delay function:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;SCT3_START_ms;&lt;BR /&gt;&amp;nbsp;while(count&amp;lt;period);&lt;BR /&gt;&amp;nbsp;SCT3_STOP;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCT3_START_ms definition:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;count=0;&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;CTRL_U |= (1&amp;lt;&amp;lt;2);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;MATCH[0].U=(SystemCoreClock/1000-1);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;MATCHREL[0].U=(SystemCoreClock/1000-1);&lt;BR /&gt;&amp;nbsp;LPC_SCT3-&amp;gt;CTRL_U &amp;amp;= ~(1&amp;lt;&amp;lt;2);&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this worked normally for upto 59 counts, and then MATCH0 turned from normal value to&amp;nbsp;&lt;STRONG&gt;0xffff,&lt;/STRONG&gt; also the SystemCoreClock became 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any specific reason for this weird change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 10:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787127#M31656</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2018-10-31T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1517 SCTimer Interrupt stops suddenly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787128#M31657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above problem solved as SystemCoreClock is not globally initialized and hence, due to memory optimization the SystemCoreClockbecame zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:02:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787128#M31657</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2018-11-01T05:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1517 SCTimer Interrupt stops suddenly</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787129#M31658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either declare SystemCoreClock globally, or call GetSystemCoreClock() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 05:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1517-SCTimer-Interrupt-stops-suddenly/m-p/787129#M31658</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2018-11-01T05:03:35Z</dc:date>
    </item>
  </channel>
</rss>

