TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
60
www.trinamic.com
6.8.35
RETI (return from interrupt)
This command terminates the interrupt handling routine, and the normal program execution continues.
At the end of an interrupt handling routine the RETI command must be executed.
Internal function:
the saved registers (A register, X register, flags) are copied back. Normal program
execution continues.
Related commands:
EI, DI, VECT
Mnemonic:
RETI
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
38
don’t care
don’t care
don’t care
Example:
Terminate interrupt handling and continue with normal program execution
RETI
Binary format of RETI:
Byte Index
0
1
2
3
4
5
6
7
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$26
$00
$00
$00
$00
$01
$00