ICO330 Series User's Manual
APPENDIX A
WATCHDOG TIMER
About Watchdog Timer
After the system stops working for a while, it can be auto-reset by the watchdog timer. The
integrated watchdog timer can be set up in the system reset mode by program.
How to Use Watchdog Timer
The following example enables configuration using debug tool.
#include <stdio.h>
#include <stdlib.h>
#include <sys/io.h>
#define SIO_INDEX 0x2E
#define SIO_DATA 0x2F
#define SIO_ENTRY_KEY 0x87
#define SIO_EXIT_KEY 0xAA
#define SIO_LD_WDT 0x07
#define SIO_REG_LDN
0x07
#define SIO_REG_ACTIVATE
0x30
#define SIO_REG_IOBASE_HIGH 0x60
#define SIO_REG_IOBASE_LOW 0x61
#define WDT_IOBASE_HIGH 0x0A
#define WDT_IOBASE_LOW 0x10
#define WDT_IOBASE 0x0A10
#define WDT_CONFIG 0x05
#define WDT_TIME 0x06
Watchdog Timer
67
Need help?
Do you have a question about the ICO330 and is the answer not in the manual?
Questions and answers