<?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 Timer Delay program in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178675#M5897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;As a beginner, I am quite confused with the programming of HCS12X (MC9S12XDP512)MCU.&lt;/P&gt;&lt;P&gt;Can anyone help me write a simple timer program ? also&amp;nbsp;please give the basic difference between a Periodic Timer interrupt and Enhanced Capture Timer, when are they used....&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2010 14:57:22 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2010-02-24T14:57:22Z</dc:date>
    <item>
      <title>Timer Delay program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178675#M5897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;As a beginner, I am quite confused with the programming of HCS12X (MC9S12XDP512)MCU.&lt;/P&gt;&lt;P&gt;Can anyone help me write a simple timer program ? also&amp;nbsp;please give the basic difference between a Periodic Timer interrupt and Enhanced Capture Timer, when are they used....&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 14:57:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178675#M5897</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-02-24T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Delay program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178676#M5898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This webpage has lots of starter code for the C32 and DP512:&amp;nbsp; &lt;A href="http://users.ece.utexas.edu/~valvano/Starterfiles/" rel="nofollow" target="_blank"&gt;http://users.ece.utexas.edu/~valvano/Starterfiles/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll probably be interested in OC_DP512.zip but searching the page for "output compare" will help you find other timer-related code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ECT contains a set of 8 timers that trigger when TCNT (the main counter/timer) is equal to a certain number.&amp;nbsp; For example, output compare 7 interrupt triggers when TC7 is equal to TCNT.&amp;nbsp; TC7 and TCNT are 16-bit registers.&amp;nbsp; If you want an output compare 7 interrupt 500 TCNT ticks from now, set TC7 = TCNT + 500.&amp;nbsp; The output compare interrupts can also be set to automatically toggle a pin.&amp;nbsp; The ECT also can change output compare interrupts into input capture interrupts, where interrupts are triggered on edges on pins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The periodic timers are 4 timers that trigger once every 1 bus cycle to 2**24 bus cycles.&amp;nbsp; The timing of the interrupts is less flexible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll probably want to read chapter 7 and chapter 13 of the XDP512 datasheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2010 20:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178676#M5898</guid>
      <dc:creator>isionous</dc:creator>
      <dc:date>2010-02-24T20:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Delay program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178677#M5899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well thank you,&lt;/P&gt;&lt;P&gt;I will see to it again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 12:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Timer-Delay-program/m-p/178677#M5899</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2010-02-25T12:28:47Z</dc:date>
    </item>
  </channel>
</rss>

