<?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: Phase shift modulation with 56F8xxx in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138787#M1121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all thank you for share your code, i'm having the same task to do, and i used your code , and the specifications in PWMMC bean.&lt;/P&gt;&lt;P&gt;But now, when i run the program, i don´t see any changes in my pwm phases. Did you put your code inside of main function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 17:53:34 GMT</pubDate>
    <dc:creator>ruimausinho</dc:creator>
    <dc:date>2015-06-02T17:53:34Z</dc:date>
    <item>
      <title>Phase shift modulation with 56F8xxx</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138783#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Hi to all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Is-it possible to do phase shift modulation with the PWM of the 56f8xxx serie?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Basically, phase shift modulation is two identical square waves with duty cycle of 50% and a variable phase shift. This feature is available on some TI DSP with there ePWM. I know I can do it using the output of timers and some special IGBT drivers to do dead time insertion. But, I would prefer to use two complementary pair PWM channels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Bruno&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2006 04:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138783#M1117</guid>
      <dc:creator>steel_tig</dc:creator>
      <dc:date>2006-12-02T04:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Phase shift modulation with 56F8xxx</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138784#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;As far as i understood these DSP's doesn't have special registers to control phase shift. But you can use "Asymmetric PWM output" - see ch. 10.4.5 "Asymmetric PWM Output" (in 56F8000_Peripheral_Manual).&lt;BR /&gt;In this case you should count values need to be loaded in to the PWMVal registers depending pulse frequency and phase shift.&lt;BR /&gt;&lt;BR /&gt;Sorry my English.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 23:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138784#M1118</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-12-06T23:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Phase shift modulation with 56F8xxx</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138785#M1119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If you still interested i tried to realize phase shift between modulated signals. I used ProcessorExpert. Add "PWMMC" bean. Settings - center-aligned mode, Pair 0 &amp;amp; 1 complementary, Correction - method2 -Use PWMVALx registers for Pairs 0 &amp;amp; 1.&lt;BR /&gt;To insert phase shift between signals use following code:&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;char shif_percent=0;dword val1, val2;...if(shift_percent&amp;gt;50) shift_percent= 50;else if(shift_percent&amp;lt;-50) shift_percent= -50;val1 = (dword)getReg(PWMA_PWMCM) * (50-shift_percent)/100;val2 = (dword)getReg(PWMA_PWMCM) - val1;PWMA_PWMVAL0 = val1;PWMA_PWMVAL1 = val2;PWMA_PWMVAL2 = val2;PWMA_PWMVAL3 = val1;PWMC1_Load();&lt;/PRE&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;where shift_percent is value of phase shift&amp;nbsp;which can be changed from -50% to +50%.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2006 18:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138785#M1119</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-12-26T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Phase shift modulation with 56F8xxx</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138786#M1120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OHH, very good. Thank you very much. It helps a lot.&lt;/P&gt;&lt;P&gt;I didn't need the "negative" angles (0-100%), so I did that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int shift_percent=50;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;dword val1, val2;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(shift_percent&amp;gt;100)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; shift_percent= 100;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else if(shift_percent&amp;lt;0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; shift_percent= 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;val1 = (dword)getReg(PWM_PWMCM) * (100-shift_percent)/200;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;val2 = (dword)getReg(PWM_PWMCM) - val1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWM_PWMVAL1 = val1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWM_PWMVAL2= val2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWM_PWMVAL3 = val2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWM_PWMVAL4 = val1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PWM__Load();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Mar 2012 07:28:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138786#M1120</guid>
      <dc:creator>alvarobs</dc:creator>
      <dc:date>2012-03-18T07:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Phase shift modulation with 56F8xxx</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138787#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all thank you for share your code, i'm having the same task to do, and i used your code , and the specifications in PWMMC bean.&lt;/P&gt;&lt;P&gt;But now, when i run the program, i don´t see any changes in my pwm phases. Did you put your code inside of main function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 17:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Phase-shift-modulation-with-56F8xxx/m-p/138787#M1121</guid>
      <dc:creator>ruimausinho</dc:creator>
      <dc:date>2015-06-02T17:53:34Z</dc:date>
    </item>
  </channel>
</rss>

