AR-B5432 series User Manual
28
WatchDog demo program in Turbo C++ as following:
//===========================================================================
// Turbo C++ Version 3.0 Copyright(c) 1990, 1992 by Borland International,Inc.
//===========================================================================
// Describe : F81865 WatchDog timer test
//===========================================================================
//===========================================================================
// Language include files
//===========================================================================
#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
#include <dos.h>
//===========================================================================
// Normal procedure
//===========================================================================
void Show_Help();
//===========================================================================
// Main procedure
//===========================================================================
int main(int argc, char *argv[])
{
unsigned char IO_Port_Address=0x2E;
unsigned char Time;
int Temp;
if ( argc != 2 )
{ Show_Help(); return 1; }
clrscr();
Time=atoi(argv[1]);
// Set Watchdog