<?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: SC-TIMER Handler problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1922664#M56571</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;&amp;nbsp;I give 3 count it generate the 3 Pluses but it generate one pluses.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here we working on SC Timer to generate the pulses in various duty cycle with the pulse period of 1200 ns. We verified the SDK example which generate proper duty cycle as the requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here i need some clarification on Handler call back. For one&amp;nbsp; pulse(ON&amp;amp;OFF) generation using SC-Timer, how many times the Handler will call?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Why because, while we look on this, Handler is called for 3 times for a single pulse(ON&amp;amp;OFF) generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is the configuration we done for the pulse generation using SC-Timer is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is any EVENT/STATE configuration need to be done for single Handler callback for every pulse generation? (or) It is a standard handler callback?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 07:26:15 GMT</pubDate>
    <dc:creator>VIGNESH_BABU</dc:creator>
    <dc:date>2024-08-01T07:26:15Z</dc:date>
    <item>
      <title>SC-TIMER Handler problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1921518#M56564</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In LPC55S16 Microcontroller ,where using Sc-timer to generate the PWM pluses with the certain intervals.But in Handler it react differently.For example if I give 3 count it generate the 3 Pluses but it generate one pluses.References here I below attached image for the references.Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 10:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1921518#M56564</guid>
      <dc:creator>VIGNESH_BABU</dc:creator>
      <dc:date>2024-07-31T10:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: SC-TIMER Handler problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1922331#M56568</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209612"&gt;@VIGNESH_BABU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please describe your project and requirement more detail?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;&amp;nbsp;I give 3 count it generate the 3 Pluses but it generate one pluses.&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;-&amp;gt;&amp;gt; Please give more description about this, thanks.&lt;/P&gt;
&lt;P&gt;Also there is PWM demo under SDK, you can firstly refer to it.&lt;/P&gt;
&lt;P&gt;And you can use configuration tool to configure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 01:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1922331#M56568</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-08-01T01:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: SC-TIMER Handler problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1922664#M56571</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;&amp;nbsp;I give 3 count it generate the 3 Pluses but it generate one pluses.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Detailed description:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here we working on SC Timer to generate the pulses in various duty cycle with the pulse period of 1200 ns. We verified the SDK example which generate proper duty cycle as the requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here i need some clarification on Handler call back. For one&amp;nbsp; pulse(ON&amp;amp;OFF) generation using SC-Timer, how many times the Handler will call?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Why because, while we look on this, Handler is called for 3 times for a single pulse(ON&amp;amp;OFF) generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is the configuration we done for the pulse generation using SC-Timer is attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is any EVENT/STATE configuration need to be done for single Handler callback for every pulse generation? (or) It is a standard handler callback?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:26:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1922664#M56571</guid>
      <dc:creator>VIGNESH_BABU</dc:creator>
      <dc:date>2024-08-01T07:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: SC-TIMER Handler problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1924626#M56580</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209612"&gt;@VIGNESH_BABU&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for your reply.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Handler should be called 1 time for a single pulse(ON&amp;amp;OFF) generation. How about first testing the SDK demo "lpcxpresso55s16_sctimer_pwm_with_dutycyle_change" on your side.&amp;nbsp;See how many interrupts handler be called for each PWM pulse.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;On demo code, enable SCTIMER PWM interrupt code:&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;/* Enable interrupt flag for event associated with out 4, we use the interrupt to update &lt;/SPAN&gt;&lt;SPAN&gt;dutycycle&lt;/SPAN&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt; SCTIMER_EnableInterrupts(SCT0, (1 &amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;eventNumberOutput&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;/* Receive notification when event is triggered */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt; SCTIMER_SetCallback(SCT0, SCTIMER_LED_HANDLER, &lt;/SPAN&gt;&lt;SPAN&gt;eventNumberOutput&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;/* Enable at the NVIC */&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt; EnableIRQ(&lt;/SPAN&gt;&lt;SPAN&gt;SCT0_IRQn&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;If this demo works well on your board. Please refer to the code development yours.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Aug 2024 09:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SC-TIMER-Handler-problem/m-p/1924626#M56580</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-08-04T09:31:19Z</dc:date>
    </item>
  </channel>
</rss>

