数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

ST486DX 数据表(PDF) 23 Page - STMicroelectronics

部件名 ST486DX
功能描述  PROGRAMMING MANUAL
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

ST486DX 数据表(HTML) 23 Page - STMicroelectronics

Back Button ST486DX Datasheet HTML 19Page - STMicroelectronics ST486DX Datasheet HTML 20Page - STMicroelectronics ST486DX Datasheet HTML 21Page - STMicroelectronics ST486DX Datasheet HTML 22Page - STMicroelectronics ST486DX Datasheet HTML 23Page - STMicroelectronics ST486DX Datasheet HTML 24Page - STMicroelectronics ST486DX Datasheet HTML 25Page - STMicroelectronics ST486DX Datasheet HTML 26Page - STMicroelectronics ST486DX Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 34 page
background image
ST486DX - SMM SOFTWARE CONSIDERATIONS
33
; Set MMAC to access main memory
MMAC = 1 shl 3
mov
al, 0c1h
;select CCR1
out
22h, al
in
al, 23h
;get CCR1 current value
mov
ah, al
;save it
mov
al, 0c1h
;select CCR1 again
out
22h, al
mov
al, ah
or
al, MMAC
;set MMAC
out
23h, al
;write new value to CCR1
;Now all data memory access will use ADS#, Code fetches
;will continue to be done with SMADS# from SMM memory.
;
;Disable MMAC
mov
al, 0c1h
;select CCR1
out
22h, al
mov
al, ah
;get old value of CCR1
out
23h, al
;and restore it
3.6
I/O Restart
When implementing power management into a system it is common to want to power down periph-
erals when they are not in use. When an I/O instruction is issued to a powered down device, the
SMM routine is called to power up the peripheral and then reissue the I/O instruction. SGS-Thom-
son CPUs make it easy to restart the I/O instruction that has generated an SMI interrupt.
The system will generate an SMI interrupt when an I/O bus cycle to a powered-down peripheral is
detected. The SMM routine should interrogate the system hardware to find out if the SMI was
caused by an I/O trap. By checking the SMM header information, the SMM routine can determine
the type of I/O instruction that was trapped. If the I/O instruction has a REP prefix, the ECX regis-
ter needs to be incremented before restarting the instruction. If the I/O trap was on a string I/O in-
struction, the ESI or EDI registers must be restored to their previous value before restarting the
instruction.
The following code example shows how easy I/O restart is with the SGS Thomson CPU.
;Restart the interrupted instruction
mov
eax,dword ptr cs:[SMI_CURRENTIP]
mov
dword ptr cs:[SMI_NEXTIP],eax
mov
al,byte ptr cs:[SMI_BITS]
;test for REP instruction



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com