CAPA55R Capa Board
Watchdog Timer
63
Appendix A
Watchdog Timer
A.1 About Watchdog Timer
After the system stops working for a while, it can be auto-reset by the watchdog timer. The
integrated watchdog timer can be set up in the system reset mode by program.
A.2 Watchdog Timer Programming
/////////////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <dos.h>
#define AXIOM_WDT_TIMER
0xFA10
#define AXIOM_WDT_TRIGGER
0xFA12
void main()
{
unsigned long int DefaultTimer = 0xFFFF; // 65535 Seconds
unsigned long int CurrentWdtTimer = 0;
clrscr();
// Set WDT Timer, maximum is 65535 seconds
outportw(AXIOM_WDT_TIMER, DefaultTimer);
printf("Set WDT Timer to: %ld Seconds\n", DefaultTimer);
// 0x01: Enabled WDT, 0x00: Disabled WDT
outportb(AXIOM_WDT_TRIGGER, 0x01);
printf("Enabled WDT Timer\n");
while(1)
{
clrscr();
// Get current WDT Timer
CurrentWdtTimer = inportw(AXIOM_WDT_TIMER);
printf("Set WDT Timer to: %ld Seconds\n", DefaultTimer);
printf("Current WDT Timer: %ld Seconds\n", CurrentWdtTimer);
delay(1000);
}
}
/////////////////////////////////////////////////////////////////////////////////////////
Содержание CAPA55R
Страница 1: ...CAPA55R 11th Generation Intel CoreTM i7 i5 i3 and Celeron 3 5 Board User s Manual...
Страница 6: ...vi This page is intentionally left blank...
Страница 10: ...CAPA55R Capa Board 4 Introduction This page is intentionally left blank...
Страница 12: ...CAPA55R Capa Board 6 Board and Pin Assignments Bottom View...
Страница 13: ...CAPA55R Capa Board Board and Pin Assignments 7 Side View...
Страница 14: ...CAPA55R Capa Board 8 Board and Pin Assignments 2 2 Board Layout Top View Side View...
Страница 15: ...CAPA55R Capa Board Board and Pin Assignments 9 Bottom View...
Страница 17: ...CAPA55R Capa Board Board and Pin Assignments 11...
Страница 18: ...CAPA55R Capa Board 12 Board and Pin Assignments...
Страница 40: ...CAPA55R Capa Board 34 Hardware Description 3 4 I O Port Address Map...
Страница 42: ...CAPA55R Capa Board 36 Hardware Description...
Страница 43: ...CAPA55R Capa Board Hardware Description 37...
Страница 44: ...CAPA55R Capa Board 38 Hardware Description...
Страница 45: ...CAPA55R Capa Board Hardware Description 39...
Страница 46: ...CAPA55R Capa Board 40 Hardware Description 3 6 Memory Map The memory mapping list is shown as follows...
Страница 70: ...CAPA55R Capa Board 64 Watchdog Timer This page is intentionally left blank...
Страница 81: ...CAPA55R Capa Board iAMT Settings 75 2 Select Manage Hashes to add delete and activate hash...