94
PCM-6892 User's Manual
void SelectDevice(unsigned char device)
{
outportb(IO_INDEX_PORT, DEVICE_REGISTER);
outportb(IO_DATA_PORT, device);
}
unsigned char ReadAData(short int reg)
{
outportb(IO_INDEX_PORT, reg);
return (inportb(IO_DATA_PORT));
}
void WriteAData(unsigned char reg, unsigned char data)
{
outportb(IO_INDEX_PORT, reg);
outportb(IO_DATA_PORT, data);
}
void SetWatchDogTime(unsigned char time_val)
{
EnterConfigMode();
SelectDevice(8);
//Set Register F2
//Set Watch-Dog Timer 1~ 256
WriteAData(0xF2, time_val);
// set counter counts in second (or minute)
// Register F4 Bit 6 = 0/1 (minutes/seconds)
// For w83977EF only
WriteAData(0xF4, 0x40);
ExitConfigMode();
}
Содержание PCM-6892 Rev.B
Страница 18: ...8 PCM 6892 Installation GuideBC PCM 6892 Locating Jumpers Connectors ...
Страница 19: ...PCM 6892 Installation Guide 9 Quick Installation Guide Locating Jumpers Connectors ...
Страница 20: ...10 PCM 6892 Installation GuideBC PCM 6892 Mechanical Drawing ...
Страница 21: ...PCM 6892 Installation Guide 11 Quick Installation Guide Mechanical Drawing ...
Страница 98: ...Appendix A Watchdog Timer 91 A WatchDog Timer A P P E N D I X ...
Страница 105: ...Appendix B Optional Extras 99 B Optional Extras A P P E N D I X Appendix B pmd 2003 10 21 09 21 上午 99 ...