<?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: GT60 How to have STOP_2 mode working with IRQ in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158781#M9381</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 wrote a small routine for the 9S08GB60, which is compatible with the 9S08GT60.&lt;/DIV&gt;&lt;DIV&gt;I did not include any clock settings, so the clock that's running is the standard internal 240 kHz clock.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What can be difficult is to get the selection of the STOP mode correct.&lt;/DIV&gt;&lt;DIV&gt;This is done by the SPMSC2 register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope it helps!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/7920_gb60_stop2.zip" rel="nofollow" target="_self"&gt;GB60_STOP2.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:16 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 17:32:07 GMT</pubDate>
    <dc:creator>Ake</dc:creator>
    <dc:date>2007-10-29T17:32:07Z</dc:date>
    <item>
      <title>GT60 How to have STOP_2 mode working with IRQ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158780#M9380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;HI, I want to have the STOP2 mode working using the IRQ pin.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can someone explain me the limitation and what will work and don't work. because currently, i'm having the STOP2 mode enable but it doesn not get out of it using the IQR.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ICG CLock disable in stop2 mode ( Don't have External clock, runnning with Internal clock when active)&lt;/DIV&gt;&lt;DIV&gt;LVD disable&lt;/DIV&gt;&lt;DIV&gt;unsing IRQ has the reset source for stop 2.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;is there anything else I need to know ??? or&amp;nbsp;something&amp;nbsp; wrong in my setup&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;regards,&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>Fri, 26 Oct 2007 21:12:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158780#M9380</guid>
      <dc:creator>m2s</dc:creator>
      <dc:date>2007-10-26T21:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: GT60 How to have STOP_2 mode working with IRQ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158781#M9381</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 wrote a small routine for the 9S08GB60, which is compatible with the 9S08GT60.&lt;/DIV&gt;&lt;DIV&gt;I did not include any clock settings, so the clock that's running is the standard internal 240 kHz clock.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What can be difficult is to get the selection of the STOP mode correct.&lt;/DIV&gt;&lt;DIV&gt;This is done by the SPMSC2 register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope it helps!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Ake&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/7920_gb60_stop2.zip" rel="nofollow" target="_self"&gt;GB60_STOP2.zip&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-27&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;02:16 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158781#M9381</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2007-10-29T17:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: GT60 How to have STOP_2 mode working with IRQ</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158782#M9382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;HI, I looked at your code and why are you&amp;nbsp;using the IRQ interrupt vector&amp;nbsp;since a wake up from the IRQ in stop 2 mode will call the reset vector ???&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;by the way, it doesn't work in my setup, it goes into sleep but IRQ is not waking up the CPU.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've put a Led toggle in both interrupt routines (reset and IRQ) and even in my main loop, I restore all Input and Toggle the led before going back into stop 2 mode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Nothing is happening into the led PORT (Check it with an Scope).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My code react fine if i'm enabling the BDM mode... but when disabling BDM mode.. it stays in STOP 2.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by m2s on &lt;SPAN class="date_text"&gt;2007-10-30&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:48 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 21:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/GT60-How-to-have-STOP-2-mode-working-with-IRQ/m-p/158782#M9382</guid>
      <dc:creator>m2s</dc:creator>
      <dc:date>2007-10-30T21:47:24Z</dc:date>
    </item>
  </channel>
</rss>

