<?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: Reg: Using Timers in IMX in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276707#M31002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But how do access these registers lik (GPT Interrupt Register (GPT_IR), GPT Status Register (GPT_SR)) etc with Linux as by OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry for the dumb question. I have already worked on controllers only. This is my first time with a Processor with OS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2013 08:06:12 GMT</pubDate>
    <dc:creator>vishvapathi</dc:creator>
    <dc:date>2013-08-29T08:06:12Z</dc:date>
    <item>
      <title>Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276703#M30998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; I am new to IMX and Linux. I am interested in using Timers in my program. Kindly share some sample or pointers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 05:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276703#M30998</guid>
      <dc:creator>vishvapathi</dc:creator>
      <dc:date>2013-08-27T05:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276704#M30999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Karnan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can look into our BSP to gpt timer's use, but first you need to list your requirement, what use case do you want for timer? Basically, there are two modes for our timers, one is reload mode, the other is compare mode:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Reload: setting an counter value, everytime timer count to this value, it will generate an interrupt and auto reload this value and redo the counting;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Compare: timer is running freely and after it goes up/down to the highest/lowest value, it will loop back, eveytime it run to the value match the compare value we set int the register, it will generate an interrupt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 02:27:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276704#M30999</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-08-29T02:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276705#M31000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your response. I need to generate interrupts for multiple time durations such as 200ms, 1s, 5s,30s2min etc. Reload mode will suit for my requirement. I have already tried it in SIGALRM method and it works fine for now,&lt;/P&gt;&lt;P&gt;But i want to implement the same in Interrupt method. I doesnt want to load all my events to a single timer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I havent worked on interrupts in I.MX+Linux, Kindly give me some pointers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276705#M31000</guid>
      <dc:creator>vishvapathi</dc:creator>
      <dc:date>2013-08-29T07:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276706#M31001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think either reload mode and compare mode are good enough for you. Take GPT for example, looking at the GPT register on i.MX6Q, it has three compare registers(GPT_OCRx), you can set them in what ever you want. For example, when running at compare mode, you need to set GPT in free run mode , see FRR bit in GPT_CR register, it will run from 0x0 to 0xffffffff then roll back to 0x0. And it will generate interrupts each time its counter equal to the compare registers in GPT_OCRx. Then you can re-set the compare value in these three registers to make the interrupt coming at 200mx, 1s, 5s, 30s etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We didn't have patch for such function you want, but timer's basic function is simple, you can just read GPT's register description based on what I said upper to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 07:50:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276706#M31001</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-08-29T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276707#M31002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But how do access these registers lik (GPT Interrupt Register (GPT_IR), GPT Status Register (GPT_SR)) etc with Linux as by OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sorry for the dumb question. I have already worked on controllers only. This is my first time with a Processor with OS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 08:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276707#M31002</guid>
      <dc:creator>vishvapathi</dc:creator>
      <dc:date>2013-08-29T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276708#M31003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can refer to our module's code, and you also need to learn how to request an interrupt handle in linux OS. Please look into sample code first:&lt;/P&gt;&lt;P&gt;arch/arm/plat-mxc/time.c, access registers can use API, __raw_reald() and __raw_writel().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 09:29:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276708#M31003</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-08-29T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Using Timers in IMX</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276709#M31004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Thanks for your input. I will try to learn. Can you give some pointers abt Serial Interrupt also plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Reg-Using-Timers-in-IMX/m-p/276709#M31004</guid>
      <dc:creator>vishvapathi</dc:creator>
      <dc:date>2013-08-29T11:04:32Z</dc:date>
    </item>
  </channel>
</rss>

