RUBY-D718VG2AR
Copyright © Portwell 2016 RUBY-D718VG2AR
User's Guide
23
5
Signal Description
5.1
Watch Dog Signal
WDT Control Command Example
#Define WDTCFG 0x06//WDT Timer Coutrol Register
#Define WDTMIN 0x07//WDT Timer Counter Register (Minute)
#Define WDTSEC 0x08//WDT Timer Counter Register (Second)
VOID Write_EC_SRAM(UINT8 Offset,UINT8 Value){
IoWrite8(Offset,Value);
}
Byte Read_EC_SRAM(UINT8 Offset){
IoRead8(offset,Value);
return Value;
}
void WDT()
{
// Enable WDT 30sec
Write_EC_SRAM(WDTSEC,30);