PCM-9562 User Manual
90
ret
Ct_I
2
CReadByteEndp
;==============================================================
;Input : CL - register index
;
CH - device ID
;
AL - Value to write
;Output: none
;==============================================================
Ct_I
2
CWriteByteProcNear
push ax
push cx
mov dx,SMBu04h
mov al,ch
;ID cmd(Write)
out
dx,al
call
Delay5ms
call
Delay5ms
call
CT_Chk_SMBus_Ready
pop ax
mov dl,03h
out
dx,al
;Index
call
Delay5ms
call
Delay5ms
pop ax
mov dl,05
out
dx,al
;Data0
call
Delay5ms
call
Delay5ms
mov dl,02h
mov al,48h
out
dx,al
;write data
call
Delay5ms
call
Delay5ms
mov cx, 100h
@@:
newiodelay
loop short @B
call
CT_Chk_SMBus_Ready
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com