
386SX Single Chip PC Jan Yin Chan Electronics Co.,LTD.
DM&P M6117D : System on a chip
Page 66
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
5.6.3 Power management example
In the following example, use
LPOETW( INDEX#, DATA) to write chipset
configure register and
LPORTR( INDEX#) to read chipset
configure register
Example 1
: Mode Translation
/* The DOZE, STANDBY, SUSPEND modes are defined by the BIOS */
LPORTW(056h,084h); /* Enable SMI, PMU and set the system state at ON mode */
LPORTW(057h,008h); /* Monitor IRQs in this example */
LPORTW(059h,020h); /* Enable MODE timer */
LPORTW(064h,067h); /* Set the time base of the MODE timer as 60 min */
/* SMIJ will be generated if no IRQ is active during 60 min */
/* Wait for the assertion of SMIACKJ */
LPORTW(056h,004h); /* Deassert SMIJ */
LPORTR(05Bh); /* To read the SMI cause */
/* It should be the MODE timer time-out in this example */
LPORTR(06Ah); /* Read the time-out status */
/* Start SMI routine */
LPORTW(059h,000h); /* Clear MODE time-out event */
LPORTW(05Ah,080h); /* Set IN(standard input) as a wake-up event */
LPORTW(056h,084h); /* Enable SMI again */
DB 0D6h ; /* End SMI routine */
DB 0E6h ; /* RETPM */
Comentários a estes Manuais