<?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: MCF52255: Low power wait mode vs Bwt in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52255-Low-power-wait-mode-vs-Bwt/m-p/177256#M7013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other information&lt;/P&gt;&lt;P&gt;BWT counter is reset in RTC interrupt. RTC interrupt increment my SystemTick and it has frequency of 1000 Hz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FEC interrupt seems cause problem to RTC interrupt... That's strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2010 01:33:07 GMT</pubDate>
    <dc:creator>SLSL</dc:creator>
    <dc:date>2010-02-20T01:33:07Z</dc:date>
    <item>
      <title>MCF52255: Low power wait mode vs Bwt</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52255-Low-power-wait-mode-vs-Bwt/m-p/177255#M7012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to decrease current consumed by MCU (MCF52255). &amp;nbsp;I define two functions for that. First function turns MCU in low power Stop mode (deepest mode). Here is code for this action:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;MCF_PMM_LPCR = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;| MCF_PMM_LPCR_LPMD_STOP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Select stop mode&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;| MCF_PMM_LPCR_STPMD_ALL_DISABLED; // Highest stop level &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; MCF_PMM_LPICR = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;| MCF_PMM_LPICR_XLPM_IPL(5) &amp;nbsp;// Only level 6-7 exit from stop mode&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;| MCF_PMM_LPICR_ENBSTOP; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Activate low power mode &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; asm( stop #0x2000);&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second function turns MCU in low power Wait mode. In this mode, I want CPU answers to interrupts. Here is code for this action:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF_PMM_LPCR = MCF_PMM_LPCR_LPMD_WAIT; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Select wait mode&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCF_PMM_LPICR = 0&lt;/P&gt;&lt;P&gt;| MCF_PMM_LPICR_XLPM_IPL(0) &amp;nbsp; // Any level can wake up MCU&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; | MCF_PMM_LPICR_ENBSTOP; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Activate low power mode &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; asm( stop #0x2000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use wait or stop function, when MCU is idle and FEC is not used (MCU does not wait for a FEC interrupt), that works well. When FEC is not used, external PHY is in Power Down mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a problem when I want use wait function when MCU is idle and FEC is used: &amp;nbsp;I don't know why, but Backup Watchdog Timer (BWT) resets MCU in this case (RSR register has 0x80 after MCU reset).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have hints for me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 04:57:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52255-Low-power-wait-mode-vs-Bwt/m-p/177255#M7012</guid>
      <dc:creator>SLSL</dc:creator>
      <dc:date>2010-02-19T04:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52255: Low power wait mode vs Bwt</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52255-Low-power-wait-mode-vs-Bwt/m-p/177256#M7013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other information&lt;/P&gt;&lt;P&gt;BWT counter is reset in RTC interrupt. RTC interrupt increment my SystemTick and it has frequency of 1000 Hz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FEC interrupt seems cause problem to RTC interrupt... That's strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2010 01:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52255-Low-power-wait-mode-vs-Bwt/m-p/177256#M7013</guid>
      <dc:creator>SLSL</dc:creator>
      <dc:date>2010-02-20T01:33:07Z</dc:date>
    </item>
  </channel>
</rss>

