LP5569 Programming
33
SNVU564A – July 2017 – Revised August 2017
Copyright © 2017, Texas Instruments Incorporated
Using the BOOST-LP5569EVM Evaluation Module
Table 6. Branch Instructions
INSTRUCTION
SYNTAX
FUNCTION
EXAMPLE
16-BIT ASSEMBLED
BIT SEQUENCE
ASSEMBLED CODE
(HEX)
rst
Resets program counter
and starts the program
again.
rst
0000 0000 0000 0000
0000
branch loopcount,
address
Loopcount is a constant
(0 to 63); address is a
label which specifies the
offset.
Repeat a section of
code. A branch to the
outside of a segment is
not allowed.
branch 20, loop1;
Define loop for 20 times.
1010 1010 0000 0000
AA00
int
Causes an interrupt.
int
1100 0100 0000 0000
C400
end interrupt, reset
Interrupt (i) is an
optional flag. Reset (r) is
an optional flag.
End program execution.
end i;
End program execution
and send an interrupt.
1101 0000 0000 0000
D000
trigger
w{source1|source2...}
Source is the source of
the trigger (1, 2, 3,
external).
Wait for a trigger.
trigger w{1};
Wait for a trigger from
engine 1.
1110 0000 1000 0000
E080
trigger
s{target1|target2...}
Source is the source of
the trigger (1, 2, 3,
extenal ).
Send a trigger.
trigger s{1};
Send a trigger to engine
1
1110 0000 0000 0010
E002
trig_clear
Clear pending triggers.
trig_clear
1110 0000 0000 0000
E000
jne var1, var2, address
var1 is a variable (ra, rb,
rc, rd);
var2 is a variable (ra, rb,
rc, rd);
address is a label which
specifies the offset.
Jump if not equal. It
jumps forward to the
address relative to the
present location.
jne ra, rb, flash;
jump to flash if A!=B.
1000 1000 0010 0001
Assumes that offset = 2.
8821
jl var1, var2, address
var1 is a variable (ra, rb,
rc, rd);
var2 is a variable (ra, rb,
rc, rd);
address is a label which
specifies the offset.
Jump if less. It jumps
forward to the address
relative to the present
location.
jl ra, rb, flash;
jump to flash if A<B
1000 1010 0001 0001
Assumes that offset = 1.
8A11
jge var1, var2, address
var1 is a variable (ra, rb,
rc, rd);
var2 is a variable (ra, rb,
rc, rd);
address is a label which
specifies the offset
Jump if greater or equal.
It jumps forward to the
address relative to the
present location.
jge ra, rb flash;
jump to flash if A>=B.
1000 1100 0001 0001
Assumes that offset = 1.
8C11
je var1, var2, address
var1 is a variable (ra, rb,
rc, rd);
var2 is a variable (ra, rb,
rc, rd);
address is a label which
specifies the offset.
Jump if equal. It jumps
forward to the address
relative to the present
location.
je ra, rb, flash;
jump to flash if A==B
1000 1110 0001 0001
Assumes that offset = 1.
8E11