Electronic Components Datasheet Search
  English  ▼

X  

AVR32AP Datasheet(PDF) 68 Page - ATMEL Corporation

Part # AVR32AP
Description  32-bit AVR Microcontroller
PDF  181 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AVR32AP Datasheet(HTML) 68 Page - ATMEL Corporation

Back Button AVR32AP Datasheet HTML 64Page - ATMEL Corporation AVR32AP Datasheet HTML 65Page - ATMEL Corporation AVR32AP Datasheet HTML 66Page - ATMEL Corporation AVR32AP Datasheet HTML 67Page - ATMEL Corporation AVR32AP Datasheet HTML 68Page - ATMEL Corporation AVR32AP Datasheet HTML 69Page - ATMEL Corporation AVR32AP Datasheet HTML 70Page - ATMEL Corporation AVR32AP Datasheet HTML 71Page - ATMEL Corporation AVR32AP Datasheet HTML 72Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 68 / 181 page
background image
68
32001A–AVR32–06/06
AVR32
5.2.9
Return stack
The return stack is a 4-entry circular buffer, holding the return addresses for call instructions.
The ID stage controls the pushing of return addresses to the return stack. When A1 detects a
rcall, icall, mcall or acall instruction, the address of the instruction following the call (the instruc-
tion in IS) is pushed. This is the return address.
There are two types of return instructions: Predicted taken and predicted not taken. The predic-
tion is statically based on the instruction opcode, as shown in Table 5-2. Predicted taken return
instructions will cause a return stack pop and execution will continue as soon as possible from
the new path. Predicted not taken return instructions will not cause a return stack pop until it has
reached the A1 stage and the condition is evaluated to be true.
When ID detects a predicted taken return instruction, the top-of-stack element is popped and
used as an instruction fetch address. The return stack is circular, and overflow is handled by
hardware by means of a saturating valid-element counter. If a predicted taken return instruction
is encountered and the return stack is empty, the return instruction will still be executed cor-
rectly, but with a cycle penalty.
The instructions in Table 5-2 are considered return-instructions. No other instructions or mecha-
nisms should be used to return from call-instructions. Violation of this rule will place hardware in
an undetermined state. If the user wants to return from call-instructions by other means than the
instructions listed in Table 5-2, the return stack must be disabled by clearing the Return Stack
Enable (RE) bit in CPUCR. Another approach is to flush the return stack before returning by exe-
cuting the flush return stack (frs) instruction.
5.2.10
Reset
The return stack is enabled and empty after reset.
5.2.11
Disabling
The return stack is disabled by clearing the Return Stack Enable (RE) bit in CPUCR. Disabling
the stack will reset the element counter, removing all entries.
Table 5-2.
Predictable return instructions
Instruction
Prediction
mov pc, lr
Taken
ret, cond == AL
Taken
ret, cond != AL
Not taken
popm with PC in register list
Taken
ldm with PC in register list
Taken



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