<?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 K10 FTM2 Set/GetOffsetTicks problems in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-FTM2-Set-GetOffsetTicks-problems/m-p/175241#M386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the problem is that SetOffsetTicks doesn't work always.&amp;nbsp;Function is called about once a second.&lt;/P&gt;&lt;P&gt;Quite often the&amp;nbsp;new value&amp;nbsp;doesn't go to HW, and readback by GetOffsetTicks returns the&amp;nbsp;previous CnV value.&lt;/P&gt;&lt;P&gt;is there any knwon issue ni HW or PE-generated code?&lt;/P&gt;&lt;P&gt;Does FTM2 write erroneously the earlier value from cache register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checked&amp;nbsp;the generated C code and disassemble-file, seems to be OK.&lt;/P&gt;&lt;P&gt;CPU revision is 0N96B, errata doesn't mention this kind of problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added test counters:&lt;/P&gt;&lt;P&gt;TMR_SetCount[ChannelIdx]++;&lt;/P&gt;&lt;P&gt;TMR_GetCount[ChannelIdx]++;&lt;/P&gt;&lt;P&gt;They show that Set/Get functions are called correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 19:20:57 GMT</pubDate>
    <dc:creator>MarkP_</dc:creator>
    <dc:date>2012-06-26T19:20:57Z</dc:date>
    <item>
      <title>K10 FTM2 Set/GetOffsetTicks problems</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-FTM2-Set-GetOffsetTicks-problems/m-p/175241#M386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the problem is that SetOffsetTicks doesn't work always.&amp;nbsp;Function is called about once a second.&lt;/P&gt;&lt;P&gt;Quite often the&amp;nbsp;new value&amp;nbsp;doesn't go to HW, and readback by GetOffsetTicks returns the&amp;nbsp;previous CnV value.&lt;/P&gt;&lt;P&gt;is there any knwon issue ni HW or PE-generated code?&lt;/P&gt;&lt;P&gt;Does FTM2 write erroneously the earlier value from cache register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checked&amp;nbsp;the generated C code and disassemble-file, seems to be OK.&lt;/P&gt;&lt;P&gt;CPU revision is 0N96B, errata doesn't mention this kind of problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added test counters:&lt;/P&gt;&lt;P&gt;TMR_SetCount[ChannelIdx]++;&lt;/P&gt;&lt;P&gt;TMR_GetCount[ChannelIdx]++;&lt;/P&gt;&lt;P&gt;They show that Set/Get functions are called correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 19:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-FTM2-Set-GetOffsetTicks-problems/m-p/175241#M386</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-06-26T19:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: K10 FTM2 Set/GetOffsetTicks problems</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/K10-FTM2-Set-GetOffsetTicks-problems/m-p/175242#M387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is &amp;nbsp;probably that the register is buffered - that's why you &amp;nbsp;don't immediatelly read the written value, because you read the current value of the counter not what you wrote. When the register is written, the value is applied after te buffer is synchronized to the counter. It depends on the settings but the register should be synchronized after the end of the period. To force synchronization, it's necessary to disable and enable the timer again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Petr Hradsky&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 18:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/K10-FTM2-Set-GetOffsetTicks-problems/m-p/175242#M387</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2012-06-28T18:40:14Z</dc:date>
    </item>
  </channel>
</rss>

