<?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>8-bit Microcontrollers中的主题 Re: Trigger A, B &amp; C Occured error message</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169034#M11158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No, you didn't lead me astray, you set me straight and got me running again. Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I asked the question because the smart people like&amp;nbsp;yourself sometimes have tricks of the trade they know that can help beginners like me. I was thinking you may have known about an option or macro that would make that command work with higher addresses.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks Again,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rodo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 19:48:00 GMT</pubDate>
    <dc:creator>Rodo55</dc:creator>
    <dc:date>2008-06-30T19:48:00Z</dc:date>
    <item>
      <title>Trigger A, B &amp; C Occured error message - DEMOQE</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169026#M11150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using a DEMOQE board with a QE8 MCU, Running CW 6.1 .&lt;/DIV&gt;&lt;DIV&gt;I'm receiving an error message Trigger A, B &amp;amp; C occurred when I run an RTC ISR program. It occurs after 103 loops through what should be an endless loop. Just before that the error message says the Freq. Changed to 0Hz. I suspect a memory over run but I don't see in my code where that is happening. Does anyone have any suggestions as to what and maybe where to look?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have not set any triggers in the debugger either.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I attached a file with the code in case someone can see where I went wrong.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The error message is at the bottom of the file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rodo&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added p/n to subject&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-06-30&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;02:29 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169026#M11150</guid>
      <dc:creator>Rodo55</dc:creator>
      <dc:date>2008-06-30T14:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169027#M11151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello Rodo,&lt;BR /&gt;&lt;BR /&gt;After a very quick look I can see two issues:&lt;BR /&gt;&lt;BR /&gt;1: STATE_3 can fall through into the RTI ISR, probably not intended.&lt;BR /&gt;&lt;BR /&gt;2: You are jumping out of an ISR without a RTI this will not de-stack the stuff stacked on interrupt entry.&lt;BR /&gt;&lt;BR /&gt;Stack Overflow!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 15:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169027#M11151</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-06-30T15:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169028#M11152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There's more code than what I included, so that's why it looks like it could fall through from State_3.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As far as the RTI, I originally wrote it that way but the program gets caught in a loop where it switches back and forth between the NOP and the RTI. It never returns from the ISR. When I stop the program and do an assembly step it's always stuck between the RTI and NOP. It didn't make any sense to me so I put the JMP there to get it to State_1.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any thoughts as to why it wouldn't return with the RTI?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rodo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 18:40:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169028#M11152</guid>
      <dc:creator>Rodo55</dc:creator>
      <dc:date>2008-06-30T18:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169029#M11153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Rodo,&lt;BR /&gt;&lt;BR /&gt;That's because additionally you are not clearing the source of the interrupt.&lt;BR /&gt;Something like BSET&amp;nbsp;&amp;nbsp;&amp;nbsp; RTIF,RTCSC at the start of the ISR should do the trick.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 18:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169029#M11153</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-06-30T18:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169030#M11154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Rodo,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Unless the interrupt flag for the RTC&amp;nbsp;is cleared, the ISR will be continuously re-entered.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 18:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169030#M11154</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-06-30T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169031#M11155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am a beginner at this so I made a beginners mistake.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It never came out of the ISR because I didn't clear the RTC Interrupt flag. I cleared the flag and now it returns.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rodo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 19:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169031#M11155</guid>
      <dc:creator>Rodo55</dc:creator>
      <dc:date>2008-06-30T19:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169032#M11156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks Again Peg and Mac.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A beginner mistake from a beginner.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a follow-up question about the BSET RTIF,RTCSC.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Since RTCSC is a high address ($1830) when I use that command I get the error: &amp;nbsp;A13003: Value is truncated to one byte.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I figured that was normal since it's a high address?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I used this instead so I don't get an error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;LDA RTCSC&lt;/DIV&gt;&lt;DIV&gt;ORA&amp;nbsp; #%10000000&lt;/DIV&gt;&lt;DIV&gt;STA RTCSC&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It seems to work fine but I was wondering if the error I got is a real error or is there an option or definition I need to set?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 19:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169032#M11156</guid>
      <dc:creator>Rodo55</dc:creator>
      <dc:date>2008-06-30T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169033#M11157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Rodo,&lt;BR /&gt;&lt;BR /&gt;Yes, this is what you need to do.&lt;BR /&gt;BSET only works within page zero (address 00 to FF)&lt;BR /&gt;I am not familiar with this device and the manual does not give you the address within the relevant section, so I lead you astray here, sorry.&lt;BR /&gt;At least you now have learnt something else.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 19:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169033#M11157</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2008-06-30T19:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger A, B &amp; C Occured error message</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169034#M11158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Peg,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;No, you didn't lead me astray, you set me straight and got me running again. Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I asked the question because the smart people like&amp;nbsp;yourself sometimes have tricks of the trade they know that can help beginners like me. I was thinking you may have known about an option or macro that would make that command work with higher addresses.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks Again,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rodo&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 19:48:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Trigger-A-B-C-Occured-error-message-DEMOQE/m-p/169034#M11158</guid>
      <dc:creator>Rodo55</dc:creator>
      <dc:date>2008-06-30T19:48:00Z</dc:date>
    </item>
  </channel>
</rss>

