76
CSB200-898 User Manual
2.
Sample Code: The file 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
}
//---------------------------------------------------------------------------
Содержание CSB200-898
Страница 1: ...CSB200 898 Slim Compact SBC System User s Manual Version 1 0b Feb 2019 ...
Страница 16: ...8 CSB200 898 User Manual 1 7 Dimensions Unit mm ...
Страница 31: ...Hardware Configuration CSB200 898 User Manual 23 2 IB898 bottom Intel Atom E3825 Dual Core ...
Страница 36: ...28 CSB200 898 User Manual 2 5 1 USB 2 0 Port CN4 2 5 2 USB 3 0 Port CN1 2 5 3 LAN Port GbE CN3 ...
Страница 37: ...Hardware Configuration CSB200 898 User Manual 29 2 2 5 4 Display Port CN5 2 5 5 VGA Port CN6 ...
Страница 58: ...50 CSB200 898 User Manual 4 4 2 iSMART Controller ...
Страница 68: ...60 CSB200 898 User Manual 4 5 Chipset Settings 4 5 1 North Bridge ...