Advantech PCM-3353 Manual de usuario Pagina 63

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 70
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 62
55 PCM-3353 User Manual
Appendix D GPIO Sample Code
jne test_fail
;4.Set GPIO 1,3,5,7 as output,GPIO 0,2,4,6 as input
pop cx
push cx
mov ax,5e87h
mov bx,0255h
int 15h
;4. Set GPIO 1,3,5,7 Output High
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
mov ax,5e87h
mov bx,04ffh
int 15h
;6. Check GPIO 0,2,4,6 value
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
mov ax,5e87h
mov bx,0300h
int 15h
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,0ffh
jne test_result
;4. Set GPIO 1,3,5,7 Output differential
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
mov ax,5e87h
mov bx,0422h
int 15h
;5. Check GPI 0,2,4,6 value
pop cx ;restore NO. of GPIO chip
push cx ;save NO. of GPIO chip
mov ax,5e87h
mov bx,03FFh
int 15h
Vista de pagina 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 69 70

Comentarios a estos manuales

Sin comentarios