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 ow 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 ow to run
into an interrupt routine.
Internal function:
The saved registers (accumulator, X registers, ags and program counter) are copied
back so that normal program ow will continue.
Related commands: EI, DI, VECT.
Mnemonic: RETI
Binary Representation
Instruction Type Motor/Bank Value
38 <interrupt number> 0 (dont care) 0 (dont care)
Reply in Direct Mode
Status Value
100 - OK dont 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