<?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>S12 / MagniV Microcontrollers中的主题 Simple interrupts question</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129878#M1237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think when an interrupt is triggered the cpu goes to a vector table. From this vector table it'll do whatever you tell it to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess in the appropriate vector location you'd say&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BRA (address of isr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And at the address of your ISR you just do your code and pop in an RTI at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the simple question is... How do you do this in C?&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif"&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and apologies for the dumb Qs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2006 02:32:38 GMT</pubDate>
    <dc:creator>MJB</dc:creator>
    <dc:date>2006-03-23T02:32:38Z</dc:date>
    <item>
      <title>Simple interrupts question</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129878#M1237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think when an interrupt is triggered the cpu goes to a vector table. From this vector table it'll do whatever you tell it to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess in the appropriate vector location you'd say&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BRA (address of isr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And at the address of your ISR you just do your code and pop in an RTI at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the simple question is... How do you do this in C?&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif"&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and apologies for the dumb Qs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 02:32:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129878#M1237</guid>
      <dc:creator>MJB</dc:creator>
      <dc:date>2006-03-23T02:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple interrupts question</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129879#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi MJB,&lt;/DIV&gt;&lt;DIV&gt;Almost correct!&lt;/DIV&gt;&lt;DIV&gt;When the interrupt is triggered the CPU does not _go_ to the vector table it retrieves just the address of the ISR (interrupt service routine) and loads it into the PC (programme counter) then starts executing from there until it sees a RTI, then back to where it left from.&lt;/DIV&gt;&lt;DIV&gt;As to how it is done in C, you should tell us what compiler as it varies a lot between them.&lt;/DIV&gt;&lt;DIV&gt;BR Peg&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 04:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129879#M1238</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-03-23T04:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple interrupts question</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129880#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm using metroworks codewarrior.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 04:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129880#M1239</guid>
      <dc:creator>MJB</dc:creator>
      <dc:date>2006-03-23T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple interrupts question</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129881#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello MJB,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;You will find CW&amp;nbsp;ISR issues briefly described in the FAQ section, towards the end of AN2616.&amp;nbsp; Three alternatives are available.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2006 10:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Simple-interrupts-question/m-p/129881#M1240</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-03-23T10:29:17Z</dc:date>
    </item>
  </channel>
</rss>

