Intel MB879 Computer Hardware User Manual


 
APPENDIX
C. Watchdog Timer Configuration
The WDT is used to generate a variety of output signals after a user
programmable count. The WDT is suitable for use in the prevention of
system lock-up, such as when software becomes trapped in a deadlock.
Under these sorts of circumstances, the timer will count to zero and
the selected outputs will be driven. Under normal circumstance, the
user will restart the WDT at regular intervals before the timer counts
to zero.
SAMPLE CODE:
File : ITE8712.H
//=======================================================================
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//=======================================================================
#ifndef __ITE8712_H
#define __ITE8712_H 1
//=======================================================================
#define ITE8712_INDEX_PORT (ITE8712_BASE)
#define ITE8712_DATA_PORT (ITE8712_BASE+1)
//=======================================================================
#define ITE8712_REG_LD 0x07
//=======================================================================
//=======================================================================
#define ITE8712_IO_PORT 0x0803
//=======================================================================
#define ITE8712_UNLOCK1 0x87
#define ITE8712_UNLOCK2 0x01
#define ITE8712_UNLOCK3 0x55
#define ITE8712_UNLOCK4 0xAA
#define ITE8712_LOCK 0xFF
//=======================================================================
unsigned int Init_ITE8712(void);
void Set_ITE8712_LD( unsigned char);
void Set_ITE8712_Reg( unsigned char, unsigned char);
unsigned char Get_ITE8712_Reg( unsigned char);
//=======================================================================
#endif//__ITE8712_H
MB879 User’s Manual 59