
1-34
Power Management
Even if the automatic Suspend-mode feature is disabled, a 0 on BL4 always forces the
PMU into Suspend mode on the next refresh after entering Sleep mode. However, system
wake-up is allowed.
1.8.5
AC Input Status Pin
The AC Input Status (ACIN) pin is used to indicate that a permanent power source is driv-
ing the system. When ACIN is High (indicating that external power is applied), the PMU
state-transition timers are disabled for High-Speed PLL to Low-Speed PLL, Low-Speed
PLL to Doze, and Doze-to-Sleep mode transitions. This allows the system to remain in
High-Speed PLL mode when AC power is available. Sleep-to-Suspend and Suspend-to-
Off mode-transition timers are still enabled. This allows the PMU to change all the way to
Off mode after the PMU changes to Sleep mode due to the SUS/RES pin logic.
Setting bit 5 of the Miscellaneous 6 register at Index 70h has the same effect as asserting
the ACIN pin, with the exception that the Force-to-Sleep and Force-to-Suspend functions
of BL2 and BL4 are disabled only by asserting the external ACIN pin.
The ACIN pin can also be programmed to generate a PMU-activity event. Doing this
ensures that if external power is connected to a system with dead batteries, the PMU will
automatically wake up. The activity is enabled by setting bit 4 of the PMU Control 3 regis-
ter at Index ADh and clearing bit 6 of the Activity Mask 1 register at Index 75h. The PMU
event is generated by detecting a rising edge on an internal signal that is the logical OR of
the external ACIN pin and the internal software SACIN bit (in the Miscellaneous 6 register
at Index 70h).
1.9
SUSPEND/RESUME PIN LOGIC
The Suspend/Resume (SUS/RES) pin allows the system designer to provide an end-user
mechanism for either waking up the system (i.e., forcing it into High-Speed PLL mode) or
putting it into Sleep mode. In a typical system design, this is realized by way of a special
key on the system that is logically connected to this pin.
The suspend/resume logic is triggered by a rising edge on the external SUS/RES pin. If
the PMU is in High-Speed PLL, Low-Speed PLL, or Doze mode, such an event causes
the PMU to immediately step down through the PMU states (one step per refresh cycle)
until it reaches Sleep mode, at which point control passes back to the PMU state
machine. If the PMU is in Sleep, Suspend, or Off mode, and it receives a rising edge on
the same pin, it will jump directly to High-Speed PLL mode on the next refresh cycle.
The information in this section should be used as a guide to understanding many of the
controls and caveats of implementing an SMI as it pertains to a suspend/resume opera-
tion. The pseudocode that is provided only addresses handling of SUS/RES activity.
Therefore, it represents only a portion of a potentially more complex SMI handler. Code
designed to manage a platform that utilizes SMIs to restart instructions after reinitializing
powered-down devices, handling battery-low warnings, waking up as a result of an activ-
ity other than the SUS/RES activity, and so forth requires additional event handling that is
beyond the scope of this section.
In addition, this section assumes that you understand the System Management mode
(SMM) capabilities of the élanSC310 microcontroller’s CPU core. For more information
on SMM and SMI functionality for the élanSC310 microcontroller’s CPU core, see the
3-Volt System Logic for Personal Computers manual, PID 17028.