<?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>Kinetis MicrocontrollersのトピックRe: KV5x Nano-edge placement example.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498903#M31087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;I am sorry, in the above code and the PWM waveform, the eFlexPWM works in dithering mode instead of real nano-edge mode, I am developing the code so that the eFlexPWM works in real nano-edge PWM mode. I think I can finish it before the end of this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 09:55:41 GMT</pubDate>
    <dc:creator>xiangjunrong</dc:creator>
    <dc:date>2016-04-19T09:55:41Z</dc:date>
    <item>
      <title>KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498898#M31082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need a simple example showing how to configure the KV5x PWM0 registers to generate high resolution pwm.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 12:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498898#M31082</guid>
      <dc:creator>arimendes</dc:creator>
      <dc:date>2016-04-12T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498899#M31083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;If you just want to use the nano-edge placement feature, you just need to change the following register:&lt;/P&gt;&lt;P&gt;1)set the PWMx_MCTRL1=0x03;&amp;nbsp; //set MONPLL=3, in this setting, the PWM clock will be multiplied by 32&amp;nbsp; so taht you can get the 32 times clock frequency for fractional module.&lt;/P&gt;&lt;P&gt;2)set the PWMx_SMnFRCTRL register, if you want to enable the SMx fractional function, just set the FRAC_PU. If you want to enable the fractional function for the front edge, set the&amp;nbsp; FRAC23_EN bit, if you want to enable fractional feature of hind edge, set the FRAC45_EN bit, if you want both edges, set both FRAC45_EN and FRAC23_EN. It is okay, in other words, generally:&lt;/P&gt;&lt;P&gt;PWMx_SMnFRCTRL=0x0114;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I think the MONPLL input clock frequency should meet the frequency specification, for example, in normal run mode, the Fast Peripheral clock is 100mHz, I think the 100MHz clock as eFlexPWM clock is okay, the MONPLL can multiply it to 3.2GHz.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498899#M31083</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-13T09:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498900#M31084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xiangjun,&lt;/P&gt;&lt;P&gt;I used the example of the thread: HRPWM example for MKV46? &lt;/P&gt;&lt;P&gt;I can not make this work or for KV4x or for KV5x. Changing the FRACVAL value does not change the duty cycle.&lt;/P&gt;&lt;P&gt;High resolution PWM is the feature that defines a Microcontroller as "for power converter applications". Why Freescale did not release a single example of how to use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 22:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498900#M31084</guid>
      <dc:creator>arimendes</dc:creator>
      <dc:date>2016-04-15T22:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498901#M31085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;I developed an example based on KV58 and KDS tools, which can demos the nano edge function of eFlexPWM, hope it can help you.&lt;/P&gt;&lt;P&gt;I attach the code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32378i79C1A9FC64662ED1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 06:25:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498901#M31085</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-18T06:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498902#M31086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the example code for the nano edge PWM.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 06:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498902#M31086</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-18T06:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498903#M31087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;I am sorry, in the above code and the PWM waveform, the eFlexPWM works in dithering mode instead of real nano-edge mode, I am developing the code so that the eFlexPWM works in real nano-edge PWM mode. I think I can finish it before the end of this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 09:55:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498903#M31087</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-19T09:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498904#M31088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;Sorry for the delay. I developed an example for the nano-edge placement feature of eFlexPWM based on TWR-KV58F220M and KDS ver3.0 tools. I attach the code and screenshot of the scope.&lt;/P&gt;&lt;P&gt;Regarding the code, you have to pay attention to the following items:&lt;/P&gt;&lt;P&gt;1)Only eFlexPWMA supports nano-edge placement feature, the eFlexPWMB module does not support the nano-edge placement feature, but the FlexPWMB module supports dithering mode.&lt;/P&gt;&lt;P&gt;2)The PLL part of MCG in the RM of KV5x has error, there is a divider2 after VCO, but the RM does not mention the divider2, which will leads wrong clock frequency.&lt;/P&gt;&lt;P&gt;/In the code, the MCG5=0x03, MCG_C6=0x50, VCO output will be [50MHz/(3+1)]*32=400MHz, after divider2, the MCGOUTCLK will be 200MHz, core/system clock is 200MHz&lt;/P&gt;&lt;P&gt;//Explanation:The eFlexPWM0 is driven by fast peripheral clock because the SIM_CLKDIV1 is 0x01370000. The fast peripheral clock frequency is 100MHz, the PWM signal frequency is 100MHz/16=6.25mhz.&lt;/P&gt;&lt;P&gt;//The fractional clock frequency is 32*100MHz=3.2G, the PWM0_SM0FRACVAL5=15&amp;lt;&amp;lt;11; the delay=15*(1/3.2G)=5nS&lt;/P&gt;&lt;P&gt;//The analysis match with the waveform on the scope:&lt;/P&gt;&lt;P&gt;//The yellow waveform is the PWMA_A0(A40 on primary elevator), the red waveform is the PWMA_B0(A39 on primary elevator)&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34757iBDD9BA62C44E8ACF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 08:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498904#M31088</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-25T08:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498905#M31089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the code here, it is developed on KDS ver3.0 and TWR-KV58F220M tower board.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 08:58:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498905#M31089</guid>
      <dc:creator>xiangjunrong</dc:creator>
      <dc:date>2016-04-25T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: KV5x Nano-edge placement example.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498906#M31090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Xiangjun rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested your example and it worked. Changing the values of SM0FRACVAL2 and&amp;nbsp; SM0FRACVAL3, changes the delay of the rising and of the falling edges of PWM0_A and Changing the values of SM0FRACVAL4 and&amp;nbsp; SM0FRACVAL5, changes the delay of the rising and of the falling edges of the PWM0_B.&lt;/P&gt;&lt;P&gt;I also noted that at run time, the changes in SMxFRACVALx only takes effect after the instruction: PWM0_MCTRL0 |= 0x0007;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Ari.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV5x-Nano-edge-placement-example/m-p/498906#M31090</guid>
      <dc:creator>arimendes</dc:creator>
      <dc:date>2016-04-25T17:24:10Z</dc:date>
    </item>
  </channel>
</rss>

