Appendix B
–
Watchdog Timer Programming
62
Pico
-IT
X Bo
ar
d
EPIC
-C
FS
7
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();
}
*******************************************************************************
Содержание AAEON EPIC-CFS7
Страница 1: ...Last Updated April 27 2021 EPIC CFS7 EPIC Board User s Manual 1st Ed ...
Страница 14: ...EPIC Board EPIC CFS7 Chapter 1 Chapter 1 Product Specifications ...
Страница 17: ...4 EPIC Board EPIC CFS7 Chapter 2 Chapter 2 Hardware Information ...
Страница 18: ...Chapter 2 Hardware Information 5 EPIC Board EPIC CFS7 2 1 Dimensions ...
Страница 19: ...Chapter 2 Hardware Information 6 EPIC Board EPIC CFS7 2 2 Jumpers and Connectors ...
Страница 20: ...Chapter 2 Hardware Information 7 EPIC Board EPIC CFS7 ...
Страница 36: ...Chapter 2 Hardware Information 23 EPIC Board EPIC CFS7 2 5 Block Diagram ...
Страница 37: ...24 EPIC Board EPIC CFS7 Chapter 3 Chapter 3 BIOS Setup ...
Страница 40: ...Chapter 3 BIOS Setup 27 EPIC Board EPIC CFS7 3 3 Setup Submenu Main ...
Страница 41: ...Chapter 3 BIOS Setup 28 EPIC Board EPIC CFS7 3 4 Setup Submenu Advanced ...
Страница 44: ...Chapter 3 BIOS Setup 31 EPIC Board EPIC CFS7 3 4 3 Hardware Monitor ...
Страница 48: ...Chapter 3 BIOS Setup 35 EPIC Board EPIC CFS7 3 4 4 SIO Configuration ...
Страница 53: ...Chapter 3 BIOS Setup 40 EPIC Board EPIC CFS7 3 5 Setup Submenu Chipset ...
Страница 54: ...Chapter 3 BIOS Setup 41 EPIC Board EPIC CFS7 3 5 1 System Agent SA Configuration ...
Страница 61: ...Chapter 3 BIOS Setup 48 EPIC Board EPIC CFS7 3 7 1 BBS Priorities ...
Страница 62: ...Chapter 3 BIOS Setup 49 EPIC Board EPIC CFS7 3 8 Setup Submenu Save Exit ...
Страница 63: ...50 EPIC Board EPIC CFS7 Chapter 4 Chapter 4 Driver Installation ...
Страница 66: ...EPIC Board EPIC CFS7 Appendix A Appendix A I O Information ...
Страница 67: ...Appendix A I O Information 54 EPIC Board EPIC CFS7 A 1 I O Address Map ...
Страница 68: ...Appendix A I O Information 55 EPIC Board EPIC CFS7 ...
Страница 69: ...Appendix A I O Information 56 EPIC Board EPIC CFS7 ...
Страница 70: ...Appendix A I O Information 57 EPIC Board EPIC CFS7 A 2 Memory Address Map ...
Страница 71: ...Appendix A I O Information 58 EPIC Board EPIC CFS7 A 3 IRQ Mapping Chart ...
Страница 72: ...Appendix A I O Information 59 EPIC Board EPIC CFS7 ...
Страница 73: ...Pico ITX Board EPIC CFS7 Appendix B Appendix B Watchdog Timer Programming ...