<?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: HCS08 - Wait Mode Help in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217774#M18965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark Hotchkiss,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now I can enter Wait mode and wake up through CAN receive interrupt. But after wake up&amp;nbsp; the period of Time interrupt&amp;nbsp; was changed !!!&amp;nbsp;&amp;nbsp; why??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 09:00:11 GMT</pubDate>
    <dc:creator>aguo1223</dc:creator>
    <dc:date>2012-11-27T09:00:11Z</dc:date>
    <item>
      <title>HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217769#M18960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help using the wait mode with MC9S08DZ16 microcontroller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my main routine firstly i do some peripherals initialization (I am using UART, MSCAN, IIC and a Timer) and then I would like to put the microcontroller into Wait Mode waiting for an interrupt on the UART to reduce power consumption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After calling che Cpu_WaitInterrupt() function I have the following code into the main routine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(function() == 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where "function()" just looks if some data have been put into a sw buffer from the UART ISR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I see is that power consumption do not decrease and moreover all debug functions are active whereas on the datasheet I see that in Wait Mode only some functionalities should be enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is my procedure correct or do I have to consider some particular expedient to make the wait mode to run properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 15:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217769#M18960</guid>
      <dc:creator>freerunner</dc:creator>
      <dc:date>2010-08-11T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217770#M18961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does "Cpu_Waitinterrupt" do? You need to execute a WAIT instruction somewhere. In wait mode the CPU isnt clocked and no code can be executed, which is the whole purpose of that mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 17:52:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217770#M18961</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2010-08-11T17:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217771#M18962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that &lt;FONT face="courier new,courier"&gt;Cpu_WaitInterrupt()&lt;/FONT&gt; is either a macro or a function that contains the WAIT instruction, and little else.&amp;nbsp;&amp;nbsp;Maybe&lt;FONT face="courier new,courier"&gt;&amp;nbsp; __asm wait;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;When wakeup from wait mode occurs, the MCU will firstly execute the ISR code associated with the peripheral that caused wakeup, followed by any other&amp;nbsp;interrupts that may be pending when the first ISR exits.&amp;nbsp; Execution of the main loop will then continue, starting&amp;nbsp;with the assembly instruction immediately following the wait instruction.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the code following &lt;FONT face="courier new,courier"&gt;Cpu_WaitInterrupt()&lt;/FONT&gt; is being executed, wait mode is obvioulsy being exited.&amp;nbsp; If not due to one of the interrupt sources,&amp;nbsp; it may occur due to the debugger causing the MCU to enter active background mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you require wakeup from a specific interrupt source, the other potential interrupt sources must be disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 21:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217771#M18962</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-11T21:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217772#M18963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hi, I can not go to wait mode&amp;nbsp; through __asm wait when code is running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But before __asm wait; execute __asm SEI; can take mcu&amp;nbsp; to wait mode .Because all interrupt were disabled , I can not wake up mcu !!!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 05:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217772#M18963</guid>
      <dc:creator>aguo1223</dc:creator>
      <dc:date>2012-11-26T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217773#M18964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All interrupts might have been disabled &lt;EM&gt;before&lt;/EM&gt; the WAIT instruction, but the WAIT instruction will clear the I status bit, thereby re-enabling interrupts. It is not possible to enter a wait-state with interrupts disabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 21:33:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217773#M18964</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2012-11-26T21:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217774#M18965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark Hotchkiss,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now I can enter Wait mode and wake up through CAN receive interrupt. But after wake up&amp;nbsp; the period of Time interrupt&amp;nbsp; was changed !!!&amp;nbsp;&amp;nbsp; why??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 09:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/217774#M18965</guid>
      <dc:creator>aguo1223</dc:creator>
      <dc:date>2012-11-27T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: HCS08 - Wait Mode Help</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/1838485#M23868</link>
      <description>&lt;P&gt;Hello, do you have examples of the WAITH MODE and STOP MODE programs for MC9S08DZ series controllers? Can you provide me with a reference? Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 09:24:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HCS08-Wait-Mode-Help/m-p/1838485#M23868</guid>
      <dc:creator>wangbengang</dc:creator>
      <dc:date>2024-04-01T09:24:40Z</dc:date>
    </item>
  </channel>
</rss>

