NAR-4040 User’s Manual
37
; -------------------------------------------------- 1_start
; Get PMBASE and save to EBX_bit[31..16]
; Let GPI6 GPI_ROUT to [0,0] , i.e. not evoke SCI in S0.
mov dx,0CF8h ; PCI Config Read
mov eax,8000F8B8h ; B0:D31:F0:Offset_B8h
out dx,eax
mov dx,0CFCh
in eax,dx
and ah,0CFh ; bit[13,12] set to [0,0] to let GPI6 not
out dx,eax ; evoke SCI event
mov dx,0CF8h ; PCI Config Read
mov eax,8000F844h ; B0:D31:F0:Offset_44h
out dx,eax
mov dx,0CFCh
in eax,dx
or al,10h ; bit 4 set to 1 to enable PMBASE
out dx,eax ;
mov dx,0CF8h ; Get PMBASE
mov eax,8000F840h ; B0:D31:F0:Offset_40h
out dx,eax
mov dx,0CFCh
in eax,dx
and al,0feh ; bit0 cleared to 0.
rol eax,10h
mov ebx,eax ; Save PMBASE to EBX[31..16]
; -------------------------------------------------- 1_end
; PG_Step2 : Enable GPIO IO function and get GPIOBASE, then save to
; ECX_Bit[31..16]
;
; How to program GPO19
; -------------------------------------------------------
; Get GPIOBASE =: B0:D31:F0:Offset[58..5Bh] ;(and let bit0 = 0 )
; GPIO_CNTL =: B0:D31:F0:Offset_5Ch_bit4P1 ;Enable ICH4 GPIO
;
; GPO19
; GP_LVL (=:(GP 0Ch))_bit19P[0/1]; Write value 0/1
; -------------------------------------------------------
;
; How to read GPI6
; ======================================================
; GPI6 status must NOT be inverted First.
; GPI_INV (=G2Ch)-bit6P0. ( GPI6 not inverted )
Summary of Contents for NAR-4040
Page 3: ...NAR 4040 User s Manual 2 5 9 Sample Code 53 ...
Page 27: ...Fig 3 2 PPAP 3711VL System Block Diagram NAR 4040 User s Manual 26 ...
Page 46: ...NAR 4040 User s Manual 45 pop dx pop cx ret FIXDELAY ENDP END programstart ...
Page 53: ...NAR 4040 User s Manual 52 5 8 Character Generator ROM CGROM ...