NAR-5050/5070 Series User
’
s Manual
34
;Disable WDT Step 7 : Program WDTO,Twd, to "00h". ( Offset-11h_P00h )
;Write Twd "00h" to stop WDT counting
xor bx,bx
mov bl,WDTO
add dx,bx
; Point to WDTO offset
mov al,00h
; Write the Twd 00h
out dx,al
sub dx,bx
; dx back to I/O base Addr.
pop bx
pop ax
pop dx
ret
WDT disable ENDP
2.17 GPIO Information
;-----------------------------------------------------------------------;
; GET_GPI_STATUS_CH ;
;-----------------------------------------------------------------------;
; GET_GPI_STATUS_CH ( Get GPI and Returned to CH )
; ;
; Index_IO_Port : NS PC87417 Index I/O Port = 2Eh
; Data_IO_Port : NS PC87417 Data I/O Port = 2Fh
; GPIO_LDN : System Wake-Up Control Logical Device Number = 07
; GPSEL : Index 0F0h from GPIO LDN ;
; Set Port# (Bit 6-4), and Pin# (Bit2-0)
; GPCFG1 : Index 0F1h from GPIO LDN ; Set GPIO direction, type, ;
; GPDO3 : Offset from I/O base Addr. for GPIO = 08h ;
; GPDI3 : Offset from I/O base Addr. for GPIO = 09h ;
;
; Input : None
; Stack present
;
; output: CH : bit 7 : GPO30 : JP1 on PPAP-LED2 test module
; 6 : GPO37 : JP2 on PPAP-LED2 test module
; 5 : GPO31 : JP3 on PPAP-LED2 test module
; 4 : GPO36 : JP4 on PPAP-LED2 test module
; 3 : GPO32 : JP5 on PPAP-LED2 test module
; 2 : GPO35 : JP6 on PPAP-LED2 test module
; 1 : GPO33 : JP7 on PPAP-LED2 test module
; 0 : GPO34 : JP8 on PPAP-LED2 test module
;
;-----------------------------------------------------------------------;