![C. Watchdog Timer Configuration](/images/new-backgrounds/103017/103017129x1.webp)
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
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_LD0x07 //======================================================================= //=======================================================================
#define ITE8712_IO_PORT0x0803 //=======================================================================
#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 |