<?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中的主题 Re: Turn off/kill the sct</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Turn-off-kill-the-sct/m-p/1288044#M45320</link>
    <description>&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Hello&amp;nbsp;&lt;SPAN&gt;pinoernino, you can refer to the SCTIMER_Deinit() function to disable SCTTIMER:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;It is under SDK driver.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;void SCTIMER_Deinit(SCT_Type *base)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;/* Halt the counters */&lt;BR /&gt;base-&amp;gt;CTRL |= (SCT_CTRL_HALT_L_MASK | SCT_CTRL_HALT_H_MASK);&lt;/P&gt;
&lt;P&gt;#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) &amp;amp;&amp;amp; FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)&lt;BR /&gt;/* Disable the SCTimer clock*/&lt;BR /&gt;CLOCK_DisableClock(s_sctClocks[SCTIMER_GetInstance(base)]);&lt;BR /&gt;#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */&lt;BR /&gt;}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Hope it helps,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 07:51:17 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-06-07T07:51:17Z</dc:date>
    <item>
      <title>Turn off/kill the sct</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Turn-off-kill-the-sct/m-p/1287611#M45297</link>
      <description>&lt;P&gt;I would like to turn off the SCT after its task. However I do not know which are the correct commands to insert in the code. I tried these ones:&lt;BR /&gt;LPC_SCT-&amp;gt;STOP_L = 1;&lt;BR /&gt;LPC_SCT-&amp;gt;HALT_L = 1;&lt;BR /&gt;LPC_SYSCON -&amp;gt; SYSAHBCLKCTRL0 |= (0&amp;lt;&amp;lt;8);&lt;BR /&gt;LPC_SYSCON-&amp;gt;PRESETCTRL[0] &amp;amp;= ~(1&amp;lt;&amp;lt;8); //Assert the SCT reset&lt;BR /&gt;clean = LPC_SWM-&amp;gt;PINASSIGN[7]; //copio Pin assign register 6 (per SCT_OUT0_O)&lt;BR /&gt;clean &amp;amp;= ~(0xFF&amp;lt;&amp;lt;24); //azzero bit di selezione pin (31:24)&lt;/P&gt;&lt;P&gt;but the problem is that the blue led (which is linked to the state machine) continues to stay on, and I want to turn off.&lt;/P&gt;&lt;P&gt;I have attached the code, in the main there is a&amp;nbsp;commented section where I have to kill the SCT.&lt;/P&gt;&lt;P&gt;Thanks to anyone who can help me&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 14:24:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Turn-off-kill-the-sct/m-p/1287611#M45297</guid>
      <dc:creator>pinoernino</dc:creator>
      <dc:date>2021-06-04T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Turn off/kill the sct</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Turn-off-kill-the-sct/m-p/1288044#M45320</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Hello&amp;nbsp;&lt;SPAN&gt;pinoernino, you can refer to the SCTIMER_Deinit() function to disable SCTTIMER:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;It is under SDK driver.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;void SCTIMER_Deinit(SCT_Type *base)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;/* Halt the counters */&lt;BR /&gt;base-&amp;gt;CTRL |= (SCT_CTRL_HALT_L_MASK | SCT_CTRL_HALT_H_MASK);&lt;/P&gt;
&lt;P&gt;#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) &amp;amp;&amp;amp; FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)&lt;BR /&gt;/* Disable the SCTimer clock*/&lt;BR /&gt;CLOCK_DisableClock(s_sctClocks[SCTIMER_GetInstance(base)]);&lt;BR /&gt;#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */&lt;BR /&gt;}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Hope it helps,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 07:51:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Turn-off-kill-the-sct/m-p/1288044#M45320</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-06-07T07:51:17Z</dc:date>
    </item>
  </channel>
</rss>

