Advantech PCM-3353 Bedienungsanleitung Seite 64

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 70
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 63
PCM-3353 User Manual 56
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
dec cx
mov al,Fail_lenght
mul cl
lea dx, Fail_Str
add dx,ax
cmp bl,33h
jne test_result
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
dec cx
mov al,Success_lenght
mul cl
lea dx, Success1_Str
add dx,ax
;Do Second PCA9554 test
;1.Set GPIO 0,2,4,6 as output, GPI 1,3,5,7 as input
test_result:
mov ah,09h
int 21h
pop cx
dec cx
jnz next_test
Finish_Test:
popa
.exit
;==============================================================
;Input : CL - register index
; CH - device ID
;Output : AL - Value read
;==============================================================
Ct_I2CReadByteProcNear
push cx
mov dx,SMBus_Port +04h
inc ch
mov al,ch ;ID cmd(read)
out dx,al
NEWIODELAY
Seitenansicht 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 70

Kommentare zu diesen Handbüchern

Keine Kommentare