89
PCM-9562 User Manual
Appendix C
P
rog. GPIO
&
W
atchdog
T
imer
popa
.exit
;==============================================================
;Input
: CL - register index
;
CH - device ID
;Output : AL - Value read
;==============================================================
Ct_I
2
CReadByteProcNear
push cx
mov dx,SMBu04h
inc
ch
mov al,ch
;ID cmd(read)
out
dx,al
NEWIODELAY
NEWIODELAY
call
CT_Chk_SMBus_Ready
pop ax
mov dl,03h
out
dx,al
;Index
NEWIODELAY
NEWIODELAY
mov dl,02h
mov al,48h
out
dx,al
;Read data
NEWIODELAY
NEWIODELAY
mov cx, 100h
@@:
newiodelay
loop short @B
call
CT_Chk_SMBus_Ready
mov dl,05
in
al,dx
;Data0
NEWIODELAY
NEWIODELAY
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com