Appendix
FWA8408 & FWA8406 User Manual
65
2. WDT 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
}
//---------------------------------------------------------------------------
Содержание FWA8406
Страница 1: ...FWA8408 FWA8406 1U Rackmount Network Appliance User s Manual Version 1 0 Aug 2017...
Страница 15: ...8 FWA8408 FWA8406 User Manual 1 7 Dimensions Unit mm FWA8408 RPSU...
Страница 16: ...General Information FWA8408 FWA8406 User Manual 9 1 Unit mm FWA8408...
Страница 17: ...10 FWA8408 FWA8406 User Manual Unit mm FWA8406 RPSU...
Страница 18: ...General Information FWA8408 FWA8406 User Manual 11 1 Unit mm FWA8406...
Страница 29: ...22 FWA8408 FWA8406 User Manual 2 3 Jumper Connector Locations on Motherboard Motherboard MBN800 8L...
Страница 30: ...Hardware Configuration FWA8408 FWA8406 User Manual 23 2 Motherboard MBN800 6L...