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.

EV-CAP to eCAP (FIFO vs Mod4)

Other Parts Discussed in Thread: TMS320F2812

Champs,

A customer is using a TMS320F2812 DSP and wants to migrate to the 28335.

The problem is now that on the 2812, in the EVx capture, we had a capture fifo status register CAPxFIFO that reflected the number of entries in the capture fifo.
On the 28335, there is only the so-called "Mod4-counter" whose status does not seem to be a user-accessible (spraaq7 mentiones 4 memory-mapped registers, but sprug05 doesn't provide any more details about these regs)

Is it really only used internally, or is there a way to poll the status?
So they would have to decide in advance how many captures they want to have before triggering an event (via ECCTL2[STOP_WRAP])...

Is it rue that they can't count (from 0..3) how many events they had in the last interval?

Is there another capture-based solution of how to count events per time interval?

 

Thanks & Rgds,

Magnus

  • Magnus,

    The user can check the CETVx flags in the ECFLG register to determine if a particular capture has occurred yet.  The eCAP module is a huge improvement over the old Event Manager.  With the EV, you could at most take 2 captures before the FIFO overflowed.  With eCAP, you can take up to 4.

    Regards,

    David