APPENDIX
IB89
8 User’s Manual
51
File of the MAIN.CPP.
//---------------------------------------------------------------------------
//
// 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.
//
//---------------------------------------------------------------------------
#include <dos.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "NCT5523D.H"
//---------------------------------------------------------------------------
int main (void);
void WDTInitial(void);
void WDTEnable(unsigned char);
void WDTDisable(void);
//---------------------------------------------------------------------------
int main (void)
{
char SIO;
SIO = Init_NCT5523D();
if (SIO == 0)
{
printf("Can not detect Nuvoton NCT5523D, program abort.\n");
return(1);
}
WDTInitial();
WDTEnable(10);
WDTDisable();
return 0;
}
//---------------------------------------------------------------------------
void WDTInitial(void)
{
unsigned char bBuf;
Set_NCT5523D_LD(0x08);
//switch to logic device 8
bBuf = Get_NCT5523D_Reg(0x30);
bBuf &= (~0x01);
Set_NCT5523D_Reg(0x30, bBuf);
//Enable WDTO
}
//---------------------------------------------------------------------------
Summary of Contents for E3815
Page 2: ...IB898 Intel AtomTM E3800 SoC Series 3 5 Disk Size SBC USER S MANUAL Version 1 0 ...
Page 5: ...iv IB898 User s Manual This page is intentionally left blank ...
Page 9: ...INTRODUCTION 4 IB898 User s Manual Board Dimensions ...
Page 13: ...INSTALLATIONS 8 IB898 User s Manual Jumper Locations on IB898 ...
Page 17: ...INSTALLATIONS 12 IB898 User s Manual Connector Locations on IB898 ...