<?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 PWM Configuration for Motorcontrol on S12XF512 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203332#M8233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to configure my PWM for a motor control use-case.&lt;/P&gt;&lt;P&gt;I have a lauterbach debugger and thus i can apply change to registers online.&lt;/P&gt;&lt;P&gt;I tried lots of different options (see screeshot), but somehow the PWM stopps working as soon as I change from independend outputs to complementary pairing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I set up all interfaces with processor experts PWM-bean. The motor runs perfectly, but I the PWM-channels cannot be synchronized with CW-Standard-Edition unfortunatelly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone give me a hint?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 05:13:57 GMT</pubDate>
    <dc:creator>jedi82</dc:creator>
    <dc:date>2010-05-26T05:13:57Z</dc:date>
    <item>
      <title>PWM Configuration for Motorcontrol on S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203332#M8233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to configure my PWM for a motor control use-case.&lt;/P&gt;&lt;P&gt;I have a lauterbach debugger and thus i can apply change to registers online.&lt;/P&gt;&lt;P&gt;I tried lots of different options (see screeshot), but somehow the PWM stopps working as soon as I change from independend outputs to complementary pairing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I set up all interfaces with processor experts PWM-bean. The motor runs perfectly, but I the PWM-channels cannot be synchronized with CW-Standard-Edition unfortunatelly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone give me a hint?&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 05:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203332#M8233</guid>
      <dc:creator>jedi82</dc:creator>
      <dc:date>2010-05-26T05:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Configuration for Motorcontrol on S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203333#M8234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay, i solved to problem - partly.&lt;/P&gt;&lt;P&gt;now i can configure the pwm as being center alligned and coming from one clock source with the standard PWM-Bean.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what*s to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in cpu.c:&lt;/P&gt;&lt;P&gt;set&amp;nbsp; PMFCFG0 =0x7 (outputs independent, setting complementairy outputs does not work for me at the moment - maybe someone can help)&lt;/P&gt;&lt;P&gt;correct the pwm-period as PE miscalculates the frequency nearly by factor 2. (I am running PLL at 50MHz)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the PWM-Channel-Bean.c files (for me pwm1.c pwm2.c and so on):&lt;/P&gt;&lt;P&gt;for channels 2-5: manipulate the code so that LDOKA is used entirely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see a screenshot of my settings above.&lt;/P&gt;&lt;P&gt;- this pwm is configured as&lt;/P&gt;&lt;P&gt;- 6 independend channels being clocked by one source&lt;/P&gt;&lt;P&gt;- 18000kHz at 50MHz PLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;working good!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 15:53:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203333#M8234</guid>
      <dc:creator>jedi82</dc:creator>
      <dc:date>2010-05-26T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Configuration for Motorcontrol on S12XF512</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203334#M8235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;did you consider using PWMMC component that is intended to purpose that you&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;exactly&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;need (for more details please find attached screenshot)? But please note that this component is component from category called "Advanced Beans", therefore you need to have purchased "&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-HCS12X&amp;amp;nodeId=0127262E703BC3&amp;amp;tid=CWH" rel="nofollow" target="_self"&gt;Profesional Suite&lt;/A&gt;" to use it&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;or there should be possibility to buy this&amp;nbsp;component separately in "&lt;A href="http://www.freescale.com/beanstore" rel="nofollow" target="_self"&gt;Component store".&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;Regarding to incorrect timing in PWM bean&amp;nbsp; - I think this behavior is correct, because you are using center alignment mode, but PWM component supports edge alignment mode.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;I think you should write 0x00 into PWMCFG0&amp;nbsp;to achieve&amp;nbsp;s&lt;SPAN class="046103312-26052010"&gt;ingle time base, center align mode, and complementary mode.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;SPAN class="046103312-26052010"&gt;&lt;SPAN class="046103312-26052010"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 20:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PWM-Configuration-for-Motorcontrol-on-S12XF512/m-p/203334#M8235</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2010-05-26T20:25:06Z</dc:date>
    </item>
  </channel>
</rss>

