Electronic Components Datasheet Search
  English  ▼

X  

32196 Datasheet(PDF) 146 Page - Renesas Technology Corp

Part # 32196
Description  MCU
PDF  1044 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

32196 Datasheet(HTML) 146 Page - Renesas Technology Corp

Back Button 32196 Datasheet HTML 142Page - Renesas Technology Corp 32196 Datasheet HTML 143Page - Renesas Technology Corp 32196 Datasheet HTML 144Page - Renesas Technology Corp 32196 Datasheet HTML 145Page - Renesas Technology Corp 32196 Datasheet HTML 146Page - Renesas Technology Corp 32196 Datasheet HTML 147Page - Renesas Technology Corp 32196 Datasheet HTML 148Page - Renesas Technology Corp 32196 Datasheet HTML 149Page - Renesas Technology Corp 32196 Datasheet HTML 150Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 146 / 1044 page
background image
5
INTERRUPT CONTROLLER (ICU)
5-14
32192/32195/32196 Group Hardware Manual
Rev.1.10 REJ09B0123-0110 Apr.06.07
5.5.2 Processing by Internal Peripheral I/O Interrupt Handlers
(1) Branching to the interrupt handler
Upon accepting an interrupt request, the CPU branches to the EIT vector entry after performing the hard-
ware preprocessing as described in Section 4.3, “EIT Processing Procedure.” The EIT vector entry for
External Interrupt (EI) is located at the address H’0000 0080. This address is where the instruction (not the
jump address itself) for branching to the beginning of the interrupt handler routine for external interrupt
requests is written.
(2) Processing in the External Interrupt (EI) handler
A typical operation of the External Interrupt (EI) handler (for interrupts from internal peripheral I/O) is shown
in Figure 5.5.2.
[1] Saving each register to the stack
Save the BPC, PSW and general-purpose registers to the stack. Also, save the accumulator and FPSR
register to the stack as necessary.
[2] Reading the Interrupt Request Mask Register (IMASK) and saving to the stack
Read the Interrupt Request Mask Register and save its content to the stack.
[3] Reading the Interrupt Vector Register (IVECT)
Read the Interrupt Vector Register. This register holds the 16 low-order address bits of the ICU vector table
for the accepted interrupt request source that was stored in it when accepting an interrupt request. When the
Interrupt Vector Register is read, the following processing is automatically performed in hardware:
• The interrupt priority level of the accepted interrupt request (ILEVEL) is set in the IMASK register as a
new IMASK value. (Interrupts with lower priority levels than that of the accepted interrupt request
source are masked.)
• The accepted interrupt request source is cleared (not cleared for level-recognized interrupt request
sources).
• The interrupt request (EI) to the CPU core is dropped.
• The ICU’s internal sequencer is activated to start internal processing (interrupt priority resolution).
[4] Reading and overwriting the Interrupt Request Mask Register (IMASK)
Read the Interrupt Request Mask Register and overwrite it with the read value. This write to the IMASK
register causes the following processing to be automatically performed in hardware:
• The interrupt request (EI) to the CPU core is dropped.
• The ICU’s internal sequencer is activated to start internal processing (interrupt priority resolution).
[5] Reading the ICU vector table
Read the ICU vector table for the accepted interrupt request source. The relevant ICU vector table
address can be obtained by zero-extending the content of the Interrupt Vector Register that was read in
[3] (i.e., the 16 low-order address bits of the ICU vector table for the accepted interrupt request source).
The ICU vector table must have set in it the start address of the interrupt handler for the interrupt
request source concerned.)
[6] Enabling multiple interrupts
To enable another higher priority interrupt while processing the accepted interrupt (i.e., enabling mul-
tiple interrupts), set the PSW register IE bit to "1."
Notes: • There are precautions to be taken when reenabling interrupts (by setting the IE bit to "1")
after reading the Interrupt Vector Register (IVECT). For details, see the Section 5.2.1,
"Interrupt Vector Register (IVECT)." The precautions apply to the Process [4], therefore,
other processes are not required to add.
• There are precautions to be taken when reenabling interrupts (by setting the IE bit to "1")
after writing to the Interrupt Request Mask Register (IMASK). For details, see the Section
5.2.2, "Interrupt Request Mask Register (IMASK)."
5.5 Description of Interrupt Operation



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