<?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>8-bit MicrocontrollersのトピックRe: strange QT4 behavior</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133672#M3485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;But listen to the second workaround listed in the MSE908QY4_3L69J errata:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Disable the COP watchdog, or use a timeout period that is longer than the page&lt;BR /&gt;erase time (4 ms) and write to $FFFF immediately before and after doing any&lt;BR /&gt;page erase.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I've disabled the COP on all versions which use the ROM-resident erase function. But I'm still dealing with product returns which exhibit the symptom of erased reset vectors.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2006 05:02:48 GMT</pubDate>
    <dc:creator>irob</dc:creator>
    <dc:date>2006-10-25T05:02:48Z</dc:date>
    <item>
      <title>strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133666#M3479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got some QT4's on a mature design that are behaving strangely. On a controlled test environment, I'm seeing a few boards fail at random times while others from the same batch are not. All QT's are from the same date code batch (RMCGWm).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The method of failure is the same. I have input switches that are "freezing up". In other words, immediately upon power up these switches are not functioning when they very clearly should be. I have (what I thought to be) very stable state machines and adequate COP timer resets such that these switches are polled constantly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, it's difficult to debug this problem. I have the QT4 demo board, but that requires porting the code into that board. Plus, that is different hardware, so I could be chasing a phantom bug that might be hardware related.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After swapping out boards, I no longer saw the problem. Here's the question: what is it about this problem board that would cause this? I've already tested for intermittent shorts on the inputs. I'm thinking it's something about the microcontroller. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2006 01:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133666#M3479</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-10-20T01:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133667#M3480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Have a look at the Vdd rising profile.&lt;BR /&gt;If you have high capacitors on the power supply, the time to charge them may mean Vdd rise-time is too slow.&lt;BR /&gt;&lt;BR /&gt;This would cause code run-away, matching the observed behaviour.&lt;BR /&gt;A way to check this would be to see, when you boot it up, if the LVI bit in the SRSR is set.&lt;BR /&gt;&lt;BR /&gt;With a normal fast power supply, you are likely to only get POR and PIN bits. PIN would come from the reset line kept low by an RC filter.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 01:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133667#M3480</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-10-23T01:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133668#M3481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Alban,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;HR /&gt;&lt;FONT size="1"&gt;Alban wrote:&lt;BR /&gt;&lt;BR /&gt;Have a look at the Vdd rising profile.&lt;BR /&gt;If you have high capacitors on the power supply, the time to charge them may mean Vdd rise-time is too slow.&lt;BR /&gt;&lt;BR /&gt;This would cause code run-away, matching the observed behaviour.&lt;BR /&gt;&lt;/FONT&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I am curious as to the run-away mechanism - does the reset vector not correctly load to the PC?&amp;nbsp; Since the LVI module is initially enabled by default, doesn't this offer some protection if the voltage is still too low after the clock stabilisation interval?&amp;nbsp; Do you know of any application notes that detail this possible run-away phenomenom?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 11:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133668#M3481</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-10-23T11:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133669#M3482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Mac,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With a very low voltage, the POR is kicking in on top of the LVI.&lt;/DIV&gt;&lt;DIV&gt;The POR will kick at about 1V, but Vdd needs to go below 100mV for rearming the circuitry.&lt;/DIV&gt;&lt;DIV&gt;So you have a possibility of code run-away in condition described in the figure of page 4 of AN2640.&lt;/DIV&gt;&lt;DIV&gt;I also think that if the Vdd rise time is not fast enough, you can get some normal latch-up effects.&lt;/DIV&gt;&lt;DIV&gt;The minimum Vdd rise time is characterized and stated at the electrical specification.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN2640.pdf?srch=1" rel="nofollow" target="_blank"&gt;AN2640&lt;/A&gt;&amp;nbsp;(Page 4)&lt;BR /&gt;&lt;SPAN&gt;HC908QY4/QT4 Microcontroller (MCU) Application Hints&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN2105.pdf?srch=1" rel="nofollow" target="_blank"&gt;AN2105&lt;/A&gt;&amp;nbsp;(Page 2)&lt;BR /&gt;&lt;SPAN&gt;Power-On, Clock Selection, and Noise Reduction Techniques for the MC68HC908GP32&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/eng_bulletin/EB398.pdf?srch=1" rel="nofollow" target="_blank"&gt;EB398&lt;/A&gt;&amp;nbsp;(other interest)&lt;BR /&gt;&lt;SPAN&gt;Techniques to Protect MCU Applications Against Malfunction Due to Code Run-Away&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN1744.pdf?srch=1" rel="nofollow" target="_blank"&gt;AN1744&lt;/A&gt;&amp;nbsp;(also of interest)&lt;BR /&gt;&lt;SPAN&gt;Resetting Microcontrollers During Power Transitions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 20:38:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133669#M3482</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-10-23T20:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133670#M3483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Alban wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/files/microcontrollers/doc/eng_bulletin/EB398.pdf?srch=1" rel="nofollow" target="_blank"&gt;EB398&lt;/A&gt; (other interest)&lt;BR /&gt;&lt;SPAN&gt;Techniques to Protect MCU Applications Against Malfunction Due to Code Run-Away&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;Great stuff, Alban. Very intersting. I'm particularly curious if this code-runaway situation might possibly be affecting my other issues with QT4s. &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=3214&amp;amp;jump=true#M3214" target="_blank"&gt;See here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Listen to this from the above Engineering Bulletin:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;In applications which include non-volatile memory there is a possibility that its contents could be corrupted by uncontrolled behavior of the MCU. This would&lt;BR /&gt;be particularly serious in the case of Flash or EEPROM memory that contains&lt;BR /&gt;application code. If this is corrupted, the application may be rendered nonfunctional&lt;BR /&gt;with no possibility of recovery short of reprogramming.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;That describes exactly my situation with regards to lost jump vectors.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 03:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133670#M3483</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-10-25T03:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133671#M3484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey iRob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've reacted on your vector table erase before reading this.&lt;/DIV&gt;&lt;DIV&gt;I don't think this point is related to your application.&lt;/DIV&gt;&lt;DIV&gt;You can screen this out by watching your power supplies.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Even if the EB explains what is possible, it would mean that your code running away always go and execute the Flash Erase routine as you don't observe other erratic behaviour, it would be bad luck &lt;IMG alt=":smileyindifferent:" class="emoticon emoticon-smileyindifferent" id="smileyindifferent" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-indifferent.gif" title="Smiley Indifferent" /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Furthermore, when you remove the use of erase routine, you still get the failure. Meaning the code running away would have to jump to the start of the ROM erase routine 100% of the time, or to a part of the memory changing the Flash programming registers accordingly...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My bet is on the COP !&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 04:14:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133671#M3484</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-10-25T04:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133672#M3485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;But listen to the second workaround listed in the MSE908QY4_3L69J errata:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Disable the COP watchdog, or use a timeout period that is longer than the page&lt;BR /&gt;erase time (4 ms) and write to $FFFF immediately before and after doing any&lt;BR /&gt;page erase.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;I've disabled the COP on all versions which use the ROM-resident erase function. But I'm still dealing with product returns which exhibit the symptom of erased reset vectors.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 05:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133672#M3485</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-10-25T05:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133673#M3486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes, it's because the writer probably meant "don't use the COP or if you want to use it, make sure its time-out is long enough and you don't refresh it during the page erase."&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 15:56:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133673#M3486</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-10-25T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133674#M3487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello iRob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;It is not entirely clear whether&amp;nbsp;your 'freezing up" problem is a permanent fault, or can be cleared with a POR.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I generally adopt a particular strategy to ensure that I/O control registers cannot remain corrupt - a strategy that I have never actually seen advocated by Freescale in sample programs, etc.&amp;nbsp; In most code that I see, the initialisation of I/O registers (data direction and pull-up enable) seem to be done only once after a reset.&amp;nbsp; It is then typically assumed that these will remain uncorrupted until the next&amp;nbsp;reset (assuming the program code has no need to change them).&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;To allow for possible corruption to occur, by whatever cause, I would usually "re-state" the required register values as the first task on each entry to the main program loop (followed by reset of the COP timer).&amp;nbsp; This would also apply to any other control registers that influence the way the I/O pins behave, and are not&amp;nbsp;updated within other routines, after initialisation.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I see this as a precautionary measure that does no harm, and requires minimal overhead.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2006 23:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133674#M3487</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-10-25T23:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133675#M3488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mac, the button "freeze up" problem can be corrected with POR. So yours is an interesting solution. I'll give it a go and see if we have this anymore.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 00:08:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133675#M3488</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-10-26T00:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133676#M3489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Here's an update:&lt;BR /&gt;&lt;BR /&gt;I've got a version of my firmware written that re-writes the data direction registers each time at the top of the main program loop. Regardless, on some boards the problem of "button freeze" is still reproducible. I'm going to hang an LED on an output pin to try to debug this further.&lt;BR /&gt;&lt;BR /&gt;Also, my COP timeout has always been set to the long cycle (262,128 x BUSCLKX4) in the COPRS bit of CONFIG1. Is there any other register I should be setting for longer COP timeout?&lt;BR /&gt;&lt;BR /&gt;Also, if my COP is disabled, should I remove every instance of &lt;FONT face="Courier New"&gt;__RESET_WATCHDOG();&lt;/FONT&gt;?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 05:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133676#M3489</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-11-09T05:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133677#M3490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Rob,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There is only two choices of COP timeout here, controlled by COPRS in CONFIG1 like you say.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As for the other question.....&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Kick a dead dog and you get.... well, a dead dog!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Set a broken clock and its correct twice a day!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It will just waste a few cycles.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;/DIV&gt;&lt;DIV&gt;David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 17:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133677#M3490</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-11-09T17:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: strange QT4 behavior</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133678#M3491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello iRob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;On the "freeze up" problem,&amp;nbsp; have you been able to identify that the firmware is still operating correctly, aside from the lack of response from the pushbuttons?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Does the project use an LED, or do you have a spare pin that an LED could be connected to, for diagnostic&amp;nbsp;purposes?&amp;nbsp; If so, you might modify the code for the following mutually exclusive tests -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;1.&amp;nbsp; At the completion of your initialisation code, flash the LED for a period of 100-200 milliseconds (making sure the COP is reset periodically during the delay period).&amp;nbsp; You will be able to determine that the POR occurs properly, and that the remainder of the code does not cause COP timeout, i.e. only a single flash on power-up.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;2.&amp;nbsp; Set up a timing register that the timer overflow ISR will decrement each time it is entered, provided its value is not already zero. This will provide a timeout period in multiples of 20 milliseconds (for a TIM prescale of 1).&amp;nbsp; Then at each commencement of the main loop, test for timeout (zero register value), and if so set the register for a suitable delay period and toggle the test LED.&amp;nbsp; If the LED then continuously cycles, this will verify that the firmware remains operational, and does not head off to places unknown.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If both tests were to verify correct operation when the pushbuttons cease operation, this would localise the problem to the push button code.&amp;nbsp; Are you using keyboard interrupts for this purpose, or are you polling the pushbuttons?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 23:44:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133678#M3491</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-11-09T23:44:24Z</dc:date>
    </item>
    <item>
      <title>UPDATE!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133679#M3492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I'm not using keyboard interrupts, I'm just polling with state machines.&lt;BR /&gt;&lt;BR /&gt;These are all great suggestions. I will look into them very soon. In the meantime, I think I may have a successful update. I've enabled LVI on these problem boards and this button issue (among others) seems to have disappeared. More info to follow...&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 03:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133679#M3492</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-11-10T03:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133680#M3493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello iRob,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I had assumed that the LVI would be enabled, and am surprised that you would have disabled it.&amp;nbsp; This is now very suggestive of a power ramp up problem, as previously explained by Alban.&amp;nbsp; What voltage regulator do you use, and what are the input and output capacitor values?&amp;nbsp; During your tests, did you apply&amp;nbsp;power by switching the DC voltage, or by switching the AC mains voltage?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 05:26:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133680#M3493</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-11-10T05:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133681#M3494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well, I have begun using LVI on other more recent firmware. This button bug started showing up on an older set of firmware, where LVI was still disabled. Never fear, LVI (or LVD in the case of 9S08's) are now my firm policy. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;On all these targets, I've been using small SOT23 LDOs from TI, TPS76301. I've got 0.1uF caps on the input, 10uF caps on the output. The input to my target is +5V.&lt;BR /&gt;&lt;BR /&gt;For testing, power cycling varies. In my software test environment, I'm using a bench DC supply, so I typically switch that off (still technically DC switching). In the final assembly lab, our technicians use batteries to cycle power.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 05:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/strange-QT4-behavior/m-p/133681#M3494</guid>
      <dc:creator>irob</dc:creator>
      <dc:date>2006-11-10T05:34:57Z</dc:date>
    </item>
  </channel>
</rss>

