<?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: KINETIS KE06 EPWM Problem</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737234#M44992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed port FTM2 CH1 -&amp;gt; FTM2 CH2 and remapped to PTD0&lt;/P&gt;&lt;P&gt;I tested this program using remap function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;However, the same symptoms are repeated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;PTC0, PTC1, PTC3, PTC4, PTC5 occur pulse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2018 12:04:54 GMT</pubDate>
    <dc:creator>donghoha</dc:creator>
    <dc:date>2018-05-10T12:04:54Z</dc:date>
    <item>
      <title>KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737232#M44990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello. This is Mr. Dongho Ha&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am trying FTM EPWM using&amp;nbsp;&lt;SPAN&gt;KEXX_DRIVERS_V1.2.1_DEVD example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;My source code is below (using IAR Compliler)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;---------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#include "common.h"&lt;BR /&gt;#include "gpio.h"&lt;BR /&gt;#include "ftm.h"&lt;BR /&gt;#include "sysinit.h"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#define ACT_LED_Init() GPIOA-&amp;gt;PDDR |= GPIO_PTA7_MASK&lt;BR /&gt;#define ACT_LED_Toggle() GPIOA-&amp;gt;PTOR = GPIO_PTA7_MASK&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main (void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; unsigned char i;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; sysinit();&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; ACT_LED_Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("\nRunning the FTM EPWM_demo project.\n");&lt;BR /&gt;&amp;nbsp; UART_WaitTxComplete(TERM_PORT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // FTM2 is set as edge aligned pwm mode, high true pulse */&lt;BR /&gt;&amp;nbsp; FTM_PWMInit(FTM2, FTM_PWMMODE_EDGEALLIGNED, FTM_PWM_HIGHTRUEPULSE); &lt;BR /&gt;&amp;nbsp; FTM_SetFTMEnhanced(FTM2); //FTMEN enable&lt;BR /&gt;&amp;nbsp; FTM_SetModValue(FTM2, 40000); //update MOD value, 16bit value, 1KHz&lt;BR /&gt;&amp;nbsp; /* set clock source, start counter */&lt;BR /&gt;&amp;nbsp; FTM_ClockSet(FTM2, FTM_CLOCK_SYSTEMCLOCK, FTM_CLOCK_PS_DIV1); &lt;BR /&gt;&amp;nbsp; FTM_SetChannelValue(FTM2, FTM_CHANNEL_CHANNEL1, 0); &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; i=0;&lt;BR /&gt;&amp;nbsp; while(1)&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; FTM_SetChannelValue(FTM2, FTM_CHANNEL_CHANNEL1, i*400); &lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(i&amp;gt;=100)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i=0;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Delay_ms(10);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; i++;&lt;BR /&gt;&amp;nbsp; } &lt;BR /&gt;}&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I used FTM2 channel 1. (GPIO PTC1 FTM2CH1)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This example operate well. (0~100% variation for one second)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Modulation frequency : 1kHz.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;But all FTM2 port output 1kHz pulse with fixed duty.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;[ PTC0(FTM2CH0),PTC2(FTM2CH2),PTC3(FTM2CH3),PTB4(FTM2CH4),PTB5(FTM2CH5) ]&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;FTM2CH0~FTM2CH5 output 1Khz pulse regardless of GPIO setting(Input/Output).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I want to operate only PTC1(FTM2CH1) well.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;And if FTM Module change , (using FTM0, FTM1) , MCU be halted.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Question1.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I want to operate only PTC1(FTM2CH1) well.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;And I want to use other GPIO pins(PTC0, PTC2, PTC3, PTB4, PTB5) for input or output normaly.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Question2.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I want to use FTM0 or FTM1 EPWM well.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I tried 2days.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;But I couldn't find any method.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I want help for these problems.&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 03:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737232#M44990</guid>
      <dc:creator>donghoha</dc:creator>
      <dc:date>2018-05-09T03:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737233#M44991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Many of the I/O pins are shared with on-chip peripheral functions. The peripheral modules have priority over the I/O, so when a peripheral is enabled, the associated I/O functions are disabled. So if you want to use PTC0, PTC2, PTC3, PTB4, PTB5, you can remap the ALT FTM2 function to other pin. But it seems you can't eliminate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 09:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737233#M44991</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-05-10T09:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737234#M44992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed port FTM2 CH1 -&amp;gt; FTM2 CH2 and remapped to PTD0&lt;/P&gt;&lt;P&gt;I tested this program using remap function.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;However, the same symptoms are repeated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;PTC0, PTC1, PTC3, PTC4, PTC5 occur pulse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #fdfdfd;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 12:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737234#M44992</guid>
      <dc:creator>donghoha</dc:creator>
      <dc:date>2018-05-10T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737235#M44993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you change SIM-&amp;gt;PINSEL0 and PINSEL1? There are some functions you can use in sim.c, like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SIM_RemapFTM2CH2ToPTD0();&amp;nbsp; //ptc2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_RemapFTM2CH0ToPTH0();&amp;nbsp; //ptc0&lt;/P&gt;&lt;P&gt;Otherwise these pin will always output PWM wave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 03:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737235#M44993</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-05-11T03:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737236#M44994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tested by remap function.&lt;/P&gt;&lt;P&gt;But same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 03:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737236#M44994</guid>
      <dc:creator>donghoha</dc:creator>
      <dc:date>2018-05-11T03:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737237#M44995</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 try this on FTM_EPWM_demo project. I just add above 2 sentence and the PWM wave on ptc0 and ptc2 stop. Please try it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 08:03:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737237#M44995</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-05-11T08:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737238#M44996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate to you.&lt;/P&gt;&lt;P&gt;I tried this operation by your comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used KINETIS KE06 44pin chip.&lt;/P&gt;&lt;P&gt;It don't have PTF, PTG port.&lt;/P&gt;&lt;P&gt;So I remapped PTC(FTM2) port to PTF(FTM2CH0) and PTG(FTMCH2~FTMCH5).&lt;/P&gt;&lt;P&gt;now PTC0, PT2~PTC5 input/output operate well and FTM2CH1 PWM also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;I'm disappointed with MCU structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 09:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737238#M44996</guid>
      <dc:creator>donghoha</dc:creator>
      <dc:date>2018-05-11T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: KINETIS KE06 EPWM Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737239#M44997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;Yes, I agree with you. It's structure is a bit strange:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 09:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KINETIS-KE06-EPWM-Problem/m-p/737239#M44997</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-05-11T09:36:51Z</dc:date>
    </item>
  </channel>
</rss>

