Electronic Components Datasheet Search
  English  ▼

X  

SH7705 Datasheet(PDF) 159 Page - Renesas Technology Corp

Part # SH7705
Description  Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
PDF  739 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

SH7705 Datasheet(HTML) 159 Page - Renesas Technology Corp

Back Button SH7705 Datasheet HTML 155Page - Renesas Technology Corp SH7705 Datasheet HTML 156Page - Renesas Technology Corp SH7705 Datasheet HTML 157Page - Renesas Technology Corp SH7705 Datasheet HTML 158Page - Renesas Technology Corp SH7705 Datasheet HTML 159Page - Renesas Technology Corp SH7705 Datasheet HTML 160Page - Renesas Technology Corp SH7705 Datasheet HTML 161Page - Renesas Technology Corp SH7705 Datasheet HTML 162Page - Renesas Technology Corp SH7705 Datasheet HTML 163Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 159 / 739 page
background image
Rev. 2.00, 09/03, page 113 of 690
5.2
Exception Handling Function
5.2.1
Exception Handling Flow
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 address of the instruction to be returned to after exception handling is saved to SPC.
2.
The contents of SR is 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.
An exception code identifying the exception event is written to bits 11 to 0 of the exception
event (EXPEVT) or interrupt event (INTEVT or INTEVT2) register.
7.
If a TRAPA instruction is executed, an 8-bit immediate data specified by the TRAPA
instruction is set to TRA. For an exception related to memory accesses, the logic address
where the exception occurred is written to TEA.*
1
8.
Instruction execution jumps to the designated exception vector address to invoke the handler
routine.
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 EXPEVP. In an interrupt exception
handling routine, the appropriate exception handling must be executed based on an exception
source determined by the INTEVT or 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.
1.
The contents of the SSR are restored into the SR to return to the processing state in effect
before the exception handling took place.
2.
A delay slot instruction of the RTE instruction is executed.*
2
3.
Control is passedto the address storedinthe SPC.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com