Advantech PCM-9562 User Manual page 103

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents