AAEON FWS-2200 User Manual

Page 76

Advertising
background image

N e t w o r k Ap p l i a n c e

F W S - 2 2 0 0

Appendix A Programming the Watchdog Timer

A-6

A.2 W83627DHG Watchdog Timer Initial Program

LDN

Register

Bit

Description

WDT
Timer
value

0x07 0xF6

Bit
[7-0]

00h: Time-out Disable
01h: Time-out occurs after 1 minute only.
02h: Time-out occurs after 2 second/minutes
03h: Time-out occurs after 3 second/minutes
……………………….......................................
FFh: Time-out occurs after 255
second/minutes
(The deviation is approx 1 second.)

WDT
Unit

0x07 0xF5

Bit3

Select WDTO# count mode.
0: Second Mode.
1: Minute Mode.


************************************************************************************

#include <stdio.h>
#include <conio.h>

#define SIOIndex

0x2E //Modify for project support 2E/4E

#define SIOData

0x2F //Modify for project support 2F/4F

#define void AaeonWDTConfig(void);
#define void AaeonWDTEnable(Byte Timer, boolean Unit);

void Main(){

// Procedure : AaeonWDTConfig

// This procudure will enable the WDT counting.

AaeonWDTConfig

(void);


// Procedure : AaeonWDTEnable
// (byte)Timer

: Time of WDT timer.(0x00~0xFF)

// (boolean)Unit

: Select time unit(0: second, 1: minute).

AaeonWDTEnable(Byte Timer, boolean Unit);

}

Advertising