<?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: FlexTimer0 - k20dx256 vll10 will not toggle on compare in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209401#M898</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;The problem was the software control bit. When it is on, it overrides the toggle bit of the timer. Thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 06:36:42 GMT</pubDate>
    <dc:creator>Cdn_aye</dc:creator>
    <dc:date>2012-10-12T06:36:42Z</dc:date>
    <item>
      <title>FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209393#M890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used Device Init to set up&amp;nbsp; FTM0_CH0 to do an input capture on ptc1 (alt4, pin 71) and to do an output compare on FTM0_CH2. When the counter compare triggers, the FTM0_CH2 (alt4, pin 73) was set in device init to toggle ptc3. This is code purely generated by the cw10.3 beta2 wizard (cw10.2 was tested and worked/failed the same way).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We put a signal in on ptc1 and FTM0 traps on the ISR for TOF, Edge Capture and Output compare IRQ's. So we know that the timer is working. But the output ptc3 never toggles. Even if we disconnect pt3 in device init, from the timer and try to do a bit banging port bit toggle using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOC_PTOR |= (1&amp;lt;&amp;lt;3);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The port will not toggle.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we generate a project without FTM0 and just with ptc3 as a device init component, then use GPIOC_PTOR |= (1&amp;lt;&amp;lt;3); the code will toggle the port bit.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something fundamental I am missing? I thought we could use PTC1 and PTC3 in the alt4 configuration with FTM0. But it doesn't seem to work.&lt;SPAN aria-label="Shocked" class="emoticon-inline emoticon_shocked" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a custom board so we have to change to another port and pin if we have made a design error in choosing to toggle PTC3 with FTM0_CH2. Any suggestions would be appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339098"&gt;ftm0_ftm2-toggle-of-ptc3-not-working.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 04:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209393#M890</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-04T04:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209394#M891</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;could you please post here the demonstration project in order to analyze it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 07:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209394#M891</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-10-04T07:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209395#M892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://temp-zip.s3.amazonaws.com/PTC3_dev_init.zip?AWSAccessKeyId=1YRY3X8P49KQG5A3DG82&amp;amp;Expires=1349706465&amp;amp;Signature=u%2BJgViM4DsApu7InY5VwIYEXpbI%3D"&gt;http://temp-zip.s3.amazonaws.com/PTC3_dev_init.zip?AWSAccessKeyId=1YRY3X8P49KQG5A3DG82&amp;amp;Expires=1349706465&amp;amp;Signature=u%2BJgViM4DsApu7InY5VwIYEXpbI%3D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As I noted before, this component for the ftm0 does not have the auto toggle for ptc3. This on has a manual toggle. Neither works as long as the ftm0 component is in the project. We can toggle the bit if the ftm0 is disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a download link of the file. I have posted the file, but I do not know how to attach a file to the reply or when the posts of the file I made even went. I published them but I don't know if you get a message. It would be a lot of help to have a help document or tutorial on how to use the new community forum, not on what it does, but how to do it. It is great but a time sink when you don't know how to do the simple things.&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;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:32:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209395#M892</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-04T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209396#M893</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;&lt;SPAN style="text-decoration: line-through;"&gt;I was not able to see the output on PTC3 with your project.&lt;/SPAN&gt; Could you please double check that you measure the requested pin and you have selected the correct CPU in PEx project? Did you checked the errata to your chip mask?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code to see the PTC3 pin toggle:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;for(;;) {&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp; counter++;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp; GPIOC_PTOR |= 8;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//toggles pin 3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to see the output of the FTM0_CH2 on PTC3 too. Please see the attached settings of Init_FTM component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding forum and attachments. I have reported this functionality as a forum issue. In meantime as workaround please use the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1 Post your message without attachments.&lt;/P&gt;&lt;P&gt;#2 Edit the just posted message using Edit button:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_36.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38003iF29E836E8C181B8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_36.png" alt="pastedImage_36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;#3 Now you should be able to add the attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209396#M893</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-10-08T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209397#M894</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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes; this is exactly the problem and this is the reason for the SR. We cannot see the output either, no matter what we do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have measured this pin many, many, many times. Please read through the SR note I posted again; we cannot see an output if we have the flextimer assigned, we can see an output if we do not see the flextimer assigned. It does not matter which flextimer. If any flex timer is assigned we cannot see an output on ptc3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see anything on this in the errata I have… but maybe mine is out of date. Please send me the errata you are using and I will recheck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 21:16:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209397#M894</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-08T21:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209398#M895</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;there is probably misunderstanding. I am able to see the PTC3 toggle as GPIO and also as FTM2_CH0 output. I have also verified FTM2_CH0 in input capture mode in the end and it works on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have double-checked your project with GPIO toggle (PTC3_dev_init) and it works on my side. So please ignore the following sentence in previous response: I was not able to see the output on PTC3 with your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, could you please send me the project with FTM that does not work on your side in order to analyze it. You originally reported this as a issue but you did not send a project demonstrating this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link to Errata:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K20_100&amp;amp;fpsp=1&amp;amp;tab=Documentation_Tab" title="https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K20_100&amp;amp;fpsp=1&amp;amp;tab=Documentation_Tab"&gt;https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K20_100&amp;amp;fpsp=1&amp;amp;tab=Documentation_Tab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just click on Errata in left menu. However I have not find any issue related to FlexTimer there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 11:12:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209398#M895</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-10-09T11:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209399#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will add the example project using FTM0 for input capture on ptc1 with interrupt, output compare on FTM2 with interrupt, toggle set on output compare for FTM2 ptc3. The toggle does not work. If you turn off the toggle in DeviceInit for FTM2 and uncomment the code that manually toggles ptc3. The output will toggle. It would not do this before; when I started up the project I was asked to select the cpu. This had already been done. After I did this I could manually toggle ptc3. I think there might be an error in DevInit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get this to work, would you be able to replicate the input on ptc1 on the output of ptc3 using ftm0 as the input capture, ftm2 for output compare please? The defaults are ok, any duty cycle. We just want to see the two timers tracking each other and the output working. Thank you,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:39:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209399#M896</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-09T18:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209400#M897</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;please find my demonstration project of the Init_FTM component in the following configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FTM0_CH2 - PTC3 output compare&lt;/P&gt;&lt;P&gt;FTM0_CH0 - PTC1 input capture on rising method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally I have not encountered any problem during project creation. I am able to see the ouput on PTC3, when I wire it into PTC1 input I receive periodical interrupt on channel 1. From my perspective the code in DI is OK. I have used CW V10.3 Beta2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 15:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209400#M897</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2012-10-11T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: FlexTimer0 - k20dx256 vll10 will not toggle on compare</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209401#M898</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;The problem was the software control bit. When it is on, it overrides the toggle bit of the timer. Thank you for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 06:36:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FlexTimer0-k20dx256-vll10-will-not-toggle-on-compare/m-p/209401#M898</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-12T06:36:42Z</dc:date>
    </item>
  </channel>
</rss>

