AAEON AEC-6940 User Manual
Page 58
Advertising
E m b e d d e d C o n t r o l l e r
A E C - 6 9 4 0
Appendix A Programming the Watchdog Timer A-6
outportb(SMBus_Port+0x04,I2C_Addr);
delay(10);
Chk_Ready();
outportb(SMBus_Port+0x03,0x37);
delay(10);
outportb(SMBus_Port+0x05,0x05);
delay(10);
outportb(SMBus_Port+0x02,0x48);
delay(10);
Chk_Ready();
//device ID(smbus):6Eh,index:36h data:30h
//Enable Watchdog Timer 2 and
output //a pulse when timeout.
outportb(SMBus_Port+0x04,I2C_Addr);
delay(10);
Chk_Ready();
outportb(SMBus_Port+0x03,0x36);
delay(10);
outportb(SMBus_Port+0x05,0x30);
delay(10);
outportb(SMBus_Port+0x02,0x48);
delay(10);
Chk_Ready();
}
void Chk_Ready()
Advertising