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();
}
*******************************************************************************
Содержание Aaeon EPIC-CFS7-PUC
Страница 1: ...Last Updated May 6 2021 EPIC CFS7 PUC EPIC Board User s Manual 1st Ed ...
Страница 14: ...EPIC Board EPIC CFS7 PUC Chapter 1 Chapter 1 Product Specifications ...
Страница 17: ...4 EPIC Board EPIC CFS7 PUC Chapter 2 Chapter 2 Hardware Information ...
Страница 18: ...Chapter 2 Hardware Information 5 EPIC Board EPIC CFS7 PUC 2 1 Dimensions System ...
Страница 19: ...Chapter 2 Hardware Information 6 EPIC Board EPIC CFS7 PUC Board ...
Страница 20: ...Chapter 2 Hardware Information 7 EPIC Board EPIC CFS7 PUC POE Carrier Board DIO Carrier Board ...
Страница 21: ...Chapter 2 Hardware Information 8 EPIC Board EPIC CFS7 PUC 2 2 Jumpers and Connectors ...
Страница 22: ...Chapter 2 Hardware Information 9 EPIC Board EPIC CFS7 PUC ...
Страница 23: ...Chapter 2 Hardware Information 10 EPIC Board EPIC CFS7 PUC POE Carrier Board DIO Carrier Board ...
Страница 40: ...Chapter 2 Hardware Information 27 EPIC Board EPIC CFS7 PUC 2 5 4 OUT1 Select JP4 OUT1_1236 Default OUT1_4578 ...
Страница 50: ...Chapter 2 Hardware Information 37 EPIC Board EPIC CFS7 PUC 2 8 Block Diagrams ...
Страница 51: ...Chapter 2 Hardware Information 38 EPIC Board EPIC CFS7 PUC ...
Страница 52: ...39 EPIC Board EPIC CFS7 PUC Chapter 3 Chapter 3 BIOS Setup ...
Страница 55: ...Chapter 3 BIOS Setup 42 EPIC Board EPIC CFS7 PUC 3 3 Setup Submenu Main ...
Страница 56: ...Chapter 3 BIOS Setup 43 EPIC Board EPIC CFS7 PUC 3 4 Setup Submenu Advanced ...
Страница 59: ...Chapter 3 BIOS Setup 46 EPIC Board EPIC CFS7 PUC 3 4 3 Hardware Monitor ...
Страница 63: ...Chapter 3 BIOS Setup 50 EPIC Board EPIC CFS7 PUC 3 4 4 SIO Configuration ...
Страница 68: ...Chapter 3 BIOS Setup 55 EPIC Board EPIC CFS7 PUC 3 5 Setup Submenu Chipset ...
Страница 69: ...Chapter 3 BIOS Setup 56 EPIC Board EPIC CFS7 PUC 3 5 1 System Agent SA Configuration ...
Страница 76: ...Chapter 3 BIOS Setup 63 EPIC Board EPIC CFS7 PUC 3 7 1 BBS Priorities ...
Страница 77: ...Chapter 3 BIOS Setup 64 EPIC Board EPIC CFS7 PUC 3 8 Setup Submenu Save Exit ...
Страница 78: ...65 EPIC Board EPIC CFS7 PUC Chapter 4 Chapter 4 Driver Installation ...
Страница 81: ...EPIC Board EPIC CFS7 PUC Appendix A Appendix A I O Information ...
Страница 82: ...Appendix A I O Information 69 EPIC Board EPIC CFS7 PUC A 1 I O Address Map ...
Страница 83: ...Appendix A I O Information 70 EPIC Board EPIC CFS7 PUC ...
Страница 84: ...Appendix A I O Information 71 EPIC Board EPIC CFS7 PUC ...
Страница 85: ...Appendix A I O Information 72 EPIC Board EPIC CFS7 PUC A 2 Memory Address Map ...
Страница 86: ...Appendix A I O Information 73 EPIC Board EPIC CFS7 PUC A 3 IRQ Mapping Chart ...
Страница 87: ...Appendix A I O Information 74 EPIC Board EPIC CFS7 PUC ...
Страница 88: ...Pico ITX Board EPIC CFS7 PUC Appendix B Appendix B Watchdog Timer Programming ...