
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 63
8F-1,No.22,Wuchyuan 2RD.,Hsin Chuang city Taipei Hsien, Taiwan, R.O.C. Tel: 886-(02) 2298-0770 Fax: (02) 2299-1883
; Otherwise, doing memory remap in the following routine
; 1) We would like to choose move-out mode
mov ax, 01111h ; Enable memory remapping
call Read_From_Chip ; Select move-out mode
and al, 11111001b
or al, 00000110b
xchg ah, al
call Write_To_Chip
mov ax, 01212h ; Set Split address SP[23-20]
call Read_From_Chip ; to [1111]
and al, 00001111b
or al, 11110000b
xchg ah, al
call Write_To_Chip
; or 2) We would like to choose split mode
mov ax, 01111h ; Enable memory remapping
call Read_From_Chip ; Select split mode
and al, 11111001b
or al, 00000100b
xchg ah, al
call Write_To_Chip
mov ax, 01212h ; Set Split address SP[23-20]
call Read_From_Chip ; to [1111]
and al, 00001111b
shl bl, 4 ; bl - total memory size
or al, bl
xchg ah, al
call Write_To_Chip
5.5 Interrupt controller edge/level trigger programming
The default setting of M6117D interrupt controller is edge trigger disregarding the value of ICW1. M6117D has the ability of
setting each IRQ to be edge or level trigger by decoding I/O ports 04d0h and 04d1h.
To enable this feature, set the bit 2 of INDEX 3Ch to ‘1’.
mov ax, 03c3ch ; Enable IRQ level trigger selection
call Read_From_Chip
or al, 00000100b
xchg ah, al
call Write_To_Chip
Comentários a estes Manuais