<?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 How to create a timer? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437174#M3976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am new at using kinetis and a microprocessor.&lt;/P&gt;&lt;P&gt;I am using a FRDM -KL25Z, and it's being hard to find literature to create a timer as I need.&lt;/P&gt;&lt;P&gt;I need to create a timer to count at rising edges. And the signal comes from an external interruption.&lt;/P&gt;&lt;P&gt;I am thinking about using the component "TimerUnit_LDD". I know how to configure it. However, I am having problems regarding the code to initialize it properly, how to use the events and to capture the signal.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 23:23:36 GMT</pubDate>
    <dc:creator>augustopolettoc</dc:creator>
    <dc:date>2015-10-05T23:23:36Z</dc:date>
    <item>
      <title>How to create a timer?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437174#M3976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am new at using kinetis and a microprocessor.&lt;/P&gt;&lt;P&gt;I am using a FRDM -KL25Z, and it's being hard to find literature to create a timer as I need.&lt;/P&gt;&lt;P&gt;I need to create a timer to count at rising edges. And the signal comes from an external interruption.&lt;/P&gt;&lt;P&gt;I am thinking about using the component "TimerUnit_LDD". I know how to configure it. However, I am having problems regarding the code to initialize it properly, how to use the events and to capture the signal.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 23:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437174#M3976</guid>
      <dc:creator>augustopolettoc</dc:creator>
      <dc:date>2015-10-05T23:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timer?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437175#M3977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Augusto,&lt;/P&gt;&lt;P&gt;Could you use a GPIO pin configured as input with interrupt enabled and simple increment a counter in the ISR?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 16:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437175#M3977</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-10-16T16:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timer?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437176#M3978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Augusto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you made progress on your project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David has a good suggestion if you only need to simply count pulses in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use an integrated timer/counter then you can take the &lt;STRONG&gt;Capture_LDD&lt;/STRONG&gt; component, which uses the &lt;STRONG&gt;TPM&lt;/STRONG&gt; module in input capture mode to count the input pulses according to the selected edge (rising/falling or both).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For help and typical code for the component you can right-click on it and then select "Help on component". See this brief tutorial:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2012/11/12/getting-help-on-processor-expert-components/" title="http://mcuoneclipse.com/2012/11/12/getting-help-on-processor-expert-components/"&gt;Getting Help on Processor Expert Components | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 21:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-to-create-a-timer/m-p/437176#M3978</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-10-19T21:30:46Z</dc:date>
    </item>
  </channel>
</rss>

