81
Appendix B
B
APPENDIX B : GPIO & WDT FUNCTION
//write twice 0x87 value.
outportb(
Super I/O special address port,
0x87);
outportb(
Super I/O special address port
, 0x01);
outportb(
Super I/O special address port
, 0x55);
outportb(
Super I/O special address port
, 0x55);
The GPIO& WDT are using internal Super IO function. However, you must entry
The output port is set as GPIO 1 on CN13, reg. index =
0x60
The input port is set as GPIO 4 on CN12, reg. index =
0x62
.
Super I/O special address port = 0x2E
Super I/O special data port
= 0x2F
GPIO Logical device is 0x07
B. Located on Logical Device 7
//write 0x07 on Reg [0x07] , this setup must follow Step A. that can be workable.
outportb(
Super I/O special address port
, 0x07);
outportb(
Super I/O special data port
, 0x07);
C. Access the Super I/O Register
Base control for write Super I/O register.
outportb(
special address port
, Register Index.);
outportb(
special data port
, update_value);
Base control for read Super I/O register
outportb(
special address port
, Register Index.);
inportb(
special data port
); //It will return a BYTE value.