
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 56
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
e) Read data from configure register
; INPUT : AL - INDEX#
; OUTPUT : AL - Data
; ACTION : Read data from the value of AL INDEX
; Interrupt controller and Stack are available
Read_From_Chip PROC
cli
push ax
Open_Chip
pop ax
out 022h, al
IO_Delay
in al, 023h
IO_Delay
push ax
Close_Chip
pop ax
sti
ret
ENDP
5.2 Detection and Setting of Fast Page Mode and EDO DRAMs
; BD0 must be pulled high 10K
; Stack must be available
; all routines in this section must be executed at ROM access
DRAM_Type_Detection:
mov ax, 01010h ; Set mode 5 for DRAM detection
call Read_From_Chip
and al, 00000111b
or al, 01010000b
xchg ah, al
call Write_To_Chip
mov ax, 03c3ch ; Set the bit 1 of INDEX 3Ch to ‘1’
call Read_From_Chip ; to enable EDO DRAM timing detect
or al, 00000010b ; mode.
xchg ah, al
call Write_To_Chip
push ds
mov ax, 0h
mov ds, ax
mov ds: word ptr[0h], 0aaaah
mov ds: word ptr[1000h], 05555h ; dummy write
cmp ds: word ptr[0h], 0aaaah
je Is_EDO_type_DRAM
Comentarios a estos manuales