Appendix A – Watchdog Timer Programming
71
Pico
-IT
X Bo
ar
d
PIC
O
-B
T0
1
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 PICO-BT01
Page 1: ...Last Updated January 18 2018 PICO BT01 Pico ITX Board User s Manual 6th Ed...
Page 14: ...Pico ITX Board PICO BT01 Chapter 1 Chapter 1 Product Specifications...
Page 17: ...Pico ITX Board PICO BT01 Chapter 2 Chapter 2 Hardware Information...
Page 19: ...Chapter 2 Hardware Information 6 Pico ITX Board PICO BT01 Solder Side Solder Side...
Page 20: ...Chapter 2 Hardware Information 7 Pico ITX Board PICO BT01 Heat Spreader...
Page 21: ...Chapter 2 Hardware Information 8 Pico ITX Board PICO BT01 A A A A B B B B B B...
Page 22: ...Chapter 2 Hardware Information 9 Pico ITX Board PICO BT01...
Page 24: ...Chapter 2 Hardware Information 11 Pico ITX Board PICO BT01 Solder Side Solder Side...
Page 49: ...Pico ITX Board PICO BT01 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 53: ...Chapter 3 AMI BIOS Setup 40 Pico ITX Board PICO BT01 3 4 Setup Submenu Advanced...
Page 60: ...Chapter 3 AMI BIOS Setup 47 Pico ITX Board PICO BT01 3 4 3 Advanced Hardware Monitor...
Page 68: ...Chapter 3 AMI BIOS Setup 55 Pico ITX Board PICO BT01 3 5 Setup submenu Chipset...
Page 73: ...Chapter 3 AMI BIOS Setup 60 Pico ITX Board PICO BT01 3 5 2 2 South Bridge USB Configuration...
Page 78: ...Chapter 3 AMI BIOS Setup 65 Pico ITX Board PICO BT01 3 8 Setup submenu Save Exit...
Page 79: ...Pico ITX Board PICO BT01 Chapter 4 Chapter 4 Drivers Installation...
Page 82: ...Pico ITX Board PICO BT01 Appendix A Appendix A Watchdog Timer Programming...
Page 87: ...Pico ITX Board PICO BT01 Appendix B Appendix B I O Information...
Page 88: ...Appendix B I O Information 75 Pico ITX Board PICO BT01 B 1 I O Address Map...
Page 89: ...Appendix B I O Information 76 Pico ITX Board PICO BT01 B 2 Memory Address Map...
Page 90: ...Appendix B I O Information 77 Pico ITX Board PICO BT01 B 3 IRQ Mapping Chart...
Page 91: ...Appendix B I O Information 78 Pico ITX Board PICO BT01...
Page 92: ...Appendix B I O Information 79 Pico ITX Board PICO BT01...
Page 93: ...Appendix B I O Information 80 Pico ITX Board PICO BT01...
Page 94: ...Appendix B I O Information 81 Pico ITX Board PICO BT01...
Page 95: ...Appendix B I O Information 82 Pico ITX Board PICO BT01...
Page 96: ...Appendix B I O Information 83 Pico ITX Board PICO BT01...
Page 97: ...Appendix B I O Information 84 Pico ITX Board PICO BT01...
Page 98: ...Appendix B I O Information 85 Pico ITX Board PICO BT01...
Page 99: ...Appendix B I O Information 86 Pico ITX Board PICO BT01...
Page 100: ...Appendix B I O Information 87 Pico ITX Board PICO BT01...
Page 101: ...Appendix B I O Information 88 Pico ITX Board PICO BT01...
Page 102: ...Pico ITX Board PICO BT01 Appendix C Appendix C Electrical Specifications for I O Ports...
Page 104: ...Pico ITX Board PICO BT01 Appendix D Appendix D Mating Connectors...