Advantech PCM-9588 User Manual page 97

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

;
AL - Value to write
;Output: none
;==============================================================
Ct_I2CWriteByteProcNear
push ax
push cx
mov dx,SMBus_Port +04h
mov al,ch
out
dx,al
call
Delay5ms
call
Delay5ms
call
CT_Chk_SMBus_Ready
pop ax
mov dl,03h
out
dx,al
call
Delay5ms
call
Delay5ms
pop ax
mov dl,05
out
dx,al
call
Delay5ms
call
Delay5ms
mov dl,02h
mov al,48h
out
dx,al
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
;ID cmd(Write)
;Index
;Data0
;write data
87
PCM-9588 User Manual

Advertisement

Table of Contents
loading

Table of Contents