<?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: DZ60 intermittent clock issue? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231122#M19405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mac,&lt;/P&gt;&lt;P&gt;Due to the FLL jitter and accuracy concerns, we are testing running in PLL bypass mode and taking&lt;/P&gt;&lt;P&gt;the hit running the core clk slower.&amp;nbsp; In the meantime we will try to see if we can determine how to&lt;/P&gt;&lt;P&gt;fix the PLL. I believe its due to noise on MCU 5V supply or ground. Due you see any other concerns&lt;/P&gt;&lt;P&gt;running in PLL bypass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 20:25:29 GMT</pubDate>
    <dc:creator>paullaiming</dc:creator>
    <dc:date>2013-05-24T20:25:29Z</dc:date>
    <item>
      <title>DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231115#M19398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several designs for high current motor controller using DZ60.&lt;/P&gt;&lt;P&gt;I am finding certain controllers designs have no issues but others will work up until a certain current and &lt;/P&gt;&lt;P&gt;then appears to get some kind if glitch. I suspect it is a crystal/clock circuit issue but cannot determine a method to &lt;/P&gt;&lt;P&gt;isolate and debug this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few data points:&lt;/P&gt;&lt;P&gt;- 12Mhz crystal (ECS-120-20-30B-DU) with 20pf/1Mohm oscillator circuit, PLL enabled, 18Mhz bus clock&lt;/P&gt;&lt;P&gt;- For the designs that have this issue - the glitch does not happen on every controller/motor combination.&lt;/P&gt;&lt;P&gt;- For the motor controller that do show the issue - they work at low currents but as the motor pwm duty is increased and current load goes up, the glitch occurs. This would be when the PCB noise is getting worse.&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;-The MCU is outputing a PWM signal using one of the TPMs. This signal goes to a motor control IC which takes&lt;/P&gt;&lt;P&gt;care of the motor control commutaion and timing. When the "glitch" occurs, the PWM output can get stuck high, low, or&lt;/P&gt;&lt;P&gt;at the last frequency.&lt;/P&gt;&lt;P&gt;- With codewarrior debugger attached, the MCU appears to jump to different instruction locations when glitch occurs(not same place every time).&lt;/P&gt;&lt;P&gt;The instructions are usually in areas of code that should not be being executed.&lt;/P&gt;&lt;P&gt;- I swap to activate internal clock and scale it to achieve nearly identical bus clock. The controller works without any glitches every time.&lt;/P&gt;&lt;P&gt;- I tried to play with the C and R values in the crystal circuit but it did not have any noiticable improvement.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a strong suspicion that the crystal circuit is being upset by the electrical noise but &lt;/P&gt;&lt;P&gt;cannot determine a way to prove it. Switching to internal clock is not considered an ideal solution&lt;/P&gt;&lt;P&gt;because of the requirement for CAN bus.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest some better methods to determine if the clock circuit is the&lt;/P&gt;&lt;P&gt;issue or if it is something else?&amp;nbsp; Feel free to ask any questions needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 23:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231115#M19398</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-08T23:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231116#M19399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCU-glitch.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119321iD2676F6DB40DD019/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCU-glitch.jpg" alt="MCU-glitch.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 23:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231116#M19399</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-08T23:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231117#M19400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that external noise could disrupt the crystal operation, especially if the connection of the two capacitors back to Vss (ground) is not by a very short route, i.e. there is inductance present.&amp;nbsp; Shorten the track and/or broaden the track to minimize the inductance.&amp;nbsp; Ideally use a ground plane layer.&amp;nbsp; Also make sure that "high gain" oscillator mode is selected.&amp;nbsp; Additionally, you might test whether you have similar problems when using a "canned" crystal oscillator, rather than a crystal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the diagnostics, you would firstly need to ascertain whether the noise is causing a reset.&amp;nbsp; The SRS register will indicate the cause of the last reset.&amp;nbsp; This can be read within the MCU initialisation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is that the noise is causing loss of lock of the PLL.&amp;nbsp; You might code the loss of lock interrupt, to determine if this is occurring during operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 12:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231117#M19400</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-05-13T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231118#M19401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mac,&lt;/P&gt;&lt;P&gt;After we noticed this issue on one of our earlier designs (and had to switch to internal clock for production), we spent significant effort on the layout. We made sure that the crystal, capacitors, and resistor were right next to the MCU and verified no noisy routes in layers below (basically tried our best to guard that area of the PCB). Ill see if I can post some layout pictures for your review.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the 2 ideas. We will get together today and test using your suggestions. My intuition is that a reset is not occuring, because if it was, the code would be restarting initialization and the motor would restart. What I have observed the code just seems to jump into never-never land.&amp;nbsp; The debugger usually remains working and shows the code stuck in some strange location or interrupt - sometimes the debugger seems to have issues communication. Also, many of the register values in the debugger will display completely incorrect values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 13:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231118#M19401</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-13T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231119#M19402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried both enabling the loss of lock interrupt and coding a snippet to set a variable if it occurred.&lt;/P&gt;&lt;P&gt;When the controller hung up sometimes the debugger stops communicating and the only&lt;/P&gt;&lt;P&gt;thing that will get it communicating again is to power cycle, so it was a bit tricky. It does not appear&lt;/P&gt;&lt;P&gt;that the loss of lock is occurring. Second, we checked the SRS register and no bits were&lt;/P&gt;&lt;P&gt;set during the event either - unless we manually hit the reset on the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also performed a more thorough review of the layout and there are some aspects that &lt;/P&gt;&lt;P&gt;are less than ideal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present we are trying to determine if using the ICG will be acceptable for running&lt;/P&gt;&lt;P&gt;CAN 2.0 at 125kbps.&amp;nbsp; I am concerned about this with temperature variations (-40C to 125C)&lt;/P&gt;&lt;P&gt;will results in loss of communication due to change in clock frequency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 16:59:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231119#M19402</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-16T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231120#M19403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We made a little progress this week. Our assumption was that the motor noise was disrupting our crystal clock circuit so we change the crystal to an external oscillator. Suprisingly this did not help. The MCU still latched up as the motor noise increased. Switching to internal clock still worked fine at all speeds and currents. Then I realized that using the internal clock does not allow PLL and requires switch to FLL. I tried switching the external oscillator to use the FLL and the latching issue was gone. This points to the PLL being the primary issue. I would have thought the PLL loss of lock interupt would have indicated this but perhaps is the clock is disrupted so severely the logic I implemented to indicate this may never have worked.&lt;/P&gt;&lt;P&gt;I am not that familiar with FLL vs PLL so now its time for some more research...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 12:48:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231120#M19403</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-22T12:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231121#M19404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the locking mechanism for the FLL should be more robust than for the PLL.&amp;nbsp; However, the FLL output will suffer from a greater amount of jitter than the PLL output.&amp;nbsp; I don't think that this will be a problem for your motor control, but I am not sure about the CAN bus operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 13:02:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231121#M19404</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-05-23T13:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: DZ60 intermittent clock issue?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231122#M19405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mac,&lt;/P&gt;&lt;P&gt;Due to the FLL jitter and accuracy concerns, we are testing running in PLL bypass mode and taking&lt;/P&gt;&lt;P&gt;the hit running the core clk slower.&amp;nbsp; In the meantime we will try to see if we can determine how to&lt;/P&gt;&lt;P&gt;fix the PLL. I believe its due to noise on MCU 5V supply or ground. Due you see any other concerns&lt;/P&gt;&lt;P&gt;running in PLL bypass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 20:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DZ60-intermittent-clock-issue/m-p/231122#M19405</guid>
      <dc:creator>paullaiming</dc:creator>
      <dc:date>2013-05-24T20:25:29Z</dc:date>
    </item>
  </channel>
</rss>

