48
byteGPIO1X = byteGPIO1X & 0xF0; // Mask unuseful value
byteGPIO3X = byteGPIO3X & 0x0F; // Mask unuseful value
byteData = ( byteGPIO1X & 0x10 )? by 0x01 : byteData;
byteData = ( byteGPIO1X & 0x80 )? by 0x02 : byteData;
byteData = ( byteGPIO1X & 0x40 )? by 0x04 : byteData;
byteData = ( byteGPIO3X & 0x01 )? by 0x08 : byteData;
byteData = ( byteGPIO3X & 0x02 )? by 0x10 : byteData;
byteData = ( byteGPIO3X & 0x04 )? by 0x20 : byteData;
byteData = ( byteGPIO3X & 0x08 )? by 0x40 : byteData;
byteData = ( byteGPIO1X & 0x20 )? by 0x80 : byteData;
// Get correct DI value from GPIO1X & GPIO3X
return byteData;
}
void F75111_SetWDTEnable (BYTE byteTimer)
{
// set WatchDog range and timer
WriteByte(F75111_INTERNAL_ADDR,WDT_TIMER_RANGE ,byteTimer);
// Enable WatchDog, Setting WatchDog configure
WriteByte(F75111_INTERNAL_ADDR,WDT_CONFIGURATION,WDT_TIMEOUT_FLAG | WDT_ENABLE |
WDT_PULSE | WDT_PSWIDTH_100MS);
}
5. Enable WatchDog
void F75111_SetWDTDisable ()
{
WriteByte(F75111_INTERNAL_ADDR,WDT_CONFIGURATION,0x00);
}
6. Disable WatchDog
Summary of Contents for MI945A
Page 5: ...DEC 08 2008 2008...