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.
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
Hi Wang,
I have put the codes inside the notification.c file, within void ecapNotification(ecapBASE_t *ecap,uint16 flags).
Still, there is no print out of the values, so looks like the code is not entering the interrupt on CAP4.
Could you help me to have a quick look through the codes (main, and initialization), or any configuration miss?
1261.HL_sys_main.c7801.HL_ecap.c
thanks a lot
Thanks a lot Wang,
I have a related questions, posted as a new one, really appreciated if you could help as well:
https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/874756
Sincerely
Lu