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.

TMS570LS3137: Need output pulse referenced to input signal or interrupt

Part Number: TMS570LS3137

I'm new to programing the TMS570LS3137.  I need some help with developing a technique to do the below with the 3137 peripherals:

I need to generate a single output pulse (varying pulse width and time delay) at a time referenced to a rising edge input. 

I'm thinking I can use the RTI to capture a free running timer to timestamp the rising edge input and cause an interrupt.  This can be the reference time?

I have been working with the HET IDE and have some code that generates a single output pulse like I need -- and can see it on my oscilloscope.

I'm not seeing how to start the HET pulse at a delay referenced to the input rising edge. 

Any suggestions/advice?

Thanks,

-Joe

  • Hi Joe,

    You can use HET to generate pulse based on the input signal.

    ECNT -- can be used to detect the edge of input pulse, the event can be rising/falling or both edge

    SUB  and BR can be used to generate delay

    PWCNT and DJZ can be used t generate pulse or PWM

    MOV64: can be used to update the pulse width