8-15
CLOCK AND POWER MANAGEMENT UNIT
No changes required.
******************************************************************************/
void Enter_Idle_Mode(void)
{
BYTE pwrcon = 0x00;
pwrcon = _GetEXRegByte(PWRCON);
/* clear lowest two bits of pwrcon */
pwrcon = pwrcon & 0xfc;
/* Set mode to idle */
_SetEXRegByte(PWRCON, (pwrcon | IDLE));
/* call HALT instruction to execute IDLE mode */
_asm {
HLT
}
}/* Enter_Idle_Mode */
/*****************************************************************************
Enter_Powerdown_Mode:
Description:
This function programs the 386EX for Powerdown mode. This freezes
both the core and peripheral clocks.
Parameters:
None
Returns:
None
Assumptions:
None
Syntax:
Enter_Powerdown_Mode();
Real/Protected Mode:
No changes required.
*****************************************************************************/
void Enter_Powerdown_Mode(void)
{
BYTE pwrcon = 0x00;
pwrcon = _GetEXRegByte(PWRCON);