DMP Electronics eBOX-3350MX-AP Manual do Utilizador Página 107

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 112
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 106
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 106
Jan Yin Chan Electronics Co,. LTD. M6117D 386SX Single Chip PC
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 B: Set GPCS0 decoder to I/O address 100h, 101h 8bit data bus write only.
; 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,0444h ; Enable IO address A[15-1], 8bit data bus write only.
call writechip
mov ax,0141h ; Set the GPCS0 A[15-8] is 01h. A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
call writechip ; 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 X = 100h, 101h
mov ax,0040h ; Set the GPCS0 A[7-1] is 00h.
call writechip
mov ax,0043h ; Set the GPCS0 mask A[15-8] is 00h, address A[15-8] full compare(set to" 0" is compare, set to "1" is don't care).
call writechip
mov ax,0042h ; Set the GPCS0 mask A[7-1] is 0000000Xb, address A[7-1] full compare.
call readchip :
and al,00000001b
or al,00000000b ;
xchg ah,al ;
call writechip ;
mov ax,0040h ;
call readchip
or al,00000001b
xchg ah,al
call writechip ; Active GPCS0 decoder single.
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 página 106

Comentários a estes Manuais

Sem comentários