On the 16F1 "Enhanced Core" PIC's, the WDT powers up with a 2 second timeout (1:65536).
So 2 Seconds is the minimum default SLEEP Period.
When you specify 1 second, you'll get 2 instead.
If you specify 21600, you'll get 6 hours. (6hrs * 60mins * 60secs = 21600 seconds)
It will actually Wake-Up and go back to sleep 10800 times (every 2 seconds).
You can change the WDT prescaler to change the resolution, but then you have to scale the SLEEP value accordingly.
Bookmarks