<?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>S12 / MagniV MicrocontrollersのトピックQuestions for Entering and Exiting Stop mode on S12XET256</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200866#M8110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir or Madam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My application uses S12XET256. In order to save power, S12XET256 has to be in STOP (pseudo or full) mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the normal operation, debugging information is printed out of SCI port at baud-rate 38400.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the documents, the processor can be put into pseudo STOP mode with /XIRQ pull high externally, S-Bit is clear (ANDCC #$7F), X-Bit is set(ORCC #$40), I-bit is clear(CLI), PSTP = 0. It seems S12X goes to the right&amp;nbsp;mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An&amp;nbsp;external interrupt is configured to Port H. Once the interrupt is fired, S12XET256 goes out of pseudo STOP mode. New debugging information will be printed out of SCI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after wakeup, the new debugging information that goes out of SCI are corrupted. It seems that the program&amp;nbsp;does not start right after "STOP" instruction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;does the processor wake up from STOP mode? Is it possible the SCI baudrate got changes during STOP mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using "WAI" Instead of "STOP", everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice what I have done wrong on entering or exiting STOP mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2012 00:15:55 GMT</pubDate>
    <dc:creator>luke_5817</dc:creator>
    <dc:date>2012-01-27T00:15:55Z</dc:date>
    <item>
      <title>Questions for Entering and Exiting Stop mode on S12XET256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200866#M8110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir or Madam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My application uses S12XET256. In order to save power, S12XET256 has to be in STOP (pseudo or full) mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the normal operation, debugging information is printed out of SCI port at baud-rate 38400.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the documents, the processor can be put into pseudo STOP mode with /XIRQ pull high externally, S-Bit is clear (ANDCC #$7F), X-Bit is set(ORCC #$40), I-bit is clear(CLI), PSTP = 0. It seems S12X goes to the right&amp;nbsp;mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An&amp;nbsp;external interrupt is configured to Port H. Once the interrupt is fired, S12XET256 goes out of pseudo STOP mode. New debugging information will be printed out of SCI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after wakeup, the new debugging information that goes out of SCI are corrupted. It seems that the program&amp;nbsp;does not start right after "STOP" instruction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where&amp;nbsp;does the processor wake up from STOP mode? Is it possible the SCI baudrate got changes during STOP mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using "WAI" Instead of "STOP", everything works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice what I have done wrong on entering or exiting STOP mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 00:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200866#M8110</guid>
      <dc:creator>luke_5817</dc:creator>
      <dc:date>2012-01-27T00:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for Entering and Exiting Stop mode on S12XET256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200867#M8111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using PLL? If so, then&amp;nbsp;after wakeup you should not send over SCI anything until&amp;nbsp;PLL is relocked and you&amp;nbsp;switch to PLL clock.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is fast wake up enabled (PLLCTL.FSTWKP)? Then you should not print debug message&amp;nbsp;while MCU is in self clock mode (CRGFLG.SCM==1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 22:51:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200867#M8111</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-01-27T22:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Questions for Entering and Exiting Stop mode on S12XET256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200868#M8112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&lt;/P&gt;&lt;P&gt;Thank you for your help. It works now.&lt;/P&gt;&lt;P&gt;--Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2012 02:20:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Questions-for-Entering-and-Exiting-Stop-mode-on-S12XET256/m-p/200868#M8112</guid>
      <dc:creator>luke_5817</dc:creator>
      <dc:date>2012-01-28T02:20:33Z</dc:date>
    </item>
  </channel>
</rss>

