TMCL: Timer Interrupts

TMCL is the simple way to implement your motion control application. With this series of simple coding examples we want to provide you an easy start.

This program demonstrates how to use the timer interrupt. To use this program connect LEDs to OUT_0 and OUT_1. The LED at Port OUT_1 is toggling at 2 Hz using the WAIT command.  Connect a LED to Port OUT_0 and it will be toggling at 1 Hz using the timer interrupt.

Before use: Restore Factory Defaults

For more details look at TMCL_reference.pdf  at

This sample is tested with TMCM-1140, TMCM-1161, TMCM-6110.

One Comment

  • Mutus

    How do you use Timer interrupts for inputs instead?

    For the initialization, I was using:
    VECT 39, Timer0Irq
    EI 39

    Is it correct?

Leave a Reply

Your email address will not be published. Required fields are marked *