<?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_set4 pwmmac clarification in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1322749#M18871</link>
    <description>&lt;P&gt;Just adding a couple of notes to David's excellent info:&lt;BR /&gt;- tmp_half_reload_flag__master_chan is used to retain the master channel number in order to channel context switch in PWMMACReloadPhase(), and then restore proper channel context at return time. It also passes a flag indicating reload or half reload cycle into the routine.&lt;BR /&gt;- as mentioned, this is an alias of register B... if modifying C code that uses register aliasing it is recommended to take special care and carefully analyze and test the results of any changes.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 17:52:30 GMT</pubDate>
    <dc:creator>johndiener</dc:creator>
    <dc:date>2021-08-12T17:52:30Z</dc:date>
    <item>
      <title>etpu_set4 pwmmac clarification</title>
      <link>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1321389#M18853</link>
      <description>&lt;P&gt;Hi, In the etpu-set4 pwmmac sample application half-cycle reload option is specified. Where can I find more details of when cycle reload is typically used?&lt;/P&gt;&lt;P&gt;Is there an application note that demonstrates how to invoke and use the pwmmac functions?&lt;/P&gt;&lt;P&gt;Refer the attached&amp;nbsp;&lt;SPAN&gt;etpuc_pwmmac.c, the specific section shown below:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//====== begin excerpt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else if ( (m2 == 1) &amp;amp;&amp;amp; (flag0 == 1) )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.....&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// set channelX half-cycle reload flag&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tmp_half_reload_flag__master_chan = 0x800000 + GetCurrentChanNum()&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;......&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; goto PWMMAC_RELOAD;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//=============== end excerpt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The param 'tmp_half_reload_flag__master_chan' appears to be a flag but is manipulated using channel number.&amp;nbsp; What is rationale behind this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for taking time to clarify.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best, JR&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 00:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1321389#M18853</guid>
      <dc:creator>jyothsna_rajan</dc:creator>
      <dc:date>2021-08-11T00:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: etpu_set4 pwmmac clarification</title>
      <link>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1322602#M18869</link>
      <description>&lt;P&gt;The function is described in the following appnote:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2969.pdf" target="_blank" rel="noopener"&gt;https://www.nxp.com/docs/en/application-note/AN2969.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Mentioned feature is described in section 3.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Half cycle update has faster response, on the other hand it’ll have higher etpu load i.e. performance limits.&lt;/P&gt;
&lt;P&gt;Regarding source code - it seems mentioned flag tmp_half_reload_flag__master_chan (it is alias for register B) &lt;SPAN&gt;has an effect on channel switching&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you going to modify or re-use eTPU source code?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 11:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1322602#M18869</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-08-12T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: etpu_set4 pwmmac clarification</title>
      <link>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1322749#M18871</link>
      <description>&lt;P&gt;Just adding a couple of notes to David's excellent info:&lt;BR /&gt;- tmp_half_reload_flag__master_chan is used to retain the master channel number in order to channel context switch in PWMMACReloadPhase(), and then restore proper channel context at return time. It also passes a flag indicating reload or half reload cycle into the routine.&lt;BR /&gt;- as mentioned, this is an alias of register B... if modifying C code that uses register aliasing it is recommended to take special care and carefully analyze and test the results of any changes.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 17:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/etpu-set4-pwmmac-clarification/m-p/1322749#M18871</guid>
      <dc:creator>johndiener</dc:creator>
      <dc:date>2021-08-12T17:52:30Z</dc:date>
    </item>
  </channel>
</rss>

