AAEON TKS-G21-CV05 User Manual

Page 61

Advertising
background image

E m b e d d e d B o x

T K S - G 2 1 - C V 0 5

Appendix C Digital I/O C-6

call

Delay5ms

mov dx, 0f000h + 04h

; Transmit Slave Address

Register

inc

ch

; Set the slave address and

mov al, ch

; prepare for a READ command

out dx, al

mov dx, 0f000h + 03h

; Host Command Register

mov al, cl

; offset to read

out dx, al

mov dx, 0f000h + 05h

xor al, al

; Clear old data

out dx, al

mov dx, 0f000h + 02h ; Host Control Reegister

mov al, 48h

; Start a byte access

out dx, al

call

CT_Chk_SMBus_Ready

mov dx, 0f000h + 05h

in al, dx

ret

Advertising