NAR-5620 Series
User
’
s
Manual
24
; PG_Step2 : Enable GPIO IO function and get GPIOBASE, then save to
;
ECX_Bit[31..16]
;
;
How to program GPO39
;
-------------------------------------------------------
;
Get GPIOBASE =: B0:D31:F0:Offset[48..4Bh] ;(and let bit0 = 0 )
;
GPIO_CNTL =: B0:D31:F0:Offset_4Ch_bit4P1 ;Enable ICH7R GPIO
;
;
GPO39
;
GP_LVL (=:(GP 38h))_bit7P[0/1]; Write value 0/1
;
-------------------------------------------------------
;
;
How to read GPI6
;
======================================================
;
GPI6 status must NOT be inverted First.
;
GPI_INV (=G2Ch)-bit6P0. ( GPI6 not inverted )
;
;
Get GPI6 status from GPE0_STS (=28h)-bit22
;
0 = low , 1= high level
;
======================================================
; ==================================================== 2_start
; Get GPIOBASE Base Address , and save to ECX_bit[31..16]
mov dx,0CF8h
mov eax,8000F84Ch ; B0:D31:F0:Offset_4Ch
out dx,eax
mov dx,0CFCh
in eax,dx