The Cyber-Spy.Com Usenet Archive Feeds Directly
From The Open And Publicly Available Newsgroup
This Group And Thousands Of Others Are Available
On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic,
Opinions Or Content Posted To This Or Any Other
Newsgroup. This Web Archive Of The Newsgroup And
Posts Are For Informational Purposes Only.
Subject: Re: PIC12C508A wakeup from SLEEP on pin change
Date: Thu, 28 Nov 2002 09:28:09 +0000
NNTP-Posting-Date: Thu, 28 Nov 2002 09:28:29 +0000 (UTC)
User-Agent: Turnpike/6.00-S (<4JGZhr1GzWEVpX6NhHKP0cohVK>)
In message <email@example.com>, Tom Bruhns
>Could you tell us a bit about what _is_ happening, and what _your_
>code looks like? I've used SLEEP with that part; I don't recall which
>pin I used to wake it up, but all worked fine for me. I don't have
>the code here or I'd pass it along. I do recall actually having a
>problem because the current during sleep was _too_ low (around 10nA as
>I recall), but that's a whole different story I'd rather not explain.
Thanks to Mike's earlier posting, I was under the impression that the
12C508A would continue to execute code after a SLEEP had been issued. I
was wrong. Just simply test the GPWUF flag in the STATUS register on a
cold-start and decide which portion of the code to execute from there
on. Make sure the WDT is disabled and WAKE-UP bit is enabled in the
OPTION register. I've got it working fine now. The code looks something
like this :-
COLD_START BTFSS STATUS,GPWUF ;Skip if wake-up on port change.
Go Back To The Cyber-Spy.Com
Usenet Web Archive Index Of
The sci.electronics.design Newsgroup