Advantech PCM-9562 User Manual page 104

Table of Contents

Advertisement

ret
2
Ct_I
CWriteByteEndp
CT_Chk_SMBus_ReadyProcNear
mov dx,SMBus_Port + 0;status port
clc
mov cx,0800h
2
Chk_I
C_OK:
in
al,dx
NEWIODELAY
out
dx,al
NEWIODELAY
test al, 02H
jnz
short Clear_final
and al, NOT 40H;mask INUSE bit
or
al,al
jz
short Clear_final
test al,04h
jnz
short SMBus_Err
loop short Chk_I
;SMbus error due to timeout
SMBus_Err:
stc
ret
Clear_final:
clc
ret
CT_Chk_SMBus_ReadyEndp
;;===============================================================
===
Delay5msprocnear
push cx
mov cx, 1000
@@:
NEWIODELAY
loop short @B
pop cx
ret
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
;get status
;clear status
;termination of command ?
;status OK ?
;device error
2
C_OK
91
PCM-9562 User Manual

Advertisement

Table of Contents
loading

Table of Contents