研凌工控电脑科技
(
深圳
)
有限公司
Chapter VI watch dog setting
Watch dog controls register
Bit7: 1=second mode
0=minute mode
bit 4:1=watch dog on
0=watch off
Watch dog’s timely register 0-255
watchdog configuration steps:
1: watchdog on
2: choose timely mode(minute/second)
3:setting counter, watchdog will be automatic count time when register change to more
than “0”(means 1),when counter change to “0”,system will be reboot.
Example:
// UINT8 IoRead8(UINT16 IoAddr)—from appointed I/O address to read 8bits data
// void IoWrite8(UINT16 IoAddr,UINT8 Data)—to appointed I/Oaddess write 8bits data
#define BIT4 1<<4
#define BIT7 1<<7
#define IndexPort 0x2E