System Installation
PEB-2737VLA User
’s Manual
3-8
(1)
Initialize W83627DHG multiplex pins to SGP32~34 function
enter_Superio_CFG();
d = GET_CFG(0x2A);
d = d & 0xFD;
Set_CFG(0x2A, d); // Pin 89,90 function selected by CR2C
d = GET_CFG(0x2C);
d = d & 0x1F;
Set_CFG(0x2C, d); // Declare Pin88,89,90 as GPIO function
(2)
Point to LD9 ( for SGP30~37 GPIO port registers ) and activate its function
Set_CFG(0x07, 0x09); // Select logic device 09
d = GET_CFG(0x30);
d = d | 0x02;
Set_CFG(0x30, d); //Enable GPIO3
Set_CFG(0xFE, 0x77); //Declare GP30,GP31,GP35's triggle type is level and
//diable input de-bouncer
Set_CFG(0xF2, 0x00); //Declare GP30~37 without data inversion
(3)
LD9_CRF0_PF0 ; Set SGP30~33 as GPO pins and SGP34~37 as GPI pin.
Set_CFG(0xF0, 0xF0); //GP30~33 as output;GP34~GP37 as input
(4)
LD9_CRF1 ; Data Register for reading/writing data to GPIO pins
; E.g. if put four jumper caps on CN9 pin1-2,3-4,5-6,and 7-8
; ( Warning : CN9 pin9-10 is not allowed to be short circuit. )
; and then Write [1,0,1,0] to bit[3:0] , you can get [1,0,1,0] from
; bit[7:4].
Set_CFG(0xF1, 0x0A); //GP30~33 output H,L,H,L
d = GET_CFG(0xF1) & 0xF0;