User manual

67 PCM-4153 User Manual
Appendix D Prog. GPIO & Watchdog Timer
; bit 7 = gpio 7 , 0 => Low; 1 => High
; output:
; ax=5E78 ;function success, other value means function fail
;===============================================================
=
mov ax, 5E87H ;int15 hook as 5E87H
mov bh, 04h ;Set GPIO status
mov cl, Output_Reg
mov al, bl ;( bl = bit0~7 = GPIO0~7 : 0 => Low; 1 => High)
call Ct_I2CWriteByte
mov ax,5E87h ;return function success
D.2 Watchdog Timer:
;The SCH3114 Runtime base I/O address is 800h
;Setting WatchDog time value location at offset 66h
;If set value "0", it is mean disable WatchDog function.
Superio_GPIO_Port = 800h
mov dx,Superio_GPIO_Port + 66h
mov al,00h
out dx,al
.model small
.486p
.stack 256
.data
SCH3114_IO EQU 800h
.code
org 100h
.STARTup
;====================================================
;90H
;enable WDT function bit [0]=01h
;====================================================
mov dx,SCH3114_IO + 90h
mov al,01h
out dx,al
;====================================================
;65H
;bit [1:0]=Reserved
;bit [6:2]Reserve=00000
;bit [7] WDT time-out Value Units Select
;Minutes=0 (default) Seconds=1
;====================================================
mov dx,SCH3114_IO + 65h ;
mov al,080h
out dx,al
;====================================================