Appendix A – Watchdog Timer Programming
63
Pico
-IT
X Bo
ar
d
PIC
O
-A
PL1
WDTSetBit(
TimerReg
,
UnitBit, Unit
);
// WDT output mode set to pulse
WDTSetBit(
TimerReg
,
ModeBit
,
ModeVal
);
// WDT output mode set to active low
WDTSetBit(
TimerReg
,
PolarityBit
,
PolarityVal
);
// WDT output pulse width is 25ms
WDTSetBit(
TimerReg
,
PSWidthBit
,
PSWidthVal
);
// Watchdog WDTRST# Enable
WDTSetBit(
DevReg
,
WDTRstBit, WDTRstVal
);
}
VOID
WDTClearTimeoutStatus()
{
WDTSetBit(
TimerReg
,
StatusBit,
1
);
}
*******************************************************************************
*******************************************************************************
VOID
WDTWriteByte(byte Register, byte Value)
{
IOWriteByte(Register, Value);
}
byte
WDTReadByte(byte Register)
{
return IOReadByte(Register);
}
VOID
WDTSetBit(byte Register, byte Bit, byte Val)
{
byte TmpValue;
TmpValue = WDTReadByte(Register);
TmpValue &= ~(1 << Bit);
TmpValue |= Val << Bit;
WDTWriteByte(Register, TmpValue);
}
*******************************************************************************
Содержание PICO-APL1
Страница 1: ...Last Updated June 21 2017 PICO APL1 PICO APL1 Single Board Computer User s Manual 1st Ed...
Страница 14: ...Pico ITX Board PICO APL1 Chapter 1 Chapter 1 Product Specifications...
Страница 17: ...Pico ITX Board PICO APL1 Chapter 2 Chapter 2 Hardware Information...
Страница 20: ...Chapter 2 Hardware Information 7 Pico ITX Board PICO APL1 Rear I O Configuration...
Страница 46: ...Chapter 2 Hardware Information 33 Pico ITX Board PICO APL1 2 4 21 Function Block...
Страница 47: ...Pico ITX Board PICO APL1 Chapter 3 Chapter 3 AMI BIOS Setup...
Страница 55: ...Chapter 3 AMI BIOS Setup 42 Pico ITX Board PICO APL1 3 4 3 Hardware Monitor...
Страница 60: ...Chapter 3 AMI BIOS Setup 47 Pico ITX Board PICO APL1 3 4 7 Setup submenu Chipset...
Страница 61: ...Chapter 3 AMI BIOS Setup 48 Pico ITX Board PICO APL1 3 4 8 North Bridge...
Страница 68: ...Chapter 3 AMI BIOS Setup 55 Pico ITX Board PICO APL1 3 6 Setup submenu Exit...
Страница 69: ...Pico ITX Board PICO APL1 Chapter 4 Chapter 4 Drivers Installation...
Страница 72: ...Pico ITX Board PICO APL1 Appendix A Appendix A Watchdog Timer Programming...
Страница 77: ...Pico ITX Board PICO APL1 Appendix B Appendix B I O Information...
Страница 78: ...Appendix B I O Information 65 Pico ITX Board PICO APL1 B 1 I O Address Map...
Страница 79: ...Appendix B I O Information 66 Pico ITX Board PICO APL1 B 2 Memory Address Map...
Страница 80: ...Appendix B I O Information 67 Pico ITX Board PICO APL1 B 3 IRQ Mapping Chart...
Страница 81: ...Pico ITX Board PICO APL1 Appendix C Appendix C Mating Connectors...
Страница 85: ...Pico ITX Board PICO APL1 Appendix D Appendix D DIO...