PORTWELL NANO-6063 User's Guide
Copyright © Portwell 2022 NANO-6063 User's Guide
27
int Temp;
// Initial
if(iopl(3)!=0){
printf("error: I/O Permission Error!\n");
return 1;
}
// Enable WDT 10min, 20sec
Write_EC_SRAM(WDTSEC,5); // 5 Sec
Write_EC_SRAM(WDTMIN,1); // 1 min
// Enable WDT 5sec and WDT pin mode
Temp = Read_EC_SRAM(WDTCFG);
Write_EC_SRAM(WDTCFG,(Temp|0x13)); // Bit4: 1: Driving WDT pin
// BIT1: 1: Minute Mode
// Bit0: 1: Enable WDT
// Check Current WDT status
while((Read_EC_SRAM(WDTCFG)&0x01) != 0)
{
printf("WDT Counting: %d M., %d S!\n",Read_EC_SRAM(WDTMIN),Read_EC_SRAM(WDTSEC));
}
}
Summary of Contents for NANO-6063
Page 55: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 55 HW Monitor ...
Page 61: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 61 ...
Page 62: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 62 Security ...
Page 80: ...PORTWELL NANO 6063 User s Guide Copyright Portwell 2022 NANO 6063 User s Guide 80 Serial ATA ...