HD6417320 RENESAS [Renesas Technology Corp], HD6417320 Datasheet - Page 100

no-image

HD6417320

Manufacturer Part Number
HD6417320
Description
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Section 2
2.1.2
This LSI supports two processing modes: user mode and privileged mode. These processing
modes can be determined by the processing mode bit (MD) in 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 in 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
Rev. 3.00 Jan. 18, 2008 Page 38 of 1458
REJ09B0033-0300
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.
Processing Modes
CPU
(From any states)
Power-on reset
Manual reset
Exception handling state
exceptions
Multiple
Reset state
Figure 2.1
routine starts
Exception
handling
Processing State Transitions
Reset processing
routine starts
An exception
is accepted
An exception
is accepted
Program execution state
consumption state
Low-power
SLEEP instruction

Related parts for HD6417320