Appendix A – Watchdog Timer Programming
61
3.5
” S
ub
co
mp
act
Bo
ard
G
ENE
-BT
04
A.2 Watchdog Sample Program
******************************************************************************
// WDT I/O operation relative definition (Please reference to Table 1)
#define WDTAddr 0xA00 // 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
Summary of Contents for GENE-BT04
Page 1: ...Last Updated November 9 2015 GENE BT04 3 5 Subcompact Board User s Manual 1st Ed...
Page 14: ...3 5 Subcompact Board GENE BT04 Chapter 1 Chapter 1 Product Specifications...
Page 17: ...3 5 Subcompact Board GENE BT04 Chapter 2 Chapter 2 Hardware Information...
Page 18: ...Chapter 2 Hardware Information 5 3 5 Subcompact Board GENE BT04 2 1 Dimensions Component Side...
Page 19: ...Chapter 2 Hardware Information 6 3 5 Subcompact Board GENE BT04 Solder Side...
Page 21: ...Chapter 2 Hardware Information 8 3 5 Subcompact Board GENE BT04 Solder Side...
Page 22: ...Chapter 2 Hardware Information 9 3 5 Subcompact Board GENE BT04 2 3 Block Diagram...
Page 39: ...3 5 Subcompact Board GENE BT04 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 43: ...Chapter 3 AMI BIOS Setup 30 3 5 Subcompact Board GENE BT04 3 4 Setup submenu Advanced...
Page 49: ...Chapter 3 AMI BIOS Setup 36 3 5 Subcompact Board GENE BT04 3 4 3 Advanced H W Monitor...
Page 57: ...Chapter 3 AMI BIOS Setup 44 3 5 Subcompact Board GENE BT04 3 5 Setup Submenu Chipset...
Page 58: ...Chapter 3 AMI BIOS Setup 45 3 5 Subcompact Board GENE BT04 3 5 1 Chipset Host Bridge...
Page 60: ...Chapter 3 AMI BIOS Setup 47 3 5 Subcompact Board GENE BT04 3 5 2 Chipset South Bridge...
Page 68: ...Chapter 3 AMI BIOS Setup 55 3 5 Subcompact Board GENE BT04 3 8 Setup submenu Save Exit...
Page 69: ...3 5 Subcompact Board GENE BT04 Chapter 4 Chapter 4 Drivers Installation...
Page 72: ...3 5 Subcompact Board GENE BT04 Appendix A Appendix A Watchdog Timer Programming...
Page 77: ...3 5 Subcompact Board GENE BT04 Appendix B Appendix B I O Information...
Page 79: ...Appendix B I O Information 66 3 5 Subcompact Board GENE BT04...
Page 80: ...Appendix B I O Information 67 3 5 Subcompact Board GENE BT04 B 2 Memory Address Map...
Page 82: ...Appendix B I O Information 69 3 5 Subcompact Board GENE BT04...
Page 83: ...Appendix B I O Information 70 3 5 Subcompact Board GENE BT04...
Page 84: ...Appendix B I O Information 71 3 5 Subcompact Board GENE BT04...
Page 85: ...Appendix B I O Information 72 3 5 Subcompact Board GENE BT04...
Page 86: ...Appendix B I O Information 73 3 5 Subcompact Board GENE BT04...
Page 87: ...Appendix B I O Information 74 3 5 Subcompact Board GENE BT04...
Page 88: ...Appendix B I O Information 75 3 5 Subcompact Board GENE BT04...
Page 89: ...Appendix B I O Information 76 3 5 Subcompact Board GENE BT04...
Page 90: ...Appendix B I O Information 77 3 5 Subcompact Board GENE BT04...
Page 91: ...Appendix B I O Information 78 3 5 Subcompact Board GENE BT04...
Page 92: ...Appendix B I O Information 79 3 5 Subcompact Board GENE BT04...
Page 93: ...3 5 Subcompact Board GENE BT04 Appendix C Appendix C Mating Connectors...
Page 95: ...3 5 Subcompact Board GENE BT04 Appendix D Appendix D Electrical Specifications for I O Ports...
Page 97: ...3 5 Subcompact Board GENE BT04 Appendix E Appendix E Digital I O Ports...