English
Language : 

SH7713 Datasheet, PDF (68/904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Section 2 CPU
2.1.2 Processing Modes
This LSI supports two processing modes: user mode and privileged mode. These processing
modes can be determined by the processing mode bit (MD) of the status register (SR). If the MD
bit is cleared to 0, the user mode is selected. If the MD bit is set to 1, the privileged mode is
selected. The CPU enters the privileged mode by a transition to reset state or exception handling
state. In the privileged mode, any registers and resources in address spaces can be accessed.
Clearing the MD bit of the SR to 0 puts the CPU in the user mode. In the user mode, some of the
registers, including SR, and some of the address spaces cannot be accessed by the user program
and system control instructions cannot be executed. This function effectively protects the system
resources from the user program. To change the processing mode from user to privileged mode, a
transition to exception handling state is required*.
Note: * To call a service routine used in privileged mode from user mode, the LSI supports an
unconditional trap instruction (TRAPA). When a transition from user mode to
privileged mode occurs, the contents of the SR and PC are saved. A program execution
in user mode can be resumed by restoring the contents of the SR and PC. To return
from an exception processing program, the LSI supports an RTE instruction.
(From any states)
Power-on reset
Manual reset
Reset state
Reset processing
routine starts
Program execution state
Multiple
exceptions
Exception
handling
routine starts
An exception
is accepted
Exception handling state
An exception
is accepted
SLEEP instruction
Low-power
consumption state
Figure 2.1 Processing State Transitions
Rev.1.50 Aug. 30, 2006 Page 28 of 860
REJ09B0288-0150