<?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のトピックPLL never locks - HC908AP64 - clueless...help ?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192385#M14830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have a problem with a PLL not locking, never finishing and I cannot find the problem. I need your help please.&lt;/DIV&gt;&lt;DIV&gt;I'm using a MC908AP64 (HC08) with an external crystal 32768Hz according to suggested build from cpu-pdf-manual.&lt;/DIV&gt;&lt;DIV&gt;The board is custom built. We have designed OSC1 and OSC2 connected to R1 10M parallell, and X1 32768Hz, and 2 x C1 (12p) to ground, like the design example in the manual.&lt;/DIV&gt;&lt;DIV&gt;I attached the schematics for you to see.&lt;/DIV&gt;&lt;DIV&gt;I created a CPU setup with initialization tool... and have attached the project as well.&lt;/DIV&gt;&lt;DIV&gt;Noticed that it never seems to lock.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I designed so that after this cpu-setup is done.. it goes into loop of blinking a led. It works, in debugger (clocked from Cyclone Pro), but then I'm skipping the cpu_setup since it's been clocked from Cyclone Pro instead then by 9.8304MHz I get a LED-toggle frequency of about 240KHz..which seems a bit slow too. But that's is not why I'm asking so, never mind that &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;/Johan Sandgren&lt;/DIV&gt;&lt;DIV&gt;Svep Design Center AB&lt;/DIV&gt;&lt;DIV&gt;Lund, Sweden&lt;/DIV&gt;&lt;DIV&gt;+46 701 73 41 52&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2011 18:26:57 GMT</pubDate>
    <dc:creator>JSA</dc:creator>
    <dc:date>2011-03-21T18:26:57Z</dc:date>
    <item>
      <title>PLL never locks - HC908AP64 - clueless...help ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192385#M14830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;I have a problem with a PLL not locking, never finishing and I cannot find the problem. I need your help please.&lt;/DIV&gt;&lt;DIV&gt;I'm using a MC908AP64 (HC08) with an external crystal 32768Hz according to suggested build from cpu-pdf-manual.&lt;/DIV&gt;&lt;DIV&gt;The board is custom built. We have designed OSC1 and OSC2 connected to R1 10M parallell, and X1 32768Hz, and 2 x C1 (12p) to ground, like the design example in the manual.&lt;/DIV&gt;&lt;DIV&gt;I attached the schematics for you to see.&lt;/DIV&gt;&lt;DIV&gt;I created a CPU setup with initialization tool... and have attached the project as well.&lt;/DIV&gt;&lt;DIV&gt;Noticed that it never seems to lock.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I designed so that after this cpu-setup is done.. it goes into loop of blinking a led. It works, in debugger (clocked from Cyclone Pro), but then I'm skipping the cpu_setup since it's been clocked from Cyclone Pro instead then by 9.8304MHz I get a LED-toggle frequency of about 240KHz..which seems a bit slow too. But that's is not why I'm asking so, never mind that &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;/Johan Sandgren&lt;/DIV&gt;&lt;DIV&gt;Svep Design Center AB&lt;/DIV&gt;&lt;DIV&gt;Lund, Sweden&lt;/DIV&gt;&lt;DIV&gt;+46 701 73 41 52&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 18:26:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192385#M14830</guid>
      <dc:creator>JSA</dc:creator>
      <dc:date>2011-03-21T18:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: PLL never locks - HC908AP64 - clueless...help ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192386#M14831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found the error, was missing the optional resistor Rs, which made it work.&lt;/P&gt;&lt;P&gt;Strange..optional shouldn't mean it breaks the oscillator....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:52:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192386#M14831</guid>
      <dc:creator>JSA</dc:creator>
      <dc:date>2011-03-21T22:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: PLL never locks - HC908AP64 - clueless...help ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192387#M14832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It really is optional, depending on your crystal. Some crystals may require it, others may not. And it isn't always obvious from looking at the crystal's specification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My philosophy is to always include a place for the "optional" components on the PCB, and then decide at build-time whether or not to include it. In this case, I would have put a trace between the two pads of Rs. Then, if I needed to include Rs, I would cut the trace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learned the hard way (I never make the same mistake more than ten or eleven times).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 01:17:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192387#M14832</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2011-03-22T01:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: PLL never locks - HC908AP64 - clueless...help ?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192388#M14833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Johan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further to Rocco's comments, the purpose of the resistor Rs is to limit the drive power (dissipation) within the crystal itself.&amp;nbsp; The low frequency crystal type that you are using is much more fragile than higher frequency types of say, a few MHz.&amp;nbsp; Therefore, the low frequency type almost always needs a series resistor, typically 30-100k, to prevent over-drive, and&amp;nbsp;damage to the crystal.&amp;nbsp; However, should the resistor value&amp;nbsp;be&amp;nbsp;too high for a particular crystal, it will either not start to oscillate, or starting will be erratic.&amp;nbsp; It is best to observe the crystal manufacturerer's recommendations, if available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, crystals&amp;nbsp;of &amp;gt;1Mz (that use the quartz AT-cut) almost never need the series resistor, i.e. Rs = 0.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 11:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/PLL-never-locks-HC908AP64-clueless-help/m-p/192388#M14833</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-03-22T11:11:54Z</dc:date>
    </item>
  </channel>
</rss>

