<?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: Newbie question: Programming the PIT in MCF52256 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176524#M6918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DaStoned,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply. It makes more sense now&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Sorry I didn't check this earlier, due to internet access problems.&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>Mon, 04 May 2009 12:27:24 GMT</pubDate>
    <dc:creator>Prao</dc:creator>
    <dc:date>2009-05-04T12:27:24Z</dc:date>
    <item>
      <title>Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176522#M6916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a newbie to uC programming and I have a doubt regarding the PIT.&lt;/P&gt;&lt;P&gt;I'm using the PE to configure the PIT0 for 1ms. For a system frequency of 80MHz, (PIT clock = system frequency/2) I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Prescaler =4 and Modulus register=10000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm required to generate interrupts at 1ms, 30ms and 300ms. Can I use the same PIT0 function configured for 1ms and change the values of the modulus registers to generate interrupts at 30ms and 300ms?&lt;/P&gt;&lt;P&gt;Can only one interrupt be generated for each PIT channel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanking you in advance for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PRao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:35:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176522#M6916</guid>
      <dc:creator>Prao</dc:creator>
      <dc:date>2009-04-28T13:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176523#M6917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One PIT can generate only one interrupt.&lt;BR /&gt;&lt;BR /&gt;If you need know when 1, 30ms and 300ms pass, use the 1 ms interrupt handler to count to 30 and 300, respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;// The interrupt handler for PIT0 running at 1 hHz&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;irq_handler{&lt;BR /&gt;&amp;nbsp; static unsigned int tickCount = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Clear interrupt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; PCSR0 |= PIF;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; tickCount++;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Executed each 1 millisecond&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; do_tick_1ms();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Executed each 30 milliseconds&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; if (tickCount % 30 == 0) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; do_tick_30ms();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; // Executed each 300 milliseconds&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; if (tickCount &amp;gt;= 300) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; do_tick_300ms();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; tickCount = 0;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously PIT0 should be in "Set-and-Forget" operation and your "do_tick_Xm()" functions should not do anything time-consuming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by DaStoned on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-04-28&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:58 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 18:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176523#M6917</guid>
      <dc:creator>DaStoned</dc:creator>
      <dc:date>2009-04-28T18:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176524#M6918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DaStoned,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply. It makes more sense now&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Sorry I didn't check this earlier, due to internet access problems.&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>Mon, 04 May 2009 12:27:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176524#M6918</guid>
      <dc:creator>Prao</dc:creator>
      <dc:date>2009-05-04T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176525#M6919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My interrupts seem to work fine using the do_tick_Xms( ) function when they are doing less time consuming operations like u mentioned earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to do now is:&lt;/P&gt;&lt;P&gt;- to check for key press action every 30ms and take appropriate actions depending on the key&amp;nbsp;&amp;nbsp; pressed. I would also like to refresh LEDs every 30 ms. If the key press action occurs, lot of time consuming steps have to be implemented.&lt;/P&gt;&lt;P&gt;- To read battery voltage every 300ms and blink LEDs every 300 ms.&lt;/P&gt;&lt;P&gt;-&amp;nbsp; And check for action of a particular key every 2ms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I ensure that all these operations are done using a base 1ms timer.&lt;/P&gt;&lt;P&gt;Do I use both the PITs and divide the timer work between the two?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or I use separate timers for each , like both PITs and the GPTs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&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>Wed, 06 May 2009 15:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176525#M6919</guid>
      <dc:creator>Prao</dc:creator>
      <dc:date>2009-05-06T15:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176526#M6920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Prao wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I ensure that all these operations are done using a base 1ms timer.&lt;/P&gt;&lt;P&gt;Do I use both the PITs and divide the timer work between the two?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or I use separate timers for each , like both PITs and the GPTs.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Don't use PIT-s directly. If you try to do any actual work inside interrupts, you are entering a world of pain.&lt;BR /&gt;&lt;BR /&gt;I assume you have a simple main() function which contains a never-ending loop. Is that correct?&lt;BR /&gt;&lt;BR /&gt;All processing MUST be done inside the main loop. It's very simple to implement.&lt;BR /&gt;&lt;BR /&gt;You add some flags which are accessible for both interrupts and main loop. You need one flag for each period - 1ms, 30 ms and 300ms. They're just volatile integers in global scope. The interrupt handler only sets the flag (well, actually your do_tick_Xms() function does).&lt;/P&gt;&amp;nbsp;&lt;BR /&gt;&lt;P&gt;The main loop polls the flags. When main loop finds that a flag has been set, it does the processing for this&amp;nbsp; period. It doesn't get any simpler than this &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; ----- begin main.c -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;volatile unsigned int g_tick1ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;volatile unsigned int g_tick30ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;volatile unsigned int g_tick300ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;int main(void) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; while (1) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if (g_tick1ms) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // Clear the flag&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_tick1ms = 0;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Process the 1 ms tick&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // ... your&amp;nbsp; stuff here ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if (g_tick30ms) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // Clear the flag&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_tick30ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Process the 30 ms tick&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // ... your&amp;nbsp; stuff here ...&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt; &lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; if (g_tick300ms) {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; // Clear the flag&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; g_tick300ms = 0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Process the 300 ms tick&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // ... your&amp;nbsp; stuff here ...&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt; &lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----- end main.c -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----- begin interrupts.c -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;extern volatile unsigned int g_tick1ms;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;extern volatile unsigned int g_tick30ms;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;extern volatile unsigned int g_tick300ms;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void do_tick_1ms() {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; g_tick1ms = 1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void do_tick_30ms() {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; g_tick30ms = 1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;void do_tick_300ms() {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; g_tick300ms = 1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----- end interrupts.c -----&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A word of warning: sharing any data between an interrupt handler and main loop is tricky. If you only exchange an integer (or any other atomic data) just declare it volatile and you'll be fine. Any non-atomic data (strings, arrays, structs, doubles etc) must be protected from simultaneous access. It's done by locking the data and this is where it gets complicated &lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt; Hopefully you don't need that, however.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by DaStoned on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-05-08&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;03:01 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 18:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176526#M6920</guid>
      <dc:creator>DaStoned</dc:creator>
      <dc:date>2009-05-08T18:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176527#M6921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This IS the simplest way to implement my routines! I configured a set and forget timer outside the while loop and was trying to set my flags within the interrupt and calling a function within it too. It just didn't seem to make sense&lt;IMG alt=":smileymad:" class="emoticon emoticon-smileymad" id="smileymad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-mad.gif" title="Smiley Mad" /&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right, I would not encounter a situation where locking of data has to be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the lucid explanation&amp;nbsp;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 19:16:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176527#M6921</guid>
      <dc:creator>Prao</dc:creator>
      <dc:date>2009-05-08T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176528#M6922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;You're welcome.&lt;BR /&gt;&lt;BR /&gt;Some years ago I did my first embedded work. Task was almost the same - keyboard, LED-s, LCD etc running of a PIT. It's so simple, yet it took me embarrassingly long to find the correct solution &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;BR /&gt;&lt;BR /&gt;Scanning the key matrix and eliminating key bounce took even longer.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 19:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176528#M6922</guid>
      <dc:creator>DaStoned</dc:creator>
      <dc:date>2009-05-08T19:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: Programming the PIT in MCF52256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176529#M6923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi DaStone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i also want to do same task , but i hv no idea about coldfire.I hv 52233DEMO with 25Mhz crystal&lt;/P&gt;&lt;P&gt;i aslo read 52233RM and 52233DS , but still not getting it, can u plz help me out??&lt;/P&gt;&lt;P&gt;From Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 15:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Newbie-question-Programming-the-PIT-in-MCF52256/m-p/176529#M6923</guid>
      <dc:creator>MCF52233</dc:creator>
      <dc:date>2009-05-15T15:30:47Z</dc:date>
    </item>
  </channel>
</rss>

