Appendix A – Watchdog Timer Programming
62
Fa
nle
ss Em
be
dde
d B
ox
P
C
BOX
ER
-66
15
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.
AaeonWDTEnable();
}
*******************************************************************************
*******************************************************************************
// Procedure : AaeonWDTEnable
Содержание AAEON BOXER-6615
Страница 1: ...Last Updated November 9 2016 BOXER 6615 Fanless Embedded Box PC User s Manual 1st Ed ...
Страница 14: ...Fanless Embedded Box PC BOXER 6615 Chapter 1 Chapter 1 Product Specifications ...
Страница 17: ...Fanless Embedded Box PC BOXER 6615 Chapter 2 Chapter 2 Hardware Information ...
Страница 20: ...Chapter 2 Hardware Information 7 Fanless Embedded Box PC BOXER 6615 2 2 Jumpers and Connectors Component Side ...
Страница 21: ...Chapter 2 Hardware Information 8 Fanless Embedded Box PC BOXER 6615 Solder Side ...
Страница 23: ...Chapter 2 Hardware Information 10 Fanless Embedded Box PC BOXER 6615 2 4 Block Diagram ...
Страница 42: ...Fanless Embedded Box PC BOXER 6615 Chapter 3 Chapter 3 AMI BIOS Setup ...
Страница 68: ...Fanless Embedded Box PC BOXER 6615 Chapter 4 Chapter 4 Drivers Installation ...
Страница 73: ...Fanless Embedded Box PC BOXER 6615 Appendix A Appendix A Watchdog Timer Programming ...
Страница 78: ...Fanless Embedded Box PC BOXER 6615 Appendix B Appendix C I O Information ...
Страница 79: ...Appendix B I O Information 66 Fanless Embedded Box PC BOXER 6615 B 1 I O Address Map ...
Страница 80: ...Appendix B I O Information 67 Fanless Embedded Box PC BOXER 6615 ...
Страница 81: ...Appendix B I O Information 68 Fanless Embedded Box PC BOXER 6615 B 2 Memory Address Map ...
Страница 82: ...Appendix B I O Information 69 Fanless Embedded Box PC BOXER 6615 B 3 IRQ Mapping Chart ...
Страница 83: ...Appendix B I O Information 70 Fanless Embedded Box PC BOXER 6615 ...
Страница 84: ...Appendix B I O Information 71 Fanless Embedded Box PC BOXER 6615 ...
Страница 85: ...Appendix B I O Information 72 Fanless Embedded Box PC BOXER 6615 ...
Страница 86: ...Appendix B I O Information 73 Fanless Embedded Box PC BOXER 6615 ...
Страница 87: ...Appendix B I O Information 74 Fanless Embedded Box PC BOXER 6615 ...
Страница 88: ...Appendix B I O Information 75 Fanless Embedded Box PC BOXER 6615 ...
Страница 89: ...Appendix B I O Information 76 Fanless Embedded Box PC BOXER 6615 ...
Страница 90: ...Appendix B I O Information 77 Fanless Embedded Box PC BOXER 6615 ...
Страница 91: ...Appendix B I O Information 78 Fanless Embedded Box PC BOXER 6615 ...
Страница 92: ...Fanless Embedded Box PC BOXER 6615 Appendix C Appendix C Digital I O Information ...