<?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: HCS12 STOP MODE in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155592#M4672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;This is from app note AN2461.&amp;nbsp; It's very good information for getting the lowest power.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="ArialMT" size="3"&gt;When the HCS12 goes in any low-power mode, the content of its registers remain unchanged. In particular the ports keep their configuration. So, it is important to set the ports in a state that may not lead to a current consumption increase at the application level. Software and hardware engineers should follow these guidelines in order to avoid additional current consumption:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P align="left"&gt;• One should not leave any I/O configured as an unconnected input but tie them to Vdd or Vss. Or one can also set unconnected I/O as output thus forcing a steady level.&lt;/P&gt;&lt;P align="left"&gt;• The same recommendation applies to unbonded I/O on small packages (on the QFP80 package vs QFP112 for instance). In this case we recommend setting the unbonded I/O as output.&lt;/P&gt;&lt;P align="left"&gt;• For inputs whose logic state is uncertain (for a Hall-effect sensor signal for instance), one should use external pull-up or pull-down resistors instead of the internal ones that are “weak” (typically between 20k&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt; &lt;FONT face="ArialMT" size="3"&gt;and 50k&lt;/FONT&gt;&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt;&lt;FONT face="ArialMT" size="3"&gt;). This way the power consumption is minimized in case the level of these inputs changes during the low-power mode.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;– &lt;B&gt;&lt;FONT face="Arial-BoldMT" size="3"&gt;Example:&lt;/FONT&gt;&lt;/B&gt; &lt;FONT face="ArialMT" size="3"&gt;When using an input with internal pull-up, if the input signal goes low, we may get an additional current consumption of 5V / 20,000 = 250μA !&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;Disabling the internal pull-up and using an external 100k&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt; &lt;FONT face="ArialMT" size="3"&gt;pull-up resistor in this case would only lead to 50μA additional consumption at the application level.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;• In some cases, peripheral devices can be powered down (if connected to V2 of the SBC for instance). This implies that their I/O have an undefined state. In such cases it might be better to set the MCU port as an output in order to set a fixed level (to be defined depending on the device), thus avoiding floating nodes.&lt;/P&gt;&lt;P align="left"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P align="left"&gt;I hope this helps.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2007 23:09:18 GMT</pubDate>
    <dc:creator>Witztronics</dc:creator>
    <dc:date>2007-10-16T23:09:18Z</dc:date>
    <item>
      <title>HCS12 STOP MODE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155591#M4671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;I want to put the MCU in STOP mode.&lt;/DIV&gt;&lt;DIV&gt;the procedure for doing that is:&lt;/DIV&gt;&lt;DIV&gt;1. Clear the S bit in the CCR.&lt;/DIV&gt;&lt;DIV&gt;2. execute STOP instruction.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;my MCU is running from the PLL, the Crystal freq. is 16MHz and the Bus clock is 24Mhz.&lt;/DIV&gt;&lt;DIV&gt;I read from the Spec. that when the MCU is in the stop mode, it consumes very small current (less than 1mA) or even less.&lt;/DIV&gt;&lt;DIV&gt;but what i get on my board is total current of 25mA!&lt;/DIV&gt;&lt;DIV&gt;although the other ICs on the board consume all together less than 1mA.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;when I put the MCU in the Stop mode, it actually goes into the stop mode, and I can see a reduction in the total current consumed, but it's far more than what the Spec. tell.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What would be the reason for such high current in Stop mode?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks a lot for the help..&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Prog-Ram.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 22:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155591#M4671</guid>
      <dc:creator>prog_ram</dc:creator>
      <dc:date>2007-10-16T22:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 STOP MODE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155592#M4672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;This is from app note AN2461.&amp;nbsp; It's very good information for getting the lowest power.&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="ArialMT" size="3"&gt;When the HCS12 goes in any low-power mode, the content of its registers remain unchanged. In particular the ports keep their configuration. So, it is important to set the ports in a state that may not lead to a current consumption increase at the application level. Software and hardware engineers should follow these guidelines in order to avoid additional current consumption:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P align="left"&gt;• One should not leave any I/O configured as an unconnected input but tie them to Vdd or Vss. Or one can also set unconnected I/O as output thus forcing a steady level.&lt;/P&gt;&lt;P align="left"&gt;• The same recommendation applies to unbonded I/O on small packages (on the QFP80 package vs QFP112 for instance). In this case we recommend setting the unbonded I/O as output.&lt;/P&gt;&lt;P align="left"&gt;• For inputs whose logic state is uncertain (for a Hall-effect sensor signal for instance), one should use external pull-up or pull-down resistors instead of the internal ones that are “weak” (typically between 20k&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt; &lt;FONT face="ArialMT" size="3"&gt;and 50k&lt;/FONT&gt;&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt;&lt;FONT face="ArialMT" size="3"&gt;). This way the power consumption is minimized in case the level of these inputs changes during the low-power mode.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;– &lt;B&gt;&lt;FONT face="Arial-BoldMT" size="3"&gt;Example:&lt;/FONT&gt;&lt;/B&gt; &lt;FONT face="ArialMT" size="3"&gt;When using an input with internal pull-up, if the input signal goes low, we may get an additional current consumption of 5V / 20,000 = 250μA !&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;Disabling the internal pull-up and using an external 100k&lt;FONT face="Symbol" size="3"&gt;Ω&lt;/FONT&gt; &lt;FONT face="ArialMT" size="3"&gt;pull-up resistor in this case would only lead to 50μA additional consumption at the application level.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;• In some cases, peripheral devices can be powered down (if connected to V2 of the SBC for instance). This implies that their I/O have an undefined state. In such cases it might be better to set the MCU port as an output in order to set a fixed level (to be defined depending on the device), thus avoiding floating nodes.&lt;/P&gt;&lt;P align="left"&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P align="left"&gt;I hope this helps.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 23:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155592#M4672</guid>
      <dc:creator>Witztronics</dc:creator>
      <dc:date>2007-10-16T23:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 STOP MODE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155593#M4673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;thanks Witztronics for the info.&lt;/DIV&gt;&lt;DIV&gt;I read the applications, and I would like tell you the following settings I have.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using only the MSCAN module and ECT and PLL and BDM. I don't use any other ones.&lt;/DIV&gt;&lt;DIV&gt;so only the pins for the H/L CAN lines are used here (The ECT is used only for internal timing operations).&lt;/DIV&gt;&lt;DIV&gt;all ATD pins are grounded.&lt;/DIV&gt;&lt;DIV&gt;Vrh is connected to VDD.&lt;/DIV&gt;&lt;DIV&gt;All unused pins are left floating with the default settings in the registers (after Reset).&lt;/DIV&gt;&lt;DIV&gt;the BDM is used (standart pin header and configuration is used).&lt;/DIV&gt;&lt;DIV&gt;IRQ is left floating (it will take the "out-of-reset" defualt settings).&lt;/DIV&gt;&lt;DIV&gt;my other ICs consume about 1mA (total).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;currently, I get the MCU go to sleep mode and waken up by CAN activity without any problem. the only problem I have is the current consumption, and I still get high current consmuption, and don't know why!!&lt;/DIV&gt;&lt;DIV&gt;on functionality point of view, the MCU is working perfectly. but just the current problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;any, any help here will be great.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thanks.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&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>Wed, 17 Oct 2007 00:01:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155593#M4673</guid>
      <dc:creator>prog_ram</dc:creator>
      <dc:date>2007-10-17T00:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 STOP MODE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155594#M4674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Unless you are actively writing to the PUCR register, it isn't possible to leave IRQ floating, since it is shared with PE1, and the whole PORTE has internal pull-ups enabled out of reset.&lt;BR /&gt;&lt;BR /&gt;The advices by Witztronics are not only good for low current consumption, but also for EMI immunity. For that, you should use external pull-resistors on all ports that don't have an internal one enabled out of reset. That is, every port but PORTE, PORTK, PTS, PTJ.&lt;BR /&gt;&lt;BR /&gt;Also, I take it there is no CAN tranceiver on the board? Otherwise I doubt you would get such low current from the other ICs, since you are using MSCAN.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 13:34:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-STOP-MODE/m-p/155594#M4674</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2007-10-17T13:34:46Z</dc:date>
    </item>
  </channel>
</rss>

