<?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 Wait mode for HC12 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141932#M3350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to put the controller in wait mode. In order to consume less power, when normal supply is off and the controller is energised by akku. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-I will use XIRQ or IRQ to observe the normal supply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-During Wait Mode I need the RTI (to run implemented watch)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if any one can provide source code for wait mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mdk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2006 21:55:45 GMT</pubDate>
    <dc:creator>mdk</dc:creator>
    <dc:date>2006-07-04T21:55:45Z</dc:date>
    <item>
      <title>Wait mode for HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141932#M3350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to put the controller in wait mode. In order to consume less power, when normal supply is off and the controller is energised by akku. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-I will use XIRQ or IRQ to observe the normal supply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-During Wait Mode I need the RTI (to run implemented watch)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice if any one can provide source code for wait mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mdk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2006 21:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141932#M3350</guid>
      <dc:creator>mdk</dc:creator>
      <dc:date>2006-07-04T21:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wait mode for HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141933#M3351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This is how to do it with stop mode&lt;BR /&gt;&lt;BR /&gt; tfr CCR,a&lt;BR /&gt; anda #%01111111 ;clear S-bit&lt;BR /&gt; tfr a,CCR&lt;BR /&gt; stop&lt;BR /&gt;&lt;BR /&gt;probably the same for wait mode&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jul 2006 06:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141933#M3351</guid>
      <dc:creator>Ilocano</dc:creator>
      <dc:date>2006-07-08T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wait mode for HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141934#M3352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;But there's no need for all the transfers:&lt;PRE&gt; andcc #%01111111  ;clear S-bit
 stop&lt;/PRE&gt;&lt;BR /&gt;Disclaimer: I am not experienced with Stop / Wait while using interrupts. You would also consider any docs that explain limitations of certain hardware recovering from the low power states.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:42:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141934#M3352</guid>
      <dc:creator>imajeff</dc:creator>
      <dc:date>2020-10-29T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wait mode for HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141935#M3353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;To get into wait mode, you just use the assembly instruction:&lt;/P&gt;&lt;P&gt;WAI&lt;/P&gt;&lt;P&gt;or in C, you would do this:&lt;/P&gt;&lt;P&gt;asm WAI;&lt;/P&gt;&lt;P&gt;It's intended to be used with interrupts because&amp;nbsp;the instruction&amp;nbsp;stacks all of the registers for you.&amp;nbsp;&amp;nbsp;It reduces the interrupt latency since when the interrupt arrives, the CPU&amp;nbsp;has already&amp;nbsp;stacked everything and it can go&amp;nbsp;directly to the ISR.&amp;nbsp; The CPU clock stops so wait mode&amp;nbsp;also saves some power.&amp;nbsp; Any interrupt that is configured and unmasked will automatically start the CPU going again and the RTI instruction at the end of the ISR will re-balance the stack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 10:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141935#M3353</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-07-12T10:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wait mode for HC12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141936#M3354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;For S12&amp;nbsp;if all you need is RTI and IRQ/XIRQ wakeup then you may be able to use Pseudo-STOP mode which is much less power than Wait mode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;General note on HC11/HC12/S12/S12X/S12XE XIRQ: The XIRQ pin will always wake the MCU from STOP (or Pseudo-STOP) when it is asserted even if the X bit is in the disabled state. Take care to review the documentation and ensure that the XIRQ is correctly configured in hardware if STOP mode is in use.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2006 16:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Wait-mode-for-HC12/m-p/141936#M3354</guid>
      <dc:creator>Steve</dc:creator>
      <dc:date>2006-07-12T16:05:20Z</dc:date>
    </item>
  </channel>
</rss>

