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.

TMS320F28388D: ECAP Continuous Capture of One Event and Compare Interrupt

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi all!

I have a frequency to read without cpu interaction nor interrupt.

I wanna setup ecap to catch every rising edge and save the time diff between 2 edges and overwrite it to a capture reg. Then I wanna read the value when I want. What i got it is possible with continuous mode but it has 4 capture events. Can I use continuous capture with one event? I don't need all 4 but I need one continous capture.

Also, during continues capture of one event I want to compare the captured value and generate an interrupt if the frequency is too low or connection is lost. Then I might want to stop pwm's etc. This interrupt option is available in apwm mode but not in capture mode what I got. In worst case I can use counter overflow interrupt but is there any other way to do it? So, can i use apwm interrupts in ecap mode?

To sum up; I wanna measure a period, so one event and generate an interrupt only when the period is too long etc. How can I do it wirh ecap?

Thanks in adavance.

cheers,