Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 192830

Use this tag for questions concerning low power sleep states, eg. a battery powered circuit waiting for an external event to happen.

2 votes
1 answer
1k views

Low power sleep with WDT wakeup on PIC32MM

I'm trying to put a PIC32MM0256GPM028 into sleep mode and have it woken up by the Sleep Mode Watchdog Timer (say 1/4 second later- adjustable by SWDTPS anyway). … Once it goes to sleep (current drops), it just stays there. …
user85471's user avatar
  • 767
0 votes
Accepted

Low power sleep with WDT wakeup on PIC32MM

The below code works (ie sleep(1); sleeps for 1 WDT period), although it may still have some unnecessary lines in it. … void sleep(uint32_t t){ SYSKEY = 0x0; SYSKEY = 0xAA996655; //unlock SYSKEY = 0x556699AA; //OSCCONbits.SLPEN=0; //enable idle OSCCONbits.SLPEN= …
user85471's user avatar
  • 767