Author |
Message |
Topic: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
alpchen
Replies: 6
Views: 12933
|
Forum: General CCS C Discussion Posted: Fri Jun 12, 2009 12:37 am Subject: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
thanks.
I want to turn watchdog on and set the period to as short as possible (1ms) to reset the chip with reset reason == watchdog reset
but you are right, maybe it's easier just to write to re ... |
Topic: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
alpchen
Replies: 6
Views: 12933
|
Forum: General CCS C Discussion Posted: Thu Jun 11, 2009 3:04 pm Subject: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
thanks.
but it's not clear if I can do this
SETUP_WDT(WDT_18MS | WDT_ON | WDT_DIV_16);
it looks like WDT_ON might conflict with WDT_DIV_16. And the header says "ONE of the following&qu ... |
Topic: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
alpchen
Replies: 6
Views: 12933
|
Forum: General CCS C Discussion Posted: Thu Jun 11, 2009 2:43 pm Subject: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16 |
Hi,
16f688.h says:
#define WDT_18MS 8
#define WDT_36MS 9
#define WDT_72MS 10
#define WDT_144MS 11
#define WDT_288MS 12
#define WDT_576MS 13 ... |
|