Appendix A
–
Watchdog Timer Programming
97
5.2
5
”
C
omp
act
Bo
ar
d
PC
M
-C
FS
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();
}
*******************************************************************************
Summary of Contents for Aaeon PCM-CFS
Page 1: ...Last Updated April 15 2021 PCM CFS 5 25 Compact Board User s Manual 11th Ed ...
Page 15: ...5 25 Compact Board PCM CFS Chapter 1 Chapter 1 Product Specifications ...
Page 18: ...5 25 Compact Board PCM CFS Chapter 2 Chapter 2 Hardware Information ...
Page 19: ...Chapter 2 Hardware Information 5 5 25 Compact Board PCM CFS 2 1 Dimensions ...
Page 21: ...Chapter 2 Hardware Information 7 5 25 Compact Board PCM CFS Solder Side CN47 CN48 CN49 ...
Page 62: ...Chapter 2 Hardware Information 48 5 25 Compact Board PCM CFS 2 5 Block Diagram ...
Page 63: ...5 25 Compact Board PCM CFS Chapter 3 Chapter 3 AMI BIOS Setup ...
Page 66: ...Chapter 3 AMI BIOS Setup 52 5 25 Compact Board PCM CFS 3 3 Main ...
Page 67: ...Chapter 3 AMI BIOS Setup 53 5 25 Compact Board PCM CFS 3 4 Advanced ...
Page 77: ...Chapter 3 AMI BIOS Setup 63 5 25 Compact Board PCM CFS 3 4 5 SIO Configuration ...
Page 93: ...Chapter 3 AMI BIOS Setup 79 5 25 Compact Board PCM CFS 3 5 Chipset ...
Page 94: ...Chapter 3 AMI BIOS Setup 80 5 25 Compact Board PCM CFS 3 5 1 North Bridge ...
Page 104: ...Chapter 3 AMI BIOS Setup 90 5 25 Compact Board PCM CFS 3 7 1 BBS Priorities ...
Page 105: ...Chapter 3 AMI BIOS Setup 91 5 25 Compact Board PCM CFS 3 8 Save Exit ...
Page 106: ...5 25 Compact Board PCM CFS Chapter 4 Chapter 4 Drivers Installation ...
Page 109: ...5 25 Compact Board PCM CFS Appendix A Appendix A Watchdog Timer Programming ...
Page 114: ...5 25 Compact Board PCM CFS Appendix B Appendix B I O Information ...
Page 115: ...Appendix B I O Information 101 5 25 Compact Board PCM CFS B 1 I O Address Map ...
Page 116: ...Appendix B I O Information 102 5 25 Compact Board PCM CFS ...
Page 117: ...Appendix B I O Information 103 5 25 Compact Board PCM CFS B 2 Memory Address Map ...
Page 118: ...Appendix B I O Information 104 5 25 Compact Board PCM CFS B 3 IRQ Mapping Chart ...
Page 119: ...Appendix B I O Information 105 5 25 Compact Board PCM CFS ...
Page 120: ...Appendix B I O Information 106 5 25 Compact Board PCM CFS ...
Page 121: ...5 25 Compact Board PCM CFS Appendix C Appendix C Digital I O Ports ...
Page 126: ...5 25 Compact Board PCM CFS Appendix D Appendix D Mating Connectors and Cables ...