Searching \ for '[SX] Watchdog timer question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/timers.htm?key=sx
Search entire site for: 'Watchdog timer question'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Watchdog timer question'
2007\03\01@003259 by JCCraign/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JCCraig wrote:

I'm using an SX48 Proto Board and want my program to use SLEEP to go into a low power mode, with the watchdog timer causing it to wake and check some peripherals every so often. If no signals change then it should go back to SLEEP. But I'm having trouble getting the watchdog timer to work.  I've simplified my code to the following, which doesn't even use the SLEEP command yet. Note that the RESETWDT command is commented out, so I'd expect a reset or wake up within a second or two. Nothing happens though. At startup the LEDs all come on for 1/4 second, then most of them go out as expected, but they then stay unlit forever. The DO-LOOP never appears to exit, so the watchdog timer action doesn't seem to be happening.  Much of this code is identical to the example in the Help documentation under the subject "RESETWDT Example". Can anyone see what it is I must be overlooking?

'------- Device Settings
DEVICE          SX48, OSCHS3
FREQ            50_000_000
ID              "Test"
'------- Start of Program
PROGRAM Start
'------- Initialization
Start:
 TRIS_D = %00000000     'Row of LEDs are on RD pins
 OPTION = %11111110     'Same as in RESETWDT example
 RD = %11111111         'All 8 LEDs go on at startup
 PAUSE 250              'for about .25 seconds
 DO
   RD = %10000001       'Most of the LEDs go out
   PAUSE 250
   'RESETWDT            'Without this should get timeouts
 LOOP
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=175198
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\03\01@004544 by peterverkaikn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote:

You must enable the watchdog through the device directive
eg.
device  SX48,oschs1,watchdog    ;sx device options

regards peter
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=175198#m175199
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

2007\03\01@005320 by JCCraign/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JCCraig wrote:

Thanks, I figured it must be something simple like that (usually is! )  That did the trick!

-John
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=175198#m175200
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...