AAEON GENE-U15B User Manual
Page 59
Advertising
S u b C o m p a c t B o a r d
G E N E - U 1 5 B
Appendix D DIO
D-8
mov dx, 500h + 00h
; Host Control Register
mov al, 12h ; Start a byte access
out dx, al
call
CT_Chk_SMBus_Ready ;R14
ret
Ct_I2CWriteByte Endp
; Wait until the busy bit clears, indicating that the SMBUS
; activity has concluded.
CT_Chk_SMBus_Ready Proc
Near
mov dx, 500h + 01h
; Host Status Register
Check_I2C_ByteRead_ForBusy:
in
al,
dx
test al, 08h
jnz Check_I2C_ByteRead_ForBusy
Check_I2C_ByteRead_ForStatus:
in al, dx
Advertising