AAEON AEC-VS01 User Manual
Page 90
Advertising
E m b e d d e d C o n t r o l l e r
A E C - V S 0 1
Appendix C Digital I/O C-5
begin:
mov cl,01h
mov al,80h
call
CT_I2CWriteByte
call
Delay5ms
mov al,00h
mov cl,20h
call
CT_I2CWriteByte
mov cl,22h
call
CT_I2CReadByte
;Input : CL - register index
;
CH - device ID
;Output : AL - Value read
Ct_I2CReadByte
Proc Near
mov ch,06eh
mov dx, 0f000h + 00h ; Host Control Register
mov al, 0ffh
; Clear previous
commands
out dx, al
Advertising