
PCM-3353 User Manual 58
call Delay5ms
call Delay5ms
call CT_Chk_SMBus_Ready
pop ax
mov dl,03h
out dx,al ;Index
call Delay5ms
call Delay5ms
pop ax
mov dl,05
out dx,al ;Data0
call Delay5ms
call Delay5ms
mov dl,02h
mov al,48h
out dx,al ;write data
call Delay5ms
call Delay5ms
mov cx, 100h
@@:
newiodelay
loop short @B
call CT_Chk_SMBus_Ready
ret
Ct_I2CWriteByteEndp
CT_Chk_SMBus_ReadyProcNear
mov dx,SMBus_Port + 0;status port
clc
mov cx,0800h
Chk_I2c_OK:
in al,dx ;get status
NEWIODELAY
out dx,al ;clear status
NEWIODELAY
test al, 02H ;termination of command ?
jnz short Clear_final
Kommentare zu diesen Handbüchern