<?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>8-bit Microcontrollers中的主题 Re: RTI Interrupt on MC9S08GB60</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131504#M2778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Although irrelevant to the problem you're having, I forgot to mention that in your example:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;; set rti for internal osc and 8mSec period&lt;BR /&gt;lda #$51&lt;BR /&gt;sta srtisc ; ack and set period&lt;BR /&gt;lda #$11&lt;BR /&gt;sta srtisc ; remove ack, enable irq&lt;BR /&gt;&lt;BR /&gt;the second write to SRTISC (lda #$11, sta srtisc) isn't necessary.&amp;nbsp; RTIACK is automatically cleared until next interrupt.&amp;nbsp; As the docs say writing 0 to the RTIACK bit has no meaning or effect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="mailto:tonyp@acm.org" rel="nofollow" target="_blank"&gt;tonyp@acm.org&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Apr 2006 23:12:28 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2006-04-05T23:12:28Z</dc:date>
    <item>
      <title>RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131502#M2776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been using the 'GB60 for some time now (a really nice chip, by the way). For my previous applications I've used the main timer to provide the services of "heart-beat" interrupt (background timing, etc.) This works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my new application the main timer is used for other things and isn't available for the heart-beat function so I tried to use the RTI sub-system. For some reason I can't get it to interrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application uses an external 10MHz clock-oscillator but I don't use that for the RTI. This is how I init the RTI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;; set rti for internal osc and 8mSec period&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lda #$51&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sta srtisc ; ack and set period&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lda #$11&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sta srtisc ; remove ack, enable irq&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the doc I think that should do it, but it just never interrupts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 20:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131502#M2776</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-04-05T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131503#M2777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Maybe you're resetting the RTI enable bits while trying to acknowledge it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example, instead of acknowledging with code like this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;RTI_Handler&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;lda&amp;nbsp;&amp;nbsp;SRTISC&lt;BR /&gt;&amp;nbsp;ora&amp;nbsp;#RTIACK_&lt;BR /&gt;&amp;nbsp;sta&amp;nbsp;SRTISC&lt;BR /&gt;&amp;nbsp;rti&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;you use code like this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;RTI_Handler&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;lda&amp;nbsp;#RTIACK_&lt;BR /&gt;&amp;nbsp;sta&amp;nbsp;SRTISC&lt;BR /&gt;&amp;nbsp;rti&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;so that after the first call, it stops functioning.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now, if that wasn't the problem, try to see what happens with the exact same code you have but using external clock.&amp;nbsp; This would catch a possible mask revision bug.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just a thought.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="mailto:tonyp@acm.org" rel="nofollow" target="_blank"&gt;tonyp@acm.org&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 22:57:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131503#M2777</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2006-04-05T22:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131504#M2778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Although irrelevant to the problem you're having, I forgot to mention that in your example:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;; set rti for internal osc and 8mSec period&lt;BR /&gt;lda #$51&lt;BR /&gt;sta srtisc ; ack and set period&lt;BR /&gt;lda #$11&lt;BR /&gt;sta srtisc ; remove ack, enable irq&lt;BR /&gt;&lt;BR /&gt;the second write to SRTISC (lda #$11, sta srtisc) isn't necessary.&amp;nbsp; RTIACK is automatically cleared until next interrupt.&amp;nbsp; As the docs say writing 0 to the RTIACK bit has no meaning or effect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="mailto:tonyp@acm.org" rel="nofollow" target="_blank"&gt;tonyp@acm.org&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 23:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131504#M2778</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2006-04-05T23:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131505#M2779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Tonyp.&lt;BR /&gt;r.e. your second post; yeah, I got that too but I've learned to sometimes do something redundant rather than trust the doc too much.&lt;BR /&gt;&lt;BR /&gt;I think my next test will be to use the external clock source (later today).&lt;BR /&gt;ron&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 02:17:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131505#M2779</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-04-06T02:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131506#M2780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi GLork:&lt;BR /&gt;&lt;BR /&gt;I had the same problem earlier this year. The issue is the the RTI doesn't work from the Internal Oscillator in Run Mode. It is clearly stated in the datasheet (page 67, if I'm not wrong). So it is not your code. It is the GT60.&lt;BR /&gt;&lt;BR /&gt;Now, I'm using one of the TPM2Free interrupts that Processor Expert is able to configure. You can use the the RTI from the External Clock, but the max time is rather small (2.048ms with a 16MHz crystal).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;P&gt;Message Edited by alex_spotw on &lt;SPAN class="date_text"&gt;04-06-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:35 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by alex_spotw on &lt;SPAN class="date_text"&gt;04-06-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;08:36 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 20:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131506#M2780</guid>
      <dc:creator>alex_spotw</dc:creator>
      <dc:date>2006-04-06T20:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131507#M2781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Alex.&lt;BR /&gt;Yes, you're exactly right ... my stupid. Section 5.7 page 67. Well, I have an external clock so I might as well use it.&lt;BR /&gt;ron&lt;BR /&gt;&lt;BR /&gt;p.s. this is why this forum is so helpful.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2006 20:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131507#M2781</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-04-06T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131508#M2782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;and if we had a functional search facility here you might have found out even earlier!!!&lt;/P&gt;&lt;P&gt;I think I have found the main problem with these forums... they appear to be powered by a small battery. (see bottom right corner)&lt;/P&gt;&lt;P&gt;Sometimes they even have to take the forums offline to charge it up!&lt;/P&gt;&lt;P&gt;Peg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 18:34:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131508#M2782</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-04-07T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: RTI Interrupt on MC9S08GB60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131509#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;peg wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;and if we had a functional search facility here you might have found out even earlier!!!&lt;/P&gt;&lt;P&gt;I think I have found the main problem with these forums... they appear to be powered by a small battery. (see bottom right corner)&lt;/P&gt;&lt;P&gt;Sometimes they even have to take the forums offline to charge it up!&lt;/P&gt;&lt;P&gt;Peg&lt;/P&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hey Peg.&lt;BR /&gt;I like your idea of a good search utility although I have to admit that I'm not always bright enough to use one when its available.&lt;BR /&gt;&lt;BR /&gt;As for the battery; I think freescale should use the new retro-battery. You can use the charge today that you're going to put in it next year (however if you forget to charge it next year it rips a hole in reality...very dangerous).&lt;BR /&gt;ron&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2006 20:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/RTI-Interrupt-on-MC9S08GB60/m-p/131509#M2783</guid>
      <dc:creator>glork</dc:creator>
      <dc:date>2006-04-07T20:26:29Z</dc:date>
    </item>
  </channel>
</rss>

