Syntax
DINT
|
Disable TML INTerrupts
|
Binary code
Description | After the execution of this instruction, all the TML interrupts are globally disabled independently of their status in the interrupt control register ICR. Use the EINT instruction to globally enable TML interrupts. |
After power on, the TML interrupts are globally enabled together with the TML interrupts Int0, Int1, Int2 and Int3. These interrupts handle the drive/motor protections and the transitions on the Enable input, using a default set of interrupt service routines (ISR).
Remark: Some of the drive/motor protections may not work properly if the TML Interrupts are not handled correctly. In order to avoid this situation keep in mind the following rules:
• | The TML interrupts must be kept globally enabled to allow execution of the ISR for those TML interrupts triggered by protections. As during a TML interrupt execution, the TML interrupts are globally disabled, you should keep the ISR as short as possible, without waiting loops. If this is not possible, you must globally enable the interrupts with EINT command during your ISR execution. |
• | If you modify the interrupt service routines for Int 0 to Int 4, make sure that you keep the original TML commands from the default ISR. Put in other words, you may add your own commands, but these should not interfere with the original TML commands. Moreover, the original TML commands must be present in all the ISR execution paths. |
Example
DINT; //globally disable all TML interrupts
|