<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Half Second Timer needed - read GPIO for every Half second</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146603#M3298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yevgeni:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to take 840 samples per second, if I keep for loop for 840 then if I keep tk_sleep, not sure when it finishes, for example I have to measure 24 receptacles instantaneous current and voltage for 840 samples per second, is there any way I can measure makesure 840 samples can take within one second, can I use times to happen 840 samples per second exactly without putting task in sleep using tk_sleep?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 09:32:13 GMT</pubDate>
    <dc:creator>TVNAIDU</dc:creator>
    <dc:date>2009-10-15T09:32:13Z</dc:date>
    <item>
      <title>Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146598#M3293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to add smal pioece of code to read GPIO for every Half second code, any timer I can invoke from task to read fro every Half-second?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 02:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146598#M3293</guid>
      <dc:creator>TVNAIDU</dc:creator>
      <dc:date>2009-10-14T02:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146599#M3294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For interval of half a second,&amp;nbsp;32-bit timer needs to be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you can count the OS ticks (the default is 50 ms).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 02:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146599#M3294</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-10-14T02:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146600#M3295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, can I crwate a separate task for this, in main function in for loop, can I use tk_sleep for Half second, that way, task collects data for every Half second.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;task_main_fn()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; collect GPIO data and do process....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tk_sleep(half-second);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 22:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146600#M3295</guid>
      <dc:creator>TVNAIDU</dc:creator>
      <dc:date>2009-10-14T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146601#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes, it is the simplest solution: the dedicated task, which reads and processes GPIO and then sleeps for half a second.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 22:26:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146601#M3296</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-10-14T22:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146602#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Yevgeni. appreciated.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 23:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146602#M3297</guid>
      <dc:creator>TVNAIDU</dc:creator>
      <dc:date>2009-10-14T23:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146603#M3298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yevgeni:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to take 840 samples per second, if I keep for loop for 840 then if I keep tk_sleep, not sure when it finishes, for example I have to measure 24 receptacles instantaneous current and voltage for 840 samples per second, is there any way I can measure makesure 840 samples can take within one second, can I use times to happen 840 samples per second exactly without putting task in sleep using tk_sleep?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 09:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146603#M3298</guid>
      <dc:creator>TVNAIDU</dc:creator>
      <dc:date>2009-10-15T09:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146604#M3299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://forums.freescale.com/t5/user/viewprofilepage/user-id/15970" target="_self"&gt;&lt;SPAN&gt;TVNAIDU&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;let discuss sampling the analog values in the separate thread.&lt;/P&gt;&lt;P&gt;Coukd you, please, open the new thread with the descriptive name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 14:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146604#M3299</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-10-15T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Half Second Timer needed - read GPIO for every Half second</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146605#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes yevgenit, I opened another thread "Sampling of Analog values". Please take a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 18:06:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Half-Second-Timer-needed-read-GPIO-for-every-Half-second/m-p/146605#M3300</guid>
      <dc:creator>TVNAIDU</dc:creator>
      <dc:date>2009-10-15T18:06:50Z</dc:date>
    </item>
  </channel>
</rss>

