<?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: lpc 4337 Phase-shift PWM  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939486#M37456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Viuanney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you refer to the ticket in the community which talks about the phase-shift feature of PWM signals.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/message/765201?commentID=765201#comment-765201" target="test_blank"&gt;https://community.nxp.com/message/765201?commentID=765201#comment-765201&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Xiangjun Rong&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 10:51:36 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2019-07-19T10:51:36Z</dc:date>
    <item>
      <title>lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939485#M37455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Is it possible to do a phase shift pwm with SCT of lpc 4337 mcu?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939485#M37455</guid>
      <dc:creator>vianneyfenart</dc:creator>
      <dc:date>2019-07-18T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939486#M37456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Viuanney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you refer to the ticket in the community which talks about the phase-shift feature of PWM signals.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/message/765201?commentID=765201#comment-765201" target="test_blank"&gt;https://community.nxp.com/message/765201?commentID=765201#comment-765201&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it can help you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Xiangjun Rong&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 10:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939486#M37456</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-19T10:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939487#M37457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, xiangjun.rong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;i read the post.&lt;/P&gt;&lt;P&gt;if i understand for doing a shift i need to put the first OUPUT PWM to an INPUT PIN for second OUTPUT PWM?&lt;/P&gt;&lt;P&gt;i need to shift 10 output pwm....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2019 14:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939487#M37457</guid>
      <dc:creator>vianneyfenart</dc:creator>
      <dc:date>2019-07-20T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939488#M37458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Vianney,&lt;/P&gt;&lt;P&gt;I think the user code for the PWM shift is too complicated, you can use a simple way to implement it.&lt;/P&gt;&lt;P&gt;Can you clarify your required PWM shift signal timing? do you need complementary PWM signal with deadtime?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 07:01:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939488#M37458</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-23T07:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939489#M37459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi, xiangjun.rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In fact i only need to shift each pwm signal of few milliseconds....i don't need complementary pwm with deadtime.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;actually i use 10 SCT pinout and all signal are synchronous....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;can you help me please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:31:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939489#M37459</guid>
      <dc:creator>vianneyfenart</dc:creator>
      <dc:date>2019-07-23T17:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939490#M37460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Vianney,&lt;/P&gt;&lt;P&gt;I have developed a simple code to implement the phase shift for two PWM signal based on LPC54114, I attach the code, but you have to modify it based on the LPC4337, for example AHBCLKCTRL register for enabling gated clock and pin assignment.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//The SCT0_OUT1 can output PWM signal with 50 duty cycle from PIO0_8 pin&lt;BR /&gt;//The SCT_OUT2 can output PWM signal with 50 duty cycle fron PIO0_9 pin&lt;BR /&gt;//The SCT0_OUT1 and SCT0_OUT2 PWM signal has 90 degree phase shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SCT0_PWM(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SYSCON-&amp;gt;AHBCLKCTRL[1]|=(1&amp;lt;&amp;lt;2); //SET SCT0 bit&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;CONFIG = (1 &amp;lt;&amp;lt; 0) | (1 &amp;lt;&amp;lt; 17); // unified 32-bit timer, auto limit&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;SCTMATCHREL[0] = SystemCoreClock/100; // match 0 @ 100 Hz = 10 msec&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[0].STATE = 0xFFFFFFFF; // event 0 happens in all states&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set event1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;SCTMATCHREL[1]=0x00;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[1].STATE = 0xFFFFFFFF; // event 1 happens in all states&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[1].CTRL = (1 &amp;lt;&amp;lt; 12)|(1&amp;lt;&amp;lt;0); // match 1 condition only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set event2&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;SCTMATCHREL[2]=(SystemCoreClock/100)/2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[2].STATE = 0xFFFFFFFF; // event 2 happens in all states&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[2].CTRL = (1 &amp;lt;&amp;lt; 12)|(2&amp;lt;&amp;lt;0); // match 2 condition only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set event3&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;SCTMATCHREL[3]=(SystemCoreClock/100)/4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[3].STATE = 0xFFFFFFFF; // event 3 happens in all states&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[3].CTRL = (1 &amp;lt;&amp;lt; 12)|(3&amp;lt;&amp;lt;0); // match 3 condition only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set event4&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;SCTMATCHREL[4]=3*(SystemCoreClock/100)/4;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[4].STATE = 0xFFFFFFFF; // event 4 happens in all states&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;EVENT[4].CTRL = (1 &amp;lt;&amp;lt; 12)|(4&amp;lt;&amp;lt;0); // match 4 condition only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//PWM output1 signal&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;OUT[1].SET = (1 &amp;lt;&amp;lt; 1); // event 1 will set SCT1_OUT0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;OUT[1].CLR = (1 &amp;lt;&amp;lt; 2); // event 2 will clear SCT1_OUT0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;RES |= (3 &amp;lt;&amp;lt; 2); // output 0 toggles on conflict&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//PWM output2 signal&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;OUT[2].SET = (1 &amp;lt;&amp;lt; 3); // event 3 will set SCT1_OUT0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;OUT[2].CLR = (1 &amp;lt;&amp;lt; 4); // event 4 will clear SCT1_OUT0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCT0-&amp;gt;RES = (3 &amp;lt;&amp;lt; 4); // output 0 toggles on conflict&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//PWM start&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT0-&amp;gt;CTRL &amp;amp;= ~(1 &amp;lt;&amp;lt; 2); // unhalt by clearing bit 2 of the CTRL&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 07:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939490#M37460</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-24T07:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939491#M37461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Vianney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls refer to the doc, hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-343979"&gt;https://community.nxp.com/docs/DOC-343979&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 09:19:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939491#M37461</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-24T09:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: lpc 4337 Phase-shift PWM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939492#M37462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you for you help : i will test the code with my cpu !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:39:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc-4337-Phase-shift-PWM/m-p/939492#M37462</guid>
      <dc:creator>vianneyfenart</dc:creator>
      <dc:date>2019-07-24T17:39:41Z</dc:date>
    </item>
  </channel>
</rss>

