<?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 disabling in HCS12 microcontroller in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-disabling-in-HCS12-microcontroller/m-p/216476#M9053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. The effects of setting I bit or setting IPL to 7 are almost the same. In first case CPU masks all I-bit maskable interrupts. In the second interrupt controller inhibits all I-bit maskable interrupts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I don't know. In both cases your critical section should end with restoring I-bit and/or restoring IPL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 13:54:12 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2009-09-17T13:54:12Z</dc:date>
    <item>
      <title>Interrupt disabling in HCS12 microcontroller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-disabling-in-HCS12-microcontroller/m-p/216475#M9052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am currently using HCS12x microcontroller and&amp;nbsp;third party operating system(OS) for an application. The OS &amp;nbsp;has two macro's SuspendAllInterrupts() and DisableInterrupts().&lt;/P&gt;&lt;P&gt;I find SuspendAllInterrupts() changes IPL level to 0x07 and does not do anything with I bit.&lt;/P&gt;&lt;P&gt;But DisableInterrupts() changes the I bit value to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, I want to enter a critical region in code.&lt;/P&gt;&lt;P&gt;1. Should I use SuspendAllInterrupts() or DisableInterrupt()&lt;/P&gt;&lt;P&gt;2. What is the difference between these two macro's?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2009 19:32:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-disabling-in-HCS12-microcontroller/m-p/216475#M9052</guid>
      <dc:creator>Jagadish</dc:creator>
      <dc:date>2009-09-16T19:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt disabling in HCS12 microcontroller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-disabling-in-HCS12-microcontroller/m-p/216476#M9053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. The effects of setting I bit or setting IPL to 7 are almost the same. In first case CPU masks all I-bit maskable interrupts. In the second interrupt controller inhibits all I-bit maskable interrupts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I don't know. In both cases your critical section should end with restoring I-bit and/or restoring IPL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2009 13:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Interrupt-disabling-in-HCS12-microcontroller/m-p/216476#M9053</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-09-17T13:54:12Z</dc:date>
    </item>
  </channel>
</rss>

