
NAR-4040 User’s Manual
39
or al,08h ; bit3 ---> GPO19
out dx,al ; output GPO19 1
; make sure GPO19 = 1 end
; ============================ MUST DO ==========================Start
; GP_INV bit6 MUST Program 0 for GPI6 state not inverted. start
xor bx,bx
mov bl,GP_INV_OFFSET ; Not invert GPI6 status
mov dx,cx ;
add dx,bx ; bit6 ---> GPI6
in al,dx ; read first
call IODELAY ; io delay
and al,0BFh ; mask bit6 and write 0
out dx,al
; GP_INV bit6 MUST Program 0 for GPI6 state not inverted. end
; ============================ MUST DO ==========================End
; ---- t1 start
; GPI6 , read its status , initialization will be 0 .
;
; How to read GPI6
; -------------------------------------------------------
; PMBASE has been stored in EBX[31..16].
; Get GPI6 status from GPE0_STS (=28h)-bit22
; 0 = low , 1= high level
; -------------------------------------------------------
call READ_GPI6_TO_AL
and al,40h ; mask bit6
cmp al,00h
je next_test1 ; okay , go on test
; jz next_test1 ; okay , go on test
; no , error message display
lea dx,promp_err1
mov ah,09h
int 21h
lea dx,promp_err1_1
mov ah,09h
int 21h
ror edx,10h ; error falg EDX_Bit16 , 1 --> Error happened
or dl,01h
rol edx,10h
call KB_Wait
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 ...