chipKIT® Development Platform

Inspired by Arduino™

Changing the watchdog prescaler value

Created Sat, 26 Jan 2013 15:33:02 +0000 by drpap


drpap

Sat, 26 Jan 2013 15:33:02 +0000

What is the simplest way to change the watchdog timer pre-scale value?

In the MAX32 board, the default is set to 1 second but I would like to change it, probably through a #pragma directive?


majenko

Sat, 26 Jan 2013 21:49:13 +0000

You use the WDTCON register. You might want to read the manual:

Section 9. Watchdog Timer and Power-up Timer