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.

CCS/TMS570LC4357: eCAP interrupt execution

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi,

I have configure the eCap to read speed following the example on technical reference manual, 33.3.1 Example 1 - Absolute Time-Stamp Operation Rising Edge Trigger, page 1937.

Among all the HALCogen generated code files, where do I put the code that I want to be executed when a CAP4 interruption happens?

I read that the interrupts should be written in the notification.c file, but this looks to me like a definition of a fuction ( void ecapNotification(ecapBASE_t *ecap,uint16 flags)), so if I write it there do I need to call it (

ecapNotification(ecapREG1,ecapInt_CEVT4s) ) in the sys_main.c file?

Thanks a lot