<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Having trouble with interrupt priority level</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142693#M2597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;rocco, I think you're right.&amp;nbsp; I was not realizing that the SR gets pushed to the stack and then restored after the interrupt.&amp;nbsp; So the effect is that interrupts are only being disabled for the time the coldfire is processing the interrupt.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the help.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Jan 2007 23:26:36 GMT</pubDate>
    <dc:creator>mbrown</dc:creator>
    <dc:date>2007-01-14T23:26:36Z</dc:date>
    <item>
      <title>Having trouble with interrupt priority level</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142690#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'm trying to enable and disable interrupts on my MCF5282.&amp;nbsp; I'm doing:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void&lt;BR /&gt;interrupt_enable()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;printf("interrupt enable\n");&lt;BR /&gt;&amp;nbsp;asm {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;move.l #0x00002000,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;move.w d0,SR&lt;BR /&gt;&amp;nbsp;}&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;void&lt;BR /&gt;interrupt_disable()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;printf("interrupt disable\n");&lt;BR /&gt;&amp;nbsp;asm {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;move.l #0x00002700,d0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;move.w d0,SR&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I call these functions manually, everything is OK.&amp;nbsp; However, when I go into an interrupt (from the FEC) and attempt to disable further interrupts,&amp;nbsp;I call the disable function but interrupts never stop.&lt;/DIV&gt;&lt;DIV&gt;Does anyone know what is happening here?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 07:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142690#M2594</guid>
      <dc:creator>mbrown</dc:creator>
      <dc:date>2007-01-13T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with interrupt priority level</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142691#M2595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Maybe your Ethernet's interrupts are configured as interrupt level 7 (unmaskable). Only guessing&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 09:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142691#M2595</guid>
      <dc:creator>PaoloRenzo</dc:creator>
      <dc:date>2007-01-13T09:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with interrupt priority level</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142692#M2596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, mbrown:&lt;BR /&gt;&lt;BR /&gt;Are you sure they "never" stop? Could they be stopping for the duration of the ISR, but then being re-enabled when the ISR exits?&lt;BR /&gt;&lt;BR /&gt;The SR is stacked by the interrupt, and will be restored by the interrupt-return. If you changed it within the ISR, it will still be restored to what it was prior to the interrupt, upon the completion of the ISR.&lt;BR /&gt;&lt;BR /&gt;If you want to change the value that the SR will be when the interrupt exits, you can modify the value that was pushed onto the stack.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jan 2007 09:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142692#M2596</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2007-01-13T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with interrupt priority level</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142693#M2597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;rocco, I think you're right.&amp;nbsp; I was not realizing that the SR gets pushed to the stack and then restored after the interrupt.&amp;nbsp; So the effect is that interrupts are only being disabled for the time the coldfire is processing the interrupt.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the help.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2007 23:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Having-trouble-with-interrupt-priority-level/m-p/142693#M2597</guid>
      <dc:creator>mbrown</dc:creator>
      <dc:date>2007-01-14T23:26:36Z</dc:date>
    </item>
  </channel>
</rss>

