DMP Electronics eBOX-3350MX-AP Uživatelský manuál Strana 68

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 112
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 67
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 67
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 2 : External Switch
LPORTW(056h,084h); /* Enable SMI and PMU function */
LPORTW(067h,003h); /* Set external switch both low-to-high and high-to-low active */
LPORTW(058h,000h); /* Clear external switch */
LPORTW(058h,040h); /* Enable external switch */
/* SMI is generated when external switch is pushed */
/* Wait for the assertion of SMIACKJ */
LPORTR(05Bh); /* To find out the SMI event is caused by which time-out event */
/* It should be the external switch active in this example */
LPORTR(067h); /* Check the external switch status */
/* Start SMI routine */
LPORTW(058h,000h); /* Clear external switch */
LPORTW(058h,040h); /* Enable external switch */
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 */
Example 3: Usage of the IN Group
IN group is used to monitor the activity of the standard input devices.
IN group is defined as:
IRQ1: default for keyboard
IRQ12: optional for PS/2 mouse ( index 66_D5)
IRQ4: optional for COM1 mouse ( index 66_D6)
IRQ3: optional for COM2 mouse ( index 66_D7)
IN group timer time-out:
(1) Generate power control signal to turn off the screen
(2) Enter SMM by asserting SMIJ
IN group access:
(1) Generate power control signal to turn on the screen
(2) Enter SMM by asserting SMIJ
Hence, monitoring the IN group activity can be used to implement the function of the
creen saver”. Besides, it will not
impact the performance of the running program, instead the whole power can be reduced dramatically.
Example 4
: Software SMI Event
LPORTW(0x56,0xC4); /* Enable SMI and PMU function, and enable software SMI */
/* SMIJ is asserted */
/* Wait for the assertion of SMIADSJ */
LPORTR(0x5B); /* Read SMI cause, it should be software SMI */
LPORTW(0x56,0x04); /* Deassert SMIJ */
/* Start SMI routine */
LPORTW(0x56,0x84); /* Enable SMI again */
DB 0D6h; /* End SMI routine */
DB 0E6h; /* RETPM */
Zobrazit stránku 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 111 112

Komentáře k této Příručce

Žádné komentáře