Aaeon PCM-QM77 Manual page 168

Compact board
Hide thumbs Also See for PCM-QM77:
Table of Contents

Advertisement

C o m p a c t B o a r d
Ct_I2CReadByte
;Input : CL - register index
;
CH - device ID
;
AL - Value to write
;Output: none
Ct_I2CWriteByte
mov
xchg ah, al
mov
mov
commands
out
call
mov
Register
mov
out
command
mov
mov
Endp
Proc Near
ch,06eh
dx, 0f040h + 00h ; Host Control Register
al, 0ffh
dx, al
Delay5ms
dx, 0f040h + 04h
al, ch
dx, al
dx, 0f040h + 03h
al, cl
P C M - Q M 7 7
; Clear previous
; Transmit Slave Address
; Set the slave address and
; prepare for a WRITE
; Host Command Register
; offset to write
Appendix E Digital I/O F-7

Advertisement

Table of Contents
loading

Table of Contents