Advantech PCM-9562 User Manual page 102

Table of Contents

Advertisement

popa
.exit
;==============================================================
;Input
: CL - register index
;
CH - device ID
;Output : AL - Value read
;==============================================================
2
Ct_I
CReadByteProcNear
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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
;ID cmd(read)
;Index
;Read data
;Data0
89
PCM-9562 User Manual

Advertisement

Table of Contents
loading

Table of Contents