Aaeon TKS-G21-CV05 Uživatelský manuál Strana 62

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 64
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 61
Embedded Box TKS-G21-CV05
Appendix C Digital I/O C-7
Ct_I2CReadByte Endp
;Input : CL - register index
; CH - device ID
; AL - Value to write
;Output: none
Ct_I2CWriteByte Proc Near
mov ch,06eh
xchg ah, al
mov dx, 0f000h + 00h ; Host Control Register
mov al, 0ffh ; Clear previous
commands
out dx, al
call Delay5ms
mov dx, 0f000h + 04h ; Transmit Slave Address
Register
mov al, ch ; Set the slave address and
out dx, al ; prepare for a WRITE
command
mov dx, 0f000h + 03h ; Host Command Register
mov al, cl ; offset to write
Zobrazit stránku 61
1 2 ... 57 58 59 60 61 62 63 64

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

Žádné komentáře