Appendix A – Watchdog Timer Programming
61
Pico
-IT
X Bo
ar
d
PIC
O
-A
PL1
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-APL1
Page 1: ...Last Updated June 21 2017 PICO APL1 PICO APL1 Single Board Computer User s Manual 1st Ed...
Page 14: ...Pico ITX Board PICO APL1 Chapter 1 Chapter 1 Product Specifications...
Page 17: ...Pico ITX Board PICO APL1 Chapter 2 Chapter 2 Hardware Information...
Page 20: ...Chapter 2 Hardware Information 7 Pico ITX Board PICO APL1 Rear I O Configuration...
Page 46: ...Chapter 2 Hardware Information 33 Pico ITX Board PICO APL1 2 4 21 Function Block...
Page 47: ...Pico ITX Board PICO APL1 Chapter 3 Chapter 3 AMI BIOS Setup...
Page 55: ...Chapter 3 AMI BIOS Setup 42 Pico ITX Board PICO APL1 3 4 3 Hardware Monitor...
Page 60: ...Chapter 3 AMI BIOS Setup 47 Pico ITX Board PICO APL1 3 4 7 Setup submenu Chipset...
Page 61: ...Chapter 3 AMI BIOS Setup 48 Pico ITX Board PICO APL1 3 4 8 North Bridge...
Page 68: ...Chapter 3 AMI BIOS Setup 55 Pico ITX Board PICO APL1 3 6 Setup submenu Exit...
Page 69: ...Pico ITX Board PICO APL1 Chapter 4 Chapter 4 Drivers Installation...
Page 72: ...Pico ITX Board PICO APL1 Appendix A Appendix A Watchdog Timer Programming...
Page 77: ...Pico ITX Board PICO APL1 Appendix B Appendix B I O Information...
Page 78: ...Appendix B I O Information 65 Pico ITX Board PICO APL1 B 1 I O Address Map...
Page 79: ...Appendix B I O Information 66 Pico ITX Board PICO APL1 B 2 Memory Address Map...
Page 80: ...Appendix B I O Information 67 Pico ITX Board PICO APL1 B 3 IRQ Mapping Chart...
Page 81: ...Pico ITX Board PICO APL1 Appendix C Appendix C Mating Connectors...
Page 85: ...Pico ITX Board PICO APL1 Appendix D Appendix D DIO...