<?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>Processor Expert SoftwareのトピックEtpu channel has burr when PWM output</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1502914#M5194</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; When using the ETPU channel to set the PWM output duty cycle to 0 or 100%, there is about 0.19% duty cycle.I would like to know what factors are involved in this phenomenon and whether it is related to the MPC5634 chip itself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1660011891922.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189561i31D41ADFBFEBC0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1660011891922.png" alt="ZEROooo_0-1660011891922.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1660011901413.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189562i887A06274C46467C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1660011901413.png" alt="ZEROooo_1-1660011901413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 02:25:31 GMT</pubDate>
    <dc:creator>ZEROOO</dc:creator>
    <dc:date>2022-08-09T02:25:31Z</dc:date>
    <item>
      <title>Etpu channel has burr when PWM output</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1502914#M5194</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; When using the ETPU channel to set the PWM output duty cycle to 0 or 100%, there is about 0.19% duty cycle.I would like to know what factors are involved in this phenomenon and whether it is related to the MPC5634 chip itself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_0-1660011891922.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189561i31D41ADFBFEBC0E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_0-1660011891922.png" alt="ZEROooo_0-1660011891922.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZEROooo_1-1660011901413.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189562i887A06274C46467C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZEROooo_1-1660011901413.png" alt="ZEROooo_1-1660011901413.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 02:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1502914#M5194</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2022-08-09T02:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Etpu channel has burr when PWM output</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1503494#M5195</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Are you using the standard NXP PWM eTPU function?&amp;nbsp; To update duty cycle are you calling the fs_etpu_pwm_duty() API?&amp;nbsp; What is your timing configuration - system and eTPU clock frequency, TCR1 counter frequency, etc.?&amp;nbsp; The standard PWM function is designed to output all the way from 0% to 100% duty cycle, so you should not be getting small pulses if commanding full 0 or 100%. I did a simple test in simulation with the standard PWM function, initializing one instance on a channel and driving 20%, then 100%, 0% and finally 50%, and it worked fine - see below.&amp;nbsp; But of course there are other potential variables - see questions above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PWM_0_100.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189701i8C2715CB91EE83FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWM_0_100.png" alt="PWM_0_100.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 19:13:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1503494#M5195</guid>
      <dc:creator>johndiener</dc:creator>
      <dc:date>2022-08-09T19:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Etpu channel has burr when PWM output</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1503745#M5196</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I used the following interface :fs_etpu_pwm_init()、fs_etpu_pwm_upate_period、fs_etpu_pwm_upate_duty.&amp;nbsp;CPU = MPC563xM,SYSCLK = 80 MHz,tcr1_freq = 10000000Hz.I can't find the reason for the small pulse. Could you please provide me with a demo?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 07:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1503745#M5196</guid>
      <dc:creator>ZEROOO</dc:creator>
      <dc:date>2022-08-10T07:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Etpu channel has burr when PWM output</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1504111#M5198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I downloaded a build of the PWM eTPU function from the ASH WARE eTPU Code Builder and then got it up and running in simulation using your configuration - MPC563xM, 80MHz system, TCR1 at 10MHz.&amp;nbsp; All looks fine running 0 to 100% duty cycle.&amp;nbsp; I also downloaded a build from the CodeWarrior eTPU Function Selector and as expected that works the same.&lt;/P&gt;&lt;P&gt;This code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* initialize eTPU */ &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;if (my_system_etpu_init())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;return 1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* start eTPU */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;my_system_etpu_start();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* initialize a PWM output at 20 % duty, 20kHz */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_init(ETPU_PWM_CHAN, FS_ETPU_PRIORITY_HIGH, 20000, 2000, FS_ETPU_PWM_ACTIVEHIGH, FS_ETPU_TCR1, etpu_a_tcr1_freq);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at_time(1000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_duty(ETPU_PWM_CHAN, 10000); /* 100 % , 20 kHz */&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;at_time(2000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_duty(ETPU_PWM_CHAN, 0); /* 0 % , 20 kHz */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;at_time(3000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_update(ETPU_PWM_CHAN, 10000, 10000, etpu_a_tcr1_freq); /* 100 % , 10 kHz */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;at_time(4000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_update(ETPU_PWM_CHAN, 10000, 0, etpu_a_tcr1_freq); /* 0 % , 10 kHz */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;at_time(5000);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fs_etpu_pwm_update(ETPU_PWM_CHAN, 10000, 5000, etpu_a_tcr1_freq); /* 50 % , 10 kHz */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Produces this output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PWM_0_100_v2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/189833i2F050FC0F8A069E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWM_0_100_v2.png" alt="PWM_0_100_v2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've attached my project for you to look over - you should be able to use the etpu_gct.[c,h] files and other pertinent source to try it in your setup, or at least check out code differences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:28:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Etpu-channel-has-burr-when-PWM-output/m-p/1504111#M5198</guid>
      <dc:creator>johndiener</dc:creator>
      <dc:date>2022-08-10T15:28:24Z</dc:date>
    </item>
  </channel>
</rss>

