Appendix A – Watchdog Timer Programming
71
Pico
-IT
X Bo
ar
d
PIC
O
-A
PL4
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();
}
*******************************************************************************
Summary of Contents for PICO-APL4
Page 1: ...Last Updated May 16 2018 PICO APL4 PICO ITX Board User s Manual 1st Ed...
Page 14: ...Pico ITX Board PICO APL4 Chapter 1 Chapter 1 Product Specifications...
Page 17: ...Pico ITX Board PICO APL4 Chapter 2 Chapter 2 Hardware Information...
Page 19: ...Chapter 2 Hardware Information 6 Pico ITX Board PICO APL4 Solder Side Solder Side...
Page 22: ...Chapter 2 Hardware Information 9 Pico ITX Board PICO APL4 Solder Side Solder Side...
Page 54: ...Chapter 2 Hardware Information 41 Pico ITX Board PICO APL4 2 6 Function Block...
Page 56: ...Chapter 2 Hardware Information 43 Pico ITX Board PICO APL4 2 7 2 PICO APL4 HSP01...
Page 57: ...Pico ITX Board PICO APL4 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 60: ...Chapter 3 AMI BIOS Setup 47 Pico ITX Board PICO APL4 3 3 Setup Submenu Main...
Page 61: ...Chapter 3 AMI BIOS Setup 48 Pico ITX Board PICO APL4 3 4 Setup Submenu Advanced...
Page 67: ...Chapter 3 AMI BIOS Setup 54 Pico ITX Board PICO APL4 3 4 4 Hardware Monitor...
Page 68: ...Chapter 3 AMI BIOS Setup 55 Pico ITX Board PICO APL4 3 4 5 SIO Configuration...
Page 73: ...Chapter 3 AMI BIOS Setup 60 Pico ITX Board PICO APL4 3 5 Setup submenu Chipset...
Page 74: ...Chapter 3 AMI BIOS Setup 61 Pico ITX Board PICO APL4 3 5 1 North Bridge...
Page 78: ...Chapter 3 AMI BIOS Setup 65 Pico ITX Board PICO APL4 3 8 Setup submenu Exit...
Page 79: ...Pico ITX Board PICO APL4 Chapter 4 Chapter 4 Drivers Installation...
Page 82: ...Pico ITX Board PICO APL4 Appendix A Appendix A Watchdog Timer Programming...
Page 87: ...Pico ITX Board PICO APL4 Appendix B Appendix B I O Information...
Page 88: ...Appendix B I O Information 75 Pico ITX Board PICO APL4 B 1 I O Address Map...
Page 89: ...Appendix B I O Information 76 Pico ITX Board PICO APL4 B 2 Memory Address Map...
Page 90: ...Appendix B I O Information 77 Pico ITX Board PICO APL4 B 3 IRQ Mapping Chart...
Page 91: ...Appendix B I O Information 78 Pico ITX Board PICO APL4...
Page 92: ...Appendix B I O Information 79 Pico ITX Board PICO APL4...
Page 93: ...Pico ITX Board PICO APL4 Appendix C Appendix C Mating Connectors...
Page 96: ...Pico ITX Board PICO APL4 Appendix D Appendix D DIO...