<?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: MC9S12C32 Interrupts In CodeWarrior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144580#M3770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Try this in the int handler&lt;BR /&gt;&lt;BR /&gt;TC0 += PERIOD ;&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;TC0 = TCNT + PERIOD;&lt;BR /&gt;When you init it.&lt;BR /&gt;&lt;BR /&gt;Also, you don't need&lt;BR /&gt;TFLG1 = 0x01;&lt;BR /&gt;in the hander - writing to TC0 clears and rearms the int.&lt;BR /&gt;&lt;BR /&gt;Try something less than FFFF for the period.&lt;BR /&gt;Not sure if that will cause a problem, but it might.&lt;BR /&gt;&lt;BR /&gt;If you need longer periods, use a sub counter like:&lt;BR /&gt;int subCntr; // global scope&lt;BR /&gt;&lt;BR /&gt;(in the int handler)&lt;BR /&gt;++subCntr;&lt;BR /&gt;if( subCntr == 100 ) // pick a number that gives you the desired delay.&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;// write to the leds or what ever.&lt;BR /&gt;&lt;BR /&gt;subCntr = 0;&lt;BR /&gt;}&lt;BR /&gt;(rest of handler)&lt;P&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2007-02-06&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:20 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2007-02-06&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:22 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 09:11:00 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2007-02-07T09:11:00Z</dc:date>
    <item>
      <title>MC9S12C32 Interrupts In CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144577#M3767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I Have been able to run interrupts on my Microcontroller&amp;nbsp; but all of the sudden th same interrupts wont work anymore. I am assigning the vector address in the linker file as well as the interrupt Service routine name. I am using the command enable Interrupts in CodeWarrior. I am calling the interrupt service function the same as the one in the linker file. I am using the function Header interrupt void function_Name(void).&lt;/DIV&gt;&lt;DIV&gt;Do you have any sugestions as to why the interrupts arnt working any more.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 04:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144577#M3767</guid>
      <dc:creator>Assembly</dc:creator>
      <dc:date>2007-02-06T04:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12C32 Interrupts In CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144578#M3768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Which interrupt(s) are we talking about.&lt;BR /&gt;Maybe the device that was giving the interrupt is no longer enables/set up properly.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 04:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144578#M3768</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2007-02-07T04:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12C32 Interrupts In CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144579#M3769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The Timer Overflow and the Timer Output Capture 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Recentaly I tried a couple of things and i notced that if you set the output on Capture 0 the led will togle but still wont run the interupt service routine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Atached is a coppy of the scource code that i wrote&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 08:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144579#M3769</guid>
      <dc:creator>Assembly</dc:creator>
      <dc:date>2007-02-07T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12C32 Interrupts In CodeWarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144580#M3770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Try this in the int handler&lt;BR /&gt;&lt;BR /&gt;TC0 += PERIOD ;&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;TC0 = TCNT + PERIOD;&lt;BR /&gt;When you init it.&lt;BR /&gt;&lt;BR /&gt;Also, you don't need&lt;BR /&gt;TFLG1 = 0x01;&lt;BR /&gt;in the hander - writing to TC0 clears and rearms the int.&lt;BR /&gt;&lt;BR /&gt;Try something less than FFFF for the period.&lt;BR /&gt;Not sure if that will cause a problem, but it might.&lt;BR /&gt;&lt;BR /&gt;If you need longer periods, use a sub counter like:&lt;BR /&gt;int subCntr; // global scope&lt;BR /&gt;&lt;BR /&gt;(in the int handler)&lt;BR /&gt;++subCntr;&lt;BR /&gt;if( subCntr == 100 ) // pick a number that gives you the desired delay.&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;// write to the leds or what ever.&lt;BR /&gt;&lt;BR /&gt;subCntr = 0;&lt;BR /&gt;}&lt;BR /&gt;(rest of handler)&lt;P&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2007-02-06&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:20 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by JimDon on &lt;SPAN class="date_text"&gt;2007-02-06&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:22 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 09:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Interrupts-In-CodeWarrior/m-p/144580#M3770</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2007-02-07T09:11:00Z</dc:date>
    </item>
  </channel>
</rss>

