6 notes on using standby mode, Notes on using standby mode – FUJITSU Semiconductor Controller MB89950/950A User Manual

Page 79

Advertising
background image

65

CHAPTER 3 CPU

3.7.6

Notes on Using Standby Mode

The CPU does not go to standby mode if an interrupt request occurs from a peripheral
function when a standby mode bit is set in the standby control register (STBC). Also, if
an interrupt is used to wake up from a standby mode to the normal operating state, the
operation after wake-up differs depending on whether or not the interrupt request is
accepted.

Go to standby mode and interrupts

If an interrupt request with an interrupt level higher than "11

B

" occurs from a peripheral function to the

CPU, writing "1" to the stop bit (STP), sleep bit (SLP) in the standby control register (STBC) is ignored.

Therefore, the CPU does not go to standby mode (The CPU also does not go to the standby mode after

completing interrupt processing). This does not depend on whether or not the CPU accepts the interrupt.

Even if the CPU is currently performing interrupt processing, after clearing the interrupt request flag bit the

device can go to the standby mode if no other interrupt request is present.

Wake-up from standby mode by interrupt

If an interrupt request with an interrupt level higher than "11

B

" occurs from a peripheral function or others

during sleep or stop mode, the CPU wakes up from standby mode. This does not depend on whether or not

the CPU accepts the interrupt.

After wake-up from standby mode, the CPU performs the normal interrupt operations. If the level set in the

interrupt level setting register (ILR1 to ILR3) corresponding to the interrupt request is higher than the

interrupt level bits in the condition code register (CCR: IL1, IL0), and if the interrupt enable flag is enabled

(CCR: I = "1"), the CPU branches to the interrupt processing routine. If the interrupt is not accepted,

operation restarts from the instruction following the instruction that activated the standby mode.

To prevent control from branching to an interrupt processing routine after wake-up, take measures such as

disabling interrupts before setting standby mode bit.

Notes on setting standby mode

When setting the standby control register (STBC) to go to standby mode, make the settings in accordance

with Table 3.7-5 "Standby control register (STBC) low-power consumption mode settings". Although the

order of precedence as to which mode will be activated if more than one bit is set to "1" is stop mode and

sleep mode, it is best to set "1" for just one bit.

Table 3.7-5 Standby control register (STBC) low-power consumption mode settings

STBC register

Mode

STP (Bit 7)

SLP (Bit 6)

0

0

Normal

0

1

Sleep

1

0

Stop

Advertising