System Installation
AMDY-7002 User’s Manual
3-4
3.5
WDT Function
The working algorithm of the WDT function can be simply described as a counting
process. The Time-Out Interval can be set through software programming. The
availability of the time-out interval settings by software or hardware varies from
Boards to boards.
WDT Control Command Example
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#define SIO_Port 0x2E
#define SIO_Port2 0x4E
#define GPIO_LDN 0x07
void Enter_IT872x_SIO() {
outportb(SIO_Port, 0x87);
outportb(SIO_Port, 0x01);
outportb(SIO_Port, 0x55);
outportb(SIO_Port, 0x55);
}
void Set_LDN(unsigned char LDN) {
outportb(SIO_Port, 0x07);
outportb(S1, LDN);
printf("LDN=%x\n", LDN);
}
void Set_Register(unsigned char offset, unsigned char value) {
outportb(SIO_Port, offset);
outportb(S1, value);
printf("Write offset:%x = %x\n", offset, value);
}
int main(void) {
printf("test string\n");
Enter_IT872x_SIO();
Set_LDN(GPIO_LDN);
Set_Register(0x72, 0xC0);
Set_Register(0x73, 0x05);
printf("System will reset in 5 seconds\n");
return 0;
}
Summary of Contents for AMDY-7002
Page 8: ...System Overview AMDY 7002 User s Manual 1 5 1 3 1 Mechanical Drawing ...
Page 9: ...System Overview AMDY 7002 User s Manual 1 6 ...
Page 12: ...Hardware Configuration AMDY 7002 User s Manual 2 2 Connector location on top layer RTL8111D L ...
Page 53: ...BIOS Setup Information AMDY 7002 User s Manual 4 20 4 7 Boot Boot Priority Order ...