Advantech ITA-5231 Series User Manual page 87

Fanless embedded industrial computer with 6th gen intel core i processor for railway applications
Hide thumbs Also See for ITA-5231 Series:
Table of Contents

Advertisement

//Start watchdog
void enable_wdt( i
nt time,
int timebase
)
{
unsigned int time_word;
EcWriteCmd(0x29);
if (timebase == 0) //Second base = 100ms * 10
time_word = time * 10;
else
time_word = time * 600;
IT8528ECSetData (0x89,0x5E, (unsigned char)(time_word>>8));//Use
command 0x89 to write time data hibyte to hw ram address 0x5E
IT8528ECSetData (0x89, 0x5F,(unsigned char)(time_word&0x00ff)); //Use
command 0x89 to write time data lowbyte to hw ram address 0x5f
IT8528ECSetData (0x89, 0x57, 0x04);
command 0x89 to write watchdog time event to hw ram address
0x57
Bit2 =1 , watchdog output as RESET
EcWriteCmd(0x28);///Write command 0x28 to stop watch dog
}
//Time
//Time base: 0: second 1: minute
//Write command 0x29 to stop watch dog
//Minute base = 100ms * 600
77
//Use
//0x04:
ITA-5231 User Manual

Advertisement

Table of Contents
loading

Table of Contents