;Output : AL - Value read
;==============================================================
Ct_I2CReadByteProcNear
@@:
Ct_I2CReadByteEndp
;==============================================================
;Input : CL - register index
;
CH - device ID
PCM-9588 User Manual
push cx
mov dx,SMBus_Port +04h
inc
ch
mov al,ch
out
dx,al
NEWIODELAY
NEWIODELAY
call
CT_Chk_SMBus_Ready
pop ax
mov dl,03h
out
dx,al
NEWIODELAY
NEWIODELAY
mov dl,02h
mov al,48h
out
dx,al
NEWIODELAY
NEWIODELAY
mov cx, 100h
newiodelay
loop short @B
call
CT_Chk_SMBus_Ready
mov dl,05
in
al,dx
NEWIODELAY
NEWIODELAY
ret
;ID cmd(read)
;Index
;Read data
;Data0
86