<?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: Using timerint and the &amp;quot;list of values&amp;quot;. in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319052#M2420</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;unfortunately, this is a limitation of Processor Expert. &lt;/P&gt;&lt;P&gt;If you need to change for example period at runtime, it's possible to use the TimerUnit_LDD component and it's method SetPeriodTicks (you need to switch to Advanced view mode to see all methods).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 13:23:36 GMT</pubDate>
    <dc:creator>Petr_H</dc:creator>
    <dc:date>2014-07-14T13:23:36Z</dc:date>
    <item>
      <title>Using timerint and the "list of values".</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319051#M2419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am ssing timerint and the "list of values". It appears that the list of values is limited to 16 items. Is it possible to increase this limit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 11:54:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319051#M2419</guid>
      <dc:creator>barbercolman</dc:creator>
      <dc:date>2014-07-11T11:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using timerint and the "list of values".</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319052#M2420</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;unfortunately, this is a limitation of Processor Expert. &lt;/P&gt;&lt;P&gt;If you need to change for example period at runtime, it's possible to use the TimerUnit_LDD component and it's method SetPeriodTicks (you need to switch to Advanced view mode to see all methods).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;P&gt;Processor Expert Support Team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 13:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319052#M2420</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2014-07-14T13:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using timerint and the "list of values".</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319053#M2421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Petr,&lt;/P&gt;&lt;P&gt;The explanation of SetPeriodTicks is: "set timer re-initialization period (in timer ticks)". I can't understand what is the meaning of in timer ticks. Can you please explain in detail about using this function? Better with an exemple.&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Xiaocong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 09:28:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319053#M2421</guid>
      <dc:creator>xiaocongfu</dc:creator>
      <dc:date>2015-05-04T09:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using timerint and the "list of values".</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319054#M2422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The timer contains a counter that counts to some specific number (modulo) which determines the period.&lt;/P&gt;&lt;P&gt;The real time of the period is determined by the "time ticks number" * "length of the timer tick". The length of one timer tick is determined by input frequency of the timer set in the component. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, let's have 3MHz input clock and 10ms period (on-match mode using TPM0 modulo register for period is used because it allows adjusting the period).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1483i8879CC08D67DC65C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, if you look into TU1.h (or other name if you renamed the component), you should have the constants like this:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#define TU1_CNT_INP_FREQ_U_0 0x002DC6C0UL /* Counter input frequency in Hz */&lt;/P&gt;&lt;P&gt;#define TU1_CNT_INP_FREQ_R_0 3000003.000003F /* Counter input frequency in Hz */&lt;/P&gt;&lt;P&gt;#define TU1_CNT_INP_FREQ_COUNT 0U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Count of predefined counter input frequencies */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define TU1_PERIOD_TICKS&amp;nbsp;&amp;nbsp; 0x7530UL&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization value of period in 'counter ticks' */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#define TU1_NUMBER_OF_CHANNELS 0x00U&amp;nbsp;&amp;nbsp; /* Count of predefined channels */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can see that the period is 0x7530 ticks, which is 30000 in decimal base. The period in real time would be 30000 * (1/input frequency) = 30000 * (1/3000000) = 0.01s = 10ms&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, these constant are useful if you'd like to do time calculations in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petr Hradsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 12:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Using-timerint-and-the-quot-list-of-values-quot/m-p/319054#M2422</guid>
      <dc:creator>Petr_H</dc:creator>
      <dc:date>2015-05-26T12:31:25Z</dc:date>
    </item>
  </channel>
</rss>

