User manual

TMCM-1180 and PD86-1180 TMCL Firmware V4.42 Manual (Rev. 1.08 / 2012-NOV-20) 85
www.trinamic.com
5.7.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
8
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Checksum
Value (hex)
$01
$26
$00
$00
$00
$00
$01
$00
$27