This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1227: Microsecond interrupt using HET.

Part Number: TMS570LS1227

Hi,

Using the HET, I would like to generate an interrupt which can trigger on 'x' microsecond depending on the CNT value.

And once the interrupt triggers, I want a function to be called.

Is there an example which can describe how to map the callback function at the trigger of 'x' microsecond interrupt?

I wouldn't be able to use RTI because all the RTI channels are already being used for another functionality.

Thanks.

  • Hi Abrar,

    I don't have a ready example to share with you, but this can be very easily done with the N2HET on LS1227. You can use an ECMP instruction to generate an interrupt every 1us, and also generate a pulse output just to verify the periodic timing. If you don't need to verify the timing, an interrupt can also be generated directly from the CNT instruction's counter-overflow condition. The interrupt service routine can call the desired function.

    Regards,
    Sunil