<?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: Reading the Status Reg (SR) in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Reading-the-Status-Reg-SR/m-p/340824#M211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can clear the I0/I1 bit of SR with the following code:&lt;/P&gt;&lt;P&gt;asm(bfclr #$0300, SR); //enable interrupt&lt;/P&gt;&lt;P&gt;you can set the I0/I1 bit in SR with the following code&lt;/P&gt;&lt;P&gt;asm(bfset #$0300, SR); //disable interrupt&lt;/P&gt;&lt;P&gt;if you want to jump based on the condition of SR, you can use the code Jcc or Bcc instruction.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 06:57:45 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2014-12-12T06:57:45Z</dc:date>
    <item>
      <title>Reading the Status Reg (SR)</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Reading-the-Status-Reg-SR/m-p/340823#M210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to read the status reg (SR) of the DSP56800E "8365" device but I always read I1 &amp;amp; I0 as 1 (intr masked).&amp;nbsp; I have a routine that operates on shared memory so I want to disable intr only if they are not already disabled by the calling function.&amp;nbsp; If I read the SR into Y0 reg, it always shows intr masked even after I explicitly execute a "bfclr #0x0300,SR" asm insn.&amp;nbsp; I've also looked at the SR reg that is stacked upon a function call and see the same thing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The spec says those I1 &amp;amp; I0 bits are R/W and it doesn't show that should always read 1, so what am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:38:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Reading-the-Status-Reg-SR/m-p/340823#M210</guid>
      <dc:creator>jimb2</dc:creator>
      <dc:date>2014-12-10T17:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the Status Reg (SR)</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/Reading-the-Status-Reg-SR/m-p/340824#M211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can clear the I0/I1 bit of SR with the following code:&lt;/P&gt;&lt;P&gt;asm(bfclr #$0300, SR); //enable interrupt&lt;/P&gt;&lt;P&gt;you can set the I0/I1 bit in SR with the following code&lt;/P&gt;&lt;P&gt;asm(bfset #$0300, SR); //disable interrupt&lt;/P&gt;&lt;P&gt;if you want to jump based on the condition of SR, you can use the code Jcc or Bcc instruction.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 06:57:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/Reading-the-Status-Reg-SR/m-p/340824#M211</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2014-12-12T06:57:45Z</dc:date>
    </item>
  </channel>
</rss>

