Appendix B
–
Watchdog Timer Programming
77
Pico
-IT
X Bo
ar
d
EPIC
-C
FS
7-
PUC
B.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).
EnterSIOconfig();
SetWDT();
AaeonWDTConfig(Counter, Unit);
// Procedure : AaeonWDTEnable
// This procudure will enable the WDT counting.
AaeonWDTEnable();
ExitSIOconfig();
}
*******************************************************************************
Summary of Contents for Aaeon EPIC-CFS7-PUC
Page 1: ...Last Updated May 6 2021 EPIC CFS7 PUC EPIC Board User s Manual 1st Ed ...
Page 14: ...EPIC Board EPIC CFS7 PUC Chapter 1 Chapter 1 Product Specifications ...
Page 17: ...4 EPIC Board EPIC CFS7 PUC Chapter 2 Chapter 2 Hardware Information ...
Page 18: ...Chapter 2 Hardware Information 5 EPIC Board EPIC CFS7 PUC 2 1 Dimensions System ...
Page 19: ...Chapter 2 Hardware Information 6 EPIC Board EPIC CFS7 PUC Board ...
Page 20: ...Chapter 2 Hardware Information 7 EPIC Board EPIC CFS7 PUC POE Carrier Board DIO Carrier Board ...
Page 21: ...Chapter 2 Hardware Information 8 EPIC Board EPIC CFS7 PUC 2 2 Jumpers and Connectors ...
Page 22: ...Chapter 2 Hardware Information 9 EPIC Board EPIC CFS7 PUC ...
Page 50: ...Chapter 2 Hardware Information 37 EPIC Board EPIC CFS7 PUC 2 8 Block Diagrams ...
Page 51: ...Chapter 2 Hardware Information 38 EPIC Board EPIC CFS7 PUC ...
Page 52: ...39 EPIC Board EPIC CFS7 PUC Chapter 3 Chapter 3 BIOS Setup ...
Page 55: ...Chapter 3 BIOS Setup 42 EPIC Board EPIC CFS7 PUC 3 3 Setup Submenu Main ...
Page 56: ...Chapter 3 BIOS Setup 43 EPIC Board EPIC CFS7 PUC 3 4 Setup Submenu Advanced ...
Page 59: ...Chapter 3 BIOS Setup 46 EPIC Board EPIC CFS7 PUC 3 4 3 Hardware Monitor ...
Page 63: ...Chapter 3 BIOS Setup 50 EPIC Board EPIC CFS7 PUC 3 4 4 SIO Configuration ...
Page 68: ...Chapter 3 BIOS Setup 55 EPIC Board EPIC CFS7 PUC 3 5 Setup Submenu Chipset ...
Page 69: ...Chapter 3 BIOS Setup 56 EPIC Board EPIC CFS7 PUC 3 5 1 System Agent SA Configuration ...
Page 76: ...Chapter 3 BIOS Setup 63 EPIC Board EPIC CFS7 PUC 3 7 1 BBS Priorities ...
Page 77: ...Chapter 3 BIOS Setup 64 EPIC Board EPIC CFS7 PUC 3 8 Setup Submenu Save Exit ...
Page 78: ...65 EPIC Board EPIC CFS7 PUC Chapter 4 Chapter 4 Driver Installation ...
Page 81: ...EPIC Board EPIC CFS7 PUC Appendix A Appendix A I O Information ...
Page 82: ...Appendix A I O Information 69 EPIC Board EPIC CFS7 PUC A 1 I O Address Map ...
Page 83: ...Appendix A I O Information 70 EPIC Board EPIC CFS7 PUC ...
Page 84: ...Appendix A I O Information 71 EPIC Board EPIC CFS7 PUC ...
Page 85: ...Appendix A I O Information 72 EPIC Board EPIC CFS7 PUC A 2 Memory Address Map ...
Page 86: ...Appendix A I O Information 73 EPIC Board EPIC CFS7 PUC A 3 IRQ Mapping Chart ...
Page 87: ...Appendix A I O Information 74 EPIC Board EPIC CFS7 PUC ...
Page 88: ...Pico ITX Board EPIC CFS7 PUC Appendix B Appendix B Watchdog Timer Programming ...