E P I C B o a r d
E P I C - B D U 7
A.2 WatchDog Sample Program
******************************************************************************
// WDT I/O operation relative definition (Please reference to Table 1)
#define
WDTAddr 0x510 // WDT I/O base address
Void
WDTWriteByte(
byte
Register,
byte
Value);
byte
WDTReadByte(
byte
Register);
Void
WDTSetReg(
byte
Register,
byte
Bit,
byte
Val);
// Watch Dog relative definition (Please reference to Table 2)
#define
DevReg 0x00 // Device configuration register
#define
WDTRstBit 0x80 // Watchdog WDTRST# (Bit7)
#define
WDTRstVal 0x80 // Enabled WDTRST#
#define
TimerReg 0x05 // Timer register
#define
PSWidthBit 0x00 // WDTRST# Pulse width (Bit0:1)
#define
PSWidthVal 0x01 // 25ms for WDTRST# pulse
#define
PolarityBit 0x02 // WDTRST# Signal polarity (Bit2)
#define
PolarityVal 0x00 // Low active for WDTRST#
#define
UnitBit 0x03 // Unit for timer (Bit3)
#define
ModeBit 0x04 // WDTRST# mode (Bit4)
#define
ModeVal 0x01 // 0:level 1: pulse
#define
EnableBit 0x05 // WDT timer enable (Bit5)
#define
EnableVal 0x01 // 1: enable
#define
StatusBit 0x06 // WDT timer status (Bit6)
#define
CounterReg 0x06 // Timer counter register
*******************************************************************************
*******************************************************************************
VOID
Main
(){
// Procedure : AaeonWDTConfig
// (byte)Timer : Counter of WDT timer.(0x00~0xFF)
// (boolean)Unit : Select time unit(0: second, 1: minute).
AaeonWDTConfig(Counter, Unit);
// Procedure : AaeonWDTEnable
// This procudure will enable the WDT counting.
Appendix A Programming the Watchdog Timer
A-3
Summary of Contents for EPIC-BDU7
Page 11: ...EPIC Board E P I C B D U 7 General Information Chapter 1 Chapter 1 General Information 1 1...
Page 20: ...EPIC Board E P I C B D U 7 Chapter 2 Quick Installation Guide 2 4 With Heat Spreader...
Page 73: ...EPIC Board E P I C B D U 7 AMI BIOS Setup Chapter 3 Chapter 3 AMI BIOS Setup 3 1...
Page 103: ...EPIC Board E P I C B D U 7 Set GPIO Level when used as Output Chapter 3 AMI BIOS Setup 3 31...
Page 111: ...EPIC Board E P I C B D U 7 70 80 90 100 Select Backlight Level Chapter 3 AMI BIOS Setup 3 39...
Page 117: ...EPIC Board E P I C B D U 7 The order of boot priorities Chapter 3 AMI BIOS Setup 3 45...
Page 121: ...EPIC Board E P I C B D U 7 Driver Installation Chapter 4 Chapter 4 Driver Installation 4 1...
Page 126: ...EPIC Board E P I C B D U 7 Chapter 4 Driver Installation 4 6...
Page 128: ...EPIC Board E P I C B D U 7 3 Run patch bat as administrator Chapter 4 Driver Installation 4 8...
Page 137: ...EPIC Board E P I C B D U 7 I O Information Appendix B Appendix B I O Information B 1...
Page 138: ...EPIC Board E P I C B D U 7 B 1 I O Address Map Appendix B I O Information B 2...
Page 139: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 3...
Page 140: ...EPIC Board E P I C B D U 7 B 2 Memory Address Map Appendix B I O Information B 4...
Page 141: ...EPIC Board E P I C B D U 7 B 3 IRQ Mapping Chart Appendix B I O Information B 5...
Page 142: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 6...
Page 143: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 7...
Page 144: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 8...
Page 145: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 9...
Page 146: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 10...
Page 147: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 11...
Page 148: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 12...
Page 149: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 13...
Page 150: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 14...
Page 151: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 15...
Page 152: ...EPIC Board E P I C B D U 7 Appendix B I O Information B 16...
Page 153: ...EPIC Board E P I C B D U 7 B 4 DMA Channel Assignments Appendix B I O Information B 17...
Page 154: ...EPIC Board E P I C B D U 7 Mating Connectors Appendix C Appendix C Mating Connector C 1...
Page 160: ...EPIC Board E P I C B D U 7 Digital I O Ports Appendix E Appendix E Digital I O Ports E 1...