<?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 timer on LPC845brk in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575830#M51145</link>
    <description>&lt;P&gt;Hi raul,&lt;/P&gt;&lt;P&gt;Thanks a lot for the quick and useful reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said I forgot to clear the PINASSIGN_DATA[7] register.&lt;/P&gt;&lt;P&gt;However there should be another problem that makes the SCTtimer to not start (COUNT register keeps staying at zero).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1672398483590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205767i2AEF766F0F2EAE22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1672398483590.png" alt="tomato_0-1672398483590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to write to the COUNT register the value is not modified. The SCT clock enable bit is asserted and SCT clocked by main clock&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_1-1672398634086.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205768iE9C99302EB7DF0D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_1-1672398634086.png" alt="tomato_1-1672398634086.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_2-1672398691553.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205769i94139FE2574E4B71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_2-1672398691553.png" alt="tomato_2-1672398691553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What do you think about this? Did I forget anything else in the SCT initialization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Dec 2022 11:14:25 GMT</pubDate>
    <dc:creator>tomato</dc:creator>
    <dc:date>2022-12-30T11:14:25Z</dc:date>
    <item>
      <title>SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575552#M51131</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to program the SCT timer in the LPC845brk to output a PWM waveform to PIO1_0.&lt;/P&gt;&lt;P&gt;Can you help me to understand why the SCTtimer does not run? I see that the counter register keeps staying at zero.&lt;/P&gt;&lt;P&gt;This is my initialization function&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_1-1672313973485.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205702iB52BC00F2D326853/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_1-1672313973485.png" alt="tomato_1-1672313973485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I followed the manual and the AN11538 but there must be still something that I am missing.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 11:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575552#M51131</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2022-12-29T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575655#M51135</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210324"&gt;@tomato&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;First of all, could you please check if you are having a change in PINASSIGN_DATA[7]?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Replicating your possible error, the PINASSIGN_DATA[7] was not modifying. You should clear the register, and then assign SCT_OUT0 to pin PIO1_0.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Here is an example:&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1672348161676.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205729i05907447F502AAFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1672348161676.png" alt="RaulRomero_0-1672348161676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Let us know if this helps you.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, you could try testing the SCT examples in MCUXpresso IDE with the SDK LPC845 or LPC845BREAKOUT.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1672348161679.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205730iDE369DE98CFD5434/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_1-1672348161679.png" alt="RaulRomero_1-1672348161679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_2-1672348161685.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205731i916A39AA5871C102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_2-1672348161685.png" alt="RaulRomero_2-1672348161685.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_3-1672348161690.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205732iC9F944CA67DADBCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_3-1672348161690.png" alt="RaulRomero_3-1672348161690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;The SCTimer Simple PWM example is a simple demonstration program of the SDK SCTimer driver capability to generate PWM signals.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;It may be useful to try it out, and then made some changes according to what you need.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 21:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575655#M51135</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2022-12-29T21:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575830#M51145</link>
      <description>&lt;P&gt;Hi raul,&lt;/P&gt;&lt;P&gt;Thanks a lot for the quick and useful reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you said I forgot to clear the PINASSIGN_DATA[7] register.&lt;/P&gt;&lt;P&gt;However there should be another problem that makes the SCTtimer to not start (COUNT register keeps staying at zero).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1672398483590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205767i2AEF766F0F2EAE22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1672398483590.png" alt="tomato_0-1672398483590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to write to the COUNT register the value is not modified. The SCT clock enable bit is asserted and SCT clocked by main clock&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_1-1672398634086.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205768iE9C99302EB7DF0D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_1-1672398634086.png" alt="tomato_1-1672398634086.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_2-1672398691553.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205769i94139FE2574E4B71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_2-1672398691553.png" alt="tomato_2-1672398691553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What do you think about this? Did I forget anything else in the SCT initialization?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 11:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575830#M51145</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2022-12-30T11:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575833#M51146</link>
      <description>&lt;P&gt;Hi raul,&lt;/P&gt;&lt;P&gt;I managed to fix the problem changing this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1672399725721.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205770i91379D64B7CBFD87/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1672399725721.png" alt="tomato_0-1672399725721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 11:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1575833#M51146</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2022-12-30T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1576027#M51153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was doing some tests on my code and I discovered that changing this register&lt;/P&gt;&lt;P&gt;SYSCON-&amp;gt;SCTCLKDIV=2; // SCT clock divider&lt;/P&gt;&lt;P&gt;does not affect the PWM period that I am generating.&lt;/P&gt;&lt;P&gt;Can you help to understand why ?&lt;/P&gt;&lt;P&gt;I see this in the manual&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tomato_0-1672653811493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205809iEB86E3711E6D661F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tomato_0-1672653811493.png" alt="tomato_0-1672653811493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even if I put zero in this field the PWM keeps working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 10:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1576027#M51153</guid>
      <dc:creator>tomato</dc:creator>
      <dc:date>2023-01-02T10:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCT timer on LPC845brk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1576162#M51157</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210324"&gt;@tomato&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;For modifying the period of the PWM signal, you should change the MATCHREL[0].&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1672683451032.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205865i9B4B87532483685A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1672683451032.png" alt="RaulRomero_0-1672683451032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[AN11538. Chapter 6. Simple PWM]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;The SCTCLKDIV may be affecting directly the behavior of the PWM only if you are using CKSEL as 8 or 9.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1672683451035.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205864i0E490DA7583D38F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_1-1672683451035.png" alt="RaulRomero_1-1672683451035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_2-1672683451040.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205866i3645EA24D0B3B741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_2-1672683451040.png" alt="RaulRomero_2-1672683451040.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[LPC84x User Manual. Chapter 21. SCTimer/PWM. Table 387 SCTimer/PWM CONFIG register]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 18:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SCT-timer-on-LPC845brk/m-p/1576162#M51157</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-02T18:19:55Z</dc:date>
    </item>
  </channel>
</rss>

