<?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中的主题 SWT example</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWT-example/m-p/560609#M16111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by zbandit20 on Sat Sep 14 10:45:43 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to get the self wake up timer to work based on whats mentioned in the User Guide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I followed an example that was posted here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc812-wkt-deep-power-down-mode-working-only-once" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc812-wkt-deep-power-down-mode-working-only-once&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed both the example in the link above and also the steps mentioned in the UG to no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LPC810 board from NXP with LPCXpresso.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I'm trying to make the board go to sleep and wakeup at different intervals. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried putting the board to sleep using the provided code with LPC Xpresso but I dont think that works either, because I noticed one of the LEDs I turned on remains turned on even when I put the board to sleep. I know I'm doing something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any directions will be appreciated.&amp;nbsp; I've been fighting this for a few weeks.&amp;nbsp; I'm not very experienced with the ARM Cortex, I'm trying to learn as I go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:59:05 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:59:05Z</dc:date>
    <item>
      <title>SWT example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWT-example/m-p/560609#M16111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by zbandit20 on Sat Sep 14 10:45:43 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to get the self wake up timer to work based on whats mentioned in the User Guide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I followed an example that was posted here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc812-wkt-deep-power-down-mode-working-only-once" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc812-wkt-deep-power-down-mode-working-only-once&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed both the example in the link above and also the steps mentioned in the UG to no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the LPC810 board from NXP with LPCXpresso.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, I'm trying to make the board go to sleep and wakeup at different intervals. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried putting the board to sleep using the provided code with LPC Xpresso but I dont think that works either, because I noticed one of the LEDs I turned on remains turned on even when I put the board to sleep. I know I'm doing something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any directions will be appreciated.&amp;nbsp; I've been fighting this for a few weeks.&amp;nbsp; I'm not very experienced with the ARM Cortex, I'm trying to learn as I go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWT-example/m-p/560609#M16111</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: SWT example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SWT-example/m-p/560610#M16112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wells on Sun Sep 15 15:56:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is an example in the LPCOpen release for the LPC8xx that shows how to do enter sleep mode and wakeup via WKT more than once. (See the periph_wkt example.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;You can get it for LPCXpresso here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fsystem%2Ffiles%2Flpcopen_v2_00_lpcxpresso_nxp_lpcxpresso_812.zip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/system/files/lpcopen_v2_00_lpcxpresso_nxp_lpcxpresso_812.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-platform" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-platform&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example progressively cycles through all the PMU power modes ending with deep power down (and a board reset on the WKT event).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic code looks something like this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void WKT_IRQHandler(void)
{
/* Clear WKT interrupt request */
Chip_WKT_ClearIntStatus(LPC_WKT);

/* Wakeup IRQ handling here */
. . .
}

int main(void)
{
. . .

/* Alarm/wake timer as chip wakeup source */
Chip_SYSCTL_EnablePeriphWakeup(SYSCTL_WAKEUP_WKTINT);

/* Enable and reset WKT clock */
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_WKT);
Chip_SYSCTL_PeriphReset(RESET_WKT);

/* 10KHz clock source */
Chip_WKT_SetClockSource(LPC_WKT, WKT_CLKSRC_10KHZ);

/* Setup for wakeup in 5s */
Chip_WKT_LoadCount(LPC_WKT, Chip_WKT_GetClockRate(LPC_WKT) * 5);

/* Tell PMU to go to sleep */
Chip_PMU_Sleep(LPC_PMU, PMU_MCU_DEEP_SLEEP);

/* Will return here after wakeup and WKT IRQ */
Chip_WKT_Stop(LPC_WKT);

. . .

return 1;
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SWT-example/m-p/560610#M16112</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:59:06Z</dc:date>
    </item>
  </channel>
</rss>

