User Manual
TMCM-3230 TMCL
™
Firmware Manual • Firmware Version V1.07 | Document Revision V1.05 • 2017-OCT-10
65 / 103
3.6.33 RETI (Return from Interrupt)
This command terminates an interrupt handling routine. Normal program flow will be continued then.
This command is intended for use in standalone mode only.
An interrupt routine must always end with a RETI command. Do not allow the normal program flow to run
into an interrupt routine.
Internal function:
The saved registers (accumulator, X registers, flags and program counter) are copied
back so that normal program flow will continue.
Related commands: EI, DI, VECT.
Mnemonic: RETI
Binary Representation
Instruction Type Motor/Bank Value
38 <interrupt number> 0 (don’t care) 0 (don’t care)
Reply in Direct Mode
Status Value
100 - OK don’t care
Example
Return from an interrup handling routine.
Mnemonic: RETI
Binary Form of RETI
Field Value
Target address 01
h
Instruction number 26
h
Type FF
h
Motor/Bank 00
h
Value (Byte 3) 00
h
Value (Byte 2) 00
h
Value (Byte 1) 00
h
Value (Byte 0) 00
h
Checksum 27
h
©2017 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com