<?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: Stumped geezer on Stop3 power / QDn in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Stumped-geezer-on-Stop3-power-QDn/m-p/208524#M17747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, you appear to be attempting to enter Stop2 mode, rather than Stop3 mode.&amp;nbsp; This would require different wakeup handling, with the wakeup source limited to IRQ/Reset pin and the RTI module.&amp;nbsp;&amp;nbsp;The KBI module is disabled.&amp;nbsp; However, this may not be the cause of your symptoms.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;CustomSarge wrote:&lt;BR /&gt;&lt;P&gt;Problem: power never &amp;lt;8.5-9.1mA in Stop. Tried 2 QD2s 1 QD4: same situ. &lt;FONT color="#339966"&gt;Using default internal FEI clock, other clocking methods yield looping resets.&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;Weird part: attached USB Multilink has power@ 8.5-9.1, target as standalone draws 14-16mA!&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;This is by pulling USB off live, It won't run standalone from power cycle.&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;The FBI modes are&amp;nbsp;likely of little use for your application, giving a bus frequency in the region of 16kHz.&amp;nbsp; An attempt ot use one of these modes could result in COP resets, if using the 1kHz source for the COP.&amp;nbsp; For the 'QD4, this leaves the&amp;nbsp;FEI mode only.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;You will need to elaborate on what you mean.&amp;nbsp; It is probable that you are not remaining in stop mode, perhaps due to an uncleared interrupt flag.&amp;nbsp;&amp;nbsp;Maybe you could&amp;nbsp;provide code showing how you enter stop mode (relative to the rest of the program), and also the stop mode exit process you are using.&amp;nbsp;&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;Have you programmed the Reset and KBI vectors?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For stop3 mode only, the MCU will continue execution with the instruction immediately following the STOP instruction, after it has finished processing the KBI interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your project requires an accurate bus frequency, you will need a calibrated trim value for each MCU.&amp;nbsp; With a POR trim setting of $80, the bus frequency will have unit-to-unit variation of about +/-25 percent.&amp;nbsp; Your fixed trim value would be subject to the same variation.&amp;nbsp; A non-volatile trim setting is programmed to a flash register, as part of the device&amp;nbsp;programming procedure.&amp;nbsp; This value then needs to be loaded to ICSTRM register during MCU initialisation to achieve +/-2 percent calibration over voltage and temperature.&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>Thu, 23 Feb 2012 18:47:50 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2012-02-23T18:47:50Z</dc:date>
    <item>
      <title>Stumped geezer on Stop3 power / QDn</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Stumped-geezer-on-Stop3-power-QDn/m-p/208523#M17746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10+yrs in Freescale 908/9S08, but I'm stumped... Very simple ckt: 3 spst mom. sws, 1 IR LED. Using KBI on sws to exit Stop3, issue a pattern, reenter Stop3 . This all works fine. I know Stop works: STOPE(SOPT1)=0 gives an ILOP(illegal op code) reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: power never &amp;lt;8.5-9.1mA in Stop. Tried 2 QD2s 1 QD4: same situ. Using default internal FEI clock, other clocking methods yield looping resets. Weird part: attached USB Multilink has power@ 8.5-9.1, target as standalone draws 14-16mA! This is by pulling USB off live, It won't run standalone from power cycle. Tried a different USB Intf: same situ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure looks like I've got the clock wrong, but don't see where. Also, it consistantly starts running the code after a flash download, first time I've seen this. Is there a CW(6.3.1) patch for QDs' I'm missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the sysreg inits (yes, I write asm)&lt;/P&gt;&lt;P&gt;_Startup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ldhx&amp;nbsp;&amp;nbsp;&amp;nbsp; #RAMEnd+1&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txs&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$f2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOPT1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;enable STOP modes&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clra&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOPT2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSC1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;internal ref clk&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$40&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSC2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;clk/2, FLL ena&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #clktrm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;=$7b&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICSTRM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$00&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPMSC1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;disable LVD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #$41&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sta&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPMSC2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;LVD low trip, STOP3 mode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand the ICS module well, but defaults have historically been fine. What else could be wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance, Kevin Sargent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 02:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Stumped-geezer-on-Stop3-power-QDn/m-p/208523#M17746</guid>
      <dc:creator>CustomSarge</dc:creator>
      <dc:date>2012-02-22T02:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stumped geezer on Stop3 power / QDn</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Stumped-geezer-on-Stop3-power-QDn/m-p/208524#M17747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, you appear to be attempting to enter Stop2 mode, rather than Stop3 mode.&amp;nbsp; This would require different wakeup handling, with the wakeup source limited to IRQ/Reset pin and the RTI module.&amp;nbsp;&amp;nbsp;The KBI module is disabled.&amp;nbsp; However, this may not be the cause of your symptoms.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;CustomSarge wrote:&lt;BR /&gt;&lt;P&gt;Problem: power never &amp;lt;8.5-9.1mA in Stop. Tried 2 QD2s 1 QD4: same situ. &lt;FONT color="#339966"&gt;Using default internal FEI clock, other clocking methods yield looping resets.&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;Weird part: attached USB Multilink has power@ 8.5-9.1, target as standalone draws 14-16mA!&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;This is by pulling USB off live, It won't run standalone from power cycle.&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;The FBI modes are&amp;nbsp;likely of little use for your application, giving a bus frequency in the region of 16kHz.&amp;nbsp; An attempt ot use one of these modes could result in COP resets, if using the 1kHz source for the COP.&amp;nbsp; For the 'QD4, this leaves the&amp;nbsp;FEI mode only.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;You will need to elaborate on what you mean.&amp;nbsp; It is probable that you are not remaining in stop mode, perhaps due to an uncleared interrupt flag.&amp;nbsp;&amp;nbsp;Maybe you could&amp;nbsp;provide code showing how you enter stop mode (relative to the rest of the program), and also the stop mode exit process you are using.&amp;nbsp;&lt;/FONT&gt; &lt;FONT color="#ff0000"&gt;Have you programmed the Reset and KBI vectors?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For stop3 mode only, the MCU will continue execution with the instruction immediately following the STOP instruction, after it has finished processing the KBI interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your project requires an accurate bus frequency, you will need a calibrated trim value for each MCU.&amp;nbsp; With a POR trim setting of $80, the bus frequency will have unit-to-unit variation of about +/-25 percent.&amp;nbsp; Your fixed trim value would be subject to the same variation.&amp;nbsp; A non-volatile trim setting is programmed to a flash register, as part of the device&amp;nbsp;programming procedure.&amp;nbsp; This value then needs to be loaded to ICSTRM register during MCU initialisation to achieve +/-2 percent calibration over voltage and temperature.&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>Thu, 23 Feb 2012 18:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Stumped-geezer-on-Stop3-power-QDn/m-p/208524#M17747</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2012-02-23T18:47:50Z</dc:date>
    </item>
  </channel>
</rss>

