Advantech PCM-3353 Uživatelský manuál Strana 66

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 70
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 65
PCM-3353 User Manual 58
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
ret
Ct_I2CWriteByteEndp
CT_Chk_SMBus_ReadyProcNear
mov dx,SMBus_Port + 0;status port
clc
mov cx,0800h
Chk_I2c_OK:
in al,dx ;get status
NEWIODELAY
out dx,al ;clear status
NEWIODELAY
test al, 02H ;termination of command ?
jnz short Clear_final
Zobrazit stránku 65
1 2 ... 61 62 63 64 65 66 67 68 69 70

Komentáře k této Příručce

Žádné komentáře