<?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: MC9S08QG8   interrupt vector table</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-interrupt-vector-table/m-p/178164#M12628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be sure to install the technical documentation for codewarrior, then see tech note TN101.&amp;nbsp; The default method is to use the interrupt keyword and not the ANSI method ( in the app note).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VectorNumber_Virq should probably be &lt;U&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/U&gt; for IRQ, although you should check the hardware manual to see that the first machine code&amp;nbsp;address of the IRQ ISR is stored at the &lt;U&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/U&gt;nd location in the interrupt vector table.&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>Sat, 05 Nov 2011 01:33:41 GMT</pubDate>
    <dc:creator>PG1</dc:creator>
    <dc:date>2011-11-05T01:33:41Z</dc:date>
    <item>
      <title>MC9S08QG8   interrupt vector table</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-interrupt-vector-table/m-p/178163#M12627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;void interrupt VectorNumber_Virq IRQ_isr()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know&amp;nbsp;where&amp;nbsp;there is the declarations of IRQ_isr().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can find the declarations of IRQ_isr()?&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;hidef.h&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* for EnableInterrupts macro */&lt;BR /&gt;#include "derivative.h" &amp;nbsp;&amp;nbsp;/* include peripheral declarations */&lt;BR /&gt;#include "hcs08.h"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This is our definition file!&lt;/P&gt;&lt;P&gt;unsigned char blinking=0;&lt;/P&gt;&lt;P&gt;// This is the IRQ interrupt servicing routine&lt;BR /&gt;void interrupt VectorNumber_Virq IRQ_isr()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; IRQSC_IRQACK = 1; &amp;nbsp;&amp;nbsp; // acknowledge IRQ interrupt (clear IRQF)&lt;BR /&gt;&amp;nbsp; blinking = !blinking;&amp;nbsp;// change blinking state&lt;BR /&gt;&amp;nbsp; // IRQ interrupt is disabled to avoid bouncing noise:&lt;BR /&gt;&amp;nbsp; IRQSC_IRQIE = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; // disable IRQ interrupt&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; unsigned int temp;&lt;BR /&gt;&amp;nbsp; SOPT1 = bBKGDPE;&amp;nbsp;&amp;nbsp;// configure SOPT1 register, enable pin BKGD for BDM&lt;BR /&gt;&amp;nbsp; PTADD = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // all PTA pins as inputs&lt;BR /&gt;&amp;nbsp; PTBDD = 0xFE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // pin PTB0 as input, PTB1 through PTB7 as outputs&lt;BR /&gt;&amp;nbsp; PTBD = 0xC0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // turn off LED1 and LED2, clear other PTB outputs&lt;BR /&gt;&amp;nbsp; PTAPE = BIT_5;&amp;nbsp;&amp;nbsp;&amp;nbsp; // PTA5 pull up enabled&lt;BR /&gt;&amp;nbsp; IRQSC = bIRQPE | bIRQIE;&amp;nbsp;// IRQ pin enabled, IRQ interrupt enabled&lt;BR /&gt;&amp;nbsp; EnableInterrupts;&amp;nbsp;&amp;nbsp; // enable interrupts (CCR:I = 0)&lt;BR /&gt;&amp;nbsp; while (1)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (blinking)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTBD_PTBD6 = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // LED = on&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (temp=3000; temp; temp--);&amp;nbsp;// wait for a while&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTBD_PTBD6 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // LED = off&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (temp=30000; temp; temp--);&amp;nbsp;// wait for a while&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRQSC_IRQIE = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // enable IRQ interrupt&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 11:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-interrupt-vector-table/m-p/178163#M12627</guid>
      <dc:creator>song</dc:creator>
      <dc:date>2011-10-29T11:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S08QG8   interrupt vector table</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-interrupt-vector-table/m-p/178164#M12628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be sure to install the technical documentation for codewarrior, then see tech note TN101.&amp;nbsp; The default method is to use the interrupt keyword and not the ANSI method ( in the app note).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VectorNumber_Virq should probably be &lt;U&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/U&gt; for IRQ, although you should check the hardware manual to see that the first machine code&amp;nbsp;address of the IRQ ISR is stored at the &lt;U&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/U&gt;nd location in the interrupt vector table.&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>Sat, 05 Nov 2011 01:33:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QG8-interrupt-vector-table/m-p/178164#M12628</guid>
      <dc:creator>PG1</dc:creator>
      <dc:date>2011-11-05T01:33:41Z</dc:date>
    </item>
  </channel>
</rss>

