beautypg.com

Appendix c: watchdog timer setting, Ite8783 watchdog programming guide – NEXCOM NISE 3640E User Manual

Page 105

background image

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

91

NISE 3640E Series User Manual

Appendix C: Watchdog Timer Setting

Appendix C: Watchdog Timer Setting

ITE8783 WatchDog Programming Guide

#define SUPERIO_PORT 0x2E

#define WDT_SET

0x72

#define WDT_VALUE

0x73

void main(void)

{

#Enter SuperIO Configuration

outportb(SUPERIO_PORT, 0x87);

outportb(SUPERIO_PORT, 0x01);

outportb(SUPERIO_PORT, 0x55);

outportb(SUPERIO_PORT, 0x55);

# Set LDN

outportb(SUPERIO_PORT, 0x07);

outportb(SUPERIO_PORT+1 ,0x07);

# Set WDT setting

outportb(SUPERIO_PORT, WDT_SET);

#Use the second

outportb(SUPERIO_PORT+1, 0xC0);

#Use the minute, change value to 0x40

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