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.

TMS320F28379D: Capture example is not working as per expectation

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Dear Sir/Madam,

When I  am using capture exaple below,

C:\ti\c2000\C2000Ware_6_00_01_00\driverlib\f2837xd\examples\cpu1\ecap

I am using ewxample ecap_ex2_capture_pwm to measure line frequncy which is 50 Hz. So to pin GPIO16 I have given line frequnecy 50Hz pulse  waveform. So I should get interrupt on every risingedge.

But I am getting cap interrupt on every alternating rising edge.

What could bereason for that?

Thanks and Regards,

Prashant Gugle

 

  • Hi Prashant,

    Can you confirm if the CEVT1/2/3/4 events are being generated on every rising edge and not rising edge/ falling edge / rising edge / falling edge. If you change your capture events to be rise, rise, rise, rise then you will get an interrupt on every rising edge.

    Another thing to note is if the ISR is taking longer to execute and another rise event occurred while the ISR was executing. 

    You can also verify if the ECEINT register is configured to enable an interrupt on each capture event.

    Best regards,

    Ryan Ma

  • Hi Ryan Ma,

    When I took in CEVENT 2 out of CEVT1/2/3/4 , then I got interrupt on first rising   and this resolved my issue.

    Thanks for your reply.

    Thanks and Regards,

    Prashant Gugle