HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 196
![no-image](/images/no-image-200.jpg)
HD6417660
Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
1.HD6417660.pdf
(846 pages)
- Current page: 196 of 846
- Download datasheet (6Mb)
4.2
4.2.1
In exception handling, the contents of the program counter (PC) and status register (SR) are saved
in the saved program counter (SPC) and saved status register (SSR), respectively, and execution of
the exception handler is invoked from a vector address. The return from exception handler (RTE)
instruction is issued by the exception handler routine on completion of the routine, restoring the
contents of PC and SR to return to the processor state at the point of interruption and the address
where the exception occurred.
A basic exception handling sequence consists of the following operations. If an exception occurs
and the CPU accepts it, operations 1 to 8 are executed.
1. The contents of PC are saved in SPC.
2. The contents of SR are saved in SSR.
3. The block (BL) bit in SR is set to 1, masking any subsequent exceptions.
4. The mode (MD) bit in SR is set to 1 to place the privileged mode.
5. The register bank (RB) bit in SR is set to 1.
6. When an exception source is a general exception, an exception code identifying the exception
7. If a TRAPA instruction is executed, an 8-bit immediate data specified by the TRAPA
8. Instruction execution jumps to the designed exception vector address to invoke the handler
The above operations from 1 to 8 are executed in sequence. During these operations, no other
exceptions may be accepted unless multiple exception acceptance is enabled.
In an exception handling routine for a general exception, the appropriate exception handling must
be executed based on an exception source determined by the EXPEVT. In an interrupt exception
handling routine, the appropriate exception handling must be executed based on an exception
source determined by the INTEVT2. After the exception handling routine has been completed,
program execution can be resumed by executing an RTE instruction. The RTE instruction causes
the following operations to be executed.
Rev. 1.00, 02/04, page 158 of 804
event is written to EXPEVT. When an exception source is an interrupt, an exception code is
written to INTEVT2.
instruction is set to TRA. For an exception related to memory accesses, the virtual address
where the exception occurred is written to TEA.
routine.
Exception Handling Function
Exception Handling Flow
Related parts for HD6417660
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![HD6417709S](/images/manufacturer_photos/0/5/561/renesas_electronics_corporation__tmb.jpg)
Part Number:
Description:
Renesas Technology Corp [Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series]
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
![HD6417706](/images/no-image3.png)
Part Number:
Description:
Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![H8S2110B](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer Renesas H8S Family/H8S/2100 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![16C6N4](/images/no-image3.png)
Part Number:
Description:
Renesas MCU
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![32C](/images/no-image3.png)
Part Number:
Description:
RENESAS MCU
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![32C87](/images/no-image3.png)
Part Number:
Description:
RENESAS MCU
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![35C](/images/no-image3.png)
Part Number:
Description:
RENESAS MCU
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6412240](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer H8S Family / H8S/2200 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6412320](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer H8S Family H8S-2300 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6412332](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2300 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6412373R](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer H8S Family/H8S/2300 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6413008F](/images/no-image3.png)
Part Number:
Description:
Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6417040AF28](/images/no-image3.png)
Part Number:
Description:
Renesas 32-Bit Single-Chip RISC Microprocessor SuperH RISC engine Family/SH7040 Series(CPU Core SH-2)
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6417320](/images/no-image3.png)
Part Number:
Description:
Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7700 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet:
![HD6417641](/images/no-image3.png)
Part Number:
Description:
Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family / SH7641 Series
Manufacturer:
RENESAS [Renesas Technology Corp]
Datasheet: