Section 5 Exceptions; Overview; Features; Register Configuration - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

5.1

Overview

5.1.1

Features

Exception handling is processing handled by a special routine, separate from normal program
processing, that is executed by the CPU in case of abnormal events. For example, if the executing
instruction ends abnormally, appropriate action must be taken in order to return to the original
program sequence, or report the abnormality before terminating the processing. The process of
generating an exception handling request in response to abnormal termination, and passing control
flow to an exception handling routine, etc., is given the generic name of exception handling.
SH7751 Series exception handling is of three kinds: for resets, general exceptions, and interrupts.
5.1.2

Register Configuration

The registers used in exception handling are shown in table 5.1.
Table 5.1
Exception-Related Registers
Name
TRAPA exception
register
Exception event
register
Interrupt event
register
Notes: *1 H'0000 0000 is set in a power-on reset, and H'0000 0020 in a manual reset.
*2 P4 address is the address when using the virtual/physical address space P4 area.
When making an access from area 7 in the physical address space using the TLB, the
three high most bits of the address are ignored.

Section 5 Exceptions

Abbrevia-
tion
R/W
Initial Value
TRA
R/W
Undefined
EXPEVT
R/W
H'0000 0000/
H'0000 0020*
INTEVT
R/W
Undefined
P4
Area 7
2
Address*
Address*
H'FF00 0020 H'1F00 0020 32
H'FF00 0024 H'1F00 0024 32
1
H'FF00 0028 H'1F00 0028 32
Rev. 3.0, 04/02, page 119 of 1064
Access
2
Size

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents