Section 5 Exceptions; Overview; Features; Register Configuration - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
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
to a user-written exception handling routine, in order to support such functions, is given the
generic name of exception handling.
SH7750 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. This is the address when using the virtual/physical address space P4 area. When
making an access from physical address space area 7 using the TLB, the upper 3 bits
of the address are ignored.

Section 5 Exceptions

Abbrevia-
tion
R/W
TRA
R/W
EXPEVT
R/W
INTEVT
R/W
P4
1
Initial Value*
Address*
Undefined
H'FF00 0020 H'1F00 0020 32
H'0000 0000/
H'FF00 0024 H'1F00 0024 32
1
H'0000 0020*
Undefined
H'FF00 0028 H'1F00 0028 32
Rev. 2.0, 03/99, page 83 of 396
Area 7
Access
2
2
Address*
Size

Advertisement

Table of Contents
loading

Table of Contents