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.

FFTC feedback

Other Parts Discussed in Thread: TMS320C6670

Good time of day to you all,

I'am working with the TMS320C6670 and trying to use FFTC for spectrum calculation. The problem is that I can't find in the FFTC, QMSS or CPPI doxygen the function that can notify me that FFTC finished its calculations.

Right now I'am using Task's and Fftc_rxGetResult function to check if the calculation already finished. But it's not appropriate for my case, because we trying to solve this without adding a task to the scheduler. Is there an way or option get asynchronous event from the FFTC when its done calculations?

Best Regards,

Pavlo!

  • You can use one of the 'Queue Pend' queue type as your RX queue whic will generate an interrupt when the queu becomes non-empty. Refer to the NAvigator UG and devce data sheet for details on this.

    Sudhanand
  • Dear Sunhanand,

    Thank you for your answer, I think it will do. But I have one more little question: QM will throw Hwi or Swi, or maybe I can choose the event type?

    And maybe there are some code implementation of queue pend? Because I couldn't find any functions or register's structures where I can change it.

    To be more specific, how, for example, apply pending to the high priority queue 704 or 708? 

  • There are two types of interrupt (HWI/Events) generating queues 1)Accumulator and 2) QPend queue. Specific queues on a device are set to have theses properties. On 6670 704-735 are accumulator queues, whereas 662-671 are Qpend queues. The Navigator UG has details on these queue types.

    You also need to to look into the INTC (Interrupt controller) and the QMSS INTD (Interrupt Distributor) modules on how interrupt processing works..

    If you have specific questions on interrupt handling (which is not a FFTC property bu the QMSS property) please open a new ticket with the appropriate description so that it can be assigned to the right person that can help you.