EM78P312N

8-Bit Microcontroller

5.4 CPU Operation Mode

Registers for CPU Operation Mode

R_BANK

Address

 

NAME

 

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

Bank 0

0X05

 

SCR

 

0

 

PS2

 

PS1

 

PS0

 

0

 

1

 

SIS

 

REM

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W

 

R/W

 

R/W

 

 

 

R/W

 

R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* R_BANK: Register Bank (Bits 7, 6 of R3), R/W: Read/Write

 

Reset Occurs

 

 

SIS=0 + SLEP

SIS=1 + SLEP

Idle Mode

Normal Mode

Sleep Mode

CPU : Halts

CPU : Operating

CPU : Halts

Fosc: Oscillates

Fosc: Oscillates

Fosc: Stops

 

Interrupt

/SLEEP Pin Input

Fig. 5-4 Operation Mode and Switching

Table 2. Mode Switching Control

Mode Switch

 

Switch Method

 

Note

Normal Æ Sleep

 

Set SIS = 1, execute SLEP instruction

 

Sleep Æ Normal

 

/SLEEP pin wake up

 

Normal Æ Idle

 

Set SIS = 0, execute SLEP instruction

 

Idle Æ Normal

 

Interrupt

 

Table 3. Operation Mode

Operation Mode

Frequency

 

 

 

 

Reset

 

Signal

Normal

Turn on

Clock

Idle

 

 

Sleep

Turn off

 

 

 

 

 

On-chip

CPU Code

 

Peripherals

Reset

 

 

Reset

Fosc

 

Fosc

 

 

Halt

 

 

 

Halt

 

 

 

 

 

In Normal mode, the CPU core and on-chip peripherals operate in oscillator frequency.

In Idle mode, the CPU core halts, but the on-chip peripheral and oscillator circuit remain active. Idle mode is released to Normal mode by any interrupt source. If the ENI instruction is set, an interrupt will be serviced first followed by executing the next instruction which is after the Idle mode is released and the interrupt service is finished. If the ENI instruction is not set, the next instruction will be executed which is after the Idle mode start instruction. Idle mode can also be released by setting the /RESET pin to low and executing a reset operation.

Product Specification (V1.0) 10.03.2006

23

(This specification is subject to change without further notice)

Page 27
Image 27
IBM EM78P312N manual Registers for CPU Operation Mode, Rbank Register Bank Bits 7, 6 of R3, R/W Read/Write