Aaeon PCM-QM77 User Manual page 157

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

Advertisement

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
mov
out
call
Delay5ms
mov
inc
ch
mov al, ch
out
mov
mov
out
mov dx, 0f040h + 05h
Appendix F – Digital I/O Ports
dx, 0f040h + 00h
al, 0ffh
dx, al
dx, 0f040h + 04h
; Set the slave address and
; prepare for a READ command
dx, al
dx, 0f040h + 03h
al, cl
dx, al
; Host Control Register
; Clear previous commands
; Transmit Slave Address Register
; Host Command Register
; offset to read
142

Advertisement

Table of Contents
loading

Table of Contents