NAR-4040 User’s Manual
34
; After Power On reset, GPI6 = low ( 0 )
; If Reset to Default (RST2DF) Button pressed ( Triggered )
; ,then GPI6 will be latch to high ( 1 ).
;
; RST2DF register can be cleared by ICH4_GPO19.
; Write a pulse timing ( High1_low_high2 ) to clear RST2DF to 0.
; High1 : output GPO19 high , and keep 10 us.
; Low : output GPO19 low , and keep 10 us.
; High2 : output GPo19 high again , and keep high always.
;
;
; Programming Guide :
; PG_Step1 : Enable ACPI IO port assignment and get PMBASE, then save to
; EBX_Bit[31..16]
;
; First : GPI_ROUT bit[13,12] P [0,0] : Let GPI6 not evoke SCI.
; Write GPI_Rout bit[13,12] to [0,0] for no effect on GPI6
; ( B0:D31:F0:Offset_B8h-Bit[13,12]P[0,0] , no SCI event evoked)
;
; Second: Enabe ACPI IO port by setting ACPI_CNTL bit4
; B0:D31:F0:Offset_44h_bit4P1
; Third : Get PMBASE ( ACPI I/O port BAR ) and
; save to EBX_bit[31..16].
; PMBASE=:B0:D31:F0:Offset[40..43h]
; Let Bit0 = 0.( PCI_BAR bit0 returns 1 for a IO_BAR )
;
;
;
; PG_Step2 : Enable GPIO IO function and get GPIOBASE, then save to
; ECX_Bit[31..16]
;
; How to program GPIO19 ( Output only , i.e. GPO19 )
; -------------------------------------------------------
; Get GPIOBASE =: B0:D31:F0:Offset[58..5Bh] ;(and let bit0 = 0 )
; GPIO_CNTL =: B0:D31:F0:Offset_5Ch_bit4P1 ;Enable ICH4 GPIO
;
; GPIO19
; 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 )
;
; Get GPI6 status from GPE0_STS (=28h)-bit22
; 0 = low , 1= high level
; ======================================================
.MODEL tiny
.386
.STACK 200h
.data
PROMP1 DB'PORTWELL PPAP-3711,3711RSTD.exe, V1.00 10-01-2003,All rights reserved.$'
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 ...