![background image](http://html1.mh-extra.com/html/aaeon/com-45gs/com-45gs_manual_3210623042.webp)
C O M E x p r e s s M o d u l e
C O M - 4 5 G S
Appendix A Programming the Watchdog Timer
A-5
A.4 F75111 Watchdog Timer Initial Program
#include <stdio.h>
#include <conio.h>
void Chk_Ready();
#define SMBus_Port
0x500
#define I2C_Addr
0x6E
void main (void)
{
//device ID(smbus):6Eh,index:3h data:3h
//Set pin10 as WDTOUT2#
outportb(SMB0x04,I2C_Addr);
delay(10);
Chk_Ready();
outportb(SMB0x03,0x3);
delay(10);
outportb(SMB0x05,0x3);
delay(10);
outportb(SMB0x02,0x48);
delay(10);
Chk_Ready();
//device ID(smbus):6Eh,index:37h data:05h
//Set Watchdog Timer Rang
register to //be 5
Summary of Contents for COM-45GS
Page 30: ...COM Express Module C O M 4 5 G S Chapter 3 Award BIOS Setup 3 1 Chapter Award 3 BIOS Setup...
Page 45: ...COM Express Module C O M 4 5 G S Appendix B I O Information B 1 I O Information Appendix B...
Page 46: ...COM Express Module C O M 4 5 G S Appendix B I O Information B 2 B 1 I O Address Map...
Page 47: ...COM Express Module C O M 4 5 G S Appendix B I O Information B 3 B 2 Memory Address Map...