Part Number: TMS320F28377D
Tool/software:
Hello,
Is it possible to trigger a CLA task after a certain number of interrupts/events have occured?
Currently , I have configured a CLA task to automatically trigger on every SDFM interrupt using the driver lib function CLA_setTriggerSource()
CLA_setTriggerSource(CLA_TASK_1, CLA_TRIGGER_SDFM1INT);
I would like to modify the above such that the CLA task triggers after 'n' number of SDFM interrupts have occured. How do i go about doing this?
I am looking for a functionality similar to what the driverlib function EPWM_setInterruptEventCount() does for the EPWM module.
//***************************************************************************** // //! Sets the ePWM interrupt event counts. //! //! \param base is the base address of the EPWM module. //! \param eventCount is the event count for interrupt scale //! //! This function sets the interrupt event count that determines the number of //! events that have to occur before an interrupt is issued. //! Maximum value for eventCount is 15. //! //! \return None. // //***************************************************************************** static inline void EPWM_setInterruptEventCount(uint32_t base, uint16_t eventCount)
Thanks!