<?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: What is PWM range when using eTPU function? (MPC5644A) in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754801#M24499</link>
    <description>&lt;P&gt;p.s.&amp;nbsp; if I work your numbers backward it appears that you have the timebase_freq set to 150MHz (system clock).&amp;nbsp; This is causing the overlfow within the fs_etpu_pwm_update function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timebase_freq should be the TCR1 or TCR2 clock frequency, and that will need to be prescaled down to something more suitable so the 24-bit TCR counter works with your output frequency/resolution needs.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 08:38:15 GMT</pubDate>
    <dc:creator>KarlP</dc:creator>
    <dc:date>2023-11-09T08:38:15Z</dc:date>
    <item>
      <title>What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1753256#M24491</link>
      <description>&lt;P&gt;Hi, i am trying to generate PWM signal using eTPU function.&amp;nbsp; (MPC5644A)&lt;BR /&gt;&lt;BR /&gt;the function i am currently uing is&amp;nbsp; &amp;nbsp;fs_etpu_pwm_update()&lt;/P&gt;&lt;P&gt;based on local parameter in this funciton, when the value of (chan_period*duty)/10000 gets over 426000 the generated PWM signal doesnt show up properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the estimated problem is data overflow when trying write parameter value to data memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i solve this problem?? and how can i generate full range pwm signal??&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ps. i was trying to generate 250Hz, 80% duty but it didnt worked. and i realized memory overflow is happening somewhere between 250Hz 71~72% duty. which is 426000~432000 in ((chan_period*duty)/10000) value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:48:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1753256#M24491</guid>
      <dc:creator>JinwooLim</dc:creator>
      <dc:date>2023-11-07T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754220#M24496</link>
      <description>&lt;P&gt;Could you clarify which specific eTPU function is your question related to? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754220#M24496</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-11-08T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754481#M24497</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;the name of funtion is "fs_etpu_pwm_update(channel, frequency, duty, timebase frequency)"&lt;/P&gt;&lt;P&gt;this function is in "etpu_pwm.c" file which is written by Jeff Loeliger, Revision is 2.0&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 23:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754481#M24497</guid>
      <dc:creator>JinwooLim</dc:creator>
      <dc:date>2023-11-08T23:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754780#M24498</link>
      <description>&lt;P&gt;I might be wrong but it looks like you have the etpu tcr1 or tcr2 set with a high frequency clock so generating a low frequency signal (250Hz) from that clock with a 24-bit count limit is causing a problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adjusting the prescaler for the TCR used to lower the timebase frequency, e.g. down to 4MHz.&amp;nbsp; Set the fs_etpu_pwm_init to that new frequency as well as in fs_etpu_pwm_update.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 08:17:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754780#M24498</guid>
      <dc:creator>KarlP</dc:creator>
      <dc:date>2023-11-09T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754801#M24499</link>
      <description>&lt;P&gt;p.s.&amp;nbsp; if I work your numbers backward it appears that you have the timebase_freq set to 150MHz (system clock).&amp;nbsp; This is causing the overlfow within the fs_etpu_pwm_update function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The timebase_freq should be the TCR1 or TCR2 clock frequency, and that will need to be prescaled down to something more suitable so the 24-bit TCR counter works with your output frequency/resolution needs.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 08:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1754801#M24499</guid>
      <dc:creator>KarlP</dc:creator>
      <dc:date>2023-11-09T08:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1755304#M24503</link>
      <description>&lt;P&gt;Hi. First of all Thanks for the precise reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;basically i have only used&amp;nbsp;fs_etpu_pwm_update() function without fs_etpu_pwm_init() funciton.&amp;nbsp;&lt;/P&gt;&lt;P&gt;would that mean if i do not use&amp;nbsp;fs_etpu_pwm_init() function, etpu pwm is initialized automatically with TCR1 150MHz time base frequency?&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the "Prescale down" you mentioned, can be done by modifying function timebase frequency input from TCR1 to TCR2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 03:51:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1755304#M24503</guid>
      <dc:creator>JinwooLim</dc:creator>
      <dc:date>2023-11-10T03:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is PWM range when using eTPU function? (MPC5644A)</title>
      <link>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1755389#M24505</link>
      <description>&lt;P&gt;i have tried changing timebase freqeuncy from&amp;nbsp;etpu_a_tcr1_freq(150MHz) to&amp;nbsp;etpu_a_tcr2_freq(18750000) as input of fs_etpu_pwm_init(), fs_etpu_pwm_update() functions.&lt;/P&gt;&lt;P&gt;but the pwm signal doesnt show up..&amp;nbsp;&lt;/P&gt;&lt;P&gt;should i change eTPU timebase frequency register settings somewhere??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 06:39:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/What-is-PWM-range-when-using-eTPU-function-MPC5644A/m-p/1755389#M24505</guid>
      <dc:creator>JinwooLim</dc:creator>
      <dc:date>2023-11-10T06:39:38Z</dc:date>
    </item>
  </channel>
</rss>

