xor
out
mov
mov
out
call
CT_Chk_SMBus_Ready
mov
in
ret
Ct_I2CReadByte
Endp
;Input : CL - register index
;
CH - device ID
;
AL - Value to write
;Output: none
Ct_I2CWriteByte
Proc Near
mov ch,06eh
xchg ah, al
mov
mov
out
call
Delay5ms
Appendix F – Digital I/O Ports
al, al
; Clear old data
dx, al
dx, 0f040h + 02h
al, 48h ; Start a byte access
dx, al
dx, 0f040h + 05h
al, dx
dx, 0f040h + 00h
al, 0ffh
dx, al
; Host Control Reegister
; Host Control Register
; Clear previous commands
143