CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 3 matches
CCS Forum Index
Author Message
  Topic: Setup_wdt() with WDT_18MS, WDT_ON, WDT_DIV_16
alpchen

Replies: 6
Views: 12933

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group