Advantech PCM-9588 User Manual page 96

Intel celeron m ebx sbc with dvi/ ttl/ vga/ lvds/ lan/ 6 com/ 2 sata / 6 usb2.0/ 16bit gpio
Hide thumbs Also See for PCM-9588:
Table of Contents

Advertisement

;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

Advertisement

Table of Contents
loading

Table of Contents