<?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>S12 / MagniV MicrocontrollersのトピックRe: difference between SWI and TRAP</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130630#M1423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Steve for the very nice answer. I get it clearly now&lt;BR /&gt;&lt;BR /&gt;regards,&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2006 20:15:38 GMT</pubDate>
    <dc:creator>LBdgWgt</dc:creator>
    <dc:date>2006-03-31T20:15:38Z</dc:date>
    <item>
      <title>difference between SWI and TRAP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130628#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a project about RTOS on HCS12 uC. I whave a doubt about what is the difference between SWI and TRAP, as far as I read, both are not affected by I bit in CCR, does someone know what is the difference between both (advantage and disadvantage). The RTOS need a simulated interrupt whent performing context switching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thansk for any help,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 23:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130628#M1421</guid>
      <dc:creator>LBdgWgt</dc:creator>
      <dc:date>2006-03-30T23:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: difference between SWI and TRAP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130629#M1422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The instructions look similar but are intended for different uses. TRAP is in fact any unimplemented instruction in the S12(X) opcode map. So for S12 it is actually 202 opcodes and for S12XD it is 29 opcodes.&lt;/DIV&gt;&lt;DIV&gt;There are two disadvantages to using a TRAP instruction rather than SWI:&lt;/DIV&gt;&lt;DIV&gt;1/ The interrupt will be called by any of the unimplemented opcodes so any unintended software execution could cause a call to your RTOS kernel rather than being handled as an error.&lt;/DIV&gt;&lt;DIV&gt;2/ The TRAP availability&amp;nbsp;is different on different CPUs (S12 vs S12X V1) and so code compatibility could be an issue for a flexible piece of code like an RTOS.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 23:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130629#M1422</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2006-03-30T23:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between SWI and TRAP</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130630#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Steve for the very nice answer. I get it clearly now&lt;BR /&gt;&lt;BR /&gt;regards,&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2006 20:15:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/difference-between-SWI-and-TRAP/m-p/130630#M1423</guid>
      <dc:creator>LBdgWgt</dc:creator>
      <dc:date>2006-03-31T20:15:38Z</dc:date>
    </item>
  </channel>
</rss>

