<?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のトピック4 Channel PWM using STATES and EVENTS</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621174#M24325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone I am using a LPC1549 and I am trying to create 4 PWM signals all running at the same frequency with the same duty cycle but 90 degrees out of phase from each other.&lt;/P&gt;&lt;P&gt;I am trying to configure the SCT to run by itself and move from state to state, and change the duty cycle by using the MATCHREL reg. But I cannot configure the SCT correctly or I am not understanding something correctly. I will paste my init file here so you guys can find what I am doing wrong.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337822"&gt;LPC1549-4PWM-Init.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Mar 2017 15:45:34 GMT</pubDate>
    <dc:creator>mariorod</dc:creator>
    <dc:date>2017-03-27T15:45:34Z</dc:date>
    <item>
      <title>4 Channel PWM using STATES and EVENTS</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621174#M24325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone I am using a LPC1549 and I am trying to create 4 PWM signals all running at the same frequency with the same duty cycle but 90 degrees out of phase from each other.&lt;/P&gt;&lt;P&gt;I am trying to configure the SCT to run by itself and move from state to state, and change the duty cycle by using the MATCHREL reg. But I cannot configure the SCT correctly or I am not understanding something correctly. I will paste my init file here so you guys can find what I am doing wrong.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337822"&gt;LPC1549-4PWM-Init.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621174#M24325</guid>
      <dc:creator>mariorod</dc:creator>
      <dc:date>2017-03-27T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: 4 Channel PWM using STATES and EVENTS</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621175#M24326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="294215" data-username="mariorod" href="https://community.nxp.com/people/mariorod"&gt;Mario Rod&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;I was wondering if you can exemplify the Flow of implementation, it help me get a completely knowledge.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 03:02:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621175#M24326</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-29T03:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: 4 Channel PWM using STATES and EVENTS</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621176#M24327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set up four match registers at &amp;lt;time_period&amp;gt;/4, &amp;lt;time_period&amp;gt;/2, 3*&amp;lt;time_period&amp;gt;/4 and &amp;lt;time_period&amp;gt;,&lt;/P&gt;&lt;P&gt;and another four at &amp;lt;time_period&amp;gt;/4+&amp;lt;pulsewidth&amp;gt; and &amp;lt;time_period&amp;gt;/2+&amp;lt;pulsewidth&amp;gt; etc.&lt;/P&gt;&lt;P&gt;Set up four events, one for each match register.&lt;/P&gt;&lt;P&gt;Use EVENT1 to SET output 1,&lt;/P&gt;&lt;P&gt;Use EVENT2 to SET output 2&lt;/P&gt;&lt;P&gt;Use EVENT3 to SET output 3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use EVENT4 to SET output 4&lt;/P&gt;&lt;P&gt;Use EVENT5 to CLEAR output 1&lt;/P&gt;&lt;P&gt;Use EVENT6 to CLEAR output 2&lt;/P&gt;&lt;P&gt;Use EVENT7 to CLEAR output 3&lt;/P&gt;&lt;P&gt;Use EVENT8 to CLEAR output 4&lt;/P&gt;&lt;P&gt;Use EVENT4 to LIMIT the counter.&lt;/P&gt;&lt;P&gt;Everything stays in STATE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not clear from this, let me know your clock frequency and PWM frequency.&lt;/P&gt;&lt;P&gt;When you change the pulsewidth, you need to update four registers.&lt;/P&gt;&lt;P&gt;If that's inconvenient, then it probably CAN be done using states, but this is a lot easier to understand!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 16:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/4-Channel-PWM-using-STATES-and-EVENTS/m-p/621176#M24327</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2018-05-25T16:00:55Z</dc:date>
    </item>
  </channel>
</rss>

