<?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: S12XDP512 Xgate problem in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP512-Xgate-problem/m-p/168319#M5541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I wonder how could you have problems with software interrupt if&amp;nbsp;CW project wizard creates code for this. Did you specify in&amp;nbsp;the wizard that you want to use both cores? It should generate SetupXGATE function:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#define SOFTWARETRIGGER0_VEC  0x72 /* vector address= 2 * channel id */static void SetupXGATE(void) {  /* initialize the XGATE vector block and     set the XGVBR register to its start address */  XGVBR= (unsigned int)(void*__far)(XGATE_VectorTable - XGATE_VECTOR_OFFSET); &lt;STRONG&gt; /* switch software trigger 0 interrupt to XGATE */  ROUTE_INTERRUPT(SOFTWARETRIGGER0_VEC, 0x81); /* RQST=1 and PRIO=1 */&lt;/STRONG&gt;  /* enable XGATE mode and interrupts */  XGMCTL= 0xFBC1; /* XGE | XGFRZ | XGIE */  &lt;STRONG&gt;/* force execution of software trigger 0 handler */  XGSWT= 0x0101;&lt;/STRONG&gt;}&lt;/PRE&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;XGSWT = 0x0101; is what makes XGATE&amp;nbsp;executing&amp;nbsp;software trigger 0 handler. Isn't it what you want?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:15:58 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2020-10-29T09:15:58Z</dc:date>
    <item>
      <title>S12XDP512 Xgate problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP512-Xgate-problem/m-p/168318#M5540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;we can activate xgate by using the hardware inrterrupt but i want to activate it by using software interrupt. so, pls&amp;nbsp;tell me&amp;nbsp;is there any way to access xgate with s/w interrupt &amp;amp; how???&lt;/DIV&gt;&lt;DIV&gt;or is there any other way to access the xgate?&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;supriya&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 18:58:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP512-Xgate-problem/m-p/168318#M5540</guid>
      <dc:creator>supriya</dc:creator>
      <dc:date>2007-11-29T18:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP512 Xgate problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP512-Xgate-problem/m-p/168319#M5541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I wonder how could you have problems with software interrupt if&amp;nbsp;CW project wizard creates code for this. Did you specify in&amp;nbsp;the wizard that you want to use both cores? It should generate SetupXGATE function:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;#define SOFTWARETRIGGER0_VEC  0x72 /* vector address= 2 * channel id */static void SetupXGATE(void) {  /* initialize the XGATE vector block and     set the XGVBR register to its start address */  XGVBR= (unsigned int)(void*__far)(XGATE_VectorTable - XGATE_VECTOR_OFFSET); &lt;STRONG&gt; /* switch software trigger 0 interrupt to XGATE */  ROUTE_INTERRUPT(SOFTWARETRIGGER0_VEC, 0x81); /* RQST=1 and PRIO=1 */&lt;/STRONG&gt;  /* enable XGATE mode and interrupts */  XGMCTL= 0xFBC1; /* XGE | XGFRZ | XGIE */  &lt;STRONG&gt;/* force execution of software trigger 0 handler */  XGSWT= 0x0101;&lt;/STRONG&gt;}&lt;/PRE&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;XGSWT = 0x0101; is what makes XGATE&amp;nbsp;executing&amp;nbsp;software trigger 0 handler. Isn't it what you want?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP512-Xgate-problem/m-p/168319#M5541</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2020-10-29T09:15:58Z</dc:date>
    </item>
  </channel>
</rss>

