Advantech PCM-9588 User Manual page 98

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

Chk_I2c_OK:
;SMbus error due to timeout
SMBus_Err:
Clear_final:
CT_Chk_SMBus_ReadyEndp
;;===============================================================
Delay5msprocnear
@@:
Delay5ms
Phoenix_debuger proc near
pushf
push cx
push offset PhdebugRetAddr
push cs
PCM-9588 User Manual
clc
mov cx,0800h
in
al,dx
;get status
NEWIODELAY
out
dx,al
;clear status
NEWIODELAY
test al, 02H
;termination of command ?
jnz
short Clear_final
and al, NOT 40H;mask INUSE bit
or
al,al
;status OK ?
jz
short Clear_final
test al,04h
;device error
jnz
short SMBus_Err
loop short Chk_I2c_OK
stc
ret
clc
ret
push cx
mov cx, 1000
NEWIODELAY
loop short @B
pop cx
ret
ENDP
88

Advertisement

Table of Contents
loading

Table of Contents

Save Article as PDF