Appendix A – Watchdog Timer Programming
76
Pico
-IT
X Bo
ar
d
PIC
O
-K
BU
4
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).
EnterSIOconfig();
SetWDT();
AaeonWDTConfig(Counter, Unit);
// Procedure : AaeonWDTEnable
// This procudure will enable the WDT counting.
AaeonWDTEnable();
ExitSIOconfig();
}
*******************************************************************************
Содержание PICO-KBU4
Страница 1: ...Last Updated April 10 2018 PICO KBU4 PICO KBU4 Single Board Computer User s Manual 1st Ed...
Страница 14: ...Pico ITX Board PICO KBU4 Chapter 1 Chapter 1 Product Specifications...
Страница 17: ...Pico ITX Board PICO KBU4 Chapter 2 Chapter 2 Hardware Information...
Страница 18: ...Chapter 2 Hardware Information 5 Pico ITX Board PICO KBU4 2 1 Dimensions Component Side Component Side...
Страница 19: ...Chapter 2 Hardware Information 6 Pico ITX Board PICO KBU4 Solder Side Solder Side...
Страница 21: ...Chapter 2 Hardware Information 8 Pico ITX Board PICO KBU4 Solder Side Solder Side...
Страница 55: ...Chapter 2 Hardware Information 42 Pico ITX Board PICO KBU4 2 5 Function Block...
Страница 57: ...Chapter 2 Hardware Information 44 Pico ITX Board PICO KBU4 Option2 Part Number PICO KBU4 HSK01...
Страница 58: ...Pico ITX Board PICO KBU41 Chapter 3 Chapter 3 AMI BIOS Setup...
Страница 61: ...Chapter 3 AMI BIOS Setup 48 Pico ITX Board PICO KBU4 3 3 Setup Submenu Main...
Страница 62: ...Chapter 3 AMI BIOS Setup 49 Pico ITX Board PICO KBU4 3 4 Setup Submenu Advanced...
Страница 66: ...Chapter 3 AMI BIOS Setup 53 Pico ITX Board PICO KBU4 3 4 3 Hardware Monitor...
Страница 68: ...Chapter 3 AMI BIOS Setup 55 Pico ITX Board PICO KBU4 3 4 4 SIO Configuration...
Страница 74: ...Chapter 3 AMI BIOS Setup 61 Pico ITX Board PICO KBU4 3 5 Setup submenu Chipset...
Страница 75: ...Chapter 3 AMI BIOS Setup 62 Pico ITX Board PICO KBU4 3 5 1 System Agent SA Configuration...
Страница 82: ...Chapter 3 AMI BIOS Setup 69 Pico ITX Board PICO KBU4 3 7 1 BBS Priorities...
Страница 83: ...Chapter 3 AMI BIOS Setup 70 Pico ITX Board PICO KBU4 3 8 Setup submenu Exit...
Страница 84: ...Pico ITX Board PICO KBU4 Chapter 4 Chapter 4 Drivers Installation...
Страница 87: ...Pico ITX Board PICO KBU4 Appendix A Appendix A Watchdog Timer Programming...
Страница 92: ...Pico ITX Board PICO KBU4 Appendix B Appendix B I O Information...
Страница 93: ...Appendix B I O Information 80 Pico ITX Board PICO KBU4 B 1 I O Address Map...
Страница 94: ...Appendix B I O Information 81 Pico ITX Board PICO KBU4 B 2 Memory Address Map...
Страница 95: ...Appendix B I O Information 82 Pico ITX Board PICO KBU4 B 3 IRQ Mapping Chart...
Страница 96: ...Pico ITX Board PICO KBU4 Appendix C Appendix C Mating Connectors...
Страница 99: ...Pico ITX Board PICO KBU4 Appendix D Appendix D DIO...