<?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: ETPU Phase A compliment channel not working in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006925#M15139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanx for the inputs. When I am using the following function then it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_3ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;// Used for 3 phase sine wave generation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_1ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;//&amp;nbsp; Used for 10KHz pwm generation with constant 50%duty cycle.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; when I use the following function I get the 3 phase leg-A bottom pulse missing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_3ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;// Used for 3 phase sine wave generation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwm_init(resolver_channel,FS_ETPU_PRIORITY_MIDDLE,10000,5000,FS_ETPU_PWM_ACTIVEHIGH,FS_ETPU_TCR1,etpu_a_tcr1_freq);&amp;nbsp; &amp;nbsp;&amp;nbsp;//&amp;nbsp; Used for 10KHz pwm generation with constant 50%duty cycle.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think there is problem while executing the RAM code of etpu, because in first case the RAM code for both function is same but in the next there are two seperate etpu RAM Code.&lt;/P&gt;&lt;P&gt;So is my understanding is correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2020 05:43:17 GMT</pubDate>
    <dc:creator>amey_murkute</dc:creator>
    <dc:date>2020-01-27T05:43:17Z</dc:date>
    <item>
      <title>ETPU Phase A compliment channel not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006922#M15136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am implementing Space vector modulation technique . I am using MPC5777C controller &amp;amp; trying to generate 3 phase signal that is 6 pwm's out of etpu function. I read that we need to provide the duty cycle to only compliment channels &amp;amp; etpu take care of other non-compliment channels. So I am trying to generate&lt;/P&gt;&lt;P&gt;A1_BOT --&amp;nbsp; Compliment channel- ETPUA0&lt;/P&gt;&lt;P&gt;A1_TOP&lt;/P&gt;&lt;P&gt;B1_BOT --&amp;nbsp;&lt;SPAN&gt;Compliment channel- ETPUA2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;B1_TOP&lt;/P&gt;&lt;P&gt;C1_BOT&amp;nbsp;&lt;SPAN&gt;--&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Compliment channel- ETPUA4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C1_TOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after compiling code I am successfully got the PWM out of 2 phase channels that is B1_BOT &amp;amp; TOP, C1_BOT &amp;amp; TOP. But A1_BOT pwm pulse is not getting out. So what is the reason behind it. I am getting A1_TOP pwm of this channel but not getting A1_BOT. So why only a single leg getting problem. The following is&amp;nbsp;pwm_init function which I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;err_code = fs_etpu_pwmmac_init_3ph (&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; PWM_master_channel, /* master_channel */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PRIORITY_HIGH, /* priority */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;PWM_phaseA_channel, /* phaseA_channel */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_DUTY_POS, /* phaseA_negate_duty */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; PWM_phaseB_channel, /* phaseB_channel */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_DUTY_POS, /* phaseB_negate_duty */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; PWM_phaseC_channel, /* phaseC_channel */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_DUTY_POS, /* phaseC_negate_duty */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;FS_ETPU_PWMMAC_MOD_SVM_STD, /* SVM STD modulation */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; &amp;amp;fs_etpu_pwmmac_sin3h_lut[0], /* p_table */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;FS_ETPU_PWMMAC_NORMAL, /* update */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_CENTER_ALIGNED, /* alignment */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_FULL_RANGE_COMPL_PAIRS, /* phases_type */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_NO_SWAP, /* swap */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_PIN_HIGH, /* base_ch_disable_pin_state */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_PIN_LOW, /* compl_ch_disable_pin_state */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;10000, /* start_offset */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; etpu_a_tcr1_freq/PWM_Switching_Freq, /* period (frequency) */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; etpu_a_tcr1_freq/PWM_Switching_Freq/2, /* update_time */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; etpu_a_tcr1_freq/1000*PWM_dead_time_ns/1000000, /* dead_time */&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; etpu_a_tcr1_freq/1000*PWM_dead_time_ns/1000000); /* min_pw */&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;/*******************************************************************************&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; * Enable generation of PWM signals&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; *******************************************************************************/&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; hsrr = fs_etpu_pwmmac_enable_3ph(PWM_master_channel,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_PIN_LOW ,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt; FS_ETPU_PWMMAC_PIN_LOW );&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;return (err_code);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for SVM implemenation using&amp;nbsp;following etpu function&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_update_svm(PWM_master_channel, (Alpha_Angle * 4194304), (Beta_Angle * 4194304));&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 06:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006922#M15136</guid>
      <dc:creator>amey_murkute</dc:creator>
      <dc:date>2020-01-14T06:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: ETPU Phase A compliment channel not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006923#M15137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;As discussed above, also I have generated the 10Khz pwm through the following function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;fs_etpu_pwm_init(resolver_channel,FS_ETPU_PRIORITY_MIDDLE,10000,5000,FS_ETPU_PWM_ACTIVEHIGH,FS_ETPU_TCR1,etpu_a_tcr1_freq);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;So is there any problem using two etpu function in one project?. Because it seems that when I disable above 10Khz pwm etpu function then my 3 phase pwm works fine.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thanks &amp;amp; regards,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Amey&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 09:05:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006923#M15137</guid>
      <dc:creator>amey_murkute</dc:creator>
      <dc:date>2020-01-16T09:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: ETPU Phase A compliment channel not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006924#M15138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in principle it is not an issue to have more eTPU functions in one project, it is the way how eTPU is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be potentially the issue is the worst case latency for a channel (longest period of time that can elapse between the execution of any two function threads on that channel) that is affected by activity on the other channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See section 4.3 in the eTPU function set descriptive document:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN2968.pdf" title="https://www.nxp.com/docs/en/application-note/AN2968.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN2968.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 13:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006924#M15138</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-01-16T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: ETPU Phase A compliment channel not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006925#M15139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanx for the inputs. When I am using the following function then it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_3ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;// Used for 3 phase sine wave generation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_1ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;//&amp;nbsp; Used for 10KHz pwm generation with constant 50%duty cycle.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; when I use the following function I get the 3 phase leg-A bottom pulse missing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwmmac_init_3ph();&amp;nbsp; &amp;nbsp; &amp;nbsp;// Used for 3 phase sine wave generation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fs_etpu_pwm_init(resolver_channel,FS_ETPU_PRIORITY_MIDDLE,10000,5000,FS_ETPU_PWM_ACTIVEHIGH,FS_ETPU_TCR1,etpu_a_tcr1_freq);&amp;nbsp; &amp;nbsp;&amp;nbsp;//&amp;nbsp; Used for 10KHz pwm generation with constant 50%duty cycle.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think there is problem while executing the RAM code of etpu, because in first case the RAM code for both function is same but in the next there are two seperate etpu RAM Code.&lt;/P&gt;&lt;P&gt;So is my understanding is correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 05:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ETPU-Phase-A-compliment-channel-not-working/m-p/1006925#M15139</guid>
      <dc:creator>amey_murkute</dc:creator>
      <dc:date>2020-01-27T05:43:17Z</dc:date>
    </item>
  </channel>
</rss>

