DMP Electronics eBOX-3350MX-AP Manual de usuario Pagina 110

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 112
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 109
Jan Yin Chan Electronics Co.,LTD. 386SX Single Chip PC
M6117D : System on a chip
DM&P
Jan Yin Chan Electronics Co,. LTD. M6117D 386SX Single Chip PC Page 109
8F-1,No.22,Wuchyuan 2RD.,Hsin Chuang city Taipei Hsien, Taiwan, R.O.C. Tel: 886-(02) 2298-0770 Fax: (02) 2299-1883
Example E: Set GPIO[7-0] is output pin, GPIO[15-8] is input pin.
; Please use TASM to compiler the following program.
; Execute under DOS environment.
;
.286
.model small
.code
Start proc c
mov ax,0c513h ; Unlock configuration register
call writechip
mov ax,0ff4eh ; Enable GPIO[7-0] is output pin.
call writechip
mov ax,004fh ; Set the GPIO[15-8] is input pin.
call writechip ;
mov ax,5547h ; Output data value is 55h to output pin GPIO[7-0].
call writechip
mov ax,004ah ; Input data value from GPIO[15-8].
call readchip ;
mov ax,0013h ; Lock configuration register
call writechip
mov ax,4c00h
int 21h
endp
readchip proc c
out 22h,al
nop
nop
in al,23h
nop
nop
ret
endp
writechip proc c
out 22h,al
nop
nop
xchg ah,al
out 23h,al
nop
nop
xchg ah,al
ret
endp
end
Vista de pagina 109
1 2 ... 105 106 107 108 109 110 111 112

Comentarios a estos manuales

Sin comentarios