<?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>LPC MicrocontrollersのトピックWake-up timer</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517545#M2232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ezharkov on Fri Nov 14 14:10:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From UM10360 v3.1: "Once a clock is detected, the Wake-up Timer counts a fixed number of clocks (4,096), then sets the flag (OSCSTAT bit in the SCS register) that indicates that the main oscillator is ready for use." What clocks is that? The main oscillator clocks? Or internal RC clocks? I'm timing the wait-for-OSCSTAT loop. I takes ~570 IRC clocks for my 12MHz crystal.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:28:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:28:26Z</dc:date>
    <item>
      <title>Wake-up timer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517545#M2232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ezharkov on Fri Nov 14 14:10:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From UM10360 v3.1: "Once a clock is detected, the Wake-up Timer counts a fixed number of clocks (4,096), then sets the flag (OSCSTAT bit in the SCS register) that indicates that the main oscillator is ready for use." What clocks is that? The main oscillator clocks? Or internal RC clocks? I'm timing the wait-for-OSCSTAT loop. I takes ~570 IRC clocks for my 12MHz crystal.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517545#M2232</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wake-up timer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517546#M2233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Sat Nov 15 16:17:31 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4096 clocks is referring to the main oscillator clock, assuming this is the clock that is used before entering power-down mode.&amp;nbsp; Note that power-down mode is the same as deep sleep mode, except that it turns off flash memory.&amp;nbsp; The deep sleep description has better details of the wake-up timer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the wake-up of Deep Sleep mode, if the IRC was used before entering Deep Sleep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mode, a 2-bit IRC timer starts counting and the code execution and peripherals activities&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will resume after the timer expires (4 cycles). If the main external oscillator was used, the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12-bit main oscillator timer starts counting and the code execution will resume when the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;timer expires (4096 cycles).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517546#M2233</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wake-up timer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517547#M2234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ezharkov on Sat Nov 15 17:05:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Paul. Your reply made me to review my calculations. I think I understand what the problem was. I was trying to measure the startup time of the main oscillator (at the initial power-up; no deep sleep or power downs are involved (yet)). 4096 cycles for a 12 MHz crystal should take ~341 microseconds. But I was seeing significantly shorter times. Or so I thought. I was using one of the timers for that, but forgot that upon reset timers run at CCLK/4 by default. Therefore, my 570 IRC cycles are really 570 microseconds (and not 570/4 as I thought). Therefore, everything seems to make sense now. (I assume that the difference, 570-341=229 microseconds, is the oscillator start time (i.e., time before the first cycle))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eugene&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-up-timer/m-p/517547#M2234</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:28:27Z</dc:date>
    </item>
  </channel>
</rss>

