03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CLOCK GENERATION AND POWER MANAGEMENT<br />

CLKOUT<br />

T2 T3 T4<br />

WR<br />

1<br />

2<br />

NOTES:<br />

1. : Write to Power-Save Register (as viewed on the bus).<br />

2. : Low-going edge of T3 starts new clock rate.<br />

A1124-0A<br />

Figure 5-15. Power-Save Clock Transition<br />

5.2.3.2 Leaving Power-Save Mode<br />

Power-Save mode continues until one of three events occurs: execution clears the PSEN bit in<br />

the Power-Save Register, an unmasked interrupt occurs or an NMI occurs.<br />

When the PSEN bit clears, the clock returns to its undivided frequency (standard divide-by-two)<br />

at the falling T3 edge of the write to the Power-Save Register. The same result happens from reprogramming<br />

the clock divisor to a new value. The Power-Save Register can be read or written<br />

at any time.<br />

Unmasked interrupts include those from the Interrupt Control Unit, but not software interrupts.<br />

If an NMI occurs, or an unmasked interrupt request has sufficient priority to pass to the core,<br />

Power-Save mode will end. The PSEN bit clears and the clock resumes full-speed operation at<br />

the falling edge of a bus cycle T3 state. However, the exact bus cycle of the transition is undefined.<br />

The Return from Interrupt instruction (IRET) does not automatically set the PSEN bit<br />

again. If you still want Power-Save mode operation, you can set the PSEN bit as part of the interrupt<br />

service routine.<br />

5.2.3.3 Example Power-Save Initialization Code<br />

Example 5-2 illustrates programming the Power-Save Unit for a typical system. The program also<br />

includes code to change the DRAM refresh rate to compensate for the reduced clock rate.<br />

5-22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!