![C&T Solution CT-DWL01 Скачать руководство пользователя страница 83](http://html1.mh-extra.com/html/candt-solution/ct-dwl01/ct-dwl01_user-manual_3077103083.webp)
CT-DWL01 l User’s Manual
83
WDT Sample Code:
#define AddrPort
0x2e
#define DataPort
0x2f
#define SIO_UnLock_Value
0x87
#define SIO_Lock_Value
0xaa
#define WATCHDOG_LDN 0x07
#define GPIO_Port
0xF1
//Enter_Config
WriteByte (AddrPort, SIO_UnLock_Value);
WriteByte (AddrPort, SIO_UnLock_Value);
//Enter WATCHDOG LDN
WriteByte (AddrPort, 0x07);
WriteByte (DataPort, WATCHDOG_LDN);
//Set count mode
WriteByte (AddrPort, 0xf0);
buf2 = ReadByte (DataPort) & 0xf4; //clear "Select Watchdog Timer I count mode
buf2 |= 0x02; //Enable the Watchdog Timer I output low pulse to the KBRST# pin
// buf2 |= 0x08; //Bit3 = (1:Minute Mode/0:Second Mode)
WriteByte (DataPort, buf2); //Write back
//Set watch dog time value
WriteByte (AddrPort, 0xf1)
WriteByte (DataPort, Time)
//Set watch dog time value
// close config mode
WriteByte (AddrPort, 0xaa);
Appendix – WDT & GPIO
Содержание CT-DWL01
Страница 7: ...Chapter 1 Product Introductions...
Страница 11: ...Chapter 2 Mechanical Specifications...
Страница 13: ...CT DWL01 l User s Manual 13 Chapter 2 Mechanical Specifications 2 1 2 Bottom View CN31...
Страница 39: ...Chapter 3 Features Interface...
Страница 43: ...Chapter 4 Driver Installation...
Страница 45: ...Chapter 5 System BIOS...
Страница 48: ...CT DWL01 l User s Manual 5 3 Advanced Setup 48 Chapter 5 BIOS Setup...
Страница 71: ...CT DWL01 l User s Manual PCI Express Configuration 71 Chapter 5 BIOS Setup...
Страница 84: ...Copyright C T Solution Inc All Rights Reserved www candtsolution com...