
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 68
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 5 : SMM Remap Start Address
LPORTW(0x20,0xB0); /* Remap start address to F region, no shadow */
MOV eax, 000F0000h /* start address = 000F0000 */
DB 0D6h,0CAh,03h,0A0h /* Load EA0 to ultra SR register*/
DB 0D6h,0C8h,03h,0A0h /* Load ultra SR register to EA0 */
DB 0F1h /* BRKPM, instruction to enter SMM mode */
LPORTW(0x20,0x90); /* Remap start address to AB region, shadow */
mov eax, 000A0000h /* start address = 000A0000 */
DB 0D6h,0CAh,03h,0A0h /* Load EA0 to ultra SR register*/
DB 0D6h,0C8h,03h,0A0h /* Load ultra SR register to EA0 */
DB 0F1h /* BRKPM, instruction to enter SMM mode */
LPORTW(0x20,0xA0); /* Remap start address to E region, shadow */
mov eax, 000E0000h /* start address = 000E0000 */
DB 0D6h,0CAh,03h,0A0h /* Load EA0 to ultra SR register*/
DB 0D6h,0C8h,03h,0A0h /* Load ultra SR register to EA0 */
DB 0F1h /* BRKPM, instruction to enter SMM mode */
LPORTW(0x20,0xB8); /* Remap start address to F region, shadow */
mov eax, FFFF0000h /* start address = FFFF0000 */
DB 0D6h,0CAh,03h,0A0h /* Load EA0 to ultra SR register*/
DB 0D6h,0C8h,03h,0A0h /* Load ultra SR register to EA0 */
DB 0F1h /* BRKPM, instruction to enter SMM mode */
Example 6 : Stop Internal CPU Clock
mov eax, 00080000h /* Set Power Control Register Clock Stop Bit = 1 */
DB 0D6h,0FAh,03h,02h /* MOV PWRCR, EA0 , where PWRCR is Power control register*/
hlt /* Stop internal CPU clock */
/* Wake up by INTR, NMI */
5.7 Flowcharts
Note
: The following notations below have the following meanings.
HAi (where I is an integer) denotes a specific CPU address.
HAi[j] denotes the jth bit of the address lines HAi.
Ai & HAi[j] = K denote the specific address Hai is with a binary value K assigned to the jth bit.
Comentarios a estos manuales