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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 112
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 108
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 108
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 D: Set GPCS0 decoder to Memory address C800:0 to C800:3FFF(16Kbyte) 8bit data bus read/write.
; 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,3144h ; Enable memory address A[25-11], 8bit data bus read/write.
call writechip
mov ax,0341h ; Set the GPCS0 A[25-18] is 03h. A25 A24 A23 A22 A21 A20 A19 A18 A17 A16 A15 A14 A13 A12 A11 A10
call writechip ; 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 X
mov ax,2040h ; Set the GPCS0 A[17-11] is 20h.
call writechip
mov ax,0043h ; Set the GPCS0 mask A[25-18] is 00h, address A[25-18] full compare(set to" 0" is compare, set to "1" is don't care).
call writechip
mov ax,0042h ; Set the GPCS0 mask A[17-11] is 0000111Xb, address A[17-11] high nibble compare, low nibble don't care.
call readchip :
and al,00000001b
or al,00001111b ; set low nibble is don't care compare.
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 108
1 2 ... 104 105 106 107 108 109 110 111 112

Comentários a estes Manuais

Sem comentários