<?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>LPCXpresso IDE中的主题 Re: Delays seem variable - Resonator Issue?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584089#M26149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Jul 10 11:13:21 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: micro9000&lt;/STRONG&gt;&lt;BR /&gt;I have been playing around with delays and I have noticed that at times the delay isn't correct or the LED doesn't blink at all (nothing happens). For instance, working off of the systemtick examples, I use 1000 for 1s and 500 for .5s. When I ran it the first few times the delay appeared accurate for the LED I am using. &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no reason why SysTick shouldn't work as long as SystemCoreClock is correct and you are not exceeding 24bit in&amp;nbsp; SysTick-&amp;gt;LOAD... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: micro9000&lt;/STRONG&gt;&lt;BR /&gt;Am I better off using a crystal such as this &lt;A href="http://http://www.digikey.com/product-detail/en/ATS12A/CTX1077-ND/2640029?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;12MHz crystal&lt;/A&gt;? It has a 20pF load capacitance, has a ESR of 40 Ohm, and I can use it with these &lt;A href="http://http://www.digikey.com/product-detail/en/FK28C0G1H390J/445-4721-ND/2050070?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;39pF capacitors&lt;/A&gt;. So, it seems like it checks out and could work better then the resonator I am using. Is this the way to go?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0.5% Accuracy or 30ppm, what do you want?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:43:21 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:43:21Z</dc:date>
    <item>
      <title>Delays seem variable - Resonator Issue?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584088#M26148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by micro9000 on Wed Jul 10 09:59:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been playing around with delays and I have noticed that at times the delay isn't correct or the LED doesn't blink at all (nothing happens). For instance, working off of the systemtick examples, I use 1000 for 1s and 500 for .5s. When I ran it the first few times the delay appeared accurate for the LED I am using. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this, I notied that upon programming it again, I noticed that the delays would start to decay and eventually it would stop working. Is this an indication of a oscillator/resonator issue? I tried a few different resonators (same capacitance) and the result was the same. What I suspect is that it could be the capacitance rating of the resonator. The one I have is a ceramic 20MHz resonator with 30pF capacitance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already ordered a 12MHz resonator with 30pF capacitance, but now I am not sure if I will get the same result. I am debating whether or not this is the issue from Table 15 in the user manual "crystal and external components parameters."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to the resonator I have selected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://http://www.digikey.com/product-detail/en/ZTT-12.00MT/X907-ND/170094?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;12Mhz 30pF built-in ceramic resonator&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, at times I get an error stating: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"05: File .axf load failure Ep(08). Cannot access core regs when target running."&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(After building it again sometimes this goes away, but it appears after programming again the microcontroller is not operating properly - nothing happens and the LED does not blink)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really not sure what is causing these issues with delays and what could be causing this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I better off using a crystal such as this &lt;/SPAN&gt;&lt;A href="http://http://www.digikey.com/product-detail/en/ATS12A/CTX1077-ND/2640029?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;12MHz crystal&lt;/A&gt;&lt;SPAN&gt;? It has a 20pF load capacitance, has a ESR of 40 Ohm, and I can use it with these &lt;/SPAN&gt;&lt;A href="http://http://www.digikey.com/product-detail/en/FK28C0G1H390J/445-4721-ND/2050070?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;39pF capacitors&lt;/A&gt;&lt;SPAN&gt;. So, it seems like it checks out and could work better then the resonator I am using. Is this the way to go?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:43:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584088#M26148</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delays seem variable - Resonator Issue?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584089#M26149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Jul 10 11:13:21 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: micro9000&lt;/STRONG&gt;&lt;BR /&gt;I have been playing around with delays and I have noticed that at times the delay isn't correct or the LED doesn't blink at all (nothing happens). For instance, working off of the systemtick examples, I use 1000 for 1s and 500 for .5s. When I ran it the first few times the delay appeared accurate for the LED I am using. &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no reason why SysTick shouldn't work as long as SystemCoreClock is correct and you are not exceeding 24bit in&amp;nbsp; SysTick-&amp;gt;LOAD... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: micro9000&lt;/STRONG&gt;&lt;BR /&gt;Am I better off using a crystal such as this &lt;A href="http://http://www.digikey.com/product-detail/en/ATS12A/CTX1077-ND/2640029?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;12MHz crystal&lt;/A&gt;? It has a 20pF load capacitance, has a ESR of 40 Ohm, and I can use it with these &lt;A href="http://http://www.digikey.com/product-detail/en/FK28C0G1H390J/445-4721-ND/2050070?CSRT=8893403143140003723&amp;amp;CSRT=3259742289630302166"&gt;39pF capacitors&lt;/A&gt;. So, it seems like it checks out and could work better then the resonator I am using. Is this the way to go?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0.5% Accuracy or 30ppm, what do you want?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:43:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584089#M26149</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delays seem variable - Resonator Issue?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584090#M26150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by micro9000 on Wed Jul 10 11:29:45 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was just trying to figure out if it is the resonator causing the delay/instability issues (it seems like it could be causing the problems mentioned above as you've suggested with system core clock). If the crystal I have selected isn't as good as one that you may have in mind, please do share :). The application I am think of doing would be dependent on keeping track of time so accuracy is of concern.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I purchased the crystal and capacitors I have selected. I'll let you know if either the 12MHz resonator or the crystal works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Delays-seem-variable-Resonator-Issue/m-p/584090#M26150</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:43:22Z</dc:date>
    </item>
  </channel>
</rss>

