<?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: Use FTM0_CH0 to generate Pulse (Stepper Motor): Strange interrupt in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348930#M17075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you need to enable clock to Port C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at register "System Clock Gating Control Register 5" (SIM_SCGC5) in the chapter 12.2.12 of the Reference Manual to see what bit you need to enable in order to allow the clock to reach Port C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 14:16:10 GMT</pubDate>
    <dc:creator>santiago_gonzal</dc:creator>
    <dc:date>2015-03-25T14:16:10Z</dc:date>
    <item>
      <title>Use FTM0_CH0 to generate Pulse (Stepper Motor): Strange interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348929#M17074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm prototyping a Stepper command.&lt;/P&gt;&lt;P&gt;To do this, I'm using the&amp;nbsp; TWRK60 : K60N512VMD100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple bareboard project with Kds 2.0.0.&lt;/P&gt;&lt;P&gt;At this stage, I have an infinite loop which increment a counter i.&lt;/P&gt;&lt;P&gt;This work correctly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I insert my own code to drive the FTM.&lt;/P&gt;&lt;P&gt;To do this, I want start to generate a pulse. Out = 1 when Timer CNT is between 1 to 100, when CNTIN = 0 and MOD = 0xFFFF&lt;/P&gt;&lt;P&gt;Then I'm using Combine Mode on FTM0 CH0/CH1 -&amp;gt; on FTM0_CH0 (PTC1 in Mux 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bellow is the code I written to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272912494756048" jivemacro_uid="_14272912494756048" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; SIM&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;SCGC6 &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; SIM_SCGC6_FTM0_MASK; 
 
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;MODE &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_MODE_WPDIS_MASK &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;|&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_MODE_INIT_MASK ; 
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;MODE &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_MODE_FTMEN_MASK;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* FTMEN bit is write protected. Can be written only when WPDIS = 1 */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;SC &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0x00&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;UL;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Clear status and control register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CNTIN&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0x00&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;UL;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Clear counter initial register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CNT &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0x00&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;UL;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Reset counter register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnSC &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0x00&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;UL;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Clear channel status and control register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnSC &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0x00&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;UL;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Clear channel status and control register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;MOD &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;65535&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&amp;nbsp; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;/* Set up modulo register */&lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnSC &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_CnSC_ELSB_MASK;&amp;nbsp; 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnSC &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;//FTM_CnSC_CHIE_MASK;&amp;nbsp; 
 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnV&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&amp;nbsp; 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CONTROLS[&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;]&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;CnV &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;//debug AG//2;&amp;nbsp; 
 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; 
 &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;// PORTC-&amp;gt;PCR[1]= PORT_PCR_MUX(4);
 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt; 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;OUTMASK &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;|=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_OUTMASK_CH0OM_MASK; &lt;/SPAN&gt;&lt;EM style=": ; color: #008000; font-size: 10pt;"&gt;//debug AG | FTM_OUTMASK_CH1OM_MASK;
 &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;COMBINE &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; FTM_COMBINE_COMBINE0_MASK; 
 
 FTM0&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;-&amp;gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;SC&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;=&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; (uint32_t)(&lt;STRONG&gt;FTM_SC_CLKS&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;|&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;FTM_SC_PS&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808000; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; (;;) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 i&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;++&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;;
 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;
 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I comment line 24, the code is executed and loop in the infinite loop with I++.&lt;/P&gt;&lt;P&gt;If I uncomment line 24, Code will loop in startup_MK60D10.S:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272913783642724" jivemacro_uid="_14272913783642724"&gt;
&lt;P&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt; &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: 10pt;"&gt;.size&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; Default_Handler, . - Default_Handler&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than&amp;nbsp; I can't observe my signal on Pin PTC1!&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;Do you see any problem in my FTM initialization?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 13:51:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348929#M17074</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-25T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use FTM0_CH0 to generate Pulse (Stepper Motor): Strange interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348930#M17075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you need to enable clock to Port C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at register "System Clock Gating Control Register 5" (SIM_SCGC5) in the chapter 12.2.12 of the Reference Manual to see what bit you need to enable in order to allow the clock to reach Port C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348930#M17075</guid>
      <dc:creator>santiago_gonzal</dc:creator>
      <dc:date>2015-03-25T14:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use FTM0_CH0 to generate Pulse (Stepper Motor): Strange interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348931#M17076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We never think to the simple port activation when starting from bareboard!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I activate SCGC5 on PortC, but FTM0_CH0 pin never change&amp;nbsp; state!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see any problem in the FTM0 initialization?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348931#M17076</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-25T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use FTM0_CH0 to generate Pulse (Stepper Motor): Strange interrupt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348932#M17077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;Just need to delete following line!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;FTM0-&amp;gt;OUTMASK |= FTM_OUTMASK_CH0OM_MASK; //debug AG | FTM_OUTMASK_CH1OM_MASK;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;:smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Use-FTM0-CH0-to-generate-Pulse-Stepper-Motor-Strange-interrupt/m-p/348932#M17077</guid>
      <dc:creator>arnogir</dc:creator>
      <dc:date>2015-03-25T14:29:00Z</dc:date>
    </item>
  </channel>
</rss>

