# watch-dox example program ...

**URL:** <https://forums.digi.com/t/watch-dox-example-program/5408>\
**Category:** NET+OS\
**Created:** [January 24, 2003, 4:21pm UTC](https://forums.digi.com/t/watch-dox-example-program/5408 "2003-01-24T16:21:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [January 24, 2003, 4:21pm UTC](https://forums.digi.com/t/watch-dox-example-program/5408/1 "2003-01-24T16:21:14Z")

</div>

There are an example on how to manage the watch-dog? According to the manual, i’ve set the register: (\*NCC\_GEN).scr.bits.swt = 3; (\*NCC\_GEN).scr.bits.swri = 2; (\*NCC\_GEN).scr.bits.swe = 1; then with a timer I write (\*NCC\_GEN).swsr.bits.swsr = 0x5a; (\*NCC\_GEN).swsr.bits.swsr = 0xa5; every 100 msec. But the sistem halt (and do not restart!) Any suggestion?

---

<div class="post-metadata">

**Author:** ![muscleman](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@muscleman](https://forums.digi.com/u/muscleman)\
**Post date:** [January 27, 2003, 2:03pm UTC](https://forums.digi.com/t/watch-dox-example-program/5408/2 "2003-01-27T14:03:43Z")

</div>

What you see doesn’t surprise me since to the best of my knowledge, the board designers and end users that plan to use NET+40-4 and NET+50-1 have to avoid the watchdog timer problem - the problem that you ended up seeing where the board hangs after reset. To have a watchdog timer work reliably the design must either: a. Use an external oscillator (PLL disabled). Here you need an SDRAM work-a-round which requires 7 gates (OR, 2 ANDs, EXOR, and 3 NANDs). b. Use an EXTERNAL Watchdog IC (PLL enabled). Here you need an SDRAM work-a-round which requires 3 gates (OR and 2 ANDs).
