<?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: Interrupt whith XGATE problem. in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137388#M2559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In principle you just have to move your interrupt service routine from the .c file to a .cxgate file and add hex 80 to the priority when you initialize the Interrupt Module.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are working with CodeWarrior for HC12 v. 4.5, it will generate example code for you when you start a new project. There are also several Application Notes describing the use of the XGATE, start with AN3234 and AN2685.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 17:19:05 GMT</pubDate>
    <dc:creator>Sten</dc:creator>
    <dc:date>2006-05-30T17:19:05Z</dc:date>
    <item>
      <title>Interrupt whith XGATE problem.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137387#M2558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I work on The S12xDP512 and my interrup are manage by the CPU.&lt;/DIV&gt;&lt;DIV&gt;But now i want to use the xgate for manage it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I don't understand how one passes the Cpu at the Xgate for manage the interrupt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It's my program with interrup manage by CPU (jus the define of interrup):&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#ifndef __SMALL__&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;#pragma CODE_SEG __NEAR_SEG NON_BANKED&lt;BR /&gt;#endif&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;interrupt 23 analog(void)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;calcul_moy();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //call calcu_moy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;comparison();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //call comparison&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ATD1CTL2=0x00;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;init_analog();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If i want to use the Xgate in the place to Cpu what must i make??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanx for you help&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 16:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137387#M2558</guid>
      <dc:creator>loulou</dc:creator>
      <dc:date>2006-05-30T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt whith XGATE problem.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137388#M2559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In principle you just have to move your interrupt service routine from the .c file to a .cxgate file and add hex 80 to the priority when you initialize the Interrupt Module.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are working with CodeWarrior for HC12 v. 4.5, it will generate example code for you when you start a new project. There are also several Application Notes describing the use of the XGATE, start with AN3234 and AN2685.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 17:19:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137388#M2559</guid>
      <dc:creator>Sten</dc:creator>
      <dc:date>2006-05-30T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt whith XGATE problem.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137389#M2560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Yo, just the training I was providing last week &lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;To move the interrupt, you need to:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&amp;nbsp;- &lt;STRONG&gt;Move the C code to .cxgate&lt;/STRONG&gt; so the linker puts it for RAM execution. (said before)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&amp;nbsp;- Assign a proper &lt;STRONG&gt;priority and set the RQST bit&lt;/STRONG&gt; in the interrupt config register (said before). Be careful, this is a paged area and you might need to change the page before accessing the location.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&amp;nbsp;- &lt;STRONG&gt;Remove&lt;/STRONG&gt; the function call from your &lt;STRONG&gt;CPUS12X vector table&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&amp;nbsp;- &lt;STRONG&gt;Add&lt;/STRONG&gt; the function pointer and optional variable pointer in the appropriate channel for the &lt;STRONG&gt;XGATE vector table&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Cheers,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Alban.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 11:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137389#M2560</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-05-31T11:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt whith XGATE problem.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137390#M2561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, ok I know it's ugly to reply to your own post...&lt;/P&gt;&lt;P&gt;But I wanted to add some code to show an example.&lt;/P&gt;&lt;P&gt;In the Zip file, we transfer the interrupts from the S12X core to the XGATE.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Alban.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/1147_ChangeISRFromCPUtoXGATE.zip" rel="nofollow" target="_self"&gt;ChangeISRFromCPUtoXGATE.zip&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:11 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 11:16:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-whith-XGATE-problem/m-p/137390#M2561</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-05-31T11:16:19Z</dc:date>
    </item>
  </channel>
</rss>

