Intel PCI-6886 Computer Hardware User Manual


 
PCI-6886 User’s Manual 62
OUT DX,AL
MOV DX,2FH
MOV AL,??H ; Put the output value into AL
OUT DX,AL
------------------------------------------
Exit extended function mode |
------------------------------------------
MOV DX,2EH
MOV AL,AAH
OUT DX,AL
A.2 Watchdog programming
Watchdog: (Index Port:300H , Data Port:301)
1, Enable Watchdog
Outportb (0x2e,0x87);
Outportb (0x2e,0x87); //Entry Configuration Mode
Outportb (0x2e,0x07); //Select Register Index 0x07
Outportb (0x2f,0x08); //Select LDN 8
Outportb (0x2e,0x30); //Select LDN 8 Register Index 0x30
Outportb (0x2f,0x01); //Enable Watchdog Timer Device
Outportb (0x2e,0xaa); //Exit Configuration Mode
2, Set Watchdog Timer to 20 Second
Outportb (0x2e,0x87);
Outportb (0x2e,0x87); //Entry Configuration Mode
Outportb (0x2e,0x07); //Select Register Index 0x07
Outportb (0x2f,0x08); //Select LDN 8
Outportb (0x2e,0xf6); //Select LDN 8 Register Index 0x30
Outportb (0x2f,0x20); //Set 20 second