Appendix A – Watchdog Timer Programming
105
3.5
” S
ub
co
mp
act
Bo
ard
G
ENE
-B
SW
5
VOID AaeonWDTEnable (){
WDTEnableDisable(1);
}
// Procedure : AaeonWDTConfig
VOID AaeonWDTConfig (byte Counter, BOOLEAN Unit){
// Disable WDT counting
WDTEnableDisable(0);
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting(Timer, Unit);
}
VOID WDTEnableDisable(byte Value){
If (Value == 1)
WDTSetBit(TimerReg, EnableBit, 1);
else
WDTSetBit(TimerReg, EnableBit, 0);
}
VOID WDTParameterSetting(byte Counter, BOOLEAN Unit){
// Watchdog Timer counter setting
WDTWriteByte(CounterReg, Counter);
// WDT counting unit setting
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);
}
*******************************************************************************
*******************************************************************************
Содержание AAEON GENE-BSW5
Страница 1: ...Last Updated May 23 2017 GENE BSW5 3 5 Subcompact Board User s Manual 4th Ed ...
Страница 15: ...3 5 Subcompact Board GENE BSW5 Chapter 1 Chapter 1 Product Specifications ...
Страница 19: ...3 5 Subcompact Board GENE BSW5 Chapter 2 Chapter 2 Hardware Information ...
Страница 20: ...Chapter 2 Hardware Information 6 3 5 Subcompact Board GENE BSW5 2 1 Dimensions Component Side Component Side ...
Страница 21: ...Chapter 2 Hardware Information 7 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side ...
Страница 23: ...Chapter 2 Hardware Information 9 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side ...
Страница 25: ...Chapter 2 Hardware Information 11 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side ...
Страница 27: ...Chapter 2 Hardware Information 13 3 5 Subcompact Board GENE BSW5 Solder Side Solder Side ...
Страница 28: ...Chapter 2 Hardware Information 14 3 5 Subcompact Board GENE BSW5 2 3 Block Diagram ...
Страница 69: ...Chapter 2 Hardware Information 55 3 5 Subcompact Board GENE BSW5 ...
Страница 70: ...3 5 Subcompact Board GENE BSW5 Chapter 3 Chapter 3 AMI BIOS Setup ...
Страница 105: ...3 5 Subcompact Board GENE BSW5 Chapter 4 Chapter 4 Drivers Installation ...
Страница 109: ...Chapter 4 Driver Installation 95 3 5 Subcompact Board GENE BSW5 3 Run patch bat as administrator ...
Страница 112: ...Chapter 4 Driver Installation 98 3 5 Subcompact Board GENE BSW5 ...
Страница 116: ...3 5 Subcompact Board GENE BSW5 Appendix A Appendix A Watchdog Timer Programming ...
Страница 121: ...3 5 Subcompact Board GENE BSW5 Appendix B Appendix B I O Information ...
Страница 122: ...Appendix B I O Information 108 3 5 Subcompact Board GENE BSW5 B 1 I O Address Map ...
Страница 123: ...Appendix B I O Information 109 3 5 Subcompact Board GENE BSW5 B 2 Memory Address Map ...
Страница 124: ...Appendix B I O Information 110 3 5 Subcompact Board GENE BSW5 B 3 IRQ Mapping Chart ...
Страница 125: ...3 5 Subcompact Board GENE BSW5 Appendix C Appendix C Digital I O Ports ...
Страница 132: ...Appendix C Digital I O Ports 118 3 5 Subcompact Board GENE BSW5 ...
Страница 133: ...3 5 Subcompact Board GENE BSW5 Appendix D Appendix C Notes for Users ...