ADLINK MI-220 User Manual
Page 80
68
Watchdog Timer
IoWrite8 (NCT6776F_CONFIG_DATA , NCT6776F_LDN_GPIOA);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xE0); //
selection Pin113 to GPO High
IoWrite8 (NCT6776F_CONFIG_DATA , 0x00);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xE1);
IoWrite8 (NCT6776F_CONFIG_DATA , 0x01);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0xE5); //
selection Pin113 to WDTO
IoWrite8 (NCT6776F_CONFIG_DATA , 0x01);
IoWrite8 (NCT6776F_CONFIG_INDEX , 0x2C); //
Pin113 function selection to GPIOA0
Data8 = IoRead8(NCT6776F_CONFIG_DATA) & 0xFE;
IoWrite8 (NCT6776F_CONFIG_DATA , Data8);
IoWrite8 (NCT6776F_CONFIG_INDEX ,
NCT6776F_LDN_SEL_REGISTER);
IoWrite8 (NCT6776F_CONFIG_DATA , NCT6776F_LDN_GPIO2);
IoWrite8 (NCT6776F_CONFIG_INDEX ,
NCT6776F_ACTIVATE_REGISTER);
Data8 = IoRead8(NCT6776F_CONFIG_DATA) | SetupData-
>WDT_Control ;
IoWrite8 (NCT6776F_CONFIG_DATA , Data8);
IoWrite8(NCT6776F_CONFIG_INDEX, 0xF5);
Data8 = IoRead8(NCT6776F_CONFIG_DATA) | SetupData-
>WDT_CountMode;
IoWrite8 (NCT6776F_CONFIG_DATA , Data8);
IoWrite8(NCT6776F_CONFIG_INDEX, 0xF6);
IoWrite8(NCT6776F_CONFIG_DATA, SetupData-
>WDT_TimeOut);
SIOConfigExit();
}