dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 418

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
BRA
Operation:
PC + <OFFSET> → PC
Description: Branch to the location in program memory at PC + displacement. The PC contains the address of the
Example:
Explanation of Example:
Condition Codes Affected:
Restrictions:
Instruction Fields:
Instruction Opcodes:
Timing:
Memory:
A-74
BRA
BRA
BRA
Operation
BRA
<OFFSET7>
<OFFSET18>
<OFFSET22>
next instruction. The displacement is a 7-bit, 18-bit, or 22-bit signed value that is sign extended to form
the PC-relative offset.
LABEL
In this example, program execution skips the two INC.W instructions and continues with the ADD in-
struction. The BRA instruction uses a PC-relative offset of two for this example.
The condition codes are not affected by this instruction.
A BRA instruction used within a DO loop cannot begin at the LA or LA – 1 within that DO loop.
A BRA instruction cannot be repeated using the REP instruction.
5–6 oscillator clock cycles
1–3 program word(s)
<OFFSET18>
<OFFSET22>
<OFFSET7>
Operands
BRA
INC.W
INC.W
ADD
DSP56800E Core Reference Manual
LABEL
A
A
B,A
C
5
5
6
15
15
15
1
1
1
1
W
1
2
3
0
1
1
1
Branch
7-bit signed offset
18-bit signed offset
22-bit signed offset
1
1
1
1
BRA
Assembler Syntax:
BRA
BRA
12
12
12
0
0
0
0
; jump to instruction at “LABEL”
; these two instructions are skipped
; execution resumes here
11
11
11
1
0
0
0
0
0
A
0
AAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAA
A
0
0
0
<OFFSET7>
<OFFSET18>
<OFFSET22>
A
1
1
1
8
8
8
Comments
7
0
7
0
7
0
0
A
1
A
1
Freescale Semiconductor
a
1
1
1
a
0
1
0
4
4
4
A
a
1
1
3
3
3
a
1
A
1
BRA
A
A
a
0
A
A
a
0
0
0
0

Related parts for dsp56800e