Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

TMS320F Datasheet(PDF) 72 Page - Texas Instruments

Part # TMS320F
Description  CPU and Instruction Set
PDF  389 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TI [Texas Instruments]
Direct Link  http://www.ti.com
Logo TI - Texas Instruments

TMS320F Datasheet(HTML) 72 Page - Texas Instruments

Back Button TMS320F Datasheet HTML 68Page - Texas Instruments TMS320F Datasheet HTML 69Page - Texas Instruments TMS320F Datasheet HTML 70Page - Texas Instruments TMS320F Datasheet HTML 71Page - Texas Instruments TMS320F Datasheet HTML 72Page - Texas Instruments TMS320F Datasheet HTML 73Page - Texas Instruments TMS320F Datasheet HTML 74Page - Texas Instruments TMS320F Datasheet HTML 75Page - Texas Instruments TMS320F Datasheet HTML 76Page - Texas Instruments Next Button
Zoom Inzoom in Zoom Outzoom out
 72 / 389 page
background image
Branches, Calls, and Returns
5-8
5.3
Branches, Calls, and Returns
Branches, calls, and returns break the sequential flow of instructions by trans-
ferring control to another location in program memory. A
branch only transfers
control to the new location. A
call also saves the return address (the address
of the instruction following the call) to the top of the hardware stack. Every
called subroutine or interrupt service routine is concluded with a
return instruc-
tion, which pops the return address off the stack and back into the program
counter (PC).
The ’C24x has two types of branches, calls, and returns:
- Unconditional. An unconditional branch, call, or return is always
executed. The unconditional branch, call, and return instructions are de-
scribed in sections 5.3.1, 5.3.2, and 5.3.3, respectively.
- Conditional. A conditional branch, call, or return is executed only if certain
specified conditions are met. The conditional branch, call, and return
instructions are described in detail in Section 5.4,
Conditional Branches,
Calls, and Returns, on page 5-10.
5.3.1
Unconditional Branches
When an unconditional branch is encountered, it is always executed. During
the execution, the PC is loaded with the specified program-memory address
and program execution begins at that address. The address loaded into the
PC may come from either the second word of the branch instruction or the low-
er sixteen bits of the accumulator.
By the time the branch instruction reaches the execute phase of the pipeline,
the next two instruction words have already been fetched. These two instruc-
tion words are flushed from the pipeline so that they are not executed, and then
execution continues at the branched-to address. The unconditional branch
instructions are B (branch) and BACC (branch to location specified by accu-
mulator).
5.3.2
Unconditional Calls
When an unconditional call is encountered, it is always executed. When the
call is executed, the PC is loaded with the specified program-memory address
and program execution begins at that address. The address loaded into the
PC may come from either the second word of the call instruction or the lower
16 bits of the accumulator. Before the PC is loaded, the return address is saved
in the stack. After the subroutine or function is executed, a return instruction
loads the PC with the return address from the stack, and execution resumes
at the instruction following the call.



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