<?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: XGATE registers on thread startup in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137160#M2496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ok, I understand, it's an interesting idea.&lt;/DIV&gt;&lt;DIV&gt;I was thinking about using the R1 pre-load to help a bit but with a 32-bit CRC you don't save that much.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 22:37:25 GMT</pubDate>
    <dc:creator>Steve</dc:creator>
    <dc:date>2007-06-19T22:37:25Z</dc:date>
    <item>
      <title>XGATE registers on thread startup</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137157#M2493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My MPU is MC9S12XDP512 (0L15Y).&lt;/DIV&gt;&lt;P&gt;I've tried to share some values in the XGATE registers&amp;nbsp;between different threads (for efficiency), but it looks like all XGATE registers are cleared (except R1) on thread startup. I cannot find any documentation on this in data sheets, forums or the internet.&lt;/P&gt;&lt;P&gt;Am I correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 20:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137157#M2493</guid>
      <dc:creator>P7</dc:creator>
      <dc:date>2007-06-18T20:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: XGATE registers on thread startup</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137158#M2494</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; You are correct; this is the way that XGATE behaves. It's&amp;nbsp; described in the databook:&lt;/DIV&gt;&lt;DIV&gt;"&lt;FONT face="Times New Roman"&gt;Register R1 has an additional functionality. It is preloaded with the initial variable pointer of the channel’s service request vector (see&lt;/FONT&gt; &lt;FONT color="#474386" face="Times New Roman"&gt;Figure 6-20&lt;/FONT&gt;&lt;FONT face="Times New Roman"&gt;). The initial content of the remaining general purpose registers is undefined."&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;On devices with XGATE V3&amp;nbsp;(S12XEP100 &amp;amp; others)&amp;nbsp;register R7 is also pre-loaded with the contents of the shadow "SP" registers.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;The R1 behavior is very useful for optimising thread design.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&amp;nbsp;If you can share the idea of what you are trying to do then maybe we can suggest some other approach.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 21:51:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137158#M2494</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2007-06-18T21:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: XGATE registers on thread startup</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137159#M2495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Steve,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Ok, I've intepreted "&lt;FONT face="Times New Roman"&gt;The initial content of the remaining general purpose registers is undefined." as being undefined after power on, and not at every thread start.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;I'm interfacing to a Homeplug chip with a GPSI interface using 2 SPI's. The XGATE can handle the transmit/receive interrupt fine, but I also tried to calculate the 32 bit CRC while transmitting. Because I have only 2 XGATE interrupts running, it seemed possible to keep the 32 bit intermediate results and some pointers in the XGATE registers (when the XGATE becomes idle after RTS).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;I'm using a S12XDP512 with XGATE V2, for now I let the S12 calculate the CRC before transmitting and maybe I will switch to an S12 with XGATE V3 so a receive interrupt maybe handled while calculating the CRC....&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman"&gt;Thanks.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 21:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137159#M2495</guid>
      <dc:creator>P7</dc:creator>
      <dc:date>2007-06-19T21:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: XGATE registers on thread startup</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137160#M2496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ok, I understand, it's an interesting idea.&lt;/DIV&gt;&lt;DIV&gt;I was thinking about using the R1 pre-load to help a bit but with a 32-bit CRC you don't save that much.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 22:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XGATE-registers-on-thread-startup/m-p/137160#M2496</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2007-06-19T22:37:25Z</dc:date>
    </item>
  </channel>
</rss>

