beautypg.com

Appendix b: watchdog timer setting, Watchdog programming guide – NEXCOM IPPC 1560T User Manual

Page 135

background image

Copyright © 2014 NEXCOM International Co., Ltd. All Rights Reserved.

118

IPPC 1560T/1960T/2160P Series User Manual

Appendix B: Watchdog Timer Setting

Appendix B: Watchdog Timer Setting

WatchDog Programming Guide

#define SUPERIO_PORT 0x2E

#define WDT_SET

0xF5

#define WDT_VALUE

0xF6

#define WDT_SET2

0xFA

void main(void)

{

# Enter SuperIO Configuration

outportb(SUPERIO_PORT, 0x87);

outportb(SUPERIO_PORT, 0x87);

# Set LDN

outportb(SUPERIO_PORT,0x07);

outportb(SUPERIO_PORT+1 ,0x07);

# clear WDT status

outportb(SUPERIO_PORT, WDT_SET

outportb(SUPERIO_PORT+1, 0x40)

outportb(SUPERIO_PORT, WDT_SET2

outportb(SUPERIO_PORT+1, 0xD1)

# Set WDT setting

outportb(SUPERIO_PORT, WDT_SET);

outportb(SUPERIO_PORT+1, 0x20);

# Use the second to come down

# If choose the Minute, change value to 0x28

# Set WDT sec/min

outportb(SUPERIO_PORT, WDT_VALUE);

outportb(SUPERIO_PORT+1, 0x05);

#Set 5 seconds

}

This manual is related to the following products: