All manuals and user guides at all-guides.com
S u b C o m p a c t B o a r d
;Input : CL - register index
;
CH - device ID
;Output : AL - Value read
Ct_I2CReadByte Proc Near
mov ch,06eh
mov
xor
out
call
Delay5ms
mov
Address Register
inc
ch
mov al, ch
command
out
mov
Register
mov
out
mov dx, 500h + 06h
dx, 500h + 00h
al, al
; Clear previous commands
dx, al
dx, 500h + 04h
; Set the slave address and
; prepare for a READ
dx, al
dx, 500h + 05h
al, cl
dx, al
G E N E - U 1 5 B
; Host Control Register
; Transmit Slave
; Host Command
; offset to read
Appendix D DIO
D-5