<?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 S12X clear interrupt in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191058#M7455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have a little problem.&amp;nbsp;Our system based on two different processors. They are connected over&amp;nbsp;CAN.&lt;/DIV&gt;&lt;DIV&gt;When my&amp;nbsp;processor (S12XDP512) gets a special telegram it have to change&amp;nbsp;its state. It means that it gets an rx-interrupt and into this interrupt it calls a function. So it doesn't return the ISR. My problem is, that all interrupts are disabled. I called cli but it doesn't work. My emu shows the register and there is a register ccr. I detect that I have to clear the high byte and than the interrupts still works. But I don't know where I can find this register in my processor. I would like to "kill" the old&amp;nbsp;interrupt.&lt;/DIV&gt;&lt;DIV&gt;I hope, somebody can help me &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 17:58:54 GMT</pubDate>
    <dc:creator>Drea</dc:creator>
    <dc:date>2008-02-19T17:58:54Z</dc:date>
    <item>
      <title>S12X clear interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191058#M7455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have a little problem.&amp;nbsp;Our system based on two different processors. They are connected over&amp;nbsp;CAN.&lt;/DIV&gt;&lt;DIV&gt;When my&amp;nbsp;processor (S12XDP512) gets a special telegram it have to change&amp;nbsp;its state. It means that it gets an rx-interrupt and into this interrupt it calls a function. So it doesn't return the ISR. My problem is, that all interrupts are disabled. I called cli but it doesn't work. My emu shows the register and there is a register ccr. I detect that I have to clear the high byte and than the interrupts still works. But I don't know where I can find this register in my processor. I would like to "kill" the old&amp;nbsp;interrupt.&lt;/DIV&gt;&lt;DIV&gt;I hope, somebody can help me &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191058#M7455</guid>
      <dc:creator>Drea</dc:creator>
      <dc:date>2008-02-19T17:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: S12X clear interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191059#M7456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;CLI reenables the interrupt.&lt;BR /&gt;&lt;BR /&gt;However, you usually can't&amp;nbsp; just decide to not return from an interrupt.&lt;BR /&gt;For one thing, there are items pushed on the stack.&lt;BR /&gt;For another, the code was running may need to finish. There is no way to predict what code you interrupted.&lt;BR /&gt;An don't for get to clear the in the pending interrupt, if you have not done so.&lt;BR /&gt;&lt;BR /&gt;Sounds like a hack you may later regert.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 22:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191059#M7456</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2008-02-19T22:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: S12X clear interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191060#M7457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;You might want to re-examine if you really need this quick of a response time.&amp;nbsp; Perhaps you are spending too much time in the ISR that you need to interrupt if this is the case.&amp;nbsp; Is there any extra information that you can provide?&amp;nbsp; How long is this ISR?&amp;nbsp; Is this fast of reponse truly needed?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 22:45:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191060#M7457</guid>
      <dc:creator>allawtterb</dc:creator>
      <dc:date>2008-02-19T22:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: S12X clear interrupt</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191061#M7458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;In S12X, just CLI inside ISR (interrupt nesting) is not enough to reenable interrupts. By default all S12X interrupt&amp;nbsp;priority levels are set to 1. Normally, in order to allow interrupt nesting, interrupt controller setup procedure&amp;nbsp;adjusts interrupt priorities. Then interrupt service routine&amp;nbsp;just&amp;nbsp;CLI s &amp;nbsp;to allow higher priority interrupts. Another option is like Drea noticed, would be&amp;nbsp;to clear CCR IPL bits and&amp;nbsp;CLI.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 00:32:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-clear-interrupt/m-p/191061#M7458</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-02-20T00:32:16Z</dc:date>
    </item>
  </channel>
</rss>

