<?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: How to run Xgate in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168758#M5558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That means we cant get interrupted xgate at run time of CPU12&amp;nbsp;, i mean to say that suppose i want software interrupt 0 &amp;nbsp;trigger at specifice condicion then can i interrupted to xgate??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;like&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if(condition)&lt;/DIV&gt;&lt;DIV&gt;software interrupt 0&amp;nbsp;trigger of xgate;'&amp;nbsp;&amp;nbsp; //which is al ready decalred by me&lt;/DIV&gt;&lt;DIV&gt;else&lt;/DIV&gt;&lt;DIV&gt;do nothing&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;is it possible ???&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;vinay&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Nov 2007 18:49:02 GMT</pubDate>
    <dc:creator>vinay</dc:creator>
    <dc:date>2007-11-30T18:49:02Z</dc:date>
    <item>
      <title>How to run Xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168756#M5556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using S12XDP512 with Code warrior 4.5.&lt;/DIV&gt;&lt;DIV&gt;I am using xgat.&amp;nbsp;I want to RUN a Xgate routine forever just like&amp;nbsp;While loop. ie when activating xgate by software triggerd i want to run xgate file till my program runs. is it possible that in interrupt routine we run forever loop???&lt;/DIV&gt;&lt;DIV&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Also what is the difference between normal function call and xgate sofware triggered call because both called by user at run time. may i write????&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pls help me&amp;nbsp;about the same.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;regards,&lt;/DIV&gt;&lt;DIV&gt;Vinay&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 15:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168756#M5556</guid>
      <dc:creator>vinay</dc:creator>
      <dc:date>2007-11-30T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168757#M5557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;It's OK to not exit&amp;nbsp;from&amp;nbsp;and loop in&amp;nbsp;XGATE threed forever. But S12XD XGATE threads are not interruptible. If you won't exit one XGATE thread, then you won't be able to trigger other threads and service interrupts routed to XGATE. S12XE XGATE is bit different. As far a I know S12XE XGATE allows to interrupt thread by higher priority thread.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;vinay wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Also what is the difference between normal function call and xgate sofware triggered call because both called by user at run time. may i write????&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;I don't really understand the question. You can't call XGATE function from S12X. You either trigger XGATE threads by hardware interrupts (SCI, SPI etc), or write&amp;nbsp;to XGSWT register from S12X and&amp;nbsp;trigger&amp;nbsp;from 1&amp;nbsp;to 8 XGATE software trigger threads. Even if you trigger all 8 of them, XGATE will first execute one highest priority thread, then (if you clear specific software trigger in XGATE thread) it will execute 2nd thread, then 3rd etc.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 18:40:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168757#M5557</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2007-11-30T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168758#M5558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That means we cant get interrupted xgate at run time of CPU12&amp;nbsp;, i mean to say that suppose i want software interrupt 0 &amp;nbsp;trigger at specifice condicion then can i interrupted to xgate??&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;like&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;if(condition)&lt;/DIV&gt;&lt;DIV&gt;software interrupt 0&amp;nbsp;trigger of xgate;'&amp;nbsp;&amp;nbsp; //which is al ready decalred by me&lt;/DIV&gt;&lt;DIV&gt;else&lt;/DIV&gt;&lt;DIV&gt;do nothing&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;is it possible ???&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;vinay&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 18:49:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168758#M5558</guid>
      <dc:creator>vinay</dc:creator>
      <dc:date>2007-11-30T18:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Xgate</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168759#M5559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I don't understand your question. Could you please explain better what do you want?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1) If you want a forever-thread on XGATE, then just loop in&amp;nbsp;thread&amp;nbsp;forever. But then XGATE will be unable to service any other interrupt request.&amp;nbsp;Interrupts should be handled by CPU2X then. (exception: S12XE XGATE is less restrictive than S12XD XGATE).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2) If you want both,&amp;nbsp;using XGATE to handle&amp;nbsp;interrupts and sometimes to handle conditions generated by CPU12X (by triggering&amp;nbsp;software triggers), then all your XGATE threads, including software trigger handlers, should be short enough to be able to process all interrupts in time.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2007 22:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168759#M5559</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2007-11-30T22:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Xgate + Differences XGATE V2 and V3</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168760#M5560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Kef and all,&lt;BR /&gt;&lt;BR /&gt;I agree for all and have a trick if you wish to stop the FOREVER thread of the XGATE.&lt;BR /&gt;&lt;BR /&gt;For S12XD XGATE let's call it XGATE v2, its real name and S12XE XGATE is version 3.&lt;BR /&gt;&lt;BR /&gt;So XGATEv2 has access to all the 32KB of on-chip RAM and you can define a SHARED area between the CPU and the XGATE in RAM.&lt;BR /&gt;By placing a IF condition on a shared variable within the XGATEv2 thread before looping back to its beginning, you can force the IF to become false and the thread would end.&lt;BR /&gt;This allows you to keep total control and save energy when/if needed.&lt;BR /&gt;&lt;BR /&gt;Also, the XGATEv3 has only TWO contexts between which you can switch. It's a bit like if you had 2 XGATEs. You can only interrupt the LOW priority context with the HIGH one.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Dec 2007 21:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-run-Xgate/m-p/168760#M5560</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-12-02T21:45:45Z</dc:date>
    </item>
  </channel>
</rss>

