NAR-5620 Series
User
’
s
Manual
25
or al,10h
; 4Ch_Bit4P1 to Enable GPIO
out dx,eax
mov dx,0CF8h
; Get GPIOBASE
mov eax,8000F848h ; B0:D31:F0:Offset_48h
out dx,eax
mov dx,0CFCh
in eax,dx
and al,0feh
; bit 0 cleared to 0.
rol eax,10h
mov ecx,eax
; Save GPIOBASE to ECX[31..16]
; Get GPIOBASE Base Address , and save to ECX_bit[31..16]
; Testing way :
; --- t1
; Read GPI6 first , GPI6=0 ? if yes,pass ; if no, failed
;
; --- t2
; RST2DF button pressed and released , read GPI6 ,GPI6 = 1 ? if yes, pass ; if no, failed
;
; --- t3
; Clear RST2DF status to 0 ,read GPI6 ,GPI6 = 0 ? if yes, pass ; if no, failed
;------------------------------------------------------------------ t_start
rol ecx,10h ; Restore GPIOBASE from ECX[31..16] to ECX[15..0]
; Initial GPIO39 as an Output. (i.e: GP_IO_SEL2_bit7P0)
;
xor bx,bx
;